ados-rcm 1.1.404 → 1.1.405

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -16,10 +16,10 @@
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
18
  */var zv;function o4(){return zv||(zv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),x=Symbol.iterator,M="@@iterator";function w($){if($===null||typeof $!="object")return null;var _e=x&&$[x]||$[M];return typeof _e=="function"?_e:null}var b=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function I($){{for(var _e=arguments.length,Ke=new Array(_e>1?_e-1:0),mt=1;mt<_e;mt++)Ke[mt-1]=arguments[mt];O("error",$,Ke)}}function O($,_e,Ke){{var mt=b.ReactDebugCurrentFrame,Pt=mt.getStackAddendum();Pt!==""&&(_e+="%s",Ke=Ke.concat([Pt]));var Wt=Ke.map(function(Lt){return String(Lt)});Wt.unshift("Warning: "+_e),Function.prototype.apply.call(console[$],console,Wt)}}var H=!1,q=!1,z=!1,Y=!1,fe=!1,X;X=Symbol.for("react.module.reference");function he($){return!!(typeof $=="string"||typeof $=="function"||$===n||$===l||fe||$===i||$===m||$===R||Y||$===S||H||q||z||typeof $=="object"&&$!==null&&($.$$typeof===_||$.$$typeof===E||$.$$typeof===u||$.$$typeof===f||$.$$typeof===g||$.$$typeof===X||$.getModuleId!==void 0))}function j($,_e,Ke){var mt=$.displayName;if(mt)return mt;var Pt=_e.displayName||_e.name||"";return Pt!==""?Ke+"("+Pt+")":Ke}function re($){return $.displayName||"Context"}function Q($){if($==null)return null;if(typeof $.tag=="number"&&I("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){case n:return"Fragment";case t:return"Portal";case l:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case R:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case f:var _e=$;return re(_e)+".Consumer";case u:var Ke=$;return re(Ke._context)+".Provider";case g:return j($,$.render,"ForwardRef");case E:var mt=$.displayName||null;return mt!==null?mt:Q($.type)||"Memo";case _:{var Pt=$,Wt=Pt._payload,Lt=Pt._init;try{return Q(Lt(Wt))}catch{return null}}}return null}var J=Object.assign,me=0,ce,be,ue,Se,le,ae,ge;function Pe(){}Pe.__reactDisabledLog=!0;function Qe(){{if(me===0){ce=console.log,be=console.info,ue=console.warn,Se=console.error,le=console.group,ae=console.groupCollapsed,ge=console.groupEnd;var $={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}me++}}function pe(){{if(me--,me===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},$,{value:ce}),info:J({},$,{value:be}),warn:J({},$,{value:ue}),error:J({},$,{value:Se}),group:J({},$,{value:le}),groupCollapsed:J({},$,{value:ae}),groupEnd:J({},$,{value:ge})})}me<0&&I("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ie=b.ReactCurrentDispatcher,Xe;function tt($,_e,Ke){{if(Xe===void 0)try{throw Error()}catch(Pt){var mt=Pt.stack.trim().match(/\n( *(at )?)/);Xe=mt&&mt[1]||""}return`
19
- `+Xe+$}}var Ge=!1,Me;{var Ee=typeof WeakMap=="function"?WeakMap:Map;Me=new Ee}function we($,_e){if(!$||Ge)return"";{var Ke=Me.get($);if(Ke!==void 0)return Ke}var mt;Ge=!0;var Pt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Wt;Wt=Ie.current,Ie.current=null,Qe();try{if(_e){var Lt=function(){throw Error()};if(Object.defineProperty(Lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Lt,[])}catch(Cn){mt=Cn}Reflect.construct($,[],Lt)}else{try{Lt.call()}catch(Cn){mt=Cn}$.call(Lt.prototype)}}else{try{throw Error()}catch(Cn){mt=Cn}$()}}catch(Cn){if(Cn&&mt&&typeof Cn.stack=="string"){for(var $t=Cn.stack.split(`
19
+ `+Xe+$}}var Ue=!1,Me;{var Ee=typeof WeakMap=="function"?WeakMap:Map;Me=new Ee}function we($,_e){if(!$||Ue)return"";{var Ke=Me.get($);if(Ke!==void 0)return Ke}var mt;Ue=!0;var Pt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Wt;Wt=Ie.current,Ie.current=null,Qe();try{if(_e){var Lt=function(){throw Error()};if(Object.defineProperty(Lt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Lt,[])}catch(Cn){mt=Cn}Reflect.construct($,[],Lt)}else{try{Lt.call()}catch(Cn){mt=Cn}$.call(Lt.prototype)}}else{try{throw Error()}catch(Cn){mt=Cn}$()}}catch(Cn){if(Cn&&mt&&typeof Cn.stack=="string"){for(var $t=Cn.stack.split(`
20
20
  `),ir=mt.stack.split(`
21
21
  `),or=$t.length-1,fr=ir.length-1;or>=1&&fr>=0&&$t[or]!==ir[fr];)fr--;for(;or>=1&&fr>=0;or--,fr--)if($t[or]!==ir[fr]){if(or!==1||fr!==1)do if(or--,fr--,fr<0||$t[or]!==ir[fr]){var Ur=`
22
- `+$t[or].replace(" at new "," at ");return $.displayName&&Ur.includes("<anonymous>")&&(Ur=Ur.replace("<anonymous>",$.displayName)),typeof $=="function"&&Me.set($,Ur),Ur}while(or>=1&&fr>=0);break}}}finally{Ge=!1,Ie.current=Wt,pe(),Error.prepareStackTrace=Pt}var vr=$?$.displayName||$.name:"",Kn=vr?tt(vr):"";return typeof $=="function"&&Me.set($,Kn),Kn}function Ue($,_e,Ke){return we($,!1)}function ct($){var _e=$.prototype;return!!(_e&&_e.isReactComponent)}function Ne($,_e,Ke){if($==null)return"";if(typeof $=="function")return we($,ct($));if(typeof $=="string")return tt($);switch($){case m:return tt("Suspense");case R:return tt("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case g:return Ue($.render);case E:return Ne($.type,_e,Ke);case _:{var mt=$,Pt=mt._payload,Wt=mt._init;try{return Ne(Wt(Pt),_e,Ke)}catch{}}}return""}var bt=Object.prototype.hasOwnProperty,Le={},Ze=b.ReactDebugCurrentFrame;function ot($){if($){var _e=$._owner,Ke=Ne($.type,$._source,_e?_e.type:null);Ze.setExtraStackFrame(Ke)}else Ze.setExtraStackFrame(null)}function Ct($,_e,Ke,mt,Pt){{var Wt=Function.call.bind(bt);for(var Lt in $)if(Wt($,Lt)){var $t=void 0;try{if(typeof $[Lt]!="function"){var ir=Error((mt||"React class")+": "+Ke+" type `"+Lt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof $[Lt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ir.name="Invariant Violation",ir}$t=$[Lt](_e,Lt,mt,Ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(or){$t=or}$t&&!($t instanceof Error)&&(ot(Pt),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",mt||"React class",Ke,Lt,typeof $t),ot(null)),$t instanceof Error&&!($t.message in Le)&&(Le[$t.message]=!0,ot(Pt),I("Failed %s type: %s",Ke,$t.message),ot(null))}}}var _t=Array.isArray;function wt($){return _t($)}function xt($){{var _e=typeof Symbol=="function"&&Symbol.toStringTag,Ke=_e&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Ke}}function it($){try{return je($),!1}catch{return!0}}function je($){return""+$}function yt($){if(it($))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt($)),je($)}var st=b.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Bt,ze;function Tt($){if(bt.call($,"ref")){var _e=Object.getOwnPropertyDescriptor($,"ref").get;if(_e&&_e.isReactWarning)return!1}return $.ref!==void 0}function Ht($){if(bt.call($,"key")){var _e=Object.getOwnPropertyDescriptor($,"key").get;if(_e&&_e.isReactWarning)return!1}return $.key!==void 0}function _r($,_e){typeof $.ref=="string"&&st.current}function kr($,_e){{var Ke=function(){Bt||(Bt=!0,I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Ke.isReactWarning=!0,Object.defineProperty($,"key",{get:Ke,configurable:!0})}}function Cr($,_e){{var Ke=function(){ze||(ze=!0,I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Ke.isReactWarning=!0,Object.defineProperty($,"ref",{get:Ke,configurable:!0})}}var ve=function($,_e,Ke,mt,Pt,Wt,Lt){var $t={$$typeof:e,type:$,key:_e,ref:Ke,props:Lt,_owner:Wt};return $t._store={},Object.defineProperty($t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:mt}),Object.defineProperty($t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pt}),Object.freeze&&(Object.freeze($t.props),Object.freeze($t)),$t};function ne($,_e,Ke,mt,Pt){{var Wt,Lt={},$t=null,ir=null;Ke!==void 0&&(yt(Ke),$t=""+Ke),Ht(_e)&&(yt(_e.key),$t=""+_e.key),Tt(_e)&&(ir=_e.ref,_r(_e,Pt));for(Wt in _e)bt.call(_e,Wt)&&!Rt.hasOwnProperty(Wt)&&(Lt[Wt]=_e[Wt]);if($&&$.defaultProps){var or=$.defaultProps;for(Wt in or)Lt[Wt]===void 0&&(Lt[Wt]=or[Wt])}if($t||ir){var fr=typeof $=="function"?$.displayName||$.name||"Unknown":$;$t&&kr(Lt,fr),ir&&Cr(Lt,fr)}return ve($,$t,ir,Pt,mt,st.current,Lt)}}var Je=b.ReactCurrentOwner,pt=b.ReactDebugCurrentFrame;function $e($){if($){var _e=$._owner,Ke=Ne($.type,$._source,_e?_e.type:null);pt.setExtraStackFrame(Ke)}else pt.setExtraStackFrame(null)}var De;De=!1;function St($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function Et(){{if(Je.current){var $=Q(Je.current.type);if($)return`
22
+ `+$t[or].replace(" at new "," at ");return $.displayName&&Ur.includes("<anonymous>")&&(Ur=Ur.replace("<anonymous>",$.displayName)),typeof $=="function"&&Me.set($,Ur),Ur}while(or>=1&&fr>=0);break}}}finally{Ue=!1,Ie.current=Wt,pe(),Error.prepareStackTrace=Pt}var vr=$?$.displayName||$.name:"",Kn=vr?tt(vr):"";return typeof $=="function"&&Me.set($,Kn),Kn}function We($,_e,Ke){return we($,!1)}function ct($){var _e=$.prototype;return!!(_e&&_e.isReactComponent)}function Ne($,_e,Ke){if($==null)return"";if(typeof $=="function")return we($,ct($));if(typeof $=="string")return tt($);switch($){case m:return tt("Suspense");case R:return tt("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case g:return We($.render);case E:return Ne($.type,_e,Ke);case _:{var mt=$,Pt=mt._payload,Wt=mt._init;try{return Ne(Wt(Pt),_e,Ke)}catch{}}}return""}var bt=Object.prototype.hasOwnProperty,Le={},Ze=b.ReactDebugCurrentFrame;function ot($){if($){var _e=$._owner,Ke=Ne($.type,$._source,_e?_e.type:null);Ze.setExtraStackFrame(Ke)}else Ze.setExtraStackFrame(null)}function Ct($,_e,Ke,mt,Pt){{var Wt=Function.call.bind(bt);for(var Lt in $)if(Wt($,Lt)){var $t=void 0;try{if(typeof $[Lt]!="function"){var ir=Error((mt||"React class")+": "+Ke+" type `"+Lt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof $[Lt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ir.name="Invariant Violation",ir}$t=$[Lt](_e,Lt,mt,Ke,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(or){$t=or}$t&&!($t instanceof Error)&&(ot(Pt),I("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",mt||"React class",Ke,Lt,typeof $t),ot(null)),$t instanceof Error&&!($t.message in Le)&&(Le[$t.message]=!0,ot(Pt),I("Failed %s type: %s",Ke,$t.message),ot(null))}}}var _t=Array.isArray;function wt($){return _t($)}function xt($){{var _e=typeof Symbol=="function"&&Symbol.toStringTag,Ke=_e&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Ke}}function it($){try{return je($),!1}catch{return!0}}function je($){return""+$}function yt($){if(it($))return I("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",xt($)),je($)}var st=b.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Bt,ze;function Tt($){if(bt.call($,"ref")){var _e=Object.getOwnPropertyDescriptor($,"ref").get;if(_e&&_e.isReactWarning)return!1}return $.ref!==void 0}function Ht($){if(bt.call($,"key")){var _e=Object.getOwnPropertyDescriptor($,"key").get;if(_e&&_e.isReactWarning)return!1}return $.key!==void 0}function _r($,_e){typeof $.ref=="string"&&st.current}function kr($,_e){{var Ke=function(){Bt||(Bt=!0,I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Ke.isReactWarning=!0,Object.defineProperty($,"key",{get:Ke,configurable:!0})}}function Cr($,_e){{var Ke=function(){ze||(ze=!0,I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",_e))};Ke.isReactWarning=!0,Object.defineProperty($,"ref",{get:Ke,configurable:!0})}}var ve=function($,_e,Ke,mt,Pt,Wt,Lt){var $t={$$typeof:e,type:$,key:_e,ref:Ke,props:Lt,_owner:Wt};return $t._store={},Object.defineProperty($t._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($t,"_self",{configurable:!1,enumerable:!1,writable:!1,value:mt}),Object.defineProperty($t,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Pt}),Object.freeze&&(Object.freeze($t.props),Object.freeze($t)),$t};function ne($,_e,Ke,mt,Pt){{var Wt,Lt={},$t=null,ir=null;Ke!==void 0&&(yt(Ke),$t=""+Ke),Ht(_e)&&(yt(_e.key),$t=""+_e.key),Tt(_e)&&(ir=_e.ref,_r(_e,Pt));for(Wt in _e)bt.call(_e,Wt)&&!Rt.hasOwnProperty(Wt)&&(Lt[Wt]=_e[Wt]);if($&&$.defaultProps){var or=$.defaultProps;for(Wt in or)Lt[Wt]===void 0&&(Lt[Wt]=or[Wt])}if($t||ir){var fr=typeof $=="function"?$.displayName||$.name||"Unknown":$;$t&&kr(Lt,fr),ir&&Cr(Lt,fr)}return ve($,$t,ir,Pt,mt,st.current,Lt)}}var Je=b.ReactCurrentOwner,pt=b.ReactDebugCurrentFrame;function $e($){if($){var _e=$._owner,Ke=Ne($.type,$._source,_e?_e.type:null);pt.setExtraStackFrame(Ke)}else pt.setExtraStackFrame(null)}var De;De=!1;function St($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function Et(){{if(Je.current){var $=Q(Je.current.type);if($)return`
23
23
 
24
24
  Check the render method of \``+$+"`."}return""}}function ut($){return""}var Nt={};function Qt($){{var _e=Et();if(!_e){var Ke=typeof $=="string"?$:$.displayName||$.name;Ke&&(_e=`
25
25
 
@@ -30,9 +30,9 @@ Check the top-level render call using <`+Ke+">.")}return _e}}function rr($,_e){{
30
30
  * Released under MIT license <https://lodash.com/license>
31
31
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
32
32
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
33
- */var a4=Pf.exports,Uv;function l4(){return Uv||(Uv=1,function(r,e){(function(){var t,n="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",m=500,R="__lodash_placeholder__",E=1,_=2,S=4,x=1,M=2,w=1,b=2,I=4,O=8,H=16,q=32,z=64,Y=128,fe=256,X=512,he=30,j="...",re=800,Q=16,J=1,me=2,ce=3,be=1/0,ue=9007199254740991,Se=17976931348623157e292,le=NaN,ae=4294967295,ge=ae-1,Pe=ae>>>1,Qe=[["ary",Y],["bind",w],["bindKey",b],["curry",O],["curryRight",H],["flip",X],["partial",q],["partialRight",z],["rearg",fe]],pe="[object Arguments]",Ie="[object Array]",Xe="[object AsyncFunction]",tt="[object Boolean]",Ge="[object Date]",Me="[object DOMException]",Ee="[object Error]",we="[object Function]",Ue="[object GeneratorFunction]",ct="[object Map]",Ne="[object Number]",bt="[object Null]",Le="[object Object]",Ze="[object Promise]",ot="[object Proxy]",Ct="[object RegExp]",_t="[object Set]",wt="[object String]",xt="[object Symbol]",it="[object Undefined]",je="[object WeakMap]",yt="[object WeakSet]",st="[object ArrayBuffer]",Rt="[object DataView]",Bt="[object Float32Array]",ze="[object Float64Array]",Tt="[object Int8Array]",Ht="[object Int16Array]",_r="[object Int32Array]",kr="[object Uint8Array]",Cr="[object Uint8ClampedArray]",ve="[object Uint16Array]",ne="[object Uint32Array]",Je=/\b__p \+= '';/g,pt=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,De=/&(?:amp|lt|gt|quot|#39);/g,St=/[&<>"']/g,Et=RegExp(De.source),ut=RegExp(St.source),Nt=/<%-([\s\S]+?)%>/g,Qt=/<%([\s\S]+?)%>/g,rr=/<%=([\s\S]+?)%>/g,Ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zt=/^\w*$/,nr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,At=RegExp(et.source),vt=/^\s+/,It=/\s/,pr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,_e=/,? & /,Ke=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mt=/[()=,{}\[\]\/\s]/,Pt=/\\(\\)?/g,Wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lt=/\w*$/,$t=/^[-+]0x[0-9a-f]+$/i,ir=/^0b[01]+$/i,or=/^\[object .+?Constructor\]$/,fr=/^0o[0-7]+$/i,Ur=/^(?:0|[1-9]\d*)$/,vr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Cn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",Yr="\\u0300-\\u036f",Yn="\\ufe20-\\ufe2f",En="\\u20d0-\\u20ff",Xn=Yr+Yn+En,Jn="\\u2700-\\u27bf",on="a-z\\xdf-\\xf6\\xf8-\\xff",On="\\xac\\xb1\\xd7\\xf7",wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hi="\\u2000-\\u206f",Si=" \\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",Ci="A-Z\\xc0-\\xd6\\xd8-\\xde",kn="\\ufe0e\\ufe0f",An=On+wn+hi+Si,un="['’]",Qn="["+Dn+"]",sn="["+An+"]",pn="["+Xn+"]",C="\\d+",N="["+Jn+"]",G="["+on+"]",ee="[^"+Dn+An+C+Jn+on+Ci+"]",ke="\\ud83c[\\udffb-\\udfff]",Ce="(?:"+pn+"|"+ke+")",Be="[^"+Dn+"]",at="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",qt="["+Ci+"]",jt="\\u200d",xr="(?:"+G+"|"+ee+")",Zr="(?:"+qt+"|"+ee+")",vn="(?:"+un+"(?:d|ll|m|re|s|t|ve))?",yn="(?:"+un+"(?:D|LL|M|RE|S|T|VE))?",li=Ce+"?",Bn="["+kn+"]?",wi="(?:"+jt+"(?:"+[Be,at,Mt].join("|")+")"+Bn+li+")*",Xr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hn=Bn+li+wi,ei="(?:"+[N,at,Mt].join("|")+")"+Hn,bo="(?:"+[Be+pn+"?",pn,at,Mt,Qn].join("|")+")",ro=RegExp(un,"g"),no=RegExp(pn,"g"),Rn=RegExp(ke+"(?="+ke+")|"+bo+Hn,"g"),_o=RegExp([qt+"?"+G+"+"+vn+"(?="+[sn,qt,"$"].join("|")+")",Zr+"+"+yn+"(?="+[sn,qt+xr,"$"].join("|")+")",qt+"?"+xr+"+"+vn,qt+"+"+yn,pi,Xr,C,ei].join("|"),"g"),ti=RegExp("["+jt+Dn+Xn+kn+"]"),ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$i=["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"],Or=-1,wr={};wr[Bt]=wr[ze]=wr[Tt]=wr[Ht]=wr[_r]=wr[kr]=wr[Cr]=wr[ve]=wr[ne]=!0,wr[pe]=wr[Ie]=wr[st]=wr[tt]=wr[Rt]=wr[Ge]=wr[Ee]=wr[we]=wr[ct]=wr[Ne]=wr[Le]=wr[Ct]=wr[_t]=wr[wt]=wr[je]=!1;var Mr={};Mr[pe]=Mr[Ie]=Mr[st]=Mr[Rt]=Mr[tt]=Mr[Ge]=Mr[Bt]=Mr[ze]=Mr[Tt]=Mr[Ht]=Mr[_r]=Mr[ct]=Mr[Ne]=Mr[Le]=Mr[Ct]=Mr[_t]=Mr[wt]=Mr[xt]=Mr[kr]=Mr[Cr]=Mr[ve]=Mr[ne]=!0,Mr[Ee]=Mr[we]=Mr[je]=!1;var L={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},se={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Vt=parseInt,gr=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Sr=typeof self=="object"&&self&&self.Object===Object&&self,dr=gr||Sr||Function("return this")(),Ar=e&&!e.nodeType&&e,Jr=Ar&&!0&&r&&!r.nodeType&&r,In=Jr&&Jr.exports===Ar,Vr=In&&gr.process,Br=function(){try{var ye=Jr&&Jr.require&&Jr.require("util").types;return ye||Vr&&Vr.binding&&Vr.binding("util")}catch{}}(),Qr=Br&&Br.isArrayBuffer,ci=Br&&Br.isDate,gi=Br&&Br.isMap,qn=Br&&Br.isRegExp,xo=Br&&Br.isSet,Ui=Br&&Br.isTypedArray;function an(ye,qe,Oe){switch(Oe.length){case 0:return ye.call(qe);case 1:return ye.call(qe,Oe[0]);case 2:return ye.call(qe,Oe[0],Oe[1]);case 3:return ye.call(qe,Oe[0],Oe[1],Oe[2])}return ye.apply(qe,Oe)}function ps(ye,qe,Oe,Dt){for(var sr=-1,Pr=ye==null?0:ye.length;++sr<Pr;){var bn=ye[sr];qe(Dt,bn,Oe(bn),ye)}return Dt}function zn(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length;++Oe<Dt&&qe(ye[Oe],Oe,ye)!==!1;);return ye}function fl(ye,qe){for(var Oe=ye==null?0:ye.length;Oe--&&qe(ye[Oe],Oe,ye)!==!1;);return ye}function Ta(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length;++Oe<Dt;)if(!qe(ye[Oe],Oe,ye))return!1;return!0}function Wi(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length,sr=0,Pr=[];++Oe<Dt;){var bn=ye[Oe];qe(bn,Oe,ye)&&(Pr[sr++]=bn)}return Pr}function So(ye,qe){var Oe=ye==null?0:ye.length;return!!Oe&&Co(ye,qe,0)>-1}function $n(ye,qe,Oe){for(var Dt=-1,sr=ye==null?0:ye.length;++Dt<sr;)if(Oe(qe,ye[Dt]))return!0;return!1}function Kr(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length,sr=Array(Dt);++Oe<Dt;)sr[Oe]=qe(ye[Oe],Oe,ye);return sr}function Ai(ye,qe){for(var Oe=-1,Dt=qe.length,sr=ye.length;++Oe<Dt;)ye[sr+Oe]=qe[Oe];return ye}function Ea(ye,qe,Oe,Dt){var sr=-1,Pr=ye==null?0:ye.length;for(Dt&&Pr&&(Oe=ye[++sr]);++sr<Pr;)Oe=qe(Oe,ye[sr],sr,ye);return Oe}function dl(ye,qe,Oe,Dt){var sr=ye==null?0:ye.length;for(Dt&&sr&&(Oe=ye[--sr]);sr--;)Oe=qe(Oe,ye[sr],sr,ye);return Oe}function $o(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length;++Oe<Dt;)if(qe(ye[Oe],Oe,ye))return!0;return!1}var hl=T("length");function pl(ye){return ye.split("")}function Gs(ye){return ye.match(Ke)||[]}function gs(ye,qe,Oe){var Dt;return Oe(ye,function(sr,Pr,bn){if(qe(sr,Pr,bn))return Dt=Pr,!1}),Dt}function ms(ye,qe,Oe,Dt){for(var sr=ye.length,Pr=Oe+(Dt?1:-1);Dt?Pr--:++Pr<sr;)if(qe(ye[Pr],Pr,ye))return Pr;return-1}function Co(ye,qe,Oe){return qe===qe?af(ye,qe,Oe):ms(ye,Zs,Oe)}function gl(ye,qe,Oe,Dt){for(var sr=Oe-1,Pr=ye.length;++sr<Pr;)if(Dt(ye[sr],qe))return sr;return-1}function Zs(ye){return ye!==ye}function ka(ye,qe){var Oe=ye==null?0:ye.length;return Oe?Re(ye,qe)/Oe:le}function T(ye){return function(qe){return qe==null?t:qe[ye]}}function P(ye){return function(qe){return ye==null?t:ye[qe]}}function U(ye,qe,Oe,Dt,sr){return sr(ye,function(Pr,bn,Wr){Oe=Dt?(Dt=!1,Pr):qe(Oe,Pr,bn,Wr)}),Oe}function te(ye,qe){var Oe=ye.length;for(ye.sort(qe);Oe--;)ye[Oe]=ye[Oe].value;return ye}function Re(ye,qe){for(var Oe,Dt=-1,sr=ye.length;++Dt<sr;){var Pr=qe(ye[Dt]);Pr!==t&&(Oe=Oe===t?Pr:Oe+Pr)}return Oe}function Te(ye,qe){for(var Oe=-1,Dt=Array(ye);++Oe<ye;)Dt[Oe]=qe(Oe);return Dt}function Ve(ye,qe){return Kr(qe,function(Oe){return[Oe,ye[Oe]]})}function gt(ye){return ye&&ye.slice(0,au(ye)+1).replace(vt,"")}function Ut(ye){return function(qe){return ye(qe)}}function hr(ye,qe){return Kr(qe,function(Oe){return ye[Oe]})}function ar(ye,qe){return ye.has(qe)}function Gr(ye,qe){for(var Oe=-1,Dt=ye.length;++Oe<Dt&&Co(qe,ye[Oe],0)>-1;);return Oe}function ni(ye,qe){for(var Oe=ye.length;Oe--&&Co(qe,ye[Oe],0)>-1;);return Oe}function Ti(ye,qe){for(var Oe=ye.length,Dt=0;Oe--;)ye[Oe]===qe&&++Dt;return Dt}var Ei=P(L),Ks=P(Z);function ml(ye){return"\\"+He[ye]}function vs(ye,qe){return ye==null?t:ye[qe]}function Ys(ye){return ti.test(ye)}function of(ye){return ri.test(ye)}function sc(ye){for(var qe,Oe=[];!(qe=ye.next()).done;)Oe.push(qe.value);return Oe}function ac(ye){var qe=-1,Oe=Array(ye.size);return ye.forEach(function(Dt,sr){Oe[++qe]=[sr,Dt]}),Oe}function su(ye,qe){return function(Oe){return ye(qe(Oe))}}function wo(ye,qe){for(var Oe=-1,Dt=ye.length,sr=0,Pr=[];++Oe<Dt;){var bn=ye[Oe];(bn===qe||bn===R)&&(ye[Oe]=R,Pr[sr++]=Oe)}return Pr}function Ra(ye){var qe=-1,Oe=Array(ye.size);return ye.forEach(function(Dt){Oe[++qe]=Dt}),Oe}function sf(ye){var qe=-1,Oe=Array(ye.size);return ye.forEach(function(Dt){Oe[++qe]=[Dt,Dt]}),Oe}function af(ye,qe,Oe){for(var Dt=Oe-1,sr=ye.length;++Dt<sr;)if(ye[Dt]===qe)return Dt;return-1}function lf(ye,qe,Oe){for(var Dt=Oe+1;Dt--;)if(ye[Dt]===qe)return Dt;return Dt}function Xs(ye){return Ys(ye)?vl(ye):hl(ye)}function fn(ye){return Ys(ye)?ki(ye):pl(ye)}function au(ye){for(var qe=ye.length;qe--&&It.test(ye.charAt(qe)););return qe}var lu=P(se);function vl(ye){for(var qe=Rn.lastIndex=0;Rn.test(ye);)++qe;return qe}function ki(ye){return ye.match(Rn)||[]}function cu(ye){return ye.match(_o)||[]}var yl=function ye(qe){qe=qe==null?dr:Ao.defaults(dr.Object(),qe,Ao.pick(dr,$i));var Oe=qe.Array,Dt=qe.Date,sr=qe.Error,Pr=qe.Function,bn=qe.Math,Wr=qe.Object,Js=qe.RegExp,uu=qe.String,Bi=qe.TypeError,bl=Oe.prototype,cf=Pr.prototype,Uo=Wr.prototype,en=qe["__core-js_shared__"],Wo=cf.toString,zr=Uo.hasOwnProperty,lc=0,ln=function(){var o=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),To=Uo.toString,cc=Wo.call(Wr),uc=dr._,fc=Js("^"+Wo.call(zr).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qs=In?qe.Buffer:t,Eo=qe.Symbol,Ia=qe.Uint8Array,La=Qs?Qs.allocUnsafe:t,ys=su(Wr.getPrototypeOf,Wr),ea=Wr.create,_l=Uo.propertyIsEnumerable,ko=bl.splice,xl=Eo?Eo.isConcatSpreadable:t,Vi=Eo?Eo.iterator:t,Ro=Eo?Eo.toStringTag:t,Vo=function(){try{var o=Hc(Wr,"defineProperty");return o({},"",{}),o}catch{}}(),uf=qe.clearTimeout!==dr.clearTimeout&&qe.clearTimeout,Ma=Dt&&Dt.now!==dr.Date.now&&Dt.now,fu=qe.setTimeout!==dr.setTimeout&&qe.setTimeout,ta=bn.ceil,bs=bn.floor,ra=Wr.getOwnPropertySymbols,Sl=Qs?Qs.isBuffer:t,na=qe.isFinite,Da=bl.join,du=su(Wr.keys,Wr),cn=bn.max,Ln=bn.min,Go=Dt.now,dc=qe.parseInt,Zo=bn.random,Cl=bl.reverse,io=Hc(qe,"DataView"),Ko=Hc(qe,"Map"),ia=Hc(qe,"Promise"),oo=Hc(qe,"Set"),Io=Hc(qe,"WeakMap"),oa=Hc(Wr,"create"),Oa=Io&&new Io,_s={},Yo=qc(io),hc=qc(Ko),ff=qc(ia),hu=qc(oo),sa=qc(Io),Xo=Eo?Eo.prototype:t,xs=Xo?Xo.valueOf:t,Pa=Xo?Xo.toString:t;function W(o){if(Nn(o)&&!br(o)&&!(o instanceof yr)){if(o instanceof ii)return o;if(zr.call(o,"__wrapped__"))return sv(o)}return new ii(o)}var Lo=function(){function o(){}return function(a){if(!Mn(a))return{};if(ea)return ea(a);o.prototype=a;var p=new o;return o.prototype=t,p}}();function Mo(){}function ii(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}W.templateSettings={escape:Nt,evaluate:Qt,interpolate:rr,variable:"",imports:{_:W}},W.prototype=Mo.prototype,W.prototype.constructor=W,ii.prototype=Lo(Mo.prototype),ii.prototype.constructor=ii;function yr(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function wl(){var o=new yr(this.__wrapped__);return o.__actions__=si(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=si(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=si(this.__views__),o}function Na(){if(this.__filtered__){var o=new yr(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Al(){var o=this.__wrapped__.value(),a=this.__dir__,p=br(o),k=a<0,B=p?o.length:0,K=kS(0,B,this.__views__),oe=K.start,de=K.end,xe=de-oe,rt=k?de:oe-1,nt=this.__iteratees__,ft=nt.length,Ot=0,Xt=Ln(xe,this.__takeCount__);if(!p||!k&&B==xe&&Xt==xe)return oi(o,this.__actions__);var cr=[];e:for(;xe--&&Ot<Xt;){rt+=a;for(var Ir=-1,ur=o[rt];++Ir<ft;){var Fr=nt[Ir],qr=Fr.iteratee,jo=Fr.type,Qi=qr(ur);if(jo==me)ur=Qi;else if(!Qi){if(jo==J)continue e;break e}}cr[Ot++]=ur}return cr}yr.prototype=Lo(Mo.prototype),yr.prototype.constructor=yr;function so(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function pc(){this.__data__=oa?oa(null):{},this.size=0}function pu(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function gu(o){var a=this.__data__;if(oa){var p=a[o];return p===g?t:p}return zr.call(a,o)?a[o]:t}function mu(o){var a=this.__data__;return oa?a[o]!==t:zr.call(a,o)}function df(o,a){var p=this.__data__;return this.size+=this.has(o)?0:1,p[o]=oa&&a===t?g:a,this}so.prototype.clear=pc,so.prototype.delete=pu,so.prototype.get=gu,so.prototype.has=mu,so.prototype.set=df;function ao(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function hf(){this.__data__=[],this.size=0}function pf(o){var a=this.__data__,p=Gi(a,o);if(p<0)return!1;var k=a.length-1;return p==k?a.pop():ko.call(a,p,1),--this.size,!0}function gc(o){var a=this.__data__,p=Gi(a,o);return p<0?t:a[p][1]}function Fa(o){return Gi(this.__data__,o)>-1}function gf(o,a){var p=this.__data__,k=Gi(p,o);return k<0?(++this.size,p.push([o,a])):p[k][1]=a,this}ao.prototype.clear=hf,ao.prototype.delete=pf,ao.prototype.get=gc,ao.prototype.has=Fa,ao.prototype.set=gf;function Do(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function mc(){this.size=0,this.__data__={hash:new so,map:new(Ko||ao),string:new so}}function Tl(o){var a=hd(this,o).delete(o);return this.size-=a?1:0,a}function mf(o){return hd(this,o).get(o)}function vf(o){return hd(this,o).has(o)}function yf(o,a){var p=hd(this,o),k=p.size;return p.set(o,a),this.size+=p.size==k?0:1,this}Do.prototype.clear=mc,Do.prototype.delete=Tl,Do.prototype.get=mf,Do.prototype.has=vf,Do.prototype.set=yf;function ui(o){var a=-1,p=o==null?0:o.length;for(this.__data__=new Do;++a<p;)this.add(o[a])}function vc(o){return this.__data__.set(o,g),this}function El(o){return this.__data__.has(o)}ui.prototype.add=ui.prototype.push=vc,ui.prototype.has=El;function Rr(o){var a=this.__data__=new ao(o);this.size=a.size}function Ri(){this.__data__=new ao,this.size=0}function aa(o){var a=this.__data__,p=a.delete(o);return this.size=a.size,p}function Ss(o){return this.__data__.get(o)}function Nr(o){return this.__data__.has(o)}function Jo(o,a){var p=this.__data__;if(p instanceof ao){var k=p.__data__;if(!Ko||k.length<i-1)return k.push([o,a]),this.size=++p.size,this;p=this.__data__=new Do(k)}return p.set(o,a),this.size=p.size,this}Rr.prototype.clear=Ri,Rr.prototype.delete=aa,Rr.prototype.get=Ss,Rr.prototype.has=Nr,Rr.prototype.set=Jo;function ja(o,a){var p=br(o),k=!p&&zc(o),B=!p&&!k&&Wl(o),K=!p&&!k&&!B&&Iu(o),oe=p||k||B||K,de=oe?Te(o.length,uu):[],xe=de.length;for(var rt in o)(a||zr.call(o,rt))&&!(oe&&(rt=="length"||B&&(rt=="offset"||rt=="parent")||K&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||Ya(rt,xe)))&&de.push(rt);return de}function mi(o){var a=o.length;return a?o[Rs(0,a-1)]:t}function Ii(o,a){return pd(si(o),ws(a,0,o.length))}function lo(o){return pd(si(o))}function yc(o,a,p){(p!==t&&!Ls(o[a],p)||p===t&&!(a in o))&&Li(o,a,p)}function fi(o,a,p){var k=o[a];(!(zr.call(o,a)&&Ls(k,p))||p===t&&!(a in o))&&Li(o,a,p)}function Gi(o,a){for(var p=o.length;p--;)if(Ls(o[p][0],a))return p;return-1}function Cs(o,a,p,k){return Qo(o,function(B,K,oe){a(k,B,p(B),oe)}),k}function vu(o,a){return o&&Xi(a,vi(a),o)}function bc(o,a){return o&&Xi(a,mo(a),o)}function Li(o,a,p){a=="__proto__"&&Vo?Vo(o,a,{configurable:!0,enumerable:!0,value:p,writable:!0}):o[a]=p}function _c(o,a){for(var p=-1,k=a.length,B=Oe(k),K=o==null;++p<k;)B[p]=K?t:qh(o,a[p]);return B}function ws(o,a,p){return o===o&&(p!==t&&(o=o<=p?o:p),a!==t&&(o=o>=a?o:a)),o}function di(o,a,p,k,B,K){var oe,de=a&E,xe=a&_,rt=a&S;if(p&&(oe=B?p(o,k,B,K):p(o)),oe!==t)return oe;if(!Mn(o))return o;var nt=br(o);if(nt){if(oe=IS(o),!de)return si(o,oe)}else{var ft=Hi(o),Ot=ft==we||ft==Ue;if(Wl(o))return ga(o,de);if(ft==Le||ft==pe||Ot&&!B){if(oe=xe||Ot?{}:Xm(o),!de)return xe?ku(o,bc(oe,o)):Sf(o,vu(oe,o))}else{if(!Mr[ft])return B?o:{};oe=LS(o,ft,de)}}K||(K=new Rr);var Xt=K.get(o);if(Xt)return Xt;K.set(o,oe),Tv(o)?o.forEach(function(ur){oe.add(di(ur,a,p,ur,o,K))}):wv(o)&&o.forEach(function(ur,Fr){oe.set(Fr,di(ur,a,p,Fr,o,K))});var cr=rt?xe?Eh:Th:xe?mo:vi,Ir=nt?t:cr(o);return zn(Ir||o,function(ur,Fr){Ir&&(Fr=ur,ur=o[Fr]),fi(oe,Fr,di(ur,a,p,Fr,o,K))}),oe}function xc(o){var a=vi(o);return function(p){return Sc(p,o,a)}}function Sc(o,a,p){var k=p.length;if(o==null)return!k;for(o=Wr(o);k--;){var B=p[k],K=a[B],oe=o[B];if(oe===t&&!(B in o)||!K(oe))return!1}return!0}function Cc(o,a,p){if(typeof o!="function")throw new Bi(u);return Af(function(){o.apply(t,p)},a)}function As(o,a,p,k){var B=-1,K=So,oe=!0,de=o.length,xe=[],rt=a.length;if(!de)return xe;p&&(a=Kr(a,Ut(p))),k?(K=$n,oe=!1):a.length>=i&&(K=ar,oe=!1,a=new ui(a));e:for(;++B<de;){var nt=o[B],ft=p==null?nt:p(nt);if(nt=k||nt!==0?nt:0,oe&&ft===ft){for(var Ot=rt;Ot--;)if(a[Ot]===ft)continue e;xe.push(nt)}else K(a,ft,k)||xe.push(nt)}return xe}var Qo=s(Mi),wc=s(Rl,!0);function yu(o,a){var p=!0;return Qo(o,function(k,B,K){return p=!!a(k,B,K),p}),p}function kl(o,a,p){for(var k=-1,B=o.length;++k<B;){var K=o[k],oe=a(K);if(oe!=null&&(de===t?oe===oe&&!Fo(oe):p(oe,de)))var de=oe,xe=K}return xe}function bf(o,a,p,k){var B=o.length;for(p=Tr(p),p<0&&(p=-p>B?0:B+p),k=k===t||k>B?B:Tr(k),k<0&&(k+=B),k=p>k?0:kv(k);p<k;)o[p++]=a;return o}function bu(o,a){var p=[];return Qo(o,function(k,B,K){a(k,B,K)&&p.push(k)}),p}function Un(o,a,p,k,B){var K=-1,oe=o.length;for(p||(p=DS),B||(B=[]);++K<oe;){var de=o[K];a>0&&p(de)?a>1?Un(de,a-1,p,k,B):Ai(B,de):k||(B[B.length]=de)}return B}var Ac=c(),_u=c(!0);function Mi(o,a){return o&&Ac(o,a,vi)}function Rl(o,a){return o&&_u(o,a,vi)}function la(o,a){return Wi(a,function(p){return Xa(o[p])})}function es(o,a){a=No(a,o);for(var p=0,k=a.length;o!=null&&p<k;)o=o[ma(a[p++])];return p&&p==k?o:t}function Ba(o,a,p){var k=a(o);return br(o)?k:Ai(k,p(o))}function Pn(o){return o==null?o===t?it:bt:Ro&&Ro in Wr(o)?ES(o):HS(o)}function Ts(o,a){return o>a}function Il(o,a){return o!=null&&zr.call(o,a)}function ca(o,a){return o!=null&&a in Wr(o)}function Ll(o,a,p){return o>=Ln(a,p)&&o<cn(a,p)}function ua(o,a,p){for(var k=p?$n:So,B=o[0].length,K=o.length,oe=K,de=Oe(K),xe=1/0,rt=[];oe--;){var nt=o[oe];oe&&a&&(nt=Kr(nt,Ut(a))),xe=Ln(nt.length,xe),de[oe]=!p&&(a||B>=120&&nt.length>=120)?new ui(oe&&nt):t}nt=o[0];var ft=-1,Ot=de[0];e:for(;++ft<B&&rt.length<xe;){var Xt=nt[ft],cr=a?a(Xt):Xt;if(Xt=p||Xt!==0?Xt:0,!(Ot?ar(Ot,cr):k(rt,cr,p))){for(oe=K;--oe;){var Ir=de[oe];if(!(Ir?ar(Ir,cr):k(o[oe],cr,p)))continue e}Ot&&Ot.push(cr),rt.push(Xt)}}return rt}function Ml(o,a,p,k){return Mi(o,function(B,K,oe){a(k,p(B),K,oe)}),k}function co(o,a,p){a=No(a,o),o=tv(o,a);var k=o==null?o:o[ma(ss(a))];return k==null?t:an(k,o,p)}function Dl(o){return Nn(o)&&Pn(o)==pe}function Es(o){return Nn(o)&&Pn(o)==st}function xu(o){return Nn(o)&&Pn(o)==Ge}function Ha(o,a,p,k,B){return o===a?!0:o==null||a==null||!Nn(o)&&!Nn(a)?o!==o&&a!==a:fa(o,a,p,k,Ha,B)}function fa(o,a,p,k,B,K){var oe=br(o),de=br(a),xe=oe?Ie:Hi(o),rt=de?Ie:Hi(a);xe=xe==pe?Le:xe,rt=rt==pe?Le:rt;var nt=xe==Le,ft=rt==Le,Ot=xe==rt;if(Ot&&Wl(o)){if(!Wl(a))return!1;oe=!0,nt=!1}if(Ot&&!nt)return K||(K=new Rr),oe||Iu(o)?Zm(o,a,p,k,B,K):AS(o,a,xe,p,k,B,K);if(!(p&x)){var Xt=nt&&zr.call(o,"__wrapped__"),cr=ft&&zr.call(a,"__wrapped__");if(Xt||cr){var Ir=Xt?o.value():o,ur=cr?a.value():a;return K||(K=new Rr),B(Ir,ur,p,k,K)}}return Ot?(K||(K=new Rr),TS(o,a,p,k,B,K)):!1}function da(o){return Nn(o)&&Hi(o)==ct}function Tc(o,a,p,k){var B=p.length,K=B,oe=!k;if(o==null)return!K;for(o=Wr(o);B--;){var de=p[B];if(oe&&de[2]?de[1]!==o[de[0]]:!(de[0]in o))return!1}for(;++B<K;){de=p[B];var xe=de[0],rt=o[xe],nt=de[1];if(oe&&de[2]){if(rt===t&&!(xe in o))return!1}else{var ft=new Rr;if(k)var Ot=k(rt,nt,xe,o,a,ft);if(!(Ot===t?Ha(nt,rt,x|M,k,ft):Ot))return!1}}return!0}function Su(o){if(!Mn(o)||PS(o))return!1;var a=Xa(o)?fc:or;return a.test(qc(o))}function ks(o){return Nn(o)&&Pn(o)==Ct}function Ol(o){return Nn(o)&&Hi(o)==_t}function Oo(o){return Nn(o)&&_d(o.length)&&!!wr[Pn(o)]}function Pl(o){return typeof o=="function"?o:o==null?vo:typeof o=="object"?br(o)?za(o[0],o[1]):uo(o):Bv(o)}function Po(o){if(!wf(o))return du(o);var a=[];for(var p in Wr(o))zr.call(o,p)&&p!="constructor"&&a.push(p);return a}function qa(o){if(!Mn(o))return BS(o);var a=wf(o),p=[];for(var k in o)k=="constructor"&&(a||!zr.call(o,k))||p.push(k);return p}function Zi(o,a){return o<a}function Ki(o,a){var p=-1,k=go(o)?Oe(o.length):[];return Qo(o,function(B,K,oe){k[++p]=a(B,K,oe)}),k}function uo(o){var a=Rh(o);return a.length==1&&a[0][2]?Qm(a[0][0],a[0][1]):function(p){return p===o||Tc(p,o,a)}}function za(o,a){return Lh(o)&&Jm(a)?Qm(ma(o),a):function(p){var k=qh(p,o);return k===t&&k===a?zh(p,o):Ha(a,k,x|M)}}function ts(o,a,p,k,B){o!==a&&Ac(a,function(K,oe){if(B||(B=new Rr),Mn(K))Yi(o,a,oe,p,ts,k,B);else{var de=k?k(Dh(o,oe),K,oe+"",o,a,B):t;de===t&&(de=K),yc(o,oe,de)}},mo)}function Yi(o,a,p,k,B,K,oe){var de=Dh(o,p),xe=Dh(a,p),rt=oe.get(xe);if(rt){yc(o,p,rt);return}var nt=K?K(de,xe,p+"",o,a,oe):t,ft=nt===t;if(ft){var Ot=br(xe),Xt=!Ot&&Wl(xe),cr=!Ot&&!Xt&&Iu(xe);nt=xe,Ot||Xt||cr?br(de)?nt=de:Vn(de)?nt=si(de):Xt?(ft=!1,nt=ga(xe,!0)):cr?(ft=!1,nt=jc(xe,!0)):nt=[]:Tf(xe)||zc(xe)?(nt=de,zc(de)?nt=Rv(de):(!Mn(de)||Xa(de))&&(nt=Xm(xe))):ft=!1}ft&&(oe.set(xe,nt),B(nt,xe,k,K,oe),oe.delete(xe)),yc(o,p,nt)}function ha(o,a){var p=o.length;if(p)return a+=a<0?p:0,Ya(a,p)?o[a]:t}function Nl(o,a,p){a.length?a=Kr(a,function(K){return br(K)?function(oe){return es(oe,K.length===1?K[0]:K)}:K}):a=[vo];var k=-1;a=Kr(a,Ut(lr()));var B=Ki(o,function(K,oe,de){var xe=Kr(a,function(rt){return rt(K)});return{criteria:xe,index:++k,value:K}});return te(B,function(K,oe){return Tu(K,oe,p)})}function $a(o,a){return pa(o,a,function(p,k){return zh(o,k)})}function pa(o,a,p){for(var k=-1,B=a.length,K={};++k<B;){var oe=a[k],de=es(o,oe);p(de,oe)&&Is(K,No(oe,o),de)}return K}function Cu(o){return function(a){return es(a,o)}}function Ec(o,a,p,k){var B=k?gl:Co,K=-1,oe=a.length,de=o;for(o===a&&(a=si(a)),p&&(de=Kr(o,Ut(p)));++K<oe;)for(var xe=0,rt=a[K],nt=p?p(rt):rt;(xe=B(de,nt,xe,k))>-1;)de!==o&&ko.call(de,xe,1),ko.call(o,xe,1);return o}function kc(o,a){for(var p=o?a.length:0,k=p-1;p--;){var B=a[p];if(p==k||B!==K){var K=B;Ya(B)?ko.call(o,B,1):Dc(o,B)}}return o}function Rs(o,a){return o+bs(Zo()*(a-o+1))}function Rc(o,a,p,k){for(var B=-1,K=cn(ta((a-o)/(p||1)),0),oe=Oe(K);K--;)oe[k?K:++B]=o,o+=p;return oe}function Fl(o,a){var p="";if(!o||a<1||a>ue)return p;do a%2&&(p+=o),a=bs(a/2),a&&(o+=o);while(a);return p}function mr(o,a){return Oh(ev(o,a,vo),o+"")}function Ua(o){return mi(Lu(o))}function Ic(o,a){var p=Lu(o);return pd(p,ws(a,0,p.length))}function Is(o,a,p,k){if(!Mn(o))return o;a=No(a,o);for(var B=-1,K=a.length,oe=K-1,de=o;de!=null&&++B<K;){var xe=ma(a[B]),rt=p;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return o;if(B!=oe){var nt=de[xe];rt=k?k(nt,xe,de):t,rt===t&&(rt=Mn(nt)?nt:Ya(a[B+1])?[]:{})}fi(de,xe,rt),de=de[xe]}return o}var Lc=Oa?function(o,a){return Oa.set(o,a),o}:vo,wu=Vo?function(o,a){return Vo(o,"toString",{configurable:!0,enumerable:!1,value:Uh(a),writable:!0})}:vo;function Mc(o){return pd(Lu(o))}function Di(o,a,p){var k=-1,B=o.length;a<0&&(a=-a>B?0:B+a),p=p>B?B:p,p<0&&(p+=B),B=a>p?0:p-a>>>0,a>>>=0;for(var K=Oe(B);++k<B;)K[k]=o[k+a];return K}function _f(o,a){var p;return Qo(o,function(k,B,K){return p=a(k,B,K),!p}),!!p}function jl(o,a,p){var k=0,B=o==null?k:o.length;if(typeof a=="number"&&a===a&&B<=Pe){for(;k<B;){var K=k+B>>>1,oe=o[K];oe!==null&&!Fo(oe)&&(p?oe<=a:oe<a)?k=K+1:B=K}return B}return Bl(o,a,vo,p)}function Bl(o,a,p,k){var B=0,K=o==null?0:o.length;if(K===0)return 0;a=p(a);for(var oe=a!==a,de=a===null,xe=Fo(a),rt=a===t;B<K;){var nt=bs((B+K)/2),ft=p(o[nt]),Ot=ft!==t,Xt=ft===null,cr=ft===ft,Ir=Fo(ft);if(oe)var ur=k||cr;else rt?ur=cr&&(k||Ot):de?ur=cr&&Ot&&(k||!Xt):xe?ur=cr&&Ot&&!Xt&&(k||!Ir):Xt||Ir?ur=!1:ur=k?ft<=a:ft<a;ur?B=nt+1:K=nt}return Ln(K,ge)}function Au(o,a){for(var p=-1,k=o.length,B=0,K=[];++p<k;){var oe=o[p],de=a?a(oe):oe;if(!p||!Ls(de,xe)){var xe=de;K[B++]=oe===0?0:oe}}return K}function Hl(o){return typeof o=="number"?o:Fo(o)?le:+o}function Oi(o){if(typeof o=="string")return o;if(br(o))return Kr(o,Oi)+"";if(Fo(o))return Pa?Pa.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function Tn(o,a,p){var k=-1,B=So,K=o.length,oe=!0,de=[],xe=de;if(p)oe=!1,B=$n;else if(K>=i){var rt=a?null:Cf(o);if(rt)return Ra(rt);oe=!1,B=ar,xe=new ui}else xe=a?[]:de;e:for(;++k<K;){var nt=o[k],ft=a?a(nt):nt;if(nt=p||nt!==0?nt:0,oe&&ft===ft){for(var Ot=xe.length;Ot--;)if(xe[Ot]===ft)continue e;a&&xe.push(ft),de.push(nt)}else B(xe,ft,p)||(xe!==de&&xe.push(ft),de.push(nt))}return de}function Dc(o,a){return a=No(a,o),o=tv(o,a),o==null||delete o[ma(ss(a))]}function Wa(o,a,p,k){return Is(o,a,p(es(o,a)),k)}function ql(o,a,p,k){for(var B=o.length,K=k?B:-1;(k?K--:++K<B)&&a(o[K],K,o););return p?Di(o,k?0:K,k?K+1:B):Di(o,k?K+1:0,k?B:K)}function oi(o,a){var p=o;return p instanceof yr&&(p=p.value()),Ea(a,function(k,B){return B.func.apply(B.thisArg,Ai([k],B.args))},p)}function Oc(o,a,p){var k=o.length;if(k<2)return k?Tn(o[0]):[];for(var B=-1,K=Oe(k);++B<k;)for(var oe=o[B],de=-1;++de<k;)de!=B&&(K[B]=As(K[B]||oe,o[de],a,p));return Tn(Un(K,1),a,p)}function Pc(o,a,p){for(var k=-1,B=o.length,K=a.length,oe={};++k<B;){var de=k<K?a[k]:t;p(oe,o[k],de)}return oe}function zl(o){return Vn(o)?o:[]}function rs(o){return typeof o=="function"?o:vo}function No(o,a){return br(o)?o:Lh(o,a)?[o]:ov(tn(o))}var xf=mr;function fo(o,a,p){var k=o.length;return p=p===t?k:p,!a&&p>=k?o:Di(o,a,p)}var ns=uf||function(o){return dr.clearTimeout(o)};function ga(o,a){if(a)return o.slice();var p=o.length,k=La?La(p):new o.constructor(p);return o.copy(k),k}function Nc(o){var a=new o.constructor(o.byteLength);return new Ia(a).set(new Ia(o)),a}function Fc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.byteLength)}function Va(o){var a=new o.constructor(o.source,Lt.exec(o));return a.lastIndex=o.lastIndex,a}function $l(o){return xs?Wr(xs.call(o)):{}}function jc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.length)}function Ga(o,a){if(o!==a){var p=o!==t,k=o===null,B=o===o,K=Fo(o),oe=a!==t,de=a===null,xe=a===a,rt=Fo(a);if(!de&&!rt&&!K&&o>a||K&&oe&&xe&&!de&&!rt||k&&oe&&xe||!p&&xe||!B)return 1;if(!k&&!K&&!rt&&o<a||rt&&p&&B&&!k&&!K||de&&p&&B||!oe&&B||!xe)return-1}return 0}function Tu(o,a,p){for(var k=-1,B=o.criteria,K=a.criteria,oe=B.length,de=p.length;++k<oe;){var xe=Ga(B[k],K[k]);if(xe){if(k>=de)return xe;var rt=p[k];return xe*(rt=="desc"?-1:1)}}return o.index-a.index}function Eu(o,a,p,k){for(var B=-1,K=o.length,oe=p.length,de=-1,xe=a.length,rt=cn(K-oe,0),nt=Oe(xe+rt),ft=!k;++de<xe;)nt[de]=a[de];for(;++B<oe;)(ft||B<K)&&(nt[p[B]]=o[B]);for(;rt--;)nt[de++]=o[B++];return nt}function Bc(o,a,p,k){for(var B=-1,K=o.length,oe=-1,de=p.length,xe=-1,rt=a.length,nt=cn(K-de,0),ft=Oe(nt+rt),Ot=!k;++B<nt;)ft[B]=o[B];for(var Xt=B;++xe<rt;)ft[Xt+xe]=a[xe];for(;++oe<de;)(Ot||B<K)&&(ft[Xt+p[oe]]=o[B++]);return ft}function si(o,a){var p=-1,k=o.length;for(a||(a=Oe(k));++p<k;)a[p]=o[p];return a}function Xi(o,a,p,k){var B=!p;p||(p={});for(var K=-1,oe=a.length;++K<oe;){var de=a[K],xe=k?k(p[de],o[de],de,p,o):t;xe===t&&(xe=o[de]),B?Li(p,de,xe):fi(p,de,xe)}return p}function Sf(o,a){return Xi(o,Ih(o),a)}function ku(o,a){return Xi(o,Km(o),a)}function Ul(o,a){return function(p,k){var B=br(p)?ps:Cs,K=a?a():{};return B(p,o,lr(k,2),K)}}function d(o){return mr(function(a,p){var k=-1,B=p.length,K=B>1?p[B-1]:t,oe=B>2?p[2]:t;for(K=o.length>3&&typeof K=="function"?(B--,K):t,oe&&Ji(p[0],p[1],oe)&&(K=B<3?t:K,B=1),a=Wr(a);++k<B;){var de=p[k];de&&o(a,de,k,K)}return a})}function s(o,a){return function(p,k){if(p==null)return p;if(!go(p))return o(p,k);for(var B=p.length,K=a?B:-1,oe=Wr(p);(a?K--:++K<B)&&k(oe[K],K,oe)!==!1;);return p}}function c(o){return function(a,p,k){for(var B=-1,K=Wr(a),oe=k(a),de=oe.length;de--;){var xe=oe[o?de:++B];if(p(K[xe],xe,K)===!1)break}return a}}function h(o,a,p){var k=a&w,B=F(o);function K(){var oe=this&&this!==dr&&this instanceof K?B:o;return oe.apply(k?p:this,arguments)}return K}function y(o){return function(a){a=tn(a);var p=Ys(a)?fn(a):t,k=p?p[0]:a.charAt(0),B=p?fo(p,1).join(""):a.slice(1);return k[o]()+B}}function D(o){return function(a){return Ea(Fv(Nv(a).replace(ro,"")),o,"")}}function F(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var p=Lo(o.prototype),k=o.apply(p,a);return Mn(k)?k:p}}function V(o,a,p){var k=F(o);function B(){for(var K=arguments.length,oe=Oe(K),de=K,xe=Ru(B);de--;)oe[de]=arguments[de];var rt=K<3&&oe[0]!==xe&&oe[K-1]!==xe?[]:wo(oe,xe);if(K-=rt.length,K<p)return po(o,a,Ye,B.placeholder,t,oe,rt,t,t,p-K);var nt=this&&this!==dr&&this instanceof B?k:o;return an(nt,this,oe)}return B}function ie(o){return function(a,p,k){var B=Wr(a);if(!go(a)){var K=lr(p,3);a=vi(a),p=function(de){return K(B[de],de,B)}}var oe=o(a,p,k);return oe>-1?B[K?a[oe]:oe]:t}}function Ae(o){return Ka(function(a){var p=a.length,k=p,B=ii.prototype.thru;for(o&&a.reverse();k--;){var K=a[k];if(typeof K!="function")throw new Bi(u);if(B&&!oe&&dd(K)=="wrapper")var oe=new ii([],!0)}for(k=oe?k:p;++k<p;){K=a[k];var de=dd(K),xe=de=="wrapper"?kh(K):t;xe&&Mh(xe[0])&&xe[1]==(Y|O|q|fe)&&!xe[4].length&&xe[9]==1?oe=oe[dd(xe[0])].apply(oe,xe[3]):oe=K.length==1&&Mh(K)?oe[de]():oe.thru(K)}return function(){var rt=arguments,nt=rt[0];if(oe&&rt.length==1&&br(nt))return oe.plant(nt).value();for(var ft=0,Ot=p?a[ft].apply(this,rt):nt;++ft<p;)Ot=a[ft].call(this,Ot);return Ot}})}function Ye(o,a,p,k,B,K,oe,de,xe,rt){var nt=a&Y,ft=a&w,Ot=a&b,Xt=a&(O|H),cr=a&X,Ir=Ot?t:F(o);function ur(){for(var Fr=arguments.length,qr=Oe(Fr),jo=Fr;jo--;)qr[jo]=arguments[jo];if(Xt)var Qi=Ru(ur),Bo=Ti(qr,Qi);if(k&&(qr=Eu(qr,k,B,Xt)),K&&(qr=Bc(qr,K,oe,Xt)),Fr-=Bo,Xt&&Fr<rt){var Gn=wo(qr,Qi);return po(o,a,Ye,ur.placeholder,p,qr,Gn,de,xe,rt-Fr)}var Ms=ft?p:this,Qa=Ot?Ms[o]:o;return Fr=qr.length,de?qr=qS(qr,de):cr&&Fr>1&&qr.reverse(),nt&&xe<Fr&&(qr.length=xe),this&&this!==dr&&this instanceof ur&&(Qa=Ir||F(Qa)),Qa.apply(Ms,qr)}return ur}function lt(o,a){return function(p,k){return Ml(p,o,a(k),{})}}function kt(o,a){return function(p,k){var B;if(p===t&&k===t)return a;if(p!==t&&(B=p),k!==t){if(B===t)return k;typeof p=="string"||typeof k=="string"?(p=Oi(p),k=Oi(k)):(p=Hl(p),k=Hl(k)),B=o(p,k)}return B}}function tr(o){return Ka(function(a){return a=Kr(a,Ut(lr())),mr(function(p){var k=this;return o(a,function(B){return an(B,k,p)})})})}function Dr(o,a){a=a===t?" ":Oi(a);var p=a.length;if(p<2)return p?Fl(a,o):a;var k=Fl(a,ta(o/Xs(a)));return Ys(a)?fo(fn(k),0,o).join(""):k.slice(0,o)}function Wn(o,a,p,k){var B=a&w,K=F(o);function oe(){for(var de=-1,xe=arguments.length,rt=-1,nt=k.length,ft=Oe(nt+xe),Ot=this&&this!==dr&&this instanceof oe?K:o;++rt<nt;)ft[rt]=k[rt];for(;xe--;)ft[rt++]=arguments[++de];return an(Ot,B?p:this,ft)}return oe}function is(o){return function(a,p,k){return k&&typeof k!="number"&&Ji(a,p,k)&&(p=k=t),a=Ja(a),p===t?(p=a,a=0):p=Ja(p),k=k===t?a<p?1:-1:Ja(k),Rc(a,p,k,o)}}function ho(o){return function(a,p){return typeof a=="string"&&typeof p=="string"||(a=as(a),p=as(p)),o(a,p)}}function po(o,a,p,k,B,K,oe,de,xe,rt){var nt=a&O,ft=nt?oe:t,Ot=nt?t:oe,Xt=nt?K:t,cr=nt?t:K;a|=nt?q:z,a&=~(nt?z:q),a&I||(a&=-4);var Ir=[o,a,B,Xt,ft,cr,Ot,de,xe,rt],ur=p.apply(t,Ir);return Mh(o)&&rv(ur,Ir),ur.placeholder=k,nv(ur,o,a)}function os(o){var a=bn[o];return function(p,k){if(p=as(p),k=k==null?0:Ln(Tr(k),292),k&&na(p)){var B=(tn(p)+"e").split("e"),K=a(B[0]+"e"+(+B[1]+k));return B=(tn(K)+"e").split("e"),+(B[0]+"e"+(+B[1]-k))}return a(p)}}var Cf=oo&&1/Ra(new oo([,-0]))[1]==be?function(o){return new oo(o)}:Gh;function fd(o){return function(a){var p=Hi(a);return p==ct?ac(a):p==_t?sf(a):Ve(a,o(a))}}function Za(o,a,p,k,B,K,oe,de){var xe=a&b;if(!xe&&typeof o!="function")throw new Bi(u);var rt=k?k.length:0;if(rt||(a&=-97,k=B=t),oe=oe===t?oe:cn(Tr(oe),0),de=de===t?de:Tr(de),rt-=B?B.length:0,a&z){var nt=k,ft=B;k=B=t}var Ot=xe?t:kh(o),Xt=[o,a,p,k,B,nt,ft,K,oe,de];if(Ot&&jS(Xt,Ot),o=Xt[0],a=Xt[1],p=Xt[2],k=Xt[3],B=Xt[4],de=Xt[9]=Xt[9]===t?xe?0:o.length:cn(Xt[9]-rt,0),!de&&a&(O|H)&&(a&=-25),!a||a==w)var cr=h(o,a,p);else a==O||a==H?cr=V(o,a,de):(a==q||a==(w|q))&&!B.length?cr=Wn(o,a,p,k):cr=Ye.apply(t,Xt);var Ir=Ot?Lc:rv;return nv(Ir(cr,Xt),o,a)}function Vm(o,a,p,k){return o===t||Ls(o,Uo[p])&&!zr.call(k,p)?a:o}function Gm(o,a,p,k,B,K){return Mn(o)&&Mn(a)&&(K.set(a,o),ts(o,a,t,Gm,K),K.delete(a)),o}function wS(o){return Tf(o)?t:o}function Zm(o,a,p,k,B,K){var oe=p&x,de=o.length,xe=a.length;if(de!=xe&&!(oe&&xe>de))return!1;var rt=K.get(o),nt=K.get(a);if(rt&&nt)return rt==a&&nt==o;var ft=-1,Ot=!0,Xt=p&M?new ui:t;for(K.set(o,a),K.set(a,o);++ft<de;){var cr=o[ft],Ir=a[ft];if(k)var ur=oe?k(Ir,cr,ft,a,o,K):k(cr,Ir,ft,o,a,K);if(ur!==t){if(ur)continue;Ot=!1;break}if(Xt){if(!$o(a,function(Fr,qr){if(!ar(Xt,qr)&&(cr===Fr||B(cr,Fr,p,k,K)))return Xt.push(qr)})){Ot=!1;break}}else if(!(cr===Ir||B(cr,Ir,p,k,K))){Ot=!1;break}}return K.delete(o),K.delete(a),Ot}function AS(o,a,p,k,B,K,oe){switch(p){case Rt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case st:return!(o.byteLength!=a.byteLength||!K(new Ia(o),new Ia(a)));case tt:case Ge:case Ne:return Ls(+o,+a);case Ee:return o.name==a.name&&o.message==a.message;case Ct:case wt:return o==a+"";case ct:var de=ac;case _t:var xe=k&x;if(de||(de=Ra),o.size!=a.size&&!xe)return!1;var rt=oe.get(o);if(rt)return rt==a;k|=M,oe.set(o,a);var nt=Zm(de(o),de(a),k,B,K,oe);return oe.delete(o),nt;case xt:if(xs)return xs.call(o)==xs.call(a)}return!1}function TS(o,a,p,k,B,K){var oe=p&x,de=Th(o),xe=de.length,rt=Th(a),nt=rt.length;if(xe!=nt&&!oe)return!1;for(var ft=xe;ft--;){var Ot=de[ft];if(!(oe?Ot in a:zr.call(a,Ot)))return!1}var Xt=K.get(o),cr=K.get(a);if(Xt&&cr)return Xt==a&&cr==o;var Ir=!0;K.set(o,a),K.set(a,o);for(var ur=oe;++ft<xe;){Ot=de[ft];var Fr=o[Ot],qr=a[Ot];if(k)var jo=oe?k(qr,Fr,Ot,a,o,K):k(Fr,qr,Ot,o,a,K);if(!(jo===t?Fr===qr||B(Fr,qr,p,k,K):jo)){Ir=!1;break}ur||(ur=Ot=="constructor")}if(Ir&&!ur){var Qi=o.constructor,Bo=a.constructor;Qi!=Bo&&"constructor"in o&&"constructor"in a&&!(typeof Qi=="function"&&Qi instanceof Qi&&typeof Bo=="function"&&Bo instanceof Bo)&&(Ir=!1)}return K.delete(o),K.delete(a),Ir}function Ka(o){return Oh(ev(o,t,cv),o+"")}function Th(o){return Ba(o,vi,Ih)}function Eh(o){return Ba(o,mo,Km)}var kh=Oa?function(o){return Oa.get(o)}:Gh;function dd(o){for(var a=o.name+"",p=_s[a],k=zr.call(_s,a)?p.length:0;k--;){var B=p[k],K=B.func;if(K==null||K==o)return B.name}return a}function Ru(o){var a=zr.call(W,"placeholder")?W:o;return a.placeholder}function lr(){var o=W.iteratee||Wh;return o=o===Wh?Pl:o,arguments.length?o(arguments[0],arguments[1]):o}function hd(o,a){var p=o.__data__;return OS(a)?p[typeof a=="string"?"string":"hash"]:p.map}function Rh(o){for(var a=vi(o),p=a.length;p--;){var k=a[p],B=o[k];a[p]=[k,B,Jm(B)]}return a}function Hc(o,a){var p=vs(o,a);return Su(p)?p:t}function ES(o){var a=zr.call(o,Ro),p=o[Ro];try{o[Ro]=t;var k=!0}catch{}var B=To.call(o);return k&&(a?o[Ro]=p:delete o[Ro]),B}var Ih=ra?function(o){return o==null?[]:(o=Wr(o),Wi(ra(o),function(a){return _l.call(o,a)}))}:Zh,Km=ra?function(o){for(var a=[];o;)Ai(a,Ih(o)),o=ys(o);return a}:Zh,Hi=Pn;(io&&Hi(new io(new ArrayBuffer(1)))!=Rt||Ko&&Hi(new Ko)!=ct||ia&&Hi(ia.resolve())!=Ze||oo&&Hi(new oo)!=_t||Io&&Hi(new Io)!=je)&&(Hi=function(o){var a=Pn(o),p=a==Le?o.constructor:t,k=p?qc(p):"";if(k)switch(k){case Yo:return Rt;case hc:return ct;case ff:return Ze;case hu:return _t;case sa:return je}return a});function kS(o,a,p){for(var k=-1,B=p.length;++k<B;){var K=p[k],oe=K.size;switch(K.type){case"drop":o+=oe;break;case"dropRight":a-=oe;break;case"take":a=Ln(a,o+oe);break;case"takeRight":o=cn(o,a-oe);break}}return{start:o,end:a}}function RS(o){var a=o.match($);return a?a[1].split(_e):[]}function Ym(o,a,p){a=No(a,o);for(var k=-1,B=a.length,K=!1;++k<B;){var oe=ma(a[k]);if(!(K=o!=null&&p(o,oe)))break;o=o[oe]}return K||++k!=B?K:(B=o==null?0:o.length,!!B&&_d(B)&&Ya(oe,B)&&(br(o)||zc(o)))}function IS(o){var a=o.length,p=new o.constructor(a);return a&&typeof o[0]=="string"&&zr.call(o,"index")&&(p.index=o.index,p.input=o.input),p}function Xm(o){return typeof o.constructor=="function"&&!wf(o)?Lo(ys(o)):{}}function LS(o,a,p){var k=o.constructor;switch(a){case st:return Nc(o);case tt:case Ge:return new k(+o);case Rt:return Fc(o,p);case Bt:case ze:case Tt:case Ht:case _r:case kr:case Cr:case ve:case ne:return jc(o,p);case ct:return new k;case Ne:case wt:return new k(o);case Ct:return Va(o);case _t:return new k;case xt:return $l(o)}}function MS(o,a){var p=a.length;if(!p)return o;var k=p-1;return a[k]=(p>1?"& ":"")+a[k],a=a.join(p>2?", ":" "),o.replace(pr,`{
33
+ */var a4=Pf.exports,Uv;function l4(){return Uv||(Uv=1,function(r,e){(function(){var t,n="4.17.21",i=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",f="Invalid `variable` option passed into `_.template`",g="__lodash_hash_undefined__",m=500,R="__lodash_placeholder__",E=1,_=2,S=4,x=1,M=2,w=1,b=2,I=4,O=8,H=16,q=32,z=64,Y=128,fe=256,X=512,he=30,j="...",re=800,Q=16,J=1,me=2,ce=3,be=1/0,ue=9007199254740991,Se=17976931348623157e292,le=NaN,ae=4294967295,ge=ae-1,Pe=ae>>>1,Qe=[["ary",Y],["bind",w],["bindKey",b],["curry",O],["curryRight",H],["flip",X],["partial",q],["partialRight",z],["rearg",fe]],pe="[object Arguments]",Ie="[object Array]",Xe="[object AsyncFunction]",tt="[object Boolean]",Ue="[object Date]",Me="[object DOMException]",Ee="[object Error]",we="[object Function]",We="[object GeneratorFunction]",ct="[object Map]",Ne="[object Number]",bt="[object Null]",Le="[object Object]",Ze="[object Promise]",ot="[object Proxy]",Ct="[object RegExp]",_t="[object Set]",wt="[object String]",xt="[object Symbol]",it="[object Undefined]",je="[object WeakMap]",yt="[object WeakSet]",st="[object ArrayBuffer]",Rt="[object DataView]",Bt="[object Float32Array]",ze="[object Float64Array]",Tt="[object Int8Array]",Ht="[object Int16Array]",_r="[object Int32Array]",kr="[object Uint8Array]",Cr="[object Uint8ClampedArray]",ve="[object Uint16Array]",ne="[object Uint32Array]",Je=/\b__p \+= '';/g,pt=/\b(__p \+=) '' \+/g,$e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,De=/&(?:amp|lt|gt|quot|#39);/g,St=/[&<>"']/g,Et=RegExp(De.source),ut=RegExp(St.source),Nt=/<%-([\s\S]+?)%>/g,Qt=/<%([\s\S]+?)%>/g,rr=/<%=([\s\S]+?)%>/g,Ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zt=/^\w*$/,nr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,At=RegExp(et.source),vt=/^\s+/,It=/\s/,pr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$=/\{\n\/\* \[wrapped with (.+)\] \*/,_e=/,? & /,Ke=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mt=/[()=,{}\[\]\/\s]/,Pt=/\\(\\)?/g,Wt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lt=/\w*$/,$t=/^[-+]0x[0-9a-f]+$/i,ir=/^0b[01]+$/i,or=/^\[object .+?Constructor\]$/,fr=/^0o[0-7]+$/i,Ur=/^(?:0|[1-9]\d*)$/,vr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kn=/($^)/,Cn=/['\n\r\u2028\u2029\\]/g,Dn="\\ud800-\\udfff",Yr="\\u0300-\\u036f",Yn="\\ufe20-\\ufe2f",En="\\u20d0-\\u20ff",Xn=Yr+Yn+En,Jn="\\u2700-\\u27bf",on="a-z\\xdf-\\xf6\\xf8-\\xff",On="\\xac\\xb1\\xd7\\xf7",wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hi="\\u2000-\\u206f",Si=" \\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",Ci="A-Z\\xc0-\\xd6\\xd8-\\xde",kn="\\ufe0e\\ufe0f",An=On+wn+hi+Si,un="['’]",Qn="["+Dn+"]",sn="["+An+"]",pn="["+Xn+"]",C="\\d+",N="["+Jn+"]",G="["+on+"]",ee="[^"+Dn+An+C+Jn+on+Ci+"]",ke="\\ud83c[\\udffb-\\udfff]",Ce="(?:"+pn+"|"+ke+")",Be="[^"+Dn+"]",at="(?:\\ud83c[\\udde6-\\uddff]){2}",Mt="[\\ud800-\\udbff][\\udc00-\\udfff]",qt="["+Ci+"]",jt="\\u200d",xr="(?:"+G+"|"+ee+")",Zr="(?:"+qt+"|"+ee+")",vn="(?:"+un+"(?:d|ll|m|re|s|t|ve))?",yn="(?:"+un+"(?:D|LL|M|RE|S|T|VE))?",li=Ce+"?",Bn="["+kn+"]?",wi="(?:"+jt+"(?:"+[Be,at,Mt].join("|")+")"+Bn+li+")*",Xr="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hn=Bn+li+wi,ei="(?:"+[N,at,Mt].join("|")+")"+Hn,bo="(?:"+[Be+pn+"?",pn,at,Mt,Qn].join("|")+")",ro=RegExp(un,"g"),no=RegExp(pn,"g"),Rn=RegExp(ke+"(?="+ke+")|"+bo+Hn,"g"),_o=RegExp([qt+"?"+G+"+"+vn+"(?="+[sn,qt,"$"].join("|")+")",Zr+"+"+yn+"(?="+[sn,qt+xr,"$"].join("|")+")",qt+"?"+xr+"+"+vn,qt+"+"+yn,pi,Xr,C,ei].join("|"),"g"),ti=RegExp("["+jt+Dn+Xn+kn+"]"),ri=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$i=["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"],Or=-1,wr={};wr[Bt]=wr[ze]=wr[Tt]=wr[Ht]=wr[_r]=wr[kr]=wr[Cr]=wr[ve]=wr[ne]=!0,wr[pe]=wr[Ie]=wr[st]=wr[tt]=wr[Rt]=wr[Ue]=wr[Ee]=wr[we]=wr[ct]=wr[Ne]=wr[Le]=wr[Ct]=wr[_t]=wr[wt]=wr[je]=!1;var Mr={};Mr[pe]=Mr[Ie]=Mr[st]=Mr[Rt]=Mr[tt]=Mr[Ue]=Mr[Bt]=Mr[ze]=Mr[Tt]=Mr[Ht]=Mr[_r]=Mr[ct]=Mr[Ne]=Mr[Le]=Mr[Ct]=Mr[_t]=Mr[wt]=Mr[xt]=Mr[kr]=Mr[Cr]=Mr[ve]=Mr[ne]=!0,Mr[Ee]=Mr[we]=Mr[je]=!1;var L={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},se={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},He={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yt=parseFloat,Vt=parseInt,gr=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Sr=typeof self=="object"&&self&&self.Object===Object&&self,dr=gr||Sr||Function("return this")(),Ar=e&&!e.nodeType&&e,Jr=Ar&&!0&&r&&!r.nodeType&&r,In=Jr&&Jr.exports===Ar,Vr=In&&gr.process,Br=function(){try{var ye=Jr&&Jr.require&&Jr.require("util").types;return ye||Vr&&Vr.binding&&Vr.binding("util")}catch{}}(),Qr=Br&&Br.isArrayBuffer,ci=Br&&Br.isDate,gi=Br&&Br.isMap,qn=Br&&Br.isRegExp,xo=Br&&Br.isSet,Ui=Br&&Br.isTypedArray;function an(ye,qe,Oe){switch(Oe.length){case 0:return ye.call(qe);case 1:return ye.call(qe,Oe[0]);case 2:return ye.call(qe,Oe[0],Oe[1]);case 3:return ye.call(qe,Oe[0],Oe[1],Oe[2])}return ye.apply(qe,Oe)}function ps(ye,qe,Oe,Dt){for(var sr=-1,Pr=ye==null?0:ye.length;++sr<Pr;){var bn=ye[sr];qe(Dt,bn,Oe(bn),ye)}return Dt}function zn(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length;++Oe<Dt&&qe(ye[Oe],Oe,ye)!==!1;);return ye}function fl(ye,qe){for(var Oe=ye==null?0:ye.length;Oe--&&qe(ye[Oe],Oe,ye)!==!1;);return ye}function Ta(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length;++Oe<Dt;)if(!qe(ye[Oe],Oe,ye))return!1;return!0}function Wi(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length,sr=0,Pr=[];++Oe<Dt;){var bn=ye[Oe];qe(bn,Oe,ye)&&(Pr[sr++]=bn)}return Pr}function So(ye,qe){var Oe=ye==null?0:ye.length;return!!Oe&&Co(ye,qe,0)>-1}function $n(ye,qe,Oe){for(var Dt=-1,sr=ye==null?0:ye.length;++Dt<sr;)if(Oe(qe,ye[Dt]))return!0;return!1}function Kr(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length,sr=Array(Dt);++Oe<Dt;)sr[Oe]=qe(ye[Oe],Oe,ye);return sr}function Ai(ye,qe){for(var Oe=-1,Dt=qe.length,sr=ye.length;++Oe<Dt;)ye[sr+Oe]=qe[Oe];return ye}function Ea(ye,qe,Oe,Dt){var sr=-1,Pr=ye==null?0:ye.length;for(Dt&&Pr&&(Oe=ye[++sr]);++sr<Pr;)Oe=qe(Oe,ye[sr],sr,ye);return Oe}function dl(ye,qe,Oe,Dt){var sr=ye==null?0:ye.length;for(Dt&&sr&&(Oe=ye[--sr]);sr--;)Oe=qe(Oe,ye[sr],sr,ye);return Oe}function $o(ye,qe){for(var Oe=-1,Dt=ye==null?0:ye.length;++Oe<Dt;)if(qe(ye[Oe],Oe,ye))return!0;return!1}var hl=T("length");function pl(ye){return ye.split("")}function Gs(ye){return ye.match(Ke)||[]}function gs(ye,qe,Oe){var Dt;return Oe(ye,function(sr,Pr,bn){if(qe(sr,Pr,bn))return Dt=Pr,!1}),Dt}function ms(ye,qe,Oe,Dt){for(var sr=ye.length,Pr=Oe+(Dt?1:-1);Dt?Pr--:++Pr<sr;)if(qe(ye[Pr],Pr,ye))return Pr;return-1}function Co(ye,qe,Oe){return qe===qe?af(ye,qe,Oe):ms(ye,Zs,Oe)}function gl(ye,qe,Oe,Dt){for(var sr=Oe-1,Pr=ye.length;++sr<Pr;)if(Dt(ye[sr],qe))return sr;return-1}function Zs(ye){return ye!==ye}function ka(ye,qe){var Oe=ye==null?0:ye.length;return Oe?Re(ye,qe)/Oe:le}function T(ye){return function(qe){return qe==null?t:qe[ye]}}function P(ye){return function(qe){return ye==null?t:ye[qe]}}function U(ye,qe,Oe,Dt,sr){return sr(ye,function(Pr,bn,Wr){Oe=Dt?(Dt=!1,Pr):qe(Oe,Pr,bn,Wr)}),Oe}function te(ye,qe){var Oe=ye.length;for(ye.sort(qe);Oe--;)ye[Oe]=ye[Oe].value;return ye}function Re(ye,qe){for(var Oe,Dt=-1,sr=ye.length;++Dt<sr;){var Pr=qe(ye[Dt]);Pr!==t&&(Oe=Oe===t?Pr:Oe+Pr)}return Oe}function Te(ye,qe){for(var Oe=-1,Dt=Array(ye);++Oe<ye;)Dt[Oe]=qe(Oe);return Dt}function Ge(ye,qe){return Kr(qe,function(Oe){return[Oe,ye[Oe]]})}function gt(ye){return ye&&ye.slice(0,au(ye)+1).replace(vt,"")}function Ut(ye){return function(qe){return ye(qe)}}function hr(ye,qe){return Kr(qe,function(Oe){return ye[Oe]})}function ar(ye,qe){return ye.has(qe)}function Gr(ye,qe){for(var Oe=-1,Dt=ye.length;++Oe<Dt&&Co(qe,ye[Oe],0)>-1;);return Oe}function ni(ye,qe){for(var Oe=ye.length;Oe--&&Co(qe,ye[Oe],0)>-1;);return Oe}function Ti(ye,qe){for(var Oe=ye.length,Dt=0;Oe--;)ye[Oe]===qe&&++Dt;return Dt}var Ei=P(L),Ks=P(Z);function ml(ye){return"\\"+He[ye]}function vs(ye,qe){return ye==null?t:ye[qe]}function Ys(ye){return ti.test(ye)}function of(ye){return ri.test(ye)}function sc(ye){for(var qe,Oe=[];!(qe=ye.next()).done;)Oe.push(qe.value);return Oe}function ac(ye){var qe=-1,Oe=Array(ye.size);return ye.forEach(function(Dt,sr){Oe[++qe]=[sr,Dt]}),Oe}function su(ye,qe){return function(Oe){return ye(qe(Oe))}}function wo(ye,qe){for(var Oe=-1,Dt=ye.length,sr=0,Pr=[];++Oe<Dt;){var bn=ye[Oe];(bn===qe||bn===R)&&(ye[Oe]=R,Pr[sr++]=Oe)}return Pr}function Ra(ye){var qe=-1,Oe=Array(ye.size);return ye.forEach(function(Dt){Oe[++qe]=Dt}),Oe}function sf(ye){var qe=-1,Oe=Array(ye.size);return ye.forEach(function(Dt){Oe[++qe]=[Dt,Dt]}),Oe}function af(ye,qe,Oe){for(var Dt=Oe-1,sr=ye.length;++Dt<sr;)if(ye[Dt]===qe)return Dt;return-1}function lf(ye,qe,Oe){for(var Dt=Oe+1;Dt--;)if(ye[Dt]===qe)return Dt;return Dt}function Xs(ye){return Ys(ye)?vl(ye):hl(ye)}function fn(ye){return Ys(ye)?ki(ye):pl(ye)}function au(ye){for(var qe=ye.length;qe--&&It.test(ye.charAt(qe)););return qe}var lu=P(se);function vl(ye){for(var qe=Rn.lastIndex=0;Rn.test(ye);)++qe;return qe}function ki(ye){return ye.match(Rn)||[]}function cu(ye){return ye.match(_o)||[]}var yl=function ye(qe){qe=qe==null?dr:Ao.defaults(dr.Object(),qe,Ao.pick(dr,$i));var Oe=qe.Array,Dt=qe.Date,sr=qe.Error,Pr=qe.Function,bn=qe.Math,Wr=qe.Object,Js=qe.RegExp,uu=qe.String,Bi=qe.TypeError,bl=Oe.prototype,cf=Pr.prototype,Uo=Wr.prototype,en=qe["__core-js_shared__"],Wo=cf.toString,zr=Uo.hasOwnProperty,lc=0,ln=function(){var o=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),To=Uo.toString,cc=Wo.call(Wr),uc=dr._,fc=Js("^"+Wo.call(zr).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Qs=In?qe.Buffer:t,Eo=qe.Symbol,Ia=qe.Uint8Array,La=Qs?Qs.allocUnsafe:t,ys=su(Wr.getPrototypeOf,Wr),ea=Wr.create,_l=Uo.propertyIsEnumerable,ko=bl.splice,xl=Eo?Eo.isConcatSpreadable:t,Vi=Eo?Eo.iterator:t,Ro=Eo?Eo.toStringTag:t,Vo=function(){try{var o=Hc(Wr,"defineProperty");return o({},"",{}),o}catch{}}(),uf=qe.clearTimeout!==dr.clearTimeout&&qe.clearTimeout,Ma=Dt&&Dt.now!==dr.Date.now&&Dt.now,fu=qe.setTimeout!==dr.setTimeout&&qe.setTimeout,ta=bn.ceil,bs=bn.floor,ra=Wr.getOwnPropertySymbols,Sl=Qs?Qs.isBuffer:t,na=qe.isFinite,Da=bl.join,du=su(Wr.keys,Wr),cn=bn.max,Ln=bn.min,Go=Dt.now,dc=qe.parseInt,Zo=bn.random,Cl=bl.reverse,io=Hc(qe,"DataView"),Ko=Hc(qe,"Map"),ia=Hc(qe,"Promise"),oo=Hc(qe,"Set"),Io=Hc(qe,"WeakMap"),oa=Hc(Wr,"create"),Oa=Io&&new Io,_s={},Yo=qc(io),hc=qc(Ko),ff=qc(ia),hu=qc(oo),sa=qc(Io),Xo=Eo?Eo.prototype:t,xs=Xo?Xo.valueOf:t,Pa=Xo?Xo.toString:t;function W(o){if(Nn(o)&&!br(o)&&!(o instanceof yr)){if(o instanceof ii)return o;if(zr.call(o,"__wrapped__"))return sv(o)}return new ii(o)}var Lo=function(){function o(){}return function(a){if(!Mn(a))return{};if(ea)return ea(a);o.prototype=a;var p=new o;return o.prototype=t,p}}();function Mo(){}function ii(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=t}W.templateSettings={escape:Nt,evaluate:Qt,interpolate:rr,variable:"",imports:{_:W}},W.prototype=Mo.prototype,W.prototype.constructor=W,ii.prototype=Lo(Mo.prototype),ii.prototype.constructor=ii;function yr(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ae,this.__views__=[]}function wl(){var o=new yr(this.__wrapped__);return o.__actions__=si(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=si(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=si(this.__views__),o}function Na(){if(this.__filtered__){var o=new yr(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function Al(){var o=this.__wrapped__.value(),a=this.__dir__,p=br(o),k=a<0,B=p?o.length:0,K=kS(0,B,this.__views__),oe=K.start,de=K.end,xe=de-oe,rt=k?de:oe-1,nt=this.__iteratees__,ft=nt.length,Ot=0,Xt=Ln(xe,this.__takeCount__);if(!p||!k&&B==xe&&Xt==xe)return oi(o,this.__actions__);var cr=[];e:for(;xe--&&Ot<Xt;){rt+=a;for(var Ir=-1,ur=o[rt];++Ir<ft;){var Fr=nt[Ir],qr=Fr.iteratee,jo=Fr.type,Qi=qr(ur);if(jo==me)ur=Qi;else if(!Qi){if(jo==J)continue e;break e}}cr[Ot++]=ur}return cr}yr.prototype=Lo(Mo.prototype),yr.prototype.constructor=yr;function so(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function pc(){this.__data__=oa?oa(null):{},this.size=0}function pu(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function gu(o){var a=this.__data__;if(oa){var p=a[o];return p===g?t:p}return zr.call(a,o)?a[o]:t}function mu(o){var a=this.__data__;return oa?a[o]!==t:zr.call(a,o)}function df(o,a){var p=this.__data__;return this.size+=this.has(o)?0:1,p[o]=oa&&a===t?g:a,this}so.prototype.clear=pc,so.prototype.delete=pu,so.prototype.get=gu,so.prototype.has=mu,so.prototype.set=df;function ao(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function hf(){this.__data__=[],this.size=0}function pf(o){var a=this.__data__,p=Gi(a,o);if(p<0)return!1;var k=a.length-1;return p==k?a.pop():ko.call(a,p,1),--this.size,!0}function gc(o){var a=this.__data__,p=Gi(a,o);return p<0?t:a[p][1]}function Fa(o){return Gi(this.__data__,o)>-1}function gf(o,a){var p=this.__data__,k=Gi(p,o);return k<0?(++this.size,p.push([o,a])):p[k][1]=a,this}ao.prototype.clear=hf,ao.prototype.delete=pf,ao.prototype.get=gc,ao.prototype.has=Fa,ao.prototype.set=gf;function Do(o){var a=-1,p=o==null?0:o.length;for(this.clear();++a<p;){var k=o[a];this.set(k[0],k[1])}}function mc(){this.size=0,this.__data__={hash:new so,map:new(Ko||ao),string:new so}}function Tl(o){var a=hd(this,o).delete(o);return this.size-=a?1:0,a}function mf(o){return hd(this,o).get(o)}function vf(o){return hd(this,o).has(o)}function yf(o,a){var p=hd(this,o),k=p.size;return p.set(o,a),this.size+=p.size==k?0:1,this}Do.prototype.clear=mc,Do.prototype.delete=Tl,Do.prototype.get=mf,Do.prototype.has=vf,Do.prototype.set=yf;function ui(o){var a=-1,p=o==null?0:o.length;for(this.__data__=new Do;++a<p;)this.add(o[a])}function vc(o){return this.__data__.set(o,g),this}function El(o){return this.__data__.has(o)}ui.prototype.add=ui.prototype.push=vc,ui.prototype.has=El;function Rr(o){var a=this.__data__=new ao(o);this.size=a.size}function Ri(){this.__data__=new ao,this.size=0}function aa(o){var a=this.__data__,p=a.delete(o);return this.size=a.size,p}function Ss(o){return this.__data__.get(o)}function Nr(o){return this.__data__.has(o)}function Jo(o,a){var p=this.__data__;if(p instanceof ao){var k=p.__data__;if(!Ko||k.length<i-1)return k.push([o,a]),this.size=++p.size,this;p=this.__data__=new Do(k)}return p.set(o,a),this.size=p.size,this}Rr.prototype.clear=Ri,Rr.prototype.delete=aa,Rr.prototype.get=Ss,Rr.prototype.has=Nr,Rr.prototype.set=Jo;function ja(o,a){var p=br(o),k=!p&&zc(o),B=!p&&!k&&Wl(o),K=!p&&!k&&!B&&Iu(o),oe=p||k||B||K,de=oe?Te(o.length,uu):[],xe=de.length;for(var rt in o)(a||zr.call(o,rt))&&!(oe&&(rt=="length"||B&&(rt=="offset"||rt=="parent")||K&&(rt=="buffer"||rt=="byteLength"||rt=="byteOffset")||Ya(rt,xe)))&&de.push(rt);return de}function mi(o){var a=o.length;return a?o[Rs(0,a-1)]:t}function Ii(o,a){return pd(si(o),ws(a,0,o.length))}function lo(o){return pd(si(o))}function yc(o,a,p){(p!==t&&!Ls(o[a],p)||p===t&&!(a in o))&&Li(o,a,p)}function fi(o,a,p){var k=o[a];(!(zr.call(o,a)&&Ls(k,p))||p===t&&!(a in o))&&Li(o,a,p)}function Gi(o,a){for(var p=o.length;p--;)if(Ls(o[p][0],a))return p;return-1}function Cs(o,a,p,k){return Qo(o,function(B,K,oe){a(k,B,p(B),oe)}),k}function vu(o,a){return o&&Xi(a,vi(a),o)}function bc(o,a){return o&&Xi(a,mo(a),o)}function Li(o,a,p){a=="__proto__"&&Vo?Vo(o,a,{configurable:!0,enumerable:!0,value:p,writable:!0}):o[a]=p}function _c(o,a){for(var p=-1,k=a.length,B=Oe(k),K=o==null;++p<k;)B[p]=K?t:qh(o,a[p]);return B}function ws(o,a,p){return o===o&&(p!==t&&(o=o<=p?o:p),a!==t&&(o=o>=a?o:a)),o}function di(o,a,p,k,B,K){var oe,de=a&E,xe=a&_,rt=a&S;if(p&&(oe=B?p(o,k,B,K):p(o)),oe!==t)return oe;if(!Mn(o))return o;var nt=br(o);if(nt){if(oe=IS(o),!de)return si(o,oe)}else{var ft=Hi(o),Ot=ft==we||ft==We;if(Wl(o))return ga(o,de);if(ft==Le||ft==pe||Ot&&!B){if(oe=xe||Ot?{}:Xm(o),!de)return xe?ku(o,bc(oe,o)):Sf(o,vu(oe,o))}else{if(!Mr[ft])return B?o:{};oe=LS(o,ft,de)}}K||(K=new Rr);var Xt=K.get(o);if(Xt)return Xt;K.set(o,oe),Tv(o)?o.forEach(function(ur){oe.add(di(ur,a,p,ur,o,K))}):wv(o)&&o.forEach(function(ur,Fr){oe.set(Fr,di(ur,a,p,Fr,o,K))});var cr=rt?xe?Eh:Th:xe?mo:vi,Ir=nt?t:cr(o);return zn(Ir||o,function(ur,Fr){Ir&&(Fr=ur,ur=o[Fr]),fi(oe,Fr,di(ur,a,p,Fr,o,K))}),oe}function xc(o){var a=vi(o);return function(p){return Sc(p,o,a)}}function Sc(o,a,p){var k=p.length;if(o==null)return!k;for(o=Wr(o);k--;){var B=p[k],K=a[B],oe=o[B];if(oe===t&&!(B in o)||!K(oe))return!1}return!0}function Cc(o,a,p){if(typeof o!="function")throw new Bi(u);return Af(function(){o.apply(t,p)},a)}function As(o,a,p,k){var B=-1,K=So,oe=!0,de=o.length,xe=[],rt=a.length;if(!de)return xe;p&&(a=Kr(a,Ut(p))),k?(K=$n,oe=!1):a.length>=i&&(K=ar,oe=!1,a=new ui(a));e:for(;++B<de;){var nt=o[B],ft=p==null?nt:p(nt);if(nt=k||nt!==0?nt:0,oe&&ft===ft){for(var Ot=rt;Ot--;)if(a[Ot]===ft)continue e;xe.push(nt)}else K(a,ft,k)||xe.push(nt)}return xe}var Qo=s(Mi),wc=s(Rl,!0);function yu(o,a){var p=!0;return Qo(o,function(k,B,K){return p=!!a(k,B,K),p}),p}function kl(o,a,p){for(var k=-1,B=o.length;++k<B;){var K=o[k],oe=a(K);if(oe!=null&&(de===t?oe===oe&&!Fo(oe):p(oe,de)))var de=oe,xe=K}return xe}function bf(o,a,p,k){var B=o.length;for(p=Tr(p),p<0&&(p=-p>B?0:B+p),k=k===t||k>B?B:Tr(k),k<0&&(k+=B),k=p>k?0:kv(k);p<k;)o[p++]=a;return o}function bu(o,a){var p=[];return Qo(o,function(k,B,K){a(k,B,K)&&p.push(k)}),p}function Un(o,a,p,k,B){var K=-1,oe=o.length;for(p||(p=DS),B||(B=[]);++K<oe;){var de=o[K];a>0&&p(de)?a>1?Un(de,a-1,p,k,B):Ai(B,de):k||(B[B.length]=de)}return B}var Ac=c(),_u=c(!0);function Mi(o,a){return o&&Ac(o,a,vi)}function Rl(o,a){return o&&_u(o,a,vi)}function la(o,a){return Wi(a,function(p){return Xa(o[p])})}function es(o,a){a=No(a,o);for(var p=0,k=a.length;o!=null&&p<k;)o=o[ma(a[p++])];return p&&p==k?o:t}function Ba(o,a,p){var k=a(o);return br(o)?k:Ai(k,p(o))}function Pn(o){return o==null?o===t?it:bt:Ro&&Ro in Wr(o)?ES(o):HS(o)}function Ts(o,a){return o>a}function Il(o,a){return o!=null&&zr.call(o,a)}function ca(o,a){return o!=null&&a in Wr(o)}function Ll(o,a,p){return o>=Ln(a,p)&&o<cn(a,p)}function ua(o,a,p){for(var k=p?$n:So,B=o[0].length,K=o.length,oe=K,de=Oe(K),xe=1/0,rt=[];oe--;){var nt=o[oe];oe&&a&&(nt=Kr(nt,Ut(a))),xe=Ln(nt.length,xe),de[oe]=!p&&(a||B>=120&&nt.length>=120)?new ui(oe&&nt):t}nt=o[0];var ft=-1,Ot=de[0];e:for(;++ft<B&&rt.length<xe;){var Xt=nt[ft],cr=a?a(Xt):Xt;if(Xt=p||Xt!==0?Xt:0,!(Ot?ar(Ot,cr):k(rt,cr,p))){for(oe=K;--oe;){var Ir=de[oe];if(!(Ir?ar(Ir,cr):k(o[oe],cr,p)))continue e}Ot&&Ot.push(cr),rt.push(Xt)}}return rt}function Ml(o,a,p,k){return Mi(o,function(B,K,oe){a(k,p(B),K,oe)}),k}function co(o,a,p){a=No(a,o),o=tv(o,a);var k=o==null?o:o[ma(ss(a))];return k==null?t:an(k,o,p)}function Dl(o){return Nn(o)&&Pn(o)==pe}function Es(o){return Nn(o)&&Pn(o)==st}function xu(o){return Nn(o)&&Pn(o)==Ue}function Ha(o,a,p,k,B){return o===a?!0:o==null||a==null||!Nn(o)&&!Nn(a)?o!==o&&a!==a:fa(o,a,p,k,Ha,B)}function fa(o,a,p,k,B,K){var oe=br(o),de=br(a),xe=oe?Ie:Hi(o),rt=de?Ie:Hi(a);xe=xe==pe?Le:xe,rt=rt==pe?Le:rt;var nt=xe==Le,ft=rt==Le,Ot=xe==rt;if(Ot&&Wl(o)){if(!Wl(a))return!1;oe=!0,nt=!1}if(Ot&&!nt)return K||(K=new Rr),oe||Iu(o)?Zm(o,a,p,k,B,K):AS(o,a,xe,p,k,B,K);if(!(p&x)){var Xt=nt&&zr.call(o,"__wrapped__"),cr=ft&&zr.call(a,"__wrapped__");if(Xt||cr){var Ir=Xt?o.value():o,ur=cr?a.value():a;return K||(K=new Rr),B(Ir,ur,p,k,K)}}return Ot?(K||(K=new Rr),TS(o,a,p,k,B,K)):!1}function da(o){return Nn(o)&&Hi(o)==ct}function Tc(o,a,p,k){var B=p.length,K=B,oe=!k;if(o==null)return!K;for(o=Wr(o);B--;){var de=p[B];if(oe&&de[2]?de[1]!==o[de[0]]:!(de[0]in o))return!1}for(;++B<K;){de=p[B];var xe=de[0],rt=o[xe],nt=de[1];if(oe&&de[2]){if(rt===t&&!(xe in o))return!1}else{var ft=new Rr;if(k)var Ot=k(rt,nt,xe,o,a,ft);if(!(Ot===t?Ha(nt,rt,x|M,k,ft):Ot))return!1}}return!0}function Su(o){if(!Mn(o)||PS(o))return!1;var a=Xa(o)?fc:or;return a.test(qc(o))}function ks(o){return Nn(o)&&Pn(o)==Ct}function Ol(o){return Nn(o)&&Hi(o)==_t}function Oo(o){return Nn(o)&&_d(o.length)&&!!wr[Pn(o)]}function Pl(o){return typeof o=="function"?o:o==null?vo:typeof o=="object"?br(o)?za(o[0],o[1]):uo(o):Bv(o)}function Po(o){if(!wf(o))return du(o);var a=[];for(var p in Wr(o))zr.call(o,p)&&p!="constructor"&&a.push(p);return a}function qa(o){if(!Mn(o))return BS(o);var a=wf(o),p=[];for(var k in o)k=="constructor"&&(a||!zr.call(o,k))||p.push(k);return p}function Zi(o,a){return o<a}function Ki(o,a){var p=-1,k=go(o)?Oe(o.length):[];return Qo(o,function(B,K,oe){k[++p]=a(B,K,oe)}),k}function uo(o){var a=Rh(o);return a.length==1&&a[0][2]?Qm(a[0][0],a[0][1]):function(p){return p===o||Tc(p,o,a)}}function za(o,a){return Lh(o)&&Jm(a)?Qm(ma(o),a):function(p){var k=qh(p,o);return k===t&&k===a?zh(p,o):Ha(a,k,x|M)}}function ts(o,a,p,k,B){o!==a&&Ac(a,function(K,oe){if(B||(B=new Rr),Mn(K))Yi(o,a,oe,p,ts,k,B);else{var de=k?k(Dh(o,oe),K,oe+"",o,a,B):t;de===t&&(de=K),yc(o,oe,de)}},mo)}function Yi(o,a,p,k,B,K,oe){var de=Dh(o,p),xe=Dh(a,p),rt=oe.get(xe);if(rt){yc(o,p,rt);return}var nt=K?K(de,xe,p+"",o,a,oe):t,ft=nt===t;if(ft){var Ot=br(xe),Xt=!Ot&&Wl(xe),cr=!Ot&&!Xt&&Iu(xe);nt=xe,Ot||Xt||cr?br(de)?nt=de:Vn(de)?nt=si(de):Xt?(ft=!1,nt=ga(xe,!0)):cr?(ft=!1,nt=jc(xe,!0)):nt=[]:Tf(xe)||zc(xe)?(nt=de,zc(de)?nt=Rv(de):(!Mn(de)||Xa(de))&&(nt=Xm(xe))):ft=!1}ft&&(oe.set(xe,nt),B(nt,xe,k,K,oe),oe.delete(xe)),yc(o,p,nt)}function ha(o,a){var p=o.length;if(p)return a+=a<0?p:0,Ya(a,p)?o[a]:t}function Nl(o,a,p){a.length?a=Kr(a,function(K){return br(K)?function(oe){return es(oe,K.length===1?K[0]:K)}:K}):a=[vo];var k=-1;a=Kr(a,Ut(lr()));var B=Ki(o,function(K,oe,de){var xe=Kr(a,function(rt){return rt(K)});return{criteria:xe,index:++k,value:K}});return te(B,function(K,oe){return Tu(K,oe,p)})}function $a(o,a){return pa(o,a,function(p,k){return zh(o,k)})}function pa(o,a,p){for(var k=-1,B=a.length,K={};++k<B;){var oe=a[k],de=es(o,oe);p(de,oe)&&Is(K,No(oe,o),de)}return K}function Cu(o){return function(a){return es(a,o)}}function Ec(o,a,p,k){var B=k?gl:Co,K=-1,oe=a.length,de=o;for(o===a&&(a=si(a)),p&&(de=Kr(o,Ut(p)));++K<oe;)for(var xe=0,rt=a[K],nt=p?p(rt):rt;(xe=B(de,nt,xe,k))>-1;)de!==o&&ko.call(de,xe,1),ko.call(o,xe,1);return o}function kc(o,a){for(var p=o?a.length:0,k=p-1;p--;){var B=a[p];if(p==k||B!==K){var K=B;Ya(B)?ko.call(o,B,1):Dc(o,B)}}return o}function Rs(o,a){return o+bs(Zo()*(a-o+1))}function Rc(o,a,p,k){for(var B=-1,K=cn(ta((a-o)/(p||1)),0),oe=Oe(K);K--;)oe[k?K:++B]=o,o+=p;return oe}function Fl(o,a){var p="";if(!o||a<1||a>ue)return p;do a%2&&(p+=o),a=bs(a/2),a&&(o+=o);while(a);return p}function mr(o,a){return Oh(ev(o,a,vo),o+"")}function Ua(o){return mi(Lu(o))}function Ic(o,a){var p=Lu(o);return pd(p,ws(a,0,p.length))}function Is(o,a,p,k){if(!Mn(o))return o;a=No(a,o);for(var B=-1,K=a.length,oe=K-1,de=o;de!=null&&++B<K;){var xe=ma(a[B]),rt=p;if(xe==="__proto__"||xe==="constructor"||xe==="prototype")return o;if(B!=oe){var nt=de[xe];rt=k?k(nt,xe,de):t,rt===t&&(rt=Mn(nt)?nt:Ya(a[B+1])?[]:{})}fi(de,xe,rt),de=de[xe]}return o}var Lc=Oa?function(o,a){return Oa.set(o,a),o}:vo,wu=Vo?function(o,a){return Vo(o,"toString",{configurable:!0,enumerable:!1,value:Uh(a),writable:!0})}:vo;function Mc(o){return pd(Lu(o))}function Di(o,a,p){var k=-1,B=o.length;a<0&&(a=-a>B?0:B+a),p=p>B?B:p,p<0&&(p+=B),B=a>p?0:p-a>>>0,a>>>=0;for(var K=Oe(B);++k<B;)K[k]=o[k+a];return K}function _f(o,a){var p;return Qo(o,function(k,B,K){return p=a(k,B,K),!p}),!!p}function jl(o,a,p){var k=0,B=o==null?k:o.length;if(typeof a=="number"&&a===a&&B<=Pe){for(;k<B;){var K=k+B>>>1,oe=o[K];oe!==null&&!Fo(oe)&&(p?oe<=a:oe<a)?k=K+1:B=K}return B}return Bl(o,a,vo,p)}function Bl(o,a,p,k){var B=0,K=o==null?0:o.length;if(K===0)return 0;a=p(a);for(var oe=a!==a,de=a===null,xe=Fo(a),rt=a===t;B<K;){var nt=bs((B+K)/2),ft=p(o[nt]),Ot=ft!==t,Xt=ft===null,cr=ft===ft,Ir=Fo(ft);if(oe)var ur=k||cr;else rt?ur=cr&&(k||Ot):de?ur=cr&&Ot&&(k||!Xt):xe?ur=cr&&Ot&&!Xt&&(k||!Ir):Xt||Ir?ur=!1:ur=k?ft<=a:ft<a;ur?B=nt+1:K=nt}return Ln(K,ge)}function Au(o,a){for(var p=-1,k=o.length,B=0,K=[];++p<k;){var oe=o[p],de=a?a(oe):oe;if(!p||!Ls(de,xe)){var xe=de;K[B++]=oe===0?0:oe}}return K}function Hl(o){return typeof o=="number"?o:Fo(o)?le:+o}function Oi(o){if(typeof o=="string")return o;if(br(o))return Kr(o,Oi)+"";if(Fo(o))return Pa?Pa.call(o):"";var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function Tn(o,a,p){var k=-1,B=So,K=o.length,oe=!0,de=[],xe=de;if(p)oe=!1,B=$n;else if(K>=i){var rt=a?null:Cf(o);if(rt)return Ra(rt);oe=!1,B=ar,xe=new ui}else xe=a?[]:de;e:for(;++k<K;){var nt=o[k],ft=a?a(nt):nt;if(nt=p||nt!==0?nt:0,oe&&ft===ft){for(var Ot=xe.length;Ot--;)if(xe[Ot]===ft)continue e;a&&xe.push(ft),de.push(nt)}else B(xe,ft,p)||(xe!==de&&xe.push(ft),de.push(nt))}return de}function Dc(o,a){return a=No(a,o),o=tv(o,a),o==null||delete o[ma(ss(a))]}function Wa(o,a,p,k){return Is(o,a,p(es(o,a)),k)}function ql(o,a,p,k){for(var B=o.length,K=k?B:-1;(k?K--:++K<B)&&a(o[K],K,o););return p?Di(o,k?0:K,k?K+1:B):Di(o,k?K+1:0,k?B:K)}function oi(o,a){var p=o;return p instanceof yr&&(p=p.value()),Ea(a,function(k,B){return B.func.apply(B.thisArg,Ai([k],B.args))},p)}function Oc(o,a,p){var k=o.length;if(k<2)return k?Tn(o[0]):[];for(var B=-1,K=Oe(k);++B<k;)for(var oe=o[B],de=-1;++de<k;)de!=B&&(K[B]=As(K[B]||oe,o[de],a,p));return Tn(Un(K,1),a,p)}function Pc(o,a,p){for(var k=-1,B=o.length,K=a.length,oe={};++k<B;){var de=k<K?a[k]:t;p(oe,o[k],de)}return oe}function zl(o){return Vn(o)?o:[]}function rs(o){return typeof o=="function"?o:vo}function No(o,a){return br(o)?o:Lh(o,a)?[o]:ov(tn(o))}var xf=mr;function fo(o,a,p){var k=o.length;return p=p===t?k:p,!a&&p>=k?o:Di(o,a,p)}var ns=uf||function(o){return dr.clearTimeout(o)};function ga(o,a){if(a)return o.slice();var p=o.length,k=La?La(p):new o.constructor(p);return o.copy(k),k}function Nc(o){var a=new o.constructor(o.byteLength);return new Ia(a).set(new Ia(o)),a}function Fc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.byteLength)}function Va(o){var a=new o.constructor(o.source,Lt.exec(o));return a.lastIndex=o.lastIndex,a}function $l(o){return xs?Wr(xs.call(o)):{}}function jc(o,a){var p=a?Nc(o.buffer):o.buffer;return new o.constructor(p,o.byteOffset,o.length)}function Ga(o,a){if(o!==a){var p=o!==t,k=o===null,B=o===o,K=Fo(o),oe=a!==t,de=a===null,xe=a===a,rt=Fo(a);if(!de&&!rt&&!K&&o>a||K&&oe&&xe&&!de&&!rt||k&&oe&&xe||!p&&xe||!B)return 1;if(!k&&!K&&!rt&&o<a||rt&&p&&B&&!k&&!K||de&&p&&B||!oe&&B||!xe)return-1}return 0}function Tu(o,a,p){for(var k=-1,B=o.criteria,K=a.criteria,oe=B.length,de=p.length;++k<oe;){var xe=Ga(B[k],K[k]);if(xe){if(k>=de)return xe;var rt=p[k];return xe*(rt=="desc"?-1:1)}}return o.index-a.index}function Eu(o,a,p,k){for(var B=-1,K=o.length,oe=p.length,de=-1,xe=a.length,rt=cn(K-oe,0),nt=Oe(xe+rt),ft=!k;++de<xe;)nt[de]=a[de];for(;++B<oe;)(ft||B<K)&&(nt[p[B]]=o[B]);for(;rt--;)nt[de++]=o[B++];return nt}function Bc(o,a,p,k){for(var B=-1,K=o.length,oe=-1,de=p.length,xe=-1,rt=a.length,nt=cn(K-de,0),ft=Oe(nt+rt),Ot=!k;++B<nt;)ft[B]=o[B];for(var Xt=B;++xe<rt;)ft[Xt+xe]=a[xe];for(;++oe<de;)(Ot||B<K)&&(ft[Xt+p[oe]]=o[B++]);return ft}function si(o,a){var p=-1,k=o.length;for(a||(a=Oe(k));++p<k;)a[p]=o[p];return a}function Xi(o,a,p,k){var B=!p;p||(p={});for(var K=-1,oe=a.length;++K<oe;){var de=a[K],xe=k?k(p[de],o[de],de,p,o):t;xe===t&&(xe=o[de]),B?Li(p,de,xe):fi(p,de,xe)}return p}function Sf(o,a){return Xi(o,Ih(o),a)}function ku(o,a){return Xi(o,Km(o),a)}function Ul(o,a){return function(p,k){var B=br(p)?ps:Cs,K=a?a():{};return B(p,o,lr(k,2),K)}}function d(o){return mr(function(a,p){var k=-1,B=p.length,K=B>1?p[B-1]:t,oe=B>2?p[2]:t;for(K=o.length>3&&typeof K=="function"?(B--,K):t,oe&&Ji(p[0],p[1],oe)&&(K=B<3?t:K,B=1),a=Wr(a);++k<B;){var de=p[k];de&&o(a,de,k,K)}return a})}function s(o,a){return function(p,k){if(p==null)return p;if(!go(p))return o(p,k);for(var B=p.length,K=a?B:-1,oe=Wr(p);(a?K--:++K<B)&&k(oe[K],K,oe)!==!1;);return p}}function c(o){return function(a,p,k){for(var B=-1,K=Wr(a),oe=k(a),de=oe.length;de--;){var xe=oe[o?de:++B];if(p(K[xe],xe,K)===!1)break}return a}}function h(o,a,p){var k=a&w,B=F(o);function K(){var oe=this&&this!==dr&&this instanceof K?B:o;return oe.apply(k?p:this,arguments)}return K}function y(o){return function(a){a=tn(a);var p=Ys(a)?fn(a):t,k=p?p[0]:a.charAt(0),B=p?fo(p,1).join(""):a.slice(1);return k[o]()+B}}function D(o){return function(a){return Ea(Fv(Nv(a).replace(ro,"")),o,"")}}function F(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var p=Lo(o.prototype),k=o.apply(p,a);return Mn(k)?k:p}}function V(o,a,p){var k=F(o);function B(){for(var K=arguments.length,oe=Oe(K),de=K,xe=Ru(B);de--;)oe[de]=arguments[de];var rt=K<3&&oe[0]!==xe&&oe[K-1]!==xe?[]:wo(oe,xe);if(K-=rt.length,K<p)return po(o,a,Ye,B.placeholder,t,oe,rt,t,t,p-K);var nt=this&&this!==dr&&this instanceof B?k:o;return an(nt,this,oe)}return B}function ie(o){return function(a,p,k){var B=Wr(a);if(!go(a)){var K=lr(p,3);a=vi(a),p=function(de){return K(B[de],de,B)}}var oe=o(a,p,k);return oe>-1?B[K?a[oe]:oe]:t}}function Ae(o){return Ka(function(a){var p=a.length,k=p,B=ii.prototype.thru;for(o&&a.reverse();k--;){var K=a[k];if(typeof K!="function")throw new Bi(u);if(B&&!oe&&dd(K)=="wrapper")var oe=new ii([],!0)}for(k=oe?k:p;++k<p;){K=a[k];var de=dd(K),xe=de=="wrapper"?kh(K):t;xe&&Mh(xe[0])&&xe[1]==(Y|O|q|fe)&&!xe[4].length&&xe[9]==1?oe=oe[dd(xe[0])].apply(oe,xe[3]):oe=K.length==1&&Mh(K)?oe[de]():oe.thru(K)}return function(){var rt=arguments,nt=rt[0];if(oe&&rt.length==1&&br(nt))return oe.plant(nt).value();for(var ft=0,Ot=p?a[ft].apply(this,rt):nt;++ft<p;)Ot=a[ft].call(this,Ot);return Ot}})}function Ye(o,a,p,k,B,K,oe,de,xe,rt){var nt=a&Y,ft=a&w,Ot=a&b,Xt=a&(O|H),cr=a&X,Ir=Ot?t:F(o);function ur(){for(var Fr=arguments.length,qr=Oe(Fr),jo=Fr;jo--;)qr[jo]=arguments[jo];if(Xt)var Qi=Ru(ur),Bo=Ti(qr,Qi);if(k&&(qr=Eu(qr,k,B,Xt)),K&&(qr=Bc(qr,K,oe,Xt)),Fr-=Bo,Xt&&Fr<rt){var Gn=wo(qr,Qi);return po(o,a,Ye,ur.placeholder,p,qr,Gn,de,xe,rt-Fr)}var Ms=ft?p:this,Qa=Ot?Ms[o]:o;return Fr=qr.length,de?qr=qS(qr,de):cr&&Fr>1&&qr.reverse(),nt&&xe<Fr&&(qr.length=xe),this&&this!==dr&&this instanceof ur&&(Qa=Ir||F(Qa)),Qa.apply(Ms,qr)}return ur}function lt(o,a){return function(p,k){return Ml(p,o,a(k),{})}}function kt(o,a){return function(p,k){var B;if(p===t&&k===t)return a;if(p!==t&&(B=p),k!==t){if(B===t)return k;typeof p=="string"||typeof k=="string"?(p=Oi(p),k=Oi(k)):(p=Hl(p),k=Hl(k)),B=o(p,k)}return B}}function tr(o){return Ka(function(a){return a=Kr(a,Ut(lr())),mr(function(p){var k=this;return o(a,function(B){return an(B,k,p)})})})}function Dr(o,a){a=a===t?" ":Oi(a);var p=a.length;if(p<2)return p?Fl(a,o):a;var k=Fl(a,ta(o/Xs(a)));return Ys(a)?fo(fn(k),0,o).join(""):k.slice(0,o)}function Wn(o,a,p,k){var B=a&w,K=F(o);function oe(){for(var de=-1,xe=arguments.length,rt=-1,nt=k.length,ft=Oe(nt+xe),Ot=this&&this!==dr&&this instanceof oe?K:o;++rt<nt;)ft[rt]=k[rt];for(;xe--;)ft[rt++]=arguments[++de];return an(Ot,B?p:this,ft)}return oe}function is(o){return function(a,p,k){return k&&typeof k!="number"&&Ji(a,p,k)&&(p=k=t),a=Ja(a),p===t?(p=a,a=0):p=Ja(p),k=k===t?a<p?1:-1:Ja(k),Rc(a,p,k,o)}}function ho(o){return function(a,p){return typeof a=="string"&&typeof p=="string"||(a=as(a),p=as(p)),o(a,p)}}function po(o,a,p,k,B,K,oe,de,xe,rt){var nt=a&O,ft=nt?oe:t,Ot=nt?t:oe,Xt=nt?K:t,cr=nt?t:K;a|=nt?q:z,a&=~(nt?z:q),a&I||(a&=-4);var Ir=[o,a,B,Xt,ft,cr,Ot,de,xe,rt],ur=p.apply(t,Ir);return Mh(o)&&rv(ur,Ir),ur.placeholder=k,nv(ur,o,a)}function os(o){var a=bn[o];return function(p,k){if(p=as(p),k=k==null?0:Ln(Tr(k),292),k&&na(p)){var B=(tn(p)+"e").split("e"),K=a(B[0]+"e"+(+B[1]+k));return B=(tn(K)+"e").split("e"),+(B[0]+"e"+(+B[1]-k))}return a(p)}}var Cf=oo&&1/Ra(new oo([,-0]))[1]==be?function(o){return new oo(o)}:Gh;function fd(o){return function(a){var p=Hi(a);return p==ct?ac(a):p==_t?sf(a):Ge(a,o(a))}}function Za(o,a,p,k,B,K,oe,de){var xe=a&b;if(!xe&&typeof o!="function")throw new Bi(u);var rt=k?k.length:0;if(rt||(a&=-97,k=B=t),oe=oe===t?oe:cn(Tr(oe),0),de=de===t?de:Tr(de),rt-=B?B.length:0,a&z){var nt=k,ft=B;k=B=t}var Ot=xe?t:kh(o),Xt=[o,a,p,k,B,nt,ft,K,oe,de];if(Ot&&jS(Xt,Ot),o=Xt[0],a=Xt[1],p=Xt[2],k=Xt[3],B=Xt[4],de=Xt[9]=Xt[9]===t?xe?0:o.length:cn(Xt[9]-rt,0),!de&&a&(O|H)&&(a&=-25),!a||a==w)var cr=h(o,a,p);else a==O||a==H?cr=V(o,a,de):(a==q||a==(w|q))&&!B.length?cr=Wn(o,a,p,k):cr=Ye.apply(t,Xt);var Ir=Ot?Lc:rv;return nv(Ir(cr,Xt),o,a)}function Vm(o,a,p,k){return o===t||Ls(o,Uo[p])&&!zr.call(k,p)?a:o}function Gm(o,a,p,k,B,K){return Mn(o)&&Mn(a)&&(K.set(a,o),ts(o,a,t,Gm,K),K.delete(a)),o}function wS(o){return Tf(o)?t:o}function Zm(o,a,p,k,B,K){var oe=p&x,de=o.length,xe=a.length;if(de!=xe&&!(oe&&xe>de))return!1;var rt=K.get(o),nt=K.get(a);if(rt&&nt)return rt==a&&nt==o;var ft=-1,Ot=!0,Xt=p&M?new ui:t;for(K.set(o,a),K.set(a,o);++ft<de;){var cr=o[ft],Ir=a[ft];if(k)var ur=oe?k(Ir,cr,ft,a,o,K):k(cr,Ir,ft,o,a,K);if(ur!==t){if(ur)continue;Ot=!1;break}if(Xt){if(!$o(a,function(Fr,qr){if(!ar(Xt,qr)&&(cr===Fr||B(cr,Fr,p,k,K)))return Xt.push(qr)})){Ot=!1;break}}else if(!(cr===Ir||B(cr,Ir,p,k,K))){Ot=!1;break}}return K.delete(o),K.delete(a),Ot}function AS(o,a,p,k,B,K,oe){switch(p){case Rt:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case st:return!(o.byteLength!=a.byteLength||!K(new Ia(o),new Ia(a)));case tt:case Ue:case Ne:return Ls(+o,+a);case Ee:return o.name==a.name&&o.message==a.message;case Ct:case wt:return o==a+"";case ct:var de=ac;case _t:var xe=k&x;if(de||(de=Ra),o.size!=a.size&&!xe)return!1;var rt=oe.get(o);if(rt)return rt==a;k|=M,oe.set(o,a);var nt=Zm(de(o),de(a),k,B,K,oe);return oe.delete(o),nt;case xt:if(xs)return xs.call(o)==xs.call(a)}return!1}function TS(o,a,p,k,B,K){var oe=p&x,de=Th(o),xe=de.length,rt=Th(a),nt=rt.length;if(xe!=nt&&!oe)return!1;for(var ft=xe;ft--;){var Ot=de[ft];if(!(oe?Ot in a:zr.call(a,Ot)))return!1}var Xt=K.get(o),cr=K.get(a);if(Xt&&cr)return Xt==a&&cr==o;var Ir=!0;K.set(o,a),K.set(a,o);for(var ur=oe;++ft<xe;){Ot=de[ft];var Fr=o[Ot],qr=a[Ot];if(k)var jo=oe?k(qr,Fr,Ot,a,o,K):k(Fr,qr,Ot,o,a,K);if(!(jo===t?Fr===qr||B(Fr,qr,p,k,K):jo)){Ir=!1;break}ur||(ur=Ot=="constructor")}if(Ir&&!ur){var Qi=o.constructor,Bo=a.constructor;Qi!=Bo&&"constructor"in o&&"constructor"in a&&!(typeof Qi=="function"&&Qi instanceof Qi&&typeof Bo=="function"&&Bo instanceof Bo)&&(Ir=!1)}return K.delete(o),K.delete(a),Ir}function Ka(o){return Oh(ev(o,t,cv),o+"")}function Th(o){return Ba(o,vi,Ih)}function Eh(o){return Ba(o,mo,Km)}var kh=Oa?function(o){return Oa.get(o)}:Gh;function dd(o){for(var a=o.name+"",p=_s[a],k=zr.call(_s,a)?p.length:0;k--;){var B=p[k],K=B.func;if(K==null||K==o)return B.name}return a}function Ru(o){var a=zr.call(W,"placeholder")?W:o;return a.placeholder}function lr(){var o=W.iteratee||Wh;return o=o===Wh?Pl:o,arguments.length?o(arguments[0],arguments[1]):o}function hd(o,a){var p=o.__data__;return OS(a)?p[typeof a=="string"?"string":"hash"]:p.map}function Rh(o){for(var a=vi(o),p=a.length;p--;){var k=a[p],B=o[k];a[p]=[k,B,Jm(B)]}return a}function Hc(o,a){var p=vs(o,a);return Su(p)?p:t}function ES(o){var a=zr.call(o,Ro),p=o[Ro];try{o[Ro]=t;var k=!0}catch{}var B=To.call(o);return k&&(a?o[Ro]=p:delete o[Ro]),B}var Ih=ra?function(o){return o==null?[]:(o=Wr(o),Wi(ra(o),function(a){return _l.call(o,a)}))}:Zh,Km=ra?function(o){for(var a=[];o;)Ai(a,Ih(o)),o=ys(o);return a}:Zh,Hi=Pn;(io&&Hi(new io(new ArrayBuffer(1)))!=Rt||Ko&&Hi(new Ko)!=ct||ia&&Hi(ia.resolve())!=Ze||oo&&Hi(new oo)!=_t||Io&&Hi(new Io)!=je)&&(Hi=function(o){var a=Pn(o),p=a==Le?o.constructor:t,k=p?qc(p):"";if(k)switch(k){case Yo:return Rt;case hc:return ct;case ff:return Ze;case hu:return _t;case sa:return je}return a});function kS(o,a,p){for(var k=-1,B=p.length;++k<B;){var K=p[k],oe=K.size;switch(K.type){case"drop":o+=oe;break;case"dropRight":a-=oe;break;case"take":a=Ln(a,o+oe);break;case"takeRight":o=cn(o,a-oe);break}}return{start:o,end:a}}function RS(o){var a=o.match($);return a?a[1].split(_e):[]}function Ym(o,a,p){a=No(a,o);for(var k=-1,B=a.length,K=!1;++k<B;){var oe=ma(a[k]);if(!(K=o!=null&&p(o,oe)))break;o=o[oe]}return K||++k!=B?K:(B=o==null?0:o.length,!!B&&_d(B)&&Ya(oe,B)&&(br(o)||zc(o)))}function IS(o){var a=o.length,p=new o.constructor(a);return a&&typeof o[0]=="string"&&zr.call(o,"index")&&(p.index=o.index,p.input=o.input),p}function Xm(o){return typeof o.constructor=="function"&&!wf(o)?Lo(ys(o)):{}}function LS(o,a,p){var k=o.constructor;switch(a){case st:return Nc(o);case tt:case Ue:return new k(+o);case Rt:return Fc(o,p);case Bt:case ze:case Tt:case Ht:case _r:case kr:case Cr:case ve:case ne:return jc(o,p);case ct:return new k;case Ne:case wt:return new k(o);case Ct:return Va(o);case _t:return new k;case xt:return $l(o)}}function MS(o,a){var p=a.length;if(!p)return o;var k=p-1;return a[k]=(p>1?"& ":"")+a[k],a=a.join(p>2?", ":" "),o.replace(pr,`{
34
34
  /* [wrapped with `+a+`] */
35
- `)}function DS(o){return br(o)||zc(o)||!!(xl&&o&&o[xl])}function Ya(o,a){var p=typeof o;return a=a??ue,!!a&&(p=="number"||p!="symbol"&&Ur.test(o))&&o>-1&&o%1==0&&o<a}function Ji(o,a,p){if(!Mn(p))return!1;var k=typeof a;return(k=="number"?go(p)&&Ya(a,p.length):k=="string"&&a in p)?Ls(p[a],o):!1}function Lh(o,a){if(br(o))return!1;var p=typeof o;return p=="number"||p=="symbol"||p=="boolean"||o==null||Fo(o)?!0:zt.test(o)||!Ft.test(o)||a!=null&&o in Wr(a)}function OS(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Mh(o){var a=dd(o),p=W[a];if(typeof p!="function"||!(a in yr.prototype))return!1;if(o===p)return!0;var k=kh(p);return!!k&&o===k[0]}function PS(o){return!!ln&&ln in o}var NS=en?Xa:Kh;function wf(o){var a=o&&o.constructor,p=typeof a=="function"&&a.prototype||Uo;return o===p}function Jm(o){return o===o&&!Mn(o)}function Qm(o,a){return function(p){return p==null?!1:p[o]===a&&(a!==t||o in Wr(p))}}function FS(o){var a=yd(o,function(k){return p.size===m&&p.clear(),k}),p=a.cache;return a}function jS(o,a){var p=o[1],k=a[1],B=p|k,K=B<(w|b|Y),oe=k==Y&&p==O||k==Y&&p==fe&&o[7].length<=a[8]||k==(Y|fe)&&a[7].length<=a[8]&&p==O;if(!(K||oe))return o;k&w&&(o[2]=a[2],B|=p&w?0:I);var de=a[3];if(de){var xe=o[3];o[3]=xe?Eu(xe,de,a[4]):de,o[4]=xe?wo(o[3],R):a[4]}return de=a[5],de&&(xe=o[5],o[5]=xe?Bc(xe,de,a[6]):de,o[6]=xe?wo(o[5],R):a[6]),de=a[7],de&&(o[7]=de),k&Y&&(o[8]=o[8]==null?a[8]:Ln(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=B,o}function BS(o){var a=[];if(o!=null)for(var p in Wr(o))a.push(p);return a}function HS(o){return To.call(o)}function ev(o,a,p){return a=cn(a===t?o.length-1:a,0),function(){for(var k=arguments,B=-1,K=cn(k.length-a,0),oe=Oe(K);++B<K;)oe[B]=k[a+B];B=-1;for(var de=Oe(a+1);++B<a;)de[B]=k[B];return de[a]=p(oe),an(o,this,de)}}function tv(o,a){return a.length<2?o:es(o,Di(a,0,-1))}function qS(o,a){for(var p=o.length,k=Ln(a.length,p),B=si(o);k--;){var K=a[k];o[k]=Ya(K,p)?B[K]:t}return o}function Dh(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var rv=iv(Lc),Af=fu||function(o,a){return dr.setTimeout(o,a)},Oh=iv(wu);function nv(o,a,p){var k=a+"";return Oh(o,MS(k,zS(RS(k),p)))}function iv(o){var a=0,p=0;return function(){var k=Go(),B=Q-(k-p);if(p=k,B>0){if(++a>=re)return arguments[0]}else a=0;return o.apply(t,arguments)}}function pd(o,a){var p=-1,k=o.length,B=k-1;for(a=a===t?k:a;++p<a;){var K=Rs(p,B),oe=o[K];o[K]=o[p],o[p]=oe}return o.length=a,o}var ov=FS(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(nr,function(p,k,B,K){a.push(B?K.replace(Pt,"$1"):k||p)}),a});function ma(o){if(typeof o=="string"||Fo(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function qc(o){if(o!=null){try{return Wo.call(o)}catch{}try{return o+""}catch{}}return""}function zS(o,a){return zn(Qe,function(p){var k="_."+p[0];a&p[1]&&!So(o,k)&&o.push(k)}),o.sort()}function sv(o){if(o instanceof yr)return o.clone();var a=new ii(o.__wrapped__,o.__chain__);return a.__actions__=si(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function $S(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=cn(Tr(a),0);var k=o==null?0:o.length;if(!k||a<1)return[];for(var B=0,K=0,oe=Oe(ta(k/a));B<k;)oe[K++]=Di(o,B,B+=a);return oe}function US(o){for(var a=-1,p=o==null?0:o.length,k=0,B=[];++a<p;){var K=o[a];K&&(B[k++]=K)}return B}function WS(){var o=arguments.length;if(!o)return[];for(var a=Oe(o-1),p=arguments[0],k=o;k--;)a[k-1]=arguments[k];return Ai(br(p)?si(p):[p],Un(a,1))}var VS=mr(function(o,a){return Vn(o)?As(o,Un(a,1,Vn,!0)):[]}),GS=mr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),lr(p,2)):[]}),ZS=mr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),t,p):[]});function KS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),Di(o,a<0?0:a,k)):[]}function YS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,0,a<0?0:a)):[]}function XS(o,a){return o&&o.length?ql(o,lr(a,3),!0,!0):[]}function JS(o,a){return o&&o.length?ql(o,lr(a,3),!0):[]}function QS(o,a,p,k){var B=o==null?0:o.length;return B?(p&&typeof p!="number"&&Ji(o,a,p)&&(p=0,k=B),bf(o,a,p,k)):[]}function av(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),ms(o,lr(a,3),B)}function lv(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k-1;return p!==t&&(B=Tr(p),B=p<0?cn(k+B,0):Ln(B,k-1)),ms(o,lr(a,3),B,!0)}function cv(o){var a=o==null?0:o.length;return a?Un(o,1):[]}function eC(o){var a=o==null?0:o.length;return a?Un(o,be):[]}function tC(o,a){var p=o==null?0:o.length;return p?(a=a===t?1:Tr(a),Un(o,a)):[]}function rC(o){for(var a=-1,p=o==null?0:o.length,k={};++a<p;){var B=o[a];k[B[0]]=B[1]}return k}function uv(o){return o&&o.length?o[0]:t}function nC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),Co(o,a,B)}function iC(o){var a=o==null?0:o.length;return a?Di(o,0,-1):[]}var oC=mr(function(o){var a=Kr(o,zl);return a.length&&a[0]===o[0]?ua(a):[]}),sC=mr(function(o){var a=ss(o),p=Kr(o,zl);return a===ss(p)?a=t:p.pop(),p.length&&p[0]===o[0]?ua(p,lr(a,2)):[]}),aC=mr(function(o){var a=ss(o),p=Kr(o,zl);return a=typeof a=="function"?a:t,a&&p.pop(),p.length&&p[0]===o[0]?ua(p,t,a):[]});function lC(o,a){return o==null?"":Da.call(o,a)}function ss(o){var a=o==null?0:o.length;return a?o[a-1]:t}function cC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k;return p!==t&&(B=Tr(p),B=B<0?cn(k+B,0):Ln(B,k-1)),a===a?lf(o,a,B):ms(o,Zs,B,!0)}function uC(o,a){return o&&o.length?ha(o,Tr(a)):t}var fC=mr(fv);function fv(o,a){return o&&o.length&&a&&a.length?Ec(o,a):o}function dC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,lr(p,2)):o}function hC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,t,p):o}var pC=Ka(function(o,a){var p=o==null?0:o.length,k=_c(o,a);return kc(o,Kr(a,function(B){return Ya(B,p)?+B:B}).sort(Ga)),k});function gC(o,a){var p=[];if(!(o&&o.length))return p;var k=-1,B=[],K=o.length;for(a=lr(a,3);++k<K;){var oe=o[k];a(oe,k,o)&&(p.push(oe),B.push(k))}return kc(o,B),p}function Ph(o){return o==null?o:Cl.call(o)}function mC(o,a,p){var k=o==null?0:o.length;return k?(p&&typeof p!="number"&&Ji(o,a,p)?(a=0,p=k):(a=a==null?0:Tr(a),p=p===t?k:Tr(p)),Di(o,a,p)):[]}function vC(o,a){return jl(o,a)}function yC(o,a,p){return Bl(o,a,lr(p,2))}function bC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a);if(k<p&&Ls(o[k],a))return k}return-1}function _C(o,a){return jl(o,a,!0)}function xC(o,a,p){return Bl(o,a,lr(p,2),!0)}function SC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a,!0)-1;if(Ls(o[k],a))return k}return-1}function CC(o){return o&&o.length?Au(o):[]}function wC(o,a){return o&&o.length?Au(o,lr(a,2)):[]}function AC(o){var a=o==null?0:o.length;return a?Di(o,1,a):[]}function TC(o,a,p){return o&&o.length?(a=p||a===t?1:Tr(a),Di(o,0,a<0?0:a)):[]}function EC(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,a<0?0:a,k)):[]}function kC(o,a){return o&&o.length?ql(o,lr(a,3),!1,!0):[]}function RC(o,a){return o&&o.length?ql(o,lr(a,3)):[]}var IC=mr(function(o){return Tn(Un(o,1,Vn,!0))}),LC=mr(function(o){var a=ss(o);return Vn(a)&&(a=t),Tn(Un(o,1,Vn,!0),lr(a,2))}),MC=mr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Tn(Un(o,1,Vn,!0),t,a)});function DC(o){return o&&o.length?Tn(o):[]}function OC(o,a){return o&&o.length?Tn(o,lr(a,2)):[]}function PC(o,a){return a=typeof a=="function"?a:t,o&&o.length?Tn(o,t,a):[]}function Nh(o){if(!(o&&o.length))return[];var a=0;return o=Wi(o,function(p){if(Vn(p))return a=cn(p.length,a),!0}),Te(a,function(p){return Kr(o,T(p))})}function dv(o,a){if(!(o&&o.length))return[];var p=Nh(o);return a==null?p:Kr(p,function(k){return an(a,t,k)})}var NC=mr(function(o,a){return Vn(o)?As(o,a):[]}),FC=mr(function(o){return Oc(Wi(o,Vn))}),jC=mr(function(o){var a=ss(o);return Vn(a)&&(a=t),Oc(Wi(o,Vn),lr(a,2))}),BC=mr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Oc(Wi(o,Vn),t,a)}),HC=mr(Nh);function qC(o,a){return Pc(o||[],a||[],fi)}function zC(o,a){return Pc(o||[],a||[],Is)}var $C=mr(function(o){var a=o.length,p=a>1?o[a-1]:t;return p=typeof p=="function"?(o.pop(),p):t,dv(o,p)});function hv(o){var a=W(o);return a.__chain__=!0,a}function UC(o,a){return a(o),o}function gd(o,a){return a(o)}var WC=Ka(function(o){var a=o.length,p=a?o[0]:0,k=this.__wrapped__,B=function(K){return _c(K,o)};return a>1||this.__actions__.length||!(k instanceof yr)||!Ya(p)?this.thru(B):(k=k.slice(p,+p+(a?1:0)),k.__actions__.push({func:gd,args:[B],thisArg:t}),new ii(k,this.__chain__).thru(function(K){return a&&!K.length&&K.push(t),K}))});function VC(){return hv(this)}function GC(){return new ii(this.value(),this.__chain__)}function ZC(){this.__values__===t&&(this.__values__=Ev(this.value()));var o=this.__index__>=this.__values__.length,a=o?t:this.__values__[this.__index__++];return{done:o,value:a}}function KC(){return this}function YC(o){for(var a,p=this;p instanceof Mo;){var k=sv(p);k.__index__=0,k.__values__=t,a?B.__wrapped__=k:a=k;var B=k;p=p.__wrapped__}return B.__wrapped__=o,a}function XC(){var o=this.__wrapped__;if(o instanceof yr){var a=o;return this.__actions__.length&&(a=new yr(this)),a=a.reverse(),a.__actions__.push({func:gd,args:[Ph],thisArg:t}),new ii(a,this.__chain__)}return this.thru(Ph)}function JC(){return oi(this.__wrapped__,this.__actions__)}var QC=Ul(function(o,a,p){zr.call(o,p)?++o[p]:Li(o,p,1)});function ew(o,a,p){var k=br(o)?Ta:yu;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}function tw(o,a){var p=br(o)?Wi:bu;return p(o,lr(a,3))}var rw=ie(av),nw=ie(lv);function iw(o,a){return Un(md(o,a),1)}function ow(o,a){return Un(md(o,a),be)}function sw(o,a,p){return p=p===t?1:Tr(p),Un(md(o,a),p)}function pv(o,a){var p=br(o)?zn:Qo;return p(o,lr(a,3))}function gv(o,a){var p=br(o)?fl:wc;return p(o,lr(a,3))}var aw=Ul(function(o,a,p){zr.call(o,p)?o[p].push(a):Li(o,p,[a])});function lw(o,a,p,k){o=go(o)?o:Lu(o),p=p&&!k?Tr(p):0;var B=o.length;return p<0&&(p=cn(B+p,0)),xd(o)?p<=B&&o.indexOf(a,p)>-1:!!B&&Co(o,a,p)>-1}var cw=mr(function(o,a,p){var k=-1,B=typeof a=="function",K=go(o)?Oe(o.length):[];return Qo(o,function(oe){K[++k]=B?an(a,oe,p):co(oe,a,p)}),K}),uw=Ul(function(o,a,p){Li(o,p,a)});function md(o,a){var p=br(o)?Kr:Ki;return p(o,lr(a,3))}function fw(o,a,p,k){return o==null?[]:(br(a)||(a=a==null?[]:[a]),p=k?t:p,br(p)||(p=p==null?[]:[p]),Nl(o,a,p))}var dw=Ul(function(o,a,p){o[p?0:1].push(a)},function(){return[[],[]]});function hw(o,a,p){var k=br(o)?Ea:U,B=arguments.length<3;return k(o,lr(a,4),p,B,Qo)}function pw(o,a,p){var k=br(o)?dl:U,B=arguments.length<3;return k(o,lr(a,4),p,B,wc)}function gw(o,a){var p=br(o)?Wi:bu;return p(o,bd(lr(a,3)))}function mw(o){var a=br(o)?mi:Ua;return a(o)}function vw(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=Tr(a);var k=br(o)?Ii:Ic;return k(o,a)}function yw(o){var a=br(o)?lo:Mc;return a(o)}function bw(o){if(o==null)return 0;if(go(o))return xd(o)?Xs(o):o.length;var a=Hi(o);return a==ct||a==_t?o.size:Po(o).length}function _w(o,a,p){var k=br(o)?$o:_f;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}var xw=mr(function(o,a){if(o==null)return[];var p=a.length;return p>1&&Ji(o,a[0],a[1])?a=[]:p>2&&Ji(a[0],a[1],a[2])&&(a=[a[0]]),Nl(o,Un(a,1),[])}),vd=Ma||function(){return dr.Date.now()};function Sw(o,a){if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){if(--o<1)return a.apply(this,arguments)}}function mv(o,a,p){return a=p?t:a,a=o&&a==null?o.length:a,Za(o,Y,t,t,t,t,a)}function vv(o,a){var p;if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){return--o>0&&(p=a.apply(this,arguments)),o<=1&&(a=t),p}}var Fh=mr(function(o,a,p){var k=w;if(p.length){var B=wo(p,Ru(Fh));k|=q}return Za(o,k,a,p,B)}),yv=mr(function(o,a,p){var k=w|b;if(p.length){var B=wo(p,Ru(yv));k|=q}return Za(a,k,o,p,B)});function bv(o,a,p){a=p?t:a;var k=Za(o,O,t,t,t,t,t,a);return k.placeholder=bv.placeholder,k}function _v(o,a,p){a=p?t:a;var k=Za(o,H,t,t,t,t,t,a);return k.placeholder=_v.placeholder,k}function xv(o,a,p){var k,B,K,oe,de,xe,rt=0,nt=!1,ft=!1,Ot=!0;if(typeof o!="function")throw new Bi(u);a=as(a)||0,Mn(p)&&(nt=!!p.leading,ft="maxWait"in p,K=ft?cn(as(p.maxWait)||0,a):K,Ot="trailing"in p?!!p.trailing:Ot);function Xt(Gn){var Ms=k,Qa=B;return k=B=t,rt=Gn,oe=o.apply(Qa,Ms),oe}function cr(Gn){return rt=Gn,de=Af(Fr,a),nt?Xt(Gn):oe}function Ir(Gn){var Ms=Gn-xe,Qa=Gn-rt,Hv=a-Ms;return ft?Ln(Hv,K-Qa):Hv}function ur(Gn){var Ms=Gn-xe,Qa=Gn-rt;return xe===t||Ms>=a||Ms<0||ft&&Qa>=K}function Fr(){var Gn=vd();if(ur(Gn))return qr(Gn);de=Af(Fr,Ir(Gn))}function qr(Gn){return de=t,Ot&&k?Xt(Gn):(k=B=t,oe)}function jo(){de!==t&&ns(de),rt=0,k=xe=B=de=t}function Qi(){return de===t?oe:qr(vd())}function Bo(){var Gn=vd(),Ms=ur(Gn);if(k=arguments,B=this,xe=Gn,Ms){if(de===t)return cr(xe);if(ft)return ns(de),de=Af(Fr,a),Xt(xe)}return de===t&&(de=Af(Fr,a)),oe}return Bo.cancel=jo,Bo.flush=Qi,Bo}var Cw=mr(function(o,a){return Cc(o,1,a)}),ww=mr(function(o,a,p){return Cc(o,as(a)||0,p)});function Aw(o){return Za(o,X)}function yd(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Bi(u);var p=function(){var k=arguments,B=a?a.apply(this,k):k[0],K=p.cache;if(K.has(B))return K.get(B);var oe=o.apply(this,k);return p.cache=K.set(B,oe)||K,oe};return p.cache=new(yd.Cache||Do),p}yd.Cache=Do;function bd(o){if(typeof o!="function")throw new Bi(u);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function Tw(o){return vv(2,o)}var Ew=xf(function(o,a){a=a.length==1&&br(a[0])?Kr(a[0],Ut(lr())):Kr(Un(a,1),Ut(lr()));var p=a.length;return mr(function(k){for(var B=-1,K=Ln(k.length,p);++B<K;)k[B]=a[B].call(this,k[B]);return an(o,this,k)})}),jh=mr(function(o,a){var p=wo(a,Ru(jh));return Za(o,q,t,a,p)}),Sv=mr(function(o,a){var p=wo(a,Ru(Sv));return Za(o,z,t,a,p)}),kw=Ka(function(o,a){return Za(o,fe,t,t,t,a)});function Rw(o,a){if(typeof o!="function")throw new Bi(u);return a=a===t?a:Tr(a),mr(o,a)}function Iw(o,a){if(typeof o!="function")throw new Bi(u);return a=a==null?0:cn(Tr(a),0),mr(function(p){var k=p[a],B=fo(p,0,a);return k&&Ai(B,k),an(o,this,B)})}function Lw(o,a,p){var k=!0,B=!0;if(typeof o!="function")throw new Bi(u);return Mn(p)&&(k="leading"in p?!!p.leading:k,B="trailing"in p?!!p.trailing:B),xv(o,a,{leading:k,maxWait:a,trailing:B})}function Mw(o){return mv(o,1)}function Dw(o,a){return jh(rs(a),o)}function Ow(){if(!arguments.length)return[];var o=arguments[0];return br(o)?o:[o]}function Pw(o){return di(o,S)}function Nw(o,a){return a=typeof a=="function"?a:t,di(o,S,a)}function Fw(o){return di(o,E|S)}function jw(o,a){return a=typeof a=="function"?a:t,di(o,E|S,a)}function Bw(o,a){return a==null||Sc(o,a,vi(a))}function Ls(o,a){return o===a||o!==o&&a!==a}var Hw=ho(Ts),qw=ho(function(o,a){return o>=a}),zc=Dl(function(){return arguments}())?Dl:function(o){return Nn(o)&&zr.call(o,"callee")&&!_l.call(o,"callee")},br=Oe.isArray,zw=Qr?Ut(Qr):Es;function go(o){return o!=null&&_d(o.length)&&!Xa(o)}function Vn(o){return Nn(o)&&go(o)}function $w(o){return o===!0||o===!1||Nn(o)&&Pn(o)==tt}var Wl=Sl||Kh,Uw=ci?Ut(ci):xu;function Ww(o){return Nn(o)&&o.nodeType===1&&!Tf(o)}function Vw(o){if(o==null)return!0;if(go(o)&&(br(o)||typeof o=="string"||typeof o.splice=="function"||Wl(o)||Iu(o)||zc(o)))return!o.length;var a=Hi(o);if(a==ct||a==_t)return!o.size;if(wf(o))return!Po(o).length;for(var p in o)if(zr.call(o,p))return!1;return!0}function Gw(o,a){return Ha(o,a)}function Zw(o,a,p){p=typeof p=="function"?p:t;var k=p?p(o,a):t;return k===t?Ha(o,a,t,p):!!k}function Bh(o){if(!Nn(o))return!1;var a=Pn(o);return a==Ee||a==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Tf(o)}function Kw(o){return typeof o=="number"&&na(o)}function Xa(o){if(!Mn(o))return!1;var a=Pn(o);return a==we||a==Ue||a==Xe||a==ot}function Cv(o){return typeof o=="number"&&o==Tr(o)}function _d(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ue}function Mn(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function Nn(o){return o!=null&&typeof o=="object"}var wv=gi?Ut(gi):da;function Yw(o,a){return o===a||Tc(o,a,Rh(a))}function Xw(o,a,p){return p=typeof p=="function"?p:t,Tc(o,a,Rh(a),p)}function Jw(o){return Av(o)&&o!=+o}function Qw(o){if(NS(o))throw new sr(l);return Su(o)}function e3(o){return o===null}function t3(o){return o==null}function Av(o){return typeof o=="number"||Nn(o)&&Pn(o)==Ne}function Tf(o){if(!Nn(o)||Pn(o)!=Le)return!1;var a=ys(o);if(a===null)return!0;var p=zr.call(a,"constructor")&&a.constructor;return typeof p=="function"&&p instanceof p&&Wo.call(p)==cc}var Hh=qn?Ut(qn):ks;function r3(o){return Cv(o)&&o>=-9007199254740991&&o<=ue}var Tv=xo?Ut(xo):Ol;function xd(o){return typeof o=="string"||!br(o)&&Nn(o)&&Pn(o)==wt}function Fo(o){return typeof o=="symbol"||Nn(o)&&Pn(o)==xt}var Iu=Ui?Ut(Ui):Oo;function n3(o){return o===t}function i3(o){return Nn(o)&&Hi(o)==je}function o3(o){return Nn(o)&&Pn(o)==yt}var s3=ho(Zi),a3=ho(function(o,a){return o<=a});function Ev(o){if(!o)return[];if(go(o))return xd(o)?fn(o):si(o);if(Vi&&o[Vi])return sc(o[Vi]());var a=Hi(o),p=a==ct?ac:a==_t?Ra:Lu;return p(o)}function Ja(o){if(!o)return o===0?o:0;if(o=as(o),o===be||o===-1/0){var a=o<0?-1:1;return a*Se}return o===o?o:0}function Tr(o){var a=Ja(o),p=a%1;return a===a?p?a-p:a:0}function kv(o){return o?ws(Tr(o),0,ae):0}function as(o){if(typeof o=="number")return o;if(Fo(o))return le;if(Mn(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=Mn(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=gt(o);var p=ir.test(o);return p||fr.test(o)?Vt(o.slice(2),p?2:8):$t.test(o)?le:+o}function Rv(o){return Xi(o,mo(o))}function l3(o){return o?ws(Tr(o),-9007199254740991,ue):o===0?o:0}function tn(o){return o==null?"":Oi(o)}var c3=d(function(o,a){if(wf(a)||go(a)){Xi(a,vi(a),o);return}for(var p in a)zr.call(a,p)&&fi(o,p,a[p])}),Iv=d(function(o,a){Xi(a,mo(a),o)}),Sd=d(function(o,a,p,k){Xi(a,mo(a),o,k)}),u3=d(function(o,a,p,k){Xi(a,vi(a),o,k)}),f3=Ka(_c);function d3(o,a){var p=Lo(o);return a==null?p:vu(p,a)}var h3=mr(function(o,a){o=Wr(o);var p=-1,k=a.length,B=k>2?a[2]:t;for(B&&Ji(a[0],a[1],B)&&(k=1);++p<k;)for(var K=a[p],oe=mo(K),de=-1,xe=oe.length;++de<xe;){var rt=oe[de],nt=o[rt];(nt===t||Ls(nt,Uo[rt])&&!zr.call(o,rt))&&(o[rt]=K[rt])}return o}),p3=mr(function(o){return o.push(t,Gm),an(Lv,t,o)});function g3(o,a){return gs(o,lr(a,3),Mi)}function m3(o,a){return gs(o,lr(a,3),Rl)}function v3(o,a){return o==null?o:Ac(o,lr(a,3),mo)}function y3(o,a){return o==null?o:_u(o,lr(a,3),mo)}function b3(o,a){return o&&Mi(o,lr(a,3))}function _3(o,a){return o&&Rl(o,lr(a,3))}function x3(o){return o==null?[]:la(o,vi(o))}function S3(o){return o==null?[]:la(o,mo(o))}function qh(o,a,p){var k=o==null?t:es(o,a);return k===t?p:k}function C3(o,a){return o!=null&&Ym(o,a,Il)}function zh(o,a){return o!=null&&Ym(o,a,ca)}var w3=lt(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),o[a]=p},Uh(vo)),A3=lt(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),zr.call(o,a)?o[a].push(p):o[a]=[p]},lr),T3=mr(co);function vi(o){return go(o)?ja(o):Po(o)}function mo(o){return go(o)?ja(o,!0):qa(o)}function E3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,K){Li(p,a(k,B,K),k)}),p}function k3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,K){Li(p,B,a(k,B,K))}),p}var R3=d(function(o,a,p){ts(o,a,p)}),Lv=d(function(o,a,p,k){ts(o,a,p,k)}),I3=Ka(function(o,a){var p={};if(o==null)return p;var k=!1;a=Kr(a,function(K){return K=No(K,o),k||(k=K.length>1),K}),Xi(o,Eh(o),p),k&&(p=di(p,E|_|S,wS));for(var B=a.length;B--;)Dc(p,a[B]);return p});function L3(o,a){return Mv(o,bd(lr(a)))}var M3=Ka(function(o,a){return o==null?{}:$a(o,a)});function Mv(o,a){if(o==null)return{};var p=Kr(Eh(o),function(k){return[k]});return a=lr(a),pa(o,p,function(k,B){return a(k,B[0])})}function D3(o,a,p){a=No(a,o);var k=-1,B=a.length;for(B||(B=1,o=t);++k<B;){var K=o==null?t:o[ma(a[k])];K===t&&(k=B,K=p),o=Xa(K)?K.call(o):K}return o}function O3(o,a,p){return o==null?o:Is(o,a,p)}function P3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Is(o,a,p,k)}var Dv=fd(vi),Ov=fd(mo);function N3(o,a,p){var k=br(o),B=k||Wl(o)||Iu(o);if(a=lr(a,4),p==null){var K=o&&o.constructor;B?p=k?new K:[]:Mn(o)?p=Xa(K)?Lo(ys(o)):{}:p={}}return(B?zn:Mi)(o,function(oe,de,xe){return a(p,oe,de,xe)}),p}function F3(o,a){return o==null?!0:Dc(o,a)}function j3(o,a,p){return o==null?o:Wa(o,a,rs(p))}function B3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Wa(o,a,rs(p),k)}function Lu(o){return o==null?[]:hr(o,vi(o))}function H3(o){return o==null?[]:hr(o,mo(o))}function q3(o,a,p){return p===t&&(p=a,a=t),p!==t&&(p=as(p),p=p===p?p:0),a!==t&&(a=as(a),a=a===a?a:0),ws(as(o),a,p)}function z3(o,a,p){return a=Ja(a),p===t?(p=a,a=0):p=Ja(p),o=as(o),Ll(o,a,p)}function $3(o,a,p){if(p&&typeof p!="boolean"&&Ji(o,a,p)&&(a=p=t),p===t&&(typeof a=="boolean"?(p=a,a=t):typeof o=="boolean"&&(p=o,o=t)),o===t&&a===t?(o=0,a=1):(o=Ja(o),a===t?(a=o,o=0):a=Ja(a)),o>a){var k=o;o=a,a=k}if(p||o%1||a%1){var B=Zo();return Ln(o+B*(a-o+Yt("1e-"+((B+"").length-1))),a)}return Rs(o,a)}var U3=D(function(o,a,p){return a=a.toLowerCase(),o+(p?Pv(a):a)});function Pv(o){return $h(tn(o).toLowerCase())}function Nv(o){return o=tn(o),o&&o.replace(vr,Ei).replace(no,"")}function W3(o,a,p){o=tn(o),a=Oi(a);var k=o.length;p=p===t?k:ws(Tr(p),0,k);var B=p;return p-=a.length,p>=0&&o.slice(p,B)==a}function V3(o){return o=tn(o),o&&ut.test(o)?o.replace(St,Ks):o}function G3(o){return o=tn(o),o&&At.test(o)?o.replace(et,"\\$&"):o}var Z3=D(function(o,a,p){return o+(p?"-":"")+a.toLowerCase()}),K3=D(function(o,a,p){return o+(p?" ":"")+a.toLowerCase()}),Y3=y("toLowerCase");function X3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;if(!a||k>=a)return o;var B=(a-k)/2;return Dr(bs(B),p)+o+Dr(ta(B),p)}function J3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?o+Dr(a-k,p):o}function Q3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?Dr(a-k,p)+o:o}function eA(o,a,p){return p||a==null?a=0:a&&(a=+a),dc(tn(o).replace(vt,""),a||0)}function tA(o,a,p){return(p?Ji(o,a,p):a===t)?a=1:a=Tr(a),Fl(tn(o),a)}function rA(){var o=arguments,a=tn(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var nA=D(function(o,a,p){return o+(p?"_":"")+a.toLowerCase()});function iA(o,a,p){return p&&typeof p!="number"&&Ji(o,a,p)&&(a=p=t),p=p===t?ae:p>>>0,p?(o=tn(o),o&&(typeof a=="string"||a!=null&&!Hh(a))&&(a=Oi(a),!a&&Ys(o))?fo(fn(o),0,p):o.split(a,p)):[]}var oA=D(function(o,a,p){return o+(p?" ":"")+$h(a)});function sA(o,a,p){return o=tn(o),p=p==null?0:ws(Tr(p),0,o.length),a=Oi(a),o.slice(p,p+a.length)==a}function aA(o,a,p){var k=W.templateSettings;p&&Ji(o,a,p)&&(a=t),o=tn(o),a=Sd({},a,k,Vm);var B=Sd({},a.imports,k.imports,Vm),K=vi(B),oe=hr(B,K),de,xe,rt=0,nt=a.interpolate||Kn,ft="__p += '",Ot=Js((a.escape||Kn).source+"|"+nt.source+"|"+(nt===rr?Wt:Kn).source+"|"+(a.evaluate||Kn).source+"|$","g"),Xt="//# sourceURL="+(zr.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Or+"]")+`
35
+ `)}function DS(o){return br(o)||zc(o)||!!(xl&&o&&o[xl])}function Ya(o,a){var p=typeof o;return a=a??ue,!!a&&(p=="number"||p!="symbol"&&Ur.test(o))&&o>-1&&o%1==0&&o<a}function Ji(o,a,p){if(!Mn(p))return!1;var k=typeof a;return(k=="number"?go(p)&&Ya(a,p.length):k=="string"&&a in p)?Ls(p[a],o):!1}function Lh(o,a){if(br(o))return!1;var p=typeof o;return p=="number"||p=="symbol"||p=="boolean"||o==null||Fo(o)?!0:zt.test(o)||!Ft.test(o)||a!=null&&o in Wr(a)}function OS(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function Mh(o){var a=dd(o),p=W[a];if(typeof p!="function"||!(a in yr.prototype))return!1;if(o===p)return!0;var k=kh(p);return!!k&&o===k[0]}function PS(o){return!!ln&&ln in o}var NS=en?Xa:Kh;function wf(o){var a=o&&o.constructor,p=typeof a=="function"&&a.prototype||Uo;return o===p}function Jm(o){return o===o&&!Mn(o)}function Qm(o,a){return function(p){return p==null?!1:p[o]===a&&(a!==t||o in Wr(p))}}function FS(o){var a=yd(o,function(k){return p.size===m&&p.clear(),k}),p=a.cache;return a}function jS(o,a){var p=o[1],k=a[1],B=p|k,K=B<(w|b|Y),oe=k==Y&&p==O||k==Y&&p==fe&&o[7].length<=a[8]||k==(Y|fe)&&a[7].length<=a[8]&&p==O;if(!(K||oe))return o;k&w&&(o[2]=a[2],B|=p&w?0:I);var de=a[3];if(de){var xe=o[3];o[3]=xe?Eu(xe,de,a[4]):de,o[4]=xe?wo(o[3],R):a[4]}return de=a[5],de&&(xe=o[5],o[5]=xe?Bc(xe,de,a[6]):de,o[6]=xe?wo(o[5],R):a[6]),de=a[7],de&&(o[7]=de),k&Y&&(o[8]=o[8]==null?a[8]:Ln(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=B,o}function BS(o){var a=[];if(o!=null)for(var p in Wr(o))a.push(p);return a}function HS(o){return To.call(o)}function ev(o,a,p){return a=cn(a===t?o.length-1:a,0),function(){for(var k=arguments,B=-1,K=cn(k.length-a,0),oe=Oe(K);++B<K;)oe[B]=k[a+B];B=-1;for(var de=Oe(a+1);++B<a;)de[B]=k[B];return de[a]=p(oe),an(o,this,de)}}function tv(o,a){return a.length<2?o:es(o,Di(a,0,-1))}function qS(o,a){for(var p=o.length,k=Ln(a.length,p),B=si(o);k--;){var K=a[k];o[k]=Ya(K,p)?B[K]:t}return o}function Dh(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var rv=iv(Lc),Af=fu||function(o,a){return dr.setTimeout(o,a)},Oh=iv(wu);function nv(o,a,p){var k=a+"";return Oh(o,MS(k,zS(RS(k),p)))}function iv(o){var a=0,p=0;return function(){var k=Go(),B=Q-(k-p);if(p=k,B>0){if(++a>=re)return arguments[0]}else a=0;return o.apply(t,arguments)}}function pd(o,a){var p=-1,k=o.length,B=k-1;for(a=a===t?k:a;++p<a;){var K=Rs(p,B),oe=o[K];o[K]=o[p],o[p]=oe}return o.length=a,o}var ov=FS(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(nr,function(p,k,B,K){a.push(B?K.replace(Pt,"$1"):k||p)}),a});function ma(o){if(typeof o=="string"||Fo(o))return o;var a=o+"";return a=="0"&&1/o==-1/0?"-0":a}function qc(o){if(o!=null){try{return Wo.call(o)}catch{}try{return o+""}catch{}}return""}function zS(o,a){return zn(Qe,function(p){var k="_."+p[0];a&p[1]&&!So(o,k)&&o.push(k)}),o.sort()}function sv(o){if(o instanceof yr)return o.clone();var a=new ii(o.__wrapped__,o.__chain__);return a.__actions__=si(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function $S(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=cn(Tr(a),0);var k=o==null?0:o.length;if(!k||a<1)return[];for(var B=0,K=0,oe=Oe(ta(k/a));B<k;)oe[K++]=Di(o,B,B+=a);return oe}function US(o){for(var a=-1,p=o==null?0:o.length,k=0,B=[];++a<p;){var K=o[a];K&&(B[k++]=K)}return B}function WS(){var o=arguments.length;if(!o)return[];for(var a=Oe(o-1),p=arguments[0],k=o;k--;)a[k-1]=arguments[k];return Ai(br(p)?si(p):[p],Un(a,1))}var VS=mr(function(o,a){return Vn(o)?As(o,Un(a,1,Vn,!0)):[]}),GS=mr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),lr(p,2)):[]}),ZS=mr(function(o,a){var p=ss(a);return Vn(p)&&(p=t),Vn(o)?As(o,Un(a,1,Vn,!0),t,p):[]});function KS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),Di(o,a<0?0:a,k)):[]}function YS(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,0,a<0?0:a)):[]}function XS(o,a){return o&&o.length?ql(o,lr(a,3),!0,!0):[]}function JS(o,a){return o&&o.length?ql(o,lr(a,3),!0):[]}function QS(o,a,p,k){var B=o==null?0:o.length;return B?(p&&typeof p!="number"&&Ji(o,a,p)&&(p=0,k=B),bf(o,a,p,k)):[]}function av(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),ms(o,lr(a,3),B)}function lv(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k-1;return p!==t&&(B=Tr(p),B=p<0?cn(k+B,0):Ln(B,k-1)),ms(o,lr(a,3),B,!0)}function cv(o){var a=o==null?0:o.length;return a?Un(o,1):[]}function eC(o){var a=o==null?0:o.length;return a?Un(o,be):[]}function tC(o,a){var p=o==null?0:o.length;return p?(a=a===t?1:Tr(a),Un(o,a)):[]}function rC(o){for(var a=-1,p=o==null?0:o.length,k={};++a<p;){var B=o[a];k[B[0]]=B[1]}return k}function uv(o){return o&&o.length?o[0]:t}function nC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=p==null?0:Tr(p);return B<0&&(B=cn(k+B,0)),Co(o,a,B)}function iC(o){var a=o==null?0:o.length;return a?Di(o,0,-1):[]}var oC=mr(function(o){var a=Kr(o,zl);return a.length&&a[0]===o[0]?ua(a):[]}),sC=mr(function(o){var a=ss(o),p=Kr(o,zl);return a===ss(p)?a=t:p.pop(),p.length&&p[0]===o[0]?ua(p,lr(a,2)):[]}),aC=mr(function(o){var a=ss(o),p=Kr(o,zl);return a=typeof a=="function"?a:t,a&&p.pop(),p.length&&p[0]===o[0]?ua(p,t,a):[]});function lC(o,a){return o==null?"":Da.call(o,a)}function ss(o){var a=o==null?0:o.length;return a?o[a-1]:t}function cC(o,a,p){var k=o==null?0:o.length;if(!k)return-1;var B=k;return p!==t&&(B=Tr(p),B=B<0?cn(k+B,0):Ln(B,k-1)),a===a?lf(o,a,B):ms(o,Zs,B,!0)}function uC(o,a){return o&&o.length?ha(o,Tr(a)):t}var fC=mr(fv);function fv(o,a){return o&&o.length&&a&&a.length?Ec(o,a):o}function dC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,lr(p,2)):o}function hC(o,a,p){return o&&o.length&&a&&a.length?Ec(o,a,t,p):o}var pC=Ka(function(o,a){var p=o==null?0:o.length,k=_c(o,a);return kc(o,Kr(a,function(B){return Ya(B,p)?+B:B}).sort(Ga)),k});function gC(o,a){var p=[];if(!(o&&o.length))return p;var k=-1,B=[],K=o.length;for(a=lr(a,3);++k<K;){var oe=o[k];a(oe,k,o)&&(p.push(oe),B.push(k))}return kc(o,B),p}function Ph(o){return o==null?o:Cl.call(o)}function mC(o,a,p){var k=o==null?0:o.length;return k?(p&&typeof p!="number"&&Ji(o,a,p)?(a=0,p=k):(a=a==null?0:Tr(a),p=p===t?k:Tr(p)),Di(o,a,p)):[]}function vC(o,a){return jl(o,a)}function yC(o,a,p){return Bl(o,a,lr(p,2))}function bC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a);if(k<p&&Ls(o[k],a))return k}return-1}function _C(o,a){return jl(o,a,!0)}function xC(o,a,p){return Bl(o,a,lr(p,2),!0)}function SC(o,a){var p=o==null?0:o.length;if(p){var k=jl(o,a,!0)-1;if(Ls(o[k],a))return k}return-1}function CC(o){return o&&o.length?Au(o):[]}function wC(o,a){return o&&o.length?Au(o,lr(a,2)):[]}function AC(o){var a=o==null?0:o.length;return a?Di(o,1,a):[]}function TC(o,a,p){return o&&o.length?(a=p||a===t?1:Tr(a),Di(o,0,a<0?0:a)):[]}function EC(o,a,p){var k=o==null?0:o.length;return k?(a=p||a===t?1:Tr(a),a=k-a,Di(o,a<0?0:a,k)):[]}function kC(o,a){return o&&o.length?ql(o,lr(a,3),!1,!0):[]}function RC(o,a){return o&&o.length?ql(o,lr(a,3)):[]}var IC=mr(function(o){return Tn(Un(o,1,Vn,!0))}),LC=mr(function(o){var a=ss(o);return Vn(a)&&(a=t),Tn(Un(o,1,Vn,!0),lr(a,2))}),MC=mr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Tn(Un(o,1,Vn,!0),t,a)});function DC(o){return o&&o.length?Tn(o):[]}function OC(o,a){return o&&o.length?Tn(o,lr(a,2)):[]}function PC(o,a){return a=typeof a=="function"?a:t,o&&o.length?Tn(o,t,a):[]}function Nh(o){if(!(o&&o.length))return[];var a=0;return o=Wi(o,function(p){if(Vn(p))return a=cn(p.length,a),!0}),Te(a,function(p){return Kr(o,T(p))})}function dv(o,a){if(!(o&&o.length))return[];var p=Nh(o);return a==null?p:Kr(p,function(k){return an(a,t,k)})}var NC=mr(function(o,a){return Vn(o)?As(o,a):[]}),FC=mr(function(o){return Oc(Wi(o,Vn))}),jC=mr(function(o){var a=ss(o);return Vn(a)&&(a=t),Oc(Wi(o,Vn),lr(a,2))}),BC=mr(function(o){var a=ss(o);return a=typeof a=="function"?a:t,Oc(Wi(o,Vn),t,a)}),HC=mr(Nh);function qC(o,a){return Pc(o||[],a||[],fi)}function zC(o,a){return Pc(o||[],a||[],Is)}var $C=mr(function(o){var a=o.length,p=a>1?o[a-1]:t;return p=typeof p=="function"?(o.pop(),p):t,dv(o,p)});function hv(o){var a=W(o);return a.__chain__=!0,a}function UC(o,a){return a(o),o}function gd(o,a){return a(o)}var WC=Ka(function(o){var a=o.length,p=a?o[0]:0,k=this.__wrapped__,B=function(K){return _c(K,o)};return a>1||this.__actions__.length||!(k instanceof yr)||!Ya(p)?this.thru(B):(k=k.slice(p,+p+(a?1:0)),k.__actions__.push({func:gd,args:[B],thisArg:t}),new ii(k,this.__chain__).thru(function(K){return a&&!K.length&&K.push(t),K}))});function VC(){return hv(this)}function GC(){return new ii(this.value(),this.__chain__)}function ZC(){this.__values__===t&&(this.__values__=Ev(this.value()));var o=this.__index__>=this.__values__.length,a=o?t:this.__values__[this.__index__++];return{done:o,value:a}}function KC(){return this}function YC(o){for(var a,p=this;p instanceof Mo;){var k=sv(p);k.__index__=0,k.__values__=t,a?B.__wrapped__=k:a=k;var B=k;p=p.__wrapped__}return B.__wrapped__=o,a}function XC(){var o=this.__wrapped__;if(o instanceof yr){var a=o;return this.__actions__.length&&(a=new yr(this)),a=a.reverse(),a.__actions__.push({func:gd,args:[Ph],thisArg:t}),new ii(a,this.__chain__)}return this.thru(Ph)}function JC(){return oi(this.__wrapped__,this.__actions__)}var QC=Ul(function(o,a,p){zr.call(o,p)?++o[p]:Li(o,p,1)});function ew(o,a,p){var k=br(o)?Ta:yu;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}function tw(o,a){var p=br(o)?Wi:bu;return p(o,lr(a,3))}var rw=ie(av),nw=ie(lv);function iw(o,a){return Un(md(o,a),1)}function ow(o,a){return Un(md(o,a),be)}function sw(o,a,p){return p=p===t?1:Tr(p),Un(md(o,a),p)}function pv(o,a){var p=br(o)?zn:Qo;return p(o,lr(a,3))}function gv(o,a){var p=br(o)?fl:wc;return p(o,lr(a,3))}var aw=Ul(function(o,a,p){zr.call(o,p)?o[p].push(a):Li(o,p,[a])});function lw(o,a,p,k){o=go(o)?o:Lu(o),p=p&&!k?Tr(p):0;var B=o.length;return p<0&&(p=cn(B+p,0)),xd(o)?p<=B&&o.indexOf(a,p)>-1:!!B&&Co(o,a,p)>-1}var cw=mr(function(o,a,p){var k=-1,B=typeof a=="function",K=go(o)?Oe(o.length):[];return Qo(o,function(oe){K[++k]=B?an(a,oe,p):co(oe,a,p)}),K}),uw=Ul(function(o,a,p){Li(o,p,a)});function md(o,a){var p=br(o)?Kr:Ki;return p(o,lr(a,3))}function fw(o,a,p,k){return o==null?[]:(br(a)||(a=a==null?[]:[a]),p=k?t:p,br(p)||(p=p==null?[]:[p]),Nl(o,a,p))}var dw=Ul(function(o,a,p){o[p?0:1].push(a)},function(){return[[],[]]});function hw(o,a,p){var k=br(o)?Ea:U,B=arguments.length<3;return k(o,lr(a,4),p,B,Qo)}function pw(o,a,p){var k=br(o)?dl:U,B=arguments.length<3;return k(o,lr(a,4),p,B,wc)}function gw(o,a){var p=br(o)?Wi:bu;return p(o,bd(lr(a,3)))}function mw(o){var a=br(o)?mi:Ua;return a(o)}function vw(o,a,p){(p?Ji(o,a,p):a===t)?a=1:a=Tr(a);var k=br(o)?Ii:Ic;return k(o,a)}function yw(o){var a=br(o)?lo:Mc;return a(o)}function bw(o){if(o==null)return 0;if(go(o))return xd(o)?Xs(o):o.length;var a=Hi(o);return a==ct||a==_t?o.size:Po(o).length}function _w(o,a,p){var k=br(o)?$o:_f;return p&&Ji(o,a,p)&&(a=t),k(o,lr(a,3))}var xw=mr(function(o,a){if(o==null)return[];var p=a.length;return p>1&&Ji(o,a[0],a[1])?a=[]:p>2&&Ji(a[0],a[1],a[2])&&(a=[a[0]]),Nl(o,Un(a,1),[])}),vd=Ma||function(){return dr.Date.now()};function Sw(o,a){if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){if(--o<1)return a.apply(this,arguments)}}function mv(o,a,p){return a=p?t:a,a=o&&a==null?o.length:a,Za(o,Y,t,t,t,t,a)}function vv(o,a){var p;if(typeof a!="function")throw new Bi(u);return o=Tr(o),function(){return--o>0&&(p=a.apply(this,arguments)),o<=1&&(a=t),p}}var Fh=mr(function(o,a,p){var k=w;if(p.length){var B=wo(p,Ru(Fh));k|=q}return Za(o,k,a,p,B)}),yv=mr(function(o,a,p){var k=w|b;if(p.length){var B=wo(p,Ru(yv));k|=q}return Za(a,k,o,p,B)});function bv(o,a,p){a=p?t:a;var k=Za(o,O,t,t,t,t,t,a);return k.placeholder=bv.placeholder,k}function _v(o,a,p){a=p?t:a;var k=Za(o,H,t,t,t,t,t,a);return k.placeholder=_v.placeholder,k}function xv(o,a,p){var k,B,K,oe,de,xe,rt=0,nt=!1,ft=!1,Ot=!0;if(typeof o!="function")throw new Bi(u);a=as(a)||0,Mn(p)&&(nt=!!p.leading,ft="maxWait"in p,K=ft?cn(as(p.maxWait)||0,a):K,Ot="trailing"in p?!!p.trailing:Ot);function Xt(Gn){var Ms=k,Qa=B;return k=B=t,rt=Gn,oe=o.apply(Qa,Ms),oe}function cr(Gn){return rt=Gn,de=Af(Fr,a),nt?Xt(Gn):oe}function Ir(Gn){var Ms=Gn-xe,Qa=Gn-rt,Hv=a-Ms;return ft?Ln(Hv,K-Qa):Hv}function ur(Gn){var Ms=Gn-xe,Qa=Gn-rt;return xe===t||Ms>=a||Ms<0||ft&&Qa>=K}function Fr(){var Gn=vd();if(ur(Gn))return qr(Gn);de=Af(Fr,Ir(Gn))}function qr(Gn){return de=t,Ot&&k?Xt(Gn):(k=B=t,oe)}function jo(){de!==t&&ns(de),rt=0,k=xe=B=de=t}function Qi(){return de===t?oe:qr(vd())}function Bo(){var Gn=vd(),Ms=ur(Gn);if(k=arguments,B=this,xe=Gn,Ms){if(de===t)return cr(xe);if(ft)return ns(de),de=Af(Fr,a),Xt(xe)}return de===t&&(de=Af(Fr,a)),oe}return Bo.cancel=jo,Bo.flush=Qi,Bo}var Cw=mr(function(o,a){return Cc(o,1,a)}),ww=mr(function(o,a,p){return Cc(o,as(a)||0,p)});function Aw(o){return Za(o,X)}function yd(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Bi(u);var p=function(){var k=arguments,B=a?a.apply(this,k):k[0],K=p.cache;if(K.has(B))return K.get(B);var oe=o.apply(this,k);return p.cache=K.set(B,oe)||K,oe};return p.cache=new(yd.Cache||Do),p}yd.Cache=Do;function bd(o){if(typeof o!="function")throw new Bi(u);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function Tw(o){return vv(2,o)}var Ew=xf(function(o,a){a=a.length==1&&br(a[0])?Kr(a[0],Ut(lr())):Kr(Un(a,1),Ut(lr()));var p=a.length;return mr(function(k){for(var B=-1,K=Ln(k.length,p);++B<K;)k[B]=a[B].call(this,k[B]);return an(o,this,k)})}),jh=mr(function(o,a){var p=wo(a,Ru(jh));return Za(o,q,t,a,p)}),Sv=mr(function(o,a){var p=wo(a,Ru(Sv));return Za(o,z,t,a,p)}),kw=Ka(function(o,a){return Za(o,fe,t,t,t,a)});function Rw(o,a){if(typeof o!="function")throw new Bi(u);return a=a===t?a:Tr(a),mr(o,a)}function Iw(o,a){if(typeof o!="function")throw new Bi(u);return a=a==null?0:cn(Tr(a),0),mr(function(p){var k=p[a],B=fo(p,0,a);return k&&Ai(B,k),an(o,this,B)})}function Lw(o,a,p){var k=!0,B=!0;if(typeof o!="function")throw new Bi(u);return Mn(p)&&(k="leading"in p?!!p.leading:k,B="trailing"in p?!!p.trailing:B),xv(o,a,{leading:k,maxWait:a,trailing:B})}function Mw(o){return mv(o,1)}function Dw(o,a){return jh(rs(a),o)}function Ow(){if(!arguments.length)return[];var o=arguments[0];return br(o)?o:[o]}function Pw(o){return di(o,S)}function Nw(o,a){return a=typeof a=="function"?a:t,di(o,S,a)}function Fw(o){return di(o,E|S)}function jw(o,a){return a=typeof a=="function"?a:t,di(o,E|S,a)}function Bw(o,a){return a==null||Sc(o,a,vi(a))}function Ls(o,a){return o===a||o!==o&&a!==a}var Hw=ho(Ts),qw=ho(function(o,a){return o>=a}),zc=Dl(function(){return arguments}())?Dl:function(o){return Nn(o)&&zr.call(o,"callee")&&!_l.call(o,"callee")},br=Oe.isArray,zw=Qr?Ut(Qr):Es;function go(o){return o!=null&&_d(o.length)&&!Xa(o)}function Vn(o){return Nn(o)&&go(o)}function $w(o){return o===!0||o===!1||Nn(o)&&Pn(o)==tt}var Wl=Sl||Kh,Uw=ci?Ut(ci):xu;function Ww(o){return Nn(o)&&o.nodeType===1&&!Tf(o)}function Vw(o){if(o==null)return!0;if(go(o)&&(br(o)||typeof o=="string"||typeof o.splice=="function"||Wl(o)||Iu(o)||zc(o)))return!o.length;var a=Hi(o);if(a==ct||a==_t)return!o.size;if(wf(o))return!Po(o).length;for(var p in o)if(zr.call(o,p))return!1;return!0}function Gw(o,a){return Ha(o,a)}function Zw(o,a,p){p=typeof p=="function"?p:t;var k=p?p(o,a):t;return k===t?Ha(o,a,t,p):!!k}function Bh(o){if(!Nn(o))return!1;var a=Pn(o);return a==Ee||a==Me||typeof o.message=="string"&&typeof o.name=="string"&&!Tf(o)}function Kw(o){return typeof o=="number"&&na(o)}function Xa(o){if(!Mn(o))return!1;var a=Pn(o);return a==we||a==We||a==Xe||a==ot}function Cv(o){return typeof o=="number"&&o==Tr(o)}function _d(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ue}function Mn(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function Nn(o){return o!=null&&typeof o=="object"}var wv=gi?Ut(gi):da;function Yw(o,a){return o===a||Tc(o,a,Rh(a))}function Xw(o,a,p){return p=typeof p=="function"?p:t,Tc(o,a,Rh(a),p)}function Jw(o){return Av(o)&&o!=+o}function Qw(o){if(NS(o))throw new sr(l);return Su(o)}function e3(o){return o===null}function t3(o){return o==null}function Av(o){return typeof o=="number"||Nn(o)&&Pn(o)==Ne}function Tf(o){if(!Nn(o)||Pn(o)!=Le)return!1;var a=ys(o);if(a===null)return!0;var p=zr.call(a,"constructor")&&a.constructor;return typeof p=="function"&&p instanceof p&&Wo.call(p)==cc}var Hh=qn?Ut(qn):ks;function r3(o){return Cv(o)&&o>=-9007199254740991&&o<=ue}var Tv=xo?Ut(xo):Ol;function xd(o){return typeof o=="string"||!br(o)&&Nn(o)&&Pn(o)==wt}function Fo(o){return typeof o=="symbol"||Nn(o)&&Pn(o)==xt}var Iu=Ui?Ut(Ui):Oo;function n3(o){return o===t}function i3(o){return Nn(o)&&Hi(o)==je}function o3(o){return Nn(o)&&Pn(o)==yt}var s3=ho(Zi),a3=ho(function(o,a){return o<=a});function Ev(o){if(!o)return[];if(go(o))return xd(o)?fn(o):si(o);if(Vi&&o[Vi])return sc(o[Vi]());var a=Hi(o),p=a==ct?ac:a==_t?Ra:Lu;return p(o)}function Ja(o){if(!o)return o===0?o:0;if(o=as(o),o===be||o===-1/0){var a=o<0?-1:1;return a*Se}return o===o?o:0}function Tr(o){var a=Ja(o),p=a%1;return a===a?p?a-p:a:0}function kv(o){return o?ws(Tr(o),0,ae):0}function as(o){if(typeof o=="number")return o;if(Fo(o))return le;if(Mn(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=Mn(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=gt(o);var p=ir.test(o);return p||fr.test(o)?Vt(o.slice(2),p?2:8):$t.test(o)?le:+o}function Rv(o){return Xi(o,mo(o))}function l3(o){return o?ws(Tr(o),-9007199254740991,ue):o===0?o:0}function tn(o){return o==null?"":Oi(o)}var c3=d(function(o,a){if(wf(a)||go(a)){Xi(a,vi(a),o);return}for(var p in a)zr.call(a,p)&&fi(o,p,a[p])}),Iv=d(function(o,a){Xi(a,mo(a),o)}),Sd=d(function(o,a,p,k){Xi(a,mo(a),o,k)}),u3=d(function(o,a,p,k){Xi(a,vi(a),o,k)}),f3=Ka(_c);function d3(o,a){var p=Lo(o);return a==null?p:vu(p,a)}var h3=mr(function(o,a){o=Wr(o);var p=-1,k=a.length,B=k>2?a[2]:t;for(B&&Ji(a[0],a[1],B)&&(k=1);++p<k;)for(var K=a[p],oe=mo(K),de=-1,xe=oe.length;++de<xe;){var rt=oe[de],nt=o[rt];(nt===t||Ls(nt,Uo[rt])&&!zr.call(o,rt))&&(o[rt]=K[rt])}return o}),p3=mr(function(o){return o.push(t,Gm),an(Lv,t,o)});function g3(o,a){return gs(o,lr(a,3),Mi)}function m3(o,a){return gs(o,lr(a,3),Rl)}function v3(o,a){return o==null?o:Ac(o,lr(a,3),mo)}function y3(o,a){return o==null?o:_u(o,lr(a,3),mo)}function b3(o,a){return o&&Mi(o,lr(a,3))}function _3(o,a){return o&&Rl(o,lr(a,3))}function x3(o){return o==null?[]:la(o,vi(o))}function S3(o){return o==null?[]:la(o,mo(o))}function qh(o,a,p){var k=o==null?t:es(o,a);return k===t?p:k}function C3(o,a){return o!=null&&Ym(o,a,Il)}function zh(o,a){return o!=null&&Ym(o,a,ca)}var w3=lt(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),o[a]=p},Uh(vo)),A3=lt(function(o,a,p){a!=null&&typeof a.toString!="function"&&(a=To.call(a)),zr.call(o,a)?o[a].push(p):o[a]=[p]},lr),T3=mr(co);function vi(o){return go(o)?ja(o):Po(o)}function mo(o){return go(o)?ja(o,!0):qa(o)}function E3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,K){Li(p,a(k,B,K),k)}),p}function k3(o,a){var p={};return a=lr(a,3),Mi(o,function(k,B,K){Li(p,B,a(k,B,K))}),p}var R3=d(function(o,a,p){ts(o,a,p)}),Lv=d(function(o,a,p,k){ts(o,a,p,k)}),I3=Ka(function(o,a){var p={};if(o==null)return p;var k=!1;a=Kr(a,function(K){return K=No(K,o),k||(k=K.length>1),K}),Xi(o,Eh(o),p),k&&(p=di(p,E|_|S,wS));for(var B=a.length;B--;)Dc(p,a[B]);return p});function L3(o,a){return Mv(o,bd(lr(a)))}var M3=Ka(function(o,a){return o==null?{}:$a(o,a)});function Mv(o,a){if(o==null)return{};var p=Kr(Eh(o),function(k){return[k]});return a=lr(a),pa(o,p,function(k,B){return a(k,B[0])})}function D3(o,a,p){a=No(a,o);var k=-1,B=a.length;for(B||(B=1,o=t);++k<B;){var K=o==null?t:o[ma(a[k])];K===t&&(k=B,K=p),o=Xa(K)?K.call(o):K}return o}function O3(o,a,p){return o==null?o:Is(o,a,p)}function P3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Is(o,a,p,k)}var Dv=fd(vi),Ov=fd(mo);function N3(o,a,p){var k=br(o),B=k||Wl(o)||Iu(o);if(a=lr(a,4),p==null){var K=o&&o.constructor;B?p=k?new K:[]:Mn(o)?p=Xa(K)?Lo(ys(o)):{}:p={}}return(B?zn:Mi)(o,function(oe,de,xe){return a(p,oe,de,xe)}),p}function F3(o,a){return o==null?!0:Dc(o,a)}function j3(o,a,p){return o==null?o:Wa(o,a,rs(p))}function B3(o,a,p,k){return k=typeof k=="function"?k:t,o==null?o:Wa(o,a,rs(p),k)}function Lu(o){return o==null?[]:hr(o,vi(o))}function H3(o){return o==null?[]:hr(o,mo(o))}function q3(o,a,p){return p===t&&(p=a,a=t),p!==t&&(p=as(p),p=p===p?p:0),a!==t&&(a=as(a),a=a===a?a:0),ws(as(o),a,p)}function z3(o,a,p){return a=Ja(a),p===t?(p=a,a=0):p=Ja(p),o=as(o),Ll(o,a,p)}function $3(o,a,p){if(p&&typeof p!="boolean"&&Ji(o,a,p)&&(a=p=t),p===t&&(typeof a=="boolean"?(p=a,a=t):typeof o=="boolean"&&(p=o,o=t)),o===t&&a===t?(o=0,a=1):(o=Ja(o),a===t?(a=o,o=0):a=Ja(a)),o>a){var k=o;o=a,a=k}if(p||o%1||a%1){var B=Zo();return Ln(o+B*(a-o+Yt("1e-"+((B+"").length-1))),a)}return Rs(o,a)}var U3=D(function(o,a,p){return a=a.toLowerCase(),o+(p?Pv(a):a)});function Pv(o){return $h(tn(o).toLowerCase())}function Nv(o){return o=tn(o),o&&o.replace(vr,Ei).replace(no,"")}function W3(o,a,p){o=tn(o),a=Oi(a);var k=o.length;p=p===t?k:ws(Tr(p),0,k);var B=p;return p-=a.length,p>=0&&o.slice(p,B)==a}function V3(o){return o=tn(o),o&&ut.test(o)?o.replace(St,Ks):o}function G3(o){return o=tn(o),o&&At.test(o)?o.replace(et,"\\$&"):o}var Z3=D(function(o,a,p){return o+(p?"-":"")+a.toLowerCase()}),K3=D(function(o,a,p){return o+(p?" ":"")+a.toLowerCase()}),Y3=y("toLowerCase");function X3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;if(!a||k>=a)return o;var B=(a-k)/2;return Dr(bs(B),p)+o+Dr(ta(B),p)}function J3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?o+Dr(a-k,p):o}function Q3(o,a,p){o=tn(o),a=Tr(a);var k=a?Xs(o):0;return a&&k<a?Dr(a-k,p)+o:o}function eA(o,a,p){return p||a==null?a=0:a&&(a=+a),dc(tn(o).replace(vt,""),a||0)}function tA(o,a,p){return(p?Ji(o,a,p):a===t)?a=1:a=Tr(a),Fl(tn(o),a)}function rA(){var o=arguments,a=tn(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var nA=D(function(o,a,p){return o+(p?"_":"")+a.toLowerCase()});function iA(o,a,p){return p&&typeof p!="number"&&Ji(o,a,p)&&(a=p=t),p=p===t?ae:p>>>0,p?(o=tn(o),o&&(typeof a=="string"||a!=null&&!Hh(a))&&(a=Oi(a),!a&&Ys(o))?fo(fn(o),0,p):o.split(a,p)):[]}var oA=D(function(o,a,p){return o+(p?" ":"")+$h(a)});function sA(o,a,p){return o=tn(o),p=p==null?0:ws(Tr(p),0,o.length),a=Oi(a),o.slice(p,p+a.length)==a}function aA(o,a,p){var k=W.templateSettings;p&&Ji(o,a,p)&&(a=t),o=tn(o),a=Sd({},a,k,Vm);var B=Sd({},a.imports,k.imports,Vm),K=vi(B),oe=hr(B,K),de,xe,rt=0,nt=a.interpolate||Kn,ft="__p += '",Ot=Js((a.escape||Kn).source+"|"+nt.source+"|"+(nt===rr?Wt:Kn).source+"|"+(a.evaluate||Kn).source+"|$","g"),Xt="//# sourceURL="+(zr.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Or+"]")+`
36
36
  `;o.replace(Ot,function(ur,Fr,qr,jo,Qi,Bo){return qr||(qr=jo),ft+=o.slice(rt,Bo).replace(Cn,ml),Fr&&(de=!0,ft+=`' +
37
37
  __e(`+Fr+`) +
38
38
  '`),Qi&&(xe=!0,ft+=`';
@@ -63,7 +63,7 @@ function print() { __p += __j.call(arguments, '') }
63
63
  `?C.push(`
64
64
  `,G):C.push(""+G))}return typeof Ce=="string"&&Ce[0]===`
65
65
  `&&C.push(`
66
- `),Ce;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":C.push(re(N));for(var vn in G)if(t.call(G,vn)&&(Ce=G[vn],Ce!=null))switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:z(C,ee,vn,Ce)}return C.push("/>"),null;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 X(C,G,N,ee);case"html":return ke.insertionMode===0&&C.push("<!DOCTYPE html>"),X(C,G,N,ee);default:if(N.indexOf("-")===-1&&typeof G.is!="string")return X(C,G,N,ee);C.push(re(N)),Be=Ce=null;for(qt in G)if(t.call(G,qt)&&(at=G[qt],at!=null))switch(qt){case"children":Ce=at;break;case"dangerouslySetInnerHTML":Be=at;break;case"style":q(C,ee,at);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(qt)&&typeof at!="function"&&typeof at!="symbol"&&C.push(" ",qt,'="',x(at),'"')}return C.push(">"),Y(C,Be,Ce),Ce}}function J(C,N,G){if(C.push('<!--$?--><template id="'),G===null)throw Error(e(395));return C.push(G),C.push('"></template>')}function me(C,N,G,ee){switch(G.insertionMode){case 0:case 1:return C.push('<div hidden id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 2:return C.push('<svg aria-hidden="true" style="display:none" id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 3:return C.push('<math aria-hidden="true" style="display:none" id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 4:return C.push('<table hidden id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 5:return C.push('<table hidden><tbody id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 6:return C.push('<table hidden><tr id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 7:return C.push('<table hidden><colgroup id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');default:throw Error(e(397))}}function ce(C,N){switch(N.insertionMode){case 0:case 1:return C.push("</div>");case 2:return C.push("</svg>");case 3:return C.push("</math>");case 4:return C.push("</table>");case 5:return C.push("</tbody></table>");case 6:return C.push("</tr></table>");case 7:return C.push("</colgroup></table>");default:throw Error(e(397))}}var be=/[<\u2028\u2029]/g;function ue(C){return JSON.stringify(C).replace(be,function(N){switch(N){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Se(C,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:C}}function le(C,N,G,ee){return G.generateStaticMarkup?(C.push(x(N)),!1):(N===""?C=ee:(ee&&C.push("<!-- -->"),C.push(x(N)),C=!0),C)}var ae=Object.assign,ge=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),Ie=Symbol.for("react.profiler"),Xe=Symbol.for("react.provider"),tt=Symbol.for("react.context"),Ge=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),we=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),ct=Symbol.for("react.scope"),Ne=Symbol.for("react.debug_trace_mode"),bt=Symbol.for("react.legacy_hidden"),Le=Symbol.for("react.default_value"),Ze=Symbol.iterator;function ot(C){if(C==null)return null;if(typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case Qe:return"Fragment";case Pe:return"Portal";case Ie:return"Profiler";case pe:return"StrictMode";case Me:return"Suspense";case Ee:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case tt:return(C.displayName||"Context")+".Consumer";case Xe:return(C._context.displayName||"Context")+".Provider";case Ge:var N=C.render;return C=C.displayName,C||(C=N.displayName||N.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case we:return N=C.displayName||null,N!==null?N:ot(C.type)||"Memo";case Ue:N=C._payload,C=C._init;try{return ot(C(N))}catch{}}return null}var Ct={};function _t(C,N){if(C=C.contextTypes,!C)return Ct;var G={},ee;for(ee in C)G[ee]=N[ee];return G}var wt=null;function xt(C,N){if(C!==N){C.context._currentValue2=C.parentValue,C=C.parent;var G=N.parent;if(C===null){if(G!==null)throw Error(e(401))}else{if(G===null)throw Error(e(401));xt(C,G)}N.context._currentValue2=N.value}}function it(C){C.context._currentValue2=C.parentValue,C=C.parent,C!==null&&it(C)}function je(C){var N=C.parent;N!==null&&je(N),C.context._currentValue2=C.value}function yt(C,N){if(C.context._currentValue2=C.parentValue,C=C.parent,C===null)throw Error(e(402));C.depth===N.depth?xt(C,N):yt(C,N)}function st(C,N){var G=N.parent;if(G===null)throw Error(e(402));C.depth===G.depth?xt(C,G):st(C,G),N.context._currentValue2=N.value}function Rt(C){var N=wt;N!==C&&(N===null?je(C):C===null?it(N):N.depth===C.depth?xt(N,C):N.depth>C.depth?yt(N,C):st(N,C),wt=C)}var Bt={isMounted:function(){return!1},enqueueSetState:function(C,N){C=C._reactInternals,C.queue!==null&&C.queue.push(N)},enqueueReplaceState:function(C,N){C=C._reactInternals,C.replace=!0,C.queue=[N]},enqueueForceUpdate:function(){}};function ze(C,N,G,ee){var ke=C.state!==void 0?C.state:null;C.updater=Bt,C.props=G,C.state=ke;var Ce={queue:[],replace:!1};C._reactInternals=Ce;var Be=N.contextType;if(C.context=typeof Be=="object"&&Be!==null?Be._currentValue2:ee,Be=N.getDerivedStateFromProps,typeof Be=="function"&&(Be=Be(G,ke),ke=Be==null?ke:ae({},ke,Be),C.state=ke),typeof N.getDerivedStateFromProps!="function"&&typeof C.getSnapshotBeforeUpdate!="function"&&(typeof C.UNSAFE_componentWillMount=="function"||typeof C.componentWillMount=="function"))if(N=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),N!==C.state&&Bt.enqueueReplaceState(C,C.state,null),Ce.queue!==null&&0<Ce.queue.length)if(N=Ce.queue,Be=Ce.replace,Ce.queue=null,Ce.replace=!1,Be&&N.length===1)C.state=N[0];else{for(Ce=Be?N[0]:C.state,ke=!0,Be=Be?1:0;Be<N.length;Be++){var at=N[Be];at=typeof at=="function"?at.call(C,Ce,G,ee):at,at!=null&&(ke?(ke=!1,Ce=ae({},Ce,at)):ae(Ce,at))}C.state=Ce}else Ce.queue=null}var Tt={id:1,overflow:""};function Ht(C,N,G){var ee=C.id;C=C.overflow;var ke=32-_r(ee)-1;ee&=~(1<<ke),G+=1;var Ce=32-_r(N)+ke;if(30<Ce){var Be=ke-ke%5;return Ce=(ee&(1<<Be)-1).toString(32),ee>>=Be,ke-=Be,{id:1<<32-_r(N)+ke|G<<ke|ee,overflow:Ce+C}}return{id:1<<Ce|G<<ke|ee,overflow:C}}var _r=Math.clz32?Math.clz32:ve,kr=Math.log,Cr=Math.LN2;function ve(C){return C>>>=0,C===0?32:31-(kr(C)/Cr|0)|0}function ne(C,N){return C===N&&(C!==0||1/C===1/N)||C!==C&&N!==N}var Je=typeof Object.is=="function"?Object.is:ne,pt=null,$e=null,De=null,St=null,Et=!1,ut=!1,Nt=0,Qt=null,rr=0;function Ft(){if(pt===null)throw Error(e(321));return pt}function zt(){if(0<rr)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function nr(){return St===null?De===null?(Et=!1,De=St=zt()):(Et=!0,St=De):St.next===null?(Et=!1,St=St.next=zt()):(Et=!0,St=St.next),St}function et(){$e=pt=null,ut=!1,De=null,rr=0,St=Qt=null}function At(C,N){return typeof N=="function"?N(C):N}function vt(C,N,G){if(pt=Ft(),St=nr(),Et){var ee=St.queue;if(N=ee.dispatch,Qt!==null&&(G=Qt.get(ee),G!==void 0)){Qt.delete(ee),ee=St.memoizedState;do ee=C(ee,G.action),G=G.next;while(G!==null);return St.memoizedState=ee,[ee,N]}return[St.memoizedState,N]}return C=C===At?typeof N=="function"?N():N:G!==void 0?G(N):N,St.memoizedState=C,C=St.queue={last:null,dispatch:null},C=C.dispatch=pr.bind(null,pt,C),[St.memoizedState,C]}function It(C,N){if(pt=Ft(),St=nr(),N=N===void 0?null:N,St!==null){var G=St.memoizedState;if(G!==null&&N!==null){var ee=G[1];e:if(ee===null)ee=!1;else{for(var ke=0;ke<ee.length&&ke<N.length;ke++)if(!Je(N[ke],ee[ke])){ee=!1;break e}ee=!0}if(ee)return G[0]}}return C=C(),St.memoizedState=[C,N],C}function pr(C,N,G){if(25<=rr)throw Error(e(301));if(C===pt)if(ut=!0,C={action:G,next:null},Qt===null&&(Qt=new Map),G=Qt.get(N),G===void 0)Qt.set(N,C);else{for(N=G;N.next!==null;)N=N.next;N.next=C}}function $(){throw Error(e(394))}function _e(){}var Ke={readContext:function(C){return C._currentValue2},useContext:function(C){return Ft(),C._currentValue2},useMemo:It,useReducer:vt,useRef:function(C){pt=Ft(),St=nr();var N=St.memoizedState;return N===null?(C={current:C},St.memoizedState=C):N},useState:function(C){return vt(At,C)},useInsertionEffect:_e,useLayoutEffect:function(){},useCallback:function(C,N){return It(function(){return C},N)},useImperativeHandle:_e,useEffect:_e,useDebugValue:_e,useDeferredValue:function(C){return Ft(),C},useTransition:function(){return Ft(),[!1,$]},useId:function(){var C=$e.treeContext,N=C.overflow;C=C.id,C=(C&~(1<<32-_r(C)-1)).toString(32)+N;var G=mt;if(G===null)throw Error(e(404));return N=Nt++,C=":"+G.idPrefix+"R"+C,0<N&&(C+="H"+N.toString(32)),C+":"},useMutableSource:function(C,N){return Ft(),N(C._source)},useSyncExternalStore:function(C,N,G){if(G===void 0)throw Error(e(407));return G()}},mt=null,Pt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Wt(C){return console.error(C),null}function Lt(){}function $t(C,N,G,ee,ke,Ce,Be,at,Mt){var qt=[],jt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:jt,pingedTasks:qt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ke===void 0?Wt:ke,onAllReady:Lt,onShellReady:Be===void 0?Lt:Be,onShellError:Lt,onFatalError:Lt},G=or(N,0,null,G,!1,!1),G.parentFlushed=!0,C=ir(N,C,null,G,jt,Ct,null,Tt),qt.push(C),N}function ir(C,N,G,ee,ke,Ce,Be,at){C.allPendingTasks++,G===null?C.pendingRootTasks++:G.pendingTasks++;var Mt={node:N,ping:function(){var qt=C.pingedTasks;qt.push(Mt),qt.length===1&&wn(C)},blockedBoundary:G,blockedSegment:ee,abortSet:ke,legacyContext:Ce,context:Be,treeContext:at};return ke.add(Mt),Mt}function or(C,N,G,ee,ke,Ce){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:G,lastPushedText:ke,textEmbedded:Ce}}function fr(C,N){if(C=C.onError(N),C!=null&&typeof C!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof C+'" instead');return C}function Ur(C,N){var G=C.onShellError;G(N),G=C.onFatalError,G(N),C.destination!==null?(C.status=2,C.destination.destroy(N)):(C.status=1,C.fatalError=N)}function vr(C,N,G,ee,ke){for(pt={},$e=N,Nt=0,C=G(ee,ke);ut;)ut=!1,Nt=0,rr+=1,St=null,C=G(ee,ke);return et(),C}function Kn(C,N,G,ee){var ke=G.render(),Ce=ee.childContextTypes;if(Ce!=null){var Be=N.legacyContext;if(typeof G.getChildContext!="function")ee=Be;else{G=G.getChildContext();for(var at in G)if(!(at in Ce))throw Error(e(108,ot(ee)||"Unknown",at));ee=ae({},Be,G)}N.legacyContext=ee,Yr(C,N,ke),N.legacyContext=Be}else Yr(C,N,ke)}function Cn(C,N){if(C&&C.defaultProps){N=ae({},N),C=C.defaultProps;for(var G in C)N[G]===void 0&&(N[G]=C[G]);return N}return N}function Dn(C,N,G,ee,ke){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){ke=_t(G,N.legacyContext);var Ce=G.contextType;Ce=new G(ee,typeof Ce=="object"&&Ce!==null?Ce._currentValue2:ke),ze(Ce,G,ee,ke),Kn(C,N,Ce,G)}else{Ce=_t(G,N.legacyContext),ke=vr(C,N,G,ee,Ce);var Be=Nt!==0;if(typeof ke=="object"&&ke!==null&&typeof ke.render=="function"&&ke.$$typeof===void 0)ze(ke,G,ee,Ce),Kn(C,N,ke,G);else if(Be){ee=N.treeContext,N.treeContext=Ht(ee,1,0);try{Yr(C,N,ke)}finally{N.treeContext=ee}}else Yr(C,N,ke)}else if(typeof G=="string"){switch(ke=N.blockedSegment,Ce=Q(ke.chunks,G,ee,C.responseState,ke.formatContext),ke.lastPushedText=!1,Be=ke.formatContext,ke.formatContext=O(Be,G,ee),En(C,N,Ce),ke.formatContext=Be,G){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ke.chunks.push("</",G,">")}ke.lastPushedText=!1}else{switch(G){case bt:case Ne:case pe:case Ie:case Qe:Yr(C,N,ee.children);return;case Ee:Yr(C,N,ee.children);return;case ct:throw Error(e(343));case Me:e:{G=N.blockedBoundary,ke=N.blockedSegment,Ce=ee.fallback,ee=ee.children,Be=new Set;var at={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Be,errorDigest:null},Mt=or(C,ke.chunks.length,at,ke.formatContext,!1,!1);ke.children.push(Mt),ke.lastPushedText=!1;var qt=or(C,0,null,ke.formatContext,!1,!1);qt.parentFlushed=!0,N.blockedBoundary=at,N.blockedSegment=qt;try{if(En(C,N,ee),C.responseState.generateStaticMarkup||qt.lastPushedText&&qt.textEmbedded&&qt.chunks.push("<!-- -->"),qt.status=1,on(at,qt),at.pendingTasks===0)break e}catch(jt){qt.status=4,at.forceClientRender=!0,at.errorDigest=fr(C,jt)}finally{N.blockedBoundary=G,N.blockedSegment=ke}N=ir(C,Ce,G,Mt,Be,N.legacyContext,N.context,N.treeContext),C.pingedTasks.push(N)}return}if(typeof G=="object"&&G!==null)switch(G.$$typeof){case Ge:if(ee=vr(C,N,G.render,ee,ke),Nt!==0){G=N.treeContext,N.treeContext=Ht(G,1,0);try{Yr(C,N,ee)}finally{N.treeContext=G}}else Yr(C,N,ee);return;case we:G=G.type,ee=Cn(G,ee),Dn(C,N,G,ee,ke);return;case Xe:if(ke=ee.children,G=G._context,ee=ee.value,Ce=G._currentValue2,G._currentValue2=ee,Be=wt,wt=ee={parent:Be,depth:Be===null?0:Be.depth+1,context:G,parentValue:Ce,value:ee},N.context=ee,Yr(C,N,ke),C=wt,C===null)throw Error(e(403));ee=C.parentValue,C.context._currentValue2=ee===Le?C.context._defaultValue:ee,C=wt=C.parent,N.context=C;return;case tt:ee=ee.children,ee=ee(G._currentValue2),Yr(C,N,ee);return;case Ue:ke=G._init,G=ke(G._payload),ee=Cn(G,ee),Dn(C,N,G,ee,void 0);return}throw Error(e(130,G==null?G:typeof G,""))}}function Yr(C,N,G){if(N.node=G,typeof G=="object"&&G!==null){switch(G.$$typeof){case ge:Dn(C,N,G.type,G.props,G.ref);return;case Pe:throw Error(e(257));case Ue:var ee=G._init;G=ee(G._payload),Yr(C,N,G);return}if(b(G)){Yn(C,N,G);return}if(G===null||typeof G!="object"?ee=null:(ee=Ze&&G[Ze]||G["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(G))){if(G=ee.next(),!G.done){var ke=[];do ke.push(G.value),G=ee.next();while(!G.done);Yn(C,N,ke)}return}throw C=Object.prototype.toString.call(G),Error(e(31,C==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":C))}typeof G=="string"?(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,G,C.responseState,ee.lastPushedText)):typeof G=="number"&&(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,""+G,C.responseState,ee.lastPushedText))}function Yn(C,N,G){for(var ee=G.length,ke=0;ke<ee;ke++){var Ce=N.treeContext;N.treeContext=Ht(Ce,ee,ke);try{En(C,N,G[ke])}finally{N.treeContext=Ce}}}function En(C,N,G){var ee=N.blockedSegment.formatContext,ke=N.legacyContext,Ce=N.context;try{return Yr(C,N,G)}catch(Mt){if(et(),typeof Mt=="object"&&Mt!==null&&typeof Mt.then=="function"){G=Mt;var Be=N.blockedSegment,at=or(C,Be.chunks.length,null,Be.formatContext,Be.lastPushedText,!0);Be.children.push(at),Be.lastPushedText=!1,C=ir(C,N.node,N.blockedBoundary,at,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,G.then(C,C),N.blockedSegment.formatContext=ee,N.legacyContext=ke,N.context=Ce,Rt(Ce)}else throw N.blockedSegment.formatContext=ee,N.legacyContext=ke,N.context=Ce,Rt(Ce),Mt}}function Xn(C){var N=C.blockedBoundary;C=C.blockedSegment,C.status=3,On(this,N,C)}function Jn(C,N,G){var ee=C.blockedBoundary;C.blockedSegment.status=3,ee===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,C=G===void 0?Error(e(432)):G,ee.errorDigest=N.onError(C),ee.parentFlushed&&N.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(ke){return Jn(ke,N,G)}),ee.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(ee=N.onAllReady,ee()))}function on(C,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var G=N.children[0];G.id=N.id,G.parentFlushed=!0,G.status===1&&on(C,G)}else C.completedSegments.push(N)}function On(C,N,G){if(N===null){if(G.parentFlushed){if(C.completedRootSegment!==null)throw Error(e(389));C.completedRootSegment=G}C.pendingRootTasks--,C.pendingRootTasks===0&&(C.onShellError=Lt,N=C.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(G.parentFlushed&&G.status===1&&on(N,G),N.parentFlushed&&C.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(Xn,C),N.fallbackAbortableTasks.clear()):G.parentFlushed&&G.status===1&&(on(N,G),N.completedSegments.length===1&&N.parentFlushed&&C.partialBoundaries.push(N)));C.allPendingTasks--,C.allPendingTasks===0&&(C=C.onAllReady,C())}function wn(C){if(C.status!==2){var N=wt,G=Pt.current;Pt.current=Ke;var ee=mt;mt=C.responseState;try{var ke=C.pingedTasks,Ce;for(Ce=0;Ce<ke.length;Ce++){var Be=ke[Ce],at=C,Mt=Be.blockedSegment;if(Mt.status===0){Rt(Be.context);try{Yr(at,Be,Be.node),at.responseState.generateStaticMarkup||Mt.lastPushedText&&Mt.textEmbedded&&Mt.chunks.push("<!-- -->"),Be.abortSet.delete(Be),Mt.status=1,On(at,Be.blockedBoundary,Mt)}catch(yn){if(et(),typeof yn=="object"&&yn!==null&&typeof yn.then=="function"){var qt=Be.ping;yn.then(qt,qt)}else{Be.abortSet.delete(Be),Mt.status=4;var jt=Be.blockedBoundary,xr=yn,Zr=fr(at,xr);if(jt===null?Ur(at,xr):(jt.pendingTasks--,jt.forceClientRender||(jt.forceClientRender=!0,jt.errorDigest=Zr,jt.parentFlushed&&at.clientRenderedBoundaries.push(jt))),at.allPendingTasks--,at.allPendingTasks===0){var vn=at.onAllReady;vn()}}}finally{}}}ke.splice(0,Ce),C.destination!==null&&un(C,C.destination)}catch(yn){fr(C,yn),Ur(C,yn)}finally{mt=ee,Pt.current=G,G===Ke&&Rt(N)}}}function hi(C,N,G){switch(G.parentFlushed=!0,G.status){case 0:var ee=G.id=C.nextSegmentId++;return G.lastPushedText=!1,G.textEmbedded=!1,C=C.responseState,N.push('<template id="'),N.push(C.placeholderPrefix),C=ee.toString(16),N.push(C),N.push('"></template>');case 1:G.status=2;var ke=!0;ee=G.chunks;var Ce=0;G=G.children;for(var Be=0;Be<G.length;Be++){for(ke=G[Be];Ce<ke.index;Ce++)N.push(ee[Ce]);ke=Si(C,N,ke)}for(;Ce<ee.length-1;Ce++)N.push(ee[Ce]);return Ce<ee.length&&(ke=N.push(ee[Ce])),ke;default:throw Error(e(390))}}function Si(C,N,G){var ee=G.boundary;if(ee===null)return hi(C,N,G);if(ee.parentFlushed=!0,ee.forceClientRender)return C.responseState.generateStaticMarkup||(ee=ee.errorDigest,N.push("<!--$!-->"),N.push("<template"),ee&&(N.push(' data-dgst="'),ee=x(ee),N.push(ee),N.push('"')),N.push("></template>")),hi(C,N,G),C=C.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),C;if(0<ee.pendingTasks){ee.rootSegmentID=C.nextSegmentId++,0<ee.completedSegments.length&&C.partialBoundaries.push(ee);var ke=C.responseState,Ce=ke.nextSuspenseID++;return ke=ke.boundaryPrefix+Ce.toString(16),ee=ee.id=ke,J(N,C.responseState,ee),hi(C,N,G),N.push("<!--/$-->")}if(ee.byteSize>C.progressiveChunkSize)return ee.rootSegmentID=C.nextSegmentId++,C.completedBoundaries.push(ee),J(N,C.responseState,ee.id),hi(C,N,G),N.push("<!--/$-->");if(C.responseState.generateStaticMarkup||N.push("<!--$-->"),G=ee.completedSegments,G.length!==1)throw Error(e(391));return Si(C,N,G[0]),C=C.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),C}function Ci(C,N,G){return me(N,C.responseState,G.formatContext,G.id),Si(C,N,G),ce(N,G.formatContext)}function kn(C,N,G){for(var ee=G.completedSegments,ke=0;ke<ee.length;ke++)An(C,N,G,ee[ke]);if(ee.length=0,C=C.responseState,ee=G.id,G=G.rootSegmentID,N.push(C.startInlineScript),C.sentCompleteBoundaryFunction?N.push('$RC("'):(C.sentCompleteBoundaryFunction=!0,N.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return G=G.toString(16),N.push(ee),N.push('","'),N.push(C.segmentPrefix),N.push(G),N.push('")<\/script>')}function An(C,N,G,ee){if(ee.status===2)return!0;var ke=ee.id;if(ke===-1){if((ee.id=G.rootSegmentID)===-1)throw Error(e(392));return Ci(C,N,ee)}return Ci(C,N,ee),C=C.responseState,N.push(C.startInlineScript),C.sentCompleteSegmentFunction?N.push('$RS("'):(C.sentCompleteSegmentFunction=!0,N.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),N.push(C.segmentPrefix),ke=ke.toString(16),N.push(ke),N.push('","'),N.push(C.placeholderPrefix),N.push(ke),N.push('")<\/script>')}function un(C,N){try{var G=C.completedRootSegment;if(G!==null&&C.pendingRootTasks===0){Si(C,N,G),C.completedRootSegment=null;var ee=C.responseState.bootstrapChunks;for(G=0;G<ee.length-1;G++)N.push(ee[G]);G<ee.length&&N.push(ee[G])}var ke=C.clientRenderedBoundaries,Ce;for(Ce=0;Ce<ke.length;Ce++){var Be=ke[Ce];ee=N;var at=C.responseState,Mt=Be.id,qt=Be.errorDigest,jt=Be.errorMessage,xr=Be.errorComponentStack;if(ee.push(at.startInlineScript),at.sentClientRenderFunction?ee.push('$RX("'):(at.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Mt===null)throw Error(e(395));if(ee.push(Mt),ee.push('"'),qt||jt||xr){ee.push(",");var Zr=ue(qt||"");ee.push(Zr)}if(jt||xr){ee.push(",");var vn=ue(jt||"");ee.push(vn)}if(xr){ee.push(",");var yn=ue(xr);ee.push(yn)}if(!ee.push(")<\/script>")){C.destination=null,Ce++,ke.splice(0,Ce);return}}ke.splice(0,Ce);var li=C.completedBoundaries;for(Ce=0;Ce<li.length;Ce++)if(!kn(C,N,li[Ce])){C.destination=null,Ce++,li.splice(0,Ce);return}li.splice(0,Ce);var Bn=C.partialBoundaries;for(Ce=0;Ce<Bn.length;Ce++){var wi=Bn[Ce];e:{ke=C,Be=N;var Xr=wi.completedSegments;for(at=0;at<Xr.length;at++)if(!An(ke,Be,wi,Xr[at])){at++,Xr.splice(0,at);var pi=!1;break e}Xr.splice(0,at),pi=!0}if(!pi){C.destination=null,Ce++,Bn.splice(0,Ce);return}}Bn.splice(0,Ce);var Hn=C.completedBoundaries;for(Ce=0;Ce<Hn.length;Ce++)if(!kn(C,N,Hn[Ce])){C.destination=null,Ce++,Hn.splice(0,Ce);return}Hn.splice(0,Ce)}finally{C.allPendingTasks===0&&C.pingedTasks.length===0&&C.clientRenderedBoundaries.length===0&&C.completedBoundaries.length===0&&N.push(null)}}function Qn(C,N){try{var G=C.abortableTasks;G.forEach(function(ee){return Jn(ee,C,N)}),G.clear(),C.destination!==null&&un(C,C.destination)}catch(ee){fr(C,ee),Ur(C,ee)}}function sn(){}function pn(C,N,G,ee){var ke=!1,Ce=null,Be="",at={push:function(qt){return qt!==null&&(Be+=qt),!0},destroy:function(qt){ke=!0,Ce=qt}},Mt=!1;if(C=$t(C,Se(G,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,sn,void 0,function(){Mt=!0}),wn(C),Qn(C,ee),C.status===1)C.status=2,at.destroy(C.fatalError);else if(C.status!==2&&C.destination===null){C.destination=at;try{un(C,at)}catch(qt){fr(C,qt),Ur(C,qt)}}if(ke)throw Ce;if(!Mt)throw Error(e(426));return Be}return Uc.renderToNodeStream=function(){throw Error(e(207))},Uc.renderToStaticMarkup=function(C,N){return pn(C,N,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.renderToStaticNodeStream=function(){throw Error(e(208))},Uc.renderToString=function(C,N){return pn(C,N,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.version="18.2.0",Uc}var wd={};/**
66
+ `),Ce;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":C.push(re(N));for(var vn in G)if(t.call(G,vn)&&(Ce=G[vn],Ce!=null))switch(vn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,N));default:z(C,ee,vn,Ce)}return C.push("/>"),null;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 X(C,G,N,ee);case"html":return ke.insertionMode===0&&C.push("<!DOCTYPE html>"),X(C,G,N,ee);default:if(N.indexOf("-")===-1&&typeof G.is!="string")return X(C,G,N,ee);C.push(re(N)),Be=Ce=null;for(qt in G)if(t.call(G,qt)&&(at=G[qt],at!=null))switch(qt){case"children":Ce=at;break;case"dangerouslySetInnerHTML":Be=at;break;case"style":q(C,ee,at);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(qt)&&typeof at!="function"&&typeof at!="symbol"&&C.push(" ",qt,'="',x(at),'"')}return C.push(">"),Y(C,Be,Ce),Ce}}function J(C,N,G){if(C.push('<!--$?--><template id="'),G===null)throw Error(e(395));return C.push(G),C.push('"></template>')}function me(C,N,G,ee){switch(G.insertionMode){case 0:case 1:return C.push('<div hidden id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 2:return C.push('<svg aria-hidden="true" style="display:none" id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 3:return C.push('<math aria-hidden="true" style="display:none" id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 4:return C.push('<table hidden id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 5:return C.push('<table hidden><tbody id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 6:return C.push('<table hidden><tr id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');case 7:return C.push('<table hidden><colgroup id="'),C.push(N.segmentPrefix),N=ee.toString(16),C.push(N),C.push('">');default:throw Error(e(397))}}function ce(C,N){switch(N.insertionMode){case 0:case 1:return C.push("</div>");case 2:return C.push("</svg>");case 3:return C.push("</math>");case 4:return C.push("</table>");case 5:return C.push("</tbody></table>");case 6:return C.push("</tr></table>");case 7:return C.push("</colgroup></table>");default:throw Error(e(397))}}var be=/[<\u2028\u2029]/g;function ue(C){return JSON.stringify(C).replace(be,function(N){switch(N){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Se(C,N){return N=N===void 0?"":N,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:N+"P:",segmentPrefix:N+"S:",boundaryPrefix:N+"B:",idPrefix:N,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:C}}function le(C,N,G,ee){return G.generateStaticMarkup?(C.push(x(N)),!1):(N===""?C=ee:(ee&&C.push("<!-- -->"),C.push(x(N)),C=!0),C)}var ae=Object.assign,ge=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Qe=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),Ie=Symbol.for("react.profiler"),Xe=Symbol.for("react.provider"),tt=Symbol.for("react.context"),Ue=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),Ee=Symbol.for("react.suspense_list"),we=Symbol.for("react.memo"),We=Symbol.for("react.lazy"),ct=Symbol.for("react.scope"),Ne=Symbol.for("react.debug_trace_mode"),bt=Symbol.for("react.legacy_hidden"),Le=Symbol.for("react.default_value"),Ze=Symbol.iterator;function ot(C){if(C==null)return null;if(typeof C=="function")return C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case Qe:return"Fragment";case Pe:return"Portal";case Ie:return"Profiler";case pe:return"StrictMode";case Me:return"Suspense";case Ee:return"SuspenseList"}if(typeof C=="object")switch(C.$$typeof){case tt:return(C.displayName||"Context")+".Consumer";case Xe:return(C._context.displayName||"Context")+".Provider";case Ue:var N=C.render;return C=C.displayName,C||(C=N.displayName||N.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case we:return N=C.displayName||null,N!==null?N:ot(C.type)||"Memo";case We:N=C._payload,C=C._init;try{return ot(C(N))}catch{}}return null}var Ct={};function _t(C,N){if(C=C.contextTypes,!C)return Ct;var G={},ee;for(ee in C)G[ee]=N[ee];return G}var wt=null;function xt(C,N){if(C!==N){C.context._currentValue2=C.parentValue,C=C.parent;var G=N.parent;if(C===null){if(G!==null)throw Error(e(401))}else{if(G===null)throw Error(e(401));xt(C,G)}N.context._currentValue2=N.value}}function it(C){C.context._currentValue2=C.parentValue,C=C.parent,C!==null&&it(C)}function je(C){var N=C.parent;N!==null&&je(N),C.context._currentValue2=C.value}function yt(C,N){if(C.context._currentValue2=C.parentValue,C=C.parent,C===null)throw Error(e(402));C.depth===N.depth?xt(C,N):yt(C,N)}function st(C,N){var G=N.parent;if(G===null)throw Error(e(402));C.depth===G.depth?xt(C,G):st(C,G),N.context._currentValue2=N.value}function Rt(C){var N=wt;N!==C&&(N===null?je(C):C===null?it(N):N.depth===C.depth?xt(N,C):N.depth>C.depth?yt(N,C):st(N,C),wt=C)}var Bt={isMounted:function(){return!1},enqueueSetState:function(C,N){C=C._reactInternals,C.queue!==null&&C.queue.push(N)},enqueueReplaceState:function(C,N){C=C._reactInternals,C.replace=!0,C.queue=[N]},enqueueForceUpdate:function(){}};function ze(C,N,G,ee){var ke=C.state!==void 0?C.state:null;C.updater=Bt,C.props=G,C.state=ke;var Ce={queue:[],replace:!1};C._reactInternals=Ce;var Be=N.contextType;if(C.context=typeof Be=="object"&&Be!==null?Be._currentValue2:ee,Be=N.getDerivedStateFromProps,typeof Be=="function"&&(Be=Be(G,ke),ke=Be==null?ke:ae({},ke,Be),C.state=ke),typeof N.getDerivedStateFromProps!="function"&&typeof C.getSnapshotBeforeUpdate!="function"&&(typeof C.UNSAFE_componentWillMount=="function"||typeof C.componentWillMount=="function"))if(N=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),N!==C.state&&Bt.enqueueReplaceState(C,C.state,null),Ce.queue!==null&&0<Ce.queue.length)if(N=Ce.queue,Be=Ce.replace,Ce.queue=null,Ce.replace=!1,Be&&N.length===1)C.state=N[0];else{for(Ce=Be?N[0]:C.state,ke=!0,Be=Be?1:0;Be<N.length;Be++){var at=N[Be];at=typeof at=="function"?at.call(C,Ce,G,ee):at,at!=null&&(ke?(ke=!1,Ce=ae({},Ce,at)):ae(Ce,at))}C.state=Ce}else Ce.queue=null}var Tt={id:1,overflow:""};function Ht(C,N,G){var ee=C.id;C=C.overflow;var ke=32-_r(ee)-1;ee&=~(1<<ke),G+=1;var Ce=32-_r(N)+ke;if(30<Ce){var Be=ke-ke%5;return Ce=(ee&(1<<Be)-1).toString(32),ee>>=Be,ke-=Be,{id:1<<32-_r(N)+ke|G<<ke|ee,overflow:Ce+C}}return{id:1<<Ce|G<<ke|ee,overflow:C}}var _r=Math.clz32?Math.clz32:ve,kr=Math.log,Cr=Math.LN2;function ve(C){return C>>>=0,C===0?32:31-(kr(C)/Cr|0)|0}function ne(C,N){return C===N&&(C!==0||1/C===1/N)||C!==C&&N!==N}var Je=typeof Object.is=="function"?Object.is:ne,pt=null,$e=null,De=null,St=null,Et=!1,ut=!1,Nt=0,Qt=null,rr=0;function Ft(){if(pt===null)throw Error(e(321));return pt}function zt(){if(0<rr)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function nr(){return St===null?De===null?(Et=!1,De=St=zt()):(Et=!0,St=De):St.next===null?(Et=!1,St=St.next=zt()):(Et=!0,St=St.next),St}function et(){$e=pt=null,ut=!1,De=null,rr=0,St=Qt=null}function At(C,N){return typeof N=="function"?N(C):N}function vt(C,N,G){if(pt=Ft(),St=nr(),Et){var ee=St.queue;if(N=ee.dispatch,Qt!==null&&(G=Qt.get(ee),G!==void 0)){Qt.delete(ee),ee=St.memoizedState;do ee=C(ee,G.action),G=G.next;while(G!==null);return St.memoizedState=ee,[ee,N]}return[St.memoizedState,N]}return C=C===At?typeof N=="function"?N():N:G!==void 0?G(N):N,St.memoizedState=C,C=St.queue={last:null,dispatch:null},C=C.dispatch=pr.bind(null,pt,C),[St.memoizedState,C]}function It(C,N){if(pt=Ft(),St=nr(),N=N===void 0?null:N,St!==null){var G=St.memoizedState;if(G!==null&&N!==null){var ee=G[1];e:if(ee===null)ee=!1;else{for(var ke=0;ke<ee.length&&ke<N.length;ke++)if(!Je(N[ke],ee[ke])){ee=!1;break e}ee=!0}if(ee)return G[0]}}return C=C(),St.memoizedState=[C,N],C}function pr(C,N,G){if(25<=rr)throw Error(e(301));if(C===pt)if(ut=!0,C={action:G,next:null},Qt===null&&(Qt=new Map),G=Qt.get(N),G===void 0)Qt.set(N,C);else{for(N=G;N.next!==null;)N=N.next;N.next=C}}function $(){throw Error(e(394))}function _e(){}var Ke={readContext:function(C){return C._currentValue2},useContext:function(C){return Ft(),C._currentValue2},useMemo:It,useReducer:vt,useRef:function(C){pt=Ft(),St=nr();var N=St.memoizedState;return N===null?(C={current:C},St.memoizedState=C):N},useState:function(C){return vt(At,C)},useInsertionEffect:_e,useLayoutEffect:function(){},useCallback:function(C,N){return It(function(){return C},N)},useImperativeHandle:_e,useEffect:_e,useDebugValue:_e,useDeferredValue:function(C){return Ft(),C},useTransition:function(){return Ft(),[!1,$]},useId:function(){var C=$e.treeContext,N=C.overflow;C=C.id,C=(C&~(1<<32-_r(C)-1)).toString(32)+N;var G=mt;if(G===null)throw Error(e(404));return N=Nt++,C=":"+G.idPrefix+"R"+C,0<N&&(C+="H"+N.toString(32)),C+":"},useMutableSource:function(C,N){return Ft(),N(C._source)},useSyncExternalStore:function(C,N,G){if(G===void 0)throw Error(e(407));return G()}},mt=null,Pt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Wt(C){return console.error(C),null}function Lt(){}function $t(C,N,G,ee,ke,Ce,Be,at,Mt){var qt=[],jt=new Set;return N={destination:null,responseState:N,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:jt,pingedTasks:qt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ke===void 0?Wt:ke,onAllReady:Lt,onShellReady:Be===void 0?Lt:Be,onShellError:Lt,onFatalError:Lt},G=or(N,0,null,G,!1,!1),G.parentFlushed=!0,C=ir(N,C,null,G,jt,Ct,null,Tt),qt.push(C),N}function ir(C,N,G,ee,ke,Ce,Be,at){C.allPendingTasks++,G===null?C.pendingRootTasks++:G.pendingTasks++;var Mt={node:N,ping:function(){var qt=C.pingedTasks;qt.push(Mt),qt.length===1&&wn(C)},blockedBoundary:G,blockedSegment:ee,abortSet:ke,legacyContext:Ce,context:Be,treeContext:at};return ke.add(Mt),Mt}function or(C,N,G,ee,ke,Ce){return{status:0,id:-1,index:N,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:G,lastPushedText:ke,textEmbedded:Ce}}function fr(C,N){if(C=C.onError(N),C!=null&&typeof C!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof C+'" instead');return C}function Ur(C,N){var G=C.onShellError;G(N),G=C.onFatalError,G(N),C.destination!==null?(C.status=2,C.destination.destroy(N)):(C.status=1,C.fatalError=N)}function vr(C,N,G,ee,ke){for(pt={},$e=N,Nt=0,C=G(ee,ke);ut;)ut=!1,Nt=0,rr+=1,St=null,C=G(ee,ke);return et(),C}function Kn(C,N,G,ee){var ke=G.render(),Ce=ee.childContextTypes;if(Ce!=null){var Be=N.legacyContext;if(typeof G.getChildContext!="function")ee=Be;else{G=G.getChildContext();for(var at in G)if(!(at in Ce))throw Error(e(108,ot(ee)||"Unknown",at));ee=ae({},Be,G)}N.legacyContext=ee,Yr(C,N,ke),N.legacyContext=Be}else Yr(C,N,ke)}function Cn(C,N){if(C&&C.defaultProps){N=ae({},N),C=C.defaultProps;for(var G in C)N[G]===void 0&&(N[G]=C[G]);return N}return N}function Dn(C,N,G,ee,ke){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){ke=_t(G,N.legacyContext);var Ce=G.contextType;Ce=new G(ee,typeof Ce=="object"&&Ce!==null?Ce._currentValue2:ke),ze(Ce,G,ee,ke),Kn(C,N,Ce,G)}else{Ce=_t(G,N.legacyContext),ke=vr(C,N,G,ee,Ce);var Be=Nt!==0;if(typeof ke=="object"&&ke!==null&&typeof ke.render=="function"&&ke.$$typeof===void 0)ze(ke,G,ee,Ce),Kn(C,N,ke,G);else if(Be){ee=N.treeContext,N.treeContext=Ht(ee,1,0);try{Yr(C,N,ke)}finally{N.treeContext=ee}}else Yr(C,N,ke)}else if(typeof G=="string"){switch(ke=N.blockedSegment,Ce=Q(ke.chunks,G,ee,C.responseState,ke.formatContext),ke.lastPushedText=!1,Be=ke.formatContext,ke.formatContext=O(Be,G,ee),En(C,N,Ce),ke.formatContext=Be,G){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ke.chunks.push("</",G,">")}ke.lastPushedText=!1}else{switch(G){case bt:case Ne:case pe:case Ie:case Qe:Yr(C,N,ee.children);return;case Ee:Yr(C,N,ee.children);return;case ct:throw Error(e(343));case Me:e:{G=N.blockedBoundary,ke=N.blockedSegment,Ce=ee.fallback,ee=ee.children,Be=new Set;var at={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Be,errorDigest:null},Mt=or(C,ke.chunks.length,at,ke.formatContext,!1,!1);ke.children.push(Mt),ke.lastPushedText=!1;var qt=or(C,0,null,ke.formatContext,!1,!1);qt.parentFlushed=!0,N.blockedBoundary=at,N.blockedSegment=qt;try{if(En(C,N,ee),C.responseState.generateStaticMarkup||qt.lastPushedText&&qt.textEmbedded&&qt.chunks.push("<!-- -->"),qt.status=1,on(at,qt),at.pendingTasks===0)break e}catch(jt){qt.status=4,at.forceClientRender=!0,at.errorDigest=fr(C,jt)}finally{N.blockedBoundary=G,N.blockedSegment=ke}N=ir(C,Ce,G,Mt,Be,N.legacyContext,N.context,N.treeContext),C.pingedTasks.push(N)}return}if(typeof G=="object"&&G!==null)switch(G.$$typeof){case Ue:if(ee=vr(C,N,G.render,ee,ke),Nt!==0){G=N.treeContext,N.treeContext=Ht(G,1,0);try{Yr(C,N,ee)}finally{N.treeContext=G}}else Yr(C,N,ee);return;case we:G=G.type,ee=Cn(G,ee),Dn(C,N,G,ee,ke);return;case Xe:if(ke=ee.children,G=G._context,ee=ee.value,Ce=G._currentValue2,G._currentValue2=ee,Be=wt,wt=ee={parent:Be,depth:Be===null?0:Be.depth+1,context:G,parentValue:Ce,value:ee},N.context=ee,Yr(C,N,ke),C=wt,C===null)throw Error(e(403));ee=C.parentValue,C.context._currentValue2=ee===Le?C.context._defaultValue:ee,C=wt=C.parent,N.context=C;return;case tt:ee=ee.children,ee=ee(G._currentValue2),Yr(C,N,ee);return;case We:ke=G._init,G=ke(G._payload),ee=Cn(G,ee),Dn(C,N,G,ee,void 0);return}throw Error(e(130,G==null?G:typeof G,""))}}function Yr(C,N,G){if(N.node=G,typeof G=="object"&&G!==null){switch(G.$$typeof){case ge:Dn(C,N,G.type,G.props,G.ref);return;case Pe:throw Error(e(257));case We:var ee=G._init;G=ee(G._payload),Yr(C,N,G);return}if(b(G)){Yn(C,N,G);return}if(G===null||typeof G!="object"?ee=null:(ee=Ze&&G[Ze]||G["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(G))){if(G=ee.next(),!G.done){var ke=[];do ke.push(G.value),G=ee.next();while(!G.done);Yn(C,N,ke)}return}throw C=Object.prototype.toString.call(G),Error(e(31,C==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":C))}typeof G=="string"?(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,G,C.responseState,ee.lastPushedText)):typeof G=="number"&&(ee=N.blockedSegment,ee.lastPushedText=le(N.blockedSegment.chunks,""+G,C.responseState,ee.lastPushedText))}function Yn(C,N,G){for(var ee=G.length,ke=0;ke<ee;ke++){var Ce=N.treeContext;N.treeContext=Ht(Ce,ee,ke);try{En(C,N,G[ke])}finally{N.treeContext=Ce}}}function En(C,N,G){var ee=N.blockedSegment.formatContext,ke=N.legacyContext,Ce=N.context;try{return Yr(C,N,G)}catch(Mt){if(et(),typeof Mt=="object"&&Mt!==null&&typeof Mt.then=="function"){G=Mt;var Be=N.blockedSegment,at=or(C,Be.chunks.length,null,Be.formatContext,Be.lastPushedText,!0);Be.children.push(at),Be.lastPushedText=!1,C=ir(C,N.node,N.blockedBoundary,at,N.abortSet,N.legacyContext,N.context,N.treeContext).ping,G.then(C,C),N.blockedSegment.formatContext=ee,N.legacyContext=ke,N.context=Ce,Rt(Ce)}else throw N.blockedSegment.formatContext=ee,N.legacyContext=ke,N.context=Ce,Rt(Ce),Mt}}function Xn(C){var N=C.blockedBoundary;C=C.blockedSegment,C.status=3,On(this,N,C)}function Jn(C,N,G){var ee=C.blockedBoundary;C.blockedSegment.status=3,ee===null?(N.allPendingTasks--,N.status!==2&&(N.status=2,N.destination!==null&&N.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,C=G===void 0?Error(e(432)):G,ee.errorDigest=N.onError(C),ee.parentFlushed&&N.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(ke){return Jn(ke,N,G)}),ee.fallbackAbortableTasks.clear(),N.allPendingTasks--,N.allPendingTasks===0&&(ee=N.onAllReady,ee()))}function on(C,N){if(N.chunks.length===0&&N.children.length===1&&N.children[0].boundary===null){var G=N.children[0];G.id=N.id,G.parentFlushed=!0,G.status===1&&on(C,G)}else C.completedSegments.push(N)}function On(C,N,G){if(N===null){if(G.parentFlushed){if(C.completedRootSegment!==null)throw Error(e(389));C.completedRootSegment=G}C.pendingRootTasks--,C.pendingRootTasks===0&&(C.onShellError=Lt,N=C.onShellReady,N())}else N.pendingTasks--,N.forceClientRender||(N.pendingTasks===0?(G.parentFlushed&&G.status===1&&on(N,G),N.parentFlushed&&C.completedBoundaries.push(N),N.fallbackAbortableTasks.forEach(Xn,C),N.fallbackAbortableTasks.clear()):G.parentFlushed&&G.status===1&&(on(N,G),N.completedSegments.length===1&&N.parentFlushed&&C.partialBoundaries.push(N)));C.allPendingTasks--,C.allPendingTasks===0&&(C=C.onAllReady,C())}function wn(C){if(C.status!==2){var N=wt,G=Pt.current;Pt.current=Ke;var ee=mt;mt=C.responseState;try{var ke=C.pingedTasks,Ce;for(Ce=0;Ce<ke.length;Ce++){var Be=ke[Ce],at=C,Mt=Be.blockedSegment;if(Mt.status===0){Rt(Be.context);try{Yr(at,Be,Be.node),at.responseState.generateStaticMarkup||Mt.lastPushedText&&Mt.textEmbedded&&Mt.chunks.push("<!-- -->"),Be.abortSet.delete(Be),Mt.status=1,On(at,Be.blockedBoundary,Mt)}catch(yn){if(et(),typeof yn=="object"&&yn!==null&&typeof yn.then=="function"){var qt=Be.ping;yn.then(qt,qt)}else{Be.abortSet.delete(Be),Mt.status=4;var jt=Be.blockedBoundary,xr=yn,Zr=fr(at,xr);if(jt===null?Ur(at,xr):(jt.pendingTasks--,jt.forceClientRender||(jt.forceClientRender=!0,jt.errorDigest=Zr,jt.parentFlushed&&at.clientRenderedBoundaries.push(jt))),at.allPendingTasks--,at.allPendingTasks===0){var vn=at.onAllReady;vn()}}}finally{}}}ke.splice(0,Ce),C.destination!==null&&un(C,C.destination)}catch(yn){fr(C,yn),Ur(C,yn)}finally{mt=ee,Pt.current=G,G===Ke&&Rt(N)}}}function hi(C,N,G){switch(G.parentFlushed=!0,G.status){case 0:var ee=G.id=C.nextSegmentId++;return G.lastPushedText=!1,G.textEmbedded=!1,C=C.responseState,N.push('<template id="'),N.push(C.placeholderPrefix),C=ee.toString(16),N.push(C),N.push('"></template>');case 1:G.status=2;var ke=!0;ee=G.chunks;var Ce=0;G=G.children;for(var Be=0;Be<G.length;Be++){for(ke=G[Be];Ce<ke.index;Ce++)N.push(ee[Ce]);ke=Si(C,N,ke)}for(;Ce<ee.length-1;Ce++)N.push(ee[Ce]);return Ce<ee.length&&(ke=N.push(ee[Ce])),ke;default:throw Error(e(390))}}function Si(C,N,G){var ee=G.boundary;if(ee===null)return hi(C,N,G);if(ee.parentFlushed=!0,ee.forceClientRender)return C.responseState.generateStaticMarkup||(ee=ee.errorDigest,N.push("<!--$!-->"),N.push("<template"),ee&&(N.push(' data-dgst="'),ee=x(ee),N.push(ee),N.push('"')),N.push("></template>")),hi(C,N,G),C=C.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),C;if(0<ee.pendingTasks){ee.rootSegmentID=C.nextSegmentId++,0<ee.completedSegments.length&&C.partialBoundaries.push(ee);var ke=C.responseState,Ce=ke.nextSuspenseID++;return ke=ke.boundaryPrefix+Ce.toString(16),ee=ee.id=ke,J(N,C.responseState,ee),hi(C,N,G),N.push("<!--/$-->")}if(ee.byteSize>C.progressiveChunkSize)return ee.rootSegmentID=C.nextSegmentId++,C.completedBoundaries.push(ee),J(N,C.responseState,ee.id),hi(C,N,G),N.push("<!--/$-->");if(C.responseState.generateStaticMarkup||N.push("<!--$-->"),G=ee.completedSegments,G.length!==1)throw Error(e(391));return Si(C,N,G[0]),C=C.responseState.generateStaticMarkup?!0:N.push("<!--/$-->"),C}function Ci(C,N,G){return me(N,C.responseState,G.formatContext,G.id),Si(C,N,G),ce(N,G.formatContext)}function kn(C,N,G){for(var ee=G.completedSegments,ke=0;ke<ee.length;ke++)An(C,N,G,ee[ke]);if(ee.length=0,C=C.responseState,ee=G.id,G=G.rootSegmentID,N.push(C.startInlineScript),C.sentCompleteBoundaryFunction?N.push('$RC("'):(C.sentCompleteBoundaryFunction=!0,N.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return G=G.toString(16),N.push(ee),N.push('","'),N.push(C.segmentPrefix),N.push(G),N.push('")<\/script>')}function An(C,N,G,ee){if(ee.status===2)return!0;var ke=ee.id;if(ke===-1){if((ee.id=G.rootSegmentID)===-1)throw Error(e(392));return Ci(C,N,ee)}return Ci(C,N,ee),C=C.responseState,N.push(C.startInlineScript),C.sentCompleteSegmentFunction?N.push('$RS("'):(C.sentCompleteSegmentFunction=!0,N.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),N.push(C.segmentPrefix),ke=ke.toString(16),N.push(ke),N.push('","'),N.push(C.placeholderPrefix),N.push(ke),N.push('")<\/script>')}function un(C,N){try{var G=C.completedRootSegment;if(G!==null&&C.pendingRootTasks===0){Si(C,N,G),C.completedRootSegment=null;var ee=C.responseState.bootstrapChunks;for(G=0;G<ee.length-1;G++)N.push(ee[G]);G<ee.length&&N.push(ee[G])}var ke=C.clientRenderedBoundaries,Ce;for(Ce=0;Ce<ke.length;Ce++){var Be=ke[Ce];ee=N;var at=C.responseState,Mt=Be.id,qt=Be.errorDigest,jt=Be.errorMessage,xr=Be.errorComponentStack;if(ee.push(at.startInlineScript),at.sentClientRenderFunction?ee.push('$RX("'):(at.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),Mt===null)throw Error(e(395));if(ee.push(Mt),ee.push('"'),qt||jt||xr){ee.push(",");var Zr=ue(qt||"");ee.push(Zr)}if(jt||xr){ee.push(",");var vn=ue(jt||"");ee.push(vn)}if(xr){ee.push(",");var yn=ue(xr);ee.push(yn)}if(!ee.push(")<\/script>")){C.destination=null,Ce++,ke.splice(0,Ce);return}}ke.splice(0,Ce);var li=C.completedBoundaries;for(Ce=0;Ce<li.length;Ce++)if(!kn(C,N,li[Ce])){C.destination=null,Ce++,li.splice(0,Ce);return}li.splice(0,Ce);var Bn=C.partialBoundaries;for(Ce=0;Ce<Bn.length;Ce++){var wi=Bn[Ce];e:{ke=C,Be=N;var Xr=wi.completedSegments;for(at=0;at<Xr.length;at++)if(!An(ke,Be,wi,Xr[at])){at++,Xr.splice(0,at);var pi=!1;break e}Xr.splice(0,at),pi=!0}if(!pi){C.destination=null,Ce++,Bn.splice(0,Ce);return}}Bn.splice(0,Ce);var Hn=C.completedBoundaries;for(Ce=0;Ce<Hn.length;Ce++)if(!kn(C,N,Hn[Ce])){C.destination=null,Ce++,Hn.splice(0,Ce);return}Hn.splice(0,Ce)}finally{C.allPendingTasks===0&&C.pingedTasks.length===0&&C.clientRenderedBoundaries.length===0&&C.completedBoundaries.length===0&&N.push(null)}}function Qn(C,N){try{var G=C.abortableTasks;G.forEach(function(ee){return Jn(ee,C,N)}),G.clear(),C.destination!==null&&un(C,C.destination)}catch(ee){fr(C,ee),Ur(C,ee)}}function sn(){}function pn(C,N,G,ee){var ke=!1,Ce=null,Be="",at={push:function(qt){return qt!==null&&(Be+=qt),!0},destroy:function(qt){ke=!0,Ce=qt}},Mt=!1;if(C=$t(C,Se(G,N?N.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,sn,void 0,function(){Mt=!0}),wn(C),Qn(C,ee),C.status===1)C.status=2,at.destroy(C.fatalError);else if(C.status!==2&&C.destination===null){C.destination=at;try{un(C,at)}catch(qt){fr(C,qt),Ur(C,qt)}}if(ke)throw Ce;if(!Mt)throw Error(e(426));return Be}return Uc.renderToNodeStream=function(){throw Error(e(207))},Uc.renderToStaticMarkup=function(C,N){return pn(C,N,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.renderToStaticNodeStream=function(){throw Error(e(208))},Uc.renderToString=function(C,N){return pn(C,N,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Uc.version="18.2.0",Uc}var wd={};/**
67
67
  * @license React
68
68
  * react-dom-server.browser.production.min.js
69
69
  *
@@ -71,11 +71,11 @@ function print() { __p += __j.call(arguments, '') }
71
71
  *
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
- */var Gv;function z4(){if(Gv)return wd;Gv=1;var r=A;function e(T){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+T,U=1;U<arguments.length;U++)P+="&args[]="+encodeURIComponent(arguments[U]);return"Minified React error #"+T+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function i(T,P){if(P.length!==0)if(512<P.length)0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),T.enqueue(P);else{var U=t.length-n;U<P.length&&(U===0?T.enqueue(t):(t.set(P.subarray(0,U),n),T.enqueue(t),P=P.subarray(U)),t=new Uint8Array(512),n=0),t.set(P,n),n+=P.length}}function l(T,P){return i(T,P),!0}function u(T){t&&0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var f=new TextEncoder;function g(T){return f.encode(T)}function m(T){return f.encode(T)}function R(T,P){typeof T.error=="function"?T.error(P):T.close()}var E=Object.prototype.hasOwnProperty,_=/^[: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]*$/,S={},x={};function M(T){return E.call(x,T)?!0:E.call(S,T)?!1:_.test(T)?x[T]=!0:(S[T]=!0,!1)}function w(T,P,U,te,Re,Te,Ve){this.acceptsBooleans=P===2||P===3||P===4,this.attributeName=te,this.attributeNamespace=Re,this.mustUseProperty=U,this.propertyName=T,this.type=P,this.sanitizeURL=Te,this.removeEmptyString=Ve}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(T){b[T]=new w(T,0,!1,T,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(T){var P=T[0];b[P]=new w(P,1,!1,T[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(T){b[T]=new w(T,2,!1,T.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(T){b[T]=new w(T,2,!1,T,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(T){b[T]=new w(T,3,!1,T.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(T){b[T]=new w(T,3,!0,T,null,!1,!1)}),["capture","download"].forEach(function(T){b[T]=new w(T,4,!1,T,null,!1,!1)}),["cols","rows","size","span"].forEach(function(T){b[T]=new w(T,6,!1,T,null,!1,!1)}),["rowSpan","start"].forEach(function(T){b[T]=new w(T,5,!1,T.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function O(T){return T[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(T){var P=T.replace(I,O);b[P]=new w(P,1,!1,T,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(T){var P=T.replace(I,O);b[P]=new w(P,1,!1,T,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(T){var P=T.replace(I,O);b[P]=new w(P,1,!1,T,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(T){b[T]=new w(T,1,!1,T.toLowerCase(),null,!1,!1)}),b.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(T){b[T]=new w(T,1,!1,T.toLowerCase(),null,!0,!0)});var H={animationIterationCount:!0,aspectRatio:!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},q=["Webkit","ms","Moz","O"];Object.keys(H).forEach(function(T){q.forEach(function(P){P=P+T.charAt(0).toUpperCase()+T.substring(1),H[P]=H[T]})});var z=/["'&<>]/;function Y(T){if(typeof T=="boolean"||typeof T=="number")return""+T;T=""+T;var P=z.exec(T);if(P){var U="",te,Re=0;for(te=P.index;te<T.length;te++){switch(T.charCodeAt(te)){case 34:P="&quot;";break;case 38:P="&amp;";break;case 39:P="&#x27;";break;case 60:P="&lt;";break;case 62:P="&gt;";break;default:continue}Re!==te&&(U+=T.substring(Re,te)),Re=te+1,U+=P}T=Re!==te?U+T.substring(Re,te):U}return T}var fe=/([A-Z])/g,X=/^ms-/,he=Array.isArray,j=m("<script>"),re=m("<\/script>"),Q=m('<script src="'),J=m('<script type="module" src="'),me=m('" async=""><\/script>'),ce=/(<\/|<)(s)(cript)/gi;function be(T,P,U,te){return""+P+(U==="s"?"\\u0073":"\\u0053")+te}function ue(T,P,U,te,Re){T=T===void 0?"":T,P=P===void 0?j:m('<script nonce="'+Y(P)+'">');var Te=[];if(U!==void 0&&Te.push(P,g((""+U).replace(ce,be)),re),te!==void 0)for(U=0;U<te.length;U++)Te.push(Q,g(Y(te[U])),me);if(Re!==void 0)for(te=0;te<Re.length;te++)Te.push(J,g(Y(Re[te])),me);return{bootstrapChunks:Te,startInlineScript:P,placeholderPrefix:m(T+"P:"),segmentPrefix:m(T+"S:"),boundaryPrefix:T+"B:",idPrefix:T,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Se(T,P){return{insertionMode:T,selectedValue:P}}function le(T){return Se(T==="http://www.w3.org/2000/svg"?2:T==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ae(T,P,U){switch(P){case"select":return Se(1,U.value!=null?U.value:U.defaultValue);case"svg":return Se(2,null);case"math":return Se(3,null);case"foreignObject":return Se(1,null);case"table":return Se(4,null);case"thead":case"tbody":case"tfoot":return Se(5,null);case"colgroup":return Se(7,null);case"tr":return Se(6,null)}return 4<=T.insertionMode||T.insertionMode===0?Se(1,null):T}var ge=m("<!-- -->");function Pe(T,P,U,te){return P===""?te:(te&&T.push(ge),T.push(g(Y(P))),!0)}var Qe=new Map,pe=m(' style="'),Ie=m(":"),Xe=m(";");function tt(T,P,U){if(typeof U!="object")throw Error(e(62));P=!0;for(var te in U)if(E.call(U,te)){var Re=U[te];if(Re!=null&&typeof Re!="boolean"&&Re!==""){if(te.indexOf("--")===0){var Te=g(Y(te));Re=g(Y((""+Re).trim()))}else{Te=te;var Ve=Qe.get(Te);Ve!==void 0||(Ve=m(Y(Te.replace(fe,"-$1").toLowerCase().replace(X,"-ms-"))),Qe.set(Te,Ve)),Te=Ve,Re=typeof Re=="number"?Re===0||E.call(H,te)?g(""+Re):g(Re+"px"):g(Y((""+Re).trim()))}P?(P=!1,T.push(pe,Te,Ie,Re)):T.push(Xe,Te,Ie,Re)}}P||T.push(Ee)}var Ge=m(" "),Me=m('="'),Ee=m('"'),we=m('=""');function Ue(T,P,U,te){switch(U){case"style":tt(T,P,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<U.length)||U[0]!=="o"&&U[0]!=="O"||U[1]!=="n"&&U[1]!=="N"){if(P=b.hasOwnProperty(U)?b[U]:null,P!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!P.acceptsBooleans)return}switch(U=g(P.attributeName),P.type){case 3:te&&T.push(Ge,U,we);break;case 4:te===!0?T.push(Ge,U,we):te!==!1&&T.push(Ge,U,Me,g(Y(te)),Ee);break;case 5:isNaN(te)||T.push(Ge,U,Me,g(Y(te)),Ee);break;case 6:!isNaN(te)&&1<=te&&T.push(Ge,U,Me,g(Y(te)),Ee);break;default:P.sanitizeURL&&(te=""+te),T.push(Ge,U,Me,g(Y(te)),Ee)}}else if(M(U)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(P=U.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")return}T.push(Ge,g(U),Me,g(Y(te)),Ee)}}}var ct=m(">"),Ne=m("/>");function bt(T,P,U){if(P!=null){if(U!=null)throw Error(e(60));if(typeof P!="object"||!("__html"in P))throw Error(e(61));P=P.__html,P!=null&&T.push(g(""+P))}}function Le(T){var P="";return r.Children.forEach(T,function(U){U!=null&&(P+=U)}),P}var Ze=m(' selected=""');function ot(T,P,U,te){T.push(xt(U));var Re=U=null,Te;for(Te in P)if(E.call(P,Te)){var Ve=P[Te];if(Ve!=null)switch(Te){case"children":U=Ve;break;case"dangerouslySetInnerHTML":Re=Ve;break;default:Ue(T,te,Te,Ve)}}return T.push(ct),bt(T,Re,U),typeof U=="string"?(T.push(g(Y(U))),null):U}var Ct=m(`
75
- `),_t=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wt=new Map;function xt(T){var P=wt.get(T);if(P===void 0){if(!_t.test(T))throw Error(e(65,T));P=m("<"+T),wt.set(T,P)}return P}var it=m("<!DOCTYPE html>");function je(T,P,U,te,Re){switch(P){case"select":T.push(xt("select"));var Te=null,Ve=null;for(ar in U)if(E.call(U,ar)){var gt=U[ar];if(gt!=null)switch(ar){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ve=gt;break;case"defaultValue":case"value":break;default:Ue(T,te,ar,gt)}}return T.push(ct),bt(T,Ve,Te),Te;case"option":Ve=Re.selectedValue,T.push(xt("option"));var Ut=gt=null,hr=null,ar=null;for(Te in U)if(E.call(U,Te)){var Gr=U[Te];if(Gr!=null)switch(Te){case"children":gt=Gr;break;case"selected":hr=Gr;break;case"dangerouslySetInnerHTML":ar=Gr;break;case"value":Ut=Gr;default:Ue(T,te,Te,Gr)}}if(Ve!=null)if(U=Ut!==null?""+Ut:Le(gt),he(Ve)){for(te=0;te<Ve.length;te++)if(""+Ve[te]===U){T.push(Ze);break}}else""+Ve===U&&T.push(Ze);else hr&&T.push(Ze);return T.push(ct),bt(T,ar,gt),gt;case"textarea":T.push(xt("textarea")),ar=Ve=Te=null;for(gt in U)if(E.call(U,gt)&&(Ut=U[gt],Ut!=null))switch(gt){case"children":ar=Ut;break;case"value":Te=Ut;break;case"defaultValue":Ve=Ut;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:Ue(T,te,gt,Ut)}if(Te===null&&Ve!==null&&(Te=Ve),T.push(ct),ar!=null){if(Te!=null)throw Error(e(92));if(he(ar)&&1<ar.length)throw Error(e(93));Te=""+ar}return typeof Te=="string"&&Te[0]===`
76
- `&&T.push(Ct),Te!==null&&T.push(g(Y(""+Te))),null;case"input":T.push(xt("input")),Ut=ar=gt=Te=null;for(Ve in U)if(E.call(U,Ve)&&(hr=U[Ve],hr!=null))switch(Ve){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Ut=hr;break;case"defaultValue":gt=hr;break;case"checked":ar=hr;break;case"value":Te=hr;break;default:Ue(T,te,Ve,hr)}return ar!==null?Ue(T,te,"checked",ar):Ut!==null&&Ue(T,te,"checked",Ut),Te!==null?Ue(T,te,"value",Te):gt!==null&&Ue(T,te,"value",gt),T.push(Ne),null;case"menuitem":T.push(xt("menuitem"));for(var ni in U)if(E.call(U,ni)&&(Te=U[ni],Te!=null))switch(ni){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:Ue(T,te,ni,Te)}return T.push(ct),null;case"title":T.push(xt("title")),Te=null;for(Gr in U)if(E.call(U,Gr)&&(Ve=U[Gr],Ve!=null))switch(Gr){case"children":Te=Ve;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:Ue(T,te,Gr,Ve)}return T.push(ct),Te;case"listing":case"pre":T.push(xt(P)),Ve=Te=null;for(Ut in U)if(E.call(U,Ut)&&(gt=U[Ut],gt!=null))switch(Ut){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ve=gt;break;default:Ue(T,te,Ut,gt)}if(T.push(ct),Ve!=null){if(Te!=null)throw Error(e(60));if(typeof Ve!="object"||!("__html"in Ve))throw Error(e(61));U=Ve.__html,U!=null&&(typeof U=="string"&&0<U.length&&U[0]===`
74
+ */var Gv;function z4(){if(Gv)return wd;Gv=1;var r=A;function e(T){for(var P="https://reactjs.org/docs/error-decoder.html?invariant="+T,U=1;U<arguments.length;U++)P+="&args[]="+encodeURIComponent(arguments[U]);return"Minified React error #"+T+"; visit "+P+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=null,n=0;function i(T,P){if(P.length!==0)if(512<P.length)0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=new Uint8Array(512),n=0),T.enqueue(P);else{var U=t.length-n;U<P.length&&(U===0?T.enqueue(t):(t.set(P.subarray(0,U),n),T.enqueue(t),P=P.subarray(U)),t=new Uint8Array(512),n=0),t.set(P,n),n+=P.length}}function l(T,P){return i(T,P),!0}function u(T){t&&0<n&&(T.enqueue(new Uint8Array(t.buffer,0,n)),t=null,n=0)}var f=new TextEncoder;function g(T){return f.encode(T)}function m(T){return f.encode(T)}function R(T,P){typeof T.error=="function"?T.error(P):T.close()}var E=Object.prototype.hasOwnProperty,_=/^[: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]*$/,S={},x={};function M(T){return E.call(x,T)?!0:E.call(S,T)?!1:_.test(T)?x[T]=!0:(S[T]=!0,!1)}function w(T,P,U,te,Re,Te,Ge){this.acceptsBooleans=P===2||P===3||P===4,this.attributeName=te,this.attributeNamespace=Re,this.mustUseProperty=U,this.propertyName=T,this.type=P,this.sanitizeURL=Te,this.removeEmptyString=Ge}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(T){b[T]=new w(T,0,!1,T,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(T){var P=T[0];b[P]=new w(P,1,!1,T[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(T){b[T]=new w(T,2,!1,T.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(T){b[T]=new w(T,2,!1,T,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(T){b[T]=new w(T,3,!1,T.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(T){b[T]=new w(T,3,!0,T,null,!1,!1)}),["capture","download"].forEach(function(T){b[T]=new w(T,4,!1,T,null,!1,!1)}),["cols","rows","size","span"].forEach(function(T){b[T]=new w(T,6,!1,T,null,!1,!1)}),["rowSpan","start"].forEach(function(T){b[T]=new w(T,5,!1,T.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function O(T){return T[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(T){var P=T.replace(I,O);b[P]=new w(P,1,!1,T,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(T){var P=T.replace(I,O);b[P]=new w(P,1,!1,T,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(T){var P=T.replace(I,O);b[P]=new w(P,1,!1,T,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(T){b[T]=new w(T,1,!1,T.toLowerCase(),null,!1,!1)}),b.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(T){b[T]=new w(T,1,!1,T.toLowerCase(),null,!0,!0)});var H={animationIterationCount:!0,aspectRatio:!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},q=["Webkit","ms","Moz","O"];Object.keys(H).forEach(function(T){q.forEach(function(P){P=P+T.charAt(0).toUpperCase()+T.substring(1),H[P]=H[T]})});var z=/["'&<>]/;function Y(T){if(typeof T=="boolean"||typeof T=="number")return""+T;T=""+T;var P=z.exec(T);if(P){var U="",te,Re=0;for(te=P.index;te<T.length;te++){switch(T.charCodeAt(te)){case 34:P="&quot;";break;case 38:P="&amp;";break;case 39:P="&#x27;";break;case 60:P="&lt;";break;case 62:P="&gt;";break;default:continue}Re!==te&&(U+=T.substring(Re,te)),Re=te+1,U+=P}T=Re!==te?U+T.substring(Re,te):U}return T}var fe=/([A-Z])/g,X=/^ms-/,he=Array.isArray,j=m("<script>"),re=m("<\/script>"),Q=m('<script src="'),J=m('<script type="module" src="'),me=m('" async=""><\/script>'),ce=/(<\/|<)(s)(cript)/gi;function be(T,P,U,te){return""+P+(U==="s"?"\\u0073":"\\u0053")+te}function ue(T,P,U,te,Re){T=T===void 0?"":T,P=P===void 0?j:m('<script nonce="'+Y(P)+'">');var Te=[];if(U!==void 0&&Te.push(P,g((""+U).replace(ce,be)),re),te!==void 0)for(U=0;U<te.length;U++)Te.push(Q,g(Y(te[U])),me);if(Re!==void 0)for(te=0;te<Re.length;te++)Te.push(J,g(Y(Re[te])),me);return{bootstrapChunks:Te,startInlineScript:P,placeholderPrefix:m(T+"P:"),segmentPrefix:m(T+"S:"),boundaryPrefix:T+"B:",idPrefix:T,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Se(T,P){return{insertionMode:T,selectedValue:P}}function le(T){return Se(T==="http://www.w3.org/2000/svg"?2:T==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function ae(T,P,U){switch(P){case"select":return Se(1,U.value!=null?U.value:U.defaultValue);case"svg":return Se(2,null);case"math":return Se(3,null);case"foreignObject":return Se(1,null);case"table":return Se(4,null);case"thead":case"tbody":case"tfoot":return Se(5,null);case"colgroup":return Se(7,null);case"tr":return Se(6,null)}return 4<=T.insertionMode||T.insertionMode===0?Se(1,null):T}var ge=m("<!-- -->");function Pe(T,P,U,te){return P===""?te:(te&&T.push(ge),T.push(g(Y(P))),!0)}var Qe=new Map,pe=m(' style="'),Ie=m(":"),Xe=m(";");function tt(T,P,U){if(typeof U!="object")throw Error(e(62));P=!0;for(var te in U)if(E.call(U,te)){var Re=U[te];if(Re!=null&&typeof Re!="boolean"&&Re!==""){if(te.indexOf("--")===0){var Te=g(Y(te));Re=g(Y((""+Re).trim()))}else{Te=te;var Ge=Qe.get(Te);Ge!==void 0||(Ge=m(Y(Te.replace(fe,"-$1").toLowerCase().replace(X,"-ms-"))),Qe.set(Te,Ge)),Te=Ge,Re=typeof Re=="number"?Re===0||E.call(H,te)?g(""+Re):g(Re+"px"):g(Y((""+Re).trim()))}P?(P=!1,T.push(pe,Te,Ie,Re)):T.push(Xe,Te,Ie,Re)}}P||T.push(Ee)}var Ue=m(" "),Me=m('="'),Ee=m('"'),we=m('=""');function We(T,P,U,te){switch(U){case"style":tt(T,P,te);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<U.length)||U[0]!=="o"&&U[0]!=="O"||U[1]!=="n"&&U[1]!=="N"){if(P=b.hasOwnProperty(U)?b[U]:null,P!==null){switch(typeof te){case"function":case"symbol":return;case"boolean":if(!P.acceptsBooleans)return}switch(U=g(P.attributeName),P.type){case 3:te&&T.push(Ue,U,we);break;case 4:te===!0?T.push(Ue,U,we):te!==!1&&T.push(Ue,U,Me,g(Y(te)),Ee);break;case 5:isNaN(te)||T.push(Ue,U,Me,g(Y(te)),Ee);break;case 6:!isNaN(te)&&1<=te&&T.push(Ue,U,Me,g(Y(te)),Ee);break;default:P.sanitizeURL&&(te=""+te),T.push(Ue,U,Me,g(Y(te)),Ee)}}else if(M(U)){switch(typeof te){case"function":case"symbol":return;case"boolean":if(P=U.toLowerCase().slice(0,5),P!=="data-"&&P!=="aria-")return}T.push(Ue,g(U),Me,g(Y(te)),Ee)}}}var ct=m(">"),Ne=m("/>");function bt(T,P,U){if(P!=null){if(U!=null)throw Error(e(60));if(typeof P!="object"||!("__html"in P))throw Error(e(61));P=P.__html,P!=null&&T.push(g(""+P))}}function Le(T){var P="";return r.Children.forEach(T,function(U){U!=null&&(P+=U)}),P}var Ze=m(' selected=""');function ot(T,P,U,te){T.push(xt(U));var Re=U=null,Te;for(Te in P)if(E.call(P,Te)){var Ge=P[Te];if(Ge!=null)switch(Te){case"children":U=Ge;break;case"dangerouslySetInnerHTML":Re=Ge;break;default:We(T,te,Te,Ge)}}return T.push(ct),bt(T,Re,U),typeof U=="string"?(T.push(g(Y(U))),null):U}var Ct=m(`
75
+ `),_t=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,wt=new Map;function xt(T){var P=wt.get(T);if(P===void 0){if(!_t.test(T))throw Error(e(65,T));P=m("<"+T),wt.set(T,P)}return P}var it=m("<!DOCTYPE html>");function je(T,P,U,te,Re){switch(P){case"select":T.push(xt("select"));var Te=null,Ge=null;for(ar in U)if(E.call(U,ar)){var gt=U[ar];if(gt!=null)switch(ar){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ge=gt;break;case"defaultValue":case"value":break;default:We(T,te,ar,gt)}}return T.push(ct),bt(T,Ge,Te),Te;case"option":Ge=Re.selectedValue,T.push(xt("option"));var Ut=gt=null,hr=null,ar=null;for(Te in U)if(E.call(U,Te)){var Gr=U[Te];if(Gr!=null)switch(Te){case"children":gt=Gr;break;case"selected":hr=Gr;break;case"dangerouslySetInnerHTML":ar=Gr;break;case"value":Ut=Gr;default:We(T,te,Te,Gr)}}if(Ge!=null)if(U=Ut!==null?""+Ut:Le(gt),he(Ge)){for(te=0;te<Ge.length;te++)if(""+Ge[te]===U){T.push(Ze);break}}else""+Ge===U&&T.push(Ze);else hr&&T.push(Ze);return T.push(ct),bt(T,ar,gt),gt;case"textarea":T.push(xt("textarea")),ar=Ge=Te=null;for(gt in U)if(E.call(U,gt)&&(Ut=U[gt],Ut!=null))switch(gt){case"children":ar=Ut;break;case"value":Te=Ut;break;case"defaultValue":Ge=Ut;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:We(T,te,gt,Ut)}if(Te===null&&Ge!==null&&(Te=Ge),T.push(ct),ar!=null){if(Te!=null)throw Error(e(92));if(he(ar)&&1<ar.length)throw Error(e(93));Te=""+ar}return typeof Te=="string"&&Te[0]===`
76
+ `&&T.push(Ct),Te!==null&&T.push(g(Y(""+Te))),null;case"input":T.push(xt("input")),Ut=ar=gt=Te=null;for(Ge in U)if(E.call(U,Ge)&&(hr=U[Ge],hr!=null))switch(Ge){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":Ut=hr;break;case"defaultValue":gt=hr;break;case"checked":ar=hr;break;case"value":Te=hr;break;default:We(T,te,Ge,hr)}return ar!==null?We(T,te,"checked",ar):Ut!==null&&We(T,te,"checked",Ut),Te!==null?We(T,te,"value",Te):gt!==null&&We(T,te,"value",gt),T.push(Ne),null;case"menuitem":T.push(xt("menuitem"));for(var ni in U)if(E.call(U,ni)&&(Te=U[ni],Te!=null))switch(ni){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:We(T,te,ni,Te)}return T.push(ct),null;case"title":T.push(xt("title")),Te=null;for(Gr in U)if(E.call(U,Gr)&&(Ge=U[Gr],Ge!=null))switch(Gr){case"children":Te=Ge;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:We(T,te,Gr,Ge)}return T.push(ct),Te;case"listing":case"pre":T.push(xt(P)),Ge=Te=null;for(Ut in U)if(E.call(U,Ut)&&(gt=U[Ut],gt!=null))switch(Ut){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ge=gt;break;default:We(T,te,Ut,gt)}if(T.push(ct),Ge!=null){if(Te!=null)throw Error(e(60));if(typeof Ge!="object"||!("__html"in Ge))throw Error(e(61));U=Ge.__html,U!=null&&(typeof U=="string"&&0<U.length&&U[0]===`
77
77
  `?T.push(Ct,g(U)):T.push(g(""+U)))}return typeof Te=="string"&&Te[0]===`
78
- `&&T.push(Ct),Te;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":T.push(xt(P));for(var Ti in U)if(E.call(U,Ti)&&(Te=U[Ti],Te!=null))switch(Ti){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,P));default:Ue(T,te,Ti,Te)}return T.push(Ne),null;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 ot(T,U,P,te);case"html":return Re.insertionMode===0&&T.push(it),ot(T,U,P,te);default:if(P.indexOf("-")===-1&&typeof U.is!="string")return ot(T,U,P,te);T.push(xt(P)),Ve=Te=null;for(hr in U)if(E.call(U,hr)&&(gt=U[hr],gt!=null))switch(hr){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ve=gt;break;case"style":tt(T,te,gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:M(hr)&&typeof gt!="function"&&typeof gt!="symbol"&&T.push(Ge,g(hr),Me,g(Y(gt)),Ee)}return T.push(ct),bt(T,Ve,Te),Te}}var yt=m("</"),st=m(">"),Rt=m('<template id="'),Bt=m('"></template>'),ze=m("<!--$-->"),Tt=m('<!--$?--><template id="'),Ht=m('"></template>'),_r=m("<!--$!-->"),kr=m("<!--/$-->"),Cr=m("<template"),ve=m('"'),ne=m(' data-dgst="');m(' data-msg="'),m(' data-stck="');var Je=m("></template>");function pt(T,P,U){if(i(T,Tt),U===null)throw Error(e(395));return i(T,U),l(T,Ht)}var $e=m('<div hidden id="'),De=m('">'),St=m("</div>"),Et=m('<svg aria-hidden="true" style="display:none" id="'),ut=m('">'),Nt=m("</svg>"),Qt=m('<math aria-hidden="true" style="display:none" id="'),rr=m('">'),Ft=m("</math>"),zt=m('<table hidden id="'),nr=m('">'),et=m("</table>"),At=m('<table hidden><tbody id="'),vt=m('">'),It=m("</tbody></table>"),pr=m('<table hidden><tr id="'),$=m('">'),_e=m("</tr></table>"),Ke=m('<table hidden><colgroup id="'),mt=m('">'),Pt=m("</colgroup></table>");function Wt(T,P,U,te){switch(U.insertionMode){case 0:case 1:return i(T,$e),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,De);case 2:return i(T,Et),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,ut);case 3:return i(T,Qt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,rr);case 4:return i(T,zt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,nr);case 5:return i(T,At),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,vt);case 6:return i(T,pr),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,$);case 7:return i(T,Ke),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,mt);default:throw Error(e(397))}}function Lt(T,P){switch(P.insertionMode){case 0:case 1:return l(T,St);case 2:return l(T,Nt);case 3:return l(T,Ft);case 4:return l(T,et);case 5:return l(T,It);case 6:return l(T,_e);case 7:return l(T,Pt);default:throw Error(e(397))}}var $t=m('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ir=m('$RS("'),or=m('","'),fr=m('")<\/script>'),Ur=m('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),vr=m('$RC("'),Kn=m('","'),Cn=m('")<\/script>'),Dn=m('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Yr=m('$RX("'),Yn=m('"'),En=m(")<\/script>"),Xn=m(","),Jn=/[<\u2028\u2029]/g;function on(T){return JSON.stringify(T).replace(Jn,function(P){switch(P){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var On=Object.assign,wn=Symbol.for("react.element"),hi=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),Ci=Symbol.for("react.strict_mode"),kn=Symbol.for("react.profiler"),An=Symbol.for("react.provider"),un=Symbol.for("react.context"),Qn=Symbol.for("react.forward_ref"),sn=Symbol.for("react.suspense"),pn=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),ke=Symbol.for("react.legacy_hidden"),Ce=Symbol.for("react.default_value"),Be=Symbol.iterator;function at(T){if(T==null)return null;if(typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case Si:return"Fragment";case hi:return"Portal";case kn:return"Profiler";case Ci:return"StrictMode";case sn:return"Suspense";case pn:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case un:return(T.displayName||"Context")+".Consumer";case An:return(T._context.displayName||"Context")+".Provider";case Qn:var P=T.render;return T=T.displayName,T||(T=P.displayName||P.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case C:return P=T.displayName||null,P!==null?P:at(T.type)||"Memo";case N:P=T._payload,T=T._init;try{return at(T(P))}catch{}}return null}var Mt={};function qt(T,P){if(T=T.contextTypes,!T)return Mt;var U={},te;for(te in T)U[te]=P[te];return U}var jt=null;function xr(T,P){if(T!==P){T.context._currentValue=T.parentValue,T=T.parent;var U=P.parent;if(T===null){if(U!==null)throw Error(e(401))}else{if(U===null)throw Error(e(401));xr(T,U)}P.context._currentValue=P.value}}function Zr(T){T.context._currentValue=T.parentValue,T=T.parent,T!==null&&Zr(T)}function vn(T){var P=T.parent;P!==null&&vn(P),T.context._currentValue=T.value}function yn(T,P){if(T.context._currentValue=T.parentValue,T=T.parent,T===null)throw Error(e(402));T.depth===P.depth?xr(T,P):yn(T,P)}function li(T,P){var U=P.parent;if(U===null)throw Error(e(402));T.depth===U.depth?xr(T,U):li(T,U),P.context._currentValue=P.value}function Bn(T){var P=jt;P!==T&&(P===null?vn(T):T===null?Zr(P):P.depth===T.depth?xr(P,T):P.depth>T.depth?yn(P,T):li(P,T),jt=T)}var wi={isMounted:function(){return!1},enqueueSetState:function(T,P){T=T._reactInternals,T.queue!==null&&T.queue.push(P)},enqueueReplaceState:function(T,P){T=T._reactInternals,T.replace=!0,T.queue=[P]},enqueueForceUpdate:function(){}};function Xr(T,P,U,te){var Re=T.state!==void 0?T.state:null;T.updater=wi,T.props=U,T.state=Re;var Te={queue:[],replace:!1};T._reactInternals=Te;var Ve=P.contextType;if(T.context=typeof Ve=="object"&&Ve!==null?Ve._currentValue:te,Ve=P.getDerivedStateFromProps,typeof Ve=="function"&&(Ve=Ve(U,Re),Re=Ve==null?Re:On({},Re,Ve),T.state=Re),typeof P.getDerivedStateFromProps!="function"&&typeof T.getSnapshotBeforeUpdate!="function"&&(typeof T.UNSAFE_componentWillMount=="function"||typeof T.componentWillMount=="function"))if(P=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),P!==T.state&&wi.enqueueReplaceState(T,T.state,null),Te.queue!==null&&0<Te.queue.length)if(P=Te.queue,Ve=Te.replace,Te.queue=null,Te.replace=!1,Ve&&P.length===1)T.state=P[0];else{for(Te=Ve?P[0]:T.state,Re=!0,Ve=Ve?1:0;Ve<P.length;Ve++){var gt=P[Ve];gt=typeof gt=="function"?gt.call(T,Te,U,te):gt,gt!=null&&(Re?(Re=!1,Te=On({},Te,gt)):On(Te,gt))}T.state=Te}else Te.queue=null}var pi={id:1,overflow:""};function Hn(T,P,U){var te=T.id;T=T.overflow;var Re=32-ei(te)-1;te&=~(1<<Re),U+=1;var Te=32-ei(P)+Re;if(30<Te){var Ve=Re-Re%5;return Te=(te&(1<<Ve)-1).toString(32),te>>=Ve,Re-=Ve,{id:1<<32-ei(P)+Re|U<<Re|te,overflow:Te+T}}return{id:1<<Te|U<<Re|te,overflow:T}}var ei=Math.clz32?Math.clz32:no,bo=Math.log,ro=Math.LN2;function no(T){return T>>>=0,T===0?32:31-(bo(T)/ro|0)|0}function Rn(T,P){return T===P&&(T!==0||1/T===1/P)||T!==T&&P!==P}var _o=typeof Object.is=="function"?Object.is:Rn,ti=null,ri=null,$i=null,Or=null,wr=!1,Mr=!1,L=0,Z=null,se=0;function He(){if(ti===null)throw Error(e(321));return ti}function Yt(){if(0<se)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Vt(){return Or===null?$i===null?(wr=!1,$i=Or=Yt()):(wr=!0,Or=$i):Or.next===null?(wr=!1,Or=Or.next=Yt()):(wr=!0,Or=Or.next),Or}function gr(){ri=ti=null,Mr=!1,$i=null,se=0,Or=Z=null}function Sr(T,P){return typeof P=="function"?P(T):P}function dr(T,P,U){if(ti=He(),Or=Vt(),wr){var te=Or.queue;if(P=te.dispatch,Z!==null&&(U=Z.get(te),U!==void 0)){Z.delete(te),te=Or.memoizedState;do te=T(te,U.action),U=U.next;while(U!==null);return Or.memoizedState=te,[te,P]}return[Or.memoizedState,P]}return T=T===Sr?typeof P=="function"?P():P:U!==void 0?U(P):P,Or.memoizedState=T,T=Or.queue={last:null,dispatch:null},T=T.dispatch=Jr.bind(null,ti,T),[Or.memoizedState,T]}function Ar(T,P){if(ti=He(),Or=Vt(),P=P===void 0?null:P,Or!==null){var U=Or.memoizedState;if(U!==null&&P!==null){var te=U[1];e:if(te===null)te=!1;else{for(var Re=0;Re<te.length&&Re<P.length;Re++)if(!_o(P[Re],te[Re])){te=!1;break e}te=!0}if(te)return U[0]}}return T=T(),Or.memoizedState=[T,P],T}function Jr(T,P,U){if(25<=se)throw Error(e(301));if(T===ti)if(Mr=!0,T={action:U,next:null},Z===null&&(Z=new Map),U=Z.get(P),U===void 0)Z.set(P,T);else{for(P=U;P.next!==null;)P=P.next;P.next=T}}function In(){throw Error(e(394))}function Vr(){}var Br={readContext:function(T){return T._currentValue},useContext:function(T){return He(),T._currentValue},useMemo:Ar,useReducer:dr,useRef:function(T){ti=He(),Or=Vt();var P=Or.memoizedState;return P===null?(T={current:T},Or.memoizedState=T):P},useState:function(T){return dr(Sr,T)},useInsertionEffect:Vr,useLayoutEffect:function(){},useCallback:function(T,P){return Ar(function(){return T},P)},useImperativeHandle:Vr,useEffect:Vr,useDebugValue:Vr,useDeferredValue:function(T){return He(),T},useTransition:function(){return He(),[!1,In]},useId:function(){var T=ri.treeContext,P=T.overflow;T=T.id,T=(T&~(1<<32-ei(T)-1)).toString(32)+P;var U=Qr;if(U===null)throw Error(e(404));return P=L++,T=":"+U.idPrefix+"R"+T,0<P&&(T+="H"+P.toString(32)),T+":"},useMutableSource:function(T,P){return He(),P(T._source)},useSyncExternalStore:function(T,P,U){if(U===void 0)throw Error(e(407));return U()}},Qr=null,ci=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function gi(T){return console.error(T),null}function qn(){}function xo(T,P,U,te,Re,Te,Ve,gt,Ut){var hr=[],ar=new Set;return P={destination:null,responseState:P,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ar,pingedTasks:hr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Re===void 0?gi:Re,onAllReady:Te===void 0?qn:Te,onShellReady:Ve===void 0?qn:Ve,onShellError:gt===void 0?qn:gt,onFatalError:Ut===void 0?qn:Ut},U=an(P,0,null,U,!1,!1),U.parentFlushed=!0,T=Ui(P,T,null,U,ar,Mt,null,pi),hr.push(T),P}function Ui(T,P,U,te,Re,Te,Ve,gt){T.allPendingTasks++,U===null?T.pendingRootTasks++:U.pendingTasks++;var Ut={node:P,ping:function(){var hr=T.pingedTasks;hr.push(Ut),hr.length===1&&pl(T)},blockedBoundary:U,blockedSegment:te,abortSet:Re,legacyContext:Te,context:Ve,treeContext:gt};return Re.add(Ut),Ut}function an(T,P,U,te,Re,Te){return{status:0,id:-1,index:P,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:U,lastPushedText:Re,textEmbedded:Te}}function ps(T,P){if(T=T.onError(P),T!=null&&typeof T!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof T+'" instead');return T}function zn(T,P){var U=T.onShellError;U(P),U=T.onFatalError,U(P),T.destination!==null?(T.status=2,R(T.destination,P)):(T.status=1,T.fatalError=P)}function fl(T,P,U,te,Re){for(ti={},ri=P,L=0,T=U(te,Re);Mr;)Mr=!1,L=0,se+=1,Or=null,T=U(te,Re);return gr(),T}function Ta(T,P,U,te){var Re=U.render(),Te=te.childContextTypes;if(Te!=null){var Ve=P.legacyContext;if(typeof U.getChildContext!="function")te=Ve;else{U=U.getChildContext();for(var gt in U)if(!(gt in Te))throw Error(e(108,at(te)||"Unknown",gt));te=On({},Ve,U)}P.legacyContext=te,$n(T,P,Re),P.legacyContext=Ve}else $n(T,P,Re)}function Wi(T,P){if(T&&T.defaultProps){P=On({},P),T=T.defaultProps;for(var U in T)P[U]===void 0&&(P[U]=T[U]);return P}return P}function So(T,P,U,te,Re){if(typeof U=="function")if(U.prototype&&U.prototype.isReactComponent){Re=qt(U,P.legacyContext);var Te=U.contextType;Te=new U(te,typeof Te=="object"&&Te!==null?Te._currentValue:Re),Xr(Te,U,te,Re),Ta(T,P,Te,U)}else{Te=qt(U,P.legacyContext),Re=fl(T,P,U,te,Te);var Ve=L!==0;if(typeof Re=="object"&&Re!==null&&typeof Re.render=="function"&&Re.$$typeof===void 0)Xr(Re,U,te,Te),Ta(T,P,Re,U);else if(Ve){te=P.treeContext,P.treeContext=Hn(te,1,0);try{$n(T,P,Re)}finally{P.treeContext=te}}else $n(T,P,Re)}else if(typeof U=="string"){switch(Re=P.blockedSegment,Te=je(Re.chunks,U,te,T.responseState,Re.formatContext),Re.lastPushedText=!1,Ve=Re.formatContext,Re.formatContext=ae(Ve,U,te),Ai(T,P,Te),Re.formatContext=Ve,U){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Re.chunks.push(yt,g(U),st)}Re.lastPushedText=!1}else{switch(U){case ke:case ee:case Ci:case kn:case Si:$n(T,P,te.children);return;case pn:$n(T,P,te.children);return;case G:throw Error(e(343));case sn:e:{U=P.blockedBoundary,Re=P.blockedSegment,Te=te.fallback,te=te.children,Ve=new Set;var gt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ve,errorDigest:null},Ut=an(T,Re.chunks.length,gt,Re.formatContext,!1,!1);Re.children.push(Ut),Re.lastPushedText=!1;var hr=an(T,0,null,Re.formatContext,!1,!1);hr.parentFlushed=!0,P.blockedBoundary=gt,P.blockedSegment=hr;try{if(Ai(T,P,te),hr.lastPushedText&&hr.textEmbedded&&hr.chunks.push(ge),hr.status=1,$o(gt,hr),gt.pendingTasks===0)break e}catch(ar){hr.status=4,gt.forceClientRender=!0,gt.errorDigest=ps(T,ar)}finally{P.blockedBoundary=U,P.blockedSegment=Re}P=Ui(T,Te,U,Ut,Ve,P.legacyContext,P.context,P.treeContext),T.pingedTasks.push(P)}return}if(typeof U=="object"&&U!==null)switch(U.$$typeof){case Qn:if(te=fl(T,P,U.render,te,Re),L!==0){U=P.treeContext,P.treeContext=Hn(U,1,0);try{$n(T,P,te)}finally{P.treeContext=U}}else $n(T,P,te);return;case C:U=U.type,te=Wi(U,te),So(T,P,U,te,Re);return;case An:if(Re=te.children,U=U._context,te=te.value,Te=U._currentValue,U._currentValue=te,Ve=jt,jt=te={parent:Ve,depth:Ve===null?0:Ve.depth+1,context:U,parentValue:Te,value:te},P.context=te,$n(T,P,Re),T=jt,T===null)throw Error(e(403));te=T.parentValue,T.context._currentValue=te===Ce?T.context._defaultValue:te,T=jt=T.parent,P.context=T;return;case un:te=te.children,te=te(U._currentValue),$n(T,P,te);return;case N:Re=U._init,U=Re(U._payload),te=Wi(U,te),So(T,P,U,te,void 0);return}throw Error(e(130,U==null?U:typeof U,""))}}function $n(T,P,U){if(P.node=U,typeof U=="object"&&U!==null){switch(U.$$typeof){case wn:So(T,P,U.type,U.props,U.ref);return;case hi:throw Error(e(257));case N:var te=U._init;U=te(U._payload),$n(T,P,U);return}if(he(U)){Kr(T,P,U);return}if(U===null||typeof U!="object"?te=null:(te=Be&&U[Be]||U["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(U))){if(U=te.next(),!U.done){var Re=[];do Re.push(U.value),U=te.next();while(!U.done);Kr(T,P,Re)}return}throw T=Object.prototype.toString.call(U),Error(e(31,T==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":T))}typeof U=="string"?(te=P.blockedSegment,te.lastPushedText=Pe(P.blockedSegment.chunks,U,T.responseState,te.lastPushedText)):typeof U=="number"&&(te=P.blockedSegment,te.lastPushedText=Pe(P.blockedSegment.chunks,""+U,T.responseState,te.lastPushedText))}function Kr(T,P,U){for(var te=U.length,Re=0;Re<te;Re++){var Te=P.treeContext;P.treeContext=Hn(Te,te,Re);try{Ai(T,P,U[Re])}finally{P.treeContext=Te}}}function Ai(T,P,U){var te=P.blockedSegment.formatContext,Re=P.legacyContext,Te=P.context;try{return $n(T,P,U)}catch(Ut){if(gr(),typeof Ut=="object"&&Ut!==null&&typeof Ut.then=="function"){U=Ut;var Ve=P.blockedSegment,gt=an(T,Ve.chunks.length,null,Ve.formatContext,Ve.lastPushedText,!0);Ve.children.push(gt),Ve.lastPushedText=!1,T=Ui(T,P.node,P.blockedBoundary,gt,P.abortSet,P.legacyContext,P.context,P.treeContext).ping,U.then(T,T),P.blockedSegment.formatContext=te,P.legacyContext=Re,P.context=Te,Bn(Te)}else throw P.blockedSegment.formatContext=te,P.legacyContext=Re,P.context=Te,Bn(Te),Ut}}function Ea(T){var P=T.blockedBoundary;T=T.blockedSegment,T.status=3,hl(this,P,T)}function dl(T,P,U){var te=T.blockedBoundary;T.blockedSegment.status=3,te===null?(P.allPendingTasks--,P.status!==2&&(P.status=2,P.destination!==null&&P.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,T=U===void 0?Error(e(432)):U,te.errorDigest=P.onError(T),te.parentFlushed&&P.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Re){return dl(Re,P,U)}),te.fallbackAbortableTasks.clear(),P.allPendingTasks--,P.allPendingTasks===0&&(te=P.onAllReady,te()))}function $o(T,P){if(P.chunks.length===0&&P.children.length===1&&P.children[0].boundary===null){var U=P.children[0];U.id=P.id,U.parentFlushed=!0,U.status===1&&$o(T,U)}else T.completedSegments.push(P)}function hl(T,P,U){if(P===null){if(U.parentFlushed){if(T.completedRootSegment!==null)throw Error(e(389));T.completedRootSegment=U}T.pendingRootTasks--,T.pendingRootTasks===0&&(T.onShellError=qn,P=T.onShellReady,P())}else P.pendingTasks--,P.forceClientRender||(P.pendingTasks===0?(U.parentFlushed&&U.status===1&&$o(P,U),P.parentFlushed&&T.completedBoundaries.push(P),P.fallbackAbortableTasks.forEach(Ea,T),P.fallbackAbortableTasks.clear()):U.parentFlushed&&U.status===1&&($o(P,U),P.completedSegments.length===1&&P.parentFlushed&&T.partialBoundaries.push(P)));T.allPendingTasks--,T.allPendingTasks===0&&(T=T.onAllReady,T())}function pl(T){if(T.status!==2){var P=jt,U=ci.current;ci.current=Br;var te=Qr;Qr=T.responseState;try{var Re=T.pingedTasks,Te;for(Te=0;Te<Re.length;Te++){var Ve=Re[Te],gt=T,Ut=Ve.blockedSegment;if(Ut.status===0){Bn(Ve.context);try{$n(gt,Ve,Ve.node),Ut.lastPushedText&&Ut.textEmbedded&&Ut.chunks.push(ge),Ve.abortSet.delete(Ve),Ut.status=1,hl(gt,Ve.blockedBoundary,Ut)}catch(Ei){if(gr(),typeof Ei=="object"&&Ei!==null&&typeof Ei.then=="function"){var hr=Ve.ping;Ei.then(hr,hr)}else{Ve.abortSet.delete(Ve),Ut.status=4;var ar=Ve.blockedBoundary,Gr=Ei,ni=ps(gt,Gr);if(ar===null?zn(gt,Gr):(ar.pendingTasks--,ar.forceClientRender||(ar.forceClientRender=!0,ar.errorDigest=ni,ar.parentFlushed&&gt.clientRenderedBoundaries.push(ar))),gt.allPendingTasks--,gt.allPendingTasks===0){var Ti=gt.onAllReady;Ti()}}}finally{}}}Re.splice(0,Te),T.destination!==null&&Zs(T,T.destination)}catch(Ei){ps(T,Ei),zn(T,Ei)}finally{Qr=te,ci.current=U,U===Br&&Bn(P)}}}function Gs(T,P,U){switch(U.parentFlushed=!0,U.status){case 0:var te=U.id=T.nextSegmentId++;return U.lastPushedText=!1,U.textEmbedded=!1,T=T.responseState,i(P,Rt),i(P,T.placeholderPrefix),T=g(te.toString(16)),i(P,T),l(P,Bt);case 1:U.status=2;var Re=!0;te=U.chunks;var Te=0;U=U.children;for(var Ve=0;Ve<U.length;Ve++){for(Re=U[Ve];Te<Re.index;Te++)i(P,te[Te]);Re=gs(T,P,Re)}for(;Te<te.length-1;Te++)i(P,te[Te]);return Te<te.length&&(Re=l(P,te[Te])),Re;default:throw Error(e(390))}}function gs(T,P,U){var te=U.boundary;if(te===null)return Gs(T,P,U);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,l(P,_r),i(P,Cr),te&&(i(P,ne),i(P,g(Y(te))),i(P,ve)),l(P,Je),Gs(T,P,U);else if(0<te.pendingTasks){te.rootSegmentID=T.nextSegmentId++,0<te.completedSegments.length&&T.partialBoundaries.push(te);var Re=T.responseState,Te=Re.nextSuspenseID++;Re=m(Re.boundaryPrefix+Te.toString(16)),te=te.id=Re,pt(P,T.responseState,te),Gs(T,P,U)}else if(te.byteSize>T.progressiveChunkSize)te.rootSegmentID=T.nextSegmentId++,T.completedBoundaries.push(te),pt(P,T.responseState,te.id),Gs(T,P,U);else{if(l(P,ze),U=te.completedSegments,U.length!==1)throw Error(e(391));gs(T,P,U[0])}return l(P,kr)}function ms(T,P,U){return Wt(P,T.responseState,U.formatContext,U.id),gs(T,P,U),Lt(P,U.formatContext)}function Co(T,P,U){for(var te=U.completedSegments,Re=0;Re<te.length;Re++)gl(T,P,U,te[Re]);if(te.length=0,T=T.responseState,te=U.id,U=U.rootSegmentID,i(P,T.startInlineScript),T.sentCompleteBoundaryFunction?i(P,vr):(T.sentCompleteBoundaryFunction=!0,i(P,Ur)),te===null)throw Error(e(395));return U=g(U.toString(16)),i(P,te),i(P,Kn),i(P,T.segmentPrefix),i(P,U),l(P,Cn)}function gl(T,P,U,te){if(te.status===2)return!0;var Re=te.id;if(Re===-1){if((te.id=U.rootSegmentID)===-1)throw Error(e(392));return ms(T,P,te)}return ms(T,P,te),T=T.responseState,i(P,T.startInlineScript),T.sentCompleteSegmentFunction?i(P,ir):(T.sentCompleteSegmentFunction=!0,i(P,$t)),i(P,T.segmentPrefix),Re=g(Re.toString(16)),i(P,Re),i(P,or),i(P,T.placeholderPrefix),i(P,Re),l(P,fr)}function Zs(T,P){t=new Uint8Array(512),n=0;try{var U=T.completedRootSegment;if(U!==null&&T.pendingRootTasks===0){gs(T,P,U),T.completedRootSegment=null;var te=T.responseState.bootstrapChunks;for(U=0;U<te.length-1;U++)i(P,te[U]);U<te.length&&l(P,te[U])}var Re=T.clientRenderedBoundaries,Te;for(Te=0;Te<Re.length;Te++){var Ve=Re[Te];te=P;var gt=T.responseState,Ut=Ve.id,hr=Ve.errorDigest,ar=Ve.errorMessage,Gr=Ve.errorComponentStack;if(i(te,gt.startInlineScript),gt.sentClientRenderFunction?i(te,Yr):(gt.sentClientRenderFunction=!0,i(te,Dn)),Ut===null)throw Error(e(395));i(te,Ut),i(te,Yn),(hr||ar||Gr)&&(i(te,Xn),i(te,g(on(hr||"")))),(ar||Gr)&&(i(te,Xn),i(te,g(on(ar||"")))),Gr&&(i(te,Xn),i(te,g(on(Gr)))),l(te,En)}Re.splice(0,Te);var ni=T.completedBoundaries;for(Te=0;Te<ni.length;Te++)Co(T,P,ni[Te]);ni.splice(0,Te),u(P),t=new Uint8Array(512),n=0;var Ti=T.partialBoundaries;for(Te=0;Te<Ti.length;Te++){var Ei=Ti[Te];e:{Re=T,Ve=P;var Ks=Ei.completedSegments;for(gt=0;gt<Ks.length;gt++)if(!gl(Re,Ve,Ei,Ks[gt])){gt++,Ks.splice(0,gt);var ml=!1;break e}Ks.splice(0,gt),ml=!0}if(!ml){T.destination=null,Te++,Ti.splice(0,Te);return}}Ti.splice(0,Te);var vs=T.completedBoundaries;for(Te=0;Te<vs.length;Te++)Co(T,P,vs[Te]);vs.splice(0,Te)}finally{u(P),T.allPendingTasks===0&&T.pingedTasks.length===0&&T.clientRenderedBoundaries.length===0&&T.completedBoundaries.length===0&&P.close()}}function ka(T,P){try{var U=T.abortableTasks;U.forEach(function(te){return dl(te,T,P)}),U.clear(),T.destination!==null&&Zs(T,T.destination)}catch(te){ps(T,te),zn(T,te)}}return wd.renderToReadableStream=function(T,P){return new Promise(function(U,te){var Re,Te,Ve=new Promise(function(ar,Gr){Te=ar,Re=Gr}),gt=xo(T,ue(P?P.identifierPrefix:void 0,P?P.nonce:void 0,P?P.bootstrapScriptContent:void 0,P?P.bootstrapScripts:void 0,P?P.bootstrapModules:void 0),le(P?P.namespaceURI:void 0),P?P.progressiveChunkSize:void 0,P?P.onError:void 0,Te,function(){var ar=new ReadableStream({type:"bytes",pull:function(Gr){if(gt.status===1)gt.status=2,R(Gr,gt.fatalError);else if(gt.status!==2&&gt.destination===null){gt.destination=Gr;try{Zs(gt,Gr)}catch(ni){ps(gt,ni),zn(gt,ni)}}},cancel:function(){ka(gt)}},{highWaterMark:0});ar.allReady=Ve,U(ar)},function(ar){Ve.catch(function(){}),te(ar)},Re);if(P&&P.signal){var Ut=P.signal,hr=function(){ka(gt,Ut.reason),Ut.removeEventListener("abort",hr)};Ut.addEventListener("abort",hr)}pl(gt)})},wd.version="18.2.0",wd}var Wc={};/**
78
+ `&&T.push(Ct),Te;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":T.push(xt(P));for(var Ti in U)if(E.call(U,Ti)&&(Te=U[Ti],Te!=null))switch(Ti){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,P));default:We(T,te,Ti,Te)}return T.push(Ne),null;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 ot(T,U,P,te);case"html":return Re.insertionMode===0&&T.push(it),ot(T,U,P,te);default:if(P.indexOf("-")===-1&&typeof U.is!="string")return ot(T,U,P,te);T.push(xt(P)),Ge=Te=null;for(hr in U)if(E.call(U,hr)&&(gt=U[hr],gt!=null))switch(hr){case"children":Te=gt;break;case"dangerouslySetInnerHTML":Ge=gt;break;case"style":tt(T,te,gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:M(hr)&&typeof gt!="function"&&typeof gt!="symbol"&&T.push(Ue,g(hr),Me,g(Y(gt)),Ee)}return T.push(ct),bt(T,Ge,Te),Te}}var yt=m("</"),st=m(">"),Rt=m('<template id="'),Bt=m('"></template>'),ze=m("<!--$-->"),Tt=m('<!--$?--><template id="'),Ht=m('"></template>'),_r=m("<!--$!-->"),kr=m("<!--/$-->"),Cr=m("<template"),ve=m('"'),ne=m(' data-dgst="');m(' data-msg="'),m(' data-stck="');var Je=m("></template>");function pt(T,P,U){if(i(T,Tt),U===null)throw Error(e(395));return i(T,U),l(T,Ht)}var $e=m('<div hidden id="'),De=m('">'),St=m("</div>"),Et=m('<svg aria-hidden="true" style="display:none" id="'),ut=m('">'),Nt=m("</svg>"),Qt=m('<math aria-hidden="true" style="display:none" id="'),rr=m('">'),Ft=m("</math>"),zt=m('<table hidden id="'),nr=m('">'),et=m("</table>"),At=m('<table hidden><tbody id="'),vt=m('">'),It=m("</tbody></table>"),pr=m('<table hidden><tr id="'),$=m('">'),_e=m("</tr></table>"),Ke=m('<table hidden><colgroup id="'),mt=m('">'),Pt=m("</colgroup></table>");function Wt(T,P,U,te){switch(U.insertionMode){case 0:case 1:return i(T,$e),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,De);case 2:return i(T,Et),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,ut);case 3:return i(T,Qt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,rr);case 4:return i(T,zt),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,nr);case 5:return i(T,At),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,vt);case 6:return i(T,pr),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,$);case 7:return i(T,Ke),i(T,P.segmentPrefix),i(T,g(te.toString(16))),l(T,mt);default:throw Error(e(397))}}function Lt(T,P){switch(P.insertionMode){case 0:case 1:return l(T,St);case 2:return l(T,Nt);case 3:return l(T,Ft);case 4:return l(T,et);case 5:return l(T,It);case 6:return l(T,_e);case 7:return l(T,Pt);default:throw Error(e(397))}}var $t=m('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ir=m('$RS("'),or=m('","'),fr=m('")<\/script>'),Ur=m('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),vr=m('$RC("'),Kn=m('","'),Cn=m('")<\/script>'),Dn=m('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Yr=m('$RX("'),Yn=m('"'),En=m(")<\/script>"),Xn=m(","),Jn=/[<\u2028\u2029]/g;function on(T){return JSON.stringify(T).replace(Jn,function(P){switch(P){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var On=Object.assign,wn=Symbol.for("react.element"),hi=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),Ci=Symbol.for("react.strict_mode"),kn=Symbol.for("react.profiler"),An=Symbol.for("react.provider"),un=Symbol.for("react.context"),Qn=Symbol.for("react.forward_ref"),sn=Symbol.for("react.suspense"),pn=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),ke=Symbol.for("react.legacy_hidden"),Ce=Symbol.for("react.default_value"),Be=Symbol.iterator;function at(T){if(T==null)return null;if(typeof T=="function")return T.displayName||T.name||null;if(typeof T=="string")return T;switch(T){case Si:return"Fragment";case hi:return"Portal";case kn:return"Profiler";case Ci:return"StrictMode";case sn:return"Suspense";case pn:return"SuspenseList"}if(typeof T=="object")switch(T.$$typeof){case un:return(T.displayName||"Context")+".Consumer";case An:return(T._context.displayName||"Context")+".Provider";case Qn:var P=T.render;return T=T.displayName,T||(T=P.displayName||P.name||"",T=T!==""?"ForwardRef("+T+")":"ForwardRef"),T;case C:return P=T.displayName||null,P!==null?P:at(T.type)||"Memo";case N:P=T._payload,T=T._init;try{return at(T(P))}catch{}}return null}var Mt={};function qt(T,P){if(T=T.contextTypes,!T)return Mt;var U={},te;for(te in T)U[te]=P[te];return U}var jt=null;function xr(T,P){if(T!==P){T.context._currentValue=T.parentValue,T=T.parent;var U=P.parent;if(T===null){if(U!==null)throw Error(e(401))}else{if(U===null)throw Error(e(401));xr(T,U)}P.context._currentValue=P.value}}function Zr(T){T.context._currentValue=T.parentValue,T=T.parent,T!==null&&Zr(T)}function vn(T){var P=T.parent;P!==null&&vn(P),T.context._currentValue=T.value}function yn(T,P){if(T.context._currentValue=T.parentValue,T=T.parent,T===null)throw Error(e(402));T.depth===P.depth?xr(T,P):yn(T,P)}function li(T,P){var U=P.parent;if(U===null)throw Error(e(402));T.depth===U.depth?xr(T,U):li(T,U),P.context._currentValue=P.value}function Bn(T){var P=jt;P!==T&&(P===null?vn(T):T===null?Zr(P):P.depth===T.depth?xr(P,T):P.depth>T.depth?yn(P,T):li(P,T),jt=T)}var wi={isMounted:function(){return!1},enqueueSetState:function(T,P){T=T._reactInternals,T.queue!==null&&T.queue.push(P)},enqueueReplaceState:function(T,P){T=T._reactInternals,T.replace=!0,T.queue=[P]},enqueueForceUpdate:function(){}};function Xr(T,P,U,te){var Re=T.state!==void 0?T.state:null;T.updater=wi,T.props=U,T.state=Re;var Te={queue:[],replace:!1};T._reactInternals=Te;var Ge=P.contextType;if(T.context=typeof Ge=="object"&&Ge!==null?Ge._currentValue:te,Ge=P.getDerivedStateFromProps,typeof Ge=="function"&&(Ge=Ge(U,Re),Re=Ge==null?Re:On({},Re,Ge),T.state=Re),typeof P.getDerivedStateFromProps!="function"&&typeof T.getSnapshotBeforeUpdate!="function"&&(typeof T.UNSAFE_componentWillMount=="function"||typeof T.componentWillMount=="function"))if(P=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),P!==T.state&&wi.enqueueReplaceState(T,T.state,null),Te.queue!==null&&0<Te.queue.length)if(P=Te.queue,Ge=Te.replace,Te.queue=null,Te.replace=!1,Ge&&P.length===1)T.state=P[0];else{for(Te=Ge?P[0]:T.state,Re=!0,Ge=Ge?1:0;Ge<P.length;Ge++){var gt=P[Ge];gt=typeof gt=="function"?gt.call(T,Te,U,te):gt,gt!=null&&(Re?(Re=!1,Te=On({},Te,gt)):On(Te,gt))}T.state=Te}else Te.queue=null}var pi={id:1,overflow:""};function Hn(T,P,U){var te=T.id;T=T.overflow;var Re=32-ei(te)-1;te&=~(1<<Re),U+=1;var Te=32-ei(P)+Re;if(30<Te){var Ge=Re-Re%5;return Te=(te&(1<<Ge)-1).toString(32),te>>=Ge,Re-=Ge,{id:1<<32-ei(P)+Re|U<<Re|te,overflow:Te+T}}return{id:1<<Te|U<<Re|te,overflow:T}}var ei=Math.clz32?Math.clz32:no,bo=Math.log,ro=Math.LN2;function no(T){return T>>>=0,T===0?32:31-(bo(T)/ro|0)|0}function Rn(T,P){return T===P&&(T!==0||1/T===1/P)||T!==T&&P!==P}var _o=typeof Object.is=="function"?Object.is:Rn,ti=null,ri=null,$i=null,Or=null,wr=!1,Mr=!1,L=0,Z=null,se=0;function He(){if(ti===null)throw Error(e(321));return ti}function Yt(){if(0<se)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Vt(){return Or===null?$i===null?(wr=!1,$i=Or=Yt()):(wr=!0,Or=$i):Or.next===null?(wr=!1,Or=Or.next=Yt()):(wr=!0,Or=Or.next),Or}function gr(){ri=ti=null,Mr=!1,$i=null,se=0,Or=Z=null}function Sr(T,P){return typeof P=="function"?P(T):P}function dr(T,P,U){if(ti=He(),Or=Vt(),wr){var te=Or.queue;if(P=te.dispatch,Z!==null&&(U=Z.get(te),U!==void 0)){Z.delete(te),te=Or.memoizedState;do te=T(te,U.action),U=U.next;while(U!==null);return Or.memoizedState=te,[te,P]}return[Or.memoizedState,P]}return T=T===Sr?typeof P=="function"?P():P:U!==void 0?U(P):P,Or.memoizedState=T,T=Or.queue={last:null,dispatch:null},T=T.dispatch=Jr.bind(null,ti,T),[Or.memoizedState,T]}function Ar(T,P){if(ti=He(),Or=Vt(),P=P===void 0?null:P,Or!==null){var U=Or.memoizedState;if(U!==null&&P!==null){var te=U[1];e:if(te===null)te=!1;else{for(var Re=0;Re<te.length&&Re<P.length;Re++)if(!_o(P[Re],te[Re])){te=!1;break e}te=!0}if(te)return U[0]}}return T=T(),Or.memoizedState=[T,P],T}function Jr(T,P,U){if(25<=se)throw Error(e(301));if(T===ti)if(Mr=!0,T={action:U,next:null},Z===null&&(Z=new Map),U=Z.get(P),U===void 0)Z.set(P,T);else{for(P=U;P.next!==null;)P=P.next;P.next=T}}function In(){throw Error(e(394))}function Vr(){}var Br={readContext:function(T){return T._currentValue},useContext:function(T){return He(),T._currentValue},useMemo:Ar,useReducer:dr,useRef:function(T){ti=He(),Or=Vt();var P=Or.memoizedState;return P===null?(T={current:T},Or.memoizedState=T):P},useState:function(T){return dr(Sr,T)},useInsertionEffect:Vr,useLayoutEffect:function(){},useCallback:function(T,P){return Ar(function(){return T},P)},useImperativeHandle:Vr,useEffect:Vr,useDebugValue:Vr,useDeferredValue:function(T){return He(),T},useTransition:function(){return He(),[!1,In]},useId:function(){var T=ri.treeContext,P=T.overflow;T=T.id,T=(T&~(1<<32-ei(T)-1)).toString(32)+P;var U=Qr;if(U===null)throw Error(e(404));return P=L++,T=":"+U.idPrefix+"R"+T,0<P&&(T+="H"+P.toString(32)),T+":"},useMutableSource:function(T,P){return He(),P(T._source)},useSyncExternalStore:function(T,P,U){if(U===void 0)throw Error(e(407));return U()}},Qr=null,ci=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function gi(T){return console.error(T),null}function qn(){}function xo(T,P,U,te,Re,Te,Ge,gt,Ut){var hr=[],ar=new Set;return P={destination:null,responseState:P,progressiveChunkSize:te===void 0?12800:te,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ar,pingedTasks:hr,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Re===void 0?gi:Re,onAllReady:Te===void 0?qn:Te,onShellReady:Ge===void 0?qn:Ge,onShellError:gt===void 0?qn:gt,onFatalError:Ut===void 0?qn:Ut},U=an(P,0,null,U,!1,!1),U.parentFlushed=!0,T=Ui(P,T,null,U,ar,Mt,null,pi),hr.push(T),P}function Ui(T,P,U,te,Re,Te,Ge,gt){T.allPendingTasks++,U===null?T.pendingRootTasks++:U.pendingTasks++;var Ut={node:P,ping:function(){var hr=T.pingedTasks;hr.push(Ut),hr.length===1&&pl(T)},blockedBoundary:U,blockedSegment:te,abortSet:Re,legacyContext:Te,context:Ge,treeContext:gt};return Re.add(Ut),Ut}function an(T,P,U,te,Re,Te){return{status:0,id:-1,index:P,parentFlushed:!1,chunks:[],children:[],formatContext:te,boundary:U,lastPushedText:Re,textEmbedded:Te}}function ps(T,P){if(T=T.onError(P),T!=null&&typeof T!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof T+'" instead');return T}function zn(T,P){var U=T.onShellError;U(P),U=T.onFatalError,U(P),T.destination!==null?(T.status=2,R(T.destination,P)):(T.status=1,T.fatalError=P)}function fl(T,P,U,te,Re){for(ti={},ri=P,L=0,T=U(te,Re);Mr;)Mr=!1,L=0,se+=1,Or=null,T=U(te,Re);return gr(),T}function Ta(T,P,U,te){var Re=U.render(),Te=te.childContextTypes;if(Te!=null){var Ge=P.legacyContext;if(typeof U.getChildContext!="function")te=Ge;else{U=U.getChildContext();for(var gt in U)if(!(gt in Te))throw Error(e(108,at(te)||"Unknown",gt));te=On({},Ge,U)}P.legacyContext=te,$n(T,P,Re),P.legacyContext=Ge}else $n(T,P,Re)}function Wi(T,P){if(T&&T.defaultProps){P=On({},P),T=T.defaultProps;for(var U in T)P[U]===void 0&&(P[U]=T[U]);return P}return P}function So(T,P,U,te,Re){if(typeof U=="function")if(U.prototype&&U.prototype.isReactComponent){Re=qt(U,P.legacyContext);var Te=U.contextType;Te=new U(te,typeof Te=="object"&&Te!==null?Te._currentValue:Re),Xr(Te,U,te,Re),Ta(T,P,Te,U)}else{Te=qt(U,P.legacyContext),Re=fl(T,P,U,te,Te);var Ge=L!==0;if(typeof Re=="object"&&Re!==null&&typeof Re.render=="function"&&Re.$$typeof===void 0)Xr(Re,U,te,Te),Ta(T,P,Re,U);else if(Ge){te=P.treeContext,P.treeContext=Hn(te,1,0);try{$n(T,P,Re)}finally{P.treeContext=te}}else $n(T,P,Re)}else if(typeof U=="string"){switch(Re=P.blockedSegment,Te=je(Re.chunks,U,te,T.responseState,Re.formatContext),Re.lastPushedText=!1,Ge=Re.formatContext,Re.formatContext=ae(Ge,U,te),Ai(T,P,Te),Re.formatContext=Ge,U){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Re.chunks.push(yt,g(U),st)}Re.lastPushedText=!1}else{switch(U){case ke:case ee:case Ci:case kn:case Si:$n(T,P,te.children);return;case pn:$n(T,P,te.children);return;case G:throw Error(e(343));case sn:e:{U=P.blockedBoundary,Re=P.blockedSegment,Te=te.fallback,te=te.children,Ge=new Set;var gt={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ge,errorDigest:null},Ut=an(T,Re.chunks.length,gt,Re.formatContext,!1,!1);Re.children.push(Ut),Re.lastPushedText=!1;var hr=an(T,0,null,Re.formatContext,!1,!1);hr.parentFlushed=!0,P.blockedBoundary=gt,P.blockedSegment=hr;try{if(Ai(T,P,te),hr.lastPushedText&&hr.textEmbedded&&hr.chunks.push(ge),hr.status=1,$o(gt,hr),gt.pendingTasks===0)break e}catch(ar){hr.status=4,gt.forceClientRender=!0,gt.errorDigest=ps(T,ar)}finally{P.blockedBoundary=U,P.blockedSegment=Re}P=Ui(T,Te,U,Ut,Ge,P.legacyContext,P.context,P.treeContext),T.pingedTasks.push(P)}return}if(typeof U=="object"&&U!==null)switch(U.$$typeof){case Qn:if(te=fl(T,P,U.render,te,Re),L!==0){U=P.treeContext,P.treeContext=Hn(U,1,0);try{$n(T,P,te)}finally{P.treeContext=U}}else $n(T,P,te);return;case C:U=U.type,te=Wi(U,te),So(T,P,U,te,Re);return;case An:if(Re=te.children,U=U._context,te=te.value,Te=U._currentValue,U._currentValue=te,Ge=jt,jt=te={parent:Ge,depth:Ge===null?0:Ge.depth+1,context:U,parentValue:Te,value:te},P.context=te,$n(T,P,Re),T=jt,T===null)throw Error(e(403));te=T.parentValue,T.context._currentValue=te===Ce?T.context._defaultValue:te,T=jt=T.parent,P.context=T;return;case un:te=te.children,te=te(U._currentValue),$n(T,P,te);return;case N:Re=U._init,U=Re(U._payload),te=Wi(U,te),So(T,P,U,te,void 0);return}throw Error(e(130,U==null?U:typeof U,""))}}function $n(T,P,U){if(P.node=U,typeof U=="object"&&U!==null){switch(U.$$typeof){case wn:So(T,P,U.type,U.props,U.ref);return;case hi:throw Error(e(257));case N:var te=U._init;U=te(U._payload),$n(T,P,U);return}if(he(U)){Kr(T,P,U);return}if(U===null||typeof U!="object"?te=null:(te=Be&&U[Be]||U["@@iterator"],te=typeof te=="function"?te:null),te&&(te=te.call(U))){if(U=te.next(),!U.done){var Re=[];do Re.push(U.value),U=te.next();while(!U.done);Kr(T,P,Re)}return}throw T=Object.prototype.toString.call(U),Error(e(31,T==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":T))}typeof U=="string"?(te=P.blockedSegment,te.lastPushedText=Pe(P.blockedSegment.chunks,U,T.responseState,te.lastPushedText)):typeof U=="number"&&(te=P.blockedSegment,te.lastPushedText=Pe(P.blockedSegment.chunks,""+U,T.responseState,te.lastPushedText))}function Kr(T,P,U){for(var te=U.length,Re=0;Re<te;Re++){var Te=P.treeContext;P.treeContext=Hn(Te,te,Re);try{Ai(T,P,U[Re])}finally{P.treeContext=Te}}}function Ai(T,P,U){var te=P.blockedSegment.formatContext,Re=P.legacyContext,Te=P.context;try{return $n(T,P,U)}catch(Ut){if(gr(),typeof Ut=="object"&&Ut!==null&&typeof Ut.then=="function"){U=Ut;var Ge=P.blockedSegment,gt=an(T,Ge.chunks.length,null,Ge.formatContext,Ge.lastPushedText,!0);Ge.children.push(gt),Ge.lastPushedText=!1,T=Ui(T,P.node,P.blockedBoundary,gt,P.abortSet,P.legacyContext,P.context,P.treeContext).ping,U.then(T,T),P.blockedSegment.formatContext=te,P.legacyContext=Re,P.context=Te,Bn(Te)}else throw P.blockedSegment.formatContext=te,P.legacyContext=Re,P.context=Te,Bn(Te),Ut}}function Ea(T){var P=T.blockedBoundary;T=T.blockedSegment,T.status=3,hl(this,P,T)}function dl(T,P,U){var te=T.blockedBoundary;T.blockedSegment.status=3,te===null?(P.allPendingTasks--,P.status!==2&&(P.status=2,P.destination!==null&&P.destination.close())):(te.pendingTasks--,te.forceClientRender||(te.forceClientRender=!0,T=U===void 0?Error(e(432)):U,te.errorDigest=P.onError(T),te.parentFlushed&&P.clientRenderedBoundaries.push(te)),te.fallbackAbortableTasks.forEach(function(Re){return dl(Re,P,U)}),te.fallbackAbortableTasks.clear(),P.allPendingTasks--,P.allPendingTasks===0&&(te=P.onAllReady,te()))}function $o(T,P){if(P.chunks.length===0&&P.children.length===1&&P.children[0].boundary===null){var U=P.children[0];U.id=P.id,U.parentFlushed=!0,U.status===1&&$o(T,U)}else T.completedSegments.push(P)}function hl(T,P,U){if(P===null){if(U.parentFlushed){if(T.completedRootSegment!==null)throw Error(e(389));T.completedRootSegment=U}T.pendingRootTasks--,T.pendingRootTasks===0&&(T.onShellError=qn,P=T.onShellReady,P())}else P.pendingTasks--,P.forceClientRender||(P.pendingTasks===0?(U.parentFlushed&&U.status===1&&$o(P,U),P.parentFlushed&&T.completedBoundaries.push(P),P.fallbackAbortableTasks.forEach(Ea,T),P.fallbackAbortableTasks.clear()):U.parentFlushed&&U.status===1&&($o(P,U),P.completedSegments.length===1&&P.parentFlushed&&T.partialBoundaries.push(P)));T.allPendingTasks--,T.allPendingTasks===0&&(T=T.onAllReady,T())}function pl(T){if(T.status!==2){var P=jt,U=ci.current;ci.current=Br;var te=Qr;Qr=T.responseState;try{var Re=T.pingedTasks,Te;for(Te=0;Te<Re.length;Te++){var Ge=Re[Te],gt=T,Ut=Ge.blockedSegment;if(Ut.status===0){Bn(Ge.context);try{$n(gt,Ge,Ge.node),Ut.lastPushedText&&Ut.textEmbedded&&Ut.chunks.push(ge),Ge.abortSet.delete(Ge),Ut.status=1,hl(gt,Ge.blockedBoundary,Ut)}catch(Ei){if(gr(),typeof Ei=="object"&&Ei!==null&&typeof Ei.then=="function"){var hr=Ge.ping;Ei.then(hr,hr)}else{Ge.abortSet.delete(Ge),Ut.status=4;var ar=Ge.blockedBoundary,Gr=Ei,ni=ps(gt,Gr);if(ar===null?zn(gt,Gr):(ar.pendingTasks--,ar.forceClientRender||(ar.forceClientRender=!0,ar.errorDigest=ni,ar.parentFlushed&&gt.clientRenderedBoundaries.push(ar))),gt.allPendingTasks--,gt.allPendingTasks===0){var Ti=gt.onAllReady;Ti()}}}finally{}}}Re.splice(0,Te),T.destination!==null&&Zs(T,T.destination)}catch(Ei){ps(T,Ei),zn(T,Ei)}finally{Qr=te,ci.current=U,U===Br&&Bn(P)}}}function Gs(T,P,U){switch(U.parentFlushed=!0,U.status){case 0:var te=U.id=T.nextSegmentId++;return U.lastPushedText=!1,U.textEmbedded=!1,T=T.responseState,i(P,Rt),i(P,T.placeholderPrefix),T=g(te.toString(16)),i(P,T),l(P,Bt);case 1:U.status=2;var Re=!0;te=U.chunks;var Te=0;U=U.children;for(var Ge=0;Ge<U.length;Ge++){for(Re=U[Ge];Te<Re.index;Te++)i(P,te[Te]);Re=gs(T,P,Re)}for(;Te<te.length-1;Te++)i(P,te[Te]);return Te<te.length&&(Re=l(P,te[Te])),Re;default:throw Error(e(390))}}function gs(T,P,U){var te=U.boundary;if(te===null)return Gs(T,P,U);if(te.parentFlushed=!0,te.forceClientRender)te=te.errorDigest,l(P,_r),i(P,Cr),te&&(i(P,ne),i(P,g(Y(te))),i(P,ve)),l(P,Je),Gs(T,P,U);else if(0<te.pendingTasks){te.rootSegmentID=T.nextSegmentId++,0<te.completedSegments.length&&T.partialBoundaries.push(te);var Re=T.responseState,Te=Re.nextSuspenseID++;Re=m(Re.boundaryPrefix+Te.toString(16)),te=te.id=Re,pt(P,T.responseState,te),Gs(T,P,U)}else if(te.byteSize>T.progressiveChunkSize)te.rootSegmentID=T.nextSegmentId++,T.completedBoundaries.push(te),pt(P,T.responseState,te.id),Gs(T,P,U);else{if(l(P,ze),U=te.completedSegments,U.length!==1)throw Error(e(391));gs(T,P,U[0])}return l(P,kr)}function ms(T,P,U){return Wt(P,T.responseState,U.formatContext,U.id),gs(T,P,U),Lt(P,U.formatContext)}function Co(T,P,U){for(var te=U.completedSegments,Re=0;Re<te.length;Re++)gl(T,P,U,te[Re]);if(te.length=0,T=T.responseState,te=U.id,U=U.rootSegmentID,i(P,T.startInlineScript),T.sentCompleteBoundaryFunction?i(P,vr):(T.sentCompleteBoundaryFunction=!0,i(P,Ur)),te===null)throw Error(e(395));return U=g(U.toString(16)),i(P,te),i(P,Kn),i(P,T.segmentPrefix),i(P,U),l(P,Cn)}function gl(T,P,U,te){if(te.status===2)return!0;var Re=te.id;if(Re===-1){if((te.id=U.rootSegmentID)===-1)throw Error(e(392));return ms(T,P,te)}return ms(T,P,te),T=T.responseState,i(P,T.startInlineScript),T.sentCompleteSegmentFunction?i(P,ir):(T.sentCompleteSegmentFunction=!0,i(P,$t)),i(P,T.segmentPrefix),Re=g(Re.toString(16)),i(P,Re),i(P,or),i(P,T.placeholderPrefix),i(P,Re),l(P,fr)}function Zs(T,P){t=new Uint8Array(512),n=0;try{var U=T.completedRootSegment;if(U!==null&&T.pendingRootTasks===0){gs(T,P,U),T.completedRootSegment=null;var te=T.responseState.bootstrapChunks;for(U=0;U<te.length-1;U++)i(P,te[U]);U<te.length&&l(P,te[U])}var Re=T.clientRenderedBoundaries,Te;for(Te=0;Te<Re.length;Te++){var Ge=Re[Te];te=P;var gt=T.responseState,Ut=Ge.id,hr=Ge.errorDigest,ar=Ge.errorMessage,Gr=Ge.errorComponentStack;if(i(te,gt.startInlineScript),gt.sentClientRenderFunction?i(te,Yr):(gt.sentClientRenderFunction=!0,i(te,Dn)),Ut===null)throw Error(e(395));i(te,Ut),i(te,Yn),(hr||ar||Gr)&&(i(te,Xn),i(te,g(on(hr||"")))),(ar||Gr)&&(i(te,Xn),i(te,g(on(ar||"")))),Gr&&(i(te,Xn),i(te,g(on(Gr)))),l(te,En)}Re.splice(0,Te);var ni=T.completedBoundaries;for(Te=0;Te<ni.length;Te++)Co(T,P,ni[Te]);ni.splice(0,Te),u(P),t=new Uint8Array(512),n=0;var Ti=T.partialBoundaries;for(Te=0;Te<Ti.length;Te++){var Ei=Ti[Te];e:{Re=T,Ge=P;var Ks=Ei.completedSegments;for(gt=0;gt<Ks.length;gt++)if(!gl(Re,Ge,Ei,Ks[gt])){gt++,Ks.splice(0,gt);var ml=!1;break e}Ks.splice(0,gt),ml=!0}if(!ml){T.destination=null,Te++,Ti.splice(0,Te);return}}Ti.splice(0,Te);var vs=T.completedBoundaries;for(Te=0;Te<vs.length;Te++)Co(T,P,vs[Te]);vs.splice(0,Te)}finally{u(P),T.allPendingTasks===0&&T.pingedTasks.length===0&&T.clientRenderedBoundaries.length===0&&T.completedBoundaries.length===0&&P.close()}}function ka(T,P){try{var U=T.abortableTasks;U.forEach(function(te){return dl(te,T,P)}),U.clear(),T.destination!==null&&Zs(T,T.destination)}catch(te){ps(T,te),zn(T,te)}}return wd.renderToReadableStream=function(T,P){return new Promise(function(U,te){var Re,Te,Ge=new Promise(function(ar,Gr){Te=ar,Re=Gr}),gt=xo(T,ue(P?P.identifierPrefix:void 0,P?P.nonce:void 0,P?P.bootstrapScriptContent:void 0,P?P.bootstrapScripts:void 0,P?P.bootstrapModules:void 0),le(P?P.namespaceURI:void 0),P?P.progressiveChunkSize:void 0,P?P.onError:void 0,Te,function(){var ar=new ReadableStream({type:"bytes",pull:function(Gr){if(gt.status===1)gt.status=2,R(Gr,gt.fatalError);else if(gt.status!==2&&gt.destination===null){gt.destination=Gr;try{Zs(gt,Gr)}catch(ni){ps(gt,ni),zn(gt,ni)}}},cancel:function(){ka(gt)}},{highWaterMark:0});ar.allReady=Ge,U(ar)},function(ar){Ge.catch(function(){}),te(ar)},Re);if(P&&P.signal){var Ut=P.signal,hr=function(){ka(gt,Ut.reason),Ut.removeEventListener("abort",hr)};Ut.addEventListener("abort",hr)}pl(gt)})},wd.version="18.2.0",wd}var Wc={};/**
79
79
  * @license React
80
80
  * react-dom-server-legacy.browser.development.js
81
81
  *
@@ -83,11 +83,11 @@ function print() { __p += __j.call(arguments, '') }
83
83
  *
84
84
  * This source code is licensed under the MIT license found in the
85
85
  * LICENSE file in the root directory of this source tree.
86
- */var Zv;function $4(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("warn",s,h)}}function i(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("error",s,h)}}function l(s,c,h){{var y=t.ReactDebugCurrentFrame,D=y.getStackAddendum();D!==""&&(c+="%s",h=h.concat([D]));var F=h.map(function(V){return String(V)});F.unshift("Warning: "+c),Function.prototype.apply.call(console[s],console,F)}}function u(s){s()}function f(s){}function g(s,c){m(s,c)}function m(s,c){return s.push(c)}function R(s){}function E(s){s.push(null)}function _(s){return s}function S(s){return s}function x(s,c){s.destroy(c)}function M(s){{var c=typeof Symbol=="function"&&Symbol.toStringTag,h=c&&s[Symbol.toStringTag]||s.constructor.name||"Object";return h}}function w(s){try{return b(s),!1}catch{return!0}}function b(s){return""+s}function I(s,c){if(w(s))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",c,M(s)),b(s)}function O(s,c){if(w(s))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",c,M(s)),b(s)}function H(s){if(w(s))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",M(s)),b(s)}var q=Object.prototype.hasOwnProperty,z=0,Y=1,fe=2,X=3,he=4,j=5,re=6,Q=":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",J=Q+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+Q+"]["+J+"]*$"),ce={},be={};function ue(s){return q.call(be,s)?!0:q.call(ce,s)?!1:me.test(s)?(be[s]=!0,!0):(ce[s]=!0,i("Invalid attribute name: `%s`",s),!1)}function Se(s,c,h,y){if(h!==null&&h.type===z)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var D=s.toLowerCase().slice(0,5);return D!=="data-"&&D!=="aria-"}default:return!1}}function le(s){return ge.hasOwnProperty(s)?ge[s]:null}function ae(s,c,h,y,D,F,V){this.acceptsBooleans=c===fe||c===X||c===he,this.attributeName=y,this.attributeNamespace=D,this.mustUseProperty=h,this.propertyName=s,this.type=c,this.sanitizeURL=F,this.removeEmptyString=V}var ge={},Pe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Pe.forEach(function(s){ge[s]=new ae(s,z,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0],h=s[1];ge[c]=new ae(c,Y,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){ge[s]=new ae(s,fe,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){ge[s]=new ae(s,fe,!1,s,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"].forEach(function(s){ge[s]=new ae(s,X,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){ge[s]=new ae(s,X,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){ge[s]=new ae(s,he,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){ge[s]=new ae(s,re,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){ge[s]=new ae(s,j,!1,s.toLowerCase(),null,!1,!1)});var Qe=/[\-\:]([a-z])/g,pe=function(s){return s[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"].forEach(function(s){var c=s.replace(Qe,pe);ge[c]=new ae(c,Y,!1,s,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(s){var c=s.replace(Qe,pe);ge[c]=new ae(c,Y,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(Qe,pe);ge[c]=new ae(c,Y,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){ge[s]=new ae(s,Y,!1,s.toLowerCase(),null,!1,!1)});var Ie="xlinkHref";ge[Ie]=new ae("xlinkHref",Y,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){ge[s]=new ae(s,Y,!1,s.toLowerCase(),null,!0,!0)});var Xe={animationIterationCount:!0,aspectRatio:!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};function tt(s,c){return s+c.charAt(0).toUpperCase()+c.substring(1)}var Ge=["Webkit","ms","Moz","O"];Object.keys(Xe).forEach(function(s){Ge.forEach(function(c){Xe[tt(c,s)]=Xe[s]})});var Me={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ee(s,c){Me[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function we(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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}}var Ue={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ct={},Ne=new RegExp("^(aria)-["+J+"]*$"),bt=new RegExp("^(aria)[A-Z]["+J+"]*$");function Le(s,c){{if(q.call(ct,c)&&ct[c])return!0;if(bt.test(c)){var h="aria-"+c.slice(4).toLowerCase(),y=Ue.hasOwnProperty(h)?h:null;if(y==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),ct[c]=!0,!0;if(c!==y)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,y),ct[c]=!0,!0}if(Ne.test(c)){var D=c.toLowerCase(),F=Ue.hasOwnProperty(D)?D:null;if(F==null)return ct[c]=!0,!1;if(c!==F)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,F),ct[c]=!0,!0}}return!0}function Ze(s,c){{var h=[];for(var y in c){var D=Le(s,y);D||h.push(y)}var F=h.map(function(V){return"`"+V+"`"}).join(", ");h.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s):h.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s)}}function ot(s,c){we(s,c)||Ze(s,c)}var Ct=!1;function _t(s,c){{if(s!=="input"&&s!=="textarea"&&s!=="select")return;c!=null&&c.value===null&&!Ct&&(Ct=!0,s==="select"&&c.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",s):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s))}}var wt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},xt=function(){};{var it={},je=/^on./,yt=/^on[^A-Z]/,st=new RegExp("^(aria)-["+J+"]*$"),Rt=new RegExp("^(aria)[A-Z]["+J+"]*$");xt=function(s,c,h,y){if(q.call(it,c)&&it[c])return!0;var D=c.toLowerCase();if(D==="onfocusin"||D==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),it[c]=!0,!0;if(y!=null){var F=y.registrationNameDependencies,V=y.possibleRegistrationNames;if(F.hasOwnProperty(c))return!0;var ie=V.hasOwnProperty(D)?V[D]:null;if(ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",c,ie),it[c]=!0,!0;if(je.test(c))return i("Unknown event handler property `%s`. It will be ignored.",c),it[c]=!0,!0}else if(je.test(c))return yt.test(c)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),it[c]=!0,!0;if(st.test(c)||Rt.test(c))return!0;if(D==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),it[c]=!0,!0;if(D==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),it[c]=!0,!0;if(D==="is"&&h!==null&&h!==void 0&&typeof h!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),it[c]=!0,!0;if(typeof h=="number"&&isNaN(h))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),it[c]=!0,!0;var Ae=le(c),Ye=Ae!==null&&Ae.type===z;if(wt.hasOwnProperty(D)){var lt=wt[D];if(lt!==c)return i("Invalid DOM property `%s`. Did you mean `%s`?",c,lt),it[c]=!0,!0}else if(!Ye&&c!==D)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",c,D),it[c]=!0,!0;return typeof h=="boolean"&&Se(c,h,Ae)?(h?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',h,c,c,h,c):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',h,c,c,h,c,c,c),it[c]=!0,!0):Ye?!0:Se(c,h,Ae)?(it[c]=!0,!1):((h==="false"||h==="true")&&Ae!==null&&Ae.type===X&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,c,h==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',c,h),it[c]=!0),!0)}}var Bt=function(s,c,h){{var y=[];for(var D in c){var F=xt(s,D,c[D],h);F||y.push(D)}var V=y.map(function(ie){return"`"+ie+"`"}).join(", ");y.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",V,s):y.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",V,s)}};function ze(s,c,h){we(s,c)||Bt(s,c,h)}var Tt=function(){};{var Ht=/^(?:webkit|moz|o)[A-Z]/,_r=/^-ms-/,kr=/-(.)/g,Cr=/;\s*$/,ve={},ne={},Je=!1,pt=!1,$e=function(s){return s.replace(kr,function(c,h){return h.toUpperCase()})},De=function(s){ve.hasOwnProperty(s)&&ve[s]||(ve[s]=!0,i("Unsupported style property %s. Did you mean %s?",s,$e(s.replace(_r,"ms-"))))},St=function(s){ve.hasOwnProperty(s)&&ve[s]||(ve[s]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1)))},Et=function(s,c){ne.hasOwnProperty(c)&&ne[c]||(ne[c]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(Cr,"")))},ut=function(s,c){Je||(Je=!0,i("`NaN` is an invalid value for the `%s` css style property.",s))},Nt=function(s,c){pt||(pt=!0,i("`Infinity` is an invalid value for the `%s` css style property.",s))};Tt=function(s,c){s.indexOf("-")>-1?De(s):Ht.test(s)?St(s):Cr.test(c)&&Et(s,c),typeof c=="number"&&(isNaN(c)?ut(s,c):isFinite(c)||Nt(s,c))}}var Qt=Tt,rr=/["'&<>]/;function Ft(s){H(s);var c=""+s,h=rr.exec(c);if(!h)return c;var y,D="",F,V=0;for(F=h.index;F<c.length;F++){switch(c.charCodeAt(F)){case 34:y="&quot;";break;case 38:y="&amp;";break;case 39:y="&#x27;";break;case 60:y="&lt;";break;case 62:y="&gt;";break;default:continue}V!==F&&(D+=c.substring(V,F)),V=F+1,D+=y}return V!==F?D+c.substring(V,F):D}function zt(s){return typeof s=="boolean"||typeof s=="number"?""+s:Ft(s)}var nr=/([A-Z])/g,et=/^ms-/;function At(s){return s.replace(nr,"-$1").toLowerCase().replace(et,"-ms-")}var vt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,It=!1;function pr(s){!It&&vt.test(s)&&(It=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(s)))}var $=Array.isArray;function _e(s){return $(s)}var Ke="<script>";function mt(s,c,h,y,D){var F=s===void 0?"":s,V=Ke,ie=[];return{bootstrapChunks:ie,startInlineScript:V,placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pt=0,Wt=1,Lt=2,$t=3,ir=4,or=5,fr=6,Ur=7;function vr(s,c){return{insertionMode:s,selectedValue:c}}function Kn(s,c,h){switch(c){case"select":return vr(Wt,h.value!=null?h.value:h.defaultValue);case"svg":return vr(Lt,null);case"math":return vr($t,null);case"foreignObject":return vr(Wt,null);case"table":return vr(ir,null);case"thead":case"tbody":case"tfoot":return vr(or,null);case"colgroup":return vr(Ur,null);case"tr":return vr(fr,null)}return s.insertionMode>=ir||s.insertionMode===Pt?vr(Wt,null):s}var Cn=null;function Dn(s){var c=s.nextSuspenseID++;return s.boundaryPrefix+c.toString(16)}function Yr(s,c,h){var y=s.idPrefix,D=":"+y+"R"+c;return h>0&&(D+="H"+h.toString(32)),D+":"}function Yn(s){return zt(s)}var En="<!-- -->";function Xn(s,c,h,y){return c===""?y:(y&&s.push(En),s.push(Yn(c)),!0)}function Jn(s,c,h,y){h&&y&&s.push(En)}var on=new Map;function On(s){var c=on.get(s);if(c!==void 0)return c;var h=zt(At(s));return on.set(s,h),h}var wn=' style="',hi=":",Si=";";function Ci(s,c,h){if(typeof h!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var y=!0;for(var D in h)if(q.call(h,D)){var F=h[D];if(!(F==null||typeof F=="boolean"||F==="")){var V=void 0,ie=void 0,Ae=D.indexOf("--")===0;Ae?(V=zt(D),O(F,D),ie=zt((""+F).trim())):(Qt(D,F),V=On(D),typeof F=="number"?F!==0&&!q.call(Xe,D)?ie=F+"px":ie=""+F:(O(F,D),ie=zt((""+F).trim()))),y?(y=!1,s.push(wn,V,hi,ie)):s.push(Si,V,hi,ie)}}y||s.push(un)}var kn=" ",An='="',un='"',Qn='=""';function sn(s,c,h,y){switch(h){case"style":{Ci(s,c,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(h.length>2&&(h[0]==="o"||h[0]==="O")&&(h[1]==="n"||h[1]==="N"))){var D=le(h);if(D!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!D.acceptsBooleans)return}var F=D.attributeName,V=F;switch(D.type){case X:y&&s.push(kn,V,Qn);return;case he:y===!0?s.push(kn,V,Qn):y===!1||s.push(kn,V,An,zt(y),un);return;case j:isNaN(y)||s.push(kn,V,An,zt(y),un);break;case re:!isNaN(y)&&y>=1&&s.push(kn,V,An,zt(y),un);break;default:D.sanitizeURL&&(I(y,F),y=""+y,pr(y)),s.push(kn,V,An,zt(y),un)}}else if(ue(h)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var ie=h.toLowerCase().slice(0,5);if(ie!=="data-"&&ie!=="aria-")return}}s.push(kn,h,An,zt(y),un)}}}var pn=">",C="/>";function N(s,c,h){if(c!=null){if(h!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof c!="object"||!("__html"in c))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=c.__html;y!=null&&(H(y),s.push(""+y))}}var G=!1,ee=!1,ke=!1,Ce=!1,Be=!1,at=!1,Mt=!1;function qt(s,c){{var h=s[c];if(h!=null){var y=_e(h);s.multiple&&!y?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",c):!s.multiple&&y&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",c)}}}function jt(s,c,h){Ee("select",c),qt(c,"value"),qt(c,"defaultValue"),c.value!==void 0&&c.defaultValue!==void 0&&!ke&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ke=!0),s.push(Rn("select"));var y=null,D=null;for(var F in c)if(q.call(c,F)){var V=c[F];if(V==null)continue;switch(F){case"children":y=V;break;case"dangerouslySetInnerHTML":D=V;break;case"defaultValue":case"value":break;default:sn(s,h,F,V);break}}return s.push(pn),N(s,D,y),y}function xr(s){var c="";return r.Children.forEach(s,function(h){h!=null&&(c+=h,!Be&&typeof h!="string"&&typeof h!="number"&&(Be=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),c}var Zr=' selected=""';function vn(s,c,h,y){var D=y.selectedValue;s.push(Rn("option"));var F=null,V=null,ie=null,Ae=null;for(var Ye in c)if(q.call(c,Ye)){var lt=c[Ye];if(lt==null)continue;switch(Ye){case"children":F=lt;break;case"selected":ie=lt,Mt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mt=!0);break;case"dangerouslySetInnerHTML":Ae=lt;break;case"value":V=lt;default:sn(s,h,Ye,lt);break}}if(D!=null){var kt;if(V!==null?(I(V,"value"),kt=""+V):(Ae!==null&&(at||(at=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),kt=xr(F)),_e(D))for(var tr=0;tr<D.length;tr++){I(D[tr],"value");var Dr=""+D[tr];if(Dr===kt){s.push(Zr);break}}else I(D,"select.value"),""+D===kt&&s.push(Zr)}else ie&&s.push(Zr);return s.push(pn),N(s,Ae,F),F}function yn(s,c,h){Ee("input",c),c.checked!==void 0&&c.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),ee=!0),c.value!==void 0&&c.defaultValue!==void 0&&!G&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),G=!0),s.push(Rn("input"));var y=null,D=null,F=null,V=null;for(var ie in c)if(q.call(c,ie)){var Ae=c[ie];if(Ae==null)continue;switch(ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":V=Ae;break;case"defaultValue":D=Ae;break;case"checked":F=Ae;break;case"value":y=Ae;break;default:sn(s,h,ie,Ae);break}}return F!==null?sn(s,h,"checked",F):V!==null&&sn(s,h,"checked",V),y!==null?sn(s,h,"value",y):D!==null&&sn(s,h,"value",D),s.push(C),null}function li(s,c,h){Ee("textarea",c),c.value!==void 0&&c.defaultValue!==void 0&&!Ce&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ce=!0),s.push(Rn("textarea"));var y=null,D=null,F=null;for(var V in c)if(q.call(c,V)){var ie=c[V];if(ie==null)continue;switch(V){case"children":F=ie;break;case"value":y=ie;break;case"defaultValue":D=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:sn(s,h,V,ie);break}}if(y===null&&D!==null&&(y=D),s.push(pn),F!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_e(F)){if(F.length>1)throw new Error("<textarea> can only have at most one child.");H(F[0]),y=""+F[0]}H(F),y=""+F}return typeof y=="string"&&y[0]===`
86
+ */var Zv;function $4(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("warn",s,h)}}function i(s){{for(var c=arguments.length,h=new Array(c>1?c-1:0),y=1;y<c;y++)h[y-1]=arguments[y];l("error",s,h)}}function l(s,c,h){{var y=t.ReactDebugCurrentFrame,D=y.getStackAddendum();D!==""&&(c+="%s",h=h.concat([D]));var F=h.map(function(V){return String(V)});F.unshift("Warning: "+c),Function.prototype.apply.call(console[s],console,F)}}function u(s){s()}function f(s){}function g(s,c){m(s,c)}function m(s,c){return s.push(c)}function R(s){}function E(s){s.push(null)}function _(s){return s}function S(s){return s}function x(s,c){s.destroy(c)}function M(s){{var c=typeof Symbol=="function"&&Symbol.toStringTag,h=c&&s[Symbol.toStringTag]||s.constructor.name||"Object";return h}}function w(s){try{return b(s),!1}catch{return!0}}function b(s){return""+s}function I(s,c){if(w(s))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",c,M(s)),b(s)}function O(s,c){if(w(s))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",c,M(s)),b(s)}function H(s){if(w(s))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",M(s)),b(s)}var q=Object.prototype.hasOwnProperty,z=0,Y=1,fe=2,X=3,he=4,j=5,re=6,Q=":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",J=Q+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("^["+Q+"]["+J+"]*$"),ce={},be={};function ue(s){return q.call(be,s)?!0:q.call(ce,s)?!1:me.test(s)?(be[s]=!0,!0):(ce[s]=!0,i("Invalid attribute name: `%s`",s),!1)}function Se(s,c,h,y){if(h!==null&&h.type===z)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":{if(h!==null)return!h.acceptsBooleans;var D=s.toLowerCase().slice(0,5);return D!=="data-"&&D!=="aria-"}default:return!1}}function le(s){return ge.hasOwnProperty(s)?ge[s]:null}function ae(s,c,h,y,D,F,V){this.acceptsBooleans=c===fe||c===X||c===he,this.attributeName=y,this.attributeNamespace=D,this.mustUseProperty=h,this.propertyName=s,this.type=c,this.sanitizeURL=F,this.removeEmptyString=V}var ge={},Pe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Pe.forEach(function(s){ge[s]=new ae(s,z,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var c=s[0],h=s[1];ge[c]=new ae(c,Y,!1,h,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){ge[s]=new ae(s,fe,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){ge[s]=new ae(s,fe,!1,s,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"].forEach(function(s){ge[s]=new ae(s,X,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){ge[s]=new ae(s,X,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){ge[s]=new ae(s,he,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){ge[s]=new ae(s,re,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){ge[s]=new ae(s,j,!1,s.toLowerCase(),null,!1,!1)});var Qe=/[\-\:]([a-z])/g,pe=function(s){return s[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"].forEach(function(s){var c=s.replace(Qe,pe);ge[c]=new ae(c,Y,!1,s,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(s){var c=s.replace(Qe,pe);ge[c]=new ae(c,Y,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var c=s.replace(Qe,pe);ge[c]=new ae(c,Y,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){ge[s]=new ae(s,Y,!1,s.toLowerCase(),null,!1,!1)});var Ie="xlinkHref";ge[Ie]=new ae("xlinkHref",Y,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){ge[s]=new ae(s,Y,!1,s.toLowerCase(),null,!0,!0)});var Xe={animationIterationCount:!0,aspectRatio:!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};function tt(s,c){return s+c.charAt(0).toUpperCase()+c.substring(1)}var Ue=["Webkit","ms","Moz","O"];Object.keys(Xe).forEach(function(s){Ue.forEach(function(c){Xe[tt(c,s)]=Xe[s]})});var Me={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ee(s,c){Me[c.type]||c.onChange||c.onInput||c.readOnly||c.disabled||c.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),c.onChange||c.readOnly||c.disabled||c.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function we(s,c){if(s.indexOf("-")===-1)return typeof c.is=="string";switch(s){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}}var We={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},ct={},Ne=new RegExp("^(aria)-["+J+"]*$"),bt=new RegExp("^(aria)[A-Z]["+J+"]*$");function Le(s,c){{if(q.call(ct,c)&&ct[c])return!0;if(bt.test(c)){var h="aria-"+c.slice(4).toLowerCase(),y=We.hasOwnProperty(h)?h:null;if(y==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",c),ct[c]=!0,!0;if(c!==y)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",c,y),ct[c]=!0,!0}if(Ne.test(c)){var D=c.toLowerCase(),F=We.hasOwnProperty(D)?D:null;if(F==null)return ct[c]=!0,!1;if(c!==F)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",c,F),ct[c]=!0,!0}}return!0}function Ze(s,c){{var h=[];for(var y in c){var D=Le(s,y);D||h.push(y)}var F=h.map(function(V){return"`"+V+"`"}).join(", ");h.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s):h.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",F,s)}}function ot(s,c){we(s,c)||Ze(s,c)}var Ct=!1;function _t(s,c){{if(s!=="input"&&s!=="textarea"&&s!=="select")return;c!=null&&c.value===null&&!Ct&&(Ct=!0,s==="select"&&c.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",s):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",s))}}var wt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},xt=function(){};{var it={},je=/^on./,yt=/^on[^A-Z]/,st=new RegExp("^(aria)-["+J+"]*$"),Rt=new RegExp("^(aria)[A-Z]["+J+"]*$");xt=function(s,c,h,y){if(q.call(it,c)&&it[c])return!0;var D=c.toLowerCase();if(D==="onfocusin"||D==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),it[c]=!0,!0;if(y!=null){var F=y.registrationNameDependencies,V=y.possibleRegistrationNames;if(F.hasOwnProperty(c))return!0;var ie=V.hasOwnProperty(D)?V[D]:null;if(ie!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",c,ie),it[c]=!0,!0;if(je.test(c))return i("Unknown event handler property `%s`. It will be ignored.",c),it[c]=!0,!0}else if(je.test(c))return yt.test(c)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",c),it[c]=!0,!0;if(st.test(c)||Rt.test(c))return!0;if(D==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),it[c]=!0,!0;if(D==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),it[c]=!0,!0;if(D==="is"&&h!==null&&h!==void 0&&typeof h!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof h),it[c]=!0,!0;if(typeof h=="number"&&isNaN(h))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",c),it[c]=!0,!0;var Ae=le(c),Ye=Ae!==null&&Ae.type===z;if(wt.hasOwnProperty(D)){var lt=wt[D];if(lt!==c)return i("Invalid DOM property `%s`. Did you mean `%s`?",c,lt),it[c]=!0,!0}else if(!Ye&&c!==D)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",c,D),it[c]=!0,!0;return typeof h=="boolean"&&Se(c,h,Ae)?(h?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',h,c,c,h,c):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',h,c,c,h,c,c,c),it[c]=!0,!0):Ye?!0:Se(c,h,Ae)?(it[c]=!0,!1):((h==="false"||h==="true")&&Ae!==null&&Ae.type===X&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",h,c,h==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',c,h),it[c]=!0),!0)}}var Bt=function(s,c,h){{var y=[];for(var D in c){var F=xt(s,D,c[D],h);F||y.push(D)}var V=y.map(function(ie){return"`"+ie+"`"}).join(", ");y.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",V,s):y.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",V,s)}};function ze(s,c,h){we(s,c)||Bt(s,c,h)}var Tt=function(){};{var Ht=/^(?:webkit|moz|o)[A-Z]/,_r=/^-ms-/,kr=/-(.)/g,Cr=/;\s*$/,ve={},ne={},Je=!1,pt=!1,$e=function(s){return s.replace(kr,function(c,h){return h.toUpperCase()})},De=function(s){ve.hasOwnProperty(s)&&ve[s]||(ve[s]=!0,i("Unsupported style property %s. Did you mean %s?",s,$e(s.replace(_r,"ms-"))))},St=function(s){ve.hasOwnProperty(s)&&ve[s]||(ve[s]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1)))},Et=function(s,c){ne.hasOwnProperty(c)&&ne[c]||(ne[c]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(Cr,"")))},ut=function(s,c){Je||(Je=!0,i("`NaN` is an invalid value for the `%s` css style property.",s))},Nt=function(s,c){pt||(pt=!0,i("`Infinity` is an invalid value for the `%s` css style property.",s))};Tt=function(s,c){s.indexOf("-")>-1?De(s):Ht.test(s)?St(s):Cr.test(c)&&Et(s,c),typeof c=="number"&&(isNaN(c)?ut(s,c):isFinite(c)||Nt(s,c))}}var Qt=Tt,rr=/["'&<>]/;function Ft(s){H(s);var c=""+s,h=rr.exec(c);if(!h)return c;var y,D="",F,V=0;for(F=h.index;F<c.length;F++){switch(c.charCodeAt(F)){case 34:y="&quot;";break;case 38:y="&amp;";break;case 39:y="&#x27;";break;case 60:y="&lt;";break;case 62:y="&gt;";break;default:continue}V!==F&&(D+=c.substring(V,F)),V=F+1,D+=y}return V!==F?D+c.substring(V,F):D}function zt(s){return typeof s=="boolean"||typeof s=="number"?""+s:Ft(s)}var nr=/([A-Z])/g,et=/^ms-/;function At(s){return s.replace(nr,"-$1").toLowerCase().replace(et,"-ms-")}var vt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,It=!1;function pr(s){!It&&vt.test(s)&&(It=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(s)))}var $=Array.isArray;function _e(s){return $(s)}var Ke="<script>";function mt(s,c,h,y,D){var F=s===void 0?"":s,V=Ke,ie=[];return{bootstrapChunks:ie,startInlineScript:V,placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pt=0,Wt=1,Lt=2,$t=3,ir=4,or=5,fr=6,Ur=7;function vr(s,c){return{insertionMode:s,selectedValue:c}}function Kn(s,c,h){switch(c){case"select":return vr(Wt,h.value!=null?h.value:h.defaultValue);case"svg":return vr(Lt,null);case"math":return vr($t,null);case"foreignObject":return vr(Wt,null);case"table":return vr(ir,null);case"thead":case"tbody":case"tfoot":return vr(or,null);case"colgroup":return vr(Ur,null);case"tr":return vr(fr,null)}return s.insertionMode>=ir||s.insertionMode===Pt?vr(Wt,null):s}var Cn=null;function Dn(s){var c=s.nextSuspenseID++;return s.boundaryPrefix+c.toString(16)}function Yr(s,c,h){var y=s.idPrefix,D=":"+y+"R"+c;return h>0&&(D+="H"+h.toString(32)),D+":"}function Yn(s){return zt(s)}var En="<!-- -->";function Xn(s,c,h,y){return c===""?y:(y&&s.push(En),s.push(Yn(c)),!0)}function Jn(s,c,h,y){h&&y&&s.push(En)}var on=new Map;function On(s){var c=on.get(s);if(c!==void 0)return c;var h=zt(At(s));return on.set(s,h),h}var wn=' style="',hi=":",Si=";";function Ci(s,c,h){if(typeof h!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var y=!0;for(var D in h)if(q.call(h,D)){var F=h[D];if(!(F==null||typeof F=="boolean"||F==="")){var V=void 0,ie=void 0,Ae=D.indexOf("--")===0;Ae?(V=zt(D),O(F,D),ie=zt((""+F).trim())):(Qt(D,F),V=On(D),typeof F=="number"?F!==0&&!q.call(Xe,D)?ie=F+"px":ie=""+F:(O(F,D),ie=zt((""+F).trim()))),y?(y=!1,s.push(wn,V,hi,ie)):s.push(Si,V,hi,ie)}}y||s.push(un)}var kn=" ",An='="',un='"',Qn='=""';function sn(s,c,h,y){switch(h){case"style":{Ci(s,c,y);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(h.length>2&&(h[0]==="o"||h[0]==="O")&&(h[1]==="n"||h[1]==="N"))){var D=le(h);if(D!==null){switch(typeof y){case"function":case"symbol":return;case"boolean":if(!D.acceptsBooleans)return}var F=D.attributeName,V=F;switch(D.type){case X:y&&s.push(kn,V,Qn);return;case he:y===!0?s.push(kn,V,Qn):y===!1||s.push(kn,V,An,zt(y),un);return;case j:isNaN(y)||s.push(kn,V,An,zt(y),un);break;case re:!isNaN(y)&&y>=1&&s.push(kn,V,An,zt(y),un);break;default:D.sanitizeURL&&(I(y,F),y=""+y,pr(y)),s.push(kn,V,An,zt(y),un)}}else if(ue(h)){switch(typeof y){case"function":case"symbol":return;case"boolean":{var ie=h.toLowerCase().slice(0,5);if(ie!=="data-"&&ie!=="aria-")return}}s.push(kn,h,An,zt(y),un)}}}var pn=">",C="/>";function N(s,c,h){if(c!=null){if(h!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof c!="object"||!("__html"in c))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var y=c.__html;y!=null&&(H(y),s.push(""+y))}}var G=!1,ee=!1,ke=!1,Ce=!1,Be=!1,at=!1,Mt=!1;function qt(s,c){{var h=s[c];if(h!=null){var y=_e(h);s.multiple&&!y?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",c):!s.multiple&&y&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",c)}}}function jt(s,c,h){Ee("select",c),qt(c,"value"),qt(c,"defaultValue"),c.value!==void 0&&c.defaultValue!==void 0&&!ke&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ke=!0),s.push(Rn("select"));var y=null,D=null;for(var F in c)if(q.call(c,F)){var V=c[F];if(V==null)continue;switch(F){case"children":y=V;break;case"dangerouslySetInnerHTML":D=V;break;case"defaultValue":case"value":break;default:sn(s,h,F,V);break}}return s.push(pn),N(s,D,y),y}function xr(s){var c="";return r.Children.forEach(s,function(h){h!=null&&(c+=h,!Be&&typeof h!="string"&&typeof h!="number"&&(Be=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),c}var Zr=' selected=""';function vn(s,c,h,y){var D=y.selectedValue;s.push(Rn("option"));var F=null,V=null,ie=null,Ae=null;for(var Ye in c)if(q.call(c,Ye)){var lt=c[Ye];if(lt==null)continue;switch(Ye){case"children":F=lt;break;case"selected":ie=lt,Mt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mt=!0);break;case"dangerouslySetInnerHTML":Ae=lt;break;case"value":V=lt;default:sn(s,h,Ye,lt);break}}if(D!=null){var kt;if(V!==null?(I(V,"value"),kt=""+V):(Ae!==null&&(at||(at=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),kt=xr(F)),_e(D))for(var tr=0;tr<D.length;tr++){I(D[tr],"value");var Dr=""+D[tr];if(Dr===kt){s.push(Zr);break}}else I(D,"select.value"),""+D===kt&&s.push(Zr)}else ie&&s.push(Zr);return s.push(pn),N(s,Ae,F),F}function yn(s,c,h){Ee("input",c),c.checked!==void 0&&c.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),ee=!0),c.value!==void 0&&c.defaultValue!==void 0&&!G&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",c.type),G=!0),s.push(Rn("input"));var y=null,D=null,F=null,V=null;for(var ie in c)if(q.call(c,ie)){var Ae=c[ie];if(Ae==null)continue;switch(ie){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":V=Ae;break;case"defaultValue":D=Ae;break;case"checked":F=Ae;break;case"value":y=Ae;break;default:sn(s,h,ie,Ae);break}}return F!==null?sn(s,h,"checked",F):V!==null&&sn(s,h,"checked",V),y!==null?sn(s,h,"value",y):D!==null&&sn(s,h,"value",D),s.push(C),null}function li(s,c,h){Ee("textarea",c),c.value!==void 0&&c.defaultValue!==void 0&&!Ce&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ce=!0),s.push(Rn("textarea"));var y=null,D=null,F=null;for(var V in c)if(q.call(c,V)){var ie=c[V];if(ie==null)continue;switch(V){case"children":F=ie;break;case"value":y=ie;break;case"defaultValue":D=ie;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:sn(s,h,V,ie);break}}if(y===null&&D!==null&&(y=D),s.push(pn),F!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),y!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(_e(F)){if(F.length>1)throw new Error("<textarea> can only have at most one child.");H(F[0]),y=""+F[0]}H(F),y=""+F}return typeof y=="string"&&y[0]===`
87
87
  `&&s.push(ei),y!==null&&(I(y,"value"),s.push(Yn(""+y))),null}function Bn(s,c,h,y){s.push(Rn(h));for(var D in c)if(q.call(c,D)){var F=c[D];if(F==null)continue;switch(D){case"children":case"dangerouslySetInnerHTML":throw new Error(h+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:sn(s,y,D,F);break}}return s.push(C),null}function wi(s,c,h){s.push(Rn("menuitem"));for(var y in c)if(q.call(c,y)){var D=c[y];if(D==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:sn(s,h,y,D);break}}return s.push(pn),null}function Xr(s,c,h){s.push(Rn("title"));var y=null;for(var D in c)if(q.call(c,D)){var F=c[D];if(F==null)continue;switch(D){case"children":y=F;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:sn(s,h,D,F);break}}s.push(pn);{var V=Array.isArray(y)&&y.length<2?y[0]||null:y;Array.isArray(y)&&y.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):V!=null&&V.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):V!=null&&typeof V!="string"&&typeof V!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return y}function pi(s,c,h,y){s.push(Rn(h));var D=null,F=null;for(var V in c)if(q.call(c,V)){var ie=c[V];if(ie==null)continue;switch(V){case"children":D=ie;break;case"dangerouslySetInnerHTML":F=ie;break;default:sn(s,y,V,ie);break}}return s.push(pn),N(s,F,D),typeof D=="string"?(s.push(Yn(D)),null):D}function Hn(s,c,h,y){s.push(Rn(h));var D=null,F=null;for(var V in c)if(q.call(c,V)){var ie=c[V];if(ie==null)continue;switch(V){case"children":D=ie;break;case"dangerouslySetInnerHTML":F=ie;break;case"style":Ci(s,y,ie);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ue(V)&&typeof ie!="function"&&typeof ie!="symbol"&&s.push(kn,V,An,zt(ie),un);break}}return s.push(pn),N(s,F,D),D}var ei=`
88
88
  `;function bo(s,c,h,y){s.push(Rn(h));var D=null,F=null;for(var V in c)if(q.call(c,V)){var ie=c[V];if(ie==null)continue;switch(V){case"children":D=ie;break;case"dangerouslySetInnerHTML":F=ie;break;default:sn(s,y,V,ie);break}}if(s.push(pn),F!=null){if(D!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof F!="object"||!("__html"in F))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var Ae=F.__html;Ae!=null&&(typeof Ae=="string"&&Ae.length>0&&Ae[0]===`
89
89
  `?s.push(ei,Ae):(H(Ae),s.push(""+Ae)))}return typeof D=="string"&&D[0]===`
90
- `&&s.push(ei),D}var ro=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,no=new Map;function Rn(s){var c=no.get(s);if(c===void 0){if(!ro.test(s))throw new Error("Invalid tag: "+s);c="<"+s,no.set(s,c)}return c}var _o="<!DOCTYPE html>";function ti(s,c,h,y,D){switch(ot(c,h),_t(c,h),ze(c,h,null),!h.suppressContentEditableWarning&&h.contentEditable&&h.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),D.insertionMode!==Lt&&D.insertionMode!==$t&&c.indexOf("-")===-1&&typeof h.is!="string"&&c.toLowerCase()!==c&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),c){case"select":return jt(s,h,y);case"option":return vn(s,h,y,D);case"textarea":return li(s,h,y);case"input":return yn(s,h,y);case"menuitem":return wi(s,h,y);case"title":return Xr(s,h,y);case"listing":case"pre":return bo(s,h,c,y);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Bn(s,h,c,y);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 pi(s,h,c,y);case"html":return D.insertionMode===Pt&&s.push(_o),pi(s,h,c,y);default:return c.indexOf("-")===-1&&typeof h.is!="string"?pi(s,h,c,y):Hn(s,h,c,y)}}var ri="</",$i=">";function Or(s,c,h){switch(c){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.push(ri,c,$i)}}function wr(s,c){for(var h=c.bootstrapChunks,y=0;y<h.length-1;y++)g(s,h[y]);return y<h.length?m(s,h[y]):!0}var Mr='<template id="',L='"></template>';function Z(s,c,h){g(s,Mr),g(s,c.placeholderPrefix);var y=h.toString(16);return g(s,y),m(s,L)}var se="<!--$-->",He='<!--$?--><template id="',Yt='"></template>',Vt="<!--$!-->",gr="<!--/$-->",Sr="<template",dr='"',Ar=' data-dgst="',Jr=' data-msg="',In=' data-stck="',Vr="></template>";function Br(s,c){return m(s,se)}function Qr(s,c,h){if(g(s,He),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,h),m(s,Yt)}function ci(s,c,h,y,D){var F;return F=m(s,Vt),g(s,Sr),h&&(g(s,Ar),g(s,zt(h)),g(s,dr)),y&&(g(s,Jr),g(s,zt(y)),g(s,dr)),D&&(g(s,In),g(s,zt(D)),g(s,dr)),F=m(s,Vr),F}function gi(s,c){return m(s,gr)}function qn(s,c){return m(s,gr)}function xo(s,c){return m(s,gr)}var Ui='<div hidden id="',an='">',ps="</div>",zn='<svg aria-hidden="true" style="display:none" id="',fl='">',Ta="</svg>",Wi='<math aria-hidden="true" style="display:none" id="',So='">',$n="</math>",Kr='<table hidden id="',Ai='">',Ea="</table>",dl='<table hidden><tbody id="',$o='">',hl="</tbody></table>",pl='<table hidden><tr id="',Gs='">',gs="</tr></table>",ms='<table hidden><colgroup id="',Co='">',gl="</colgroup></table>";function Zs(s,c,h,y){switch(h.insertionMode){case Pt:case Wt:return g(s,Ui),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,an);case Lt:return g(s,zn),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,fl);case $t:return g(s,Wi),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,So);case ir:return g(s,Kr),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Ai);case or:return g(s,dl),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,$o);case fr:return g(s,pl),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Gs);case Ur:return g(s,ms),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Co);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function ka(s,c){switch(c.insertionMode){case Pt:case Wt:return m(s,ps);case Lt:return m(s,Ta);case $t:return m(s,$n);case ir:return m(s,Ea);case or:return m(s,hl);case fr:return m(s,gs);case Ur:return m(s,gl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var T="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",P='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',U='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',te=T+';$RS("',Re='$RS("',Te='","',Ve='")<\/script>';function gt(s,c,h){g(s,c.startInlineScript),c.sentCompleteSegmentFunction?g(s,Re):(c.sentCompleteSegmentFunction=!0,g(s,te)),g(s,c.segmentPrefix);var y=h.toString(16);return g(s,y),g(s,Te),g(s,c.placeholderPrefix),g(s,y),m(s,Ve)}var Ut=P+';$RC("',hr='$RC("',ar='","',Gr='")<\/script>';function ni(s,c,h,y){if(g(s,c.startInlineScript),c.sentCompleteBoundaryFunction?g(s,hr):(c.sentCompleteBoundaryFunction=!0,g(s,Ut)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var D=y.toString(16);return g(s,h),g(s,ar),g(s,c.segmentPrefix),g(s,D),m(s,Gr)}var Ti=U+';$RX("',Ei='$RX("',Ks='"',ml=")<\/script>",vs=",";function Ys(s,c,h,y,D,F){if(g(s,c.startInlineScript),c.sentClientRenderFunction?g(s,Ei):(c.sentClientRenderFunction=!0,g(s,Ti)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,h),g(s,Ks),(y||D||F)&&(g(s,vs),g(s,sc(y||""))),(D||F)&&(g(s,vs),g(s,sc(D||""))),F&&(g(s,vs),g(s,sc(F))),m(s,ml)}var of=/[<\u2028\u2029]/g;function sc(s){var c=JSON.stringify(s);return c.replace(of,function(h){switch(h){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ac(s,c){var h=mt(c);return{bootstrapChunks:h.bootstrapChunks,startInlineScript:h.startInlineScript,placeholderPrefix:h.placeholderPrefix,segmentPrefix:h.segmentPrefix,boundaryPrefix:h.boundaryPrefix,idPrefix:h.idPrefix,nextSuspenseID:h.nextSuspenseID,sentCompleteSegmentFunction:h.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:h.sentCompleteBoundaryFunction,sentClientRenderFunction:h.sentClientRenderFunction,generateStaticMarkup:s}}function su(){return{insertionMode:Wt,selectedValue:null}}function wo(s,c,h,y){return h.generateStaticMarkup?(s.push(zt(c)),!1):Xn(s,c,h,y)}function Ra(s,c,h,y){if(!c.generateStaticMarkup)return Jn(s,c,h,y)}function sf(s,c){return c.generateStaticMarkup?!0:Br(s)}function af(s,c,h,y,D){return c.generateStaticMarkup?!0:ci(s,c,h,y,D)}function lf(s,c){return c.generateStaticMarkup?!0:gi(s)}function Xs(s,c){return c.generateStaticMarkup?!0:xo(s)}var fn=Object.assign,au=Symbol.for("react.element"),lu=Symbol.for("react.portal"),vl=Symbol.for("react.fragment"),ki=Symbol.for("react.strict_mode"),cu=Symbol.for("react.profiler"),yl=Symbol.for("react.provider"),Ao=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),qe=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),Dt=Symbol.for("react.memo"),sr=Symbol.for("react.lazy"),Pr=Symbol.for("react.scope"),bn=Symbol.for("react.debug_trace_mode"),Wr=Symbol.for("react.legacy_hidden"),Js=Symbol.for("react.default_value"),uu=Symbol.iterator,Bi="@@iterator";function bl(s){if(s===null||typeof s!="object")return null;var c=uu&&s[uu]||s[Bi];return typeof c=="function"?c:null}function cf(s,c,h){var y=s.displayName;if(y)return y;var D=c.displayName||c.name||"";return D!==""?h+"("+D+")":h}function Uo(s){return s.displayName||"Context"}function en(s){if(s==null)return null;if(typeof s.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case vl:return"Fragment";case lu:return"Portal";case cu:return"Profiler";case ki:return"StrictMode";case qe:return"Suspense";case Oe:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Ao:var c=s;return Uo(c)+".Consumer";case yl:var h=s;return Uo(h._context)+".Provider";case ye:return cf(s,s.render,"ForwardRef");case Dt:var y=s.displayName||null;return y!==null?y:en(s.type)||"Memo";case sr:{var D=s,F=D._payload,V=D._init;try{return en(V(F))}catch{return null}}}return null}var Wo=0,zr,lc,ln,To,cc,uc,fc;function Qs(){}Qs.__reactDisabledLog=!0;function Eo(){{if(Wo===0){zr=console.log,lc=console.info,ln=console.warn,To=console.error,cc=console.group,uc=console.groupCollapsed,fc=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Qs,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Wo++}}function Ia(){{if(Wo--,Wo===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fn({},s,{value:zr}),info:fn({},s,{value:lc}),warn:fn({},s,{value:ln}),error:fn({},s,{value:To}),group:fn({},s,{value:cc}),groupCollapsed:fn({},s,{value:uc}),groupEnd:fn({},s,{value:fc})})}Wo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var La=t.ReactCurrentDispatcher,ys;function ea(s,c,h){{if(ys===void 0)try{throw Error()}catch(D){var y=D.stack.trim().match(/\n( *(at )?)/);ys=y&&y[1]||""}return`
90
+ `&&s.push(ei),D}var ro=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,no=new Map;function Rn(s){var c=no.get(s);if(c===void 0){if(!ro.test(s))throw new Error("Invalid tag: "+s);c="<"+s,no.set(s,c)}return c}var _o="<!DOCTYPE html>";function ti(s,c,h,y,D){switch(ot(c,h),_t(c,h),ze(c,h,null),!h.suppressContentEditableWarning&&h.contentEditable&&h.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),D.insertionMode!==Lt&&D.insertionMode!==$t&&c.indexOf("-")===-1&&typeof h.is!="string"&&c.toLowerCase()!==c&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),c){case"select":return jt(s,h,y);case"option":return vn(s,h,y,D);case"textarea":return li(s,h,y);case"input":return yn(s,h,y);case"menuitem":return wi(s,h,y);case"title":return Xr(s,h,y);case"listing":case"pre":return bo(s,h,c,y);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Bn(s,h,c,y);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 pi(s,h,c,y);case"html":return D.insertionMode===Pt&&s.push(_o),pi(s,h,c,y);default:return c.indexOf("-")===-1&&typeof h.is!="string"?pi(s,h,c,y):Hn(s,h,c,y)}}var ri="</",$i=">";function Or(s,c,h){switch(c){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:s.push(ri,c,$i)}}function wr(s,c){for(var h=c.bootstrapChunks,y=0;y<h.length-1;y++)g(s,h[y]);return y<h.length?m(s,h[y]):!0}var Mr='<template id="',L='"></template>';function Z(s,c,h){g(s,Mr),g(s,c.placeholderPrefix);var y=h.toString(16);return g(s,y),m(s,L)}var se="<!--$-->",He='<!--$?--><template id="',Yt='"></template>',Vt="<!--$!-->",gr="<!--/$-->",Sr="<template",dr='"',Ar=' data-dgst="',Jr=' data-msg="',In=' data-stck="',Vr="></template>";function Br(s,c){return m(s,se)}function Qr(s,c,h){if(g(s,He),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,h),m(s,Yt)}function ci(s,c,h,y,D){var F;return F=m(s,Vt),g(s,Sr),h&&(g(s,Ar),g(s,zt(h)),g(s,dr)),y&&(g(s,Jr),g(s,zt(y)),g(s,dr)),D&&(g(s,In),g(s,zt(D)),g(s,dr)),F=m(s,Vr),F}function gi(s,c){return m(s,gr)}function qn(s,c){return m(s,gr)}function xo(s,c){return m(s,gr)}var Ui='<div hidden id="',an='">',ps="</div>",zn='<svg aria-hidden="true" style="display:none" id="',fl='">',Ta="</svg>",Wi='<math aria-hidden="true" style="display:none" id="',So='">',$n="</math>",Kr='<table hidden id="',Ai='">',Ea="</table>",dl='<table hidden><tbody id="',$o='">',hl="</tbody></table>",pl='<table hidden><tr id="',Gs='">',gs="</tr></table>",ms='<table hidden><colgroup id="',Co='">',gl="</colgroup></table>";function Zs(s,c,h,y){switch(h.insertionMode){case Pt:case Wt:return g(s,Ui),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,an);case Lt:return g(s,zn),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,fl);case $t:return g(s,Wi),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,So);case ir:return g(s,Kr),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Ai);case or:return g(s,dl),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,$o);case fr:return g(s,pl),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Gs);case Ur:return g(s,ms),g(s,c.segmentPrefix),g(s,y.toString(16)),m(s,Co);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function ka(s,c){switch(c.insertionMode){case Pt:case Wt:return m(s,ps);case Lt:return m(s,Ta);case $t:return m(s,$n);case ir:return m(s,Ea);case or:return m(s,hl);case fr:return m(s,gs);case Ur:return m(s,gl);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var T="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",P='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',U='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',te=T+';$RS("',Re='$RS("',Te='","',Ge='")<\/script>';function gt(s,c,h){g(s,c.startInlineScript),c.sentCompleteSegmentFunction?g(s,Re):(c.sentCompleteSegmentFunction=!0,g(s,te)),g(s,c.segmentPrefix);var y=h.toString(16);return g(s,y),g(s,Te),g(s,c.placeholderPrefix),g(s,y),m(s,Ge)}var Ut=P+';$RC("',hr='$RC("',ar='","',Gr='")<\/script>';function ni(s,c,h,y){if(g(s,c.startInlineScript),c.sentCompleteBoundaryFunction?g(s,hr):(c.sentCompleteBoundaryFunction=!0,g(s,Ut)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var D=y.toString(16);return g(s,h),g(s,ar),g(s,c.segmentPrefix),g(s,D),m(s,Gr)}var Ti=U+';$RX("',Ei='$RX("',Ks='"',ml=")<\/script>",vs=",";function Ys(s,c,h,y,D,F){if(g(s,c.startInlineScript),c.sentClientRenderFunction?g(s,Ei):(c.sentClientRenderFunction=!0,g(s,Ti)),h===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(s,h),g(s,Ks),(y||D||F)&&(g(s,vs),g(s,sc(y||""))),(D||F)&&(g(s,vs),g(s,sc(D||""))),F&&(g(s,vs),g(s,sc(F))),m(s,ml)}var of=/[<\u2028\u2029]/g;function sc(s){var c=JSON.stringify(s);return c.replace(of,function(h){switch(h){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ac(s,c){var h=mt(c);return{bootstrapChunks:h.bootstrapChunks,startInlineScript:h.startInlineScript,placeholderPrefix:h.placeholderPrefix,segmentPrefix:h.segmentPrefix,boundaryPrefix:h.boundaryPrefix,idPrefix:h.idPrefix,nextSuspenseID:h.nextSuspenseID,sentCompleteSegmentFunction:h.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:h.sentCompleteBoundaryFunction,sentClientRenderFunction:h.sentClientRenderFunction,generateStaticMarkup:s}}function su(){return{insertionMode:Wt,selectedValue:null}}function wo(s,c,h,y){return h.generateStaticMarkup?(s.push(zt(c)),!1):Xn(s,c,h,y)}function Ra(s,c,h,y){if(!c.generateStaticMarkup)return Jn(s,c,h,y)}function sf(s,c){return c.generateStaticMarkup?!0:Br(s)}function af(s,c,h,y,D){return c.generateStaticMarkup?!0:ci(s,c,h,y,D)}function lf(s,c){return c.generateStaticMarkup?!0:gi(s)}function Xs(s,c){return c.generateStaticMarkup?!0:xo(s)}var fn=Object.assign,au=Symbol.for("react.element"),lu=Symbol.for("react.portal"),vl=Symbol.for("react.fragment"),ki=Symbol.for("react.strict_mode"),cu=Symbol.for("react.profiler"),yl=Symbol.for("react.provider"),Ao=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),qe=Symbol.for("react.suspense"),Oe=Symbol.for("react.suspense_list"),Dt=Symbol.for("react.memo"),sr=Symbol.for("react.lazy"),Pr=Symbol.for("react.scope"),bn=Symbol.for("react.debug_trace_mode"),Wr=Symbol.for("react.legacy_hidden"),Js=Symbol.for("react.default_value"),uu=Symbol.iterator,Bi="@@iterator";function bl(s){if(s===null||typeof s!="object")return null;var c=uu&&s[uu]||s[Bi];return typeof c=="function"?c:null}function cf(s,c,h){var y=s.displayName;if(y)return y;var D=c.displayName||c.name||"";return D!==""?h+"("+D+")":h}function Uo(s){return s.displayName||"Context"}function en(s){if(s==null)return null;if(typeof s.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case vl:return"Fragment";case lu:return"Portal";case cu:return"Profiler";case ki:return"StrictMode";case qe:return"Suspense";case Oe:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case Ao:var c=s;return Uo(c)+".Consumer";case yl:var h=s;return Uo(h._context)+".Provider";case ye:return cf(s,s.render,"ForwardRef");case Dt:var y=s.displayName||null;return y!==null?y:en(s.type)||"Memo";case sr:{var D=s,F=D._payload,V=D._init;try{return en(V(F))}catch{return null}}}return null}var Wo=0,zr,lc,ln,To,cc,uc,fc;function Qs(){}Qs.__reactDisabledLog=!0;function Eo(){{if(Wo===0){zr=console.log,lc=console.info,ln=console.warn,To=console.error,cc=console.group,uc=console.groupCollapsed,fc=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Qs,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Wo++}}function Ia(){{if(Wo--,Wo===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:fn({},s,{value:zr}),info:fn({},s,{value:lc}),warn:fn({},s,{value:ln}),error:fn({},s,{value:To}),group:fn({},s,{value:cc}),groupCollapsed:fn({},s,{value:uc}),groupEnd:fn({},s,{value:fc})})}Wo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var La=t.ReactCurrentDispatcher,ys;function ea(s,c,h){{if(ys===void 0)try{throw Error()}catch(D){var y=D.stack.trim().match(/\n( *(at )?)/);ys=y&&y[1]||""}return`
91
91
  `+ys+s}}var _l=!1,ko;{var xl=typeof WeakMap=="function"?WeakMap:Map;ko=new xl}function Vi(s,c){if(!s||_l)return"";{var h=ko.get(s);if(h!==void 0)return h}var y;_l=!0;var D=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=La.current,La.current=null,Eo();try{if(c){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(Wn){y=Wn}Reflect.construct(s,[],V)}else{try{V.call()}catch(Wn){y=Wn}s.call(V.prototype)}}else{try{throw Error()}catch(Wn){y=Wn}s()}}catch(Wn){if(Wn&&y&&typeof Wn.stack=="string"){for(var ie=Wn.stack.split(`
92
92
  `),Ae=y.stack.split(`
93
93
  `),Ye=ie.length-1,lt=Ae.length-1;Ye>=1&&lt>=0&&ie[Ye]!==Ae[lt];)lt--;for(;Ye>=1&&lt>=0;Ye--,lt--)if(ie[Ye]!==Ae[lt]){if(Ye!==1||lt!==1)do if(Ye--,lt--,lt<0||ie[Ye]!==Ae[lt]){var kt=`
@@ -122,11 +122,11 @@ Error generating stack: `+y.message+`
122
122
  *
123
123
  * This source code is licensed under the MIT license found in the
124
124
  * LICENSE file in the root directory of this source tree.
125
- */var Kv;function U4(){return Kv||(Kv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("warn",d,c)}}function i(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("error",d,c)}}function l(d,s,c){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(s+="%s",c=c.concat([y]));var D=c.map(function(F){return String(F)});D.unshift("Warning: "+s),Function.prototype.apply.call(console[d],console,D)}}function u(d){d()}var f=512,g=null,m=0;function R(d){g=new Uint8Array(f),m=0}function E(d,s){if(s.length!==0){if(s.length>f){m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=new Uint8Array(f),m=0),d.enqueue(s);return}var c=s,h=g.length-m;h<c.length&&(h===0?d.enqueue(g):(g.set(c.subarray(0,h),m),d.enqueue(g),c=c.subarray(h)),g=new Uint8Array(f),m=0),g.set(c,m),m+=c.length}}function _(d,s){return E(d,s),!0}function S(d){g&&m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=null,m=0)}function x(d){d.close()}var M=new TextEncoder;function w(d){return M.encode(d)}function b(d){return M.encode(d)}function I(d,s){typeof d.error=="function"?d.error(s):d.close()}function O(d){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&d[Symbol.toStringTag]||d.constructor.name||"Object";return c}}function H(d){try{return q(d),!1}catch{return!0}}function q(d){return""+d}function z(d,s){if(H(d))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function Y(d,s){if(H(d))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function fe(d){if(H(d))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(d)),q(d)}var X=Object.prototype.hasOwnProperty,he=0,j=1,re=2,Q=3,J=4,me=5,ce=6,be=":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",ue=be+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Se=new RegExp("^["+be+"]["+ue+"]*$"),le={},ae={};function ge(d){return X.call(ae,d)?!0:X.call(le,d)?!1:Se.test(d)?(ae[d]=!0,!0):(le[d]=!0,i("Invalid attribute name: `%s`",d),!1)}function Pe(d,s,c,h){if(c!==null&&c.type===he)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(c!==null)return!c.acceptsBooleans;var y=d.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function Qe(d){return Ie.hasOwnProperty(d)?Ie[d]:null}function pe(d,s,c,h,y,D,F){this.acceptsBooleans=s===re||s===Q||s===J,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=d,this.type=s,this.sanitizeURL=D,this.removeEmptyString=F}var Ie={},Xe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Xe.forEach(function(d){Ie[d]=new pe(d,he,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var s=d[0],c=d[1];Ie[s]=new pe(s,j,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){Ie[d]=new pe(d,re,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Ie[d]=new pe(d,re,!1,d,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"].forEach(function(d){Ie[d]=new pe(d,Q,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){Ie[d]=new pe(d,Q,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){Ie[d]=new pe(d,J,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){Ie[d]=new pe(d,ce,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){Ie[d]=new pe(d,me,!1,d.toLowerCase(),null,!1,!1)});var tt=/[\-\:]([a-z])/g,Ge=function(d){return d[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"].forEach(function(d){var s=d.replace(tt,Ge);Ie[s]=new pe(s,j,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var s=d.replace(tt,Ge);Ie[s]=new pe(s,j,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var s=d.replace(tt,Ge);Ie[s]=new pe(s,j,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){Ie[d]=new pe(d,j,!1,d.toLowerCase(),null,!1,!1)});var Me="xlinkHref";Ie[Me]=new pe("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){Ie[d]=new pe(d,j,!1,d.toLowerCase(),null,!0,!0)});var Ee={animationIterationCount:!0,aspectRatio:!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};function we(d,s){return d+s.charAt(0).toUpperCase()+s.substring(1)}var Ue=["Webkit","ms","Moz","O"];Object.keys(Ee).forEach(function(d){Ue.forEach(function(s){Ee[we(s,d)]=Ee[d]})});var ct={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ne(d,s){ct[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function bt(d,s){if(d.indexOf("-")===-1)return typeof s.is=="string";switch(d){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}}var Le={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ze={},ot=new RegExp("^(aria)-["+ue+"]*$"),Ct=new RegExp("^(aria)[A-Z]["+ue+"]*$");function _t(d,s){{if(X.call(Ze,s)&&Ze[s])return!0;if(Ct.test(s)){var c="aria-"+s.slice(4).toLowerCase(),h=Le.hasOwnProperty(c)?c:null;if(h==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),Ze[s]=!0,!0;if(s!==h)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,h),Ze[s]=!0,!0}if(ot.test(s)){var y=s.toLowerCase(),D=Le.hasOwnProperty(y)?y:null;if(D==null)return Ze[s]=!0,!1;if(s!==D)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,D),Ze[s]=!0,!0}}return!0}function wt(d,s){{var c=[];for(var h in s){var y=_t(d,h);y||c.push(h)}var D=c.map(function(F){return"`"+F+"`"}).join(", ");c.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",D,d):c.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",D,d)}}function xt(d,s){bt(d,s)||wt(d,s)}var it=!1;function je(d,s){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;s!=null&&s.value===null&&!it&&(it=!0,d==="select"&&s.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var yt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},st=function(){};{var Rt={},Bt=/^on./,ze=/^on[^A-Z]/,Tt=new RegExp("^(aria)-["+ue+"]*$"),Ht=new RegExp("^(aria)[A-Z]["+ue+"]*$");st=function(d,s,c,h){if(X.call(Rt,s)&&Rt[s])return!0;var y=s.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Rt[s]=!0,!0;if(h!=null){var D=h.registrationNameDependencies,F=h.possibleRegistrationNames;if(D.hasOwnProperty(s))return!0;var V=F.hasOwnProperty(y)?F[y]:null;if(V!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,V),Rt[s]=!0,!0;if(Bt.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),Rt[s]=!0,!0}else if(Bt.test(s))return ze.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),Rt[s]=!0,!0;if(Tt.test(s)||Ht.test(s))return!0;if(y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Rt[s]=!0,!0;if(y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Rt[s]=!0,!0;if(y==="is"&&c!==null&&c!==void 0&&typeof c!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),Rt[s]=!0,!0;if(typeof c=="number"&&isNaN(c))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),Rt[s]=!0,!0;var ie=Qe(s),Ae=ie!==null&&ie.type===he;if(yt.hasOwnProperty(y)){var Ye=yt[y];if(Ye!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,Ye),Rt[s]=!0,!0}else if(!Ae&&s!==y)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,y),Rt[s]=!0,!0;return typeof c=="boolean"&&Pe(s,c,ie)?(c?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,s,s,c,s):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,s,s,c,s,s,s),Rt[s]=!0,!0):Ae?!0:Pe(s,c,ie)?(Rt[s]=!0,!1):((c==="false"||c==="true")&&ie!==null&&ie.type===Q&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,c),Rt[s]=!0),!0)}}var _r=function(d,s,c){{var h=[];for(var y in s){var D=st(d,y,s[y],c);D||h.push(y)}var F=h.map(function(V){return"`"+V+"`"}).join(", ");h.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d):h.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d)}};function kr(d,s,c){bt(d,s)||_r(d,s,c)}var Cr=function(){};{var ve=/^(?:webkit|moz|o)[A-Z]/,ne=/^-ms-/,Je=/-(.)/g,pt=/;\s*$/,$e={},De={},St=!1,Et=!1,ut=function(d){return d.replace(Je,function(s,c){return c.toUpperCase()})},Nt=function(d){$e.hasOwnProperty(d)&&$e[d]||($e[d]=!0,i("Unsupported style property %s. Did you mean %s?",d,ut(d.replace(ne,"ms-"))))},Qt=function(d){$e.hasOwnProperty(d)&&$e[d]||($e[d]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},rr=function(d,s){De.hasOwnProperty(s)&&De[s]||(De[s]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,s.replace(pt,"")))},Ft=function(d,s){St||(St=!0,i("`NaN` is an invalid value for the `%s` css style property.",d))},zt=function(d,s){Et||(Et=!0,i("`Infinity` is an invalid value for the `%s` css style property.",d))};Cr=function(d,s){d.indexOf("-")>-1?Nt(d):ve.test(d)?Qt(d):pt.test(s)&&rr(d,s),typeof s=="number"&&(isNaN(s)?Ft(d,s):isFinite(s)||zt(d,s))}}var nr=Cr,et=/["'&<>]/;function At(d){fe(d);var s=""+d,c=et.exec(s);if(!c)return s;var h,y="",D,F=0;for(D=c.index;D<s.length;D++){switch(s.charCodeAt(D)){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&#x27;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;default:continue}F!==D&&(y+=s.substring(F,D)),F=D+1,y+=h}return F!==D?y+s.substring(F,D):y}function vt(d){return typeof d=="boolean"||typeof d=="number"?""+d:At(d)}var It=/([A-Z])/g,pr=/^ms-/;function $(d){return d.replace(It,"-$1").toLowerCase().replace(pr,"-ms-")}var _e=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Ke=!1;function mt(d){!Ke&&_e.test(d)&&(Ke=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(d)))}var Pt=Array.isArray;function Wt(d){return Pt(d)}var Lt=b("<script>"),$t=b("<\/script>"),ir=b('<script src="'),or=b('<script type="module" src="'),fr=b('" async=""><\/script>');function Ur(d){return fe(d),(""+d).replace(vr,Kn)}var vr=/(<\/|<)(s)(cript)/gi,Kn=function(d,s,c,h){return""+s+(c==="s"?"\\u0073":"\\u0053")+h};function Cn(d,s,c,h,y){var D=d===void 0?"":d,F=s===void 0?Lt:b('<script nonce="'+vt(s)+'">'),V=[];if(c!==void 0&&V.push(F,w(Ur(c)),$t),h!==void 0)for(var ie=0;ie<h.length;ie++)V.push(ir,w(vt(h[ie])),fr);if(y!==void 0)for(var Ae=0;Ae<y.length;Ae++)V.push(or,w(vt(y[Ae])),fr);return{bootstrapChunks:V,startInlineScript:F,placeholderPrefix:b(D+"P:"),segmentPrefix:b(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Dn=0,Yr=1,Yn=2,En=3,Xn=4,Jn=5,on=6,On=7;function wn(d,s){return{insertionMode:d,selectedValue:s}}function hi(d){var s=d==="http://www.w3.org/2000/svg"?Yn:d==="http://www.w3.org/1998/Math/MathML"?En:Dn;return wn(s,null)}function Si(d,s,c){switch(s){case"select":return wn(Yr,c.value!=null?c.value:c.defaultValue);case"svg":return wn(Yn,null);case"math":return wn(En,null);case"foreignObject":return wn(Yr,null);case"table":return wn(Xn,null);case"thead":case"tbody":case"tfoot":return wn(Jn,null);case"colgroup":return wn(On,null);case"tr":return wn(on,null)}return d.insertionMode>=Xn||d.insertionMode===Dn?wn(Yr,null):d}var Ci=null;function kn(d){var s=d.nextSuspenseID++;return b(d.boundaryPrefix+s.toString(16))}function An(d,s,c){var h=d.idPrefix,y=":"+h+"R"+s;return c>0&&(y+="H"+c.toString(32)),y+":"}function un(d){return vt(d)}var Qn=b("<!-- -->");function sn(d,s,c,h){return s===""?h:(h&&d.push(Qn),d.push(w(un(s))),!0)}function pn(d,s,c,h){c&&h&&d.push(Qn)}var C=new Map;function N(d){var s=C.get(d);if(s!==void 0)return s;var c=b(vt($(d)));return C.set(d,c),c}var G=b(' style="'),ee=b(":"),ke=b(";");function Ce(d,s,c){if(typeof c!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var h=!0;for(var y in c)if(X.call(c,y)){var D=c[y];if(!(D==null||typeof D=="boolean"||D==="")){var F=void 0,V=void 0,ie=y.indexOf("--")===0;ie?(F=w(vt(y)),Y(D,y),V=w(vt((""+D).trim()))):(nr(y,D),F=N(y),typeof D=="number"?D!==0&&!X.call(Ee,y)?V=w(D+"px"):V=w(""+D):(Y(D,y),V=w(vt((""+D).trim())))),h?(h=!1,d.push(G,F,ee,V)):d.push(ke,F,ee,V)}}h||d.push(Mt)}var Be=b(" "),at=b('="'),Mt=b('"'),qt=b('=""');function jt(d,s,c,h){switch(c){case"style":{Ce(d,s,h);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(c.length>2&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N"))){var y=Qe(c);if(y!==null){switch(typeof h){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}var D=y.attributeName,F=w(D);switch(y.type){case Q:h&&d.push(Be,F,qt);return;case J:h===!0?d.push(Be,F,qt):h===!1||d.push(Be,F,at,w(vt(h)),Mt);return;case me:isNaN(h)||d.push(Be,F,at,w(vt(h)),Mt);break;case ce:!isNaN(h)&&h>=1&&d.push(Be,F,at,w(vt(h)),Mt);break;default:y.sanitizeURL&&(z(h,D),h=""+h,mt(h)),d.push(Be,F,at,w(vt(h)),Mt)}}else if(ge(c)){switch(typeof h){case"function":case"symbol":return;case"boolean":{var V=c.toLowerCase().slice(0,5);if(V!=="data-"&&V!=="aria-")return}}d.push(Be,w(c),at,w(vt(h)),Mt)}}}var xr=b(">"),Zr=b("/>");function vn(d,s,c){if(s!=null){if(c!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var h=s.__html;h!=null&&(fe(h),d.push(w(""+h)))}}var yn=!1,li=!1,Bn=!1,wi=!1,Xr=!1,pi=!1,Hn=!1;function ei(d,s){{var c=d[s];if(c!=null){var h=Wt(c);d.multiple&&!h?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!d.multiple&&h&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function bo(d,s,c){Ne("select",s),ei(s,"value"),ei(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!Bn&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Bn=!0),d.push(Yt("select"));var h=null,y=null;for(var D in s)if(X.call(s,D)){var F=s[D];if(F==null)continue;switch(D){case"children":h=F;break;case"dangerouslySetInnerHTML":y=F;break;case"defaultValue":case"value":break;default:jt(d,c,D,F);break}}return d.push(xr),vn(d,y,h),h}function ro(d){var s="";return r.Children.forEach(d,function(c){c!=null&&(s+=c,!Xr&&typeof c!="string"&&typeof c!="number"&&(Xr=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}var no=b(' selected=""');function Rn(d,s,c,h){var y=h.selectedValue;d.push(Yt("option"));var D=null,F=null,V=null,ie=null;for(var Ae in s)if(X.call(s,Ae)){var Ye=s[Ae];if(Ye==null)continue;switch(Ae){case"children":D=Ye;break;case"selected":V=Ye,Hn||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Hn=!0);break;case"dangerouslySetInnerHTML":ie=Ye;break;case"value":F=Ye;default:jt(d,c,Ae,Ye);break}}if(y!=null){var lt;if(F!==null?(z(F,"value"),lt=""+F):(ie!==null&&(pi||(pi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),lt=ro(D)),Wt(y))for(var kt=0;kt<y.length;kt++){z(y[kt],"value");var tr=""+y[kt];if(tr===lt){d.push(no);break}}else z(y,"select.value"),""+y===lt&&d.push(no)}else V&&d.push(no);return d.push(xr),vn(d,ie,D),D}function _o(d,s,c){Ne("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!li&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),li=!0),s.value!==void 0&&s.defaultValue!==void 0&&!yn&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),yn=!0),d.push(Yt("input"));var h=null,y=null,D=null,F=null;for(var V in s)if(X.call(s,V)){var ie=s[V];if(ie==null)continue;switch(V){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":F=ie;break;case"defaultValue":y=ie;break;case"checked":D=ie;break;case"value":h=ie;break;default:jt(d,c,V,ie);break}}return D!==null?jt(d,c,"checked",D):F!==null&&jt(d,c,"checked",F),h!==null?jt(d,c,"value",h):y!==null&&jt(d,c,"value",y),d.push(Zr),null}function ti(d,s,c){Ne("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!wi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),wi=!0),d.push(Yt("textarea"));var h=null,y=null,D=null;for(var F in s)if(X.call(s,F)){var V=s[F];if(V==null)continue;switch(F){case"children":D=V;break;case"value":h=V;break;case"defaultValue":y=V;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:jt(d,c,F,V);break}}if(h===null&&y!==null&&(h=y),d.push(xr),D!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),h!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Wt(D)){if(D.length>1)throw new Error("<textarea> can only have at most one child.");fe(D[0]),h=""+D[0]}fe(D),h=""+D}return typeof h=="string"&&h[0]===`
125
+ */var Kv;function U4(){return Kv||(Kv=1,process.env.NODE_ENV!=="production"&&function(){var r=A,e="18.2.0",t=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function n(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("warn",d,c)}}function i(d){{for(var s=arguments.length,c=new Array(s>1?s-1:0),h=1;h<s;h++)c[h-1]=arguments[h];l("error",d,c)}}function l(d,s,c){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(s+="%s",c=c.concat([y]));var D=c.map(function(F){return String(F)});D.unshift("Warning: "+s),Function.prototype.apply.call(console[d],console,D)}}function u(d){d()}var f=512,g=null,m=0;function R(d){g=new Uint8Array(f),m=0}function E(d,s){if(s.length!==0){if(s.length>f){m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=new Uint8Array(f),m=0),d.enqueue(s);return}var c=s,h=g.length-m;h<c.length&&(h===0?d.enqueue(g):(g.set(c.subarray(0,h),m),d.enqueue(g),c=c.subarray(h)),g=new Uint8Array(f),m=0),g.set(c,m),m+=c.length}}function _(d,s){return E(d,s),!0}function S(d){g&&m>0&&(d.enqueue(new Uint8Array(g.buffer,0,m)),g=null,m=0)}function x(d){d.close()}var M=new TextEncoder;function w(d){return M.encode(d)}function b(d){return M.encode(d)}function I(d,s){typeof d.error=="function"?d.error(s):d.close()}function O(d){{var s=typeof Symbol=="function"&&Symbol.toStringTag,c=s&&d[Symbol.toStringTag]||d.constructor.name||"Object";return c}}function H(d){try{return q(d),!1}catch{return!0}}function q(d){return""+d}function z(d,s){if(H(d))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function Y(d,s){if(H(d))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",s,O(d)),q(d)}function fe(d){if(H(d))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",O(d)),q(d)}var X=Object.prototype.hasOwnProperty,he=0,j=1,re=2,Q=3,J=4,me=5,ce=6,be=":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",ue=be+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Se=new RegExp("^["+be+"]["+ue+"]*$"),le={},ae={};function ge(d){return X.call(ae,d)?!0:X.call(le,d)?!1:Se.test(d)?(ae[d]=!0,!0):(le[d]=!0,i("Invalid attribute name: `%s`",d),!1)}function Pe(d,s,c,h){if(c!==null&&c.type===he)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":{if(c!==null)return!c.acceptsBooleans;var y=d.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function Qe(d){return Ie.hasOwnProperty(d)?Ie[d]:null}function pe(d,s,c,h,y,D,F){this.acceptsBooleans=s===re||s===Q||s===J,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=c,this.propertyName=d,this.type=s,this.sanitizeURL=D,this.removeEmptyString=F}var Ie={},Xe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Xe.forEach(function(d){Ie[d]=new pe(d,he,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var s=d[0],c=d[1];Ie[s]=new pe(s,j,!1,c,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){Ie[d]=new pe(d,re,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){Ie[d]=new pe(d,re,!1,d,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"].forEach(function(d){Ie[d]=new pe(d,Q,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){Ie[d]=new pe(d,Q,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){Ie[d]=new pe(d,J,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){Ie[d]=new pe(d,ce,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){Ie[d]=new pe(d,me,!1,d.toLowerCase(),null,!1,!1)});var tt=/[\-\:]([a-z])/g,Ue=function(d){return d[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"].forEach(function(d){var s=d.replace(tt,Ue);Ie[s]=new pe(s,j,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var s=d.replace(tt,Ue);Ie[s]=new pe(s,j,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var s=d.replace(tt,Ue);Ie[s]=new pe(s,j,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){Ie[d]=new pe(d,j,!1,d.toLowerCase(),null,!1,!1)});var Me="xlinkHref";Ie[Me]=new pe("xlinkHref",j,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){Ie[d]=new pe(d,j,!1,d.toLowerCase(),null,!0,!0)});var Ee={animationIterationCount:!0,aspectRatio:!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};function we(d,s){return d+s.charAt(0).toUpperCase()+s.substring(1)}var We=["Webkit","ms","Moz","O"];Object.keys(Ee).forEach(function(d){We.forEach(function(s){Ee[we(s,d)]=Ee[d]})});var ct={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ne(d,s){ct[s.type]||s.onChange||s.onInput||s.readOnly||s.disabled||s.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),s.onChange||s.readOnly||s.disabled||s.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function bt(d,s){if(d.indexOf("-")===-1)return typeof s.is=="string";switch(d){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}}var Le={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Ze={},ot=new RegExp("^(aria)-["+ue+"]*$"),Ct=new RegExp("^(aria)[A-Z]["+ue+"]*$");function _t(d,s){{if(X.call(Ze,s)&&Ze[s])return!0;if(Ct.test(s)){var c="aria-"+s.slice(4).toLowerCase(),h=Le.hasOwnProperty(c)?c:null;if(h==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),Ze[s]=!0,!0;if(s!==h)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,h),Ze[s]=!0,!0}if(ot.test(s)){var y=s.toLowerCase(),D=Le.hasOwnProperty(y)?y:null;if(D==null)return Ze[s]=!0,!1;if(s!==D)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,D),Ze[s]=!0,!0}}return!0}function wt(d,s){{var c=[];for(var h in s){var y=_t(d,h);y||c.push(h)}var D=c.map(function(F){return"`"+F+"`"}).join(", ");c.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",D,d):c.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",D,d)}}function xt(d,s){bt(d,s)||wt(d,s)}var it=!1;function je(d,s){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;s!=null&&s.value===null&&!it&&(it=!0,d==="select"&&s.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var yt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},st=function(){};{var Rt={},Bt=/^on./,ze=/^on[^A-Z]/,Tt=new RegExp("^(aria)-["+ue+"]*$"),Ht=new RegExp("^(aria)[A-Z]["+ue+"]*$");st=function(d,s,c,h){if(X.call(Rt,s)&&Rt[s])return!0;var y=s.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Rt[s]=!0,!0;if(h!=null){var D=h.registrationNameDependencies,F=h.possibleRegistrationNames;if(D.hasOwnProperty(s))return!0;var V=F.hasOwnProperty(y)?F[y]:null;if(V!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",s,V),Rt[s]=!0,!0;if(Bt.test(s))return i("Unknown event handler property `%s`. It will be ignored.",s),Rt[s]=!0,!0}else if(Bt.test(s))return ze.test(s)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),Rt[s]=!0,!0;if(Tt.test(s)||Ht.test(s))return!0;if(y==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Rt[s]=!0,!0;if(y==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Rt[s]=!0,!0;if(y==="is"&&c!==null&&c!==void 0&&typeof c!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),Rt[s]=!0,!0;if(typeof c=="number"&&isNaN(c))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),Rt[s]=!0,!0;var ie=Qe(s),Ae=ie!==null&&ie.type===he;if(yt.hasOwnProperty(y)){var Ye=yt[y];if(Ye!==s)return i("Invalid DOM property `%s`. Did you mean `%s`?",s,Ye),Rt[s]=!0,!0}else if(!Ae&&s!==y)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,y),Rt[s]=!0,!0;return typeof c=="boolean"&&Pe(s,c,ie)?(c?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,s,s,c,s):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,s,s,c,s,s,s),Rt[s]=!0,!0):Ae?!0:Pe(s,c,ie)?(Rt[s]=!0,!1):((c==="false"||c==="true")&&ie!==null&&ie.type===Q&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,c),Rt[s]=!0),!0)}}var _r=function(d,s,c){{var h=[];for(var y in s){var D=st(d,y,s[y],c);D||h.push(y)}var F=h.map(function(V){return"`"+V+"`"}).join(", ");h.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d):h.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",F,d)}};function kr(d,s,c){bt(d,s)||_r(d,s,c)}var Cr=function(){};{var ve=/^(?:webkit|moz|o)[A-Z]/,ne=/^-ms-/,Je=/-(.)/g,pt=/;\s*$/,$e={},De={},St=!1,Et=!1,ut=function(d){return d.replace(Je,function(s,c){return c.toUpperCase()})},Nt=function(d){$e.hasOwnProperty(d)&&$e[d]||($e[d]=!0,i("Unsupported style property %s. Did you mean %s?",d,ut(d.replace(ne,"ms-"))))},Qt=function(d){$e.hasOwnProperty(d)&&$e[d]||($e[d]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},rr=function(d,s){De.hasOwnProperty(s)&&De[s]||(De[s]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,s.replace(pt,"")))},Ft=function(d,s){St||(St=!0,i("`NaN` is an invalid value for the `%s` css style property.",d))},zt=function(d,s){Et||(Et=!0,i("`Infinity` is an invalid value for the `%s` css style property.",d))};Cr=function(d,s){d.indexOf("-")>-1?Nt(d):ve.test(d)?Qt(d):pt.test(s)&&rr(d,s),typeof s=="number"&&(isNaN(s)?Ft(d,s):isFinite(s)||zt(d,s))}}var nr=Cr,et=/["'&<>]/;function At(d){fe(d);var s=""+d,c=et.exec(s);if(!c)return s;var h,y="",D,F=0;for(D=c.index;D<s.length;D++){switch(s.charCodeAt(D)){case 34:h="&quot;";break;case 38:h="&amp;";break;case 39:h="&#x27;";break;case 60:h="&lt;";break;case 62:h="&gt;";break;default:continue}F!==D&&(y+=s.substring(F,D)),F=D+1,y+=h}return F!==D?y+s.substring(F,D):y}function vt(d){return typeof d=="boolean"||typeof d=="number"?""+d:At(d)}var It=/([A-Z])/g,pr=/^ms-/;function $(d){return d.replace(It,"-$1").toLowerCase().replace(pr,"-ms-")}var _e=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Ke=!1;function mt(d){!Ke&&_e.test(d)&&(Ke=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(d)))}var Pt=Array.isArray;function Wt(d){return Pt(d)}var Lt=b("<script>"),$t=b("<\/script>"),ir=b('<script src="'),or=b('<script type="module" src="'),fr=b('" async=""><\/script>');function Ur(d){return fe(d),(""+d).replace(vr,Kn)}var vr=/(<\/|<)(s)(cript)/gi,Kn=function(d,s,c,h){return""+s+(c==="s"?"\\u0073":"\\u0053")+h};function Cn(d,s,c,h,y){var D=d===void 0?"":d,F=s===void 0?Lt:b('<script nonce="'+vt(s)+'">'),V=[];if(c!==void 0&&V.push(F,w(Ur(c)),$t),h!==void 0)for(var ie=0;ie<h.length;ie++)V.push(ir,w(vt(h[ie])),fr);if(y!==void 0)for(var Ae=0;Ae<y.length;Ae++)V.push(or,w(vt(y[Ae])),fr);return{bootstrapChunks:V,startInlineScript:F,placeholderPrefix:b(D+"P:"),segmentPrefix:b(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Dn=0,Yr=1,Yn=2,En=3,Xn=4,Jn=5,on=6,On=7;function wn(d,s){return{insertionMode:d,selectedValue:s}}function hi(d){var s=d==="http://www.w3.org/2000/svg"?Yn:d==="http://www.w3.org/1998/Math/MathML"?En:Dn;return wn(s,null)}function Si(d,s,c){switch(s){case"select":return wn(Yr,c.value!=null?c.value:c.defaultValue);case"svg":return wn(Yn,null);case"math":return wn(En,null);case"foreignObject":return wn(Yr,null);case"table":return wn(Xn,null);case"thead":case"tbody":case"tfoot":return wn(Jn,null);case"colgroup":return wn(On,null);case"tr":return wn(on,null)}return d.insertionMode>=Xn||d.insertionMode===Dn?wn(Yr,null):d}var Ci=null;function kn(d){var s=d.nextSuspenseID++;return b(d.boundaryPrefix+s.toString(16))}function An(d,s,c){var h=d.idPrefix,y=":"+h+"R"+s;return c>0&&(y+="H"+c.toString(32)),y+":"}function un(d){return vt(d)}var Qn=b("<!-- -->");function sn(d,s,c,h){return s===""?h:(h&&d.push(Qn),d.push(w(un(s))),!0)}function pn(d,s,c,h){c&&h&&d.push(Qn)}var C=new Map;function N(d){var s=C.get(d);if(s!==void 0)return s;var c=b(vt($(d)));return C.set(d,c),c}var G=b(' style="'),ee=b(":"),ke=b(";");function Ce(d,s,c){if(typeof c!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var h=!0;for(var y in c)if(X.call(c,y)){var D=c[y];if(!(D==null||typeof D=="boolean"||D==="")){var F=void 0,V=void 0,ie=y.indexOf("--")===0;ie?(F=w(vt(y)),Y(D,y),V=w(vt((""+D).trim()))):(nr(y,D),F=N(y),typeof D=="number"?D!==0&&!X.call(Ee,y)?V=w(D+"px"):V=w(""+D):(Y(D,y),V=w(vt((""+D).trim())))),h?(h=!1,d.push(G,F,ee,V)):d.push(ke,F,ee,V)}}h||d.push(Mt)}var Be=b(" "),at=b('="'),Mt=b('"'),qt=b('=""');function jt(d,s,c,h){switch(c){case"style":{Ce(d,s,h);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(c.length>2&&(c[0]==="o"||c[0]==="O")&&(c[1]==="n"||c[1]==="N"))){var y=Qe(c);if(y!==null){switch(typeof h){case"function":case"symbol":return;case"boolean":if(!y.acceptsBooleans)return}var D=y.attributeName,F=w(D);switch(y.type){case Q:h&&d.push(Be,F,qt);return;case J:h===!0?d.push(Be,F,qt):h===!1||d.push(Be,F,at,w(vt(h)),Mt);return;case me:isNaN(h)||d.push(Be,F,at,w(vt(h)),Mt);break;case ce:!isNaN(h)&&h>=1&&d.push(Be,F,at,w(vt(h)),Mt);break;default:y.sanitizeURL&&(z(h,D),h=""+h,mt(h)),d.push(Be,F,at,w(vt(h)),Mt)}}else if(ge(c)){switch(typeof h){case"function":case"symbol":return;case"boolean":{var V=c.toLowerCase().slice(0,5);if(V!=="data-"&&V!=="aria-")return}}d.push(Be,w(c),at,w(vt(h)),Mt)}}}var xr=b(">"),Zr=b("/>");function vn(d,s,c){if(s!=null){if(c!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof s!="object"||!("__html"in s))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var h=s.__html;h!=null&&(fe(h),d.push(w(""+h)))}}var yn=!1,li=!1,Bn=!1,wi=!1,Xr=!1,pi=!1,Hn=!1;function ei(d,s){{var c=d[s];if(c!=null){var h=Wt(c);d.multiple&&!h?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",s):!d.multiple&&h&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",s)}}}function bo(d,s,c){Ne("select",s),ei(s,"value"),ei(s,"defaultValue"),s.value!==void 0&&s.defaultValue!==void 0&&!Bn&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Bn=!0),d.push(Yt("select"));var h=null,y=null;for(var D in s)if(X.call(s,D)){var F=s[D];if(F==null)continue;switch(D){case"children":h=F;break;case"dangerouslySetInnerHTML":y=F;break;case"defaultValue":case"value":break;default:jt(d,c,D,F);break}}return d.push(xr),vn(d,y,h),h}function ro(d){var s="";return r.Children.forEach(d,function(c){c!=null&&(s+=c,!Xr&&typeof c!="string"&&typeof c!="number"&&(Xr=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),s}var no=b(' selected=""');function Rn(d,s,c,h){var y=h.selectedValue;d.push(Yt("option"));var D=null,F=null,V=null,ie=null;for(var Ae in s)if(X.call(s,Ae)){var Ye=s[Ae];if(Ye==null)continue;switch(Ae){case"children":D=Ye;break;case"selected":V=Ye,Hn||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Hn=!0);break;case"dangerouslySetInnerHTML":ie=Ye;break;case"value":F=Ye;default:jt(d,c,Ae,Ye);break}}if(y!=null){var lt;if(F!==null?(z(F,"value"),lt=""+F):(ie!==null&&(pi||(pi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),lt=ro(D)),Wt(y))for(var kt=0;kt<y.length;kt++){z(y[kt],"value");var tr=""+y[kt];if(tr===lt){d.push(no);break}}else z(y,"select.value"),""+y===lt&&d.push(no)}else V&&d.push(no);return d.push(xr),vn(d,ie,D),D}function _o(d,s,c){Ne("input",s),s.checked!==void 0&&s.defaultChecked!==void 0&&!li&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),li=!0),s.value!==void 0&&s.defaultValue!==void 0&&!yn&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",s.type),yn=!0),d.push(Yt("input"));var h=null,y=null,D=null,F=null;for(var V in s)if(X.call(s,V)){var ie=s[V];if(ie==null)continue;switch(V){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":F=ie;break;case"defaultValue":y=ie;break;case"checked":D=ie;break;case"value":h=ie;break;default:jt(d,c,V,ie);break}}return D!==null?jt(d,c,"checked",D):F!==null&&jt(d,c,"checked",F),h!==null?jt(d,c,"value",h):y!==null&&jt(d,c,"value",y),d.push(Zr),null}function ti(d,s,c){Ne("textarea",s),s.value!==void 0&&s.defaultValue!==void 0&&!wi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),wi=!0),d.push(Yt("textarea"));var h=null,y=null,D=null;for(var F in s)if(X.call(s,F)){var V=s[F];if(V==null)continue;switch(F){case"children":D=V;break;case"value":h=V;break;case"defaultValue":y=V;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:jt(d,c,F,V);break}}if(h===null&&y!==null&&(h=y),d.push(xr),D!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),h!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Wt(D)){if(D.length>1)throw new Error("<textarea> can only have at most one child.");fe(D[0]),h=""+D[0]}fe(D),h=""+D}return typeof h=="string"&&h[0]===`
126
126
  `&&d.push(L),h!==null&&(z(h,"value"),d.push(w(un(""+h)))),null}function ri(d,s,c,h){d.push(Yt(c));for(var y in s)if(X.call(s,y)){var D=s[y];if(D==null)continue;switch(y){case"children":case"dangerouslySetInnerHTML":throw new Error(c+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:jt(d,h,y,D);break}}return d.push(Zr),null}function $i(d,s,c){d.push(Yt("menuitem"));for(var h in s)if(X.call(s,h)){var y=s[h];if(y==null)continue;switch(h){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:jt(d,c,h,y);break}}return d.push(xr),null}function Or(d,s,c){d.push(Yt("title"));var h=null;for(var y in s)if(X.call(s,y)){var D=s[y];if(D==null)continue;switch(y){case"children":h=D;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:jt(d,c,y,D);break}}d.push(xr);{var F=Array.isArray(h)&&h.length<2?h[0]||null:h;Array.isArray(h)&&h.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):F!=null&&F.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):F!=null&&typeof F!="string"&&typeof F!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return h}function wr(d,s,c,h){d.push(Yt(c));var y=null,D=null;for(var F in s)if(X.call(s,F)){var V=s[F];if(V==null)continue;switch(F){case"children":y=V;break;case"dangerouslySetInnerHTML":D=V;break;default:jt(d,h,F,V);break}}return d.push(xr),vn(d,D,y),typeof y=="string"?(d.push(w(un(y))),null):y}function Mr(d,s,c,h){d.push(Yt(c));var y=null,D=null;for(var F in s)if(X.call(s,F)){var V=s[F];if(V==null)continue;switch(F){case"children":y=V;break;case"dangerouslySetInnerHTML":D=V;break;case"style":Ce(d,h,V);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ge(F)&&typeof V!="function"&&typeof V!="symbol"&&d.push(Be,w(F),at,w(vt(V)),Mt);break}}return d.push(xr),vn(d,D,y),y}var L=b(`
127
127
  `);function Z(d,s,c,h){d.push(Yt(c));var y=null,D=null;for(var F in s)if(X.call(s,F)){var V=s[F];if(V==null)continue;switch(F){case"children":y=V;break;case"dangerouslySetInnerHTML":D=V;break;default:jt(d,h,F,V);break}}if(d.push(xr),D!=null){if(y!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof D!="object"||!("__html"in D))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var ie=D.__html;ie!=null&&(typeof ie=="string"&&ie.length>0&&ie[0]===`
128
128
  `?d.push(L,w(ie)):(fe(ie),d.push(w(""+ie))))}return typeof y=="string"&&y[0]===`
129
- `&&d.push(L),y}var se=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,He=new Map;function Yt(d){var s=He.get(d);if(s===void 0){if(!se.test(d))throw new Error("Invalid tag: "+d);s=b("<"+d),He.set(d,s)}return s}var Vt=b("<!DOCTYPE html>");function gr(d,s,c,h,y){switch(xt(s,c),je(s,c),kr(s,c,null),!c.suppressContentEditableWarning&&c.contentEditable&&c.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),y.insertionMode!==Yn&&y.insertionMode!==En&&s.indexOf("-")===-1&&typeof c.is!="string"&&s.toLowerCase()!==s&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),s){case"select":return bo(d,c,h);case"option":return Rn(d,c,h,y);case"textarea":return ti(d,c,h);case"input":return _o(d,c,h);case"menuitem":return $i(d,c,h);case"title":return Or(d,c,h);case"listing":case"pre":return Z(d,c,s,h);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ri(d,c,s,h);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 wr(d,c,s,h);case"html":return y.insertionMode===Dn&&d.push(Vt),wr(d,c,s,h);default:return s.indexOf("-")===-1&&typeof c.is!="string"?wr(d,c,s,h):Mr(d,c,s,h)}}var Sr=b("</"),dr=b(">");function Ar(d,s,c){switch(s){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:d.push(Sr,w(s),dr)}}function Jr(d,s){for(var c=s.bootstrapChunks,h=0;h<c.length-1;h++)E(d,c[h]);return h<c.length?_(d,c[h]):!0}var In=b('<template id="'),Vr=b('"></template>');function Br(d,s,c){E(d,In),E(d,s.placeholderPrefix);var h=w(c.toString(16));return E(d,h),_(d,Vr)}var Qr=b("<!--$-->"),ci=b('<!--$?--><template id="'),gi=b('"></template>'),qn=b("<!--$!-->"),xo=b("<!--/$-->"),Ui=b("<template"),an=b('"'),ps=b(' data-dgst="'),zn=b(' data-msg="'),fl=b(' data-stck="'),Ta=b("></template>");function Wi(d,s){return _(d,Qr)}function So(d,s,c){if(E(d,ci),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return E(d,c),_(d,gi)}function $n(d,s,c,h,y){var D;return D=_(d,qn),E(d,Ui),c&&(E(d,ps),E(d,w(vt(c))),E(d,an)),h&&(E(d,zn),E(d,w(vt(h))),E(d,an)),y&&(E(d,fl),E(d,w(vt(y))),E(d,an)),D=_(d,Ta),D}function Kr(d,s){return _(d,xo)}function Ai(d,s){return _(d,xo)}function Ea(d,s){return _(d,xo)}var dl=b('<div hidden id="'),$o=b('">'),hl=b("</div>"),pl=b('<svg aria-hidden="true" style="display:none" id="'),Gs=b('">'),gs=b("</svg>"),ms=b('<math aria-hidden="true" style="display:none" id="'),Co=b('">'),gl=b("</math>"),Zs=b('<table hidden id="'),ka=b('">'),T=b("</table>"),P=b('<table hidden><tbody id="'),U=b('">'),te=b("</tbody></table>"),Re=b('<table hidden><tr id="'),Te=b('">'),Ve=b("</tr></table>"),gt=b('<table hidden><colgroup id="'),Ut=b('">'),hr=b("</colgroup></table>");function ar(d,s,c,h){switch(c.insertionMode){case Dn:case Yr:return E(d,dl),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,$o);case Yn:return E(d,pl),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Gs);case En:return E(d,ms),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Co);case Xn:return E(d,Zs),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,ka);case Jn:return E(d,P),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,U);case on:return E(d,Re),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Te);case On:return E(d,gt),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Ut);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Gr(d,s){switch(s.insertionMode){case Dn:case Yr:return _(d,hl);case Yn:return _(d,gs);case En:return _(d,gl);case Xn:return _(d,T);case Jn:return _(d,te);case on:return _(d,Ve);case On:return _(d,hr);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var ni="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Ti='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Ei='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Ks=b(ni+';$RS("'),ml=b('$RS("'),vs=b('","'),Ys=b('")<\/script>');function of(d,s,c){E(d,s.startInlineScript),s.sentCompleteSegmentFunction?E(d,ml):(s.sentCompleteSegmentFunction=!0,E(d,Ks)),E(d,s.segmentPrefix);var h=w(c.toString(16));return E(d,h),E(d,vs),E(d,s.placeholderPrefix),E(d,h),_(d,Ys)}var sc=b(Ti+';$RC("'),ac=b('$RC("'),su=b('","'),wo=b('")<\/script>');function Ra(d,s,c,h){if(E(d,s.startInlineScript),s.sentCompleteBoundaryFunction?E(d,ac):(s.sentCompleteBoundaryFunction=!0,E(d,sc)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var y=w(h.toString(16));return E(d,c),E(d,su),E(d,s.segmentPrefix),E(d,y),_(d,wo)}var sf=b(Ei+';$RX("'),af=b('$RX("'),lf=b('"'),Xs=b(")<\/script>"),fn=b(",");function au(d,s,c,h,y,D){if(E(d,s.startInlineScript),s.sentClientRenderFunction?E(d,af):(s.sentClientRenderFunction=!0,E(d,sf)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return E(d,c),E(d,lf),(h||y||D)&&(E(d,fn),E(d,w(vl(h||"")))),(y||D)&&(E(d,fn),E(d,w(vl(y||"")))),D&&(E(d,fn),E(d,w(vl(D)))),_(d,Xs)}var lu=/[<\u2028\u2029]/g;function vl(d){var s=JSON.stringify(d);return s.replace(lu,function(c){switch(c){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ki=Object.assign,cu=Symbol.for("react.element"),yl=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),qe=Symbol.for("react.profiler"),Oe=Symbol.for("react.provider"),Dt=Symbol.for("react.context"),sr=Symbol.for("react.forward_ref"),Pr=Symbol.for("react.suspense"),bn=Symbol.for("react.suspense_list"),Wr=Symbol.for("react.memo"),Js=Symbol.for("react.lazy"),uu=Symbol.for("react.scope"),Bi=Symbol.for("react.debug_trace_mode"),bl=Symbol.for("react.legacy_hidden"),cf=Symbol.for("react.default_value"),Uo=Symbol.iterator,en="@@iterator";function Wo(d){if(d===null||typeof d!="object")return null;var s=Uo&&d[Uo]||d[en];return typeof s=="function"?s:null}function zr(d,s,c){var h=d.displayName;if(h)return h;var y=s.displayName||s.name||"";return y!==""?c+"("+y+")":c}function lc(d){return d.displayName||"Context"}function ln(d){if(d==null)return null;if(typeof d.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case Ao:return"Fragment";case yl:return"Portal";case qe:return"Profiler";case ye:return"StrictMode";case Pr:return"Suspense";case bn:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case Dt:var s=d;return lc(s)+".Consumer";case Oe:var c=d;return lc(c._context)+".Provider";case sr:return zr(d,d.render,"ForwardRef");case Wr:var h=d.displayName||null;return h!==null?h:ln(d.type)||"Memo";case Js:{var y=d,D=y._payload,F=y._init;try{return ln(F(D))}catch{return null}}}return null}var To=0,cc,uc,fc,Qs,Eo,Ia,La;function ys(){}ys.__reactDisabledLog=!0;function ea(){{if(To===0){cc=console.log,uc=console.info,fc=console.warn,Qs=console.error,Eo=console.group,Ia=console.groupCollapsed,La=console.groupEnd;var d={configurable:!0,enumerable:!0,value:ys,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}To++}}function _l(){{if(To--,To===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ki({},d,{value:cc}),info:ki({},d,{value:uc}),warn:ki({},d,{value:fc}),error:ki({},d,{value:Qs}),group:ki({},d,{value:Eo}),groupCollapsed:ki({},d,{value:Ia}),groupEnd:ki({},d,{value:La})})}To<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ko=t.ReactCurrentDispatcher,xl;function Vi(d,s,c){{if(xl===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);xl=h&&h[1]||""}return`
129
+ `&&d.push(L),y}var se=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,He=new Map;function Yt(d){var s=He.get(d);if(s===void 0){if(!se.test(d))throw new Error("Invalid tag: "+d);s=b("<"+d),He.set(d,s)}return s}var Vt=b("<!DOCTYPE html>");function gr(d,s,c,h,y){switch(xt(s,c),je(s,c),kr(s,c,null),!c.suppressContentEditableWarning&&c.contentEditable&&c.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),y.insertionMode!==Yn&&y.insertionMode!==En&&s.indexOf("-")===-1&&typeof c.is!="string"&&s.toLowerCase()!==s&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",s),s){case"select":return bo(d,c,h);case"option":return Rn(d,c,h,y);case"textarea":return ti(d,c,h);case"input":return _o(d,c,h);case"menuitem":return $i(d,c,h);case"title":return Or(d,c,h);case"listing":case"pre":return Z(d,c,s,h);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return ri(d,c,s,h);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 wr(d,c,s,h);case"html":return y.insertionMode===Dn&&d.push(Vt),wr(d,c,s,h);default:return s.indexOf("-")===-1&&typeof c.is!="string"?wr(d,c,s,h):Mr(d,c,s,h)}}var Sr=b("</"),dr=b(">");function Ar(d,s,c){switch(s){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:d.push(Sr,w(s),dr)}}function Jr(d,s){for(var c=s.bootstrapChunks,h=0;h<c.length-1;h++)E(d,c[h]);return h<c.length?_(d,c[h]):!0}var In=b('<template id="'),Vr=b('"></template>');function Br(d,s,c){E(d,In),E(d,s.placeholderPrefix);var h=w(c.toString(16));return E(d,h),_(d,Vr)}var Qr=b("<!--$-->"),ci=b('<!--$?--><template id="'),gi=b('"></template>'),qn=b("<!--$!-->"),xo=b("<!--/$-->"),Ui=b("<template"),an=b('"'),ps=b(' data-dgst="'),zn=b(' data-msg="'),fl=b(' data-stck="'),Ta=b("></template>");function Wi(d,s){return _(d,Qr)}function So(d,s,c){if(E(d,ci),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return E(d,c),_(d,gi)}function $n(d,s,c,h,y){var D;return D=_(d,qn),E(d,Ui),c&&(E(d,ps),E(d,w(vt(c))),E(d,an)),h&&(E(d,zn),E(d,w(vt(h))),E(d,an)),y&&(E(d,fl),E(d,w(vt(y))),E(d,an)),D=_(d,Ta),D}function Kr(d,s){return _(d,xo)}function Ai(d,s){return _(d,xo)}function Ea(d,s){return _(d,xo)}var dl=b('<div hidden id="'),$o=b('">'),hl=b("</div>"),pl=b('<svg aria-hidden="true" style="display:none" id="'),Gs=b('">'),gs=b("</svg>"),ms=b('<math aria-hidden="true" style="display:none" id="'),Co=b('">'),gl=b("</math>"),Zs=b('<table hidden id="'),ka=b('">'),T=b("</table>"),P=b('<table hidden><tbody id="'),U=b('">'),te=b("</tbody></table>"),Re=b('<table hidden><tr id="'),Te=b('">'),Ge=b("</tr></table>"),gt=b('<table hidden><colgroup id="'),Ut=b('">'),hr=b("</colgroup></table>");function ar(d,s,c,h){switch(c.insertionMode){case Dn:case Yr:return E(d,dl),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,$o);case Yn:return E(d,pl),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Gs);case En:return E(d,ms),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Co);case Xn:return E(d,Zs),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,ka);case Jn:return E(d,P),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,U);case on:return E(d,Re),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Te);case On:return E(d,gt),E(d,s.segmentPrefix),E(d,w(h.toString(16))),_(d,Ut);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Gr(d,s){switch(s.insertionMode){case Dn:case Yr:return _(d,hl);case Yn:return _(d,gs);case En:return _(d,gl);case Xn:return _(d,T);case Jn:return _(d,te);case on:return _(d,Ge);case On:return _(d,hr);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var ni="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",Ti='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Ei='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Ks=b(ni+';$RS("'),ml=b('$RS("'),vs=b('","'),Ys=b('")<\/script>');function of(d,s,c){E(d,s.startInlineScript),s.sentCompleteSegmentFunction?E(d,ml):(s.sentCompleteSegmentFunction=!0,E(d,Ks)),E(d,s.segmentPrefix);var h=w(c.toString(16));return E(d,h),E(d,vs),E(d,s.placeholderPrefix),E(d,h),_(d,Ys)}var sc=b(Ti+';$RC("'),ac=b('$RC("'),su=b('","'),wo=b('")<\/script>');function Ra(d,s,c,h){if(E(d,s.startInlineScript),s.sentCompleteBoundaryFunction?E(d,ac):(s.sentCompleteBoundaryFunction=!0,E(d,sc)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var y=w(h.toString(16));return E(d,c),E(d,su),E(d,s.segmentPrefix),E(d,y),_(d,wo)}var sf=b(Ei+';$RX("'),af=b('$RX("'),lf=b('"'),Xs=b(")<\/script>"),fn=b(",");function au(d,s,c,h,y,D){if(E(d,s.startInlineScript),s.sentClientRenderFunction?E(d,af):(s.sentClientRenderFunction=!0,E(d,sf)),c===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return E(d,c),E(d,lf),(h||y||D)&&(E(d,fn),E(d,w(vl(h||"")))),(y||D)&&(E(d,fn),E(d,w(vl(y||"")))),D&&(E(d,fn),E(d,w(vl(D)))),_(d,Xs)}var lu=/[<\u2028\u2029]/g;function vl(d){var s=JSON.stringify(d);return s.replace(lu,function(c){switch(c){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var ki=Object.assign,cu=Symbol.for("react.element"),yl=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),ye=Symbol.for("react.strict_mode"),qe=Symbol.for("react.profiler"),Oe=Symbol.for("react.provider"),Dt=Symbol.for("react.context"),sr=Symbol.for("react.forward_ref"),Pr=Symbol.for("react.suspense"),bn=Symbol.for("react.suspense_list"),Wr=Symbol.for("react.memo"),Js=Symbol.for("react.lazy"),uu=Symbol.for("react.scope"),Bi=Symbol.for("react.debug_trace_mode"),bl=Symbol.for("react.legacy_hidden"),cf=Symbol.for("react.default_value"),Uo=Symbol.iterator,en="@@iterator";function Wo(d){if(d===null||typeof d!="object")return null;var s=Uo&&d[Uo]||d[en];return typeof s=="function"?s:null}function zr(d,s,c){var h=d.displayName;if(h)return h;var y=s.displayName||s.name||"";return y!==""?c+"("+y+")":c}function lc(d){return d.displayName||"Context"}function ln(d){if(d==null)return null;if(typeof d.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case Ao:return"Fragment";case yl:return"Portal";case qe:return"Profiler";case ye:return"StrictMode";case Pr:return"Suspense";case bn:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case Dt:var s=d;return lc(s)+".Consumer";case Oe:var c=d;return lc(c._context)+".Provider";case sr:return zr(d,d.render,"ForwardRef");case Wr:var h=d.displayName||null;return h!==null?h:ln(d.type)||"Memo";case Js:{var y=d,D=y._payload,F=y._init;try{return ln(F(D))}catch{return null}}}return null}var To=0,cc,uc,fc,Qs,Eo,Ia,La;function ys(){}ys.__reactDisabledLog=!0;function ea(){{if(To===0){cc=console.log,uc=console.info,fc=console.warn,Qs=console.error,Eo=console.group,Ia=console.groupCollapsed,La=console.groupEnd;var d={configurable:!0,enumerable:!0,value:ys,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}To++}}function _l(){{if(To--,To===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ki({},d,{value:cc}),info:ki({},d,{value:uc}),warn:ki({},d,{value:fc}),error:ki({},d,{value:Qs}),group:ki({},d,{value:Eo}),groupCollapsed:ki({},d,{value:Ia}),groupEnd:ki({},d,{value:La})})}To<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ko=t.ReactCurrentDispatcher,xl;function Vi(d,s,c){{if(xl===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);xl=h&&h[1]||""}return`
130
130
  `+xl+d}}var Ro=!1,Vo;{var uf=typeof WeakMap=="function"?WeakMap:Map;Vo=new uf}function Ma(d,s){if(!d||Ro)return"";{var c=Vo.get(d);if(c!==void 0)return c}var h;Ro=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var D;D=ko.current,ko.current=null,ea();try{if(s){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Dr){h=Dr}Reflect.construct(d,[],F)}else{try{F.call()}catch(Dr){h=Dr}d.call(F.prototype)}}else{try{throw Error()}catch(Dr){h=Dr}d()}}catch(Dr){if(Dr&&h&&typeof Dr.stack=="string"){for(var V=Dr.stack.split(`
131
131
  `),ie=h.stack.split(`
132
132
  `),Ae=V.length-1,Ye=ie.length-1;Ae>=1&&Ye>=0&&V[Ae]!==ie[Ye];)Ye--;for(;Ae>=1&&Ye>=0;Ae--,Ye--)if(V[Ae]!==ie[Ye]){if(Ae!==1||Ye!==1)do if(Ae--,Ye--,Ye<0||V[Ae]!==ie[Ye]){var lt=`
@@ -153,13 +153,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
153
153
  Previous: %s
154
154
  Incoming: %s`,Gi,"["+d.join(", ")+"]","["+s.join(", ")+"]");for(var c=0;c<s.length&&c<d.length;c++)if(!Rr(d[c],s[c]))return!1;return!0}function bc(){if(lo>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Li(){return Nr===null?Ss===null?(Jo=!1,Ss=Nr=bc()):(Jo=!0,Nr=Ss):Nr.next===null?(Jo=!1,Nr=Nr.next=bc()):(Jo=!0,Nr=Nr.next),Nr}function _c(d,s){Ri=s,aa=d,fi=!1,mi=0}function ws(d,s,c,h){for(;ja;)ja=!1,mi=0,lo+=1,Nr=null,c=d(s,h);return xc(),c}function di(){var d=mi!==0;return d}function xc(){fi=!1,Ri=null,aa=null,ja=!1,Ss=null,lo=0,Ii=null,Nr=null}function Sc(d){return fi&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),sa(d)}function Cc(d){return Gi="useContext",Cs(),sa(d)}function As(d,s){return typeof s=="function"?s(d):s}function Qo(d){return Gi="useState",wc(As,d)}function wc(d,s,c){if(d!==As&&(Gi="useReducer"),Ri=Cs(),Nr=Li(),Jo){var h=Nr.queue,y=h.dispatch;if(Ii!==null){var D=Ii.get(h);if(D!==void 0){Ii.delete(h);var F=Nr.memoizedState,V=D;do{var ie=V.action;fi=!0,F=d(F,ie),fi=!1,V=V.next}while(V!==null);return Nr.memoizedState=F,[F,y]}}return[Nr.memoizedState,y]}else{fi=!0;var Ae;d===As?Ae=typeof s=="function"?s():s:Ae=c!==void 0?c(s):s,fi=!1,Nr.memoizedState=Ae;var Ye=Nr.queue={last:null,dispatch:null},lt=Ye.dispatch=bu.bind(null,Ri,Ye);return[Nr.memoizedState,lt]}}function yu(d,s){Ri=Cs(),Nr=Li();var c=s===void 0?null:s;if(Nr!==null){var h=Nr.memoizedState;if(h!==null&&c!==null){var y=h[1];if(vu(c,y))return h[0]}}fi=!0;var D=d();return fi=!1,Nr.memoizedState=[D,c],D}function kl(d){Ri=Cs(),Nr=Li();var s=Nr.memoizedState;if(s===null){var c={current:d};return Object.seal(c),Nr.memoizedState=c,c}else return s}function bf(d,s){Gi="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function bu(d,s,c){if(lo>=yc)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(d===Ri){ja=!0;var h={action:c,next:null};Ii===null&&(Ii=new Map);var y=Ii.get(s);if(y===void 0)Ii.set(s,h);else{for(var D=y;D.next!==null;)D=D.next;D.next=h}}}function Un(d,s){return yu(function(){return d},s)}function Ac(d,s,c){return Cs(),s(d._source)}function _u(d,s,c){if(c===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return c()}function Mi(d){return Cs(),d}function Rl(){throw new Error("startTransition cannot be called during server rendering.")}function la(){return Cs(),[!1,Rl]}function es(){var d=aa,s=Do(d.treeContext),c=Ts;if(c===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var h=mi++;return An(c,s,h)}function Ba(){}var Pn={readContext:Sc,useContext:Cc,useMemo:yu,useReducer:wc,useRef:kl,useState:Qo,useInsertionEffect:Ba,useLayoutEffect:bf,useCallback:Un,useImperativeHandle:Ba,useEffect:Ba,useDebugValue:Ba,useDeferredValue:Mi,useTransition:la,useId:es,useMutableSource:Ac,useSyncExternalStore:_u},Ts=null;function Il(d){Ts=d}function ca(d){try{var s="",c=d;do{switch(c.tag){case 0:s+=Vi(c.type,null,null);break;case 1:s+=ta(c.type,null,null);break;case 2:s+=fu(c.type,null,null);break}c=c.parent}while(c);return s}catch(h){return`
155
155
  Error generating stack: `+h.message+`
156
- `+h.stack}}var Ll=t.ReactCurrentDispatcher,ua=t.ReactDebugCurrentFrame,Ml=0,co=1,Dl=2,Es=3,xu=4,Ha=0,fa=1,da=2,Tc=12800;function Su(d){return console.error(d),null}function ks(){}function Ol(d,s,c,h,y,D,F,V,ie){var Ae=[],Ye=new Set,lt={destination:null,responseState:s,progressiveChunkSize:h===void 0?Tc:h,status:Ha,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ye,pingedTasks:Ae,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:y===void 0?Su:y,onAllReady:D===void 0?ks:D,onShellReady:F===void 0?ks:F,onShellError:V===void 0?ks:V,onFatalError:ie===void 0?ks:ie},kt=qa(lt,0,null,c,!1,!1);kt.parentFlushed=!0;var tr=Po(lt,d,null,kt,Ye,Ln,Cl,gf);return Ae.push(tr),lt}function Oo(d,s){var c=d.pingedTasks;c.push(s),c.length===1&&u(function(){return Fc(d)})}function Pl(d,s){return{id:Ci,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function Po(d,s,c,h,y,D,F,V){d.allPendingTasks++,c===null?d.pendingRootTasks++:c.pendingTasks++;var ie={node:s,ping:function(){return Oo(d,ie)},blockedBoundary:c,blockedSegment:h,abortSet:y,legacyContext:D,context:F,treeContext:V};return ie.componentStack=null,y.add(ie),ie}function qa(d,s,c,h,y,D){return{status:Ml,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:h,boundary:c,lastPushedText:y,textEmbedded:D}}var Zi=null;function Ki(){return Zi===null||Zi.componentStack===null?"":ca(Zi.componentStack)}function uo(d,s){d.componentStack={tag:0,parent:d.componentStack,type:s}}function za(d,s){d.componentStack={tag:1,parent:d.componentStack,type:s}}function ts(d,s){d.componentStack={tag:2,parent:d.componentStack,type:s}}function Yi(d){d.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var ha=null;function Nl(d,s){{var c;typeof s=="string"?c=s:s&&typeof s.message=="string"?c=s.message:c=String(s);var h=ha||Ki();ha=null,d.errorMessage=c,d.errorComponentStack=h}}function $a(d,s){var c=d.onError(s);if(c!=null&&typeof c!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof c+'" instead');return c}function pa(d,s){var c=d.onShellError;c(s);var h=d.onFatalError;h(s),d.destination!==null?(d.status=da,I(d.destination,s)):(d.status=fa,d.fatalError=s)}function Cu(d,s,c){uo(s,"Suspense");var h=s.blockedBoundary,y=s.blockedSegment,D=c.fallback,F=c.children,V=new Set,ie=Pl(d,V),Ae=y.chunks.length,Ye=qa(d,Ae,ie,y.formatContext,!1,!1);y.children.push(Ye),y.lastPushedText=!1;var lt=qa(d,0,null,y.formatContext,!1,!1);lt.parentFlushed=!0,s.blockedBoundary=ie,s.blockedSegment=lt;try{if(rs(d,s,F),pn(lt.chunks,d.responseState,lt.lastPushedText,lt.textEmbedded),lt.status=co,ns(ie,lt),ie.pendingTasks===0){Yi(s);return}}catch(tr){lt.status=xu,ie.forceClientRender=!0,ie.errorDigest=$a(d,tr),Nl(ie,tr)}finally{s.blockedBoundary=h,s.blockedSegment=y}var kt=Po(d,D,h,Ye,V,s.legacyContext,s.context,s.treeContext);kt.componentStack=s.componentStack,d.pingedTasks.push(kt),Yi(s)}function Ec(d,s,c,h){uo(s,c);var y=s.blockedSegment,D=gr(y.chunks,c,h,d.responseState,y.formatContext);y.lastPushedText=!1;var F=y.formatContext;y.formatContext=Si(F,c,h),rs(d,s,D),y.formatContext=F,Ar(y.chunks,c),y.lastPushedText=!1,Yi(s)}function kc(d){return d.prototype&&d.prototype.isReactComponent}function Rs(d,s,c,h,y){var D={};_c(s,D);var F=c(h,y);return ws(c,h,F,y)}function Rc(d,s,c,h,y){var D=c.render();c.props!==y&&(Lc||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ln(h)||"a component"),Lc=!0);{var F=h.childContextTypes;if(F!=null){var V=s.legacyContext,ie=dc(c,h,V,F);s.legacyContext=ie,oi(d,s,D),s.legacyContext=V;return}}oi(d,s,D)}function Fl(d,s,c,h){ts(s,c);var y=Go(c,s.legacyContext),D=ao(c,h,y);Fa(D,c,h,y),Rc(d,s,D,c,h),Yi(s)}var mr={},Ua={},Ic={},Is={},Lc=!1,wu=!1,Mc=!1,Di=!1;function _f(d,s,c,h){var y;if(y=Go(c,s.legacyContext),za(s,c),c.prototype&&typeof c.prototype.render=="function"){var D=ln(c)||"Unknown";mr[D]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",D,D),mr[D]=!0)}var F=Rs(d,s,c,h,y),V=di();if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var ie=ln(c)||"Unknown";Ua[ie]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ie,ie,ie),Ua[ie]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var Ae=ln(c)||"Unknown";Ua[Ae]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ae,Ae,Ae),Ua[Ae]=!0)}Fa(F,c,h,y),Rc(d,s,F,c,h)}else if(jl(c),V){var Ye=s.treeContext,lt=1,kt=0;s.treeContext=mc(Ye,lt,kt);try{oi(d,s,F)}finally{s.treeContext=Ye}}else oi(d,s,F);Yi(s)}function jl(d){{if(d&&d.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),typeof d.getDerivedStateFromProps=="function"){var s=ln(d)||"Unknown";Is[s]||(i("%s: Function components do not support getDerivedStateFromProps.",s),Is[s]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var c=ln(d)||"Unknown";Ic[c]||(i("%s: Function components do not support contextType.",c),Ic[c]=!0)}}}function Bl(d,s){if(d&&d.defaultProps){var c=ki({},s),h=d.defaultProps;for(var y in h)c[y]===void 0&&(c[y]=h[y]);return c}return s}function Au(d,s,c,h,y){za(s,c.render);var D=Rs(d,s,c.render,h,y),F=di();if(F){var V=s.treeContext,ie=1,Ae=0;s.treeContext=mc(V,ie,Ae);try{oi(d,s,D)}finally{s.treeContext=V}}else oi(d,s,D);Yi(s)}function Hl(d,s,c,h,y){var D=c.type,F=Bl(D,h);Wa(d,s,D,F,y)}function Oi(d,s,c,h){c._context===void 0?c!==c.Consumer&&(Di||(Di=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var y=h.children;typeof y!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var D=sa(c),F=y(D);oi(d,s,F)}function Tn(d,s,c,h){var y=c._context,D=h.value,F=h.children,V;V=s.context,s.context=hc(y,D),oi(d,s,F),s.context=ff(y),V!==s.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Dc(d,s,c,h,y){uo(s,"Lazy");var D=c._payload,F=c._init,V=F(D),ie=Bl(V,h);Wa(d,s,V,ie,y),Yi(s)}function Wa(d,s,c,h,y){if(typeof c=="function")if(kc(c)){Fl(d,s,c,h);return}else{_f(d,s,c,h);return}if(typeof c=="string"){Ec(d,s,c,h);return}switch(c){case bl:case Bi:case ye:case qe:case Ao:{oi(d,s,h.children);return}case bn:{uo(s,"SuspenseList"),oi(d,s,h.children),Yi(s);return}case uu:throw new Error("ReactDOMServer does not yet support scope components.");case Pr:{Cu(d,s,h);return}}if(typeof c=="object"&&c!==null)switch(c.$$typeof){case sr:{Au(d,s,c,h,y);return}case Wr:{Hl(d,s,c,h,y);return}case Oe:{Tn(d,s,c,h);return}case Dt:{Oi(d,s,c,h);return}case Js:{Dc(d,s,c,h);return}}var D="";throw(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(c==null?c:typeof c)+"."+D))}function ql(d,s){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(wu||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wu=!0),d.entries===s&&(Mc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mc=!0)}function oi(d,s,c){try{return Oc(d,s,c)}catch(h){throw typeof h=="object"&&h!==null&&typeof h.then=="function"||(ha=ha!==null?ha:Ki()),h}}function Oc(d,s,c){if(s.node=c,typeof c=="object"&&c!==null){switch(c.$$typeof){case cu:{var h=c,y=h.type,D=h.props,F=h.ref;Wa(d,s,y,D,F);return}case yl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Js:{var V=c,ie=V._payload,Ae=V._init,Ye;try{Ye=Ae(ie)}catch(po){throw typeof po=="object"&&po!==null&&typeof po.then=="function"&&uo(s,"Lazy"),po}oi(d,s,Ye);return}}if(Wt(c)){Pc(d,s,c);return}var lt=Wo(c);if(lt){ql(c,lt);var kt=lt.call(c);if(kt){var tr=kt.next();if(!tr.done){var Dr=[];do Dr.push(tr.value),tr=kt.next();while(!tr.done);Pc(d,s,Dr);return}return}}var Wn=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+(Wn==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":Wn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof c=="string"){var is=s.blockedSegment;is.lastPushedText=sn(s.blockedSegment.chunks,c,d.responseState,is.lastPushedText);return}if(typeof c=="number"){var ho=s.blockedSegment;ho.lastPushedText=sn(s.blockedSegment.chunks,""+c,d.responseState,ho.lastPushedText);return}typeof c=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Pc(d,s,c){for(var h=c.length,y=0;y<h;y++){var D=s.treeContext;s.treeContext=mc(D,h,y);try{rs(d,s,c[y])}finally{s.treeContext=D}}}function zl(d,s,c){var h=s.blockedSegment,y=h.chunks.length,D=qa(d,y,null,h.formatContext,h.lastPushedText,!0);h.children.push(D),h.lastPushedText=!1;var F=Po(d,s.node,s.blockedBoundary,D,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(F.componentStack=s.componentStack.parent);var V=F.ping;c.then(V,V)}function rs(d,s,c){var h=s.blockedSegment.formatContext,y=s.legacyContext,D=s.context,F=null;F=s.componentStack;try{return oi(d,s,c)}catch(V){if(xc(),typeof V=="object"&&V!==null&&typeof V.then=="function"){zl(d,s,V),s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=D,Yo(D),s.componentStack=F;return}else throw s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=D,Yo(D),s.componentStack=F,V}}function No(d,s,c,h){var y=$a(d,h);if(s===null?pa(d,h):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=y,Nl(s,h),s.parentFlushed&&d.clientRenderedBoundaries.push(s))),d.allPendingTasks--,d.allPendingTasks===0){var D=d.onAllReady;D()}}function xf(d){var s=this,c=d.blockedBoundary,h=d.blockedSegment;h.status=Es,ga(s,c,h)}function fo(d,s,c){var h=d.blockedBoundary,y=d.blockedSegment;if(y.status=Es,h===null)s.allPendingTasks--,s.status!==da&&(s.status=da,s.destination!==null&&x(s.destination));else{if(h.pendingTasks--,!h.forceClientRender){h.forceClientRender=!0;var D=c===void 0?new Error("The render was aborted by the server without a reason."):c;h.errorDigest=s.onError(D);{var F="The server did not finish this Suspense boundary: ";D&&typeof D.message=="string"?D=F+D.message:D=F+String(D);var V=Zi;Zi=d;try{Nl(h,D)}finally{Zi=V}}h.parentFlushed&&s.clientRenderedBoundaries.push(h)}if(h.fallbackAbortableTasks.forEach(function(Ae){return fo(Ae,s,c)}),h.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var ie=s.onAllReady;ie()}}}function ns(d,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null){var c=s.children[0];c.id=s.id,c.parentFlushed=!0,c.status===co&&ns(d,c)}else{var h=d.completedSegments;h.push(s)}}function ga(d,s,c){if(s===null){if(c.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=c}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=ks;var h=d.onShellReady;h()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)c.parentFlushed&&c.status===co&&ns(s,c),s.parentFlushed&&d.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(xf,d),s.fallbackAbortableTasks.clear();else if(c.parentFlushed&&c.status===co){ns(s,c);var y=s.completedSegments;y.length===1&&s.parentFlushed&&d.partialBoundaries.push(s)}}if(d.allPendingTasks--,d.allPendingTasks===0){var D=d.onAllReady;D()}}function Nc(d,s){var c=s.blockedSegment;if(c.status===Ml){Yo(s.context);var h=null;h=Zi,Zi=s;try{oi(d,s,s.node),pn(c.chunks,d.responseState,c.lastPushedText,c.textEmbedded),s.abortSet.delete(s),c.status=co,ga(d,s.blockedBoundary,c)}catch(D){if(xc(),typeof D=="object"&&D!==null&&typeof D.then=="function"){var y=s.ping;D.then(y,y)}else s.abortSet.delete(s),c.status=xu,No(d,s.blockedBoundary,c,D)}finally{Zi=h}}}function Fc(d){if(d.status!==da){var s=hu(),c=Ll.current;Ll.current=Pn;var h;h=ua.getCurrentStack,ua.getCurrentStack=Ki;var y=Ts;Il(d.responseState);try{var D=d.pingedTasks,F;for(F=0;F<D.length;F++){var V=D[F];Nc(d,V)}D.splice(0,F),d.destination!==null&&si(d,d.destination)}catch(ie){$a(d,ie),pa(d,ie)}finally{Il(y),Ll.current=c,ua.getCurrentStack=h,c===Pn&&Yo(s)}}}function Va(d,s,c){switch(c.parentFlushed=!0,c.status){case Ml:{var h=c.id=d.nextSegmentId++;return c.lastPushedText=!1,c.textEmbedded=!1,Br(s,d.responseState,h)}case co:{c.status=Dl;for(var y=!0,D=c.chunks,F=0,V=c.children,ie=0;ie<V.length;ie++){for(var Ae=V[ie];F<Ae.index;F++)E(s,D[F]);y=$l(d,s,Ae)}for(;F<D.length-1;F++)E(s,D[F]);return F<D.length&&(y=_(s,D[F])),y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function $l(d,s,c){var h=c.boundary;if(h===null)return Va(d,s,c);if(h.parentFlushed=!0,h.forceClientRender)return $n(s,d.responseState,h.errorDigest,h.errorMessage,h.errorComponentStack),Va(d,s,c),Ea(s,d.responseState);if(h.pendingTasks>0){h.rootSegmentID=d.nextSegmentId++,h.completedSegments.length>0&&d.partialBoundaries.push(h);var y=h.id=kn(d.responseState);return So(s,d.responseState,y),Va(d,s,c),Ai(s,d.responseState)}else{if(h.byteSize>d.progressiveChunkSize)return h.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(h),So(s,d.responseState,h.id),Va(d,s,c),Ai(s,d.responseState);Wi(s,d.responseState);var D=h.completedSegments;if(D.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var F=D[0];return $l(d,s,F),Kr(s,d.responseState)}}function jc(d,s,c){return au(s,d.responseState,c.id,c.errorDigest,c.errorMessage,c.errorComponentStack)}function Ga(d,s,c){return ar(s,d.responseState,c.formatContext,c.id),$l(d,s,c),Gr(s,c.formatContext)}function Tu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var D=h[y];Bc(d,s,c,D)}return h.length=0,Ra(s,d.responseState,c.id,c.rootSegmentID)}function Eu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var D=h[y];if(!Bc(d,s,c,D))return y++,h.splice(0,y),!1}return h.splice(0,y),!0}function Bc(d,s,c,h){if(h.status===Dl)return!0;var y=h.id;if(y===-1){var D=h.id=c.rootSegmentID;if(D===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ga(d,s,h)}else return Ga(d,s,h),of(s,d.responseState,y)}function si(d,s){R();try{var c=d.completedRootSegment;c!==null&&d.pendingRootTasks===0&&($l(d,s,c),d.completedRootSegment=null,Jr(s,d.responseState));var h=d.clientRenderedBoundaries,y;for(y=0;y<h.length;y++){var D=h[y];jc(d,s,D)}h.splice(0,y);var F=d.completedBoundaries;for(y=0;y<F.length;y++){var V=F[y];Tu(d,s,V)}F.splice(0,y),S(s),R(s);var ie=d.partialBoundaries;for(y=0;y<ie.length;y++){var Ae=ie[y];if(!Eu(d,s,Ae)){d.destination=null,y++,ie.splice(0,y);return}}ie.splice(0,y);var Ye=d.completedBoundaries;for(y=0;y<Ye.length;y++){var lt=Ye[y];Tu(d,s,lt)}Ye.splice(0,y)}finally{S(s),d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),x(s))}}function Xi(d){u(function(){return Fc(d)})}function Sf(d,s){if(d.status===fa){d.status=da,I(s,d.fatalError);return}if(d.status!==da&&d.destination===null){d.destination=s;try{si(d,s)}catch(c){$a(d,c),pa(d,c)}}}function ku(d,s){try{var c=d.abortableTasks;c.forEach(function(h){return fo(h,d,s)}),c.clear(),d.destination!==null&&si(d,d.destination)}catch(h){$a(d,h),pa(d,h)}}function Ul(d,s){return new Promise(function(c,h){var y,D,F=new Promise(function(kt,tr){D=kt,y=tr});function V(){var kt=new ReadableStream({type:"bytes",pull:function(tr){Sf(Ae,tr)},cancel:function(tr){ku(Ae)}},{highWaterMark:0});kt.allReady=F,c(kt)}function ie(kt){F.catch(function(){}),h(kt)}var Ae=Ol(d,Cn(s?s.identifierPrefix:void 0,s?s.nonce:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),hi(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,D,V,ie,y);if(s&&s.signal){var Ye=s.signal,lt=function(){ku(Ae,Ye.reason),Ye.removeEventListener("abort",lt)};Ye.addEventListener("abort",lt)}Xi(Ae)})}Ad.renderToReadableStream=Ul,Ad.version=e}()),Ad}var Yv;function W4(){if(Yv)return Vl;Yv=1;var r,e;return process.env.NODE_ENV==="production"?(r=q4(),e=z4()):(r=$4(),e=U4()),Vl.version=r.version,Vl.renderToString=r.renderToString,Vl.renderToStaticMarkup=r.renderToStaticMarkup,Vl.renderToNodeStream=r.renderToNodeStream,Vl.renderToStaticNodeStream=r.renderToStaticNodeStream,Vl.renderToReadableStream=e.renderToReadableStream,Vl}var Y_=W4();const Ns=al(Y_);function Nf(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Zc={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var i,l,u,f,g,m;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const R=this._canvas.getContext("2d");if(R){R.font=e;const E=R.measureText(r).width;return this._charWidthMap.set(t,E),E}}catch{}let n;return r===" "?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((g=e.match(/(\d+)px/))==null?void 0:g[1])||"14")*.25:n=parseInt(((m=e.match(/(\d+)px/))==null?void 0:m[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(A.isValidElement(r))try{const t=Y_.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var l;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,i=this._cache.get(n);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const u=this._canvas.getContext("2d");if(u){u.font=t;const f=u.measureText(r),g=Math.ceil(f.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(R=>this._cache.delete(R)),this._cache.set(n,g),g}}catch{}try{const u=document.createElement("span");u.style.font=t,u.style.position="absolute",u.style.visibility="hidden",u.style.whiteSpace="nowrap",u.textContent=r,document.body.appendChild(u);const f=Math.ceil(u.getBoundingClientRect().width);return document.body.removeChild(u),this._cache.set(n,f),f}catch{}try{let u=0;for(let g=0;g<r.length;g++)u+=this.measureCharWidth(r[g],t);u*=.95;const f=Math.ceil(u);return this._cache.set(n,f),f}catch{}try{const u=parseInt(((l=t.match(/(\d+)px/))==null?void 0:l[1])||"14");let f=0;for(let m=0;m<r.length;m++){const R=r[m];R===" "?f+=.33:/^[A-Z]$/.test(R)?f+=.67:/^[a-z]$/.test(R)?f+=.5:/^\d$/.test(R)?f+=.6:/^[.,;:!?]$/.test(R)?f+=.25:f+=.67}const g=Math.ceil(f*u);return this._cache.set(n,g),g}catch{const f=r.length*10;return this._cache.set(n,f),f}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:i="",optionRenderer:l,type:u="Primary",isMulti:f=!1}){if(!r.current)return 200;try{let g=0;if(e&&e.length>0){const S=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(M,w)=>e[Math.floor(w*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],x=Array.from(new Set(S.filter(Boolean)));for(const M of x){if(!M)continue;const w=this.measureRenderedOptionWidth(M,l);g=Math.max(g,w)}}let m=0;if(!f&&t)m=this.measureRenderedOptionWidth(t,l);else if(f&&n&&n.length){if(n.length===1)m=this.measureRenderedOptionWidth(n[0],l);else if(m=this.measureTextWidth(`${n.length} selected`),n.length>0){let S=0;for(const x of n){const M=this.measureRenderedOptionWidth(x,l);S=Math.max(S,M)}m=Math.max(m,S)}}let R=0;i&&(R=this.measureReactNodeWidth(i));const _=Math.max(g,m,R,50);if(r.current){const S=window.getComputedStyle(r.current),x=parseFloat(S.paddingLeft||"0")+parseFloat(S.paddingRight||"0"),M=parseFloat(S.borderLeftWidth||"0")+parseFloat(S.borderRightWidth||"0"),w=u==="Primary"?30:20,b=f?24:0,I=Math.ceil(_*.05)+10;return Math.ceil(_+x+M+w+b+I)}return _+60}catch{return 200}}};var yi=(r=>(r.N="North",r.S="South",r.E="East",r.W="West",r))(yi||{}),ef=(r=>(r.N="North",r.NW="NorthWest",r.NE="NorthEast",r.S="South",r.SW="SouthWest",r.SE="SouthEast",r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(ef||{});function fm(r,e,t,n){if(!r.current||!e.current)return;const i=r.current.getBoundingClientRect(),l=e.current.getBoundingClientRect();let u={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":u=l?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-l.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":u={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":u={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":u=l?{top:i.bottom,left:i.left+i.width/2-l.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":u={top:i.bottom,left:i.left};break;case"SouthEast":u={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":u=l?{top:i.top+i.height/2-l.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":u={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":u={top:i.top,left:i.right};break;case"West":u=l?{top:i.top+i.height/2-l.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":u={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":u={top:i.top,right:window.innerWidth-i.left};break;default:u={top:i.top,left:i.left}}n&&(n.x&&u.left&&(u.left+=n.x),n.y&&u.top&&(u.top+=n.y)),u=J_(u,l),e.current.style.top=u.top+"px",e.current.style.left=u.left+"px",e.current.style.bottom=u.bottom+"px",e.current.style.right=u.right+"px"}function X_(r,e,t,n){if(!r)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const l=r.getBoundingClientRect(),u=i.getBoundingClientRect();let f={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":f=u?{bottom:window.innerHeight-l.top,left:l.left+l.width/2-u.width/2}:{bottom:window.innerHeight-l.top,left:l.left};break;case"NorthWest":f={bottom:window.innerHeight-l.top,left:l.left};break;case"NorthEast":f={bottom:window.innerHeight-l.top,right:window.innerWidth-l.left-l.width};break;case"South":f=u?{top:l.bottom,left:l.left+l.width/2-u.width/2}:{top:l.bottom,left:l.left};break;case"SouthWest":f={top:l.bottom,left:l.left};break;case"SouthEast":f={top:l.bottom,right:window.innerWidth-l.left-l.width};break;case"East":f=u?{top:l.top+l.height/2-u.height/2,left:l.right}:{top:l.top,left:l.right};break;case"EastNorth":f={bottom:window.innerHeight-l.top-l.height,left:l.right};break;case"EastSouth":f={top:l.top,left:l.right};break;case"West":f=u?{top:l.top+l.height/2-u.height/2,right:window.innerWidth-l.left}:{top:l.top,right:window.innerWidth-l.left};break;case"WestNorth":f={bottom:window.innerHeight-l.top-l.height,right:window.innerWidth-l.left};break;case"WestSouth":f={top:l.top,right:window.innerWidth-l.left};break;default:f={top:l.top,left:l.left}}return n&&(n.x&&f.left&&(f.left+=n.x),n.y&&f.top&&(f.top+=n.y)),f=J_(f,u),i.style.top=f.top+"px",i.style.left=f.left+"px",i.style.bottom=f.bottom+"px",i.style.right=f.right+"px",f}function J_(r,e,t=10){return r.left&&r.left<t&&(r.left=t),r.right&&r.right<t&&(r.right=t),r.top&&r.top<t&&(r.top=t),r.bottom&&r.bottom<t&&(r.bottom=t),r.left&&e&&r.left+e.width>window.innerWidth-t&&(r.left=window.innerWidth-e.width-t),r.right&&e&&r.right+e.width>window.innerWidth-t&&(r.right=window.innerWidth-e.width-t),r.top&&e&&r.top+e.height>window.innerHeight-t&&(r.top=window.innerHeight-e.height-t),r.bottom&&e&&r.bottom+e.height>window.innerHeight-t&&(r.bottom=window.innerHeight-e.height-t),r}function Gc(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const V4="_Tooltip_3l8se_1",G4="_Arrow_3l8se_17",Xv={Tooltip:V4,Arrow:G4},Q_=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:i=10,direction:l=yi.S}=r,[u,f]=A.useState(!1),g=A.useRef(null),m=A.useRef(null),R=A.useRef(),E=A.useCallback(()=>{f(!0),R.current&&(clearTimeout(R.current),R.current=void 0);const M=setTimeout(()=>Jv(t,g,m,i,l),n);R.current=M},[t,n,i,l]),_=A.useCallback(()=>f(!1),[]);A.useEffect(()=>{const M=t.current;if(M)return M.addEventListener("mouseenter",E),M.addEventListener("mouseleave",_),()=>{M.removeEventListener("mouseenter",E),M.removeEventListener("mouseleave",_)}},[t,_,E]);const S=A.useCallback(()=>{Jv(t,g,m,i,l)},[t,i,l]);A.useEffect(()=>{if(!t.current||!g.current||!u)return;const M=t.current.parentElement;let w=M;for(;w;)w.addEventListener("scroll",S),w=w.parentElement;return()=>{let b=M;for(;b;)b.removeEventListener("scroll",S),b=b.parentElement}},[t,S,u]),A.useEffect(()=>{S()},[e,S]);const x=A.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!u||x?null:Hs.createPortal(v.jsxs("div",{className:Fe.clsx(Xv.Tooltip,"NoSelect"),ref:g,children:[e,v.jsx("div",{ref:m,className:Xv.Arrow})]}),document.body)},Td="5px solid var(--ATooltip_background-color)";function Jv(r,e,t,n,i=yi.S){if(!r.current||!e.current||!t.current)return;const l=Z4(r.current,e.current,n,i);if(!l)return;const{left:u,top:f,arrowDir:g,arrow:m}=l;e.current.style.left=`${u}px`,e.current.style.top=`${f}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",g===yi.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderBottom=Td):g===yi.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderTop=Td):g===yi.W?(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=Td):g===yi.E&&(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=Td)}const Gl=5;function Z4(r,e,t,n){const i=r.getBoundingClientRect(),l=e.getBoundingClientRect();function u(){if(window.innerHeight-i.bottom>l.height+t){const R=i.bottom+t,E=i.left+(i.width-l.width)/2,_=Nf(E,Gl,window.innerWidth-Gl-l.width),S=yi.N;return{left:_,top:R,arrowDir:S,arrow:{left:E-_}}}}function f(){if(i.top>l.height+t){const R=i.top-l.height-t,E=i.left+(i.width-l.width)/2,_=Nf(E,Gl,window.innerWidth-Gl-l.width),S=yi.S;return{left:_,top:R,arrowDir:S,arrow:{left:E-_}}}}function g(){if(window.innerWidth-i.right>l.width+t){const R=i.right+t,E=i.top+(i.height-l.height)/2,_=Nf(E,Gl,window.innerHeight-Gl-l.height),S=yi.W;return{left:R,top:_,arrowDir:S,arrow:{top:E-_}}}}function m(){if(i.left>l.width+t){const R=i.left-l.width-t,E=i.top+(i.height-l.height)/2,_=Nf(E,Gl,window.innerHeight-Gl-l.height),S=yi.E;return{left:R,top:_,arrowDir:S,arrow:{top:E-_}}}}if(n===yi.E)return g()||m()||u()||f();if(n===yi.S)return u()||f()||g()||m();if(n===yi.W)return m()||g()||u()||f();if(n===yi.N)return f()||u()||g()||m()}const K4="_ABase_xbi52_1",Y4="_UseDimming_xbi52_6",X4="_Dimmer_xbi52_6",J4="_Spinner_xbi52_9",Q4="_Dimmed_xbi52_12",e5="_IsDimmed_xbi52_33",t5="_IsLoading_xbi52_38",r5="_IsDisabled_xbi52_43",Rf={ABase:K4,UseDimming:Y4,Dimmer:X4,Spinner:J4,Dimmed:Q4,IsDimmed:e5,IsLoading:t5,IsDisabled:r5},$r=r=>{const{children:e,abaseRef:t,isDisabled:n,isLoading:i,isDimmed:l,tooltip:u,tooltipDistance:f=10,tooltipDelay:g=0,tooltipDirection:m=yi.S,...R}=r,E=A.useRef(null),_=A.useMemo(()=>t??E,[t]),S=A.useMemo(()=>typeof n=="string"&&n!==""?n:u!==void 0?u:"",[n,u]),x=A.useMemo(()=>n||i||l,[n,i,l]),M=A.useMemo(()=>n!==void 0||i!==void 0||l!==void 0,[n,i,l]);return v.jsxs("div",{...R,className:Fe.clsx(R.className,Rf.ABase,M&&Rf.UseDimming,x&&Rf.Dimmed),ref:_,children:[e,M&&v.jsx("div",{className:Fe.sclsx(Rf,"Dimmer",n&&"IsDisabled",i&&"IsLoading",l&&"IsDimmed")}),i&&v.jsx("div",{className:Fe.sclsx(Rf,"Spinner",n&&"IsDisabled",i&&"IsLoading"),children:v.jsx(jr,{icon:"Spinner"})}),v.jsx(Q_,{tooltip:S,delay:g,distance:f,direction:m,targetRef:_})]})},n5="_AButton_vulhu_1",i5="_Primary_vulhu_14",o5="_Secondary_vulhu_19",s5="_Alter_vulhu_24",a5="_AIconButton_vulhu_30",l5="_AThemeButton_vulhu_71",Zf={AButton:n5,Primary:i5,Secondary:o5,Alter:s5,AIconButton:a5,AThemeButton:l5},c5=["Primary","Secondary","Alter","Raw"],Fi=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...i}=r,l=A.useMemo(()=>i.isDisabled||i.isLoading,[i.isDisabled,i.isLoading]),u=A.useCallback(f=>{l||t==null||t(f)},[l,t]);return v.jsx($r,{...i,className:Fe.clsx(i.className,Zf.AButton,e!=="Raw"&&Zf[e],"IsClickable",!l&&!n&&"IsInteractive"),onClick:u})},u5=["Primary","Secondary","Raw"],_i=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:i,isDisabled:l,isLoading:u,tooltip:f,className:g,...m}=r,R=A.useMemo(()=>l||u,[l,u]),E=A.useCallback(S=>{R||i==null||i(S)},[R,i]),_=A.useMemo(()=>um.includes(e)?v.jsx(jr,{icon:e,size:t}):e,[e,t]);return v.jsx($r,{className:Fe.clsx(Zf.AIconButton,!l&&!u&&"IsClickable",n!=="Raw"&&Zf[n],g),onClick:E,isDisabled:l,isLoading:u,tooltip:f,...m,children:_})};function nn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=A.useState(e);return A.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const f5={Ok:"Ok",Cancel:"Cancel"},d5={"select n":r=>v.jsxs(v.Fragment,{children:["Select ",r]}),"deselect n":r=>v.jsxs(v.Fragment,{children:["Deselect ",r]}),"Search(Placeholder)":"Search","Search(Button)":"Search",Items:"Items","*Click row for single select":"*Click row for single select","*Change order to row drag":"*Change order to row drag","Loading Contents...":"Loading Contents..."},h5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select Date":"Select Date"},p5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select DateRange":"Select DateRange","1일":"1 Day","1주일":"1 Week","1개월":"1 Month","3개월":"3 Months"},g5={"drop file to select":"Drop file to select","or Drag & Drop":"or Drag & Drop","Select File":"Select File"},m5={"Checked n items":r=>v.jsxs(v.Fragment,{children:["Checked ",r," items"]}),"Searched n items":r=>v.jsxs(v.Fragment,{children:["Searched ",r," items"]}),"Total n items":r=>v.jsxs(v.Fragment,{children:["Total ",r," items"]}),"Sort by x":r=>v.jsxs(v.Fragment,{children:["Sort by ",r]}),"Sort up":"Sort up","Sort down":"Sort down",Asc:"Asc",Desc:"Desc","Search(Placeholder)":"Search","Search(Button)":"Search","Clear(Button)":"Clear",Select:"Select","Toggle Filter":"Toggle Filter","No Items":"No Items"},v5={"Select(Placeholder)":"Select"},y5={"Select(Placeholder)":"Select"},b5={"Insert Column Right":"Insert Column Right","Insert Column Left":"Insert Column Left","Insert Row Top":"Insert Row Top","Insert Row Bottom":"Insert Row Bottom","Delete Column":"Delete Column","Delete Row":"Delete Row","Delete Table":"Delete Table","Image size adjust":"Image size adjust",Center:"Center",floatLeft:"Left",floatRight:"Right","Input on mouse down":"Input on mouse down",Restore:"Restore","Right click to open properties":"Right click to open properties",Default:"Default"},_5={Asterisk:"Required field"},x5={Delete:"Delete","Fail Download":"Fail Download",Download:"Download","Drop file to select":"Drop file to select","Insert File":"Insert File","Download All":"Download All","Delete All":"Delete All","Unsupported file format detected.":"Unsupported file format detected.","Invalid file(s)":"Invalid file(s)","Supported file format(s)":"Supported file format(s)",and:"and","more file(s)":"more file(s)"},hn={ADialog:f5,ATree:d5,ADatePicker:h5,ADateRangePicker:p5,AFileBox:g5,ATable:m5,ASelect:v5,AMultiSelect:y5,AEditor:b5,AWrap:_5,AFileUploader:x5};function S5(r,e){er.keys(e).forEach(t=>{r[t]=e[t]})}const C5=(r,e)=>{S5(hn[r],e)},w5="_AWrap_16uyn_1",A5="_Label_16uyn_8",T5="_Asterisk_16uyn_19",E5="_HelperTextConatiner_16uyn_23",k5="_HelperText_16uyn_23",Du={AWrap:w5,Label:A5,Asterisk:T5,HelperTextConatiner:E5,HelperText:k5,Error:"_Error_16uyn_38"},R5=["Default","Error"],ec=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:i="Default",label:l,labelProps:u,children:f}=r,g=A.useRef(null),[m,R]=A.useState({height:0}),E=A.useRef(null),[_,S]=A.useMemo(()=>{let M=n,w=i;if(Array.isArray(t)){const b=t.filter(Boolean);b.length>0&&([M,w]=[b,"Error"])}else t&&([M,w]=[t,"Error"]);return Array.isArray(M)&&(w!=="Error"&&(M=M.filter(Boolean)),M=M.map((b,I)=>v.jsxs(A.Fragment,{children:[b,v.jsx("br",{})]},I))),[M,w]},[n,t,i]);A.useEffect(()=>{if(!_||!g.current)R({height:0});else{const M=g.current.getBoundingClientRect();R({height:M.height,marginTop:M.height===0?0:6})}},[_]);const x=A.useMemo(()=>{switch(typeof(u==null?void 0:u.prefix)){case"string":return v.jsx(jr,{width:"1rem",height:"1rem",icon:u.prefix});case"boolean":return v.jsx(jr,{width:10,height:10,icon:"Target"});default:return u==null?void 0:u.prefix}},[u==null?void 0:u.prefix]);return v.jsxs("div",{...e,className:Fe.clsx(e==null?void 0:e.className,Du.AWrap),ref:E,children:[l&&v.jsxs("div",{className:Fe.clsx(Du.Label,"NoSelect",u==null?void 0:u.className),style:u==null?void 0:u.style,children:[x,l,(u==null?void 0:u.asterisk)&&v.jsx($r,{tooltip:hn.AWrap.Asterisk,className:Du.Asterisk,children:"*"})]}),f,_!==void 0&&v.jsx("div",{className:Fe.clsx(Du.HelperTextConatiner,"NoSelect"),style:m,children:v.jsx("div",{className:Fe.clsx(Du.HelperText,Du[S]),ref:g,children:_})})]})},I5="_ASwitch_1uv2e_1",L5="_Track_1uv2e_6",M5="_Truthy_1uv2e_13",D5="_Thumb_1uv2e_17",If={ASwitch:I5,Track:L5,Truthy:M5,Thumb:D5},e2=r=>{const{wrapProps:e,helperText:t,label:n,useCheck:i,...l}=r,[u,f]=nn(i,!1),g=A.useCallback(m=>{var R;l.isDisabled||l.isLoading||(f==null||f(!u),(R=l.onClick)==null||R.call(l,m))},[l,u,f]);return v.jsx(ec,{helperText:t,label:n,wrapProps:{...e},children:v.jsx($r,{...l,className:If.ASwitch,onClick:g,children:v.jsx("div",{className:Fe.clsx(If.Track,u&&If.Truthy),children:v.jsx("div",{className:Fe.clsx(If.Thumb,u&&If.Truthy)})})})})},O5={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},xi=z_.cloneDeep(O5);er.keys(xi.semantic).forEach(r=>{const e=xi.semantic[r];er.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const oh=er.keys(xi.palette),t2=er.keys(xi.palette[oh[0]]);function P5(){return ai.paletteMode}function N5(r,e=ai.paletteMode){return xi.palette[e][r]}function F5(r){return ah(r)}const Zd=[];function r2(r){ai.paletteMode=r,t2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.palette[r][e])),Zd.forEach(e=>e(r))}function n2(r,e="all"){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?oh.forEach(l=>{xi.palette[l][n]=i}):xi.palette[e][n]=i)})}const Gu=er.keys(xi.semantic),i2=er.keys(xi.semantic[Gu[0]]);function j5(){return ai.semanticMode}function B5(r,e=ai.semanticMode){return xi.semantic[e][r]}function H5(r){return ah(r)}const Kd=[];function dm(r){ai.semanticMode=r,document.documentElement.setAttribute("data-theme",r),i2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.semantic[r][e])),Kd.forEach(e=>e(r)),ai.save==="localStorage"?localStorage.setItem("semanticMode",r):ai.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function o2(r,e=ai.semanticMode){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?Gu.forEach(l=>{xi.semantic[l][n]=i}):xi.semantic[e][n]=i)})}const s2=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition"],a2=["ABase_Dimming_background-color"],l2=["ATooltip_background-color","ATooltip_color"],c2=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color"],u2=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],f2=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],d2=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],h2=["ACheckBox_color"],p2=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],g2=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],m2=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],v2=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],y2=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],b2=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],_2=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],x2=["AListView_border-thin","AListView_border-thick"],S2=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],C2=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],w2=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],A2=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],T2=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],E2=["ADivideFrame_DividerInner_background-color"],k2=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],R2=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],I2=["AWrap_Error_color"],L2=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],M2=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],q5=[...s2,...a2,...l2,...c2,...u2,...f2,...d2,...h2,...p2,...g2,...m2,...v2,...y2,...b2,..._2,...x2,...S2,...C2,...w2,...A2,...T2,...E2,...k2,...R2,...I2,...L2,...M2],sh={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function z5(r){return sh[r]}function $5(r){return ah(r)}function D2(r){er.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),sh[t]=n)})}function U5(r){er.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const i=xi.semantic[ai.semanticMode][n];i!==void 0&&(document.documentElement.style.setProperty(t,i),sh[t]=i)})}const ai={paletteMode:oh[0],semanticMode:Gu[0],save:"",followDeviceSetting:!1};function W5({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(ai.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),i=u=>{ai.semanticMode=u.matches?"dark":"light"};i(n);const l=u=>i(u);n.addEventListener("change",l)}if(e!==void 0){if(ai.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}}r!==void 0&&(ai.semanticMode=r),r2(ai.paletteMode),dm(ai.semanticMode),n2(xi.palette[ai.paletteMode]),o2(xi.semantic[ai.semanticMode]),D2(sh)}function V5(r){r.type==="semanticModeChange"?Kd.push(r.listener):r.type==="paletteModeChange"?Zd.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function G5(r){if(r.type==="semanticModeChange"){const e=Kd.indexOf(r.listener);e!==-1&&Kd.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Zd.indexOf(r.listener);e!==-1&&Zd.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function ah(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function Z5(r){Object.assign(Fe.additionalClasses,r),Fe.updateKeys(),Fe.additionalClasses=Fe.additionalClasses}const Ff={getCurrentPaletteMode:P5,getPaletteValue:N5,getPaletteDeepValue:F5,changePaletteMode:r2,editPalette:n2,getCurrentSemanticMode:j5,getSemanticValue:B5,getSemanticDeepValue:H5,changeSemanticMode:dm,editSemantic:o2,getComponentStyleValue:z5,getComponentStyleDeepValue:$5,editComponentStyle:D2,editComponentStyleWithSemantic:U5,init:W5,addEventListener:V5,removeEventListener:G5,getDeepValue:ah,addClasses:Z5},K5=r=>{const{onChange:e,onClick:t,type:n="Icon",...i}=r,[l,u]=A.useState(Ff.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),f=A.useCallback(g=>{const m=Ff.getCurrentSemanticMode();let R="light";m==="light"?R="dark":m==="dark"&&(R="light"),Ff.changeSemanticMode(R),u(Y5[R]),e==null||e(R),t==null||t(g)},[e,t]);if(n==="Icon")return v.jsx(_i,{...i,className:Fe.clsx(Zf.AThemeButton,i.className,"IsInteractive"),type:"Raw",icon:l,onClick:f});if(n==="Switch")return v.jsx(e2,{...i,useCheck:[Ff.getCurrentSemanticMode()==="dark",f]})},Y5={light:"Sun",dark:"Moon"},X5="_ACheckBoxWrap_1ozuz_1",J5="_ACheckBox_1ozuz_1",Qv={ACheckBoxWrap:X5,ACheckBox:J5},Zu=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:i,onClick:l,...u}=r,[f,g]=nn(e,!1),m=A.useCallback(R=>{n||i||(g==null||g(!f),l==null||l(R))},[n,i,l,f,g]);return v.jsx($r,{...u,className:Fe.clsx(u.className,Qv.ACheckBoxWrap),isDisabled:n,isLoading:i,onClick:m,children:v.jsx(jr,{className:Qv.ACheckBox,icon:t?"Check.Indeterminate":f?"Check.Checked":"Check.UnChecked"})})};function Q5(r){return typeof r=="function"}function eT(r,e){return Q5(r)?r(e):r}const Lr={getContent:eT},tT="_ARowFrame_1586b_1",rT="_AColFrame_1586b_7",nT="_AOverflowFrame_1586b_13",iT="_ADivideFrame_1586b_22",oT="_Row_1586b_28",sT="_Col_1586b_31",aT="_ChildFrame_1586b_35",lT="_IsReturning_1586b_48",cT="_Divider_1586b_52",uT="_IsMoving_1586b_60",fT="_DividerInner_1586b_66",dT="_IsClicked_1586b_91",qo={ARowFrame:tT,AColFrame:rT,AOverflowFrame:nT,ADivideFrame:iT,Row:oT,Col:sT,ChildFrame:aT,IsReturning:lT,Divider:cT,IsMoving:uT,DividerInner:fT,IsClicked:dT},Sn=r=>v.jsx($r,{...r,className:Fe.clsx(qo.ARowFrame,r.className),children:r.children}),O2=r=>v.jsx("div",{...r,className:Fe.clsx(qo.AColFrame,r.className),children:r.children}),Sa=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:i,className:l,noOverflowTooltip:u,...f}=r,g=A.useRef(null),m=A.useMemo(()=>n??g,[n]),[R,E]=A.useState(!1),_=A.useCallback(()=>E(!0),[]),S=A.useCallback(()=>E(!1),[]);A.useEffect(()=>{const M=m.current;if(M)return M.addEventListener("mouseenter",_),M.addEventListener("mouseleave",S),()=>{M.removeEventListener("mouseenter",_),M.removeEventListener("mouseleave",S)}},[m,_,S]);const x=A.useMemo(()=>i?"":u||!R||!m.current?e:m.current.scrollWidth>m.current.clientWidth?t:e,[m,i,t,e,u,R]);return v.jsx($r,{...f,isDisabled:i,children:t,abaseRef:m,tooltip:x,className:Fe.clsx(qo.AOverflowFrame,l)})},P2=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:v.jsx(A.Suspense,{children:t[e]})},Yh={},hT=r=>{const{pk:e,direction:t="Row",lefts:n,minLength:i=40,children:l,childStyle:u,childClassName:f,dividerStyle:g,dividerClassName:m,dividerPadding:R,dividerInnerClassName:E,dividerInnerStyle:_,...S}=r,x=A.useMemo(()=>{let J;return typeof l=="object"&&Array.isArray(l)?J=l:J=[l],J=J.filter(me=>me!=null&&me!==!1),J},[l]),[M,w]=A.useState(e===void 0?n:Yh[e]??n),b=A.useMemo(()=>typeof i=="number"?Array(x.length).fill(i+(R??0)):i.map(J=>J+(R??0)),[i,x.length,R]),[I,O]=A.useState(),H=A.useMemo(()=>I!==void 0?I:M,[I,M]),q=A.useRef(null),z=A.useRef({x:0,y:0}),[Y,fe]=A.useState(),X=A.useCallback((J,me)=>{if(q.current===null)return;const ce=q.current;z.current={x:J.clientX,y:J.clientY},O(M),fe(me);let be=[...M];const ue=le=>{const ae=ce.getBoundingClientRect(),ge=t==="Row"?ae.left:ae.top,Pe=t==="Row"?ae.width:ae.height;be=mT(M,t,me,le,ge,Pe,b),O(be)},Se=()=>{fe(void 0),O(void 0),w(be),e!==void 0&&(Yh[e]=be),window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",Se)};window.addEventListener("mousemove",ue),window.addEventListener("mouseup",Se)},[M,e,t,b]),[he,j]=A.useState(!1),re=A.useCallback(()=>{w(n),e!==void 0&&(Yh[e]=n),j(!0)},[n,e]),Q=A.useMemo(()=>x.map((J,me)=>{const ce=H[me],be=ce-(me===0?0:H[me-1]),ue=me===0,Se=me===x.length-1,le={...u,...pT(t,be,Se)};return R!==void 0&&(t==="Row"?(ue||(le.paddingLeft=R),Se||(le.paddingRight=R)):(ue||(le.paddingTop=R),Se||(le.paddingBottom=R))),v.jsxs(A.Fragment,{children:[v.jsx("div",{className:Fe.clsx(qo.ChildFrame,f,he&&qo.IsReturning,qo[t]),onTransitionEnd:()=>j(!1),style:le,children:J}),!Se&&v.jsx("div",{className:Fe.clsx(qo.Divider,qo[t],"NoSelect",Y!==void 0&&qo.IsMoving,Y===me&&qo.IsClicked,m),style:{...g,...gT(t,ce)},onMouseDown:ae=>X(ae,me),onDoubleClick:re,children:v.jsx("div",{className:Fe.clsx(qo.DividerInner,E),style:_})})]},me)}),[x,H,u,t,R,f,he,Y,m,g,re,E,_,X]);return v.jsx("div",{...S,className:Fe.clsx(qo.ADivideFrame,r.className,qo[t]),ref:q,children:Q})};function pT(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function gT(r,e){return r==="Col"?{top:e}:{left:e}}function mT(r,e,t,n,i,l,u){const f=[...r];let g=n.clientX-i-r[t];e==="Col"&&(g=n.clientY-i-r[t]);const m=E=>u.slice(0,E+1).reduce((_,S)=>_+S,0),R=E=>u.slice(E+1).reduce((_,S)=>_+S,0);if(g<0){let E=f[t]+g;if(E<=m(t))for(let _=0;_<=t;_++)f[_]=m(_);else if(f[t]=E,t>0)for(let _=t-1;_>=0&&E-f[_]<u[_];_--)f[_]=E-u[t],E=f[_]}else if(g>0){let E=f[t]+g;if(E>=l-R(t))for(let _=t;_<r.length;_++)f[_]=l-R(_);else if(f[t]=E,t<r.length-1)for(let _=t+1;_<r.length&&f[_]-E<u[_];_++)f[_]=E+u[_],E=f[_]}return f}const Qc=()=>v.jsx("div",{style:{display:"flex",flexGrow:1}}),vT="_ASpace_1okqf_1",yT={ASpace:vT},mn=r=>{const{h:e,w:t,...n}=r;return v.jsx("div",{...n,className:Fe.clsx(yT.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},bT="_AChipsContainer_1ag9v_1",_T="_AChip_1ag9v_1",xT="_Clickable_1ag9v_21",ST="_AChipDelete_1ag9v_26",CT="_IsHover_1ag9v_40",wT="_AChipDeleteIcon_1ag9v_45",zu={AChipsContainer:bT,AChip:_T,Clickable:xT,AChipDelete:ST,IsHover:CT,AChipDeleteIcon:wT},AT=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:i,ChipOnDelete:l,ChipOnClick:u,ChipIcon:f,className:g,style:m,ButtonRenderer:R=N2,gap:E=8,..._}=r,[S,x]=nn(e,[]),M=A.useCallback(b=>{!x||!l||(l({label:b}),x(S.filter(I=>I!==b)))},[x,l,S]),w=A.useCallback(b=>{const I={label:b};return{label:b,useLabel:[b,()=>{}],style:Lr.getContent(n,I),className:Lr.getContent(i,I),icon:Lr.getContent(f,I),onDelete:()=>M(b),onClick:u?()=>u({label:b}):void 0}},[i,f,u,n,M]);return v.jsx($r,{..._,style:{...m,alignItems:t,gap:E},className:Fe.clsx(zu.AChipsContainer,g),children:S.map((b,I)=>v.jsx(hm,{...w(b),ButtonRenderer:R},I))})},hm=r=>{const{label:e,useLabel:t,icon:n,className:i,onDelete:l,onClick:u,ButtonRenderer:f=N2,width:g="fit-content",style:m,...R}=r;return e===void 0?v.jsx(v.Fragment,{}):v.jsxs($r,{...R,style:{...m,width:g},onClick:u,className:Fe.clsx("NoSelect",zu.AChip,u&&zu.Clickable,u&&"IsClickable",i),children:[v.jsx(Sa,{children:e}),f({...r})]})},N2=r=>{const{label:e,icon:t,onDelete:n,useLabel:i}=r,[,l]=nn(i,e),[u,f]=A.useState(!1),g=A.useCallback(E=>{n&&(E.stopPropagation(),l==null||l(void 0),n(r))},[n,r,l]),m=()=>{f(!0)},R=()=>{f(!1)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),v.jsx(mn,{w:24}),v.jsx($r,{className:Fe.clsx(zu.AChipDelete,"IsClickable",u&&zu.IsHover)}),v.jsx(_i,{type:"Raw",onClick:g,onMouseEnter:m,onMouseLeave:R,icon:t||v.jsx(jr,{icon:"Close",stroke:"currentColor",width:14,height:14}),className:zu.AChipDeleteIcon})]})})},Kc=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`},TT=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},ET=/[a-zA-Z0-9]/,kT=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,RT=/^[a-zA-Z0-9._-]+$/,IT=/^[0-9a-fA-F-]+$/i,LT=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,MT=/^\S*$/,DT=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,OT=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,PT=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,NT=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,FT={hasKr:r=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(r),hasMalKr:r=>/[ㄱ-ㅎㅏ-ㅣ]/.test(r),hasBlank:r=>/\s/.test(r),isBlank:r=>/^\s*$/.test(r),isUuid:r=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(r),isEmail:r=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(r),isAlphabet:r=>/^[a-zA-Z]*$/.test(r),isAlphaNumeric:r=>/^[a-zA-Z0-9]*$/.test(r),isKr:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(r),isKrNumeric:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(r),isNumeric:r=>/^[0-9]$/.test(r),isLenMinMax:(r,e)=>t=>!(r!==void 0&&t.length<r||e!==void 0&&t.length>e)},F2={secondToTime:TT,validate:FT,FileSizeTrans:Kc},jT=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:i,actionRef:l,wrapProps:u,helperText:f,label:g,...m}=r,[R,E]=A.useState(0),[_,S]=A.useState(!i);A.useEffect(()=>{if(!_||m.isDisabled||m.isLoading)return;const O=setInterval(()=>E(H=>H+1),t);return()=>clearInterval(O)},[t,_,m.isDisabled,m.isLoading]);const x=A.useCallback(()=>{n==null||n(),S(!1)},[n]);A.useEffect(()=>{R>=e&&!m.isDisabled&&!m.isLoading&&x()},[R,e,x,m.isDisabled,m.isLoading]);const M=A.useCallback(()=>{m.isDisabled||S(!0)},[m.isDisabled]),w=A.useCallback(()=>{m.isDisabled||S(!1)},[m.isDisabled]),b=A.useCallback(()=>{m.isDisabled||(S(!1),E(0))},[m.isDisabled]);A.useEffect(()=>{l&&(l.current={start:M,stop:w,reset:b,setTicks:E})},[l,M,w,b]);const I=e-R;return v.jsx(ec,{wrapProps:u,helperText:f,label:g,children:v.jsx($r,{...m,children:F2.secondToTime(I>0?I:0)})})};function zs(r){const e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate();return`${e}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}function BT(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function HT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function qT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function e0(r,e){return zs(r)===zs(e)}function $u(r,e){return zs(r)>zs(e)}function Yd(r,e){return zs(r)>=zs(e)}function Xd(r,e){return zs(r)<zs(e)}function Jd(r,e){return zs(r)<=zs(e)}function t0(r,e,t){return $u(r,t)?$u(e,t)&&Xd(e,r):$u(e,r)&&Xd(e,t)}function r0(r,e,t){return $u(r,t)?Yd(e,t)&&Jd(e,r):Yd(e,r)&&Jd(e,t)}const Kt={toString:zs,toDate:BT,makeSDate:HT,makeEDate:qT,"===":e0,">":$u,">=":Yd,"<":Xd,"<=":Jd,"s<d<e|e<d<s":t0,"s<=d<=e|e<=d<=s":r0,eq:e0,g:$u,ge:Yd,l:Xd,le:Jd,b:t0,be:r0},zT="_InputContainer_gsbiq_7",$T="_AInput_gsbiq_21",UT="_LeftAddon_gsbiq_40",WT="_RightAddon_gsbiq_46",VT="_ErrorHelperText_gsbiq_52",GT="_Primary_gsbiq_56",ZT="_UnAvailable_gsbiq_61",KT="_Secondary_gsbiq_72",YT="_ReadOnly_gsbiq_87",to={InputContainer:zT,AInput:$T,LeftAddon:UT,RightAddon:WT,ErrorHelperText:VT,Primary:GT,UnAvailable:ZT,Secondary:KT,ReadOnly:YT,Error:"_Error_gsbiq_52"},XT=["Primary","Secondary","ReadOnly","Error"],tc=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",inputRef:i,useValue:l,isReadonly:u,placeholder:f,minLength:g,maxLength:m,tabIndex:R,autoFocus:E,isPassword:_,autoComplete:S="off",inputProps:x,LeftAddon:M,RightAddon:w,wrapProps:b,helperText:I,label:O,wrapType:H,labelProps:q,...z}=r,Y=A.useMemo(()=>JT(t)?"Error":n,[t,n]),fe=A.useMemo(()=>Y==="ReadOnly"?!0:u,[Y,u]),X=A.useMemo(()=>z.isDisabled||z.isLoading,[z.isDisabled,z.isLoading]),[he,j]=nn(l,""),re=A.useCallback(J=>{var me;X||((me=x==null?void 0:x.onKeyDown)==null||me.call(x,J),["Escape","Enter","ArrowUp","ArrowDown"].includes(J.key)||J.stopPropagation(),J.key==="Enter"&&e&&e(J.currentTarget.value))},[X,x,e]),Q=A.useCallback(J=>{var me;X||g&&J.target.value.length<g||(j==null||j(J.target.value),(me=x==null?void 0:x.onChange)==null||me.call(x,J))},[X,g,j,x]);return _?v.jsx(ec,{wrapProps:b,label:O,helperText:I,errorMessage:t,wrapType:H,labelProps:q,children:v.jsx("form",{onSubmit:J=>J.preventDefault(),children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[Y],X&&to.UnAvailable,z.className),children:[M&&v.jsx("div",{className:to.LeftAddon,children:M}),v.jsx("input",{...x,className:Fe.clsx(to.AInput,Y==="Error"&&to.InputError,x==null?void 0:x.className),value:he,type:"password",readOnly:fe,onChange:Q,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:E,autoComplete:S,ref:i}),w&&v.jsx("div",{className:Fe.clsx(to.RightAddon,"NoSelect"),children:w})]})})}):v.jsx(ec,{wrapProps:b,label:O,helperText:I,errorMessage:t,wrapType:H,labelProps:q,children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[Y],X&&to.UnAvailable,z.className),children:[M&&v.jsx("div",{className:to.LeftAddon,children:M}),v.jsx("input",{...x,className:Fe.clsx(to.AInput,Y==="Error"&&to.InputError,x==null?void 0:x.className),value:he,readOnly:fe,onChange:Q,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:E,autoComplete:S,ref:i}),w&&v.jsx("div",{className:to.RightAddon,children:w})]})})};function JT(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const QT="_ASelect_ocngk_1",e6="_Arrow_ocngk_14",t6="_Primary_ocngk_23",r6="_UnAvailable_ocngk_34",n6="_IsOpen_ocngk_34",i6="_Secondary_ocngk_41",o6="_Placeholder_ocngk_57",s6="_ValuesContainer_ocngk_61",a6="_Values_ocngk_61",l6="_Options_ocngk_80",c6="_Option_ocngk_80",u6="_Selected_ocngk_122",f6="_CheckBox_ocngk_129",Ho={ASelect:QT,Arrow:e6,Primary:t6,UnAvailable:r6,IsOpen:n6,Secondary:i6,Placeholder:o6,ValuesContainer:s6,Values:a6,Options:l6,Option:c6,Selected:u6,CheckBox:f6},d6=["Primary","Secondary"],rc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.ASelect["Select(Placeholder)"],onClose:l,OptionRenderer:u=p6,SelectedRenderer:f=g6,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:E=!1,..._}=r,S=A.useRef(null),x=A.useMemo(()=>_.abaseRef??S,[_.abaseRef]),M=A.useRef(null),[w,b]=nn(t,e[0]),[I,O]=A.useState(void 0),[H,q]=A.useState(!1),[z,Y]=A.useState(!1),fe=A.useRef(e),X=A.useRef(null),he=A.useCallback(()=>Y(!1),[]),j=A.useCallback(()=>{_.isDisabled||_.isLoading||e.length<1||(Y(!0),setTimeout(()=>q(!0),0),setTimeout(()=>Xh(M,x,e,g,m),0))},[x,_.isDisabled,_.isLoading,e,g,m]),re=A.useCallback(()=>{q(!1),Y(!0),l==null||l()},[l]),Q=A.useCallback(le=>{var ae;H?re():j(),setTimeout(()=>Xh(M,x,e,g,m),0),(ae=_.onClick)==null||ae.call(_,le)},[x,_,e,H,re,j,g,m]),J=A.useCallback(()=>{Xh(M,x,e,g,m)},[x,e,g,m]);A.useEffect(()=>{if(!H||!x.current)return;const le=x.current;let ae=le.parentElement;for(;ae;)ae.addEventListener("scroll",J),ae=ae.parentElement;return()=>{let ge=le.parentElement;for(;ge;)ge.removeEventListener("scroll",J),ge=ge.parentElement}},[x,H,J]),A.useEffect(()=>{if(H)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[H,J]);const me=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!H)return;const le=new IntersectionObserver(me,{threshold:0});return x.current&&le.observe(x.current),()=>le.disconnect()},[x,H,me]);const ce=A.useCallback(le=>{const ae=le.target,ge=x.current,Pe=M.current;!ge||!ae||!Pe||!ge.contains(ae)&&!Pe.contains(ae)&&re()},[x,re]),be=A.useMemo(()=>_.isDisabled||_.isLoading||e.length<1,[_.isDisabled,_.isLoading,e]);A.useEffect(()=>{if(H)return setTimeout(()=>document.addEventListener("mousedown",ce),0),()=>document.removeEventListener("mousedown",ce)},[H,ce]);const ue=A.useCallback((le,ae)=>{le.stopPropagation(),le.preventDefault(),b==null||b(ae),re()},[b,re]),Se=A.useCallback(()=>{if(!E||!x.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:x,options:e,selectedOption:w,placeholder:i,optionRenderer:ae=>ae===null?null:u({option:ae}),type:n,isMulti:!1});O(le)},[E,x,e,w,i,u,n]);return A.useEffect(()=>E?((e!==fe.current||I===void 0)&&(X.current!==null&&cancelAnimationFrame(X.current),X.current=requestAnimationFrame(()=>{Se(),X.current=null,fe.current=[...e]})),()=>{X.current!==null&&(cancelAnimationFrame(X.current),X.current=null)}):void 0,[E,e,Se,I]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{..._,isDisabled:_.isDisabled||e.length<1,className:Fe.clsx(_.className,Ho.ASelect,"NoSelect",H&&Ho.IsOpen,be&&Ho.UnAvailable,Ho[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:I?`${I}px`:E?"100px":void 0,..._.style},abaseRef:x,onClick:Q,children:[v.jsx("div",{className:Ho.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(Ho.Values,(w==null||w==="")&&Ho.Placeholder),children:v.jsx(f,{selectedOption:w,OptionRenderer:u,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(Ho.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:H?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(H||z)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(Ho.Options,Ho[n]),onTransitionEnd:he,style:{opacity:+H,visibility:H?"visible":"hidden",pointerEvents:H?void 0:"none",borderRadius:x.current?window.getComputedStyle(x.current).borderRadius:void 0,width:I?`${I}px`:E?"100px":void 0},ref:M,children:e.map((le,ae)=>{const ge=w===le,Pe=x.current?window.getComputedStyle(x.current):void 0;return le===null?null:v.jsx("div",{className:Fe.clsx(Ho.Option,ge&&Ho.Selected,"NoSelect",Ho[n]),style:{height:Pe==null?void 0:Pe.height},onClick:Qe=>ue(Qe,le),children:v.jsx(u,{option:le})},ae)})}),document.body)]})};function Xh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=h6(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function h6(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const p6=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},g6=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:v.jsx(t,{option:e})},m6="_Anchor_502n9_1",v6="_Primary_502n9_18",y6="_Secondary_502n9_21",b6="_Placeholder_502n9_25",_6="_Icon_502n9_30",x6="_ADatePicker_502n9_37",S6="_StringInputWrap_502n9_48",C6="_StringInputContainer_502n9_53",w6="_StringInput_502n9_48",A6="_IsIdx_502n9_68",T6="_CalendarContainer_502n9_72",E6="_Header_502n9_78",k6="_Prev_502n9_82",R6="_Next_502n9_83",I6="_MonthYear_502n9_116",L6="_Select_502n9_121",M6="_Calendar_502n9_72",D6="_Cell_502n9_132",O6="_IsNotCurrentMonth_502n9_144",P6="_IsSelected_502n9_148",N6="_IsDisabled_502n9_152",F6="_IsHovered_502n9_155",j6="_Week_502n9_159",B6="_WeekDay_502n9_164",rn={Anchor:m6,Primary:v6,Secondary:y6,Placeholder:b6,Icon:_6,ADatePicker:x6,StringInputWrap:S6,StringInputContainer:C6,StringInput:w6,String:"_String_502n9_48",IsIdx:A6,CalendarContainer:T6,Header:E6,Prev:k6,Next:R6,MonthYear:I6,Select:L6,Calendar:M6,Cell:D6,IsNotCurrentMonth:O6,IsSelected:P6,IsDisabled:N6,IsHovered:F6,Week:j6,WeekDay:B6},H6="_Anchor_iz4hf_1",q6="_Primary_iz4hf_18",z6="_Secondary_iz4hf_22",$6="_Placeholder_iz4hf_26",U6="_Icon_iz4hf_31",W6="_ADateRangePicker_iz4hf_38",V6="_StringInputWrap_iz4hf_49",G6="_StringInputContainer_iz4hf_53",Z6="_StringInput_iz4hf_49",K6="_IsIdx_iz4hf_69",Y6="_CalendarContainer_iz4hf_73",X6="_Header_iz4hf_79",J6="_Prev_iz4hf_83",Q6="_Next_iz4hf_84",eE="_MonthYear_iz4hf_117",tE="_Select_iz4hf_122",rE="_Calendar_iz4hf_73",nE="_Cell_iz4hf_133",iE="_IsNotCurrentMonth_iz4hf_145",oE="_IsSelected_iz4hf_149",sE="_IsDisabled_iz4hf_153",aE="_IsHovered_iz4hf_156",lE="_Week_iz4hf_160",cE="_WeekDay_iz4hf_165",uE="_ChoiceButton_iz4hf_169",Hr={Anchor:H6,Primary:q6,Secondary:z6,Placeholder:$6,Icon:U6,ADateRangePicker:W6,StringInputWrap:V6,StringInputContainer:G6,StringInput:Z6,String:"_String_iz4hf_49",IsIdx:K6,CalendarContainer:Y6,Header:X6,Prev:J6,Next:Q6,MonthYear:eE,Select:tE,Calendar:rE,Cell:nE,IsNotCurrentMonth:iE,IsSelected:oE,IsDisabled:sE,IsHovered:aE,Week:lE,WeekDay:cE,ChoiceButton:uE},pm=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,yearsOptionSize:R,noDefaultChoices:E,LeftAddon:_,RightAddon:S,placeholder:x,noClearButton:M,resources:w,onClick:b,...I}=r,O=A.useMemo(()=>({...hn.ADateRangePicker,...w}),[w]),H=A.useMemo(()=>x??O["Select DateRange"],[x,O]),[q,z]=A.useMemo(()=>{let ne,Je;if(u&&(ne=Kt.makeSDate(u)),f&&(Je=Kt.makeEDate(f)),ne&&Je&&Kt["<"](Je,ne)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const pt=ne;ne=Je,Je=pt}return[ne,Je]},[u,f]),[Y,fe]=A.useState("sD"),[X,he]=nn(n,void 0),j=A.useCallback(ne=>{he&&(ne===void 0?(he(void 0),we(""),Ne("")):(he({sDate:Kt.makeSDate(ne.sDate),eDate:Kt.makeEDate(ne.eDate)}),we(Kt.toString(ne.sDate)),Ne(Kt.toString(ne.eDate))))},[he]);A.useEffect(()=>{X&&(we(Kt.toString(X.sDate)),Ne(Kt.toString(X.eDate)))},[X]);const re=A.useCallback(ne=>{if(!he)return;let Je=X?X.sDate:Kt.makeSDate(ne);ne=Kt.makeEDate(ne),he({sDate:Je,eDate:ne}),we(Kt.toString(Je)),Ne(Kt.toString(ne))},[he,X]),[Q,J]=A.useState(),[me,ce]=A.useState(),be=A.useCallback(ne=>{Y==="sD"&&j({sDate:ne,eDate:ne}),J(ne),ce(ne)},[Y,j,J]),ue=A.useCallback(ne=>{Y==="sD"?Q&&(Kt.eq(Q,ne)?fe("eD"):Kt[">"](ne,Q)?(re(ne),J(void 0)):(j({sDate:ne,eDate:Q}),J(void 0))):(X?Kt["<"](ne,X.sDate)?j({sDate:ne,eDate:X.eDate}):re(ne):j({sDate:ne,eDate:ne}),J(void 0),fe("sD"))},[re,Q,fe,Y,j,X,J]),Se=A.useCallback(ne=>{Q&&ce(ne)},[Q]),le=A.useCallback(()=>{ce(void 0),J(void 0),fe("sD")},[fe,J]),[ae,ge]=A.useState(n0(X,q,z)),Pe=A.useMemo(()=>gm(ae.year,q,z,R),[ae.year,q,z,R]),Qe=A.useMemo(()=>Kf(ae.year,q,z),[q,z,ae.year]),pe=A.useCallback(ne=>{if(!Pe.includes(ne))return;const Je={month:ae.month,year:ne},pt=Kf(Je.year,q,z);pt.length<1||(pt.includes(Je.month)||(Je.month<pt[0]?Je.month=pt[0]:Je.month>pt[pt.length-1]&&(Je.month=pt[pt.length-1])),ge(Je))},[q,z,Pe,ae.month]),Ie=A.useCallback(ne=>{Qe.includes(ne)&&ge({month:ne,year:ae.year})},[Qe,ae.year]),Xe=A.useMemo(()=>z?new Date(ae.year,ae.month+1,1)>z:!1,[ae,z]),tt=A.useCallback(()=>{if(Xe||Qe.length<1)return;const ne=ae.month+1;ne>11?ge({month:Qe[0],year:ae.year+1}):ge({month:ne,year:ae.year})},[Xe,Qe,ae]),Ge=A.useMemo(()=>q?new Date(ae.year,ae.month,0)<q:!1,[ae,q]),Me=A.useCallback(()=>{if(Ge||Qe.length<1)return;const ne=ae.month-1;ne<Qe[0]?ge({month:Qe[Qe.length-1],year:ae.year-1}):ge({month:ne,year:ae.year})},[Ge,Qe,ae]),[Ee,we]=A.useState(X!=null&&X.sDate?Kt.toString(X.sDate):""),Ue=A.useCallback(ne=>{if(ne.length>10||(we(ne),ne.length<10)||!he)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let pt=X?X.eDate:Je;X&&Kt[">"](Je,pt)&&([Je,pt]=i0(Je,pt)),j({sDate:Je,eDate:pt}),ge({month:Je.getMonth(),year:Je.getFullYear()})},[he,j,X,q,z]),[ct,Ne]=A.useState(X!=null&&X.eDate?Kt.toString(X.eDate):""),bt=A.useCallback(ne=>{if(ne.length>10||(Ne(ne),ne.length<10)||!he)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let pt=X?X.sDate:Je;X&&Kt[">"](pt,Je)&&([pt,Je]=i0(pt,Je)),j({sDate:pt,eDate:Je}),ge({month:Je.getMonth(),year:Je.getFullYear()})},[he,j,X,q,z]),Le=A.useCallback(()=>{X&&(we(Kt.toString(X.sDate)),Ne(Kt.toString(X.eDate)))},[X]),Ze=A.useMemo(()=>{const{month:ne,year:Je}=ae,pt=new Date(Je,ne,1),$e=new Date(Je,ne+1,0),De=[];for(let Et=0;Et<pt.getDay();Et++){const Nt=new Date(Je,ne,0).getDate()-pt.getDay()+Et+1,Qt=new Date(Je,ne-1,Nt),rr=q&&q>Qt||z&&z<Qt,Ft=X?Kt.be(X.sDate,Qt,X.eDate):!1,zt=me&&X&&Kt.be(X.sDate,Qt,me);De.push({day:Nt,isSelected:Ft,isHovered:zt,date:Qt,isDisabled:rr,isCurrentMonth:!1})}for(let Et=1;Et<=$e.getDate();Et++){const ut=new Date(Je,ne,Et),Nt=q&&q>ut||z&&z<ut,Qt=X?Kt.be(X.sDate,ut,X.eDate):!1,rr=me&&X&&Kt.be(X.sDate,ut,me);De.push({day:Et,isSelected:Qt,isHovered:rr,date:ut,isDisabled:Nt,isCurrentMonth:!0})}for(let Et=0;Et<7-$e.getDay()-1;Et++){const ut=new Date(Je,ne+1,Et+1),Nt=q&&q>ut||z&&z<ut,Qt=X?Kt.be(X.sDate,ut,X.eDate):!1,rr=me&&X&&Kt.be(X.sDate,ut,me);De.push({day:Et+1,isSelected:Qt,isHovered:rr,date:ut,isDisabled:Nt,isCurrentMonth:!1})}const St=[];for(let Et=0;Et<De.length/7;Et++)St.push(v.jsx("div",{className:Hr.Week,children:De.slice(Et*7,Et*7+7).map((ut,Nt)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(Hr.Day,Hr.Cell,ut.isDisabled?Hr.IsDisabled:ut.isCurrentMonth?ut.isSelected?Hr.IsSelected:ut.isHovered&&Hr.IsHovered:Hr.IsNotCurrentMonth),isDisabled:ut.isDisabled,onMouseDown:()=>ut.isCurrentMonth&&be(ut.date),onMouseUp:()=>ut.isCurrentMonth&&ue(ut.date),onMouseEnter:()=>ut.isCurrentMonth&&Se(ut.date),children:ut.day},Nt))},Et));return St},[ae,me,X,q,z,be,ue,Se]),ot=A.useRef(null),Ct=A.useCallback(()=>{ot&&fm(ot,je,l)},[ot,l]),[_t,wt]=A.useState(!1),[xt,it]=A.useState(!1),je=A.useRef(null),yt=A.useCallback(()=>{g||m||(wt(!0),setTimeout(()=>it(!0),0),setTimeout(()=>Ct(),0),ge(n0(X,q,z)))},[g,m,X,Ct,q,z]),st=A.useCallback(()=>{g||m||(wt(!0),it(!1))},[g,m]),Rt=A.useMemo(()=>xt?st:yt,[xt,yt,st]),Bt=A.useCallback(()=>wt(!1),[]),ze=A.useCallback(ne=>{const Je=document.getElementById("root"),pt=ne.target,$e=je.current,De=ot.current;!Je||!$e||!pt||!De||!$e.contains(pt)&&Je.contains(pt)&&!De.contains(pt)&&st()},[st]);A.useEffect(()=>{if(xt)return setTimeout(()=>document.addEventListener("mousedown",ze),0),()=>document.removeEventListener("mousedown",ze)},[xt,ze]);const Tt=A.useCallback(()=>{Ct()},[Ct]);A.useEffect(()=>{if(!xt||!(ot!=null&&ot.current))return;const ne=ot.current;let Je=ne.parentElement;for(;Je;)Je.addEventListener("scroll",Tt),Je=Je.parentElement;return()=>{let pt=ne.parentElement;for(;pt;)pt.removeEventListener("scroll",Tt),pt=pt.parentElement}},[ot,xt,Tt]),A.useEffect(()=>{if(xt)return window.addEventListener("resize",Tt),()=>window.removeEventListener("resize",Tt)},[xt,Tt]);const Ht=A.useCallback(ne=>{ne[0].intersectionRatio===0&&st()},[st]);A.useEffect(()=>{if(!xt)return;const ne=new IntersectionObserver(Ht,{threshold:0});return je.current&&ne.observe(je.current),()=>ne.disconnect()},[je,xt,Ht]),A.useEffect(()=>{i&&(i.current={open:yt,close:st,toggle:Rt})},[i,yt,st,Rt]),A.useEffect(()=>{if(!X)return;let ne={sDate:X.sDate,eDate:X.eDate};q&&(Kt["<"](X.sDate,q)&&(ne.sDate=q),Kt["<"](X.eDate,q)&&(ne.eDate=q)),z&&(Kt[">"](X.sDate,z)&&(ne.sDate=z),Kt[">"](X.eDate,z)&&(ne.eDate=z)),(ne.sDate!==X.sDate||ne.eDate!==X.eDate)&&j(ne)},[q,z,X,j]);const _r=A.useCallback(ne=>{b==null||b(ne),Rt()},[b,Rt]),kr=A.useCallback(ne=>{j(void 0),st(),ne.stopPropagation()},[j,st]),Cr=A.useCallback(()=>X?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:kr}):null,[X,kr]),ve=A.useMemo(()=>X?`${Kt.toString(X.sDate)} ~ ${Kt.toString(X.eDate)}`:v.jsx("span",{className:Hr.Placeholder,children:H}),[X,H]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...I,isLoading:m,isDisabled:g,className:Fe.clsx(Hr.Anchor,"IsClickable",Hr[e],t),onClick:_r,abaseRef:ot,children:[_,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),v.jsx(mn,{w:4})]}),ve,v.jsx(Qc,{}),!M&&v.jsx(Cr,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),S&&S]}),(xt||_t)&&Hs.createPortal(v.jsxs("div",{className:Hr.ADateRangePicker,onTransitionEnd:Bt,onMouseLeave:le,style:{opacity:+xt,visibility:xt?"visible":"hidden"},ref:je,children:[v.jsxs("div",{className:Hr.StringInputContainer,children:[v.jsxs(Sn,{children:[v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,Y==="sD"&&me&&Hr.IsIdx),useValue:[Ee,Ue],placeholder:"YYYY-MM-DD",onBlur:Le}),v.jsx(mn,{w:8}),v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,Y==="eD"&&me&&Hr.IsIdx),useValue:[ct,bt],placeholder:"YYYY-MM-DD",onBlur:Le})]}),!E&&v.jsxs(Sn,{style:{marginTop:4},children:[v.jsx(Ed,{children:O["1일"],onClick:()=>j({sDate:new Date,eDate:new Date})}),v.jsx(Ed,{children:O["1주일"],onClick:()=>j({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),v.jsx(Ed,{children:O["1개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),v.jsx(Ed,{children:O["3개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),v.jsxs("div",{className:Hr.CalendarContainer,children:[v.jsxs(Sn,{className:Hr.Header,children:[v.jsx(Fi,{type:"Raw",className:Hr.Prev,onClick:Me,isDisabled:Ge}),v.jsxs("div",{className:Hr.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[ae.month,Ie],className:Hr.Select,options:Qe,OptionRenderer:ne=>O.months(ne.option),SelectedRenderer:ne=>O.months(ne.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[ae.year,pe],className:Hr.Select,options:Pe})]}),v.jsx(Fi,{type:"Raw",className:Hr.Next,onClick:tt,isDisabled:Xe})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:Hr.Calendar,children:[v.jsx("div",{className:Hr.Week,children:[0,1,2,3,4,5,6].map(ne=>v.jsx("div",{className:Fe.clsx(Hr.WeekDay,Hr.Cell),children:O.weekDays(ne)},ne))}),Ze]})]})]}),document.body)]})};function Kf(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let i=11;t&&t.getFullYear()===r&&(i=t.getMonth());const l=[];for(let u=n;u<=i;u++)l.push(u);return l}function gm(r,e,t,n=5){const i=[];let l=r-n/2+n%2/2;e&&l<e.getFullYear()&&(l=e.getFullYear());let u=l+n-1;t&&u>t.getFullYear()&&(u=t.getFullYear());for(let f=l;f<=u;f++)i.push(f);return i}function n0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&Kt["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Kt[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function i0(r,e){return[e,r]}const Ed=r=>v.jsx(Fi,{className:Fe.clsx(Hr.ChoiceButton,"Headline2"),type:"Secondary",...r}),fE=["Primary","Secondary","Raw"],mm=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,placeholder:R,LeftAddon:E,RightAddon:_,resources:S,noClearButton:x,onClick:M,...w}=r,b=A.useMemo(()=>({...hn.ADatePicker,...S}),[S]),I=A.useMemo(()=>R??b["Select Date"],[R,b]),[O,H]=A.useMemo(()=>{let je,yt;return u&&(je=Kt.makeSDate(u)),f&&(yt=Kt.makeEDate(f)),je&&yt&&Kt["<"](yt,je)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[Kt.makeSDate(yt),Kt.makeEDate(je)]):[je,yt]},[u,f]),[q,z]=nn(n,null),[Y,fe]=A.useState(q?Kt.toString(q):""),[X,he]=A.useState(()=>{const je=q??new Date;return O&&je<O?O.getMonth():H&&je>H?H.getMonth():(je??new Date).getMonth()}),[j,re]=A.useState(()=>{const je=q??new Date;return O&&je<O?O.getFullYear():H&&je>H?H.getFullYear():(je??new Date).getFullYear()}),Q=A.useCallback(je=>{re(je);const yt=Kf(je,O,H);yt.includes(X)||(X<yt[0]?he(yt[0]):X>yt[yt.length-1]&&he(yt[yt.length-1]))},[O,H,X]),J=A.useCallback(je=>{if(je.length>10||(fe(je),je.length<10)||!z)return;let yt=Kt.toDate(je);yt&&(O&&yt<O&&(yt=O),H&&yt>H&&(yt=H),z(yt),re(yt.getFullYear()),he(yt.getMonth()))},[z,O,H]),me=A.useCallback(je=>{const yt=j+je;yt<0||re(yt)},[j]),ce=A.useCallback(je=>{const yt=X+je;yt<0?(he(11),me(-1)):yt>11?(he(0),me(1)):he(yt)},[X,me]),be=A.useCallback(je=>{z&&(je===void 0?(z(void 0),fe("")):(z(je),fe(Kt.toString(je))))},[z]),ue=A.useMemo(()=>{const je=new Date(j,X,0);return O&&je<O},[j,X,O]),Se=A.useMemo(()=>{const je=new Date(j,X+1,1);return H&&je>H},[j,X,H]),le=A.useCallback(()=>{ue||ce(-1)},[ce,ue]),ae=A.useCallback(()=>{Se||ce(1)},[ce,Se]),[ge,Pe]=A.useState(null),Qe=A.useCallback(()=>{z&&Pe(null)},[z]),pe=A.useCallback(je=>{z&&Pe(je)},[z]),Ie=A.useMemo(()=>{const je=new Date(j,X,1),yt=new Date(j,X+1,0),st=[];for(let Bt=0;Bt<je.getDay();Bt++){const Tt=new Date(j,X,0).getDate()-je.getDay()+Bt+1,Ht=new Date(j,X-1,Tt),_r=O&&O>Ht||H&&H<Ht,kr=q&&Kt.eq(Ht,q),Cr=ge&&Kt.eq(Ht,ge);st.push({day:Tt,isSelected:kr,date:Ht,isDisabled:_r,isHovered:Cr,isCurrentMonth:!1})}for(let Bt=1;Bt<=yt.getDate();Bt++){const ze=new Date(j,X,Bt),Tt=O&&O>ze||H&&H<ze,Ht=q&&Kt.eq(ze,q),_r=ge&&Kt.eq(ze,ge);st.push({day:Bt,isSelected:Ht,date:ze,isDisabled:Tt,isHovered:_r,isCurrentMonth:!0})}for(let Bt=0;Bt<7-yt.getDay()-1;Bt++){const ze=new Date(j,X+1,Bt+1),Tt=O&&O>ze||H&&H<ze,Ht=q&&Kt.eq(ze,q),_r=ge&&Kt.eq(ze,ge);st.push({day:Bt+1,isSelected:Ht,date:ze,isDisabled:Tt,isHovered:_r,isCurrentMonth:!1})}const Rt=[];for(let Bt=0;Bt<st.length/7;Bt++)Rt.push(v.jsx("div",{className:rn.Week,children:st.slice(Bt*7,Bt*7+7).map((ze,Tt)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(rn.Day,rn.Cell,ze.isDisabled?rn.IsDisabled:ze.isCurrentMonth?ze.isSelected?rn.IsSelected:ze.isHovered&&rn.IsHovered:rn.IsNotCurrentMonth),isDisabled:ze.isDisabled,onClick:()=>ze.isCurrentMonth&&be(ze.date),onMouseLeave:()=>ze.isCurrentMonth&&Qe(),onMouseEnter:()=>ze.isCurrentMonth&&pe(ze.date),children:ze.day},Tt))},Bt));return Rt},[X,be,q,j,O,H,ge,Qe,pe]),Xe=A.useRef(null),tt=A.useCallback(()=>{Xe&&fm(Xe,Ue,l)},[Xe,l]),[Ge,Me]=A.useState(!1),[Ee,we]=A.useState(!1),Ue=A.useRef(null),ct=A.useCallback(()=>{g||m||(Me(!0),setTimeout(()=>we(!0),0),setTimeout(()=>tt(),0),fe(q?Kt.toString(q):""),he(()=>{const je=q??new Date;return O&&je<O?O.getMonth():H&&je>H?H.getMonth():je.getMonth()}),re(()=>{const je=q??new Date;return O&&je<O?O.getFullYear():H&&je>H?H.getFullYear():je.getFullYear()}))},[g,m,q,tt,O,H]),Ne=A.useCallback(()=>{g||m||(Me(!0),we(!1))},[g,m]),bt=A.useMemo(()=>Ee?Ne:ct,[Ee,ct,Ne]),Le=A.useCallback(()=>Me(!1),[]),Ze=A.useCallback(je=>{const yt=document.getElementById("root"),st=je.target,Rt=Ue.current,Bt=Xe.current;!yt||!Rt||!st||!Bt||!Rt.contains(st)&&yt.contains(st)&&!Bt.contains(st)&&Ne()},[Ne]);A.useEffect(()=>{if(Ee)return setTimeout(()=>document.addEventListener("mousedown",Ze),0),()=>document.removeEventListener("mousedown",Ze)},[Ee,Ze]);const ot=A.useCallback(()=>{tt()},[tt]);A.useEffect(()=>{if(!Ee||!(Xe!=null&&Xe.current))return;const je=Xe.current;let yt=je.parentElement;for(;yt;)yt.addEventListener("scroll",ot),yt=yt.parentElement;return()=>{let st=je.parentElement;for(;st;)st.removeEventListener("scroll",ot),st=st.parentElement}},[Xe,Ee,ot]),A.useEffect(()=>{if(Ee)return window.addEventListener("resize",ot),()=>window.removeEventListener("resize",ot)},[Ee,ot]);const Ct=A.useCallback(je=>{je[0].intersectionRatio===0&&Ne()},[Ne]);A.useEffect(()=>{if(!Ee)return;const je=new IntersectionObserver(Ct,{threshold:0});return Ue.current&&je.observe(Ue.current),()=>je.disconnect()},[Ue,Ee,Ct]),A.useEffect(()=>{i&&(i.current={open:ct,close:Ne,toggle:bt})},[i,ct,Ne,bt]);const _t=A.useCallback(je=>{M==null||M(je),bt()},[M,bt]),wt=A.useCallback(je=>{be(void 0),Ne(),je.stopPropagation()},[be,Ne]),xt=A.useCallback(()=>q?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:wt}):null,[q,wt]),it=A.useMemo(()=>q?Kt.toString(q):v.jsx("span",{className:rn.Placeholder,children:I}),[q,I]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...w,isLoading:m,isDisabled:g,className:Fe.clsx(rn.Anchor,"IsClickable",rn[e],t),onClick:_t,abaseRef:Xe,children:[E,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),v.jsx(mn,{w:4})]}),it,v.jsx(Qc,{}),!x&&v.jsx(xt,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),_&&_]}),(Ee||Ge)&&Hs.createPortal(v.jsxs("div",{className:rn.ADatePicker,onTransitionEnd:Le,style:{opacity:+Ee,visibility:Ee?"visible":"hidden"},ref:Ue,children:[v.jsx("div",{className:rn.StringInputContainer,children:v.jsx(tc,{maxLength:q?30:11,wrapProps:{className:rn.StringInputWrap},inputProps:{className:rn.StringInput},className:rn.String,useValue:[Y,J],placeholder:"YYYY-MM-DD"})}),v.jsxs("div",{className:rn.CalendarContainer,children:[v.jsxs(Sn,{className:rn.Header,children:[v.jsx(Fi,{type:"Raw",className:rn.Prev,onClick:le,isDisabled:ue}),v.jsxs("div",{className:rn.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[X,he],className:rn.Select,options:Kf(j,O,H),OptionRenderer:je=>b.months(je.option),SelectedRenderer:je=>b.months(je.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[j,Q],className:rn.Select,options:gm(j,O,H)})]}),v.jsx(Fi,{type:"Raw",className:rn.Next,onClick:ae,isDisabled:Se})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:rn.Calendar,children:[v.jsx("div",{className:rn.Week,children:[0,1,2,3,4,5,6].map(je=>v.jsx("div",{className:Fe.clsx(rn.WeekDay,rn.Cell),children:b.weekDays(je)},je))}),Ie]})]})]}),document.body)]})},dE="_Paper_e69j5_1",hE="_Card_e69j5_15",pE="_Body_e69j5_26",gE="_Title_e69j5_35",mE="_Content_e69j5_42",vE="_Action_e69j5_45",yE="_Button_e69j5_58",ba={Paper:dE,Card:hE,Body:pE,Title:gE,Content:mE,Action:vE,Button:yE},bE=["okCancel","cancelOk","ok","cancel","none"],_E=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:i,style:l,titleStyle:u,bodyStyle:f,contentStyle:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:E,onOk:_,onCancel:S,onClose:x,onEnterPress:M,onEscPress:w,onSpacePress:b,onPaperClick:I,noDim:O=!1,isLoading:H,isOkDisabled:q,isOkLoading:z,isCancelDisabled:Y,isCancelLoading:fe,buttonNoInteractive:X,okButtonClassName:he,cancelButtonClassName:j,resources:re}=r,Q=A.useMemo(()=>({...hn.ADialog,...re}),[re]),[J,me]=A.useState(0);A.useEffect(()=>me(1),[]);const ce=A.useCallback(()=>{me(0)},[]),be=A.useCallback(()=>{if(!J){const[,Ee]=e.state.useIsOpen;Ee==null||Ee(!1),x==null||x()}},[J,x,e]),ue=A.useCallback(async()=>{if(!J||t==="cancel"||t==="none"||H||q||z)return;const{event:Ee,e:we}=Gc();await(_==null?void 0:_(we)),!Ee.preventDefault&&ce()},[J,t,ce,_,q,H,z]),Se=A.useCallback(async()=>{if(!J||t==="ok"||t==="none"||H||Y||fe)return;const{event:Ee,e:we}=Gc();await(S==null?void 0:S(we)),!Ee.preventDefault&&ce()},[J,t,ce,S,Y,H,fe]);A.useEffect(()=>{e&&e.state.setAction({close:ce,ok:ue,cancel:Se})},[e,ce,ue,Se]);const le=A.useCallback(async()=>{const{event:Ee,e:we}=Gc();await(M==null?void 0:M(we)),!Ee.preventDefault&&ue()},[M,ue]),ae=A.useCallback(async()=>{const{event:Ee,e:we}=Gc();await(b==null?void 0:b(we)),!Ee.preventDefault&&ue()},[b,ue]),ge=A.useCallback(async()=>{const{event:Ee,e:we}=Gc();await(w==null?void 0:w(we)),!Ee.preventDefault&&Se()},[w,Se]),Pe=A.useRef(null),Qe=A.useCallback(Ee=>{const we=document.body.getElementsByClassName(ba.Paper);we.length===0||we[we.length-1]!==Pe.current||(Ee.key==="Enter"&&J?le():Ee.key===" "&&J?ae():Ee.key==="Escape"&&J&&ge())},[J,le,ae,ge]);A.useEffect(()=>{if(J)return window.addEventListener("keydown",Qe),()=>window.removeEventListener("keydown",Qe)},[J,Qe]);const pe=A.useRef(!1),Ie=A.useRef(!1),Xe=A.useCallback(()=>{pe.current=!0},[]),tt=A.useCallback(()=>{pe.current=!1,Ie.current=!1},[]),Ge=A.useCallback(()=>{Ie.current=!0},[]),Me=A.useCallback(async()=>{const Ee=!Ie.current||pe.current;if(pe.current=!1,Ie.current=!1,Ee)return;const{event:we,e:Ue}=Gc();await(I==null?void 0:I(Ue)),!we.preventDefault&&Se()},[I,Se]);return Hs.createPortal(v.jsx("div",{className:ba.Paper,style:{backgroundColor:O?"transparent":void 0,pointerEvents:J?void 0:"none",opacity:J},onMouseUp:Me,onMouseDown:Ge,onTransitionEnd:be,ref:Pe,children:v.jsxs($r,{className:ba.Card,onMouseDown:Xe,onMouseUp:tt,style:l,isLoading:H,children:[v.jsxs("div",{className:ba.Body,style:f,children:[n&&v.jsx(xE,{title:n,titleStyle:u}),i&&v.jsx("div",{className:ba.Content,style:g,children:i})]}),t!=="none"&&v.jsx(SE,{type:t,ok:ue,cancel:Se,resources:Q,isOkDisabled:q,isOkLoading:z,isCancelDisabled:Y,isCancelLoading:fe,okButtonStyle:m,cancelButtonStyle:R,actionStyle:E,buttonNoInteractive:X,okButtonClassName:he,cancelButtonClassName:j})]})}),document.body)},xE=r=>{const{title:e,titleStyle:t}=r;return v.jsx("div",{className:Fe.clsx(ba.Title,"NoSelect","Title3"),style:t,children:e})},SE=r=>{const{type:e,ok:t,cancel:n,resources:i,isOkDisabled:l,isOkLoading:u,isCancelDisabled:f,isCancelLoading:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:E,buttonNoInteractive:_,okButtonClassName:S,cancelButtonClassName:x}=r,M=A.useMemo(()=>({onClick:t,isDisabled:l,isLoading:u,children:i.Ok,style:m,noInteractive:_,className:Fe.clsx(ba.Button,S)}),[t,l,u,i.Ok,m,_,S]),w=A.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:f,isLoading:g,children:i.Cancel,style:R,noInteractive:_,className:Fe.clsx(ba.Button,x)}),[n,f,g,i.Cancel,R,_,x]);if(e==="okCancel"||e==="ok")return v.jsxs("div",{className:ba.Action,style:{...E},children:[v.jsx(Fi,{...M}),e==="okCancel"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...w})]})]},e);if(e==="cancelOk"||e==="cancel")return v.jsxs("div",{className:ba.Action,children:[v.jsx(Fi,{...w}),e==="cancelOk"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...M})]})]},e)},CE=r=>{const e=A.useMemo(()=>Math.random().toFixed(32),[]),t=A.useMemo(()=>{const S={};return r.forEach(x=>{S[x]=x+e}),S},[r,e]),n=A.useMemo(()=>[],[]),i=A.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[l,u]=A.useState([]),f=A.useRef((()=>{const S={};return i.forEach(x=>{S[x]={open:()=>u(M=>[...M,x]),close:()=>{},ok:()=>{},cancel:()=>{}}}),S})()),g=A.useMemo(()=>{const S={};return i.forEach(x=>{S[x]=M=>{u(w=>!M&&w.includes(x)?w.filter(b=>b!==x):M&&!w.includes(x)?[...w,x]:w)}}),S},[i]),m=A.useMemo(()=>{const S={};return i.forEach(x=>{const w=[l.includes(x),g[x]],b=I=>{f.current[x]={...f.current[x],...I}};S[x]={useIsOpen:w,setAction:b}}),S},[l,g,i]),R=A.useMemo(()=>{const S={};return i.forEach(x=>{const M=()=>f.current[x].open(),w=()=>f.current[x].close(),b=()=>f.current[x].ok(),I=()=>f.current[x].cancel();S[x]={open:M,close:w,ok:b,cancel:I}}),S},[i]),E=A.useMemo(()=>({}),[]),_=A.useMemo(()=>(i.forEach(S=>{E[S]={state:m[S],action:R[S]}}),E),[E,i,m,R]);return A.useEffect(()=>(Object.keys(_).forEach(x=>{const M=_[x],w=t[x],b=js.find(I=>{I.id});b?b.core=M:js.push({id:w,core:M})}),()=>{const x=Object.keys(_),M=js.filter(w=>x.includes(w.id));js.length=0,js.push(...M)}),[_,t]),_},wE=()=>{const r=A.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=A.useState(!1),n=A.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=A.useMemo(()=>({useIsOpen:[e,t],setAction:g=>{n.current={...n.current,...g}}}),[e]),l=A.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),u=A.useMemo(()=>({}),[]),f=A.useMemo(()=>(u.state=i,u.action=l,u),[u,i,l]);return A.useEffect(()=>{const g=js.find(m=>m.id===r);return g?g.core=f:js.push({id:r,core:f}),()=>{const m=js.filter(R=>R.id!==r);js.length=0,js.push(...m)}},[r,f]),f},AE=r=>{const{dlgCore:e,children:t}=r,[n,i]=A.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return A.useEffect(()=>()=>i==null?void 0:i(!1),[i]),v.jsx(A.Suspense,{children:n&&t})},TE=r=>e=>{const{dlgCore:t}=e;return v.jsx(AE,{dlgCore:t,children:A.cloneElement(v.jsx(r,{...e}),{dlgCore:t})})},js=[],EE={closeAllDlgs:()=>{js.forEach(r=>{r.core.action.close()})}},kE="_AFileBox_1hlo1_1",RE="_SelectedFile_1hlo1_16",IE="_Dropping_1hlo1_26",lh={AFileBox:kE,SelectedFile:RE,Dropping:IE},LE=r=>{const{useFile:e,FileRenderer:t=ME,SelectRenderer:n=DE,DropRenderer:i=OE,resources:l,accept:u="",onInvalidFileFormat:f,fileSelectButtonClassName:g,isDisabled:m,isLoading:R,className:E,..._}=r,S=A.useMemo(()=>({...hn.AFileBox,...l}),[l]),x=A.useRef(null),M=A.useRef(null),[w,b]=nn(e,null),[I,O]=A.useState(!1),H=A.useMemo(()=>u.split(",").map(J=>J.trim()).filter(J=>J.length>0&&J.startsWith(".")),[u]),q=A.useCallback(J=>{if(H.length===0)return!1;const me=J.name.split(".").pop();return me?!H.includes(`.${me}`):!0},[H]),z=A.useCallback(J=>{if(b)if(q(J)){f==null||f();return}else b(J);else return},[b,q,f]),Y=A.useCallback(J=>{J.target.files&&J.target.files.length>0&&z(J.target.files[0])},[z]),fe=A.useCallback(J=>{J.preventDefault(),O(!1),!(m||R)&&J.dataTransfer.files&&J.dataTransfer.files.length>0&&z(J.dataTransfer.files[0])},[z,m,R]),X=A.useCallback(J=>{J.preventDefault(),!(m||R)&&O(!0)},[m,R]),he=A.useCallback(J=>{J.target===x.current&&J.relatedTarget.contains(x.current.parentElement)&&(J.preventDefault(),O(!1))},[]),j=A.useCallback(J=>J.preventDefault(),[]),re=A.useCallback(()=>{var J;(J=M.current)==null||J.click()},[]),Q=A.useMemo(()=>I?v.jsx(i,{resources:S}):w?v.jsx(t,{file:w,useFile:e}):v.jsx(n,{onClick:re,resources:S,fileSelectButtonClassName:g}),[t,n,i,S,I,w,e,g,re]);return v.jsxs($r,{..._,isDisabled:m,isLoading:R,className:Fe.clsx(lh.AFileBox,E),onDrop:fe,onDragEnter:X,onDragLeave:he,onDragOver:j,abaseRef:x,children:[v.jsx("input",{style:{display:"none"},ref:M,type:"file",onChange:Y,value:"",accept:u}),Q]})},ME=r=>{const{file:e,useFile:t}=r,[,n]=nn(t,null);return v.jsxs(Sn,{className:lh.SelectedFile,style:{backgroundColor:""},children:[v.jsx(jr,{icon:"File"}),v.jsx(Sa,{children:e.name}),v.jsx(_i,{type:"Raw",icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},onClick:()=>n==null?void 0:n(null)})]})},DE=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return v.jsxs(Sn,{className:Fe.clsx(lh.SelectFile,"NoSelect"),children:[v.jsx(Fi,{className:n,onClick:e,children:t["Select File"]}),v.jsx(mn,{w:4}),t["or Drag & Drop"]]})},OE=r=>{const{resources:e}=r;return v.jsxs(O2,{className:Fe.clsx(lh.Dropping,"NoSelect","Headline2"),children:[v.jsx(jr,{icon:"FileDownload"}),e["drop file to select"]]})},PE="_AFileUploader_xepa3_1",NE="_LabelContainer_xepa3_13",FE="_LabelButton_xepa3_22",jE="_Disabled_xepa3_28",BE="_Delete_xepa3_35",HE="_FileSize_xepa3_39",qE="_TotalFileSize_xepa3_46",zE="_FileBox_xepa3_50",$E="_SelectRenderer_xepa3_68",UE="_ChipsContainer_xepa3_78",WE="_FileChip_xepa3_88",VE="_FileChipContent_xepa3_100",GE="_FileNameContainer_xepa3_111",ZE="_ButtonRenderer_xepa3_117",KE="_ErrorBorder_xepa3_127",YE="_ErrorColor_xepa3_131",XE="_ErrorCursor_xepa3_135",Fn={AFileUploader:PE,LabelContainer:NE,LabelButton:FE,Disabled:jE,Delete:BE,FileSize:HE,TotalFileSize:qE,FileBox:zE,SelectRenderer:$E,ChipsContainer:UE,FileChip:WE,FileChipContent:VE,FileNameContainer:GE,ButtonRenderer:ZE,ErrorBorder:KE,ErrorColor:YE,ErrorCursor:XE},JE=r=>{const{helperText:e,label:t,labelProps:n,wrapProps:i,wrapType:l,errorMessage:u,useFiles:f,accept:g,onInvalidFileFormat:m,onDownload:R,onDownloads:E,onDelete:_,type:S,limit:x=1024*1024*1024,useError:M,useStatus:w,isLoading:b,resources:I,className:O,...H}=r,q=A.useMemo(()=>({...hn.AFileUploader,...I}),[I]),[z,Y]=nn(f,void 0),[fe,X]=nn(M,!1),[he,j]=nn(w,{}),[re,Q]=A.useState(!1),J=A.useRef(null),me=A.useRef(null),ce=A.useCallback(Le=>Le.idx!==void 0?`file-${Le.idx}`:`${Le.name}-${Le.size}-${Le.lastModified||""}`,[]),be=A.useMemo(()=>(z==null?void 0:z.reduce((Le,Ze)=>Le+Ze.size,0))||0,[z]);A.useEffect(()=>{X&&X(be>x)},[be,x,X]);const ue=A.useCallback(Le=>{var Ct;if(!g||g==="*"||g==="")return!0;const Ze=g.split(",").map(_t=>_t.trim()),ot=`.${(Ct=Le.name.split(".").pop())==null?void 0:Ct.toLowerCase()}`;return Ze.includes(ot)?!0:Ze.some(_t=>{var wt;if(_t.startsWith("."))return!1;if(_t.endsWith("/*")){const xt=_t.split("/")[0];return(wt=Le.type)==null?void 0:wt.startsWith(`${xt}/`)}return Le.type===_t})},[g]),Se=A.useCallback((Le,Ze)=>{j==null||j({...he,[Le]:Ze})},[he,j]),le=A.useCallback(Le=>{const Ze=ce(Le);return he[Ze]||"Normal"},[he,ce]),ae=A.useCallback(Le=>b||le(Le)==="Loading",[b,le]),ge=A.useCallback(Le=>le(Le)==="Error"||S==="Upload"&&Le.size>x,[le,x,S]),Pe=A.useMemo(()=>z!=null&&z.length?S==="Download"?z.every(ge):!1:!0,[z,S,ge]),Qe=A.useCallback(()=>{J.current&&(J.current.value="")},[]),pe=A.useCallback(Le=>{if(!Y)return;const Ze=[];let ot=!1,Ct=[];if(Array.from(Le).forEach(_t=>{if(!ue(_t)){ot=!0,Ct.push(_t.name);return}const wt=_t;wt.idx=Date.now()+Math.floor(Math.random()*1e3),wt.state=0,Ze.push(wt)}),ot)if(m)m();else{const _t=g?g.replace(/,/g,", "):"",wt=_t?`${q["Supported file format(s)"]}: ${_t}`:"",xt=Ct.length>3?`${Ct.slice(0,3).join(", ")} ${q.and} ${Ct.length-3} ${q["more file(s)"]}`:Ct.join(", ");alert(`${q["Unsupported file format detected."]}
156
+ `+h.stack}}var Ll=t.ReactCurrentDispatcher,ua=t.ReactDebugCurrentFrame,Ml=0,co=1,Dl=2,Es=3,xu=4,Ha=0,fa=1,da=2,Tc=12800;function Su(d){return console.error(d),null}function ks(){}function Ol(d,s,c,h,y,D,F,V,ie){var Ae=[],Ye=new Set,lt={destination:null,responseState:s,progressiveChunkSize:h===void 0?Tc:h,status:Ha,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ye,pingedTasks:Ae,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:y===void 0?Su:y,onAllReady:D===void 0?ks:D,onShellReady:F===void 0?ks:F,onShellError:V===void 0?ks:V,onFatalError:ie===void 0?ks:ie},kt=qa(lt,0,null,c,!1,!1);kt.parentFlushed=!0;var tr=Po(lt,d,null,kt,Ye,Ln,Cl,gf);return Ae.push(tr),lt}function Oo(d,s){var c=d.pingedTasks;c.push(s),c.length===1&&u(function(){return Fc(d)})}function Pl(d,s){return{id:Ci,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null}}function Po(d,s,c,h,y,D,F,V){d.allPendingTasks++,c===null?d.pendingRootTasks++:c.pendingTasks++;var ie={node:s,ping:function(){return Oo(d,ie)},blockedBoundary:c,blockedSegment:h,abortSet:y,legacyContext:D,context:F,treeContext:V};return ie.componentStack=null,y.add(ie),ie}function qa(d,s,c,h,y,D){return{status:Ml,id:-1,index:s,parentFlushed:!1,chunks:[],children:[],formatContext:h,boundary:c,lastPushedText:y,textEmbedded:D}}var Zi=null;function Ki(){return Zi===null||Zi.componentStack===null?"":ca(Zi.componentStack)}function uo(d,s){d.componentStack={tag:0,parent:d.componentStack,type:s}}function za(d,s){d.componentStack={tag:1,parent:d.componentStack,type:s}}function ts(d,s){d.componentStack={tag:2,parent:d.componentStack,type:s}}function Yi(d){d.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var ha=null;function Nl(d,s){{var c;typeof s=="string"?c=s:s&&typeof s.message=="string"?c=s.message:c=String(s);var h=ha||Ki();ha=null,d.errorMessage=c,d.errorComponentStack=h}}function $a(d,s){var c=d.onError(s);if(c!=null&&typeof c!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof c+'" instead');return c}function pa(d,s){var c=d.onShellError;c(s);var h=d.onFatalError;h(s),d.destination!==null?(d.status=da,I(d.destination,s)):(d.status=fa,d.fatalError=s)}function Cu(d,s,c){uo(s,"Suspense");var h=s.blockedBoundary,y=s.blockedSegment,D=c.fallback,F=c.children,V=new Set,ie=Pl(d,V),Ae=y.chunks.length,Ye=qa(d,Ae,ie,y.formatContext,!1,!1);y.children.push(Ye),y.lastPushedText=!1;var lt=qa(d,0,null,y.formatContext,!1,!1);lt.parentFlushed=!0,s.blockedBoundary=ie,s.blockedSegment=lt;try{if(rs(d,s,F),pn(lt.chunks,d.responseState,lt.lastPushedText,lt.textEmbedded),lt.status=co,ns(ie,lt),ie.pendingTasks===0){Yi(s);return}}catch(tr){lt.status=xu,ie.forceClientRender=!0,ie.errorDigest=$a(d,tr),Nl(ie,tr)}finally{s.blockedBoundary=h,s.blockedSegment=y}var kt=Po(d,D,h,Ye,V,s.legacyContext,s.context,s.treeContext);kt.componentStack=s.componentStack,d.pingedTasks.push(kt),Yi(s)}function Ec(d,s,c,h){uo(s,c);var y=s.blockedSegment,D=gr(y.chunks,c,h,d.responseState,y.formatContext);y.lastPushedText=!1;var F=y.formatContext;y.formatContext=Si(F,c,h),rs(d,s,D),y.formatContext=F,Ar(y.chunks,c),y.lastPushedText=!1,Yi(s)}function kc(d){return d.prototype&&d.prototype.isReactComponent}function Rs(d,s,c,h,y){var D={};_c(s,D);var F=c(h,y);return ws(c,h,F,y)}function Rc(d,s,c,h,y){var D=c.render();c.props!==y&&(Lc||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",ln(h)||"a component"),Lc=!0);{var F=h.childContextTypes;if(F!=null){var V=s.legacyContext,ie=dc(c,h,V,F);s.legacyContext=ie,oi(d,s,D),s.legacyContext=V;return}}oi(d,s,D)}function Fl(d,s,c,h){ts(s,c);var y=Go(c,s.legacyContext),D=ao(c,h,y);Fa(D,c,h,y),Rc(d,s,D,c,h),Yi(s)}var mr={},Ua={},Ic={},Is={},Lc=!1,wu=!1,Mc=!1,Di=!1;function _f(d,s,c,h){var y;if(y=Go(c,s.legacyContext),za(s,c),c.prototype&&typeof c.prototype.render=="function"){var D=ln(c)||"Unknown";mr[D]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",D,D),mr[D]=!0)}var F=Rs(d,s,c,h,y),V=di();if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){var ie=ln(c)||"Unknown";Ua[ie]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ie,ie,ie),Ua[ie]=!0)}if(typeof F=="object"&&F!==null&&typeof F.render=="function"&&F.$$typeof===void 0){{var Ae=ln(c)||"Unknown";Ua[Ae]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ae,Ae,Ae),Ua[Ae]=!0)}Fa(F,c,h,y),Rc(d,s,F,c,h)}else if(jl(c),V){var Ye=s.treeContext,lt=1,kt=0;s.treeContext=mc(Ye,lt,kt);try{oi(d,s,F)}finally{s.treeContext=Ye}}else oi(d,s,F);Yi(s)}function jl(d){{if(d&&d.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),typeof d.getDerivedStateFromProps=="function"){var s=ln(d)||"Unknown";Is[s]||(i("%s: Function components do not support getDerivedStateFromProps.",s),Is[s]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var c=ln(d)||"Unknown";Ic[c]||(i("%s: Function components do not support contextType.",c),Ic[c]=!0)}}}function Bl(d,s){if(d&&d.defaultProps){var c=ki({},s),h=d.defaultProps;for(var y in h)c[y]===void 0&&(c[y]=h[y]);return c}return s}function Au(d,s,c,h,y){za(s,c.render);var D=Rs(d,s,c.render,h,y),F=di();if(F){var V=s.treeContext,ie=1,Ae=0;s.treeContext=mc(V,ie,Ae);try{oi(d,s,D)}finally{s.treeContext=V}}else oi(d,s,D);Yi(s)}function Hl(d,s,c,h,y){var D=c.type,F=Bl(D,h);Wa(d,s,D,F,y)}function Oi(d,s,c,h){c._context===void 0?c!==c.Consumer&&(Di||(Di=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):c=c._context;var y=h.children;typeof y!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var D=sa(c),F=y(D);oi(d,s,F)}function Tn(d,s,c,h){var y=c._context,D=h.value,F=h.children,V;V=s.context,s.context=hc(y,D),oi(d,s,F),s.context=ff(y),V!==s.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Dc(d,s,c,h,y){uo(s,"Lazy");var D=c._payload,F=c._init,V=F(D),ie=Bl(V,h);Wa(d,s,V,ie,y),Yi(s)}function Wa(d,s,c,h,y){if(typeof c=="function")if(kc(c)){Fl(d,s,c,h);return}else{_f(d,s,c,h);return}if(typeof c=="string"){Ec(d,s,c,h);return}switch(c){case bl:case Bi:case ye:case qe:case Ao:{oi(d,s,h.children);return}case bn:{uo(s,"SuspenseList"),oi(d,s,h.children),Yi(s);return}case uu:throw new Error("ReactDOMServer does not yet support scope components.");case Pr:{Cu(d,s,h);return}}if(typeof c=="object"&&c!==null)switch(c.$$typeof){case sr:{Au(d,s,c,h,y);return}case Wr:{Hl(d,s,c,h,y);return}case Oe:{Tn(d,s,c,h);return}case Dt:{Oi(d,s,c,h);return}case Js:{Dc(d,s,c,h);return}}var D="";throw(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(D+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(c==null?c:typeof c)+"."+D))}function ql(d,s){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(wu||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),wu=!0),d.entries===s&&(Mc||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mc=!0)}function oi(d,s,c){try{return Oc(d,s,c)}catch(h){throw typeof h=="object"&&h!==null&&typeof h.then=="function"||(ha=ha!==null?ha:Ki()),h}}function Oc(d,s,c){if(s.node=c,typeof c=="object"&&c!==null){switch(c.$$typeof){case cu:{var h=c,y=h.type,D=h.props,F=h.ref;Wa(d,s,y,D,F);return}case yl:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Js:{var V=c,ie=V._payload,Ae=V._init,Ye;try{Ye=Ae(ie)}catch(po){throw typeof po=="object"&&po!==null&&typeof po.then=="function"&&uo(s,"Lazy"),po}oi(d,s,Ye);return}}if(Wt(c)){Pc(d,s,c);return}var lt=Wo(c);if(lt){ql(c,lt);var kt=lt.call(c);if(kt){var tr=kt.next();if(!tr.done){var Dr=[];do Dr.push(tr.value),tr=kt.next();while(!tr.done);Pc(d,s,Dr);return}return}}var Wn=Object.prototype.toString.call(c);throw new Error("Objects are not valid as a React child (found: "+(Wn==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":Wn)+"). If you meant to render a collection of children, use an array instead.")}if(typeof c=="string"){var is=s.blockedSegment;is.lastPushedText=sn(s.blockedSegment.chunks,c,d.responseState,is.lastPushedText);return}if(typeof c=="number"){var ho=s.blockedSegment;ho.lastPushedText=sn(s.blockedSegment.chunks,""+c,d.responseState,ho.lastPushedText);return}typeof c=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Pc(d,s,c){for(var h=c.length,y=0;y<h;y++){var D=s.treeContext;s.treeContext=mc(D,h,y);try{rs(d,s,c[y])}finally{s.treeContext=D}}}function zl(d,s,c){var h=s.blockedSegment,y=h.chunks.length,D=qa(d,y,null,h.formatContext,h.lastPushedText,!0);h.children.push(D),h.lastPushedText=!1;var F=Po(d,s.node,s.blockedBoundary,D,s.abortSet,s.legacyContext,s.context,s.treeContext);s.componentStack!==null&&(F.componentStack=s.componentStack.parent);var V=F.ping;c.then(V,V)}function rs(d,s,c){var h=s.blockedSegment.formatContext,y=s.legacyContext,D=s.context,F=null;F=s.componentStack;try{return oi(d,s,c)}catch(V){if(xc(),typeof V=="object"&&V!==null&&typeof V.then=="function"){zl(d,s,V),s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=D,Yo(D),s.componentStack=F;return}else throw s.blockedSegment.formatContext=h,s.legacyContext=y,s.context=D,Yo(D),s.componentStack=F,V}}function No(d,s,c,h){var y=$a(d,h);if(s===null?pa(d,h):(s.pendingTasks--,s.forceClientRender||(s.forceClientRender=!0,s.errorDigest=y,Nl(s,h),s.parentFlushed&&d.clientRenderedBoundaries.push(s))),d.allPendingTasks--,d.allPendingTasks===0){var D=d.onAllReady;D()}}function xf(d){var s=this,c=d.blockedBoundary,h=d.blockedSegment;h.status=Es,ga(s,c,h)}function fo(d,s,c){var h=d.blockedBoundary,y=d.blockedSegment;if(y.status=Es,h===null)s.allPendingTasks--,s.status!==da&&(s.status=da,s.destination!==null&&x(s.destination));else{if(h.pendingTasks--,!h.forceClientRender){h.forceClientRender=!0;var D=c===void 0?new Error("The render was aborted by the server without a reason."):c;h.errorDigest=s.onError(D);{var F="The server did not finish this Suspense boundary: ";D&&typeof D.message=="string"?D=F+D.message:D=F+String(D);var V=Zi;Zi=d;try{Nl(h,D)}finally{Zi=V}}h.parentFlushed&&s.clientRenderedBoundaries.push(h)}if(h.fallbackAbortableTasks.forEach(function(Ae){return fo(Ae,s,c)}),h.fallbackAbortableTasks.clear(),s.allPendingTasks--,s.allPendingTasks===0){var ie=s.onAllReady;ie()}}}function ns(d,s){if(s.chunks.length===0&&s.children.length===1&&s.children[0].boundary===null){var c=s.children[0];c.id=s.id,c.parentFlushed=!0,c.status===co&&ns(d,c)}else{var h=d.completedSegments;h.push(s)}}function ga(d,s,c){if(s===null){if(c.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=c}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=ks;var h=d.onShellReady;h()}}else if(s.pendingTasks--,!s.forceClientRender){if(s.pendingTasks===0)c.parentFlushed&&c.status===co&&ns(s,c),s.parentFlushed&&d.completedBoundaries.push(s),s.fallbackAbortableTasks.forEach(xf,d),s.fallbackAbortableTasks.clear();else if(c.parentFlushed&&c.status===co){ns(s,c);var y=s.completedSegments;y.length===1&&s.parentFlushed&&d.partialBoundaries.push(s)}}if(d.allPendingTasks--,d.allPendingTasks===0){var D=d.onAllReady;D()}}function Nc(d,s){var c=s.blockedSegment;if(c.status===Ml){Yo(s.context);var h=null;h=Zi,Zi=s;try{oi(d,s,s.node),pn(c.chunks,d.responseState,c.lastPushedText,c.textEmbedded),s.abortSet.delete(s),c.status=co,ga(d,s.blockedBoundary,c)}catch(D){if(xc(),typeof D=="object"&&D!==null&&typeof D.then=="function"){var y=s.ping;D.then(y,y)}else s.abortSet.delete(s),c.status=xu,No(d,s.blockedBoundary,c,D)}finally{Zi=h}}}function Fc(d){if(d.status!==da){var s=hu(),c=Ll.current;Ll.current=Pn;var h;h=ua.getCurrentStack,ua.getCurrentStack=Ki;var y=Ts;Il(d.responseState);try{var D=d.pingedTasks,F;for(F=0;F<D.length;F++){var V=D[F];Nc(d,V)}D.splice(0,F),d.destination!==null&&si(d,d.destination)}catch(ie){$a(d,ie),pa(d,ie)}finally{Il(y),Ll.current=c,ua.getCurrentStack=h,c===Pn&&Yo(s)}}}function Va(d,s,c){switch(c.parentFlushed=!0,c.status){case Ml:{var h=c.id=d.nextSegmentId++;return c.lastPushedText=!1,c.textEmbedded=!1,Br(s,d.responseState,h)}case co:{c.status=Dl;for(var y=!0,D=c.chunks,F=0,V=c.children,ie=0;ie<V.length;ie++){for(var Ae=V[ie];F<Ae.index;F++)E(s,D[F]);y=$l(d,s,Ae)}for(;F<D.length-1;F++)E(s,D[F]);return F<D.length&&(y=_(s,D[F])),y}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function $l(d,s,c){var h=c.boundary;if(h===null)return Va(d,s,c);if(h.parentFlushed=!0,h.forceClientRender)return $n(s,d.responseState,h.errorDigest,h.errorMessage,h.errorComponentStack),Va(d,s,c),Ea(s,d.responseState);if(h.pendingTasks>0){h.rootSegmentID=d.nextSegmentId++,h.completedSegments.length>0&&d.partialBoundaries.push(h);var y=h.id=kn(d.responseState);return So(s,d.responseState,y),Va(d,s,c),Ai(s,d.responseState)}else{if(h.byteSize>d.progressiveChunkSize)return h.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(h),So(s,d.responseState,h.id),Va(d,s,c),Ai(s,d.responseState);Wi(s,d.responseState);var D=h.completedSegments;if(D.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var F=D[0];return $l(d,s,F),Kr(s,d.responseState)}}function jc(d,s,c){return au(s,d.responseState,c.id,c.errorDigest,c.errorMessage,c.errorComponentStack)}function Ga(d,s,c){return ar(s,d.responseState,c.formatContext,c.id),$l(d,s,c),Gr(s,c.formatContext)}function Tu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var D=h[y];Bc(d,s,c,D)}return h.length=0,Ra(s,d.responseState,c.id,c.rootSegmentID)}function Eu(d,s,c){for(var h=c.completedSegments,y=0;y<h.length;y++){var D=h[y];if(!Bc(d,s,c,D))return y++,h.splice(0,y),!1}return h.splice(0,y),!0}function Bc(d,s,c,h){if(h.status===Dl)return!0;var y=h.id;if(y===-1){var D=h.id=c.rootSegmentID;if(D===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ga(d,s,h)}else return Ga(d,s,h),of(s,d.responseState,y)}function si(d,s){R();try{var c=d.completedRootSegment;c!==null&&d.pendingRootTasks===0&&($l(d,s,c),d.completedRootSegment=null,Jr(s,d.responseState));var h=d.clientRenderedBoundaries,y;for(y=0;y<h.length;y++){var D=h[y];jc(d,s,D)}h.splice(0,y);var F=d.completedBoundaries;for(y=0;y<F.length;y++){var V=F[y];Tu(d,s,V)}F.splice(0,y),S(s),R(s);var ie=d.partialBoundaries;for(y=0;y<ie.length;y++){var Ae=ie[y];if(!Eu(d,s,Ae)){d.destination=null,y++,ie.splice(0,y);return}}ie.splice(0,y);var Ye=d.completedBoundaries;for(y=0;y<Ye.length;y++){var lt=Ye[y];Tu(d,s,lt)}Ye.splice(0,y)}finally{S(s),d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),x(s))}}function Xi(d){u(function(){return Fc(d)})}function Sf(d,s){if(d.status===fa){d.status=da,I(s,d.fatalError);return}if(d.status!==da&&d.destination===null){d.destination=s;try{si(d,s)}catch(c){$a(d,c),pa(d,c)}}}function ku(d,s){try{var c=d.abortableTasks;c.forEach(function(h){return fo(h,d,s)}),c.clear(),d.destination!==null&&si(d,d.destination)}catch(h){$a(d,h),pa(d,h)}}function Ul(d,s){return new Promise(function(c,h){var y,D,F=new Promise(function(kt,tr){D=kt,y=tr});function V(){var kt=new ReadableStream({type:"bytes",pull:function(tr){Sf(Ae,tr)},cancel:function(tr){ku(Ae)}},{highWaterMark:0});kt.allReady=F,c(kt)}function ie(kt){F.catch(function(){}),h(kt)}var Ae=Ol(d,Cn(s?s.identifierPrefix:void 0,s?s.nonce:void 0,s?s.bootstrapScriptContent:void 0,s?s.bootstrapScripts:void 0,s?s.bootstrapModules:void 0),hi(s?s.namespaceURI:void 0),s?s.progressiveChunkSize:void 0,s?s.onError:void 0,D,V,ie,y);if(s&&s.signal){var Ye=s.signal,lt=function(){ku(Ae,Ye.reason),Ye.removeEventListener("abort",lt)};Ye.addEventListener("abort",lt)}Xi(Ae)})}Ad.renderToReadableStream=Ul,Ad.version=e}()),Ad}var Yv;function W4(){if(Yv)return Vl;Yv=1;var r,e;return process.env.NODE_ENV==="production"?(r=q4(),e=z4()):(r=$4(),e=U4()),Vl.version=r.version,Vl.renderToString=r.renderToString,Vl.renderToStaticMarkup=r.renderToStaticMarkup,Vl.renderToNodeStream=r.renderToNodeStream,Vl.renderToStaticNodeStream=r.renderToStaticNodeStream,Vl.renderToReadableStream=e.renderToReadableStream,Vl}var Y_=W4();const Ns=al(Y_);function Nf(r,e,t){return e!==void 0&&r<e?e:t!==void 0&&r>t?t:r}const Zc={_canvas:null,_cache:new Map,_fontCache:{value:"",timestamp:0},_charWidthMap:new Map,clearCache(){this._cache.clear(),this._canvas=null,this._fontCache={value:"",timestamp:0},this._charWidthMap.clear()},getDefaultFont(){const r=Date.now();if(this._fontCache.value&&r-this._fontCache.timestamp<3e5)return this._fontCache.value;try{const e=getComputedStyle(document.documentElement).getPropertyValue("--Font").trim()||"400 14px pretendard";return this._fontCache={value:e,timestamp:r},e}catch{return"400 14px pretendard"}},measureCharWidth(r,e){var i,l,u,f,g,m;const t=`${r}|${e}`;if(this._charWidthMap.has(t))return this._charWidthMap.get(t);try{this._canvas||(this._canvas=document.createElement("canvas"));const R=this._canvas.getContext("2d");if(R){R.font=e;const E=R.measureText(r).width;return this._charWidthMap.set(t,E),E}}catch{}let n;return r===" "?n=parseInt(((i=e.match(/(\d+)px/))==null?void 0:i[1])||"14")/3:/^[A-Z]$/.test(r)?n=parseInt(((l=e.match(/(\d+)px/))==null?void 0:l[1])||"14")*.67:/^[a-z]$/.test(r)?n=parseInt(((u=e.match(/(\d+)px/))==null?void 0:u[1])||"14")*.5:/^\d$/.test(r)?n=parseInt(((f=e.match(/(\d+)px/))==null?void 0:f[1])||"14")*.6:/^[.,;:!?]$/.test(r)?n=parseInt(((g=e.match(/(\d+)px/))==null?void 0:g[1])||"14")*.25:n=parseInt(((m=e.match(/(\d+)px/))==null?void 0:m[1])||"14")*.67,this._charWidthMap.set(t,n),n},extractTextFromNode(r){if(r==null)return"";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return`${r}`;if(Array.isArray(r))return r.map(e=>this.extractTextFromNode(e)).join("");if(A.isValidElement(r))try{const t=Y_.renderToString(r).replace(/<[^>]*>/g,""),n=document.createElement("div");return n.innerHTML=t,n.textContent||""}catch{return r.props&&r.props.children?this.extractTextFromNode(r.props.children):""}return""},measureTextWidth(r,e){var l;if(!r)return 0;const t=e||this.getDefaultFont(),n=`${r}|${t}`,i=this._cache.get(n);if(i!==void 0)return i;try{this._canvas||(this._canvas=document.createElement("canvas"));const u=this._canvas.getContext("2d");if(u){u.font=t;const f=u.measureText(r),g=Math.ceil(f.width);return this._cache.size>=300&&[...this._cache.keys()].slice(0,50).forEach(R=>this._cache.delete(R)),this._cache.set(n,g),g}}catch{}try{const u=document.createElement("span");u.style.font=t,u.style.position="absolute",u.style.visibility="hidden",u.style.whiteSpace="nowrap",u.textContent=r,document.body.appendChild(u);const f=Math.ceil(u.getBoundingClientRect().width);return document.body.removeChild(u),this._cache.set(n,f),f}catch{}try{let u=0;for(let g=0;g<r.length;g++)u+=this.measureCharWidth(r[g],t);u*=.95;const f=Math.ceil(u);return this._cache.set(n,f),f}catch{}try{const u=parseInt(((l=t.match(/(\d+)px/))==null?void 0:l[1])||"14");let f=0;for(let m=0;m<r.length;m++){const R=r[m];R===" "?f+=.33:/^[A-Z]$/.test(R)?f+=.67:/^[a-z]$/.test(R)?f+=.5:/^\d$/.test(R)?f+=.6:/^[.,;:!?]$/.test(R)?f+=.25:f+=.67}const g=Math.ceil(f*u);return this._cache.set(n,g),g}catch{const f=r.length*10;return this._cache.set(n,f),f}},measureTextWithElementStyle(r,e){if(!e)return 0;try{const t=window.getComputedStyle(r),n=t.getPropertyValue("--Font").trim()||`${t.fontWeight} ${t.fontSize} ${t.fontFamily}`;return this.measureTextWidth(e,n)}catch{return this.measureTextWidth(e)}},measureReactNodeWidth(r){const e=this.extractTextFromNode(r);return this.measureTextWidth(e)},measureRenderedOptionWidth(r,e){if(r==null)return 0;const t=e(r),n=this.extractTextFromNode(t);return this.measureTextWidth(n)},calculateOptimalSelectWidth({elementRef:r,options:e=[],selectedOption:t=null,selectedOptions:n=[],placeholder:i="",optionRenderer:l,type:u="Primary",isMulti:f=!1}){if(!r.current)return 200;try{let g=0;if(e&&e.length>0){const S=[...e.length>0?[e[0]]:[],...e.length>1?[e[e.length-1]]:[],...e.length>10?Array.from({length:8},(M,w)=>e[Math.floor(w*e.length/8)]):e,...e.length>20?Array.from({length:5},()=>e[Math.floor(Math.random()*e.length)]):[]],x=Array.from(new Set(S.filter(Boolean)));for(const M of x){if(!M)continue;const w=this.measureRenderedOptionWidth(M,l);g=Math.max(g,w)}}let m=0;if(!f&&t)m=this.measureRenderedOptionWidth(t,l);else if(f&&n&&n.length){if(n.length===1)m=this.measureRenderedOptionWidth(n[0],l);else if(m=this.measureTextWidth(`${n.length} selected`),n.length>0){let S=0;for(const x of n){const M=this.measureRenderedOptionWidth(x,l);S=Math.max(S,M)}m=Math.max(m,S)}}let R=0;i&&(R=this.measureReactNodeWidth(i));const _=Math.max(g,m,R,50);if(r.current){const S=window.getComputedStyle(r.current),x=parseFloat(S.paddingLeft||"0")+parseFloat(S.paddingRight||"0"),M=parseFloat(S.borderLeftWidth||"0")+parseFloat(S.borderRightWidth||"0"),w=u==="Primary"?30:20,b=f?24:0,I=Math.ceil(_*.05)+10;return Math.ceil(_+x+M+w+b+I)}return _+60}catch{return 200}}};var yi=(r=>(r.N="North",r.S="South",r.E="East",r.W="West",r))(yi||{}),ef=(r=>(r.N="North",r.NW="NorthWest",r.NE="NorthEast",r.S="South",r.SW="SouthWest",r.SE="SouthEast",r.E="East",r.EN="EastNorth",r.ES="EastSouth",r.W="West",r.WN="WestNorth",r.WS="WestSouth",r))(ef||{});function fm(r,e,t,n){if(!r.current||!e.current)return;const i=r.current.getBoundingClientRect(),l=e.current.getBoundingClientRect();let u={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":u=l?{bottom:window.innerHeight-i.top,left:i.left+i.width/2-l.width/2}:{bottom:window.innerHeight-i.top,left:i.left};break;case"NorthWest":u={bottom:window.innerHeight-i.top,left:i.left};break;case"NorthEast":u={bottom:window.innerHeight-i.top,right:window.innerWidth-i.left-i.width};break;case"South":u=l?{top:i.bottom,left:i.left+i.width/2-l.width/2}:{top:i.bottom,left:i.left};break;case"SouthWest":u={top:i.bottom,left:i.left};break;case"SouthEast":u={top:i.bottom,right:window.innerWidth-i.left-i.width};break;case"East":u=l?{top:i.top+i.height/2-l.height/2,left:i.right}:{top:i.top,left:i.right};break;case"EastNorth":u={bottom:window.innerHeight-i.top-i.height,left:i.right};break;case"EastSouth":u={top:i.top,left:i.right};break;case"West":u=l?{top:i.top+i.height/2-l.height/2,right:window.innerWidth-i.left}:{top:i.top,right:window.innerWidth-i.left};break;case"WestNorth":u={bottom:window.innerHeight-i.top-i.height,right:window.innerWidth-i.left};break;case"WestSouth":u={top:i.top,right:window.innerWidth-i.left};break;default:u={top:i.top,left:i.left}}n&&(n.x&&u.left&&(u.left+=n.x),n.y&&u.top&&(u.top+=n.y)),u=J_(u,l),e.current.style.top=u.top+"px",e.current.style.left=u.left+"px",e.current.style.bottom=u.bottom+"px",e.current.style.right=u.right+"px"}function X_(r,e,t,n){if(!r)return;const i=e instanceof HTMLElement?e:e==null?void 0:e.current;if(!i)return;const l=r.getBoundingClientRect(),u=i.getBoundingClientRect();let f={bottom:void 0,left:void 0,right:void 0,top:void 0};switch(t){case"North":f=u?{bottom:window.innerHeight-l.top,left:l.left+l.width/2-u.width/2}:{bottom:window.innerHeight-l.top,left:l.left};break;case"NorthWest":f={bottom:window.innerHeight-l.top,left:l.left};break;case"NorthEast":f={bottom:window.innerHeight-l.top,right:window.innerWidth-l.left-l.width};break;case"South":f=u?{top:l.bottom,left:l.left+l.width/2-u.width/2}:{top:l.bottom,left:l.left};break;case"SouthWest":f={top:l.bottom,left:l.left};break;case"SouthEast":f={top:l.bottom,right:window.innerWidth-l.left-l.width};break;case"East":f=u?{top:l.top+l.height/2-u.height/2,left:l.right}:{top:l.top,left:l.right};break;case"EastNorth":f={bottom:window.innerHeight-l.top-l.height,left:l.right};break;case"EastSouth":f={top:l.top,left:l.right};break;case"West":f=u?{top:l.top+l.height/2-u.height/2,right:window.innerWidth-l.left}:{top:l.top,right:window.innerWidth-l.left};break;case"WestNorth":f={bottom:window.innerHeight-l.top-l.height,right:window.innerWidth-l.left};break;case"WestSouth":f={top:l.top,right:window.innerWidth-l.left};break;default:f={top:l.top,left:l.left}}return n&&(n.x&&f.left&&(f.left+=n.x),n.y&&f.top&&(f.top+=n.y)),f=J_(f,u),i.style.top=f.top+"px",i.style.left=f.left+"px",i.style.bottom=f.bottom+"px",i.style.right=f.right+"px",f}function J_(r,e,t=10){return r.left&&r.left<t&&(r.left=t),r.right&&r.right<t&&(r.right=t),r.top&&r.top<t&&(r.top=t),r.bottom&&r.bottom<t&&(r.bottom=t),r.left&&e&&r.left+e.width>window.innerWidth-t&&(r.left=window.innerWidth-e.width-t),r.right&&e&&r.right+e.width>window.innerWidth-t&&(r.right=window.innerWidth-e.width-t),r.top&&e&&r.top+e.height>window.innerHeight-t&&(r.top=window.innerHeight-e.height-t),r.bottom&&e&&r.bottom+e.height>window.innerHeight-t&&(r.bottom=window.innerHeight-e.height-t),r}function Gc(){const r={preventDefault:!1};return{event:r,e:{preventDefault:()=>r.preventDefault=!0}}}const V4="_Tooltip_3l8se_1",G4="_Arrow_3l8se_17",Xv={Tooltip:V4,Arrow:G4},Q_=r=>{const{tooltip:e,targetRef:t,delay:n=0,distance:i=10,direction:l=yi.S}=r,[u,f]=A.useState(!1),g=A.useRef(null),m=A.useRef(null),R=A.useRef(),E=A.useCallback(()=>{f(!0),R.current&&(clearTimeout(R.current),R.current=void 0);const M=setTimeout(()=>Jv(t,g,m,i,l),n);R.current=M},[t,n,i,l]),_=A.useCallback(()=>f(!1),[]);A.useEffect(()=>{const M=t.current;if(M)return M.addEventListener("mouseenter",E),M.addEventListener("mouseleave",_),()=>{M.removeEventListener("mouseenter",E),M.removeEventListener("mouseleave",_)}},[t,_,E]);const S=A.useCallback(()=>{Jv(t,g,m,i,l)},[t,i,l]);A.useEffect(()=>{if(!t.current||!g.current||!u)return;const M=t.current.parentElement;let w=M;for(;w;)w.addEventListener("scroll",S),w=w.parentElement;return()=>{let b=M;for(;b;)b.removeEventListener("scroll",S),b=b.parentElement}},[t,S,u]),A.useEffect(()=>{S()},[e,S]);const x=A.useMemo(()=>{switch(typeof e){case"boolean":return!0;case"string":return e==="";case"number":return!1;default:return!e}},[e]);return!u||x?null:Hs.createPortal(v.jsxs("div",{className:Fe.clsx(Xv.Tooltip,"NoSelect"),ref:g,children:[e,v.jsx("div",{ref:m,className:Xv.Arrow})]}),document.body)},Td="5px solid var(--ATooltip_background-color)";function Jv(r,e,t,n,i=yi.S){if(!r.current||!e.current||!t.current)return;const l=Z4(r.current,e.current,n,i);if(!l)return;const{left:u,top:f,arrowDir:g,arrow:m}=l;e.current.style.left=`${u}px`,e.current.style.top=`${f}px`,e.current.style.visibility="visible",e.current.style.opacity="1",t.current.style.border="5px solid transparent",g===yi.N?(t.current.style.top="-9px",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderBottom=Td):g===yi.S?(t.current.style.top="100%",t.current.style.left=`calc(50% - 5px + ${m.left??0}px)`,t.current.style.borderTop=Td):g===yi.W?(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="-9px",t.current.style.borderRight=Td):g===yi.E&&(t.current.style.top=`calc(50% - 5px + ${m.top??0}px)`,t.current.style.left="100%",t.current.style.borderLeft=Td)}const Gl=5;function Z4(r,e,t,n){const i=r.getBoundingClientRect(),l=e.getBoundingClientRect();function u(){if(window.innerHeight-i.bottom>l.height+t){const R=i.bottom+t,E=i.left+(i.width-l.width)/2,_=Nf(E,Gl,window.innerWidth-Gl-l.width),S=yi.N;return{left:_,top:R,arrowDir:S,arrow:{left:E-_}}}}function f(){if(i.top>l.height+t){const R=i.top-l.height-t,E=i.left+(i.width-l.width)/2,_=Nf(E,Gl,window.innerWidth-Gl-l.width),S=yi.S;return{left:_,top:R,arrowDir:S,arrow:{left:E-_}}}}function g(){if(window.innerWidth-i.right>l.width+t){const R=i.right+t,E=i.top+(i.height-l.height)/2,_=Nf(E,Gl,window.innerHeight-Gl-l.height),S=yi.W;return{left:R,top:_,arrowDir:S,arrow:{top:E-_}}}}function m(){if(i.left>l.width+t){const R=i.left-l.width-t,E=i.top+(i.height-l.height)/2,_=Nf(E,Gl,window.innerHeight-Gl-l.height),S=yi.E;return{left:R,top:_,arrowDir:S,arrow:{top:E-_}}}}if(n===yi.E)return g()||m()||u()||f();if(n===yi.S)return u()||f()||g()||m();if(n===yi.W)return m()||g()||u()||f();if(n===yi.N)return f()||u()||g()||m()}const K4="_ABase_xbi52_1",Y4="_UseDimming_xbi52_6",X4="_Dimmer_xbi52_6",J4="_Spinner_xbi52_9",Q4="_Dimmed_xbi52_12",e5="_IsDimmed_xbi52_33",t5="_IsLoading_xbi52_38",r5="_IsDisabled_xbi52_43",Rf={ABase:K4,UseDimming:Y4,Dimmer:X4,Spinner:J4,Dimmed:Q4,IsDimmed:e5,IsLoading:t5,IsDisabled:r5},$r=r=>{const{children:e,abaseRef:t,isDisabled:n,isLoading:i,isDimmed:l,tooltip:u,tooltipDistance:f=10,tooltipDelay:g=0,tooltipDirection:m=yi.S,...R}=r,E=A.useRef(null),_=A.useMemo(()=>t??E,[t]),S=A.useMemo(()=>typeof n=="string"&&n!==""?n:u!==void 0?u:"",[n,u]),x=A.useMemo(()=>n||i||l,[n,i,l]),M=A.useMemo(()=>n!==void 0||i!==void 0||l!==void 0,[n,i,l]);return v.jsxs("div",{...R,className:Fe.clsx(R.className,Rf.ABase,M&&Rf.UseDimming,x&&Rf.Dimmed),ref:_,children:[e,M&&v.jsx("div",{className:Fe.sclsx(Rf,"Dimmer",n&&"IsDisabled",i&&"IsLoading",l&&"IsDimmed")}),i&&v.jsx("div",{className:Fe.sclsx(Rf,"Spinner",n&&"IsDisabled",i&&"IsLoading"),children:v.jsx(jr,{icon:"Spinner"})}),v.jsx(Q_,{tooltip:S,delay:g,distance:f,direction:m,targetRef:_})]})},n5="_AButton_vulhu_1",i5="_Primary_vulhu_14",o5="_Secondary_vulhu_19",s5="_Alter_vulhu_24",a5="_AIconButton_vulhu_30",l5="_AThemeButton_vulhu_71",Zf={AButton:n5,Primary:i5,Secondary:o5,Alter:s5,AIconButton:a5,AThemeButton:l5},c5=["Primary","Secondary","Alter","Raw"],Fi=r=>{const{type:e="Primary",onClick:t,noInteractive:n,...i}=r,l=A.useMemo(()=>i.isDisabled||i.isLoading,[i.isDisabled,i.isLoading]),u=A.useCallback(f=>{l||t==null||t(f)},[l,t]);return v.jsx($r,{...i,className:Fe.clsx(i.className,Zf.AButton,e!=="Raw"&&Zf[e],"IsClickable",!l&&!n&&"IsInteractive"),onClick:u})},u5=["Primary","Secondary","Raw"],_i=r=>{const{icon:e,iconSize:t,type:n="Primary",onClick:i,isDisabled:l,isLoading:u,tooltip:f,className:g,...m}=r,R=A.useMemo(()=>l||u,[l,u]),E=A.useCallback(S=>{R||i==null||i(S)},[R,i]),_=A.useMemo(()=>um.includes(e)?v.jsx(jr,{icon:e,size:t}):e,[e,t]);return v.jsx($r,{className:Fe.clsx(Zf.AIconButton,!l&&!u&&"IsClickable",n!=="Raw"&&Zf[n],g),onClick:E,isDisabled:l,isLoading:u,tooltip:f,...m,children:_})};function nn(r,e){r!==void 0&&r.length===1&&(e=r[0]);const t=A.useState(e);return A.useMemo(()=>r===void 0||r.length===1?t:r,[t,r])}const f5={Ok:"Ok",Cancel:"Cancel"},d5={"select n":r=>v.jsxs(v.Fragment,{children:["Select ",r]}),"deselect n":r=>v.jsxs(v.Fragment,{children:["Deselect ",r]}),"Search(Placeholder)":"Search","Search(Button)":"Search",Items:"Items","*Click row for single select":"*Click row for single select","*Change order to row drag":"*Change order to row drag","Loading Contents...":"Loading Contents..."},h5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select Date":"Select Date"},p5={weekDays:r=>["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][r],months:r=>["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r],"Select DateRange":"Select DateRange","1일":"1 Day","1주일":"1 Week","1개월":"1 Month","3개월":"3 Months"},g5={"drop file to select":"Drop file to select","or Drag & Drop":"or Drag & Drop","Select File":"Select File"},m5={"Checked n items":r=>v.jsxs(v.Fragment,{children:["Checked ",r," items"]}),"Searched n items":r=>v.jsxs(v.Fragment,{children:["Searched ",r," items"]}),"Total n items":r=>v.jsxs(v.Fragment,{children:["Total ",r," items"]}),"Sort by x":r=>v.jsxs(v.Fragment,{children:["Sort by ",r]}),"Sort up":"Sort up","Sort down":"Sort down",Asc:"Asc",Desc:"Desc","Search(Placeholder)":"Search","Search(Button)":"Search","Clear(Button)":"Clear",Select:"Select","Toggle Filter":"Toggle Filter","No Items":"No Items"},v5={"Select(Placeholder)":"Select"},y5={"Select(Placeholder)":"Select"},b5={"Insert Column Right":"Insert Column Right","Insert Column Left":"Insert Column Left","Insert Row Top":"Insert Row Top","Insert Row Bottom":"Insert Row Bottom","Delete Column":"Delete Column","Delete Row":"Delete Row","Delete Table":"Delete Table","Image size adjust":"Image size adjust",Center:"Center",floatLeft:"Left",floatRight:"Right","Input on mouse down":"Input on mouse down",Restore:"Restore","Right click to open properties":"Right click to open properties",Default:"Default"},_5={Asterisk:"Required field"},x5={Delete:"Delete","Fail Download":"Fail Download",Download:"Download","Drop file to select":"Drop file to select","Insert File":"Insert File","Download All":"Download All","Delete All":"Delete All","Unsupported file format detected.":"Unsupported file format detected.","Invalid file(s)":"Invalid file(s)","Supported file format(s)":"Supported file format(s)",and:"and","more file(s)":"more file(s)"},hn={ADialog:f5,ATree:d5,ADatePicker:h5,ADateRangePicker:p5,AFileBox:g5,ATable:m5,ASelect:v5,AMultiSelect:y5,AEditor:b5,AWrap:_5,AFileUploader:x5};function S5(r,e){er.keys(e).forEach(t=>{r[t]=e[t]})}const C5=(r,e)=>{S5(hn[r],e)},w5="_AWrap_16uyn_1",A5="_Label_16uyn_8",T5="_Asterisk_16uyn_19",E5="_HelperTextConatiner_16uyn_23",k5="_HelperText_16uyn_23",Du={AWrap:w5,Label:A5,Asterisk:T5,HelperTextConatiner:E5,HelperText:k5,Error:"_Error_16uyn_38"},R5=["Default","Error"],ec=r=>{const{wrapProps:e,errorMessage:t,helperText:n,wrapType:i="Default",label:l,labelProps:u,children:f}=r,g=A.useRef(null),[m,R]=A.useState({height:0}),E=A.useRef(null),[_,S]=A.useMemo(()=>{let M=n,w=i;if(Array.isArray(t)){const b=t.filter(Boolean);b.length>0&&([M,w]=[b,"Error"])}else t&&([M,w]=[t,"Error"]);return Array.isArray(M)&&(w!=="Error"&&(M=M.filter(Boolean)),M=M.map((b,I)=>v.jsxs(A.Fragment,{children:[b,v.jsx("br",{})]},I))),[M,w]},[n,t,i]);A.useEffect(()=>{if(!_||!g.current)R({height:0});else{const M=g.current.getBoundingClientRect();R({height:M.height,marginTop:M.height===0?0:6})}},[_]);const x=A.useMemo(()=>{switch(typeof(u==null?void 0:u.prefix)){case"string":return v.jsx(jr,{width:"1rem",height:"1rem",icon:u.prefix});case"boolean":return v.jsx(jr,{width:10,height:10,icon:"Target"});default:return u==null?void 0:u.prefix}},[u==null?void 0:u.prefix]);return v.jsxs("div",{...e,className:Fe.clsx(e==null?void 0:e.className,Du.AWrap),ref:E,children:[l&&v.jsxs("div",{className:Fe.clsx(Du.Label,"NoSelect",u==null?void 0:u.className),style:u==null?void 0:u.style,children:[x,l,(u==null?void 0:u.asterisk)&&v.jsx($r,{tooltip:hn.AWrap.Asterisk,className:Du.Asterisk,children:"*"})]}),f,_!==void 0&&v.jsx("div",{className:Fe.clsx(Du.HelperTextConatiner,"NoSelect"),style:m,children:v.jsx("div",{className:Fe.clsx(Du.HelperText,Du[S]),ref:g,children:_})})]})},I5="_ASwitch_1uv2e_1",L5="_Track_1uv2e_6",M5="_Truthy_1uv2e_13",D5="_Thumb_1uv2e_17",If={ASwitch:I5,Track:L5,Truthy:M5,Thumb:D5},e2=r=>{const{wrapProps:e,helperText:t,label:n,useCheck:i,...l}=r,[u,f]=nn(i,!1),g=A.useCallback(m=>{var R;l.isDisabled||l.isLoading||(f==null||f(!u),(R=l.onClick)==null||R.call(l,m))},[l,u,f]);return v.jsx(ec,{helperText:t,label:n,wrapProps:{...e},children:v.jsx($r,{...l,className:If.ASwitch,onClick:g,children:v.jsx("div",{className:Fe.clsx(If.Track,u&&If.Truthy),children:v.jsx("div",{className:Fe.clsx(If.Thumb,u&&If.Truthy)})})})})},O5={palette:{"mode-1":{"common-100":"#ffffff","common-0":"#000000","neutral-99":"#fcfcfc","neutral-94":"#efefef","neutral-89":"#e2e2e2","neutral-84":"#d6d6d6","neutral-79":"#c9c9c9","neutral-73":"#bababa","neutral-65":"#a5a5a5","neutral-54":"#898989","neutral-42":"#6b6b6b","neutral-30":"#4c4c4c","neutral-20":"#333333","neutral-15":"#2c2c2c","neutral-10":"#191919","neutral-5":"#0c0c0c","cool-neutral-99":"#fcfcfc","cool-neutral-94":"#efeff0","cool-neutral-89":"#e1e2e4","cool-neutral-84":"#d4d5d7","cool-neutral-79":"#c7c8cb","cool-neutral-73":"#b7b9bc","cool-neutral-65":"#a2a4a9","cool-neutral-54":"#85888e","cool-neutral-42":"#66696f","cool-neutral-30":"#494b4f","cool-neutral-20":"#303235","cool-neutral-10":"#18191a","cool-neutral-5":"#0c0c0c","red-99":"#fff9f9","red-95":"#ffe5e5","red-90":"#ffcccc","red-84":"#ffadad","red-76":"#ff8484","red-66":"#ff5151","red-53":"#ff0f0f","red-45":"#e50000","red-34":"#a80000","red-30":"#990000","red-24":"#7a0000","red-10":"#330000","green-99":"#fafffa","green-95":"#e5ffe8","green-90":"#ccffd1","green-84":"#adffb6","green-76":"#84ff90","green-66":"#51ff62","green-48":"#00f418","green-45":"#00e517","green-34":"#00a810","green-30":"#00990f","green-24":"#007a0c","green-10":"#003305","blue-99":"#fafdff","blue-95":"#e5f3ff","blue-90":"#cce6ff","blue-84":"#add7ff","blue-76":"#84c3ff","blue-66":"#51abff","blue-53":"#0f8bff","blue-45":"#0077e5","blue-34":"#0056a8","blue-30":"#004f99","blue-24":"#003f7a","blue-10":"#001a33","orange-99":"#fffcfa","orange-95":"#ffefe5","orange-90":"#ffdecc","orange-84":"#ffcbad","orange-76":"#ffb184","orange-66":"#ff9151","orange-53":"#ff670f","orange-45":"#e55400","orange-34":"#a83d00","orange-30":"#993800","orange-24":"#7a2c00","orange-10":"#331200","violet-99":"#fcfaff","violet-95":"#eee5ff","violet-90":"#dcccff","violet-84":"#c7adff","violet-76":"#ab84ff","violet-66":"#8852ff","violet-53":"#5b0fff","violet-45":"#4900e5","violet-34":"#3500a8","violet-28":"#2d008e","violet-24":"#26007a","violet-10":"#100033","cyan-99":"#faffff","cyan-95":"#e5fdff","cyan-90":"#ccfbff","cyan-84":"#adf9ff","cyan-76":"#84f6ff","cyan-66":"#51f3ff","cyan-50":"#00edff","cyan-45":"#00d6e5","cyan-40":"#00becc","cyan-30":"#008e99","cyan-21":"#00636b","cyan-10":"#002f33","pink-99":"#fffefa","pink-95":"#ffe5f5","pink-90":"#ffccea","pink-84":"#ffadde","pink-76":"#ff84ce","pink-66":"#ff51b9","pink-53":"#ff0f9f","pink-45":"#e5008a","pink-40":"#cc007a","pink-30":"#99005b","pink-21":"#6b0040","pink-10":"#33001e","lime-99":"#fcfffa","lime-95":"#eeffe5","lime-90":"#ddffcc","lime-84":"#c8ffad","lime-76":"#adff84","lime-66":"#8bff51","lime-49":"#53f900","lime-45":"#4ce500","lime-40":"#44cc00","lime-30":"#339900","lime-21":"#236b00","lime-10":"#113300","brand-b-color":"#386fff"}},semantic:{light:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-20","label-strong":"neutral-5","label-neutral":"neutral-73","line-normal":"neutral-79","line-strong":"neutral-65","line-neutral":"neutral-89","background-normal":"common-100","elevation-0":"common-100","elevation-10":"neutral-94","elevation-20":"neutral-73","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-84","inverse-label-strong":"neutral-99","inverse-label-neutral":"neutral-30","inverse-line-normal":"neutral-30","inverse-line-strong":"neutral-54","inverse-line-neutral":"neutral-20","inverse-elevation-0":"neutral-5","inverse-elevation-10":"neutral-10","inverse-elevation-20":"neutral-15"},dark:{"static-white":"common-100","static-black":"common-0","acent-brand":"brand-b-color","label-normal":"neutral-84","label-strong":"neutral-99","label-neutral":"neutral-30","line-normal":"neutral-30","line-strong":"neutral-54","line-neutral":"neutral-20","background-normal":"neutral-5","elevation-0":"neutral-5","elevation-10":"neutral-10","elevation-20":"neutral-15","alert-warning":"orange-53","alert-success":"green-45","alert-danger":"red-45","inverse-label-normal":"neutral-20","inverse-label-strong":"neutral-5","inverse-label-neutral":"neutral-73","inverse-line-normal":"neutral-79","inverse-line-strong":"neutral-65","inverse-line-neutral":"neutral-89","inverse-elevation-0":"common-100","inverse-elevation-10":"neutral-94","inverse-elevation-20":"neutral-73"}}},xi=z_.cloneDeep(O5);er.keys(xi.semantic).forEach(r=>{const e=xi.semantic[r];er.keys(e).forEach(t=>{e[t]=`var(--${e[t]})`})});const oh=er.keys(xi.palette),t2=er.keys(xi.palette[oh[0]]);function P5(){return ai.paletteMode}function N5(r,e=ai.paletteMode){return xi.palette[e][r]}function F5(r){return ah(r)}const Zd=[];function r2(r){ai.paletteMode=r,t2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.palette[r][e])),Zd.forEach(e=>e(r))}function n2(r,e="all"){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?oh.forEach(l=>{xi.palette[l][n]=i}):xi.palette[e][n]=i)})}const Gu=er.keys(xi.semantic),i2=er.keys(xi.semantic[Gu[0]]);function j5(){return ai.semanticMode}function B5(r,e=ai.semanticMode){return xi.semantic[e][r]}function H5(r){return ah(r)}const Kd=[];function dm(r){ai.semanticMode=r,document.documentElement.setAttribute("data-theme",r),i2.forEach(e=>document.documentElement.style.setProperty(`--${e}`,xi.semantic[r][e])),Kd.forEach(e=>e(r)),ai.save==="localStorage"?localStorage.setItem("semanticMode",r):ai.save==="sessionStorage"&&sessionStorage.setItem("semanticMode",r)}function o2(r,e=ai.semanticMode){er.keys(r).forEach(n=>{const i=r[n];i!==void 0&&(document.documentElement.style.setProperty(`--${n}`,i),e==="all"?Gu.forEach(l=>{xi.semantic[l][n]=i}):xi.semantic[e][n]=i)})}const s2=["Body-background-color","Body-color","Body-transition","Font","Scrollbar-handle","Scrollbar-handle-hover","Scrollbar-handle-active","Scrollbar-track","Scrollbar-border-radius","Scrollbar-width","Transition"],a2=["ABase_Dimming_background-color"],l2=["ATooltip_background-color","ATooltip_color"],c2=["AButton_Primary_border","AButton_Primary_background-color","AButton_Primary_color","AButton_Secondary_border","AButton_Secondary_background-color","AButton_Secondary_color","AButton_Alter_border","AButton_Alter_background-color","AButton_Alter_color"],u2=["AInput_Primary_background-color","AInput_Primary_border","AInput_Primary_color","AInput_Primary_hover_border","AInput_Primary_focus_background-color","AInput_Primary_focus_border","AInput_Primary_placeholder_color","AInput_Secondary_background-color","AInput_Secondary_border","AInput_Secondary_color","AInput_Secondary_hover_border","AInput_Secondary_focus_border","AInput_Secondary_placeholder_color","AInput_ReadOnly_background-color","AInput_ReadOnly_border","AInput_ReadOnly_color","AInput_Error_HelperText_color","AInput_Error_background-color","AInput_Error_border","AInput_Error_color","AInput_Error_placeholder_color"],f2=["ATextArea_Primary_background-color","ATextArea_Primary_border","ATextArea_Primary_color","ATextArea_Primary_hover_border","ATextArea_Primary_focus_background-color","ATextArea_Primary_focus_border","ATextArea_Secondary_background-color","ATextArea_Secondary_border","ATextArea_Secondary_color","ATextArea_Secondary_hover_border","ATextArea_Secondary_focus_border","ATextArea_ReadOnly_background-color","ATextArea_ReadOnly_border","ATextArea_ReadOnly_color","ATextArea_Error_background-color","ATextArea_Error_border","ATextArea_Error_color","ATextArea_Error_placeholder_color"],d2=["AEditor_Primary_background-color","AEditor_Primary_border","AEditor_Primary_color","AEditor_Primary_hover_border","AEditor_Primary_focus_background-color","AEditor_Primary_focus_border","AEditor_ReadOnly_background-color","AEditor_ReadOnly_border","AEditor_ReadOnly_hover_border","AEditor_ReadOnly_focus_border","AEditor_ReadOnly_color","AEditor_Error_background-color","AEditor_Error_border","AEditor_Error_color","AEditor_Error_placeholder_color","AEditor_Addon_Primary_background-color","AEditor_Addon_Primary_border","AEditor_Addon_Primary_color","AEditor_Addon_Secondary_background-color","AEditor_Addon_Secondary_border","AEditor_Addon_Secondary_color","AEditor_Addon_hover_background-color","AEditor_Addon_hover_color","AEditor_Addon_focus_border","AEditor_border-radius","AEditor_Select_border-radius","AEditor_Option_border-radius"],h2=["ACheckBox_color"],p2=["ADialog_Paper_background-color","ADialog_background-color","ADialog_border","ADialog_Action_background-color"],g2=["ASelect_Placeholder_color","ASelect_Primary_border","ASelect_Primary_hover_border","ASelect_Primary_Arrow_color","ASelect_Primary_Options_background-color","ASelect_Primary_Options_border","ASelect_Primary_Option_hover_background-color","ASelect_Primary_Option_active_background-color","ASelect_Primary_Option_Selected_background-color","ASelect_Secondary_border","ASelect_Secondary_hover_border","ASelect_Secondary_background-color","ASelect_Secondary_Arrow_color","ASelect_Secondary_Options_background-color","ASelect_Secondary_Options_border","ASelect_Secondary_Option_hover_background-color","ASelect_Secondary_Option_active_background-color","ASelect_Secondary_Option_Selected_background-color"],m2=["AMultiSelect_Placeholder_color","AMultiSelect_Primary_border","AMultiSelect_Primary_hover_border","AMultiSelect_Primary_Arrow_color","AMultiSelect_Primary_Options_background-color","AMultiSelect_Primary_Options_border","AMultiSelect_Primary_Option_hover_background-color","AMultiSelect_Primary_Option_active_background-color","AMultiSelect_Primary_Option_Selected_background-color","AMultiSelect_Secondary_border","AMultiSelect_Secondary_hover_border","AMultiSelect_Secondary_background-color","AMultiSelect_Secondary_Arrow_color","AMultiSelect_Secondary_Options_background-color","AMultiSelect_Secondary_Options_border","AMultiSelect_Secondary_Option_hover_background-color","AMultiSelect_Secondary_Option_active_background-color","AMultiSelect_Secondary_Option_Selected_background-color"],v2=["ATree_background-color","ATree_Indent_border","ATreeBodyHeader_border-bottom","ATreeItem_hover_background-color","ATreeItem_active_background-color","ATreeItem_select_background-color","ATreeItem_search_background-color","ATreeItem_search_border-top","ATreeItem_search_border-bottom","ATreeItem_select_color"],y2=["ASwitch_Track_Falsy_border","ASwitch_Track_Truthy_border","ASwitch_Thumb_border"],b2=["ATab_IndicatorTrack_Primary_border-bottom","ATab_Indicator_Primary_background-color","ATab_Option_Secondary_border","ATab_Option_Secondary_IsSelected_border-bottom","ATab_Option_Secondary_IsDisabled_border","ATab_IndicatorTrack_Tertiary_background-color","ATab_Indicator_Tertiary_background-color","ATab_Option_Tertiary_color","ATab_Option_Tertiary_IsSelected_color","ATab_Option_Quaternary_color","ATab_Option_Quaternary_IsSelected_color"],_2=["AFileBox_border","AFileBox_background-color","AFileBox_SelectedFile_color","AFileBox_Dropping_color"],x2=["AListView_border-thin","AListView_border-thick"],S2=["AStepper_OutCircle_background-color","AStepper_OutCircle_IsOver_background-color","AStepper_InCircle_background-color","AStepper_InCircle_IsOver_background-color","AStepper_Line_background-color","AStepper_Line_IsOver_background-color"],C2=["ADatePicker_Anchor_border","ADatePicker_Anchor_color","ADatePicker_Anchor_Placeholder_color","ADatePicker_Anchor_hover_border","ADatePicker_Anchor_focus_border","ADatePicker_Anchor_Icon_Primary_color","ADatePicker_Anchor_Icon_Secondary_color","ADatePicker_background-color","ADatePicker_border","ADatePicker_StringInputContainer_background-color","ADatePicker_String_border","ADatePicker_Prev_background-color","ADatePicker_Prev_border-right","ADatePicker_Next_background-color","ADatePicker_Next_border-left","ADatePicker_Cell_color","ADatePicker_Cell_IsNotCurrentMonth_color","ADatePicker_Cell_IsDisabled_color","ADatePicker_Cell_IsSelected_background-color","ADatePicker_Cell_IsSelected_color","ADatePicker_Cell_IsHovered_background-color"],w2=["ADateRangePicker_Anchor_border","ADateRangePicker_Anchor_color","ADateRangePicker_Anchor_Placeholder_color","ADateRangePicker_Anchor_hover_border","ADateRangePicker_Anchor_focus_border","ADateRangePicker_Anchor_Icon_Primary_color","ADateRangePicker_Anchor_Icon_Secondary_color","ADateRangePicker_background-color","ADateRangePicker_border","ADateRangePicker_StringInputContainer_background-color","ADateRangePicker_String_border","ADateRangePicker_Prev_background-color","ADateRangePicker_Prev_border-right","ADateRangePicker_Next_background-color","ADateRangePicker_Next_border-left","ADateRangePicker_Cell_color","ADateRangePicker_Cell_IsNotCurrentMonth_color","ADateRangePicker_Cell_IsDisabled_color","ADateRangePicker_Cell_IsSelected_background-color","ADateRangePicker_Cell_IsSelected_color","ADateRangePicker_Cell_IsHovered_background-color"],A2=["AIconButton_Primary_color","AIconButton_Primary_border","AIconButton_Primary_background-color","AIconButton_Primary_hover_background-color","AIconButton_Primary_active_background-color","AIconButton_Secondary_color","AIconButton_Secondary_background-color","AIconButton_Secondary_hover_background-color","AIconButton_Secondary_active_background-color"],T2=["ATableBody_TRow_border-bottom","ATableBody_TRow_IsSelected_background-color","ATableBody_TRow_IsSelectable_hover_background-color","ATableBody_TH_color","ATableBody_TD_IsMarked_background-color","ATableBody_TD_IsMarked_color","ATableBody_Resizer_hover_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerCenter_background-color","ATableBody_Resizer_active_ResizerOut_background-color","ATableBody_Resizer_active_ResizerIn_background-color","ATableFooter_Button_IsSelected_background-color","ATableFooter_Button_IsSelected_color","ATableFooter_Button_IsDisabled_color","ATableFilter_SubFilters_background-color","ATableFilter_SubFilters_border","ATableFilter_Icon_color","ATableFilter_Alert_color"],E2=["ADivideFrame_DividerInner_background-color"],k2=["AFloatMenu_background-color","AFloatMenu_hover_background-color","AFloatMenu_color","AFloatMenu_border"],R2=["ALoadingBorder_background-color","ALoadingBorder_ProgressBar_background-color","ALoadingBorder_Cover_background-color"],I2=["AWrap_Error_color"],L2=["ARadioSelect_RadioButton_border","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color"],M2=["AChip_background-color","AChip_color","AChip_border","AChip_hover_background-color","AChip_hover_color","AChip_DeleteButton_border","AChip_DeleteButton_color","AChip_DeleteButton_hover_border","AChip_DeleteButton_hover_color"],q5=[...s2,...a2,...l2,...c2,...u2,...f2,...d2,...h2,...p2,...g2,...m2,...v2,...y2,...b2,..._2,...x2,...S2,...C2,...w2,...A2,...T2,...E2,...k2,...R2,...I2,...L2,...M2],sh={"Body-background-color":"var(--background-normal)","Body-color":"var(--label-normal)","Body-transition":"background-color var(--Transition), color var(--Transition)",Font:"400 16px pretendard","Scrollbar-handle":"var(--label-neutral)","Scrollbar-handle-hover":"var(--label-normal)","Scrollbar-handle-active":"var(--label-strong)","Scrollbar-track":"var(--elevation-10)","Scrollbar-border-radius":"6px","Scrollbar-width":"12px",Transition:"300ms","ABase_Dimming_background-color":"var(--elevation-0)","ATooltip_background-color":"var(--inverse-elevation-0)",ATooltip_color:"var(--inverse-label-strong)",AButton_Primary_border:"none","AButton_Primary_background-color":"var(--acent-brand)",AButton_Primary_color:"var(--static-white)",AButton_Secondary_border:"1px solid var(--elevation-10)","AButton_Secondary_background-color":"var(--elevation-10)",AButton_Secondary_color:"var(--label-normal)",AButton_Alter_border:"1px solid var(--line-normal)","AButton_Alter_background-color":"var(--elevation-0)",AButton_Alter_color:"var(--label-normal)","AInput_Primary_background-color":"var(--elevation-0)",AInput_Primary_border:"1px solid var(--line-normal)",AInput_Primary_color:"var(--label-normal)",AInput_Primary_hover_border:"1px solid var(--line-strong)","AInput_Primary_focus_background-color":"var(--elevation-10)",AInput_Primary_focus_border:"1px solid var(--line-strong)",AInput_Primary_placeholder_color:"var(--label-neutral)","AInput_Secondary_background-color":"var(--elevation-0)",AInput_Secondary_border:"1px solid var(--line-normal)",AInput_Secondary_color:"var(--label-normal)",AInput_Secondary_hover_border:"1px solid var(--line-strong)",AInput_Secondary_focus_border:"1px solid var(--line-strong)",AInput_Secondary_placeholder_color:"var(--label-neutral)","AInput_ReadOnly_background-color":"var(--elevation-10)",AInput_ReadOnly_border:"none",AInput_ReadOnly_color:"var(--label-normal)",AInput_Error_HelperText_color:"var(--alert-danger)","AInput_Error_background-color":"inherit",AInput_Error_border:"1px solid var(--line-normal)",AInput_Error_color:"var(--label-normal)",AInput_Error_placeholder_color:"var(--label-neutral)","ATextArea_Primary_background-color":"var(--elevation-0)",ATextArea_Primary_border:"1px solid var(--line-normal)",ATextArea_Primary_color:"var(--label-normal)",ATextArea_Primary_hover_border:"1px solid var(--line-strong)","ATextArea_Primary_focus_background-color":"var(--elevation-10)",ATextArea_Primary_focus_border:"1px solid var(--line-strong)","ATextArea_Secondary_background-color":"var(--elevation-0)",ATextArea_Secondary_border:"1px solid var(--line-normal)",ATextArea_Secondary_color:"var(--label-normal)",ATextArea_Secondary_hover_border:"1px solid var(--line-strong)",ATextArea_Secondary_focus_border:"1px solid var(--line-strong)","ATextArea_ReadOnly_background-color":"var(--elevation-10)",ATextArea_ReadOnly_border:"none",ATextArea_ReadOnly_color:"var(--label-normal)","ATextArea_Error_background-color":"inherit",ATextArea_Error_border:"1px solid var(--line-normal)",ATextArea_Error_color:"var(--label-normal)",ATextArea_Error_placeholder_color:"var(--label-neutral)","AEditor_Primary_background-color":"var(--elevation-0)",AEditor_Primary_border:"1px solid var(--line-normal)",AEditor_Primary_color:"var(--label-normal)",AEditor_Primary_hover_border:"1px solid var(--line-strong)","AEditor_Primary_focus_background-color":"var(--elevation-0)",AEditor_Primary_focus_border:"1px solid var(--line-strong)","AEditor_ReadOnly_background-color":"var(--elevation-0)",AEditor_ReadOnly_border:"1px solid var(--line-normal)",AEditor_ReadOnly_hover_border:"1px solid var(--line-strong)",AEditor_ReadOnly_focus_border:"1px solid var(--line-strong)",AEditor_ReadOnly_color:"var(--label-normal)","AEditor_Error_background-color":"inherit",AEditor_Error_border:"1px solid var(--alert-danger)",AEditor_Error_color:"var(--alert-danger)",AEditor_Error_placeholder_color:"var(--alert-danger)","AEditor_Addon_Primary_background-color":"var(--background-normal)",AEditor_Addon_Primary_border:"1px solid var(--line-normal)",AEditor_Addon_Primary_color:"var(--label-normal)","AEditor_Addon_Secondary_background-color":"var(--background-normal)",AEditor_Addon_Secondary_border:"1px solid var(--line-strong)",AEditor_Addon_Secondary_color:"var(--label-neutral)","AEditor_Addon_hover_background-color":"var(--elevation-10)",AEditor_Addon_hover_color:"var(--acent-brand)",AEditor_Addon_focus_border:"1px solid var(--line-strong)","AEditor_border-radius":"2px","AEditor_Select_border-radius":"6px","AEditor_Option_border-radius":"6px",ACheckBox_color:"var(--label-normal)","ADialog_Paper_background-color":"#00000060","ADialog_background-color":"var(--elevation-0)",ADialog_border:"1px solid var(--line-neutral)","ADialog_Action_background-color":"var(--elevation-0)",ASelect_Placeholder_color:"var(--label-neutral)",ASelect_Primary_border:"1px solid var(--line-normal)",ASelect_Primary_hover_border:"1px solid var(--line-strong)",ASelect_Primary_Arrow_color:"var(--label-normal)","ASelect_Primary_Options_background-color":"var(--elevation-0)",ASelect_Primary_Options_border:"1px solid var(--line-normal)","ASelect_Primary_Option_hover_background-color":"var(--elevation-10)","ASelect_Primary_Option_active_background-color":"var(--elevation-10)","ASelect_Primary_Option_Selected_background-color":"var(--elevation-20)",ASelect_Secondary_border:"1px solid var(--elevation-10)",ASelect_Secondary_hover_border:"1px solid var(--elevation-10)","ASelect_Secondary_background-color":"var(--elevation-10)",ASelect_Secondary_Arrow_color:"var(--label-normal)","ASelect_Secondary_Options_background-color":"var(--elevation-0)",ASelect_Secondary_Options_border:"var(--line-normal)","ASelect_Secondary_Option_hover_background-color":"var(--elevation-10)","ASelect_Secondary_Option_active_background-color":"var(--elevation-10)","ASelect_Secondary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Placeholder_color:"var(--label-neutral)",AMultiSelect_Primary_border:"1px solid var(--line-normal)",AMultiSelect_Primary_hover_border:"1px solid var(--line-strong)",AMultiSelect_Primary_Arrow_color:"var(--label-normal)","AMultiSelect_Primary_Options_background-color":"var(--elevation-0)",AMultiSelect_Primary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Primary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Primary_Option_Selected_background-color":"var(--elevation-20)",AMultiSelect_Secondary_border:"1px solid var(--elevation-10)",AMultiSelect_Secondary_hover_border:"1px solid var(--elevation-10)","AMultiSelect_Secondary_background-color":"var(--elevation-10)",AMultiSelect_Secondary_Arrow_color:"var(--label-normal)","AMultiSelect_Secondary_Options_background-color":"var(--elevation-0)",AMultiSelect_Secondary_Options_border:"1px solid var(--line-normal)","AMultiSelect_Secondary_Option_hover_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_active_background-color":"var(--elevation-10)","AMultiSelect_Secondary_Option_Selected_background-color":"var(--elevation-20)","ATree_background-color":"var(--elevation-0)",ATree_Indent_border:"1px solid var(--line-normal)","ATreeBodyHeader_border-bottom":"1px solid var(--line-normal)","ATreeItem_hover_background-color":"var(--elevation-10)","ATreeItem_active_background-color":"var(--elevation-10)","ATreeItem_select_background-color":"var(--elevation-10)","ATreeItem_search_background-color":"yellow","ATreeItem_search_border-top":"1px dashed var(--label-normal)","ATreeItem_search_border-bottom":"1px dashed var(--label-normal)",ATreeItem_select_color:"var(--label-normal)",ASwitch_Track_Falsy_border:"12px solid var(--elevation-20)",ASwitch_Track_Truthy_border:"12px solid var(--acent-brand)",ASwitch_Thumb_border:"9px solid var(--static-white)","ATab_IndicatorTrack_Primary_border-bottom":"1px solid var(--line-normal)","ATab_Indicator_Primary_background-color":"var(--label-normal)",ATab_Option_Secondary_border:"2px solid var(--label-normal)","ATab_Option_Secondary_IsSelected_border-bottom":"2px solid var(--elevation-0)",ATab_Option_Secondary_IsDisabled_border:"2px solid var(--line-neutral)","ATab_IndicatorTrack_Tertiary_background-color":"var(--line-normal)","ATab_Indicator_Tertiary_background-color":"var(--elevation-0)",ATab_Option_Tertiary_color:"var(--line-strong)",ATab_Option_Tertiary_IsSelected_color:"var(--label-strong)",ATab_Option_Quaternary_color:"var(--label-neutral)",ATab_Option_Quaternary_IsSelected_color:"var(--label-normal)",AFileBox_border:"1px dashed var(--label-normal)","AFileBox_background-color":"var(--elevation-10)",AFileBox_SelectedFile_color:"var(--label-normal)",AFileBox_Dropping_color:"var(--label-normal)","AListView_border-thin":"1px solid var(--line-neutral)","AListView_border-thick":"3px solid var(--line-neutral)","AStepper_OutCircle_background-color":"transparent","AStepper_OutCircle_IsOver_background-color":"var(--elevation-10)","AStepper_InCircle_background-color":"var(--elevation-20)","AStepper_InCircle_IsOver_background-color":"var(--label-normal)","AStepper_Line_background-color":"var(--line-neutral)","AStepper_Line_IsOver_background-color":"var(--label-normal)",ADatePicker_Anchor_border:"1px solid var(--line-normal)",ADatePicker_Anchor_color:"var(--label-normal)",ADatePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADatePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADatePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADatePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADatePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADatePicker_background-color":"var(--elevation-0)",ADatePicker_border:"1px solid var(--line-neutral)","ADatePicker_StringInputContainer_background-color":"var(--label-neutral)",ADatePicker_String_border:"1px solid var(--label-normal)","ADatePicker_Prev_background-color":"var(--elevation-10)","ADatePicker_Prev_border-right":"6px solid var(--label-normal)","ADatePicker_Next_background-color":"var(--elevation-10)","ADatePicker_Next_border-left":"6px solid var(--label-normal)",ADatePicker_Cell_color:"var(--label-normal)",ADatePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADatePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADatePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADatePicker_Cell_IsSelected_color:"var(--label-normal)","ADatePicker_Cell_IsHovered_background-color":"var(--elevation-10)",ADateRangePicker_Anchor_border:"1px solid var(--line-normal)",ADateRangePicker_Anchor_color:"var(--label-normal)",ADateRangePicker_Anchor_Placeholder_color:"var(--label-neutral)",ADateRangePicker_Anchor_hover_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_focus_border:"1px solid var(--line-strong)",ADateRangePicker_Anchor_Icon_Primary_color:"var(--label-normal)",ADateRangePicker_Anchor_Icon_Secondary_color:"var(--label-normal)","ADateRangePicker_background-color":"var(--elevation-0)",ADateRangePicker_border:"1px solid var(--line-neutral)","ADateRangePicker_StringInputContainer_background-color":"var(--label-neutral)",ADateRangePicker_String_border:"1px solid var(--label-normal)","ADateRangePicker_Prev_background-color":"var(--elevation-10)","ADateRangePicker_Prev_border-right":"6px solid var(--label-normal)","ADateRangePicker_Next_background-color":"var(--elevation-10)","ADateRangePicker_Next_border-left":"6px solid var(--label-normal)",ADateRangePicker_Cell_color:"var(--label-normal)",ADateRangePicker_Cell_IsNotCurrentMonth_color:"var(--label-neutral)",ADateRangePicker_Cell_IsDisabled_color:"var(--label-neutral)","ADateRangePicker_Cell_IsSelected_background-color":"var(--elevation-20)",ADateRangePicker_Cell_IsSelected_color:"var(--label-normal)","ADateRangePicker_Cell_IsHovered_background-color":"var(--elevation-10)",AIconButton_Primary_color:"var(--label-normal)",AIconButton_Primary_border:"1px solid var(--line-normal)","AIconButton_Primary_background-color":"var(--elevation-0)","AIconButton_Primary_hover_background-color":"var(--elevation-10)","AIconButton_Primary_active_background-color":"var(--elevation-20)",AIconButton_Secondary_color:"var(--label-normal)","AIconButton_Secondary_background-color":"var(--elevation-0)","AIconButton_Secondary_hover_background-color":"var(--elevation-10)","AIconButton_Secondary_active_background-color":"var(--elevation-20)","ATableBody_TRow_border-bottom":"1px solid var(--line-normal)","ATableBody_TRow_IsSelected_background-color":"var(--elevation-10)","ATableBody_TRow_IsSelectable_hover_background-color":"var(--elevation-10)",ATableBody_TH_color:"var(--label-neutral)","ATableBody_TD_IsMarked_background-color":"yellow",ATableBody_TD_IsMarked_color:"var(--label-normal)","ATableBody_Resizer_hover_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerCenter_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerOut_background-color":"var(--line-neutral)","ATableBody_Resizer_active_ResizerIn_background-color":"var(--line-neutral)","ATableFooter_Button_IsSelected_background-color":"var(--elevation-10)",ATableFooter_Button_IsSelected_color:"var(--label-normal)",ATableFooter_Button_IsDisabled_color:"var(--label-neutral)","ATableFilter_SubFilters_background-color":"var(--elevation-0)",ATableFilter_SubFilters_border:"1px solid var(--line-normal)",ATableFilter_Icon_color:"var(--label-normal)",ATableFilter_Alert_color:"var(--alert-danger)","ADivideFrame_DividerInner_background-color":"var(--line-normal)","AFloatMenu_background-color":"var(--elevation-0)","AFloatMenu_hover_background-color":"var(--elevation-10)",AFloatMenu_color:"var(--label-normal)",AFloatMenu_border:"1px solid var(--line-neutral)","ALoadingBorder_background-color":"var(--label-normal)","ALoadingBorder_ProgressBar_background-color":"var(--elevation-0)","ALoadingBorder_Cover_background-color":"var(--label-normal)",AWrap_Error_color:"var(--alert-danger)",ARadioSelect_RadioButton_border:"1px solid var(--line-normal)","ARadioSelect_RadioButton_InnerCircle_isChecked_background-color":"var(--acent-brand)","AChip_background-color":"var(--elevation-10)",AChip_color:"var(--label-normal)",AChip_border:"1px solid var(--line-normal)","AChip_hover_background-color":"var(--elevation-20)",AChip_hover_color:"var(--label-normal)",AChip_DeleteButton_border:"9px solid var(--line-normal)",AChip_DeleteButton_color:"var(--label-normal)",AChip_DeleteButton_hover_border:"9px solid var(--line-strong)",AChip_DeleteButton_hover_color:"var(--label-normal)"};function z5(r){return sh[r]}function $5(r){return ah(r)}function D2(r){er.keys(r).forEach(t=>{const n=r[t];n!==void 0&&(document.documentElement.style.setProperty(`--${t}`,n),sh[t]=n)})}function U5(r){er.keys(r).forEach(t=>{const n=r[t];if(n===void 0)return;const i=xi.semantic[ai.semanticMode][n];i!==void 0&&(document.documentElement.style.setProperty(t,i),sh[t]=i)})}const ai={paletteMode:oh[0],semanticMode:Gu[0],save:"",followDeviceSetting:!1};function W5({semanticMode:r,save:e,followDeviceSetting:t}){if(t!==void 0&&(ai.followDeviceSetting=t,t)){const n=window.matchMedia("(prefers-color-scheme: dark)"),i=u=>{ai.semanticMode=u.matches?"dark":"light"};i(n);const l=u=>i(u);n.addEventListener("change",l)}if(e!==void 0){if(ai.save=e,e==="localStorage"){const n=localStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}else if(e==="sessionStorage"){const n=sessionStorage.getItem("semanticMode");Gu.includes(n)&&(ai.semanticMode=n)}}r!==void 0&&(ai.semanticMode=r),r2(ai.paletteMode),dm(ai.semanticMode),n2(xi.palette[ai.paletteMode]),o2(xi.semantic[ai.semanticMode]),D2(sh)}function V5(r){r.type==="semanticModeChange"?Kd.push(r.listener):r.type==="paletteModeChange"?Zd.push(r.listener):console.error("AThemes.addEventListener : parameter is not valid")}function G5(r){if(r.type==="semanticModeChange"){const e=Kd.indexOf(r.listener);e!==-1&&Kd.splice(e,1)}else if(r.type==="paletteModeChange"){const e=Zd.indexOf(r.listener);e!==-1&&Zd.splice(e,1)}else console.error("AThemes.removeEventListener : parameter is not valid")}function ah(r){const e=window.getComputedStyle(document.documentElement);let t=e.getPropertyValue(r);return t===""&&(t=e.getPropertyValue(`--${r}`)),t}function Z5(r){Object.assign(Fe.additionalClasses,r),Fe.updateKeys(),Fe.additionalClasses=Fe.additionalClasses}const Ff={getCurrentPaletteMode:P5,getPaletteValue:N5,getPaletteDeepValue:F5,changePaletteMode:r2,editPalette:n2,getCurrentSemanticMode:j5,getSemanticValue:B5,getSemanticDeepValue:H5,changeSemanticMode:dm,editSemantic:o2,getComponentStyleValue:z5,getComponentStyleDeepValue:$5,editComponentStyle:D2,editComponentStyleWithSemantic:U5,init:W5,addEventListener:V5,removeEventListener:G5,getDeepValue:ah,addClasses:Z5},K5=r=>{const{onChange:e,onClick:t,type:n="Icon",...i}=r,[l,u]=A.useState(Ff.getCurrentSemanticMode()==="dark"?"Moon":"Sun"),f=A.useCallback(g=>{const m=Ff.getCurrentSemanticMode();let R="light";m==="light"?R="dark":m==="dark"&&(R="light"),Ff.changeSemanticMode(R),u(Y5[R]),e==null||e(R),t==null||t(g)},[e,t]);if(n==="Icon")return v.jsx(_i,{...i,className:Fe.clsx(Zf.AThemeButton,i.className,"IsInteractive"),type:"Raw",icon:l,onClick:f});if(n==="Switch")return v.jsx(e2,{...i,useCheck:[Ff.getCurrentSemanticMode()==="dark",f]})},Y5={light:"Sun",dark:"Moon"},X5="_ACheckBoxWrap_1ozuz_1",J5="_ACheckBox_1ozuz_1",Qv={ACheckBoxWrap:X5,ACheckBox:J5},Zu=r=>{const{useCheck:e,isIndeterminate:t,isDisabled:n,isLoading:i,onClick:l,...u}=r,[f,g]=nn(e,!1),m=A.useCallback(R=>{n||i||(g==null||g(!f),l==null||l(R))},[n,i,l,f,g]);return v.jsx($r,{...u,className:Fe.clsx(u.className,Qv.ACheckBoxWrap),isDisabled:n,isLoading:i,onClick:m,children:v.jsx(jr,{className:Qv.ACheckBox,icon:t?"Check.Indeterminate":f?"Check.Checked":"Check.UnChecked"})})};function Q5(r){return typeof r=="function"}function eT(r,e){return Q5(r)?r(e):r}const Lr={getContent:eT},tT="_ARowFrame_1586b_1",rT="_AColFrame_1586b_7",nT="_AOverflowFrame_1586b_13",iT="_ADivideFrame_1586b_22",oT="_Row_1586b_28",sT="_Col_1586b_31",aT="_ChildFrame_1586b_35",lT="_IsReturning_1586b_48",cT="_Divider_1586b_52",uT="_IsMoving_1586b_60",fT="_DividerInner_1586b_66",dT="_IsClicked_1586b_91",qo={ARowFrame:tT,AColFrame:rT,AOverflowFrame:nT,ADivideFrame:iT,Row:oT,Col:sT,ChildFrame:aT,IsReturning:lT,Divider:cT,IsMoving:uT,DividerInner:fT,IsClicked:dT},Sn=r=>v.jsx($r,{...r,className:Fe.clsx(qo.ARowFrame,r.className),children:r.children}),O2=r=>v.jsx("div",{...r,className:Fe.clsx(qo.AColFrame,r.className),children:r.children}),Sa=r=>{const{tooltip:e,children:t,abaseRef:n,isDisabled:i,className:l,noOverflowTooltip:u,...f}=r,g=A.useRef(null),m=A.useMemo(()=>n??g,[n]),[R,E]=A.useState(!1),_=A.useCallback(()=>E(!0),[]),S=A.useCallback(()=>E(!1),[]);A.useEffect(()=>{const M=m.current;if(M)return M.addEventListener("mouseenter",_),M.addEventListener("mouseleave",S),()=>{M.removeEventListener("mouseenter",_),M.removeEventListener("mouseleave",S)}},[m,_,S]);const x=A.useMemo(()=>i?"":u||!R||!m.current?e:m.current.scrollWidth>m.current.clientWidth?t:e,[m,i,t,e,u,R]);return v.jsx($r,{...f,isDisabled:i,children:t,abaseRef:m,tooltip:x,className:Fe.clsx(qo.AOverflowFrame,l)})},P2=r=>{const{value:e,map:t}=r;return t[e]===void 0?t.fallback:v.jsx(A.Suspense,{children:t[e]})},Yh={},hT=r=>{const{pk:e,direction:t="Row",lefts:n,minLength:i=40,children:l,childStyle:u,childClassName:f,dividerStyle:g,dividerClassName:m,dividerPadding:R,dividerInnerClassName:E,dividerInnerStyle:_,...S}=r,x=A.useMemo(()=>{let J;return typeof l=="object"&&Array.isArray(l)?J=l:J=[l],J=J.filter(me=>me!=null&&me!==!1),J},[l]),[M,w]=A.useState(e===void 0?n:Yh[e]??n),b=A.useMemo(()=>typeof i=="number"?Array(x.length).fill(i+(R??0)):i.map(J=>J+(R??0)),[i,x.length,R]),[I,O]=A.useState(),H=A.useMemo(()=>I!==void 0?I:M,[I,M]),q=A.useRef(null),z=A.useRef({x:0,y:0}),[Y,fe]=A.useState(),X=A.useCallback((J,me)=>{if(q.current===null)return;const ce=q.current;z.current={x:J.clientX,y:J.clientY},O(M),fe(me);let be=[...M];const ue=le=>{const ae=ce.getBoundingClientRect(),ge=t==="Row"?ae.left:ae.top,Pe=t==="Row"?ae.width:ae.height;be=mT(M,t,me,le,ge,Pe,b),O(be)},Se=()=>{fe(void 0),O(void 0),w(be),e!==void 0&&(Yh[e]=be),window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",Se)};window.addEventListener("mousemove",ue),window.addEventListener("mouseup",Se)},[M,e,t,b]),[he,j]=A.useState(!1),re=A.useCallback(()=>{w(n),e!==void 0&&(Yh[e]=n),j(!0)},[n,e]),Q=A.useMemo(()=>x.map((J,me)=>{const ce=H[me],be=ce-(me===0?0:H[me-1]),ue=me===0,Se=me===x.length-1,le={...u,...pT(t,be,Se)};return R!==void 0&&(t==="Row"?(ue||(le.paddingLeft=R),Se||(le.paddingRight=R)):(ue||(le.paddingTop=R),Se||(le.paddingBottom=R))),v.jsxs(A.Fragment,{children:[v.jsx("div",{className:Fe.clsx(qo.ChildFrame,f,he&&qo.IsReturning,qo[t]),onTransitionEnd:()=>j(!1),style:le,children:J}),!Se&&v.jsx("div",{className:Fe.clsx(qo.Divider,qo[t],"NoSelect",Y!==void 0&&qo.IsMoving,Y===me&&qo.IsClicked,m),style:{...g,...gT(t,ce)},onMouseDown:ae=>X(ae,me),onDoubleClick:re,children:v.jsx("div",{className:Fe.clsx(qo.DividerInner,E),style:_})})]},me)}),[x,H,u,t,R,f,he,Y,m,g,re,E,_,X]);return v.jsx("div",{...S,className:Fe.clsx(qo.ADivideFrame,r.className,qo[t]),ref:q,children:Q})};function pT(r,e,t){return t?{}:r==="Col"?{height:e,minHeight:e,maxHeight:e}:{maxWidth:e,width:e,minWidth:e}}function gT(r,e){return r==="Col"?{top:e}:{left:e}}function mT(r,e,t,n,i,l,u){const f=[...r];let g=n.clientX-i-r[t];e==="Col"&&(g=n.clientY-i-r[t]);const m=E=>u.slice(0,E+1).reduce((_,S)=>_+S,0),R=E=>u.slice(E+1).reduce((_,S)=>_+S,0);if(g<0){let E=f[t]+g;if(E<=m(t))for(let _=0;_<=t;_++)f[_]=m(_);else if(f[t]=E,t>0)for(let _=t-1;_>=0&&E-f[_]<u[_];_--)f[_]=E-u[t],E=f[_]}else if(g>0){let E=f[t]+g;if(E>=l-R(t))for(let _=t;_<r.length;_++)f[_]=l-R(_);else if(f[t]=E,t<r.length-1)for(let _=t+1;_<r.length&&f[_]-E<u[_];_++)f[_]=E+u[_],E=f[_]}return f}const Qc=()=>v.jsx("div",{style:{display:"flex",flexGrow:1}}),vT="_ASpace_1okqf_1",yT={ASpace:vT},mn=r=>{const{h:e,w:t,...n}=r;return v.jsx("div",{...n,className:Fe.clsx(yT.ASpace,n.className),style:{height:e,minHeight:e,maxHeight:e,width:t,minWidth:t,maxWidth:t,...n.style}})},bT="_AChipsContainer_1ag9v_1",_T="_AChip_1ag9v_1",xT="_Clickable_1ag9v_21",ST="_AChipDelete_1ag9v_26",CT="_IsHover_1ag9v_40",wT="_AChipDeleteIcon_1ag9v_45",zu={AChipsContainer:bT,AChip:_T,Clickable:xT,AChipDelete:ST,IsHover:CT,AChipDeleteIcon:wT},AT=r=>{const{useLabels:e,alignItems:t="flex-start",ChipStyle:n,ChipClassName:i,ChipOnDelete:l,ChipOnClick:u,ChipIcon:f,className:g,style:m,ButtonRenderer:R=N2,gap:E=8,..._}=r,[S,x]=nn(e,[]),M=A.useCallback(b=>{!x||!l||(l({label:b}),x(S.filter(I=>I!==b)))},[x,l,S]),w=A.useCallback(b=>{const I={label:b};return{label:b,useLabel:[b,()=>{}],style:Lr.getContent(n,I),className:Lr.getContent(i,I),icon:Lr.getContent(f,I),onDelete:()=>M(b),onClick:u?()=>u({label:b}):void 0}},[i,f,u,n,M]);return v.jsx($r,{..._,style:{...m,alignItems:t,gap:E},className:Fe.clsx(zu.AChipsContainer,g),children:S.map((b,I)=>v.jsx(hm,{...w(b),ButtonRenderer:R},I))})},hm=r=>{const{label:e,useLabel:t,icon:n,className:i,onDelete:l,onClick:u,ButtonRenderer:f=N2,width:g="fit-content",style:m,...R}=r;return e===void 0?v.jsx(v.Fragment,{}):v.jsxs($r,{...R,style:{...m,width:g},onClick:u,className:Fe.clsx("NoSelect",zu.AChip,u&&zu.Clickable,u&&"IsClickable",i),children:[v.jsx(Sa,{children:e}),f({...r})]})},N2=r=>{const{label:e,icon:t,onDelete:n,useLabel:i}=r,[,l]=nn(i,e),[u,f]=A.useState(!1),g=A.useCallback(E=>{n&&(E.stopPropagation(),l==null||l(void 0),n(r))},[n,r,l]),m=()=>{f(!0)},R=()=>{f(!1)};return v.jsx(v.Fragment,{children:n&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),v.jsx(mn,{w:24}),v.jsx($r,{className:Fe.clsx(zu.AChipDelete,"IsClickable",u&&zu.IsHover)}),v.jsx(_i,{type:"Raw",onClick:g,onMouseEnter:m,onMouseLeave:R,icon:t||v.jsx(jr,{icon:"Close",stroke:"currentColor",width:14,height:14}),className:zu.AChipDeleteIcon})]})})},Kc=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`},TT=r=>{let e="";r<0&&(e+="-",r=-r);const t=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60;return t>0&&(e+=t.toString().padStart(2,"0")+":"),e+=n.toString().padStart(2,"0")+":",e+=i.toString().padStart(2,"0"),e},ET=/[a-zA-Z0-9]/,kT=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/,RT=/^[a-zA-Z0-9._-]+$/,IT=/^[0-9a-fA-F-]+$/i,LT=/[가-힣ㄱ-ㅎㅏ-ㅣ]/,MT=/^\S*$/,DT=/^([^ㄱ-ㅎㅏ-ㅣ])*$/i,OT=/[!@#$%^&*+=;:?/<>\\[\](){}~\-_.(),]/,PT=/^(?=.*[A-Za-z])(?=.*\d)(?=.*[\W_])[A-Za-z\d\W_]{8,}$/,NT=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,FT={hasKr:r=>/[가-힣ㄱ-ㅎㅏ-ㅣ]/.test(r),hasMalKr:r=>/[ㄱ-ㅎㅏ-ㅣ]/.test(r),hasBlank:r=>/\s/.test(r),isBlank:r=>/^\s*$/.test(r),isUuid:r=>/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(r),isEmail:r=>/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9]{2,}$/.test(r),isAlphabet:r=>/^[a-zA-Z]*$/.test(r),isAlphaNumeric:r=>/^[a-zA-Z0-9]*$/.test(r),isKr:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ]*$/.test(r),isKrNumeric:r=>/^[가-힣ㄱ-ㅎㅏ-ㅣ0-9]*/.test(r),isNumeric:r=>/^[0-9]$/.test(r),isLenMinMax:(r,e)=>t=>!(r!==void 0&&t.length<r||e!==void 0&&t.length>e)},F2={secondToTime:TT,validate:FT,FileSizeTrans:Kc},jT=r=>{const{maxTicks:e=300,interval:t=1e3,onFinish:n,noStartOnRender:i,actionRef:l,wrapProps:u,helperText:f,label:g,...m}=r,[R,E]=A.useState(0),[_,S]=A.useState(!i);A.useEffect(()=>{if(!_||m.isDisabled||m.isLoading)return;const O=setInterval(()=>E(H=>H+1),t);return()=>clearInterval(O)},[t,_,m.isDisabled,m.isLoading]);const x=A.useCallback(()=>{n==null||n(),S(!1)},[n]);A.useEffect(()=>{R>=e&&!m.isDisabled&&!m.isLoading&&x()},[R,e,x,m.isDisabled,m.isLoading]);const M=A.useCallback(()=>{m.isDisabled||S(!0)},[m.isDisabled]),w=A.useCallback(()=>{m.isDisabled||S(!1)},[m.isDisabled]),b=A.useCallback(()=>{m.isDisabled||(S(!1),E(0))},[m.isDisabled]);A.useEffect(()=>{l&&(l.current={start:M,stop:w,reset:b,setTicks:E})},[l,M,w,b]);const I=e-R;return v.jsx(ec,{wrapProps:u,helperText:f,label:g,children:v.jsx($r,{...m,children:F2.secondToTime(I>0?I:0)})})};function zs(r){const e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate();return`${e}-${t<10?"0"+t:t}-${n<10?"0"+n:n}`}function BT(r){try{if(!r)return;const e=new Date(r);return isNaN(e.getTime())?void 0:e}catch{return}}function HT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)}function qT(r){return new Date(r.getFullYear(),r.getMonth(),r.getDate(),23,59,59,999)}function e0(r,e){return zs(r)===zs(e)}function $u(r,e){return zs(r)>zs(e)}function Yd(r,e){return zs(r)>=zs(e)}function Xd(r,e){return zs(r)<zs(e)}function Jd(r,e){return zs(r)<=zs(e)}function t0(r,e,t){return $u(r,t)?$u(e,t)&&Xd(e,r):$u(e,r)&&Xd(e,t)}function r0(r,e,t){return $u(r,t)?Yd(e,t)&&Jd(e,r):Yd(e,r)&&Jd(e,t)}const Kt={toString:zs,toDate:BT,makeSDate:HT,makeEDate:qT,"===":e0,">":$u,">=":Yd,"<":Xd,"<=":Jd,"s<d<e|e<d<s":t0,"s<=d<=e|e<=d<=s":r0,eq:e0,g:$u,ge:Yd,l:Xd,le:Jd,b:t0,be:r0},zT="_InputContainer_gsbiq_7",$T="_AInput_gsbiq_21",UT="_LeftAddon_gsbiq_40",WT="_RightAddon_gsbiq_46",VT="_ErrorHelperText_gsbiq_52",GT="_Primary_gsbiq_56",ZT="_UnAvailable_gsbiq_61",KT="_Secondary_gsbiq_72",YT="_ReadOnly_gsbiq_87",to={InputContainer:zT,AInput:$T,LeftAddon:UT,RightAddon:WT,ErrorHelperText:VT,Primary:GT,UnAvailable:ZT,Secondary:KT,ReadOnly:YT,Error:"_Error_gsbiq_52"},XT=["Primary","Secondary","ReadOnly","Error"],tc=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",inputRef:i,useValue:l,isReadonly:u,placeholder:f,minLength:g,maxLength:m,tabIndex:R,autoFocus:E,isPassword:_,autoComplete:S="off",inputProps:x,LeftAddon:M,RightAddon:w,wrapProps:b,helperText:I,label:O,wrapType:H,labelProps:q,...z}=r,Y=A.useMemo(()=>JT(t)?"Error":n,[t,n]),fe=A.useMemo(()=>Y==="ReadOnly"?!0:u,[Y,u]),X=A.useMemo(()=>z.isDisabled||z.isLoading,[z.isDisabled,z.isLoading]),[he,j]=nn(l,""),re=A.useCallback(J=>{var me;X||((me=x==null?void 0:x.onKeyDown)==null||me.call(x,J),["Escape","Enter","ArrowUp","ArrowDown"].includes(J.key)||J.stopPropagation(),J.key==="Enter"&&e&&e(J.currentTarget.value))},[X,x,e]),Q=A.useCallback(J=>{var me;X||g&&J.target.value.length<g||(j==null||j(J.target.value),(me=x==null?void 0:x.onChange)==null||me.call(x,J))},[X,g,j,x]);return _?v.jsx(ec,{wrapProps:b,label:O,helperText:I,errorMessage:t,wrapType:H,labelProps:q,children:v.jsx("form",{onSubmit:J=>J.preventDefault(),children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[Y],X&&to.UnAvailable,z.className),children:[M&&v.jsx("div",{className:to.LeftAddon,children:M}),v.jsx("input",{...x,className:Fe.clsx(to.AInput,Y==="Error"&&to.InputError,x==null?void 0:x.className),value:he,type:"password",readOnly:fe,onChange:Q,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:E,autoComplete:S,ref:i}),w&&v.jsx("div",{className:Fe.clsx(to.RightAddon,"NoSelect"),children:w})]})})}):v.jsx(ec,{wrapProps:b,label:O,helperText:I,errorMessage:t,wrapType:H,labelProps:q,children:v.jsxs($r,{...z,className:Fe.clsx(to.InputContainer,to[Y],X&&to.UnAvailable,z.className),children:[M&&v.jsx("div",{className:to.LeftAddon,children:M}),v.jsx("input",{...x,className:Fe.clsx(to.AInput,Y==="Error"&&to.InputError,x==null?void 0:x.className),value:he,readOnly:fe,onChange:Q,onKeyDown:re,placeholder:f,maxLength:m,tabIndex:z.isDisabled||z.isLoading?-1:R,autoFocus:E,autoComplete:S,ref:i}),w&&v.jsx("div",{className:to.RightAddon,children:w})]})})};function JT(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}const QT="_ASelect_ocngk_1",e6="_Arrow_ocngk_14",t6="_Primary_ocngk_23",r6="_UnAvailable_ocngk_34",n6="_IsOpen_ocngk_34",i6="_Secondary_ocngk_41",o6="_Placeholder_ocngk_57",s6="_ValuesContainer_ocngk_61",a6="_Values_ocngk_61",l6="_Options_ocngk_80",c6="_Option_ocngk_80",u6="_Selected_ocngk_122",f6="_CheckBox_ocngk_129",Ho={ASelect:QT,Arrow:e6,Primary:t6,UnAvailable:r6,IsOpen:n6,Secondary:i6,Placeholder:o6,ValuesContainer:s6,Values:a6,Options:l6,Option:c6,Selected:u6,CheckBox:f6},d6=["Primary","Secondary"],rc=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.ASelect["Select(Placeholder)"],onClose:l,OptionRenderer:u=p6,SelectedRenderer:f=g6,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:E=!1,..._}=r,S=A.useRef(null),x=A.useMemo(()=>_.abaseRef??S,[_.abaseRef]),M=A.useRef(null),[w,b]=nn(t,e[0]),[I,O]=A.useState(void 0),[H,q]=A.useState(!1),[z,Y]=A.useState(!1),fe=A.useRef(e),X=A.useRef(null),he=A.useCallback(()=>Y(!1),[]),j=A.useCallback(()=>{_.isDisabled||_.isLoading||e.length<1||(Y(!0),setTimeout(()=>q(!0),0),setTimeout(()=>Xh(M,x,e,g,m),0))},[x,_.isDisabled,_.isLoading,e,g,m]),re=A.useCallback(()=>{q(!1),Y(!0),l==null||l()},[l]),Q=A.useCallback(le=>{var ae;H?re():j(),setTimeout(()=>Xh(M,x,e,g,m),0),(ae=_.onClick)==null||ae.call(_,le)},[x,_,e,H,re,j,g,m]),J=A.useCallback(()=>{Xh(M,x,e,g,m)},[x,e,g,m]);A.useEffect(()=>{if(!H||!x.current)return;const le=x.current;let ae=le.parentElement;for(;ae;)ae.addEventListener("scroll",J),ae=ae.parentElement;return()=>{let ge=le.parentElement;for(;ge;)ge.removeEventListener("scroll",J),ge=ge.parentElement}},[x,H,J]),A.useEffect(()=>{if(H)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[H,J]);const me=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!H)return;const le=new IntersectionObserver(me,{threshold:0});return x.current&&le.observe(x.current),()=>le.disconnect()},[x,H,me]);const ce=A.useCallback(le=>{const ae=le.target,ge=x.current,Pe=M.current;!ge||!ae||!Pe||!ge.contains(ae)&&!Pe.contains(ae)&&re()},[x,re]),be=A.useMemo(()=>_.isDisabled||_.isLoading||e.length<1,[_.isDisabled,_.isLoading,e]);A.useEffect(()=>{if(H)return setTimeout(()=>document.addEventListener("mousedown",ce),0),()=>document.removeEventListener("mousedown",ce)},[H,ce]);const ue=A.useCallback((le,ae)=>{le.stopPropagation(),le.preventDefault(),b==null||b(ae),re()},[b,re]),Se=A.useCallback(()=>{if(!E||!x.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:x,options:e,selectedOption:w,placeholder:i,optionRenderer:ae=>ae===null?null:u({option:ae}),type:n,isMulti:!1});O(le)},[E,x,e,w,i,u,n]);return A.useEffect(()=>E?((e!==fe.current||I===void 0)&&(X.current!==null&&cancelAnimationFrame(X.current),X.current=requestAnimationFrame(()=>{Se(),X.current=null,fe.current=[...e]})),()=>{X.current!==null&&(cancelAnimationFrame(X.current),X.current=null)}):void 0,[E,e,Se,I]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{..._,isDisabled:_.isDisabled||e.length<1,className:Fe.clsx(_.className,Ho.ASelect,"NoSelect",H&&Ho.IsOpen,be&&Ho.UnAvailable,Ho[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:I?`${I}px`:E?"100px":void 0,..._.style},abaseRef:x,onClick:Q,children:[v.jsx("div",{className:Ho.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(Ho.Values,(w==null||w==="")&&Ho.Placeholder),children:v.jsx(f,{selectedOption:w,OptionRenderer:u,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(Ho.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:H?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(H||z)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(Ho.Options,Ho[n]),onTransitionEnd:he,style:{opacity:+H,visibility:H?"visible":"hidden",pointerEvents:H?void 0:"none",borderRadius:x.current?window.getComputedStyle(x.current).borderRadius:void 0,width:I?`${I}px`:E?"100px":void 0},ref:M,children:e.map((le,ae)=>{const ge=w===le,Pe=x.current?window.getComputedStyle(x.current):void 0;return le===null?null:v.jsx("div",{className:Fe.clsx(Ho.Option,ge&&Ho.Selected,"NoSelect",Ho[n]),style:{height:Pe==null?void 0:Pe.height},onClick:Qe=>ue(Qe,le),children:v.jsx(u,{option:le})},ae)})}),document.body)]})};function Xh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=h6(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function h6(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const p6=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},g6=r=>{const{selectedOption:e,OptionRenderer:t,placeholder:n}=r;return e==null||e===""?n:v.jsx(t,{option:e})},m6="_Anchor_502n9_1",v6="_Primary_502n9_18",y6="_Secondary_502n9_21",b6="_Placeholder_502n9_25",_6="_Icon_502n9_30",x6="_ADatePicker_502n9_37",S6="_StringInputWrap_502n9_48",C6="_StringInputContainer_502n9_53",w6="_StringInput_502n9_48",A6="_IsIdx_502n9_68",T6="_CalendarContainer_502n9_72",E6="_Header_502n9_78",k6="_Prev_502n9_82",R6="_Next_502n9_83",I6="_MonthYear_502n9_116",L6="_Select_502n9_121",M6="_Calendar_502n9_72",D6="_Cell_502n9_132",O6="_IsNotCurrentMonth_502n9_144",P6="_IsSelected_502n9_148",N6="_IsDisabled_502n9_152",F6="_IsHovered_502n9_155",j6="_Week_502n9_159",B6="_WeekDay_502n9_164",rn={Anchor:m6,Primary:v6,Secondary:y6,Placeholder:b6,Icon:_6,ADatePicker:x6,StringInputWrap:S6,StringInputContainer:C6,StringInput:w6,String:"_String_502n9_48",IsIdx:A6,CalendarContainer:T6,Header:E6,Prev:k6,Next:R6,MonthYear:I6,Select:L6,Calendar:M6,Cell:D6,IsNotCurrentMonth:O6,IsSelected:P6,IsDisabled:N6,IsHovered:F6,Week:j6,WeekDay:B6},H6="_Anchor_iz4hf_1",q6="_Primary_iz4hf_18",z6="_Secondary_iz4hf_22",$6="_Placeholder_iz4hf_26",U6="_Icon_iz4hf_31",W6="_ADateRangePicker_iz4hf_38",V6="_StringInputWrap_iz4hf_49",G6="_StringInputContainer_iz4hf_53",Z6="_StringInput_iz4hf_49",K6="_IsIdx_iz4hf_69",Y6="_CalendarContainer_iz4hf_73",X6="_Header_iz4hf_79",J6="_Prev_iz4hf_83",Q6="_Next_iz4hf_84",eE="_MonthYear_iz4hf_117",tE="_Select_iz4hf_122",rE="_Calendar_iz4hf_73",nE="_Cell_iz4hf_133",iE="_IsNotCurrentMonth_iz4hf_145",oE="_IsSelected_iz4hf_149",sE="_IsDisabled_iz4hf_153",aE="_IsHovered_iz4hf_156",lE="_Week_iz4hf_160",cE="_WeekDay_iz4hf_165",uE="_ChoiceButton_iz4hf_169",Hr={Anchor:H6,Primary:q6,Secondary:z6,Placeholder:$6,Icon:U6,ADateRangePicker:W6,StringInputWrap:V6,StringInputContainer:G6,StringInput:Z6,String:"_String_iz4hf_49",IsIdx:K6,CalendarContainer:Y6,Header:X6,Prev:J6,Next:Q6,MonthYear:eE,Select:tE,Calendar:rE,Cell:nE,IsNotCurrentMonth:iE,IsSelected:oE,IsDisabled:sE,IsHovered:aE,Week:lE,WeekDay:cE,ChoiceButton:uE},pm=r=>{const{type:e="Primary",className:t,useDateRange:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,yearsOptionSize:R,noDefaultChoices:E,LeftAddon:_,RightAddon:S,placeholder:x,noClearButton:M,resources:w,onClick:b,...I}=r,O=A.useMemo(()=>({...hn.ADateRangePicker,...w}),[w]),H=A.useMemo(()=>x??O["Select DateRange"],[x,O]),[q,z]=A.useMemo(()=>{let ne,Je;if(u&&(ne=Kt.makeSDate(u)),f&&(Je=Kt.makeEDate(f)),ne&&Je&&Kt["<"](Je,ne)){console.warn("ADateRangePicker: maxDate should be greater than minDate. maxDate and minDate are swapped.");const pt=ne;ne=Je,Je=pt}return[ne,Je]},[u,f]),[Y,fe]=A.useState("sD"),[X,he]=nn(n,void 0),j=A.useCallback(ne=>{he&&(ne===void 0?(he(void 0),we(""),Ne("")):(he({sDate:Kt.makeSDate(ne.sDate),eDate:Kt.makeEDate(ne.eDate)}),we(Kt.toString(ne.sDate)),Ne(Kt.toString(ne.eDate))))},[he]);A.useEffect(()=>{X&&(we(Kt.toString(X.sDate)),Ne(Kt.toString(X.eDate)))},[X]);const re=A.useCallback(ne=>{if(!he)return;let Je=X?X.sDate:Kt.makeSDate(ne);ne=Kt.makeEDate(ne),he({sDate:Je,eDate:ne}),we(Kt.toString(Je)),Ne(Kt.toString(ne))},[he,X]),[Q,J]=A.useState(),[me,ce]=A.useState(),be=A.useCallback(ne=>{Y==="sD"&&j({sDate:ne,eDate:ne}),J(ne),ce(ne)},[Y,j,J]),ue=A.useCallback(ne=>{Y==="sD"?Q&&(Kt.eq(Q,ne)?fe("eD"):Kt[">"](ne,Q)?(re(ne),J(void 0)):(j({sDate:ne,eDate:Q}),J(void 0))):(X?Kt["<"](ne,X.sDate)?j({sDate:ne,eDate:X.eDate}):re(ne):j({sDate:ne,eDate:ne}),J(void 0),fe("sD"))},[re,Q,fe,Y,j,X,J]),Se=A.useCallback(ne=>{Q&&ce(ne)},[Q]),le=A.useCallback(()=>{ce(void 0),J(void 0),fe("sD")},[fe,J]),[ae,ge]=A.useState(n0(X,q,z)),Pe=A.useMemo(()=>gm(ae.year,q,z,R),[ae.year,q,z,R]),Qe=A.useMemo(()=>Kf(ae.year,q,z),[q,z,ae.year]),pe=A.useCallback(ne=>{if(!Pe.includes(ne))return;const Je={month:ae.month,year:ne},pt=Kf(Je.year,q,z);pt.length<1||(pt.includes(Je.month)||(Je.month<pt[0]?Je.month=pt[0]:Je.month>pt[pt.length-1]&&(Je.month=pt[pt.length-1])),ge(Je))},[q,z,Pe,ae.month]),Ie=A.useCallback(ne=>{Qe.includes(ne)&&ge({month:ne,year:ae.year})},[Qe,ae.year]),Xe=A.useMemo(()=>z?new Date(ae.year,ae.month+1,1)>z:!1,[ae,z]),tt=A.useCallback(()=>{if(Xe||Qe.length<1)return;const ne=ae.month+1;ne>11?ge({month:Qe[0],year:ae.year+1}):ge({month:ne,year:ae.year})},[Xe,Qe,ae]),Ue=A.useMemo(()=>q?new Date(ae.year,ae.month,0)<q:!1,[ae,q]),Me=A.useCallback(()=>{if(Ue||Qe.length<1)return;const ne=ae.month-1;ne<Qe[0]?ge({month:Qe[Qe.length-1],year:ae.year-1}):ge({month:ne,year:ae.year})},[Ue,Qe,ae]),[Ee,we]=A.useState(X!=null&&X.sDate?Kt.toString(X.sDate):""),We=A.useCallback(ne=>{if(ne.length>10||(we(ne),ne.length<10)||!he)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let pt=X?X.eDate:Je;X&&Kt[">"](Je,pt)&&([Je,pt]=i0(Je,pt)),j({sDate:Je,eDate:pt}),ge({month:Je.getMonth(),year:Je.getFullYear()})},[he,j,X,q,z]),[ct,Ne]=A.useState(X!=null&&X.eDate?Kt.toString(X.eDate):""),bt=A.useCallback(ne=>{if(ne.length>10||(Ne(ne),ne.length<10)||!he)return;let Je=Kt.toDate(ne);if(!Je)return;q&&Je<q&&(Je=q),z&&Je>z&&(Je=z);let pt=X?X.sDate:Je;X&&Kt[">"](pt,Je)&&([pt,Je]=i0(pt,Je)),j({sDate:pt,eDate:Je}),ge({month:Je.getMonth(),year:Je.getFullYear()})},[he,j,X,q,z]),Le=A.useCallback(()=>{X&&(we(Kt.toString(X.sDate)),Ne(Kt.toString(X.eDate)))},[X]),Ze=A.useMemo(()=>{const{month:ne,year:Je}=ae,pt=new Date(Je,ne,1),$e=new Date(Je,ne+1,0),De=[];for(let Et=0;Et<pt.getDay();Et++){const Nt=new Date(Je,ne,0).getDate()-pt.getDay()+Et+1,Qt=new Date(Je,ne-1,Nt),rr=q&&q>Qt||z&&z<Qt,Ft=X?Kt.be(X.sDate,Qt,X.eDate):!1,zt=me&&X&&Kt.be(X.sDate,Qt,me);De.push({day:Nt,isSelected:Ft,isHovered:zt,date:Qt,isDisabled:rr,isCurrentMonth:!1})}for(let Et=1;Et<=$e.getDate();Et++){const ut=new Date(Je,ne,Et),Nt=q&&q>ut||z&&z<ut,Qt=X?Kt.be(X.sDate,ut,X.eDate):!1,rr=me&&X&&Kt.be(X.sDate,ut,me);De.push({day:Et,isSelected:Qt,isHovered:rr,date:ut,isDisabled:Nt,isCurrentMonth:!0})}for(let Et=0;Et<7-$e.getDay()-1;Et++){const ut=new Date(Je,ne+1,Et+1),Nt=q&&q>ut||z&&z<ut,Qt=X?Kt.be(X.sDate,ut,X.eDate):!1,rr=me&&X&&Kt.be(X.sDate,ut,me);De.push({day:Et+1,isSelected:Qt,isHovered:rr,date:ut,isDisabled:Nt,isCurrentMonth:!1})}const St=[];for(let Et=0;Et<De.length/7;Et++)St.push(v.jsx("div",{className:Hr.Week,children:De.slice(Et*7,Et*7+7).map((ut,Nt)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(Hr.Day,Hr.Cell,ut.isDisabled?Hr.IsDisabled:ut.isCurrentMonth?ut.isSelected?Hr.IsSelected:ut.isHovered&&Hr.IsHovered:Hr.IsNotCurrentMonth),isDisabled:ut.isDisabled,onMouseDown:()=>ut.isCurrentMonth&&be(ut.date),onMouseUp:()=>ut.isCurrentMonth&&ue(ut.date),onMouseEnter:()=>ut.isCurrentMonth&&Se(ut.date),children:ut.day},Nt))},Et));return St},[ae,me,X,q,z,be,ue,Se]),ot=A.useRef(null),Ct=A.useCallback(()=>{ot&&fm(ot,je,l)},[ot,l]),[_t,wt]=A.useState(!1),[xt,it]=A.useState(!1),je=A.useRef(null),yt=A.useCallback(()=>{g||m||(wt(!0),setTimeout(()=>it(!0),0),setTimeout(()=>Ct(),0),ge(n0(X,q,z)))},[g,m,X,Ct,q,z]),st=A.useCallback(()=>{g||m||(wt(!0),it(!1))},[g,m]),Rt=A.useMemo(()=>xt?st:yt,[xt,yt,st]),Bt=A.useCallback(()=>wt(!1),[]),ze=A.useCallback(ne=>{const Je=document.getElementById("root"),pt=ne.target,$e=je.current,De=ot.current;!Je||!$e||!pt||!De||!$e.contains(pt)&&Je.contains(pt)&&!De.contains(pt)&&st()},[st]);A.useEffect(()=>{if(xt)return setTimeout(()=>document.addEventListener("mousedown",ze),0),()=>document.removeEventListener("mousedown",ze)},[xt,ze]);const Tt=A.useCallback(()=>{Ct()},[Ct]);A.useEffect(()=>{if(!xt||!(ot!=null&&ot.current))return;const ne=ot.current;let Je=ne.parentElement;for(;Je;)Je.addEventListener("scroll",Tt),Je=Je.parentElement;return()=>{let pt=ne.parentElement;for(;pt;)pt.removeEventListener("scroll",Tt),pt=pt.parentElement}},[ot,xt,Tt]),A.useEffect(()=>{if(xt)return window.addEventListener("resize",Tt),()=>window.removeEventListener("resize",Tt)},[xt,Tt]);const Ht=A.useCallback(ne=>{ne[0].intersectionRatio===0&&st()},[st]);A.useEffect(()=>{if(!xt)return;const ne=new IntersectionObserver(Ht,{threshold:0});return je.current&&ne.observe(je.current),()=>ne.disconnect()},[je,xt,Ht]),A.useEffect(()=>{i&&(i.current={open:yt,close:st,toggle:Rt})},[i,yt,st,Rt]),A.useEffect(()=>{if(!X)return;let ne={sDate:X.sDate,eDate:X.eDate};q&&(Kt["<"](X.sDate,q)&&(ne.sDate=q),Kt["<"](X.eDate,q)&&(ne.eDate=q)),z&&(Kt[">"](X.sDate,z)&&(ne.sDate=z),Kt[">"](X.eDate,z)&&(ne.eDate=z)),(ne.sDate!==X.sDate||ne.eDate!==X.eDate)&&j(ne)},[q,z,X,j]);const _r=A.useCallback(ne=>{b==null||b(ne),Rt()},[b,Rt]),kr=A.useCallback(ne=>{j(void 0),st(),ne.stopPropagation()},[j,st]),Cr=A.useCallback(()=>X?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:kr}):null,[X,kr]),ve=A.useMemo(()=>X?`${Kt.toString(X.sDate)} ~ ${Kt.toString(X.eDate)}`:v.jsx("span",{className:Hr.Placeholder,children:H}),[X,H]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...I,isLoading:m,isDisabled:g,className:Fe.clsx(Hr.Anchor,"IsClickable",Hr[e],t),onClick:_r,abaseRef:ot,children:[_,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),v.jsx(mn,{w:4})]}),ve,v.jsx(Qc,{}),!M&&v.jsx(Cr,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(Hr.Icon,Hr[e])}),S&&S]}),(xt||_t)&&Hs.createPortal(v.jsxs("div",{className:Hr.ADateRangePicker,onTransitionEnd:Bt,onMouseLeave:le,style:{opacity:+xt,visibility:xt?"visible":"hidden"},ref:je,children:[v.jsxs("div",{className:Hr.StringInputContainer,children:[v.jsxs(Sn,{children:[v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,Y==="sD"&&me&&Hr.IsIdx),useValue:[Ee,We],placeholder:"YYYY-MM-DD",onBlur:Le}),v.jsx(mn,{w:8}),v.jsx(tc,{maxLength:11,wrapProps:{className:Hr.StringInputWrap},inputProps:{className:Hr.StringInput},className:Fe.clsx(Hr.String,Y==="eD"&&me&&Hr.IsIdx),useValue:[ct,bt],placeholder:"YYYY-MM-DD",onBlur:Le})]}),!E&&v.jsxs(Sn,{style:{marginTop:4},children:[v.jsx(Ed,{children:O["1일"],onClick:()=>j({sDate:new Date,eDate:new Date})}),v.jsx(Ed,{children:O["1주일"],onClick:()=>j({sDate:new Date(new Date().setDate(new Date().getDate()-7)),eDate:new Date})}),v.jsx(Ed,{children:O["1개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-1)),eDate:new Date})}),v.jsx(Ed,{children:O["3개월"],onClick:()=>j({sDate:new Date(new Date().setMonth(new Date().getMonth()-3)),eDate:new Date})})]})]}),v.jsxs("div",{className:Hr.CalendarContainer,children:[v.jsxs(Sn,{className:Hr.Header,children:[v.jsx(Fi,{type:"Raw",className:Hr.Prev,onClick:Me,isDisabled:Ue}),v.jsxs("div",{className:Hr.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[ae.month,Ie],className:Hr.Select,options:Qe,OptionRenderer:ne=>O.months(ne.option),SelectedRenderer:ne=>O.months(ne.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[ae.year,pe],className:Hr.Select,options:Pe})]}),v.jsx(Fi,{type:"Raw",className:Hr.Next,onClick:tt,isDisabled:Xe})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:Hr.Calendar,children:[v.jsx("div",{className:Hr.Week,children:[0,1,2,3,4,5,6].map(ne=>v.jsx("div",{className:Fe.clsx(Hr.WeekDay,Hr.Cell),children:O.weekDays(ne)},ne))}),Ze]})]})]}),document.body)]})};function Kf(r,e,t){let n=0;e&&e.getFullYear()===r&&(n=e.getMonth());let i=11;t&&t.getFullYear()===r&&(i=t.getMonth());const l=[];for(let u=n;u<=i;u++)l.push(u);return l}function gm(r,e,t,n=5){const i=[];let l=r-n/2+n%2/2;e&&l<e.getFullYear()&&(l=e.getFullYear());let u=l+n-1;t&&u>t.getFullYear()&&(u=t.getFullYear());for(let f=l;f<=u;f++)i.push(f);return i}function n0(r,e,t){return r??(r={sDate:new Date,eDate:new Date}),e&&Kt["<"](r.sDate,e)?{month:e.getMonth(),year:e.getFullYear()}:t&&Kt[">"](r.eDate,t)?{month:t.getMonth(),year:t.getFullYear()}:{month:r.sDate.getMonth(),year:r.sDate.getFullYear()}}function i0(r,e){return[e,r]}const Ed=r=>v.jsx(Fi,{className:Fe.clsx(Hr.ChoiceButton,"Headline2"),type:"Secondary",...r}),fE=["Primary","Secondary","Raw"],mm=r=>{const{type:e="Primary",className:t,useDate:n,actionRef:i,position:l=ef.SE,minDate:u,maxDate:f,isDisabled:g,isLoading:m,placeholder:R,LeftAddon:E,RightAddon:_,resources:S,noClearButton:x,onClick:M,...w}=r,b=A.useMemo(()=>({...hn.ADatePicker,...S}),[S]),I=A.useMemo(()=>R??b["Select Date"],[R,b]),[O,H]=A.useMemo(()=>{let je,yt;return u&&(je=Kt.makeSDate(u)),f&&(yt=Kt.makeEDate(f)),je&&yt&&Kt["<"](yt,je)?(console.warn("ADatePicker: maxDate should be greater than minDate. maxDate and minDate are swapped."),[Kt.makeSDate(yt),Kt.makeEDate(je)]):[je,yt]},[u,f]),[q,z]=nn(n,null),[Y,fe]=A.useState(q?Kt.toString(q):""),[X,he]=A.useState(()=>{const je=q??new Date;return O&&je<O?O.getMonth():H&&je>H?H.getMonth():(je??new Date).getMonth()}),[j,re]=A.useState(()=>{const je=q??new Date;return O&&je<O?O.getFullYear():H&&je>H?H.getFullYear():(je??new Date).getFullYear()}),Q=A.useCallback(je=>{re(je);const yt=Kf(je,O,H);yt.includes(X)||(X<yt[0]?he(yt[0]):X>yt[yt.length-1]&&he(yt[yt.length-1]))},[O,H,X]),J=A.useCallback(je=>{if(je.length>10||(fe(je),je.length<10)||!z)return;let yt=Kt.toDate(je);yt&&(O&&yt<O&&(yt=O),H&&yt>H&&(yt=H),z(yt),re(yt.getFullYear()),he(yt.getMonth()))},[z,O,H]),me=A.useCallback(je=>{const yt=j+je;yt<0||re(yt)},[j]),ce=A.useCallback(je=>{const yt=X+je;yt<0?(he(11),me(-1)):yt>11?(he(0),me(1)):he(yt)},[X,me]),be=A.useCallback(je=>{z&&(je===void 0?(z(void 0),fe("")):(z(je),fe(Kt.toString(je))))},[z]),ue=A.useMemo(()=>{const je=new Date(j,X,0);return O&&je<O},[j,X,O]),Se=A.useMemo(()=>{const je=new Date(j,X+1,1);return H&&je>H},[j,X,H]),le=A.useCallback(()=>{ue||ce(-1)},[ce,ue]),ae=A.useCallback(()=>{Se||ce(1)},[ce,Se]),[ge,Pe]=A.useState(null),Qe=A.useCallback(()=>{z&&Pe(null)},[z]),pe=A.useCallback(je=>{z&&Pe(je)},[z]),Ie=A.useMemo(()=>{const je=new Date(j,X,1),yt=new Date(j,X+1,0),st=[];for(let Bt=0;Bt<je.getDay();Bt++){const Tt=new Date(j,X,0).getDate()-je.getDay()+Bt+1,Ht=new Date(j,X-1,Tt),_r=O&&O>Ht||H&&H<Ht,kr=q&&Kt.eq(Ht,q),Cr=ge&&Kt.eq(Ht,ge);st.push({day:Tt,isSelected:kr,date:Ht,isDisabled:_r,isHovered:Cr,isCurrentMonth:!1})}for(let Bt=1;Bt<=yt.getDate();Bt++){const ze=new Date(j,X,Bt),Tt=O&&O>ze||H&&H<ze,Ht=q&&Kt.eq(ze,q),_r=ge&&Kt.eq(ze,ge);st.push({day:Bt,isSelected:Ht,date:ze,isDisabled:Tt,isHovered:_r,isCurrentMonth:!0})}for(let Bt=0;Bt<7-yt.getDay()-1;Bt++){const ze=new Date(j,X+1,Bt+1),Tt=O&&O>ze||H&&H<ze,Ht=q&&Kt.eq(ze,q),_r=ge&&Kt.eq(ze,ge);st.push({day:Bt+1,isSelected:Ht,date:ze,isDisabled:Tt,isHovered:_r,isCurrentMonth:!1})}const Rt=[];for(let Bt=0;Bt<st.length/7;Bt++)Rt.push(v.jsx("div",{className:rn.Week,children:st.slice(Bt*7,Bt*7+7).map((ze,Tt)=>v.jsx(Fi,{type:"Raw",className:Fe.clsx(rn.Day,rn.Cell,ze.isDisabled?rn.IsDisabled:ze.isCurrentMonth?ze.isSelected?rn.IsSelected:ze.isHovered&&rn.IsHovered:rn.IsNotCurrentMonth),isDisabled:ze.isDisabled,onClick:()=>ze.isCurrentMonth&&be(ze.date),onMouseLeave:()=>ze.isCurrentMonth&&Qe(),onMouseEnter:()=>ze.isCurrentMonth&&pe(ze.date),children:ze.day},Tt))},Bt));return Rt},[X,be,q,j,O,H,ge,Qe,pe]),Xe=A.useRef(null),tt=A.useCallback(()=>{Xe&&fm(Xe,We,l)},[Xe,l]),[Ue,Me]=A.useState(!1),[Ee,we]=A.useState(!1),We=A.useRef(null),ct=A.useCallback(()=>{g||m||(Me(!0),setTimeout(()=>we(!0),0),setTimeout(()=>tt(),0),fe(q?Kt.toString(q):""),he(()=>{const je=q??new Date;return O&&je<O?O.getMonth():H&&je>H?H.getMonth():je.getMonth()}),re(()=>{const je=q??new Date;return O&&je<O?O.getFullYear():H&&je>H?H.getFullYear():je.getFullYear()}))},[g,m,q,tt,O,H]),Ne=A.useCallback(()=>{g||m||(Me(!0),we(!1))},[g,m]),bt=A.useMemo(()=>Ee?Ne:ct,[Ee,ct,Ne]),Le=A.useCallback(()=>Me(!1),[]),Ze=A.useCallback(je=>{const yt=document.getElementById("root"),st=je.target,Rt=We.current,Bt=Xe.current;!yt||!Rt||!st||!Bt||!Rt.contains(st)&&yt.contains(st)&&!Bt.contains(st)&&Ne()},[Ne]);A.useEffect(()=>{if(Ee)return setTimeout(()=>document.addEventListener("mousedown",Ze),0),()=>document.removeEventListener("mousedown",Ze)},[Ee,Ze]);const ot=A.useCallback(()=>{tt()},[tt]);A.useEffect(()=>{if(!Ee||!(Xe!=null&&Xe.current))return;const je=Xe.current;let yt=je.parentElement;for(;yt;)yt.addEventListener("scroll",ot),yt=yt.parentElement;return()=>{let st=je.parentElement;for(;st;)st.removeEventListener("scroll",ot),st=st.parentElement}},[Xe,Ee,ot]),A.useEffect(()=>{if(Ee)return window.addEventListener("resize",ot),()=>window.removeEventListener("resize",ot)},[Ee,ot]);const Ct=A.useCallback(je=>{je[0].intersectionRatio===0&&Ne()},[Ne]);A.useEffect(()=>{if(!Ee)return;const je=new IntersectionObserver(Ct,{threshold:0});return We.current&&je.observe(We.current),()=>je.disconnect()},[We,Ee,Ct]),A.useEffect(()=>{i&&(i.current={open:ct,close:Ne,toggle:bt})},[i,ct,Ne,bt]);const _t=A.useCallback(je=>{M==null||M(je),bt()},[M,bt]),wt=A.useCallback(je=>{be(void 0),Ne(),je.stopPropagation()},[be,Ne]),xt=A.useCallback(()=>q?v.jsx(_i,{style:{scale:"0.8"},type:"Raw",icon:"Close",onClick:wt}):null,[q,wt]),it=A.useMemo(()=>q?Kt.toString(q):v.jsx("span",{className:rn.Placeholder,children:I}),[q,I]);return v.jsxs(v.Fragment,{children:[v.jsxs($r,{...w,isLoading:m,isDisabled:g,className:Fe.clsx(rn.Anchor,"IsClickable",rn[e],t),onClick:_t,abaseRef:Xe,children:[E,e==="Primary"&&v.jsxs(v.Fragment,{children:[v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),v.jsx(mn,{w:4})]}),it,v.jsx(Qc,{}),!x&&v.jsx(xt,{}),e==="Secondary"&&v.jsx(jr,{icon:"CalendarDay",className:Fe.clsx(rn.Icon,rn[e])}),_&&_]}),(Ee||Ue)&&Hs.createPortal(v.jsxs("div",{className:rn.ADatePicker,onTransitionEnd:Le,style:{opacity:+Ee,visibility:Ee?"visible":"hidden"},ref:We,children:[v.jsx("div",{className:rn.StringInputContainer,children:v.jsx(tc,{maxLength:q?30:11,wrapProps:{className:rn.StringInputWrap},inputProps:{className:rn.StringInput},className:rn.String,useValue:[Y,J],placeholder:"YYYY-MM-DD"})}),v.jsxs("div",{className:rn.CalendarContainer,children:[v.jsxs(Sn,{className:rn.Header,children:[v.jsx(Fi,{type:"Raw",className:rn.Prev,onClick:le,isDisabled:ue}),v.jsxs("div",{className:rn.MonthYear,children:[v.jsx(rc,{type:"Secondary",useSelect:[X,he],className:rn.Select,options:Kf(j,O,H),OptionRenderer:je=>b.months(je.option),SelectedRenderer:je=>b.months(je.selectedOption)}),v.jsx(mn,{w:8}),v.jsx(rc,{type:"Secondary",useSelect:[j,Q],className:rn.Select,options:gm(j,O,H)})]}),v.jsx(Fi,{type:"Raw",className:rn.Next,onClick:ae,isDisabled:Se})]}),v.jsx(mn,{h:10}),v.jsxs("div",{className:rn.Calendar,children:[v.jsx("div",{className:rn.Week,children:[0,1,2,3,4,5,6].map(je=>v.jsx("div",{className:Fe.clsx(rn.WeekDay,rn.Cell),children:b.weekDays(je)},je))}),Ie]})]})]}),document.body)]})},dE="_Paper_e69j5_1",hE="_Card_e69j5_15",pE="_Body_e69j5_26",gE="_Title_e69j5_35",mE="_Content_e69j5_42",vE="_Action_e69j5_45",yE="_Button_e69j5_58",ba={Paper:dE,Card:hE,Body:pE,Title:gE,Content:mE,Action:vE,Button:yE},bE=["okCancel","cancelOk","ok","cancel","none"],_E=r=>{const{dlgCore:e,type:t="okCancel",title:n,children:i,style:l,titleStyle:u,bodyStyle:f,contentStyle:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:E,onOk:_,onCancel:S,onClose:x,onEnterPress:M,onEscPress:w,onSpacePress:b,onPaperClick:I,noDim:O=!1,isLoading:H,isOkDisabled:q,isOkLoading:z,isCancelDisabled:Y,isCancelLoading:fe,buttonNoInteractive:X,okButtonClassName:he,cancelButtonClassName:j,resources:re}=r,Q=A.useMemo(()=>({...hn.ADialog,...re}),[re]),[J,me]=A.useState(0);A.useEffect(()=>me(1),[]);const ce=A.useCallback(()=>{me(0)},[]),be=A.useCallback(()=>{if(!J){const[,Ee]=e.state.useIsOpen;Ee==null||Ee(!1),x==null||x()}},[J,x,e]),ue=A.useCallback(async()=>{if(!J||t==="cancel"||t==="none"||H||q||z)return;const{event:Ee,e:we}=Gc();await(_==null?void 0:_(we)),!Ee.preventDefault&&ce()},[J,t,ce,_,q,H,z]),Se=A.useCallback(async()=>{if(!J||t==="ok"||t==="none"||H||Y||fe)return;const{event:Ee,e:we}=Gc();await(S==null?void 0:S(we)),!Ee.preventDefault&&ce()},[J,t,ce,S,Y,H,fe]);A.useEffect(()=>{e&&e.state.setAction({close:ce,ok:ue,cancel:Se})},[e,ce,ue,Se]);const le=A.useCallback(async()=>{const{event:Ee,e:we}=Gc();await(M==null?void 0:M(we)),!Ee.preventDefault&&ue()},[M,ue]),ae=A.useCallback(async()=>{const{event:Ee,e:we}=Gc();await(b==null?void 0:b(we)),!Ee.preventDefault&&ue()},[b,ue]),ge=A.useCallback(async()=>{const{event:Ee,e:we}=Gc();await(w==null?void 0:w(we)),!Ee.preventDefault&&Se()},[w,Se]),Pe=A.useRef(null),Qe=A.useCallback(Ee=>{const we=document.body.getElementsByClassName(ba.Paper);we.length===0||we[we.length-1]!==Pe.current||(Ee.key==="Enter"&&J?le():Ee.key===" "&&J?ae():Ee.key==="Escape"&&J&&ge())},[J,le,ae,ge]);A.useEffect(()=>{if(J)return window.addEventListener("keydown",Qe),()=>window.removeEventListener("keydown",Qe)},[J,Qe]);const pe=A.useRef(!1),Ie=A.useRef(!1),Xe=A.useCallback(()=>{pe.current=!0},[]),tt=A.useCallback(()=>{pe.current=!1,Ie.current=!1},[]),Ue=A.useCallback(()=>{Ie.current=!0},[]),Me=A.useCallback(async()=>{const Ee=!Ie.current||pe.current;if(pe.current=!1,Ie.current=!1,Ee)return;const{event:we,e:We}=Gc();await(I==null?void 0:I(We)),!we.preventDefault&&Se()},[I,Se]);return Hs.createPortal(v.jsx("div",{className:ba.Paper,style:{backgroundColor:O?"transparent":void 0,pointerEvents:J?void 0:"none",opacity:J},onMouseUp:Me,onMouseDown:Ue,onTransitionEnd:be,ref:Pe,children:v.jsxs($r,{className:ba.Card,onMouseDown:Xe,onMouseUp:tt,style:l,isLoading:H,children:[v.jsxs("div",{className:ba.Body,style:f,children:[n&&v.jsx(xE,{title:n,titleStyle:u}),i&&v.jsx("div",{className:ba.Content,style:g,children:i})]}),t!=="none"&&v.jsx(SE,{type:t,ok:ue,cancel:Se,resources:Q,isOkDisabled:q,isOkLoading:z,isCancelDisabled:Y,isCancelLoading:fe,okButtonStyle:m,cancelButtonStyle:R,actionStyle:E,buttonNoInteractive:X,okButtonClassName:he,cancelButtonClassName:j})]})}),document.body)},xE=r=>{const{title:e,titleStyle:t}=r;return v.jsx("div",{className:Fe.clsx(ba.Title,"NoSelect","Title3"),style:t,children:e})},SE=r=>{const{type:e,ok:t,cancel:n,resources:i,isOkDisabled:l,isOkLoading:u,isCancelDisabled:f,isCancelLoading:g,okButtonStyle:m,cancelButtonStyle:R,actionStyle:E,buttonNoInteractive:_,okButtonClassName:S,cancelButtonClassName:x}=r,M=A.useMemo(()=>({onClick:t,isDisabled:l,isLoading:u,children:i.Ok,style:m,noInteractive:_,className:Fe.clsx(ba.Button,S)}),[t,l,u,i.Ok,m,_,S]),w=A.useMemo(()=>({type:"Secondary",onClick:n,isDisabled:f,isLoading:g,children:i.Cancel,style:R,noInteractive:_,className:Fe.clsx(ba.Button,x)}),[n,f,g,i.Cancel,R,_,x]);if(e==="okCancel"||e==="ok")return v.jsxs("div",{className:ba.Action,style:{...E},children:[v.jsx(Fi,{...M}),e==="okCancel"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...w})]})]},e);if(e==="cancelOk"||e==="cancel")return v.jsxs("div",{className:ba.Action,children:[v.jsx(Fi,{...w}),e==="cancelOk"&&v.jsxs(v.Fragment,{children:[v.jsx(mn,{w:8}),v.jsx(Fi,{...M})]})]},e)},CE=r=>{const e=A.useMemo(()=>Math.random().toFixed(32),[]),t=A.useMemo(()=>{const S={};return r.forEach(x=>{S[x]=x+e}),S},[r,e]),n=A.useMemo(()=>[],[]),i=A.useMemo(()=>(n.length=0,n.push(...r),n),[n,r]),[l,u]=A.useState([]),f=A.useRef((()=>{const S={};return i.forEach(x=>{S[x]={open:()=>u(M=>[...M,x]),close:()=>{},ok:()=>{},cancel:()=>{}}}),S})()),g=A.useMemo(()=>{const S={};return i.forEach(x=>{S[x]=M=>{u(w=>!M&&w.includes(x)?w.filter(b=>b!==x):M&&!w.includes(x)?[...w,x]:w)}}),S},[i]),m=A.useMemo(()=>{const S={};return i.forEach(x=>{const w=[l.includes(x),g[x]],b=I=>{f.current[x]={...f.current[x],...I}};S[x]={useIsOpen:w,setAction:b}}),S},[l,g,i]),R=A.useMemo(()=>{const S={};return i.forEach(x=>{const M=()=>f.current[x].open(),w=()=>f.current[x].close(),b=()=>f.current[x].ok(),I=()=>f.current[x].cancel();S[x]={open:M,close:w,ok:b,cancel:I}}),S},[i]),E=A.useMemo(()=>({}),[]),_=A.useMemo(()=>(i.forEach(S=>{E[S]={state:m[S],action:R[S]}}),E),[E,i,m,R]);return A.useEffect(()=>(Object.keys(_).forEach(x=>{const M=_[x],w=t[x],b=js.find(I=>{I.id});b?b.core=M:js.push({id:w,core:M})}),()=>{const x=Object.keys(_),M=js.filter(w=>x.includes(w.id));js.length=0,js.push(...M)}),[_,t]),_},wE=()=>{const r=A.useMemo(()=>Math.random().toFixed(32),[]),[e,t]=A.useState(!1),n=A.useRef({open:()=>t(!0),close:()=>{},ok:()=>{},cancel:()=>{}}),i=A.useMemo(()=>({useIsOpen:[e,t],setAction:g=>{n.current={...n.current,...g}}}),[e]),l=A.useMemo(()=>({open:()=>n.current.open(),close:()=>n.current.close(),ok:()=>n.current.ok(),cancel:()=>n.current.cancel()}),[]),u=A.useMemo(()=>({}),[]),f=A.useMemo(()=>(u.state=i,u.action=l,u),[u,i,l]);return A.useEffect(()=>{const g=js.find(m=>m.id===r);return g?g.core=f:js.push({id:r,core:f}),()=>{const m=js.filter(R=>R.id!==r);js.length=0,js.push(...m)}},[r,f]),f},AE=r=>{const{dlgCore:e,children:t}=r,[n,i]=A.useMemo(()=>e.state.useIsOpen,[e.state.useIsOpen]);return A.useEffect(()=>()=>i==null?void 0:i(!1),[i]),v.jsx(A.Suspense,{children:n&&t})},TE=r=>e=>{const{dlgCore:t}=e;return v.jsx(AE,{dlgCore:t,children:A.cloneElement(v.jsx(r,{...e}),{dlgCore:t})})},js=[],EE={closeAllDlgs:()=>{js.forEach(r=>{r.core.action.close()})}},kE="_AFileBox_1hlo1_1",RE="_SelectedFile_1hlo1_16",IE="_Dropping_1hlo1_26",lh={AFileBox:kE,SelectedFile:RE,Dropping:IE},LE=r=>{const{useFile:e,FileRenderer:t=ME,SelectRenderer:n=DE,DropRenderer:i=OE,resources:l,accept:u="",onInvalidFileFormat:f,fileSelectButtonClassName:g,isDisabled:m,isLoading:R,className:E,..._}=r,S=A.useMemo(()=>({...hn.AFileBox,...l}),[l]),x=A.useRef(null),M=A.useRef(null),[w,b]=nn(e,null),[I,O]=A.useState(!1),H=A.useMemo(()=>u.split(",").map(J=>J.trim()).filter(J=>J.length>0&&J.startsWith(".")),[u]),q=A.useCallback(J=>{if(H.length===0)return!1;const me=J.name.split(".").pop();return me?!H.includes(`.${me}`):!0},[H]),z=A.useCallback(J=>{if(b)if(q(J)){f==null||f();return}else b(J);else return},[b,q,f]),Y=A.useCallback(J=>{J.target.files&&J.target.files.length>0&&z(J.target.files[0])},[z]),fe=A.useCallback(J=>{J.preventDefault(),O(!1),!(m||R)&&J.dataTransfer.files&&J.dataTransfer.files.length>0&&z(J.dataTransfer.files[0])},[z,m,R]),X=A.useCallback(J=>{J.preventDefault(),!(m||R)&&O(!0)},[m,R]),he=A.useCallback(J=>{J.target===x.current&&J.relatedTarget.contains(x.current.parentElement)&&(J.preventDefault(),O(!1))},[]),j=A.useCallback(J=>J.preventDefault(),[]),re=A.useCallback(()=>{var J;(J=M.current)==null||J.click()},[]),Q=A.useMemo(()=>I?v.jsx(i,{resources:S}):w?v.jsx(t,{file:w,useFile:e}):v.jsx(n,{onClick:re,resources:S,fileSelectButtonClassName:g}),[t,n,i,S,I,w,e,g,re]);return v.jsxs($r,{..._,isDisabled:m,isLoading:R,className:Fe.clsx(lh.AFileBox,E),onDrop:fe,onDragEnter:X,onDragLeave:he,onDragOver:j,abaseRef:x,children:[v.jsx("input",{style:{display:"none"},ref:M,type:"file",onChange:Y,value:"",accept:u}),Q]})},ME=r=>{const{file:e,useFile:t}=r,[,n]=nn(t,null);return v.jsxs(Sn,{className:lh.SelectedFile,style:{backgroundColor:""},children:[v.jsx(jr,{icon:"File"}),v.jsx(Sa,{children:e.name}),v.jsx(_i,{type:"Raw",icon:"Close",style:{marginLeft:2,transform:"scale(0.8)"},onClick:()=>n==null?void 0:n(null)})]})},DE=r=>{const{onClick:e,resources:t,fileSelectButtonClassName:n}=r;return v.jsxs(Sn,{className:Fe.clsx(lh.SelectFile,"NoSelect"),children:[v.jsx(Fi,{className:n,onClick:e,children:t["Select File"]}),v.jsx(mn,{w:4}),t["or Drag & Drop"]]})},OE=r=>{const{resources:e}=r;return v.jsxs(O2,{className:Fe.clsx(lh.Dropping,"NoSelect","Headline2"),children:[v.jsx(jr,{icon:"FileDownload"}),e["drop file to select"]]})},PE="_AFileUploader_xepa3_1",NE="_LabelContainer_xepa3_13",FE="_LabelButton_xepa3_22",jE="_Disabled_xepa3_28",BE="_Delete_xepa3_35",HE="_FileSize_xepa3_39",qE="_TotalFileSize_xepa3_46",zE="_FileBox_xepa3_50",$E="_SelectRenderer_xepa3_68",UE="_ChipsContainer_xepa3_78",WE="_FileChip_xepa3_88",VE="_FileChipContent_xepa3_100",GE="_FileNameContainer_xepa3_111",ZE="_ButtonRenderer_xepa3_117",KE="_ErrorBorder_xepa3_127",YE="_ErrorColor_xepa3_131",XE="_ErrorCursor_xepa3_135",Fn={AFileUploader:PE,LabelContainer:NE,LabelButton:FE,Disabled:jE,Delete:BE,FileSize:HE,TotalFileSize:qE,FileBox:zE,SelectRenderer:$E,ChipsContainer:UE,FileChip:WE,FileChipContent:VE,FileNameContainer:GE,ButtonRenderer:ZE,ErrorBorder:KE,ErrorColor:YE,ErrorCursor:XE},JE=r=>{const{helperText:e,label:t,labelProps:n,wrapProps:i,wrapType:l,errorMessage:u,useFiles:f,accept:g,onInvalidFileFormat:m,onDownload:R,onDownloads:E,onDelete:_,type:S,limit:x=1024*1024*1024,useError:M,useStatus:w,isLoading:b,resources:I,className:O,...H}=r,q=A.useMemo(()=>({...hn.AFileUploader,...I}),[I]),[z,Y]=nn(f,void 0),[fe,X]=nn(M,!1),[he,j]=nn(w,{}),[re,Q]=A.useState(!1),J=A.useRef(null),me=A.useRef(null),ce=A.useCallback(Le=>Le.idx!==void 0?`file-${Le.idx}`:`${Le.name}-${Le.size}-${Le.lastModified||""}`,[]),be=A.useMemo(()=>(z==null?void 0:z.reduce((Le,Ze)=>Le+Ze.size,0))||0,[z]);A.useEffect(()=>{X&&X(be>x)},[be,x,X]);const ue=A.useCallback(Le=>{var Ct;if(!g||g==="*"||g==="")return!0;const Ze=g.split(",").map(_t=>_t.trim()),ot=`.${(Ct=Le.name.split(".").pop())==null?void 0:Ct.toLowerCase()}`;return Ze.includes(ot)?!0:Ze.some(_t=>{var wt;if(_t.startsWith("."))return!1;if(_t.endsWith("/*")){const xt=_t.split("/")[0];return(wt=Le.type)==null?void 0:wt.startsWith(`${xt}/`)}return Le.type===_t})},[g]),Se=A.useCallback((Le,Ze)=>{j==null||j({...he,[Le]:Ze})},[he,j]),le=A.useCallback(Le=>{const Ze=ce(Le);return he[Ze]||"Normal"},[he,ce]),ae=A.useCallback(Le=>b||le(Le)==="Loading",[b,le]),ge=A.useCallback(Le=>le(Le)==="Error"||S==="Upload"&&Le.size>x,[le,x,S]),Pe=A.useMemo(()=>z!=null&&z.length?S==="Download"?z.every(ge):!1:!0,[z,S,ge]),Qe=A.useCallback(()=>{J.current&&(J.current.value="")},[]),pe=A.useCallback(Le=>{if(!Y)return;const Ze=[];let ot=!1,Ct=[];if(Array.from(Le).forEach(_t=>{if(!ue(_t)){ot=!0,Ct.push(_t.name);return}const wt=_t;wt.idx=Date.now()+Math.floor(Math.random()*1e3),wt.state=0,Ze.push(wt)}),ot)if(m)m();else{const _t=g?g.replace(/,/g,", "):"",wt=_t?`${q["Supported file format(s)"]}: ${_t}`:"",xt=Ct.length>3?`${Ct.slice(0,3).join(", ")} ${q.and} ${Ct.length-3} ${q["more file(s)"]}`:Ct.join(", ");alert(`${q["Unsupported file format detected."]}
157
157
 
158
158
  ${q["Invalid file(s)"]}: ${xt}${wt?`
159
159
 
160
- `+wt:""}`)}Ze.length>0&&Y([...z||[],...Ze])},[Y,ue,m,g,q,z]),Ie=A.useCallback(()=>{var Le;return(Le=J.current)==null?void 0:Le.click()},[]),Xe=A.useCallback(Le=>{const Ze=Le.target.files;Ze!=null&&Ze.length&&(pe(Ze),Qe())},[pe,Qe]),tt=A.useCallback(Le=>{if(_==null||_(Le),!Y||!z)return;const Ze=z.filter(ot=>Le.idx!==void 0&&ot.idx!==void 0?ot.idx!==Le.idx:ot.name!==Le.name||ot.size!==Le.size);Y(Ze),Qe()},[_,Y,z,Qe]),Ge=A.useCallback(()=>{Y&&(Y([]),Qe())},[Y,Qe]),Me=A.useCallback(Le=>{if(!R)return;const Ze=ce(Le);Se(Ze,"Loading"),R(Le,ot=>Se(Ze,ot))},[R,ce,Se]),Ee=A.useCallback(()=>{E&&(z!=null&&z.length)&&E(z)},[E,z]),we=A.useMemo(()=>{const Le=Ze=>(Ze.preventDefault(),Ze.stopPropagation(),Ze);return{onDragEnter:Ze=>{Le(Ze),!fe&&!b&&Q(!0)},onDragOver:Ze=>{Le(Ze),!fe&&!b&&Ze.dataTransfer&&(Ze.dataTransfer.dropEffect="copy")},onDragLeave:Ze=>{var Ct;Le(Ze);const ot=(Ct=me.current)==null?void 0:Ct.contains(Ze.relatedTarget);(!Ze.relatedTarget||!ot)&&Q(!1)},onDrop:Ze=>{var ot;Le(Ze),Q(!1),!fe&&!b&&((ot=Ze.dataTransfer.files)!=null&&ot.length)&&pe(Ze.dataTransfer.files)}}},[fe,b,pe]),Ue=A.useMemo(()=>{const Le=Fe.clsx(Fn.ButtonRenderer,"NoSelect");return{upload:Ze=>v.jsx(_i,{icon:"X",iconSize:"sm",tooltip:q.Delete,type:"Raw",className:Le,style:{color:"var(--label-neutral)"},onClick:()=>tt(Ze)}),loading:()=>v.jsx(_i,{icon:"Spinner",iconSize:"sm",type:"Raw",className:Le}),error:()=>v.jsx(_i,{icon:"CircleAlertOutline",iconSize:"sm",type:"Raw",className:Fe.clsx(Le,Fn.ErrorColor,Fn.ErrorCursor),tooltip:q["Fail Download"]}),download:Ze=>v.jsx(_i,{icon:"FileDownload",iconSize:"sm",tooltip:q.Download,type:"Raw",className:Le,style:{color:"var(--acent-brand)"},onClick:()=>Me(Ze)})}},[q,tt,Me]),ct=A.useCallback((Le,Ze)=>{const ot=ae(Le),Ct=ge(Le),_t=()=>S==="Upload"?Ue.upload(Le):ot?Ue.loading():Ct?Ue.error():Ue.download(Le);return v.jsx(hm,{label:v.jsx("div",{className:Fn.FileChipContent,children:v.jsxs(Sn,{className:Fn.FileNameContainer,children:[v.jsx(Sa,{className:Fe.clsx(Ct&&Fn.ErrorColor),children:Le.name}),v.jsx("span",{className:Fn.FileSize,children:Kc(Le.size)})]})}),ButtonRenderer:_t,className:Fe.clsx(Fn.FileChip,Ct&&Fn.ErrorBorder)},Ze)},[ae,ge,S,Ue]),Ne=A.useCallback(()=>v.jsx("div",{className:Fe.clsx(Fn.FileBox,fe&&Fn.ErrorBorder,fe&&Fn.ErrorColor,fe&&Fn.ErrorCursor),...we,ref:me,children:re?v.jsxs(Sn,{className:Fe.clsx("NoSelect"),style:{gap:4},children:[v.jsx(jr,{icon:"FileDownload"}),v.jsx("span",{children:q["Drop file to select"]})]}):v.jsx(Fi,{type:"Raw",className:Fe.clsx(Fn.SelectRenderer,"NoSelect"),onClick:Ie,isDisabled:fe||b,children:q["Insert File"]})}),[fe,re,q,Ie,b,we]),bt=A.useMemo(()=>{const Le=S==="Upload",Ze=Le?q["Delete All"]:q["Download All"],ot=Le?Ge:Ee;return v.jsxs(Sn,{className:Fn.LabelContainer,children:[t,S==="Upload"&&v.jsxs(Sa,{className:Fe.clsx(Fn.TotalFileSize,"NoSelect"),children:["(",v.jsx("span",{className:Fe.clsx(fe&&Fn.ErrorColor),children:Kc(be)})," / ",Kc(x),")"]}),v.jsx("span",{className:Fe.clsx(Fn.LabelButton,"Label1",Pe&&Fn.Disabled,Le&&Fn.Delete),onClick:Pe?void 0:ot,children:Ze})]})},[S,q,Ge,Ee,t,fe,be,x,Pe]);return S==="Download"&&!(z!=null&&z.length)?null:v.jsxs(ec,{helperText:e,wrapProps:i,wrapType:l,labelProps:n,errorMessage:u,label:bt,children:[v.jsx("input",{style:{display:"none"},ref:J,type:"file",multiple:!0,onChange:Xe,accept:g||""}),v.jsx($r,{...H,className:Fe.clsx(Fn.AFileUploader,O),children:v.jsxs(Sn,{className:Fn.ChipsContainer,children:[S==="Upload"&&Ne(),z==null?void 0:z.map(ct)]})})]})},QE="_AFloatMenu_xco8u_1",ek="_Content_xco8u_10",o0={AFloatMenu:QE,Content:ek},j2=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:i,onClose:l,onClick:u,onPaperClick:f,position:g=ef.ES,width:m=137}=r,R=A.useMemo(()=>({content:tk,...t}),[t]),E=A.useMemo(()=>{const j={};return er.keys(e).forEach(re=>{const Q=e[re],J={...R,...Q};J.noDisplay||(j[re]=J)}),j},[R,e]),[_,S]=A.useState(null),x=A.useCallback(j=>{X_(j,O,g,i),S(j)},[g,i]),[M,w]=A.useState(!1),[b,I]=A.useState(!1),O=A.useRef(null),H=A.useCallback(j=>{I(!0),setTimeout(()=>w(!0),0),setTimeout(()=>x(j),0)},[x]),q=A.useCallback(()=>{w(!1),I(!0),l==null||l()},[l]),z=A.useCallback(()=>I(!1),[]),Y=A.useCallback(async j=>{const re=document.getElementById("root"),Q=j.target,J=O.current;!re||!J||!Q||!J.contains(Q)&&re.contains(Q)&&(await(f==null?void 0:f(j)),q())},[q,f]);A.useEffect(()=>{if(M)return setTimeout(()=>document.addEventListener("mousedown",Y),0),()=>document.removeEventListener("mousedown",Y)},[M,Y]);const fe=A.useCallback(()=>{_&&x(_)},[x,_]);A.useEffect(()=>{if(!M||!_)return;let j=_.parentElement;for(;j;)j.addEventListener("scroll",fe),j=j.parentElement;return()=>{let re=_.parentElement;for(;re;)re.removeEventListener("scroll",fe),re=re.parentElement}},[_,M,fe]),A.useEffect(()=>{if(M)return window.addEventListener("resize",fe),()=>window.removeEventListener("resize",fe)},[M,fe]);const X=A.useCallback(j=>{j[0].intersectionRatio===0&&q()},[q]);A.useEffect(()=>{if(!M)return;const j=new IntersectionObserver(X,{threshold:0});return O.current&&j.observe(O.current),()=>j.disconnect()},[O,M,X]),A.useEffect(()=>{n&&(n.current={open:H,close:q})},[n,H,q]);const he=A.useCallback(j=>{var re;if(M){if((re=E[j])!=null&&re.isDisabled)return}else return;u==null||u(j),q()},[M,u,q,E]);return!M&&!b?null:Hs.createPortal(v.jsx("div",{className:o0.AFloatMenu,style:{opacity:+M,visibility:M&&Object.keys(E).length>0?"visible":"hidden",minWidth:m},onTransitionEnd:z,ref:O,children:er.map(E,([j],re)=>{const Q={...R,...E[j]};let{content:J,noDisplay:me,tooltipDirection:ce=yi.E,...be}=Q;return me?null:(J=Lr.getContent(Q.content,{defKey:j,def:Q}),A.createElement($r,{...be,key:re,className:Fe.clsx(o0.Content,"Label2","IsClickable",be.className),onClick:ue=>{var Se;he==null||he(j),(Se=be.onClick)==null||Se.call(be,ue)},tooltipDirection:ce},J))})}),document.body)},tk=r=>r.defKey;function rk(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const B2={parseInt:rk},nk=`${Number.MAX_SAFE_INTEGER}`.length-1,ik=r=>{const{unit:e,type:t="Secondary",min:n,max:i,useValue:l,onEnterPress:u,canAsterisk:f=!1,onFocus:g,...m}=r,R=A.useMemo(()=>i!==void 0&&n!==void 0?Math.max(`${i}`.length+1,`${n}`.length+1):nk,[n,i]),[E,_]=nn(l,""),S=A.useCallback(b=>{if(_)if(f&&b.startsWith("*"))_("*");else if(b==="")_("");else if(b==="-")_("-");else{b=b.replace(/[^0-9-]/g,"");try{const I=B2.parseInt(b);I!==void 0&&(n!==void 0&&I<n?_(`${n}`):i!==void 0&&I>i?_(`${i}`):_(`${I}`))}catch(I){console.error("ANumInput : ",I)}}},[_,f,n,i]),x=A.useRef(null),M=A.useCallback(b=>{var I;(I=x.current)==null||I.blur(),u==null||u(b)},[u]),w=A.useMemo(()=>n===void 0&&i===void 0?e??"number":`${n??""}~${i??""}`,[n,i,e]);return v.jsx(tc,{...m,type:t,className:Fe.clsx(to.ANumInput,r.className),autoComplete:"off",onEnterPress:M,useValue:[E,S],maxLength:R,placeholder:w,RightAddon:r.unit&&v.jsx("span",{style:{marginRight:4},children:r.unit}),inputRef:x})},ok="_AListView_k7t2d_1",sk="_Row_k7t2d_10",ak="_Label_k7t2d_20",lk="_Content_k7t2d_30",kd={AListView:ok,Row:sk,Label:ak,Content:lk},ck=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:i,labelWidth:l,noBorder:u,style:f,...g}=r,m=u?"":"var(--AListView_border-thin)",R=u?"":"var(--AListView_border-thick)",E=A.useMemo(()=>({content:fk,label:uk,...t}),[t]),_=A.useMemo(()=>{const S={};return er.keys(e).forEach(x=>{const M=e[x],w={...E,...M};S[x]=w}),S},[E,e]);return v.jsx($r,{...g,className:Fe.clsx(kd.AListView,g.className),style:{...f,borderTop:m},children:er.map(_,([S])=>{const x={...E,..._[S]},M=Lr.getContent(x.label,{defKey:S,item:n,def:x}),w=Lr.getContent(x.content,{defKey:S,item:n||{[S]:""},def:x}),b=Lr.getContent(x.bold||"label",{defKey:S,item:n,def:x});return v.jsxs("div",{className:kd.Row,style:{height:i,borderBottom:m},children:[v.jsx("div",{className:Fe.clsx(kd.Label,"NoSelect",b!=="content"&&"Bold"),style:{width:l,minWidth:l,maxWidth:l,borderLeft:R,paddingLeft:u?0:10},children:v.jsx(Sa,{children:M})}),v.jsx("div",{className:Fe.clsx(kd.Content,b!=="label"&&"Bold"),style:{borderLeft:R,borderRight:R},children:v.jsx(Sa,{style:{width:"100%",padding:u?0:10},children:w})})]},S)})})},uk=r=>r.defKey,fk=r=>{const{defKey:e,item:t}=r;if(t)if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null;else return null},dk="_ALoadingBorder_kwc1g_1",hk="_ProgressBar_kwc1g_9",pk="_IsLoading_kwc1g_15",gk="_load_kwc1g_1",mk="_Cover_kwc1g_19",Lf={ALoadingBorder:dk,ProgressBar:hk,IsLoading:pk,load:gk,Cover:mk},vm=r=>{const{isLoading:e}=r,[t,n]=A.useState(!1),i=A.useRef(null);return A.useEffect(()=>{e?(n(!0),i.current&&clearTimeout(i.current)):i.current=setTimeout(()=>n(!1),300)},[e]),v.jsxs("div",{className:Lf.ALoadingBorder,children:[v.jsx("div",{className:Fe.clsx(Lf.ProgressBar,t&&Lf.IsLoading)}),v.jsx("div",{className:Fe.clsx(Lf.Cover,e&&Lf.IsLoading),style:{transition:"all 300ms"}})]})},vk="_Container_tmqll_1",yk="_Option_tmqll_7",bk="_RadioButton_tmqll_14",_k="_InnerCircle_tmqll_24",xk="_isChecked_tmqll_29",qu={Container:vk,Option:yk,RadioButton:bk,InnerCircle:_k,isChecked:xk},Sk=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:i=23,innerRadius:l=i*.6,OptionRenderer:u=H2}=r,[f,g]=nn(t,e[0]);return v.jsx("div",{className:qu.Container,children:e.map((m,R)=>{const E=n==null?void 0:n(m),_=()=>E?null:g==null?void 0:g(m);return v.jsxs(Sn,{className:Fe.clsx(qu.Option,"IsClickable"),isDisabled:E,onClick:_,children:[v.jsx(Ck,{isChecked:f===m,radius:i,innerRadius:l},R),v.jsx(u,{option:m})]},R)})})},H2=({option:r})=>r,Ck=({isChecked:r,radius:e,innerRadius:t})=>v.jsx($r,{className:Fe.clsx(qu.RadioButton,r&&qu.isChecked),style:{width:e,height:e},children:v.jsx($r,{className:Fe.clsx(qu.InnerCircle,r&&qu.isChecked),style:{width:t,height:t}})}),wk="_AMultiSelect_mr38x_1",Ak="_Arrow_mr38x_15",Tk="_Primary_mr38x_24",Ek="_UnAvailable_mr38x_35",kk="_IsOpen_mr38x_35",Rk="_Secondary_mr38x_42",Ik="_Placeholder_mr38x_58",Lk="_ValuesContainer_mr38x_63",Mk="_Values_mr38x_63",Dk="_Options_mr38x_82",Ok="_Option_mr38x_82",Pk="_Selected_mr38x_124",Nk="_CheckBox_mr38x_131",yo={AMultiSelect:wk,Arrow:Ak,Primary:Tk,UnAvailable:Ek,IsOpen:kk,Secondary:Rk,Placeholder:Ik,ValuesContainer:Lk,Values:Mk,Options:Dk,Option:Ok,Selected:Pk,CheckBox:Nk},Fk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.AMultiSelect["Select(Placeholder)"],onClose:l,SelectedRenderer:u=Bk,OptionRenderer:f=Hk,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:E=!1,..._}=r,S=A.useRef(null),x=A.useMemo(()=>_.abaseRef??S,[_.abaseRef]),M=A.useRef(null),[w,b]=nn(t,[]),[I,O]=A.useState(void 0),H=A.useRef(e),q=A.useRef(null),[z,Y]=A.useState(!1),[fe,X]=A.useState(!1),he=A.useCallback(()=>X(!1),[]),j=A.useCallback(()=>{_.isDisabled||_.isLoading||e.length<1||(X(!0),setTimeout(()=>Y(!0),0),setTimeout(()=>Jh(M,x,e,g,m),0))},[x,_.isDisabled,_.isLoading,e,g,m]),re=A.useCallback(()=>{Y(!1),X(!0),l==null||l()},[l]),Q=A.useCallback(le=>{var ae;z?re():j(),setTimeout(()=>Jh(M,x,e,g,m),0),(ae=_.onClick)==null||ae.call(_,le)},[x,_,e,z,re,j,g,m]),J=A.useCallback(()=>{Jh(M,x,e,g,m)},[x,e,g,m]);A.useEffect(()=>{if(!z||!x.current)return;const le=x.current;let ae=le.parentElement;for(;ae;)ae.addEventListener("scroll",J),ae=ae.parentElement;return()=>{let ge=le.parentElement;for(;ge;)ge.removeEventListener("scroll",J),ge=ge.parentElement}},[x,z,J]),A.useEffect(()=>{if(z)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[z,J]);const me=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!z)return;const le=new IntersectionObserver(me,{threshold:0});return x.current&&le.observe(x.current),()=>le.disconnect()},[x,z,me]);const ce=A.useCallback(le=>{const ae=le.target,ge=x.current,Pe=M.current;!ge||!ae||!Pe||!ge.contains(ae)&&!Pe.contains(ae)&&re()},[x,re]),be=A.useMemo(()=>_.isDisabled||_.isLoading||e.length<1,[_.isDisabled,_.isLoading,e]);A.useEffect(()=>{if(z)return setTimeout(()=>document.addEventListener("mousedown",ce),0),()=>document.removeEventListener("mousedown",ce)},[z,ce]);const ue=A.useCallback((le,ae)=>{le.stopPropagation(),le.preventDefault();let ge=[...w];ge.includes(ae)?ge=ge.filter(Pe=>Pe!==ae):ge.push(ae),b==null||b(ge)},[w,b]),Se=A.useCallback(()=>{if(!E||!x.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:x,options:e,selectedOptions:w,placeholder:i,optionRenderer:ae=>f({option:ae}),type:n,isMulti:!0});O(le)},[E,x,e,w,i,f,n]);return A.useEffect(()=>E?((e!==H.current||I===void 0)&&(q.current!==null&&cancelAnimationFrame(q.current),q.current=requestAnimationFrame(()=>{Se(),q.current=null,H.current=[...e]})),()=>{q.current!==null&&(cancelAnimationFrame(q.current),q.current=null)}):void 0,[E,e,Se,I]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{..._,isDisabled:_.isDisabled||e.length<1,className:Fe.clsx(_.className,yo.AMultiSelect,"NoSelect",z&&yo.IsOpen,be&&yo.UnAvailable,yo[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:I?`${I}px`:E?"100px":void 0,..._.style},abaseRef:x,onClick:Q,children:[v.jsx("div",{className:yo.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(yo.Values,w.length<1&&yo.Placeholder),children:v.jsx(u,{OptionRenderer:f,selectedOptions:w,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(yo.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:z?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(z||fe)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(yo.Options,yo[n]),onTransitionEnd:he,style:{opacity:+z,visibility:z?"visible":"hidden",pointerEvents:z?void 0:"none",width:I?`${I}px`:E?"100px":void 0,borderRadius:x.current?window.getComputedStyle(x.current).borderRadius:void 0},ref:M,children:e.map((le,ae)=>{var Pe;const ge=w.includes(le);return v.jsxs("div",{className:Fe.clsx(yo.Option,ge&&yo.Selected,"NoSelect",yo[n]),style:{height:(Pe=x.current)==null?void 0:Pe.getBoundingClientRect().height},onClick:Qe=>ue(Qe,le),children:[v.jsx(Zu,{className:yo.CheckBox,useCheck:[+ge,void 0]}),v.jsx(f,{option:le})]},ae)})}),document.body)]})};function Jh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=jk(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function jk(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const Bk=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?v.jsx(e,{option:t[0]}):`${t.length} selected`},Hk=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},qk="_Container_10ion_1",zk="_Steps_10ion_9",$k="_Step_10ion_9",Uk="_OutCircle_10ion_26",Wk="_IsOver_10ion_37",Vk="_InCircle_10ion_41",Gk="_Line_10ion_54",Zk="_Left_10ion_66",Kk="_Right_10ion_69",Yk="_ContentContainer_10ion_73",Xk="_Content_10ion_73",eo={Container:qk,Steps:zk,Step:$k,OutCircle:Uk,IsOver:Wk,InCircle:Vk,Line:Gk,Left:Zk,Right:Kk,ContentContainer:Yk,Content:Xk},Jk=r=>{const{useSelect:e,steps:t,StepRenderer:n=s0,ContentRenderer:i=s0}=r;if(t.length===0)throw new Error("steps should have at least one element");const l=A.useRef(null),[u,f]=nn(e,t[0]),g=A.useCallback(R=>f==null?void 0:f(R),[f]),m=A.useMemo(()=>t.indexOf(u),[u,t]);return A.useEffect(()=>{m<0&&g(t[0])},[m,t,g]),v.jsxs("div",{className:eo.Container,children:[v.jsx("div",{className:eo.Steps,children:t.map((R,E)=>{const _=t.indexOf(R),S=m>=E,x=m>E;return v.jsxs("div",{className:eo.Step,children:[E!==0&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Left,S&&eo.IsOver)}),E!==t.length-1&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Right,x&&eo.IsOver)}),v.jsx(Fi,{type:"Raw",className:Fe.clsx(eo.OutCircle,S&&eo.IsOver),onClick:()=>g(R),children:v.jsx("div",{className:Fe.clsx(eo.InCircle,S&&eo.IsOver)})}),v.jsx(n,{step:R,stepIdx:_})]},E)})}),v.jsx("div",{className:eo.ContentContainer,ref:l,children:t.map((R,E)=>{const _=t.indexOf(R);return v.jsx("div",{className:eo.Content,style:E===0?{marginLeft:`${m*-100}%`}:{},children:v.jsx(i,{step:R,stepIdx:_})},E)})})]})},s0=r=>{const{step:e}=r;return typeof e=="object"?er.stringify(e):e},Qk="_ATab_1ikea_1",e8="_Option_1ikea_9",t8="_Underline_1ikea_22",r8="_IsSelected_1ikea_22",n8="_IndicatorTrack_1ikea_33",i8="_Indicator_1ikea_33",o8="_Primary_1ikea_49",s8="_Secondary_1ikea_56",a8="_IsDisabled_1ikea_66",l8="_Tertiary_1ikea_80",c8="_Quaternary_1ikea_110",Zl={ATab:Qk,Option:e8,Underline:t8,IsSelected:r8,IndicatorTrack:n8,Indicator:i8,Primary:o8,Secondary:s8,IsDisabled:a8,Tertiary:l8,Quaternary:c8},u8=["Primary","Secondary","Tertiary","Quaternary"],q2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:i="Primary",tabProps:l,optionProps:u,optionWidth:f,OptionRenderer:g=f8,RightAddon:m,color:R,underline:E}=r;if(e.length===0)throw new Error("options should have at least one element");const _=A.useMemo(()=>e.findIndex(ue=>!(n!=null&&n(ue))),[e,n]),S=i==="Tertiary"?2:0,x=i==="Secondary"?8:0,M=A.useMemo(()=>S+x,[S,x]),w=i==="Tertiary"?2:0,b=A.useMemo(()=>(x-S-w-w)/e.length,[e.length,S,x,w]),[I,O]=nn(t,e[_]),H=A.useRef([]),q=A.useCallback(ue=>O==null?void 0:O(ue),[O]),z=A.useMemo(()=>typeof f=="number"?f+"px":f,[f]),Y=A.useMemo(()=>e.indexOf(I),[e,I]),fe=A.useMemo(()=>`calc(${100/e.length}% + ${b}px)`,[e.length,b]),X=A.useMemo(()=>z||`calc(${fe} - ${M}px)`,[fe,M,z]),[he,j]=A.useState(0),[re,Q]=A.useState(0),[J,me]=A.useState(X),ce=A.useMemo(()=>{let ue;switch(z){case void 0:ue=`calc(${fe} * ${Y})`;break;case"fit-content":ue=`calc(${he}px)`;break;default:ue=`calc((${z} + ${M}px) * ${Y})`;break}return`calc(${ue} + ${w}px)`},[z,w,fe,Y,he,M]),be=A.useMemo(()=>{switch(z){case void 0:return;case"fit-content":return`calc(${re}px)`;default:return`calc((${z} + ${M}px - ${b}px) * ${e.length})`}},[z,b,M,e,re]);return A.useEffect(()=>{var Se,le;if(e.includes(I)||O==null||O(e[_]),z!=="fit-content"){me(X);return}let ue=0;H.current.forEach((ae,ge)=>{ge<Y&&ae.current&&(ue+=ae.current.offsetWidth+M)}),j(ue),me(`calc(${((le=(Se=H.current[Y])==null?void 0:Se.current)==null?void 0:le.offsetWidth)||0}px)`),Q(H.current.reduce((ae,ge)=>{var Pe;return ae+((((Pe=ge.current)==null?void 0:Pe.offsetWidth)||0)+M-b)},0))},[z,H,e,I,O,_,b,M,Y,X]),v.jsxs("div",{...l,className:Fe.clsx(Zl.ATab,"Headline2",Zl[i],l==null?void 0:l.className),children:[v.jsx("div",{className:Zl.Indicator,style:{minWidth:J,left:ce,marginLeft:S}}),v.jsx("div",{className:Zl.IndicatorTrack,style:{width:be}}),v.jsx(mn,{w}),e.map((ue,Se)=>{const le=n==null?void 0:n(ue);return H.current[Se]||(H.current[Se]=A.createRef()),v.jsx($r,{abaseRef:H.current[Se],...u,style:{minWidth:X,maxWidth:X,marginLeft:S,marginRight:x,"--color":R,...u==null?void 0:u.style},className:Fe.clsx(Zl.Option,le&&Zl.IsDiabled,ue===I&&Zl.IsSelected,"IsClickable",E&&Zl.Underline,u==null?void 0:u.className),onClick:ae=>{!le&&q(ue),u&&u.onClick&&u.onClick(ae)},isDisabled:le,children:v.jsx(g,{option:ue})},Se)}),v.jsx(mn,{w:w+S}),m&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),m]})]})},f8=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=er.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function z2(...r){const e=A.useRef(!1);A.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const $2={String:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;if(t==="")return er.keys(e).some(R=>{const E=e[R],_=Lr.getContent(E.asText,{defKey:R,def:E,item:r});if(_!==void 0)return _.toString().toLowerCase().includes(i.toLowerCase());const S=Lr.getContent(E.content,{defKey:R,def:E,item:r});return["string","number"].includes(typeof S)&&S!==void 0&&S!==null?S.toString().toLowerCase().includes(i.toLowerCase()):!1});const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(i.toLowerCase());const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?m.toString().toLowerCase().includes(i.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:i}=n;if(i==null)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return i.toString().toLowerCase()===g.toString().toLowerCase();const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?i.toString().toLowerCase()===m.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.eq(R,i)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.eq(R,i)}return!1},DateRange:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.be(i.sDate,R,i.eDate)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.be(i.sDate,R,i.eDate)}return!1}},d8=(r,e,t)=>{let n=r;return er.keys(t).forEach(l=>{const u=t[l];u.value===void 0||u.value===null||u.value===""||(n=n.filter(f=>{var g;return(g=u.predicate??$2[u.type])==null?void 0:g(f,e,l,u)}))}),n},h8=(r,e,t)=>{if(!t)return r;const n=t.defKey,i=e[n];if(n===void 0)return r;const l=t.sortF??((u,f)=>{const g=Lr.getContent(i.content,{defKey:n,def:i,item:u}),m=Lr.getContent(i.content,{defKey:n,def:i,item:f});return typeof g=="string"&&typeof m=="string"?g<m?-1:g>m?1:0:typeof g=="number"&&typeof m=="number"?g-m:typeof g=="string"&&typeof m=="number"?-1:typeof g=="number"&&typeof m=="string"||g===void 0&&m!==void 0?1:g!==void 0&&m===void 0?-1:0});return r.slice().sort((u,f)=>t.isAsc?l(u,f):l(f,u))},p8=(r,e,t)=>r.slice((e-1)*t,e*t),U2=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,i)=>i+1)},g8=(r,e,t,n)=>{const i=U2(e,t),l=Math.floor((r-1)/n),u=l*n+1,f=(l+1)*n,g=i.slice(u-1,f);return{pages:i,rangedPages:g}},m8=(r,e,t)=>{const n=[],i=Object.keys(t),l=[];i.forEach(_=>{const S=t[_],x=Lr.getContent(S.hContent,{defKey:_,def:S});if(x!==void 0){if(typeof x=="string"){l.push(x);return}else if(typeof x=="number"){l.push(x.toString());return}}const M=Lr.getContent(S.name,{defKey:_,def:S});if(M!==void 0&&typeof M=="string"){l.push(M);return}l.push(_)});const u=l.map(_=>`"${_.replaceAll('"','""')}"`);n.push(u.join(",")),e.forEach(_=>{const S=[];i.forEach(M=>{const w=t[M],b=Lr.getContent(w.content,{defKey:M,def:w,item:_});if(b!==void 0){if(typeof b=="string"){S.push(b);return}else if(typeof b=="number"){S.push(b.toString());return}}const I=_[M];typeof I=="string"?S.push(I):typeof I=="number"?S.push(I.toString()):S.push("")});const x=S.map(M=>`"${M.replaceAll('"','""')}"`);n.push(x.join(","))});const f=`${r}.csv`,g="\uFEFF"+n.join(`
161
- `),m=new Blob([g],{type:"text/csv;charset=UTF-8"}),R=URL.createObjectURL(m),E=document.createElement("a");E.href=R,E.download=f,E.click(),URL.revokeObjectURL(R)},v8=r=>{const e=er.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},y8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,i])=>{!i||i.value===void 0||i.value===null||i.value===""||(i.type==="DateRange"?(t[i.sFilterKey]=i.value.sDate,t[i.eFilterKey]=i.value.eDate):t[i.filterKey??n]=i.value)}),t},b8=r=>{const e=er.keys(r).filter(i=>i!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},tl={applyFilteration:d8,applySortation:h8,applyPagination:p8,getPages:U2,getRangedPages:g8,downloadCsv:m8,getSingleFilterValue:v8,getMultiFilterValues:y8,getSelectFilterValue:b8},_8="_ATable_12zow_1",x8={ATable:_8};function W2(r,e,t,n){A.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const S8="_BodyHeader_43b3m_1",C8="_TRow_43b3m_7",w8="_OverflowSpace_43b3m_13",A8="_BodyBody_43b3m_19",T8="_IsSelected_43b3m_40",E8="_IsSelectable_43b3m_44",k8="_IsRowMarked_43b3m_52",R8="_TH_43b3m_57",I8="_TD_43b3m_62",L8="_IsMarked_43b3m_62",M8="_Resizer_43b3m_81",D8="_IsMoving_43b3m_93",O8="_IsResizable_43b3m_96",P8="_ResizerCenter_43b3m_99",N8="_ResizerOut_43b3m_105",F8="_ResizerIn_43b3m_109",j8="_IsClicked_43b3m_144",B8="_NoItems_43b3m_151",H8="_Content_43b3m_157",_n={BodyHeader:S8,TRow:C8,OverflowSpace:w8,BodyBody:A8,IsSelected:T8,IsSelectable:E8,IsRowMarked:k8,TH:R8,TD:I8,IsMarked:L8,Resizer:M8,IsMoving:D8,IsResizable:O8,ResizerCenter:P8,ResizerOut:N8,ResizerIn:F8,IsClicked:j8,NoItems:B8,Content:H8},Yl=25,q8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:i,isTableDisabled:l,isSelectMulti:u,selectDisabled:f,appliedFilteration:g,useSortation:m,pagination:R,pagedItems:E,noMarking:_,noDefHeader:S,isLoading:x,showRows:M,RowRenderer:w=U8,isRowRendered:b,resources:I}=r,[O,H]=A.useMemo(()=>i??[],[i]),q=A.useCallback(Ne=>{l||!H||!O||f!=null&&f(Ne)||(u?O.some(bt=>t(bt,Ne))?H(O.filter(bt=>!t(bt,Ne))):H([...O,Ne]):H([Ne]))},[O,f,H,t,l,u]);A.useEffect(()=>{u||!O||!H||O.length>1&&H([O[O.length-1]])},[O,H,u]),A.useEffect(()=>{if(!O||!H)return;O.filter(bt=>f==null?void 0:f(bt)).length>0&&H(O.filter(bt=>!(f!=null&&f(bt))))},[O,H,f]);const[z,Y]=m,fe=A.useCallback((Ne,bt)=>{Y&&((z==null?void 0:z.defKey)===Ne?z.isAsc===!0?Y({defKey:Ne,isAsc:!1,sortF:bt}):z.isAsc===!1?Y(void 0):Y({defKey:Ne,isAsc:!0,sortF:bt}):Y({defKey:Ne,isAsc:!0,sortF:bt}))},[z,Y]),[X,he]=A.useState({elem:null,row:null}),j=A.useRef(null),re=A.useRef(null),Q=A.useCallback(()=>he({elem:j.current,row:re.current}),[]);A.useEffect(()=>Q(),[E.length,Q]),W2(window,"resize",Q);const[J,me]=A.useState(40);A.useEffect(()=>{const{row:Ne}=X;Ne!=null&&me(Ne.clientHeight)},[X,J]);const ce=A.useMemo(()=>{const{elem:Ne}=X;return Ne?Math.floor(Ne.clientHeight/J):0},[X,J]),be=A.useMemo(()=>M||(E.length<=ce?ce:E.length),[ce,M,E]),ue=A.useMemo(()=>{if(M!==void 0)return M*J},[M,J]),Se=A.useMemo(()=>ue,[ue]),le=A.useMemo(()=>{const{elem:Ne}=X;return Ne?Ne.getBoundingClientRect().height/J<E.length:!1},[X,J,E.length]),[ae,ge]=A.useState(),Pe=A.useMemo(()=>{const{elem:Ne}=X;return!ae||!Ne?"100%":Ne.clientHeight+(b?0:50)},[ae,b,X]),Qe=A.useRef(null),[pe,Ie]=A.useState({}),Xe=A.useRef({x:0,y:0}),tt=A.useRef({}),Ge=A.useMemo(()=>er.keys(pe),[pe]),Me=A.useCallback((Ne,bt)=>{const Le=Qe.current;if(!Le)return;const Ze=[];Le.childNodes.forEach(wt=>{wt.classList.contains(_n.TH)&&Ze.push(wt)});const ot={};er.keys(e).forEach((wt,xt)=>{const it=Ze[xt];if(!it)return;const je=it.getBoundingClientRect().width;ot[wt]=je}),tt.current=ot,ge(bt),Xe.current={x:Ne.clientX,y:Ne.clientY};const Ct=wt=>{if(!Qe.current)return;const it=wt.clientX-Xe.current.x,je=$8(e,bt,tt.current,it);Ie(je)};document.addEventListener("mousemove",Ct);const _t=()=>{ge(void 0),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},[e]),Ee=A.useCallback(()=>{ge(void 0),Ie({})},[]),we=A.useMemo(()=>{if(Ge.length===0){const Le={},Ze=er.keys(e);for(let ot=0;ot<Ze.length;ot++){const Ct=Ze[ot],_t=e[Ct],wt=Lr.getContent(_t.colSpan,{defKey:Ct,def:_t}),xt=_t.width??80,it=_t.minWidth??Yl,je=_t.maxWidth,yt={width:xt,minWidth:it,maxWidth:je,flexGrow:wt??1};if(Le[Ct]=yt,wt!==void 0){for(let st=1;st<Math.min(wt,Ze.length-ot);st++){const Rt=e[Ze[ot+st]],Bt=Rt.width??80,ze=Rt.minWidth??Yl,Tt=Rt.maxWidth;yt.width+=Bt,yt.minWidth+=ze,yt.maxWidth!==void 0&&(Tt!==void 0?yt.maxWidth+=Tt:yt.maxWidth=void 0)}ot+=wt-1}}return Le}const Ne={},bt=er.keys(e);for(let Le=0;Le<bt.length;Le++){let Ze=bt[Le];const ot=e[Ze];let Ct=pe[Ze];const _t=Lr.getContent(ot.colSpan,{defKey:Ze,def:ot}),wt=ot.minWidth??Yl,xt=ot.maxWidth,it={width:Ct,minWidth:wt,maxWidth:xt,flexGrow:_t??1};if(Ne[Ze]=it,_t!==void 0){for(let je=1;je<Math.min(_t,bt.length-Le);je++){const yt=e[bt[Le+je]],st=pe[bt[Le+je]],Rt=yt.minWidth??Yl,Bt=yt.maxWidth;it.width+=st,it.minWidth+=Rt,it.maxWidth!==void 0&&(Bt!==void 0?it.maxWidth+=Bt:it.maxWidth=void 0)}Le+=_t-1}}return Ne},[e,Ge,pe]),Ue=A.useRef(null),ct=A.useMemo(()=>tl.getSingleFilterValue(g),[g]);return A.useEffect(()=>{j.current&&j.current.scrollTo({top:0})},[R.page]),A.useEffect(()=>{b&&re.current&&re.current.scrollIntoView({behavior:"smooth",block:"center"})},[O,E,b]),v.jsxs(v.Fragment,{children:[v.jsx(vm,{isLoading:x}),v.jsx("div",{className:Fe.clsx(_n.BodyHeader,ae!==void 0&&_n.IsClicked),onResizeCapture:Q,ref:Ue,style:{display:S||b?"none":"flex"},children:v.jsx("div",{className:_n.TRow,ref:Qe,children:er.map(e,([Ne],bt)=>{const Le=e[Ne],Ze=Lr.getContent(Le.hContent,{defKey:Ne,def:Le}),ot=Le.name,Ct=bt===er.keys(e).length-1,_t=Le.width??80,wt=Le.minWidth??Yl,xt=Le.maxWidth,it={width:_t,minWidth:wt,maxWidth:xt,justifyContent:Lr.getContent(Le.hAlign,{defKey:Ne,def:Le})??"flex-start",...Lr.getContent(Le.hStyle,{defKey:Ne,def:Le})};Ge.includes(Ne)&&(it.width=pe[Ne]);const je=Le.isSortable,yt=(z==null?void 0:z.defKey)===Ne,st=z==null?void 0:z.isAsc;return v.jsxs(A.Fragment,{children:[v.jsxs("div",{style:it,onClick:()=>je&&fe(Ne,Le.sortF),className:Fe.clsx(_n.TH,"Label1",je?"IsClickable":"NoSelect"),children:[v.jsx(Sa,{className:_n.Content,children:Ze??ot}),je&&v.jsx(jr,{icon:yt?st?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Ct&&v.jsxs("div",{className:Fe.sclsx(_n,"Resizer","IsResizable","NoSelect",ae!==void 0&&"IsMoving"),onMouseDown:Rt=>Me(Rt,Ne),onDoubleClick:Ee,children:[v.jsx("div",{className:_n.ResizerOut}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerCenter,style:{height:Pe}}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerOut})]}),Ct&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:50,style:{color:it.color,backgroundColor:it.backgroundColor,transition:it.transition}})]},Ne)})})}),v.jsxs("div",{className:Fe.clsx(_n.BodyBody,ae!==void 0&&_n.IsClicked),ref:j,style:{overflowY:le?"scroll":"hidden",minHeight:ue,maxHeight:Se},children:[E.map((Ne,bt)=>{const Le=Lr.getContent(n,{item:Ne}),Ze=H&&!l,ot=O==null?void 0:O.some(xt=>t(xt,Ne)),Ct=O&&(f==null?void 0:f(Ne)),_t=typeof Ct=="string"?Ct:void 0,wt={...Ne};return b&&er.keys(e).forEach(xt=>{const it=e[xt],je=Lr.getContent(it.content,{defKey:xt,def:it,item:Ne});let yt=!1;if(ct&&!_){const st=Lr.getContent(it.asText,{defKey:xt,def:it,item:Ne});st!==void 0?yt=st.toString().toLowerCase().includes(ct.toLowerCase()):["string","number"].includes(typeof je)&&je!==void 0&&je!==null&&(yt=je.toString().toLowerCase().includes(ct.toLowerCase()))}wt[xt]=v.jsx("span",{className:Fe.clsx(yt&&_n.IsRowMarked),children:wt[xt]})}),v.jsx($r,{isDisabled:Ct,tooltip:_t,...Le,onClick:xt=>{var it;q(Ne),(it=Le==null?void 0:Le.onClick)==null||it.call(Le,xt)},className:Fe.clsx(Le==null?void 0:Le.className,Ze&&_n.IsSelectable,ot&&_n.IsSelected),abaseRef:ot?re:void 0,children:v.jsx(w,{defs:e,item:Ne,markedItem:wt,noMarking:_,spanWidths:we,singleFilterValue:ct,isBodyBodyOverflowed:le})},bt)}),v.jsx(z8,{showRows:be,itemsLength:E.length,isRowRendered:b,rowHeight:J,resources:I})]})]})},z8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:i,rowHeight:l}=r,u=A.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:u},(f,g)=>v.jsx("div",{className:Fe.clsx(_n.TRow,"NoSelect"),...i&&{style:{border:"none",minHeight:l,maxHeight:l}},children:t===0&&g===Math.floor(e/2)&&v.jsx(Sn,{className:_n.NoItems,children:n["No Items"]})},g))};function $8(r,e,t,n){const i={...t},l=er.keys(r).findIndex(m=>m===e)+1,u=Object.entries(r);let f=l-1,g=l;if(n<0){for(;n<0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[E,_]=[u[g][0],u[g][1]],S=R.minWidth??Yl,x=_.maxWidth,M=i[m],w=i[E];let b=M-S;x!==void 0&&(b=Math.min(b,x-w));let I=-n;I=Math.min(I,b),M-I<=S&&f--,x!==void 0&&w+I>=x&&g++,i[m]=M-I,i[E]=w+I,n+=I}return i}else if(n>0){for(;n>0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[E,_]=[u[g][0],u[g][1]],S=_.minWidth??Yl,x=R.maxWidth,M=i[E],w=i[m];let b=M-S;x!==void 0&&(b=Math.min(b,x-w));let I=n;I=Math.min(I,b),M-I<=S&&g++,x!==void 0&&w+I>=x&&f--,i[E]=M-I,i[m]=w+I,n-=I}return i}return i}const U8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:i,singleFilterValue:l,isBodyBodyOverflowed:u}=r;return v.jsx("div",{className:Fe.clsx(_n.TRow),children:er.map(e,([f],g)=>{const m=i[f];if(m===void 0)return null;const R=g===er.keys(e).length-1,E=e[f],_=Lr.getContent(E.content,{defKey:f,def:E,item:t}),S={width:m.width,minWidth:m.minWidth,maxWidth:m.maxWidth,flexGrow:m.flexGrow,justifyContent:Lr.getContent(E.align,{defKey:f,def:E,item:t})??"flex-start",...Lr.getContent(E.style,{defKey:f,def:E,item:t})};let x=!1;if(l&&!n){const M=Lr.getContent(E.asText,{defKey:f,def:E,item:t});M!==void 0?x=M.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof _)&&_!==void 0&&_!==null&&(x=_.toString().toLowerCase().includes(l.toLowerCase()))}return v.jsxs(A.Fragment,{children:[v.jsx("div",{style:S,className:Fe.clsx(_n.TD,"Label1",x&&_n.IsMarked),children:v.jsx(Sa,{className:_n.Content,children:_})}),!u&&R&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:40,style:{color:S.color,backgroundColor:S.backgroundColor}})]},f)})})},W8="_ATableFooter_w090q_1",V8="_Button_w090q_10",G8="_IsSelected_w090q_26",Z8="_IsDisabled_w090q_31",Ds={ATableFooter:W8,Button:V8,IsSelected:G8,IsDisabled:Z8},K8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:i}=r,l=A.useMemo(()=>e[e.length-1],[e]);return v.jsxs(Sn,{className:Ds.ATableFooter,children:[v.jsx(jr,{icon:"FirstPage",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.moveFirst}),v.jsx(jr,{icon:"NavigateBefore",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.movePrev}),t.map(u=>v.jsx("div",{className:Fe.clsx(Ds.Button,"NoSelect",i.page===u&&Ds.IsSelected),onClick:()=>n.move(u),children:u},u)),v.jsx(jr,{icon:"NavigateNext",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveNext}),v.jsx(jr,{icon:"LastPage",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveLast})]})},Y8="_Filter_1b9j0_1",X8="_SelectFilter_1b9j0_11",J8="_MainFilter_1b9j0_15",Q8="_IsOpen_1b9j0_26",eR="_SubFilters_1b9j0_30",tR="_Input_1b9j0_44",rR="_Main_1b9j0_15",nR="_Sub_1b9j0_30",iR="_Actions_1b9j0_62",oR="_Icon_1b9j0_67",sR="_LeftIcon_1b9j0_74",aR="_CircleAlertOutline_1b9j0_79",lR="_Rotate_1b9j0_87",cR="_rotate_1b9j0_1",Er={Filter:Y8,SelectFilter:X8,MainFilter:J8,IsOpen:Q8,SubFilters:eR,Input:tR,Main:rR,Sub:nR,Actions:iR,Icon:oR,LeftIcon:sR,CircleAlertOutline:aR,Rotate:lR,rotate:cR},uR=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:i,isRowRendered:l,isFilterSort:u,filterType:f,resources:g}=r,[m,R]=A.useState([]),[E,_]=A.useMemo(()=>t,[t]),S=A.useMemo(()=>f==="Select",[f]),x=A.useMemo(()=>er.keys(E).map(pe=>String(pe)),[E]),[M,w]=A.useState(S&&x.length>0?x[0]:null),b=A.useCallback((pe,Ie,Xe)=>{if(!_)return;const tt={...E};pe.value=Ie,_(tt),R(Ge=>Ge.map((Me,Ee)=>Ee===(Xe?Xe+1:0)?"":Me))},[E,_]),I=A.useMemo(()=>{let pe=[],Ie=er.keys(E);S&&M&&(Ie=Ie.filter(Xe=>Xe===M));for(const Xe of Ie)pe.push({key:Xe,def:e[Xe],filter:E[Xe]});return pe},[E,e,S,M]),O=A.useMemo(()=>I.length>0?I[0]:null,[I]),H=A.useMemo(()=>m.length>0?m[0]:"",[m]),q=A.useMemo(()=>I.length>1?I.slice(1):[],[I]),z=A.useMemo(()=>m.length>1?m.slice(1):[],[m]),Y=A.useMemo(()=>q.length>0,[q]),[fe,X]=A.useState(!1),[he,j]=A.useState(!1),re=A.useRef(null),Q=A.useCallback(()=>X(!1),[]),J=A.useRef(null),me=A.useCallback(()=>{j(!1),X(!0),J.current&&(document.removeEventListener("mousedown",J.current),J.current=null)},[]),ce=A.useCallback(()=>{const pe=Ie=>{const Xe=document.getElementById("root"),tt=Ie.target,Ge=re.current;!Xe||!Ge||!tt||!Ge.contains(tt)&&Xe.contains(tt)&&me()};return J.current=pe,pe},[me]),be=A.useCallback(()=>{X(!0),j(!0),setTimeout(()=>{const pe=ce();document.addEventListener("mousedown",pe)},0)},[ce]),ue=A.useMemo(()=>he?me:be,[he,be,me]),Se=A.useCallback(()=>{const pe=I.map((Ie,Xe)=>Ie.filter.type==="String"&&Ie.filter.validation?Ie.filter.validation(Ie.filter.value||""):Ie.filter.type==="Date"&&Ie.filter.validation||Ie.filter.type==="DateRange"&&Ie.filter.validation?Ie.filter.validation(Ie.filter.value):m[Xe]);R(pe),pe.every(Ie=>!Ie)&&i.apply()},[m,i,I]),le=A.useCallback(pe=>{pe.key==="Enter"?(Se(),pe.stopPropagation()):pe.key==="Escape"&&(j(!1),pe.currentTarget.focus(),pe.currentTarget.blur(),pe.stopPropagation())},[Se,j]),ae=A.useMemo(()=>({open:be,close:me,toggle:ue,validate:Se}),[be,me,ue,Se]),ge=A.useCallback(()=>{Se(),!m.some(Ie=>Ie)&&i.apply()},[Se,m,i]),Pe=A.useCallback(()=>{i.clear()},[i]),Qe=A.useCallback(pe=>{if(!_||!pe)return;w(pe);const Ie={...E};er.keys(Ie).forEach(Xe=>{if(Xe!==pe&&Ie[Xe])switch(Ie[Xe].type){case"String":Ie[Xe].value="";break;case"Select":Ie[Xe].value=null;break;case"Date":Ie[Xe].value=void 0;break;case"DateRange":Ie[Xe].value=void 0;break}}),R([]),_(Ie),i.clear(),setTimeout(()=>{var tt;const Xe=(tt=re.current)==null?void 0:tt.querySelector("input");Xe&&Xe.focus()},0)},[E,_,R,i]);return O?v.jsxs(v.Fragment,{children:[S&&v.jsx(rc,{className:Fe.clsx(Er.SelectFilter),options:x,isAutoWidth:!0,useSelect:[M,Qe],type:"Secondary",OptionRenderer:({option:pe})=>{const Ie=e[pe];let Xe;if(Ie!=null&&Ie.hContent){const tt={defKey:pe,def:Ie};Xe=typeof Ie.hContent=="function"?Ie.hContent(tt):Ie.hContent}else{const tt=(Ie==null?void 0:Ie.name)||String(pe);Xe=v.jsx("span",{children:tt})}return Xe}}),v.jsxs("div",{className:Fe.clsx(Er.Filter),ref:re,onKeyDown:le,onClick:pe=>{pe.preventDefault(),pe.stopPropagation()},style:{minWidth:l?u?180:void 0:180,maxWidth:l?u?300:void 0:300},tabIndex:-1,children:[v.jsx(fR,{filterSet:O,hasToggleFilteration:n,onChange:b,filterF:i,hasSubFilters:Y,popupF:ae,isOpen:he,resources:g,errorMessage:H,hasSelectFilterType:S,onSearchClick:ge}),!S&&v.jsx(dR,{subFilterSets:q,onChange:b,onClearClick:Pe,onSearchClick:ge,isOpen:he,isTransitioning:fe,onTransitionEnd:Q,resources:g,errorMessages:z})]})]}):null},fR=r=>{var _,S,x,M;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:i,filterF:l,hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,onSearchClick:E}=r;if(e.filter.type==="String"){const w=[e.filter.value??"",H=>i(e.filter,H)],{placeholder:b=(_=e.def)==null?void 0:_.name,icon:I,iconTooltip:O=b}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"Type",tooltip:O,isOpen:g}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Main),useValue:w,placeholder:b??m["Search(Placeholder)"],wrapProps:{style:{width:"100%",boxSizing:"border-box"}},LeftAddon:t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,hasSelectFilterType:n}),autoFocus:e.filter.autoFocus,maxLength:e.filter.maxLength,type:R?"Error":"Primary"})]})}else if(e.filter.type==="Select"){const w=[e.filter.value??null,H=>{i(e.filter,H),n&&setTimeout(()=>E(),0)}],{placeholder:b=(S=e.def)==null?void 0:S.name,icon:I,iconTooltip:O=b}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"Menu",tooltip:O,isOpen:g}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Main),options:e.filter.options,useSelect:w,placeholder:b,OptionRenderer:e.filter.OptionRenderer,SelectedRenderer:({OptionRenderer:H,selectedOption:q})=>q===null?b||e.filter.placeholder:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),v.jsx(H,{option:q}),v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hideSearchButton:!0,hasSelectFilterType:n})]})})]})}else if(e.filter.type==="Date"){const w=[e.filter.value,H=>i(e.filter,H)],{placeholder:b=(x=e.def)==null?void 0:x.name,icon:I,iconTooltip:O=b}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:g}),v.jsx(mm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDate:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:b,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}else if(e.filter.type==="DateRange"){const w=[e.filter.value,q=>i(e.filter,q)],{placeholder:b=(M=e.def)==null?void 0:M.name,icon:I,iconTooltip:O=b,noDefaultChoices:H}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:g}),v.jsx(pm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDateRange:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:b,noDefaultChoices:H,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}return null},Rd=r=>{const{filterF:e,popupF:t,resources:n,isOpen:i}=r;return v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Convert",tooltip:n["Toggle Filter"],onMouseDown:l=>l.currentTarget.classList.remove(Er.Rotate),style:{width:i?0:24,marginLeft:i?0:8},onClick:l=>{l.currentTarget.classList.add(Er.Rotate),e.toggle(),t.close(),l.stopPropagation()}})},Id=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:i,errorMessage:l,hideSearchButton:u,hasSelectFilterType:f}=r,g=A.useCallback(E=>{E.stopPropagation(),t.open()},[t]),m=A.useCallback(E=>{E.stopPropagation(),t.close()},[t]),R=A.useCallback(E=>{E.stopPropagation(),t.validate()},[t]);return v.jsxs(A.Fragment,{children:[l&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:l}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListAdd",onClick:g,style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0}}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListRemove",onClick:m,style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"}}),!u&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Search",tooltip:i["Search(Button)"],onClick:R,style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4}})]})},dR=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,onSearchClick:i,isOpen:l,isTransitioning:u,onTransitionEnd:f,resources:g,errorMessages:m}=r;return!l&&!u?null:v.jsxs("div",{className:Er.SubFilters,onTransitionEnd:f,style:{opacity:+l,visibility:+l?"visible":"hidden"},children:[e.map((R,E)=>{var _,S,x,M;if(R.filter.type==="String"){const w=[R.filter.value??"",q=>t(R.filter,q,E)],b=m[E],{placeholder:I=(_=R.def)==null?void 0:_.name,icon:O,iconTooltip:H=I}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:O??"Type"}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Sub),wrapProps:{style:{width:"100%"}},useValue:w,placeholder:I??g["Search(Placeholder)"],type:b?"Error":"Secondary",RightAddon:b&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:b}),autoFocus:R.filter.autoFocus,maxLength:R.filter.maxLength}),v.jsx(mn,{h:8})]},E)}else if(R.filter.type==="Select"){const w=[R.filter.value??null,H=>t(R.filter,H)],{placeholder:b=(S=R.def)==null?void 0:S.name,icon:I,iconTooltip:O=b}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:O,icon:I??"Menu"}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Sub),options:R.filter.options,placeholder:b,OptionRenderer:R.filter.OptionRenderer,useSelect:w,arrowProps:{style:{marginRight:4}},type:"Secondary"}),v.jsx(mn,{h:8})]},E)}else if(R.filter.type==="Date"){const w=[R.filter.value,H=>t(R.filter,H)],{placeholder:b=(x=R.def)==null?void 0:x.name,icon:I,iconTooltip:O=b}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:O,icon:I??"CalendarDay"}),v.jsx(mm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),placeholder:b,className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDate:w,minDate:R.filter.minDate,maxDate:R.filter.maxDate}),v.jsx(mn,{h:8})]},E)}else if(R.filter.type==="DateRange"){const w=[R.filter.value,H=>t(R.filter,H)],{placeholder:b=(M=R.def)==null?void 0:M.name,icon:I,iconTooltip:O=b}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:O,icon:I??"CalendarDay"}),v.jsx(pm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDateRange:w,placeholder:b,minDate:R.filter.minDate,maxDate:R.filter.maxDate})]},E)}else return null}),v.jsxs(Sn,{className:Er.Actions,children:[v.jsx(Fi,{type:"Secondary",onClick:n,children:g["Clear(Button)"]}),v.jsx(Fi,{onClick:i,children:g["Search(Button)"]})]})]})},ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return v.jsx(_i,{type:"Raw",className:Er.LeftIcon,tooltip:t,icon:e,style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},hR="_ATableHeader_1hzfz_1",pR="_LeftHeaderContent_1hzfz_11",gR="_RightHeaderContent_1hzfz_19",mR="_TopRightAddon_1hzfz_27",vR="_HItem_1hzfz_32",Vc={ATableHeader:hR,LeftHeaderContent:pR,RightHeaderContent:gR,TopRightAddon:mR,HItem:vR},yR=r=>{const{defs:e,title:t,totalCount:n,useCheck:i,useFilteration:l,hasToggleFilteration:u,filterF:f,noFilter:g,noCount:m,isFiltered:R,TopLeftAddon:E,TopRightAddon:_,useSortation:S,resources:x=hn.ATable,filterType:M}=r,[w]=A.useMemo(()=>i||[],[i]),b=A.useMemo(()=>R?x["Searched n items"](n):x["Total n items"](n),[x,R,n]),[I]=l,[O,H]=S,[q,z]=A.useState(!1),Y=A.useMemo(()=>{const ce=er.values(I).filter(Se=>Se.type==="DateRange"),be=er.keys(I).filter(Se=>ce.includes(I[Se])),ue=er.keys(e).filter(Se=>e[Se].isSortable);return be.length>0?(be.length>1&&z(!0),ue.map(le=>be.includes(le)?[le+"_Asc",le+"_Desc"]:le).flat()):ue},[e,I]),fe=A.useMemo(()=>r.isRowRendered&&Y.length>0,[Y.length,r.isRowRendered]),X=A.useCallback((ce,be)=>{H&&(O==null?void 0:O.defKey)===ce&&(O.isAsc===!0?H({defKey:ce,isAsc:!1,sortF:be}):H({defKey:ce,isAsc:!0,sortF:be}))},[O,H]),he=A.useRef(),[j,re]=A.useState(),[Q,J]=A.useState(O?O.defKey:Y[0]),me=A.useMemo(()=>{if(!j)return{};const ce=e[j];return{SortUp:{onClick:()=>{H==null||H({defKey:j,isAsc:!0,sortF:ce.sortF}),J(j)},content:()=>x["Sort up"]},SortDown:{onClick:()=>{H==null||H({defKey:j,isAsc:!1,sortF:ce.sortF}),J(j)},content:()=>x["Sort down"]}}},[H,j,e,x]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Fe.clsx(Vc.ATableHeader),children:[v.jsxs("div",{className:Fe.clsx(Vc.LeftHeaderContent,"NoSelect"),children:[v.jsxs(Sn,{style:{marginBottom:fe?8:0},children:[E&&v.jsx("div",{className:Fe.clsx(Vc.HItem),children:E}),t&&v.jsx("div",{className:Fe.clsx(Vc.HItem),style:{whiteSpace:"nowrap"},children:t}),!m&&v.jsxs("div",{className:Fe.clsx(Vc.HItem),style:{maxHeight:14,...fe&&{minHeight:14,color:"var(--label-neutral)"}},children:[b,w&&w.length>0&&v.jsxs(v.Fragment,{children:[" / ",x["Checked n items"](w.length)]})]})]}),fe&&v.jsx(q2,{type:"Tertiary",options:Y,useSelect:[Q,()=>{}],optionWidth:"fit-content",tabProps:{style:{marginRight:8}},optionProps:{style:{cursor:"default"},onClick:ce=>{var Se;const be=ce.currentTarget.textContent;if(be===x[be])return;ce.currentTarget.querySelector("svg")===null&&((Se=he.current)==null||Se.open(ce.currentTarget))}},OptionRenderer:ce=>{const be=/_Asc|_Desc/.test(ce.option),ue=(O==null?void 0:O.defKey)===ce.option,Se=Q===ce.option,le=O==null?void 0:O.isAsc,ae=()=>{if(be){re(void 0),J(ce.option);const[Qe,pe]=ce.option.split("_"),Ie=pe==="Asc";H==null||H({defKey:Qe,isAsc:Ie,sortF:e[Qe].sortF})}else Se?X(ce.option,e[ce.option].sortF):re(ce.option)},Pe=be?(Qe=>{const[pe,Ie]=Qe.split("_");return(q?pe+" ":"")+x[Ie]})(ce.option):x["Sort by x"](ce.option);return v.jsxs(Sn,{style:{height:"100%"},className:Fe.clsx(!(be&&Se)&&"IsClickable"),onClick:ae,children:[Pe,Se&&!be&&v.jsx(jr,{style:{marginRight:-5,marginLeft:4},icon:ue?le?"RowSortUp":"RowSortDown":"RowSortBoth"})]},ce.option)}})]}),v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(Vc.RightHeaderContent,"NoSelect"),children:[!g&&v.jsx(uR,{defs:e,useFilteration:l,hasToggleFilteration:u,filterF:f,isRowRendered:r.isRowRendered,isFilterSort:Y.length>0,resources:x,filterType:M}),_&&v.jsx(Sn,{className:Fe.clsx(Vc.TopRightAddon),children:_})]})]}),v.jsx(j2,{defs:me,actionRef:he,onClose:()=>re(void 0),width:100,position:ef.S})]})},bR=r=>{const{defs:e,pk:t,defaultDef:n,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,useCheck:g,checkDisabled:m,isLoading:R,isDisabled:E,title:_,entireItems:S,onStateChange:x,pagedItems:M,totalCount:w,useFilteration:b,useToggleFilteration:I,filterType:O="Default",usePagination:H,useSortation:q,showRows:z,noHeader:Y,noDefHeader:fe,noFooter:X,noFilter:he,noCount:j,noMarking:re,noStateChangeOnMount:Q,TopLeftAddon:J,TopRightAddon:me,actionRef:ce,RowRenderer:be,resources:ue}=r,Se=A.useMemo(()=>({...hn.ATable,...ue}),[ue]),le=A.useCallback(($,_e)=>t!==void 0?Array.isArray(t)?t.every(Ke=>nl.isEqual($[Ke],_e[Ke])):nl.isEqual($[t],_e[t]):nl.isEqual($,_e),[t]),ae=A.useMemo(()=>({content:_R,...n}),[n]),ge=A.useMemo(()=>{const $={};return er.keys(e).forEach(_e=>{const Ke=e[_e],mt={...ae,...Ke};$[_e]=mt}),$},[ae,e]),[Pe,Qe]=nn(nl.cloneDeep(b),{"":{type:"String",placeholder:Se["Search(Placeholder)"],value:""}}),[pe,Ie]=nn(nl.cloneDeep(I),void 0),[Xe,tt]=A.useState(!1),[Ge,Me]=A.useMemo(()=>Xe&&pe?[pe,Ie]:[Pe,Qe],[Pe,Xe,Qe,Ie,pe]),[Ee,we]=A.useState(Ge),Ue=A.useMemo(()=>S?tl.applyFilteration(S,ge,Ee):[],[S,ge,Ee]),ct=A.useMemo(()=>{for(const $ in Ee){const _e=Ee[$];if(_e.value!==void 0&&_e.value!==null&&_e.value!=="")return!0}return!1},[Ee]),[Ne,bt]=nn(q,void 0),Le=A.useMemo(()=>tl.applySortation(Ue,ge,Ne),[Ue,ge,Ne]),Ze=A.useMemo(()=>{if(M!==void 0)return tl.applySortation(M,ge,Ne)},[M,ge,Ne]),[ot,Ct]=nn(H,{page:1,pageSize:50,pageRange:10}),_t=A.useMemo(()=>({pageSize:50,page:1,pageRange:10,...ot}),[ot]),{pagedItems:wt,totalCount:xt,pagination:it}=A.useMemo(()=>{const $={..._t};if(Ze!==void 0){let _e=w??Ze.length;const Ke=tl.getPages(_e,$.pageSize);return $.page>Ke.length?$.page=Ke.length:$.page<1&&($.page=1),{pagedItems:Ze,totalCount:_e,pagination:$}}else if(S!==void 0){const _e=w??Le.length,Ke=tl.getPages(_e,$.pageSize);return $.page>Ke.length?$.page=Ke.length:$.page<1&&($.page=1),{pagedItems:tl.applyPagination(Le,$.page,$.pageSize),totalCount:_e,pagination:$}}else return{pagedItems:[],totalCount:w??0,pagination:_t}},[S,Ze,w,_t,Le]),{pages:je,rangedPages:yt}=A.useMemo(()=>tl.getRangedPages(it.page,xt,it.pageSize,it.pageRange),[xt,it.pageSize,it.page,it.pageRange]),[st,Rt]=A.useMemo(()=>g??[],[g]),Bt=A.useMemo(()=>wt.filter($=>st==null?void 0:st.some(_e=>le(_e,$))),[wt,st,le]),ze=A.useMemo(()=>wt.filter($=>!(m!=null&&m($))),[wt,m]),Tt=A.useMemo(()=>ze.length>0&&ze.every($=>Bt.some(_e=>le(_e,$))),[Bt,ze,le]),Ht=A.useMemo(()=>Tt?!1:ze.some($=>Bt.some(_e=>le(_e,$))),[Bt,ze,Tt,le]),_r=A.useCallback(()=>{!st||!Rt||E||Rt(Tt||Ht?st.filter($=>!ze.some(_e=>le(_e,$))):[...st,...ze])},[st,Rt,Tt,Ht,ze,E,le]),kr=A.useCallback($=>{!st||!Rt||E||(st.some(_e=>le(_e,$))?Rt(st.filter(_e=>!le(_e,$))):Rt([...st,$]))},[st,Rt,E,le]);A.useEffect(()=>{if(!Rt||!st||!m)return;st.filter(_e=>m(_e)).length>0&&Rt(st.filter(_e=>!m(_e)))},[m,st,Rt]);const Cr=A.useMemo(()=>({hContent:st&&v.jsx(Zu,{useCheck:[Tt,_r],isIndeterminate:Ht}),content:$=>{const{item:_e}=$,Ke=m==null?void 0:m(_e),mt=typeof Ke=="string"?Ke:void 0,Pt=st==null?void 0:st.some(Wt=>le(Wt,_e));return v.jsx(Zu,{style:{zIndex:1},isDisabled:Ke,tooltip:mt,onClick:Wt=>Wt.stopPropagation(),useCheck:[Pt,()=>kr(_e)]})},minWidth:32,maxWidth:32}),[st,Tt,Ht,le,_r,m,kr]),ve=A.useMemo(()=>g?{checkDef:Cr,...ge}:ge,[ge,Cr,g]),[ne,Je]=A.useState(!1),pt=A.useMemo(()=>R??ne,[R,ne]),$e=A.useCallback(async $=>{x&&(Je(!0),await x($),Je(!1)),Ct==null||Ct($.pagination),bt==null||bt($.sortation),we($.filteration)},[x,Ct,bt]);A.useEffect(()=>{if(!ce)return;const $=Ke=>{const mt={entireItems:S,filteration:Ge,pagination:it,sortation:Ne},Pt=Ke?Ke(mt):mt;$e(Pt)},_e=Ke=>{const mt={...it,page:1},Pt=Ke?Ke(Ge):Ge;$e({entireItems:S,filteration:Pt,pagination:mt,sortation:Ne}),Me==null||Me(Pt)};ce.current={fireOnStateChange:$,applyFilteration:_e}},[ce,$e,S,Me,Ge,it,Ne]);const De=A.useCallback($=>{$.page===it.page&&$.pageSize===it.pageSize||($.page<1?$.page=1:$.page>je[je.length-1]&&($.page=je[je.length-1]),$e({entireItems:S,filteration:Ee,pagination:$,sortation:Ne}))},[it,je,$e,S,Ee,Ne]),St=A.useCallback($=>{Me&&Me($)},[Me]),Et=A.useCallback($=>{$e({entireItems:S,filteration:Ee,pagination:it,sortation:$})},[$e,S,Ee,it]),ut=A.useCallback($=>{De({...it,page:$})},[De,it]),Nt=A.useCallback(()=>{ut(it.page-1)},[ut,it.page]),Qt=A.useCallback(()=>{ut(it.page+1)},[ut,it.page]),rr=A.useCallback(()=>{ut(1)},[ut]),Ft=A.useCallback(()=>{ut(je[je.length-1])},[ut,je]),zt=A.useMemo(()=>({move:ut,movePrev:Nt,moveNext:Qt,moveFirst:rr,moveLast:Ft}),[ut,Nt,Qt,rr,Ft]),nr=A.useCallback(()=>{const $={...it,page:1};$e({entireItems:S,filteration:Ge,pagination:$,sortation:Ne})},[Ge,it,$e,S,Ne]),et=A.useCallback(()=>{tt(!Xe)},[Xe]),At=A.useCallback(()=>{Xe&&pe?Ie==null||Ie(a0(pe)):Me==null||Me(a0(Pe))},[Xe,pe,Ie,Pe,Me]),vt=A.useMemo(()=>({apply:nr,toggle:et,clear:At}),[nr,et,At]);z2(()=>{Q||$e({entireItems:S,filteration:Ge,pagination:it,sortation:Ne})});const It=A.useMemo(()=>er.map(ge,([_e])=>ge[_e].minWidth??Yl).reduce((_e,Ke)=>_e+Ke,0),[ge]),pr=A.useMemo(()=>be!==void 0,[be]);return v.jsxs($r,{className:x8.ATable,isDisabled:E,style:{minWidth:It},children:[!Y&&v.jsx(yR,{defs:ge,title:_,totalCount:xt,useCheck:g&&st?[st,Rt]:void 0,useFilteration:[Ge,St],useSortation:[Ne,Et],isRowRendered:pr,hasToggleFilteration:pe!==void 0,filterF:vt,noFilter:he,noCount:j,isFiltered:ct,TopLeftAddon:J,TopRightAddon:me,resources:Se,filterType:O}),v.jsx(q8,{defs:ve,isEqual:le,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,isTableDisabled:E,appliedFilteration:Ee,useSortation:[Ne,Et],pagination:it,pagedItems:wt,showRows:z,isLoading:pt,noMarking:re,noDefHeader:fe,resources:Se,RowRenderer:be,isRowRendered:pr}),!X&&v.jsx(K8,{pages:je,rangedPages:yt,pageF:zt,pagination:it})]})},_R=r=>{const{defKey:e,item:t}=r;if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null};function a0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const xR="_AText_1asz6_1",SR={AText:xR},V2=r=>{const{text:e,styled:t,style:n}=r,i=A.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?v.jsx("b",{children:e}):v.jsx("span",{style:n,children:e});if(typeof t=="string"){const l=e.split(t);return n==="bold"?l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1?v.jsx("b",{children:Ld(t)}):""]},f)):l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1&&v.jsx("span",{style:n,children:Ld(t)})]},f))}}else return e;else return e;else return""},[e,n,t]);return v.jsx("div",{className:Fe.clsx("Body1Reading",SR.AText,"NoSelect"),children:i})};function Ld(r){const e=r.split(`
162
- `);return e.map((t,n)=>v.jsxs(A.Fragment,{children:[t,n!==e.length-1&&v.jsx("br",{})]},n))}const CR="_Base_sw5fu_7",wR="_ATextArea_sw5fu_11",AR="_Primary_sw5fu_34",TR="_UnAvailable_sw5fu_39",ER="_Secondary_sw5fu_47",kR="_ReadOnly_sw5fu_59",Md={Base:CR,ATextArea:wR,Primary:AR,UnAvailable:TR,Secondary:ER,ReadOnly:kR,Error:"_Error_sw5fu_66"},RR=["Primary","Secondary","ReadOnly","Error"],IR=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:i,useValue:l,rows:u,isReadonly:f,placeholder:g,maxLength:m,tabIndex:R,autoFocus:E,textAreaProps:_,wrapProps:S,helperText:x,label:M,wrapType:w,labelProps:b,...I}=r,O=A.useMemo(()=>LR(t)?"Error":n,[t,n]),H=A.useMemo(()=>O==="ReadOnly"?!0:f,[O,f]),q=A.useMemo(()=>I.isDisabled||I.isLoading,[I.isDisabled,I.isLoading]),[z,Y]=nn(l,""),fe=A.useCallback(j=>{Y&&Y(j)},[Y]),X=A.useCallback(j=>{var re;q||(fe(j.target.value),(re=_==null?void 0:_.onChange)==null||re.call(_,j))},[q,fe,_]),he=A.useCallback(j=>{var re;if(!q){if((re=_==null?void 0:_.onKeyDown)==null||re.call(_,j),j.key==="Tab"){const Q=j.currentTarget.selectionStart,J=j.currentTarget.selectionEnd;j.currentTarget.value=j.currentTarget.value.substring(0,Q)+" "+j.currentTarget.value.substring(J),j.currentTarget.selectionStart=j.currentTarget.selectionEnd=Q+1,j.preventDefault()}else j.key==="Enter"&&(e==null||e(j.currentTarget.value),j.stopPropagation());j.key!=="Escape"&&j.stopPropagation()}},[q,e,_]);return v.jsx(ec,{wrapProps:S,label:M,helperText:x,errorMessage:t,labelProps:b,wrapType:w??O==="Error"?"Error":"Default",children:v.jsx($r,{...I,className:Fe.clsx(Md.Base,I.className),children:v.jsx("textarea",{..._,className:Fe.clsx(Md.ATextArea,Md[O],q&&Md.UnAvailable,_==null?void 0:_.className),value:z,rows:u,readOnly:H,onChange:X,onKeyDown:he,placeholder:g,maxLength:m,tabIndex:I.isDisabled||I.isLoading?-1:R,autoFocus:E,ref:i})})})};function LR(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}var G2=typeof global=="object"&&global&&global.Object===Object&&global,MR=typeof self=="object"&&self&&self.Object===Object&&self,Aa=G2||MR||Function("return this")(),nc=Aa.Symbol,Z2=Object.prototype,DR=Z2.hasOwnProperty,OR=Z2.toString,Mf=nc?nc.toStringTag:void 0;function PR(r){var e=DR.call(r,Mf),t=r[Mf];try{r[Mf]=void 0;var n=!0}catch{}var i=OR.call(r);return n&&(e?r[Mf]=t:delete r[Mf]),i}var NR=Object.prototype,FR=NR.toString;function jR(r){return FR.call(r)}var BR="[object Null]",HR="[object Undefined]",l0=nc?nc.toStringTag:void 0;function tf(r){return r==null?r===void 0?HR:BR:l0&&l0 in Object(r)?PR(r):jR(r)}function il(r){return r!=null&&typeof r=="object"}var Yc=Array.isArray;function ic(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function K2(r){return r}var qR="[object AsyncFunction]",zR="[object Function]",$R="[object GeneratorFunction]",UR="[object Proxy]";function ym(r){if(!ic(r))return!1;var e=tf(r);return e==zR||e==$R||e==qR||e==UR}var Qh=Aa["__core-js_shared__"],c0=function(){var r=/[^.]+$/.exec(Qh&&Qh.keys&&Qh.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function WR(r){return!!c0&&c0 in r}var VR=Function.prototype,GR=VR.toString;function eu(r){if(r!=null){try{return GR.call(r)}catch{}try{return r+""}catch{}}return""}var ZR=/[\\^$.*+?()[\]{}|]/g,KR=/^\[object .+?Constructor\]$/,YR=Function.prototype,XR=Object.prototype,JR=YR.toString,QR=XR.hasOwnProperty,e9=RegExp("^"+JR.call(QR).replace(ZR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t9(r){if(!ic(r)||WR(r))return!1;var e=ym(r)?e9:KR;return e.test(eu(r))}function r9(r,e){return r==null?void 0:r[e]}function tu(r,e){var t=r9(r,e);return t9(t)?t:void 0}var B1=tu(Aa,"WeakMap"),u0=Object.create,n9=function(){function r(){}return function(e){if(!ic(e))return{};if(u0)return u0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function i9(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Y2(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var o9=800,s9=16,a9=Date.now;function l9(r){var e=0,t=0;return function(){var n=a9(),i=s9-(n-t);if(t=n,i>0){if(++e>=o9)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function c9(r){return function(){return r}}var Qd=function(){try{var r=tu(Object,"defineProperty");return r({},"",{}),r}catch{}}(),u9=Qd?function(r,e){return Qd(r,"toString",{configurable:!0,enumerable:!1,value:c9(e),writable:!0})}:K2,f9=l9(u9);function d9(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var h9=9007199254740991,p9=/^(?:0|[1-9]\d*)$/;function X2(r,e){var t=typeof r;return e=e??h9,!!e&&(t=="number"||t!="symbol"&&p9.test(r))&&r>-1&&r%1==0&&r<e}function bm(r,e,t){e=="__proto__"&&Qd?Qd(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function nd(r,e){return r===e||r!==r&&e!==e}var g9=Object.prototype,m9=g9.hasOwnProperty;function J2(r,e,t){var n=r[e];(!(m9.call(r,e)&&nd(n,t))||t===void 0&&!(e in r))&&bm(r,e,t)}function id(r,e,t,n){var i=!t;t||(t={});for(var l=-1,u=e.length;++l<u;){var f=e[l],g=void 0;g===void 0&&(g=r[f]),i?bm(t,f,g):J2(t,f,g)}return t}var f0=Math.max;function v9(r,e,t){return e=f0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,l=f0(n.length-e,0),u=Array(l);++i<l;)u[i]=n[e+i];i=-1;for(var f=Array(e+1);++i<e;)f[i]=n[i];return f[e]=t(u),i9(r,this,f)}}function y9(r,e){return f9(v9(r,e,K2),r+"")}var b9=9007199254740991;function Q2(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=b9}function ch(r){return r!=null&&Q2(r.length)&&!ym(r)}function _9(r,e,t){if(!ic(t))return!1;var n=typeof e;return(n=="number"?ch(t)&&X2(e,t.length):n=="string"&&e in t)?nd(t[e],r):!1}function x9(r){return y9(function(e,t){var n=-1,i=t.length,l=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(l=r.length>3&&typeof l=="function"?(i--,l):void 0,u&&_9(t[0],t[1],u)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var f=t[n];f&&r(e,f,n,l)}return e})}var S9=Object.prototype;function _m(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||S9;return r===t}function C9(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var w9="[object Arguments]";function d0(r){return il(r)&&tf(r)==w9}var ex=Object.prototype,A9=ex.hasOwnProperty,T9=ex.propertyIsEnumerable,H1=d0(function(){return arguments}())?d0:function(r){return il(r)&&A9.call(r,"callee")&&!T9.call(r,"callee")};function E9(){return!1}var tx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,h0=tx&&typeof module=="object"&&module&&!module.nodeType&&module,k9=h0&&h0.exports===tx,p0=k9?Aa.Buffer:void 0,R9=p0?p0.isBuffer:void 0,Yf=R9||E9,I9="[object Arguments]",L9="[object Array]",M9="[object Boolean]",D9="[object Date]",O9="[object Error]",P9="[object Function]",N9="[object Map]",F9="[object Number]",j9="[object Object]",B9="[object RegExp]",H9="[object Set]",q9="[object String]",z9="[object WeakMap]",$9="[object ArrayBuffer]",U9="[object DataView]",W9="[object Float32Array]",V9="[object Float64Array]",G9="[object Int8Array]",Z9="[object Int16Array]",K9="[object Int32Array]",Y9="[object Uint8Array]",X9="[object Uint8ClampedArray]",J9="[object Uint16Array]",Q9="[object Uint32Array]",xn={};xn[W9]=xn[V9]=xn[G9]=xn[Z9]=xn[K9]=xn[Y9]=xn[X9]=xn[J9]=xn[Q9]=!0;xn[I9]=xn[L9]=xn[$9]=xn[M9]=xn[U9]=xn[D9]=xn[O9]=xn[P9]=xn[N9]=xn[F9]=xn[j9]=xn[B9]=xn[H9]=xn[q9]=xn[z9]=!1;function e7(r){return il(r)&&Q2(r.length)&&!!xn[tf(r)]}function xm(r){return function(e){return r(e)}}var rx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$f=rx&&typeof module=="object"&&module&&!module.nodeType&&module,t7=$f&&$f.exports===rx,ep=t7&&G2.process,Ku=function(){try{var r=$f&&$f.require&&$f.require("util").types;return r||ep&&ep.binding&&ep.binding("util")}catch{}}(),g0=Ku&&Ku.isTypedArray,Sm=g0?xm(g0):e7,r7=Object.prototype,n7=r7.hasOwnProperty;function nx(r,e){var t=Yc(r),n=!t&&H1(r),i=!t&&!n&&Yf(r),l=!t&&!n&&!i&&Sm(r),u=t||n||i||l,f=u?C9(r.length,String):[],g=f.length;for(var m in r)(e||n7.call(r,m))&&!(u&&(m=="length"||i&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||X2(m,g)))&&f.push(m);return f}function ix(r,e){return function(t){return r(e(t))}}var i7=ix(Object.keys,Object),o7=Object.prototype,s7=o7.hasOwnProperty;function a7(r){if(!_m(r))return i7(r);var e=[];for(var t in Object(r))s7.call(r,t)&&t!="constructor"&&e.push(t);return e}function Cm(r){return ch(r)?nx(r):a7(r)}function l7(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var c7=Object.prototype,u7=c7.hasOwnProperty;function f7(r){if(!ic(r))return l7(r);var e=_m(r),t=[];for(var n in r)n=="constructor"&&(e||!u7.call(r,n))||t.push(n);return t}function od(r){return ch(r)?nx(r,!0):f7(r)}var Xf=tu(Object,"create");function d7(){this.__data__=Xf?Xf(null):{},this.size=0}function h7(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var p7="__lodash_hash_undefined__",g7=Object.prototype,m7=g7.hasOwnProperty;function v7(r){var e=this.__data__;if(Xf){var t=e[r];return t===p7?void 0:t}return m7.call(e,r)?e[r]:void 0}var y7=Object.prototype,b7=y7.hasOwnProperty;function _7(r){var e=this.__data__;return Xf?e[r]!==void 0:b7.call(e,r)}var x7="__lodash_hash_undefined__";function S7(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Xf&&e===void 0?x7:e,this}function Xc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Xc.prototype.clear=d7;Xc.prototype.delete=h7;Xc.prototype.get=v7;Xc.prototype.has=_7;Xc.prototype.set=S7;function C7(){this.__data__=[],this.size=0}function uh(r,e){for(var t=r.length;t--;)if(nd(r[t][0],e))return t;return-1}var w7=Array.prototype,A7=w7.splice;function T7(r){var e=this.__data__,t=uh(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():A7.call(e,t,1),--this.size,!0}function E7(r){var e=this.__data__,t=uh(e,r);return t<0?void 0:e[t][1]}function k7(r){return uh(this.__data__,r)>-1}function R7(r,e){var t=this.__data__,n=uh(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function ll(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ll.prototype.clear=C7;ll.prototype.delete=T7;ll.prototype.get=E7;ll.prototype.has=k7;ll.prototype.set=R7;var Jf=tu(Aa,"Map");function I7(){this.size=0,this.__data__={hash:new Xc,map:new(Jf||ll),string:new Xc}}function L7(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function fh(r,e){var t=r.__data__;return L7(e)?t[typeof e=="string"?"string":"hash"]:t.map}function M7(r){var e=fh(this,r).delete(r);return this.size-=e?1:0,e}function D7(r){return fh(this,r).get(r)}function O7(r){return fh(this,r).has(r)}function P7(r,e){var t=fh(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function ru(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ru.prototype.clear=I7;ru.prototype.delete=M7;ru.prototype.get=D7;ru.prototype.has=O7;ru.prototype.set=P7;function ox(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var wm=ix(Object.getPrototypeOf,Object),N7="[object Object]",F7=Function.prototype,j7=Object.prototype,sx=F7.toString,B7=j7.hasOwnProperty,H7=sx.call(Object);function q7(r){if(!il(r)||tf(r)!=N7)return!1;var e=wm(r);if(e===null)return!0;var t=B7.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sx.call(t)==H7}function z7(){this.__data__=new ll,this.size=0}function $7(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function U7(r){return this.__data__.get(r)}function W7(r){return this.__data__.has(r)}var V7=200;function G7(r,e){var t=this.__data__;if(t instanceof ll){var n=t.__data__;if(!Jf||n.length<V7-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new ru(n)}return t.set(r,e),this.size=t.size,this}function _a(r){var e=this.__data__=new ll(r);this.size=e.size}_a.prototype.clear=z7;_a.prototype.delete=$7;_a.prototype.get=U7;_a.prototype.has=W7;_a.prototype.set=G7;function Z7(r,e){return r&&id(e,Cm(e),r)}function K7(r,e){return r&&id(e,od(e),r)}var ax=typeof exports=="object"&&exports&&!exports.nodeType&&exports,m0=ax&&typeof module=="object"&&module&&!module.nodeType&&module,Y7=m0&&m0.exports===ax,v0=Y7?Aa.Buffer:void 0,y0=v0?v0.allocUnsafe:void 0;function lx(r,e){if(e)return r.slice();var t=r.length,n=y0?y0(t):new r.constructor(t);return r.copy(n),n}function X7(r,e){for(var t=-1,n=r==null?0:r.length,i=0,l=[];++t<n;){var u=r[t];e(u,t,r)&&(l[i++]=u)}return l}function cx(){return[]}var J7=Object.prototype,Q7=J7.propertyIsEnumerable,b0=Object.getOwnPropertySymbols,Am=b0?function(r){return r==null?[]:(r=Object(r),X7(b0(r),function(e){return Q7.call(r,e)}))}:cx;function eI(r,e){return id(r,Am(r),e)}var tI=Object.getOwnPropertySymbols,ux=tI?function(r){for(var e=[];r;)ox(e,Am(r)),r=wm(r);return e}:cx;function rI(r,e){return id(r,ux(r),e)}function fx(r,e,t){var n=e(r);return Yc(r)?n:ox(n,t(r))}function q1(r){return fx(r,Cm,Am)}function nI(r){return fx(r,od,ux)}var z1=tu(Aa,"DataView"),$1=tu(Aa,"Promise"),U1=tu(Aa,"Set"),_0="[object Map]",iI="[object Object]",x0="[object Promise]",S0="[object Set]",C0="[object WeakMap]",w0="[object DataView]",oI=eu(z1),sI=eu(Jf),aI=eu($1),lI=eu(U1),cI=eu(B1),Fs=tf;(z1&&Fs(new z1(new ArrayBuffer(1)))!=w0||Jf&&Fs(new Jf)!=_0||$1&&Fs($1.resolve())!=x0||U1&&Fs(new U1)!=S0||B1&&Fs(new B1)!=C0)&&(Fs=function(r){var e=tf(r),t=e==iI?r.constructor:void 0,n=t?eu(t):"";if(n)switch(n){case oI:return w0;case sI:return _0;case aI:return x0;case lI:return S0;case cI:return C0}return e});var uI=Object.prototype,fI=uI.hasOwnProperty;function dI(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&fI.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var eh=Aa.Uint8Array;function Tm(r){var e=new r.constructor(r.byteLength);return new eh(e).set(new eh(r)),e}function hI(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var pI=/\w*$/;function gI(r){var e=new r.constructor(r.source,pI.exec(r));return e.lastIndex=r.lastIndex,e}var A0=nc?nc.prototype:void 0,T0=A0?A0.valueOf:void 0;function mI(r){return T0?Object(T0.call(r)):{}}function dx(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var vI="[object Boolean]",yI="[object Date]",bI="[object Map]",_I="[object Number]",xI="[object RegExp]",SI="[object Set]",CI="[object String]",wI="[object Symbol]",AI="[object ArrayBuffer]",TI="[object DataView]",EI="[object Float32Array]",kI="[object Float64Array]",RI="[object Int8Array]",II="[object Int16Array]",LI="[object Int32Array]",MI="[object Uint8Array]",DI="[object Uint8ClampedArray]",OI="[object Uint16Array]",PI="[object Uint32Array]";function NI(r,e,t){var n=r.constructor;switch(e){case AI:return Tm(r);case vI:case yI:return new n(+r);case TI:return hI(r,t);case EI:case kI:case RI:case II:case LI:case MI:case DI:case OI:case PI:return dx(r,t);case bI:return new n;case _I:case CI:return new n(r);case xI:return gI(r);case SI:return new n;case wI:return mI(r)}}function hx(r){return typeof r.constructor=="function"&&!_m(r)?n9(wm(r)):{}}var FI="[object Map]";function jI(r){return il(r)&&Fs(r)==FI}var E0=Ku&&Ku.isMap,BI=E0?xm(E0):jI,HI="[object Set]";function qI(r){return il(r)&&Fs(r)==HI}var k0=Ku&&Ku.isSet,zI=k0?xm(k0):qI,$I=1,UI=2,WI=4,px="[object Arguments]",VI="[object Array]",GI="[object Boolean]",ZI="[object Date]",KI="[object Error]",gx="[object Function]",YI="[object GeneratorFunction]",XI="[object Map]",JI="[object Number]",mx="[object Object]",QI="[object RegExp]",eL="[object Set]",tL="[object String]",rL="[object Symbol]",nL="[object WeakMap]",iL="[object ArrayBuffer]",oL="[object DataView]",sL="[object Float32Array]",aL="[object Float64Array]",lL="[object Int8Array]",cL="[object Int16Array]",uL="[object Int32Array]",fL="[object Uint8Array]",dL="[object Uint8ClampedArray]",hL="[object Uint16Array]",pL="[object Uint32Array]",gn={};gn[px]=gn[VI]=gn[iL]=gn[oL]=gn[GI]=gn[ZI]=gn[sL]=gn[aL]=gn[lL]=gn[cL]=gn[uL]=gn[XI]=gn[JI]=gn[mx]=gn[QI]=gn[eL]=gn[tL]=gn[rL]=gn[fL]=gn[dL]=gn[hL]=gn[pL]=!0;gn[KI]=gn[gx]=gn[nL]=!1;function Ud(r,e,t,n,i,l){var u,f=e&$I,g=e&UI,m=e&WI;if(u!==void 0)return u;if(!ic(r))return r;var R=Yc(r);if(R){if(u=dI(r),!f)return Y2(r,u)}else{var E=Fs(r),_=E==gx||E==YI;if(Yf(r))return lx(r,f);if(E==mx||E==px||_&&!i){if(u=g||_?{}:hx(r),!f)return g?rI(r,K7(u,r)):eI(r,Z7(u,r))}else{if(!gn[E])return i?r:{};u=NI(r,E,f)}}l||(l=new _a);var S=l.get(r);if(S)return S;l.set(r,u),zI(r)?r.forEach(function(w){u.add(Ud(w,e,t,w,r,l))}):BI(r)&&r.forEach(function(w,b){u.set(b,Ud(w,e,t,b,r,l))});var x=m?g?nI:q1:g?od:Cm,M=R?void 0:x(r);return d9(M||r,function(w,b){M&&(b=w,w=r[b]),J2(u,b,Ud(w,e,t,b,r,l))}),u}var gL=1,mL=4;function Uu(r){return Ud(r,gL|mL)}var vL="__lodash_hash_undefined__";function yL(r){return this.__data__.set(r,vL),this}function bL(r){return this.__data__.has(r)}function th(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new ru;++e<t;)this.add(r[e])}th.prototype.add=th.prototype.push=yL;th.prototype.has=bL;function _L(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function xL(r,e){return r.has(e)}var SL=1,CL=2;function vx(r,e,t,n,i,l){var u=t&SL,f=r.length,g=e.length;if(f!=g&&!(u&&g>f))return!1;var m=l.get(r),R=l.get(e);if(m&&R)return m==e&&R==r;var E=-1,_=!0,S=t&CL?new th:void 0;for(l.set(r,e),l.set(e,r);++E<f;){var x=r[E],M=e[E];if(n)var w=u?n(M,x,E,e,r,l):n(x,M,E,r,e,l);if(w!==void 0){if(w)continue;_=!1;break}if(S){if(!_L(e,function(b,I){if(!xL(S,I)&&(x===b||i(x,b,t,n,l)))return S.push(I)})){_=!1;break}}else if(!(x===M||i(x,M,t,n,l))){_=!1;break}}return l.delete(r),l.delete(e),_}function wL(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function AL(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var TL=1,EL=2,kL="[object Boolean]",RL="[object Date]",IL="[object Error]",LL="[object Map]",ML="[object Number]",DL="[object RegExp]",OL="[object Set]",PL="[object String]",NL="[object Symbol]",FL="[object ArrayBuffer]",jL="[object DataView]",R0=nc?nc.prototype:void 0,tp=R0?R0.valueOf:void 0;function BL(r,e,t,n,i,l,u){switch(t){case jL:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case FL:return!(r.byteLength!=e.byteLength||!l(new eh(r),new eh(e)));case kL:case RL:case ML:return nd(+r,+e);case IL:return r.name==e.name&&r.message==e.message;case DL:case PL:return r==e+"";case LL:var f=wL;case OL:var g=n&TL;if(f||(f=AL),r.size!=e.size&&!g)return!1;var m=u.get(r);if(m)return m==e;n|=EL,u.set(r,e);var R=vx(f(r),f(e),n,i,l,u);return u.delete(r),R;case NL:if(tp)return tp.call(r)==tp.call(e)}return!1}var HL=1,qL=Object.prototype,zL=qL.hasOwnProperty;function $L(r,e,t,n,i,l){var u=t&HL,f=q1(r),g=f.length,m=q1(e),R=m.length;if(g!=R&&!u)return!1;for(var E=g;E--;){var _=f[E];if(!(u?_ in e:zL.call(e,_)))return!1}var S=l.get(r),x=l.get(e);if(S&&x)return S==e&&x==r;var M=!0;l.set(r,e),l.set(e,r);for(var w=u;++E<g;){_=f[E];var b=r[_],I=e[_];if(n)var O=u?n(I,b,_,e,r,l):n(b,I,_,r,e,l);if(!(O===void 0?b===I||i(b,I,t,n,l):O)){M=!1;break}w||(w=_=="constructor")}if(M&&!w){var H=r.constructor,q=e.constructor;H!=q&&"constructor"in r&&"constructor"in e&&!(typeof H=="function"&&H instanceof H&&typeof q=="function"&&q instanceof q)&&(M=!1)}return l.delete(r),l.delete(e),M}var UL=1,I0="[object Arguments]",L0="[object Array]",Dd="[object Object]",WL=Object.prototype,M0=WL.hasOwnProperty;function VL(r,e,t,n,i,l){var u=Yc(r),f=Yc(e),g=u?L0:Fs(r),m=f?L0:Fs(e);g=g==I0?Dd:g,m=m==I0?Dd:m;var R=g==Dd,E=m==Dd,_=g==m;if(_&&Yf(r)){if(!Yf(e))return!1;u=!0,R=!1}if(_&&!R)return l||(l=new _a),u||Sm(r)?vx(r,e,t,n,i,l):BL(r,e,g,t,n,i,l);if(!(t&UL)){var S=R&&M0.call(r,"__wrapped__"),x=E&&M0.call(e,"__wrapped__");if(S||x){var M=S?r.value():r,w=x?e.value():e;return l||(l=new _a),i(M,w,t,n,l)}}return _?(l||(l=new _a),$L(r,e,t,n,i,l)):!1}function yx(r,e,t,n,i){return r===e?!0:r==null||e==null||!il(r)&&!il(e)?r!==r&&e!==e:VL(r,e,t,n,yx,i)}function GL(r){return function(e,t,n){for(var i=-1,l=Object(e),u=n(e),f=u.length;f--;){var g=u[++i];if(t(l[g],g,l)===!1)break}return e}}var ZL=GL();function W1(r,e,t){(t!==void 0&&!nd(r[e],t)||t===void 0&&!(e in r))&&bm(r,e,t)}function KL(r){return il(r)&&ch(r)}function V1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function YL(r){return id(r,od(r))}function XL(r,e,t,n,i,l,u){var f=V1(r,t),g=V1(e,t),m=u.get(g);if(m){W1(r,t,m);return}var R=l?l(f,g,t+"",r,e,u):void 0,E=R===void 0;if(E){var _=Yc(g),S=!_&&Yf(g),x=!_&&!S&&Sm(g);R=g,_||S||x?Yc(f)?R=f:KL(f)?R=Y2(f):S?(E=!1,R=lx(g,!0)):x?(E=!1,R=dx(g,!0)):R=[]:q7(g)||H1(g)?(R=f,H1(f)?R=YL(f):(!ic(f)||ym(f))&&(R=hx(g))):E=!1}E&&(u.set(g,R),i(R,g,n,l,u),u.delete(g)),W1(r,t,R)}function bx(r,e,t,n,i){r!==e&&ZL(e,function(l,u){if(i||(i=new _a),ic(l))XL(r,e,u,t,bx,n,i);else{var f=n?n(V1(r,u),l,u+"",r,e,i):void 0;f===void 0&&(f=l),W1(r,u,f)}},od)}function Em(r,e){return yx(r,e)}var Ql=x9(function(r,e,t){bx(r,e,t)}),Jt=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(Jt||{});class Ca{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const i=Jt.TYPE&Jt.ATTRIBUTE;this.scope=n.scope!=null?n.scope&Jt.LEVEL|i:Jt.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class Wu extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const _x=class G1{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const i=this.query(t);if(i==null)throw new Wu(`Unable to create ${t} blot`);const l=i,u=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(n),f=new l(e,u,n);return G1.blots.set(f.domNode,f),f}find(e,t=!1){return G1.find(e,t)}query(e,t=Jt.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&Jt.LEVEL&Jt.BLOCK?n=this.types.block:e&Jt.LEVEL&Jt.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&Jt.LEVEL&n.scope&&t&Jt.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,i="attrName"in t;if(!n&&!i)throw new Wu("Invalid definition");if(n&&t.blotName==="abstract")throw new Wu("Cannot register abstract class");const l=n?t.blotName:i?t.attrName:void 0;return this.types[l]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(u=>u.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(u=>{(this.tags[u]==null||t.className==null)&&(this.tags[u]=t)}))),t})}};_x.blots=new WeakMap;let Yu=_x;function D0(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class JL extends Ca{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){D0(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(D0(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const Us=JL;function rp(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class QL extends Ca{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[rp(this.keyName)]=t,!0):!1}remove(e){e.style[rp(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[rp(this.keyName)];return this.canAdd(e,t)?t:""}}const oc=QL;class eM{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Yu.find(this.domNode);if(e==null)return;const t=Ca.keys(this.domNode),n=Us.keys(this.domNode),i=oc.keys(this.domNode);t.concat(n).concat(i).forEach(l=>{const u=e.scroll.query(l,Jt.ATTRIBUTE);u instanceof Ca&&(this.attributes[u.attrName]=u)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const dh=eM,xx=class{constructor(e,t){this.scroll=e,this.domNode=t,Yu.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Wu("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Yu.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,i){const l=this.isolate(e,t);if(this.scroll.query(n,Jt.BLOT)!=null&&i)l.wrap(n,i);else if(this.scroll.query(n,Jt.ATTRIBUTE)!=null){const u=this.scroll.create(this.statics.scope);l.wrap(u),u.format(n,i)}}insertAt(e,t,n){const i=n==null?this.scroll.create("text",t):this.scroll.create(t,n),l=this.split(e);this.parent.insertBefore(i,l||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new Wu(`Cannot wrap ${e}`);return n.appendChild(this),n}};xx.blotName="abstract";let Sx=xx;const Cx=class extends Sx{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Cx.scope=Jt.INLINE_BLOT;let tM=Cx;const qi=tM;class rM{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),i=0;for(;n;){if(n===e)return i;i+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let i=n();for(;i;){const l=i.length();if(e<l||t&&e===l&&(i.next==null||i.next.length()!==0))return[i,e];e-=l,i=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[i,l]=this.find(e);let u=e-l;const f=this.iterator(i);let g=f();for(;g&&u<e+t;){const m=g.length();e>u?n(g,e-u,Math.min(t,u+m-e)):n(g,0,Math.min(m,e+t-u)),u+=m,g=f()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let i=n();for(;i;)t=e(t,i),i=n();return t}}function O0(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(Jt.INLINE);return Array.from(r.childNodes).forEach(i=>{n.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const wx=class Kl extends Sx{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Kl.uiClass&&this.uiNode.classList.add(Kl.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new rM,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=O0(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Wu)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,i,l)=>{n.deleteAt(i,l)})}descendant(e,t=0){const[n,i]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Kl?n.descendant(e,i):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let i=[],l=n;return this.children.forEachAt(t,n,(u,f,g)=>{(e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e)&&i.push(u),u instanceof Kl&&(i=i.concat(u.descendants(e,f,l))),l-=g}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===Jt.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Kl?t.unwrap():t.remove())})}formatAt(e,t,n,i){this.children.forEachAt(e,t,(l,u,f)=>{l.formatAt(u,f,n,i)})}insertAt(e,t,n){const[i,l]=this.children.find(e);if(i)i.insertAt(l,t,n);else{const u=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(u)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,i]=this.children.find(e,t),l=[[this,e]];return n instanceof Kl?l.concat(n.path(i,t)):(n!=null&&l.push([n,i]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Kl&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(i,l,u)=>{const f=i.split(l,t);f!=null&&n.appendChild(f)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],i=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(n.push(...l.addedNodes),i.push(...l.removedNodes))}),i.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const u=this.scroll.find(l);u!=null&&(u.domNode.parentNode==null||u.domNode.parentNode===this.domNode)&&u.detach()}),n.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,u)=>l===u?0:l.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let u=null;l.nextSibling!=null&&(u=this.scroll.find(l.nextSibling));const f=O0(l,this.scroll);(f.next!==u||f.next==null)&&(f.parent!=null&&f.parent.removeChild(this),this.insertBefore(f,u||void 0))}),this.enforceAllowedChildren()}};wx.uiClass="";let nM=wx;const qs=nM;function iM(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Pu=class Nu extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Nu.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Nu||(n=n.wrap(Nu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,Jt.INLINE);if(n==null)return;n instanceof Ca?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.formats()[n]!=null||this.scroll.query(n,Jt.ATTRIBUTE)?this.isolate(e,t).format(n,i):super.formatAt(e,t,n,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Nu&&n.prev===this&&iM(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof Nu&&this.attributes.move(n),n}};Pu.allowedChildren=[Pu,qi],Pu.blotName="inline",Pu.scope=Jt.INLINE_BLOT,Pu.tagName="SPAN";let oM=Pu;const km=oM,Fu=class Z1 extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Z1.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){const n=this.scroll.query(e,Jt.BLOCK);n!=null&&(n instanceof Ca?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(Z1.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.scroll.query(n,Jt.BLOCK)!=null?this.format(n,i):super.formatAt(e,t,n,i)}insertAt(e,t,n){if(n==null||this.scroll.query(t,Jt.INLINE)!=null)super.insertAt(e,t,n);else{const i=this.split(e);if(i!=null){const l=this.scroll.create(t,n);i.parent.insertBefore(l,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Fu.blotName="block",Fu.scope=Jt.BLOCK_BLOT,Fu.tagName="P",Fu.allowedChildren=[km,Fu,qi];let sM=Fu;const Qf=sM,K1=class extends qs{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};K1.blotName="container",K1.scope=Jt.BLOCK_BLOT;let aM=K1;const hh=aM;class lM extends qi{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,i){e===0&&t===this.length()?this.format(n,i):super.formatAt(e,t,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zo=lM,cM={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},uM=100,ju=class extends qs{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,cM),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=Jt.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,i){this.update(),super.formatAt(e,t,n,i)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const l=(g,m=!0)=>{g==null||g===this||g.domNode.parentNode!=null&&(n.has(g.domNode)||n.set(g.domNode,[]),m&&l(g.parent))},u=g=>{n.has(g.domNode)&&(g instanceof qs&&g.children.forEach(u),n.delete(g.domNode),g.optimize(t))};let f=e;for(let g=0;f.length>0;g+=1){if(g>=uM)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(m=>{const R=this.find(m.target,!0);R!=null&&(R.domNode===m.target&&(m.type==="childList"?(l(this.find(m.previousSibling,!1)),Array.from(m.addedNodes).forEach(E=>{const _=this.find(E,!1);l(_,!1),_ instanceof qs&&_.children.forEach(S=>{l(S,!1)})})):m.type==="attributes"&&l(R.prev)),l(R))}),this.children.forEach(u),f=Array.from(this.observer.takeRecords()),i=f.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(i=>{const l=this.find(i.target,!0);return l==null?null:n.has(l.domNode)?(n.get(l.domNode).push(i),null):(n.set(l.domNode,[i]),l)}).forEach(i=>{i!=null&&i!==this&&n.has(i.domNode)&&i.update(n.get(i.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};ju.blotName="scroll",ju.defaultChild=Qf,ju.allowedChildren=[Qf,hh],ju.scope=Jt.BLOCK_BLOT,ju.tagName="DIV";let fM=ju;const Rm=fM,Y1=class Ax extends qi{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Ax&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Y1.blotName="text",Y1.scope=Jt.INLINE_BLOT;let dM=Y1;const rh=dM,hM=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Ca,AttributorStore:dh,BlockBlot:Qf,ClassAttributor:Us,ContainerBlot:hh,EmbedBlot:zo,InlineBlot:km,LeafBlot:qi,ParentBlot:qs,Registry:Yu,Scope:Jt,ScrollBlot:Rm,StyleAttributor:oc,TextBlot:rh},Symbol.toStringTag,{value:"Module"}));var Od={exports:{}},np,P0;function pM(){if(P0)return np;P0=1;var r=-1,e=1,t=0;function n(j,re,Q,J,me){if(j===re)return j?[[t,j]]:[];if(Q!=null){var ce=X(j,re,Q);if(ce)return ce}var be=f(j,re),ue=j.substring(0,be);j=j.substring(be),re=re.substring(be),be=m(j,re);var Se=j.substring(j.length-be);j=j.substring(0,j.length-be),re=re.substring(0,re.length-be);var le=i(j,re);return ue&&le.unshift([t,ue]),Se&&le.push([t,Se]),I(le,me),J&&E(le),le}function i(j,re){var Q;if(!j)return[[e,re]];if(!re)return[[r,j]];var J=j.length>re.length?j:re,me=j.length>re.length?re:j,ce=J.indexOf(me);if(ce!==-1)return Q=[[e,J.substring(0,ce)],[t,me],[e,J.substring(ce+me.length)]],j.length>re.length&&(Q[0][0]=Q[2][0]=r),Q;if(me.length===1)return[[r,j],[e,re]];var be=R(j,re);if(be){var ue=be[0],Se=be[1],le=be[2],ae=be[3],ge=be[4],Pe=n(ue,le),Qe=n(Se,ae);return Pe.concat([[t,ge]],Qe)}return l(j,re)}function l(j,re){for(var Q=j.length,J=re.length,me=Math.ceil((Q+J)/2),ce=me,be=2*me,ue=new Array(be),Se=new Array(be),le=0;le<be;le++)ue[le]=-1,Se[le]=-1;ue[ce+1]=0,Se[ce+1]=0;for(var ae=Q-J,ge=ae%2!==0,Pe=0,Qe=0,pe=0,Ie=0,Xe=0;Xe<me;Xe++){for(var tt=-Xe+Pe;tt<=Xe-Qe;tt+=2){var Ge=ce+tt,Me;tt===-Xe||tt!==Xe&&ue[Ge-1]<ue[Ge+1]?Me=ue[Ge+1]:Me=ue[Ge-1]+1;for(var Ee=Me-tt;Me<Q&&Ee<J&&j.charAt(Me)===re.charAt(Ee);)Me++,Ee++;if(ue[Ge]=Me,Me>Q)Qe+=2;else if(Ee>J)Pe+=2;else if(ge){var we=ce+ae-tt;if(we>=0&&we<be&&Se[we]!==-1){var Ue=Q-Se[we];if(Me>=Ue)return u(j,re,Me,Ee)}}}for(var ct=-Xe+pe;ct<=Xe-Ie;ct+=2){var we=ce+ct,Ue;ct===-Xe||ct!==Xe&&Se[we-1]<Se[we+1]?Ue=Se[we+1]:Ue=Se[we-1]+1;for(var Ne=Ue-ct;Ue<Q&&Ne<J&&j.charAt(Q-Ue-1)===re.charAt(J-Ne-1);)Ue++,Ne++;if(Se[we]=Ue,Ue>Q)Ie+=2;else if(Ne>J)pe+=2;else if(!ge){var Ge=ce+ae-ct;if(Ge>=0&&Ge<be&&ue[Ge]!==-1){var Me=ue[Ge],Ee=ce+Me-Ge;if(Ue=Q-Ue,Me>=Ue)return u(j,re,Me,Ee)}}}}return[[r,j],[e,re]]}function u(j,re,Q,J){var me=j.substring(0,Q),ce=re.substring(0,J),be=j.substring(Q),ue=re.substring(J),Se=n(me,ce),le=n(be,ue);return Se.concat(le)}function f(j,re){if(!j||!re||j.charAt(0)!==re.charAt(0))return 0;for(var Q=0,J=Math.min(j.length,re.length),me=J,ce=0;Q<me;)j.substring(ce,me)==re.substring(ce,me)?(Q=me,ce=Q):J=me,me=Math.floor((J-Q)/2+Q);return O(j.charCodeAt(me-1))&&me--,me}function g(j,re){var Q=j.length,J=re.length;if(Q==0||J==0)return 0;Q>J?j=j.substring(Q-J):Q<J&&(re=re.substring(0,Q));var me=Math.min(Q,J);if(j==re)return me;for(var ce=0,be=1;;){var ue=j.substring(me-be),Se=re.indexOf(ue);if(Se==-1)return ce;be+=Se,(Se==0||j.substring(me-be)==re.substring(0,be))&&(ce=be,be++)}}function m(j,re){if(!j||!re||j.slice(-1)!==re.slice(-1))return 0;for(var Q=0,J=Math.min(j.length,re.length),me=J,ce=0;Q<me;)j.substring(j.length-me,j.length-ce)==re.substring(re.length-me,re.length-ce)?(Q=me,ce=Q):J=me,me=Math.floor((J-Q)/2+Q);return H(j.charCodeAt(j.length-me))&&me--,me}function R(j,re){var Q=j.length>re.length?j:re,J=j.length>re.length?re:j;if(Q.length<4||J.length*2<Q.length)return null;function me(Qe,pe,Ie){for(var Xe=Qe.substring(Ie,Ie+Math.floor(Qe.length/4)),tt=-1,Ge="",Me,Ee,we,Ue;(tt=pe.indexOf(Xe,tt+1))!==-1;){var ct=f(Qe.substring(Ie),pe.substring(tt)),Ne=m(Qe.substring(0,Ie),pe.substring(0,tt));Ge.length<Ne+ct&&(Ge=pe.substring(tt-Ne,tt)+pe.substring(tt,tt+ct),Me=Qe.substring(0,Ie-Ne),Ee=Qe.substring(Ie+ct),we=pe.substring(0,tt-Ne),Ue=pe.substring(tt+ct))}return Ge.length*2>=Qe.length?[Me,Ee,we,Ue,Ge]:null}var ce=me(Q,J,Math.ceil(Q.length/4)),be=me(Q,J,Math.ceil(Q.length/2)),ue;if(!ce&&!be)return null;be?ce?ue=ce[4].length>be[4].length?ce:be:ue=be:ue=ce;var Se,le,ae,ge;j.length>re.length?(Se=ue[0],le=ue[1],ae=ue[2],ge=ue[3]):(ae=ue[0],ge=ue[1],Se=ue[2],le=ue[3]);var Pe=ue[4];return[Se,le,ae,ge,Pe]}function E(j){for(var re=!1,Q=[],J=0,me=null,ce=0,be=0,ue=0,Se=0,le=0;ce<j.length;)j[ce][0]==t?(Q[J++]=ce,be=Se,ue=le,Se=0,le=0,me=j[ce][1]):(j[ce][0]==e?Se+=j[ce][1].length:le+=j[ce][1].length,me&&me.length<=Math.max(be,ue)&&me.length<=Math.max(Se,le)&&(j.splice(Q[J-1],0,[r,me]),j[Q[J-1]+1][0]=e,J--,J--,ce=J>0?Q[J-1]:-1,be=0,ue=0,Se=0,le=0,me=null,re=!0)),ce++;for(re&&I(j),b(j),ce=1;ce<j.length;){if(j[ce-1][0]==r&&j[ce][0]==e){var ae=j[ce-1][1],ge=j[ce][1],Pe=g(ae,ge),Qe=g(ge,ae);Pe>=Qe?(Pe>=ae.length/2||Pe>=ge.length/2)&&(j.splice(ce,0,[t,ge.substring(0,Pe)]),j[ce-1][1]=ae.substring(0,ae.length-Pe),j[ce+1][1]=ge.substring(Pe),ce++):(Qe>=ae.length/2||Qe>=ge.length/2)&&(j.splice(ce,0,[t,ae.substring(0,Qe)]),j[ce-1][0]=e,j[ce-1][1]=ge.substring(0,ge.length-Qe),j[ce+1][0]=r,j[ce+1][1]=ae.substring(Qe),ce++),ce++}ce++}}var _=/[^a-zA-Z0-9]/,S=/\s/,x=/[\r\n]/,M=/\n\r?\n$/,w=/^\r?\n\r?\n/;function b(j){function re(Qe,pe){if(!Qe||!pe)return 6;var Ie=Qe.charAt(Qe.length-1),Xe=pe.charAt(0),tt=Ie.match(_),Ge=Xe.match(_),Me=tt&&Ie.match(S),Ee=Ge&&Xe.match(S),we=Me&&Ie.match(x),Ue=Ee&&Xe.match(x),ct=we&&Qe.match(M),Ne=Ue&&pe.match(w);return ct||Ne?5:we||Ue?4:tt&&!Me&&Ee?3:Me||Ee?2:tt||Ge?1:0}for(var Q=1;Q<j.length-1;){if(j[Q-1][0]==t&&j[Q+1][0]==t){var J=j[Q-1][1],me=j[Q][1],ce=j[Q+1][1],be=m(J,me);if(be){var ue=me.substring(me.length-be);J=J.substring(0,J.length-be),me=ue+me.substring(0,me.length-be),ce=ue+ce}for(var Se=J,le=me,ae=ce,ge=re(J,me)+re(me,ce);me.charAt(0)===ce.charAt(0);){J+=me.charAt(0),me=me.substring(1)+ce.charAt(0),ce=ce.substring(1);var Pe=re(J,me)+re(me,ce);Pe>=ge&&(ge=Pe,Se=J,le=me,ae=ce)}j[Q-1][1]!=Se&&(Se?j[Q-1][1]=Se:(j.splice(Q-1,1),Q--),j[Q][1]=le,ae?j[Q+1][1]=ae:(j.splice(Q+1,1),Q--))}Q++}}function I(j,re){j.push([t,""]);for(var Q=0,J=0,me=0,ce="",be="",ue;Q<j.length;){if(Q<j.length-1&&!j[Q][1]){j.splice(Q,1);continue}switch(j[Q][0]){case e:me++,be+=j[Q][1],Q++;break;case r:J++,ce+=j[Q][1],Q++;break;case t:var Se=Q-me-J-1;if(re){if(Se>=0&&z(j[Se][1])){var le=j[Se][1].slice(-1);if(j[Se][1]=j[Se][1].slice(0,-1),ce=le+ce,be=le+be,!j[Se][1]){j.splice(Se,1),Q--;var ae=Se-1;j[ae]&&j[ae][0]===e&&(me++,be=j[ae][1]+be,ae--),j[ae]&&j[ae][0]===r&&(J++,ce=j[ae][1]+ce,ae--),Se=ae}}if(q(j[Q][1])){var le=j[Q][1].charAt(0);j[Q][1]=j[Q][1].slice(1),ce+=le,be+=le}}if(Q<j.length-1&&!j[Q][1]){j.splice(Q,1);break}if(ce.length>0||be.length>0){ce.length>0&&be.length>0&&(ue=f(be,ce),ue!==0&&(Se>=0?j[Se][1]+=be.substring(0,ue):(j.splice(0,0,[t,be.substring(0,ue)]),Q++),be=be.substring(ue),ce=ce.substring(ue)),ue=m(be,ce),ue!==0&&(j[Q][1]=be.substring(be.length-ue)+j[Q][1],be=be.substring(0,be.length-ue),ce=ce.substring(0,ce.length-ue)));var ge=me+J;ce.length===0&&be.length===0?(j.splice(Q-ge,ge),Q=Q-ge):ce.length===0?(j.splice(Q-ge,ge,[e,be]),Q=Q-ge+1):be.length===0?(j.splice(Q-ge,ge,[r,ce]),Q=Q-ge+1):(j.splice(Q-ge,ge,[r,ce],[e,be]),Q=Q-ge+2)}Q!==0&&j[Q-1][0]===t?(j[Q-1][1]+=j[Q][1],j.splice(Q,1)):Q++,me=0,J=0,ce="",be="";break}}j[j.length-1][1]===""&&j.pop();var Pe=!1;for(Q=1;Q<j.length-1;)j[Q-1][0]===t&&j[Q+1][0]===t&&(j[Q][1].substring(j[Q][1].length-j[Q-1][1].length)===j[Q-1][1]?(j[Q][1]=j[Q-1][1]+j[Q][1].substring(0,j[Q][1].length-j[Q-1][1].length),j[Q+1][1]=j[Q-1][1]+j[Q+1][1],j.splice(Q-1,1),Pe=!0):j[Q][1].substring(0,j[Q+1][1].length)==j[Q+1][1]&&(j[Q-1][1]+=j[Q+1][1],j[Q][1]=j[Q][1].substring(j[Q+1][1].length)+j[Q+1][1],j.splice(Q+1,1),Pe=!0)),Q++;Pe&&I(j,re)}function O(j){return j>=55296&&j<=56319}function H(j){return j>=56320&&j<=57343}function q(j){return H(j.charCodeAt(0))}function z(j){return O(j.charCodeAt(j.length-1))}function Y(j){for(var re=[],Q=0;Q<j.length;Q++)j[Q][1].length>0&&re.push(j[Q]);return re}function fe(j,re,Q,J){return z(j)||q(J)?null:Y([[t,j],[r,re],[e,Q],[t,J]])}function X(j,re,Q){var J=typeof Q=="number"?{index:Q,length:0}:Q.oldRange,me=typeof Q=="number"?null:Q.newRange,ce=j.length,be=re.length;if(J.length===0&&(me===null||me.length===0)){var ue=J.index,Se=j.slice(0,ue),le=j.slice(ue),ae=me?me.index:null;e:{var ge=ue+be-ce;if(ae!==null&&ae!==ge||ge<0||ge>be)break e;var Pe=re.slice(0,ge),Qe=re.slice(ge);if(Qe!==le)break e;var pe=Math.min(ue,ge),Ie=Se.slice(0,pe),Xe=Pe.slice(0,pe);if(Ie!==Xe)break e;var tt=Se.slice(pe),Ge=Pe.slice(pe);return fe(Ie,tt,Ge,le)}e:{if(ae!==null&&ae!==ue)break e;var Me=ue,Pe=re.slice(0,Me),Qe=re.slice(Me);if(Pe!==Se)break e;var Ee=Math.min(ce-Me,be-Me),we=le.slice(le.length-Ee),Ue=Qe.slice(Qe.length-Ee);if(we!==Ue)break e;var tt=le.slice(0,le.length-Ee),Ge=Qe.slice(0,Qe.length-Ee);return fe(Se,tt,Ge,we)}}if(J.length>0&&me&&me.length===0)e:{var Ie=j.slice(0,J.index),we=j.slice(J.index+J.length),pe=Ie.length,Ee=we.length;if(be<pe+Ee)break e;var Xe=re.slice(0,pe),Ue=re.slice(be-Ee);if(Ie!==Xe||we!==Ue)break e;var tt=j.slice(pe,ce-Ee),Ge=re.slice(pe,be-Ee);return fe(Ie,tt,Ge,we)}return null}function he(j,re,Q,J){return n(j,re,Q,J,!0)}return he.INSERT=e,he.DELETE=r,he.EQUAL=t,np=he,np}var jf={exports:{}};jf.exports;var N0;function Tx(){return N0||(N0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object Boolean]",g="[object Date]",m="[object Error]",R="[object Function]",E="[object GeneratorFunction]",_="[object Map]",S="[object Number]",x="[object Object]",M="[object Promise]",w="[object RegExp]",b="[object Set]",I="[object String]",O="[object Symbol]",H="[object WeakMap]",q="[object ArrayBuffer]",z="[object DataView]",Y="[object Float32Array]",fe="[object Float64Array]",X="[object Int8Array]",he="[object Int16Array]",j="[object Int32Array]",re="[object Uint8Array]",Q="[object Uint8ClampedArray]",J="[object Uint16Array]",me="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,be=/\w*$/,ue=/^\[object .+?Constructor\]$/,Se=/^(?:0|[1-9]\d*)$/,le={};le[l]=le[u]=le[q]=le[z]=le[f]=le[g]=le[Y]=le[fe]=le[X]=le[he]=le[j]=le[_]=le[S]=le[x]=le[w]=le[b]=le[I]=le[O]=le[re]=le[Q]=le[J]=le[me]=!0,le[m]=le[R]=le[H]=!1;var ae=typeof bi=="object"&&bi&&bi.Object===Object&&bi,ge=typeof self=="object"&&self&&self.Object===Object&&self,Pe=ae||ge||Function("return this")(),Qe=e&&!e.nodeType&&e,pe=Qe&&!0&&r&&!r.nodeType&&r,Ie=pe&&pe.exports===Qe;function Xe(L,Z){return L.set(Z[0],Z[1]),L}function tt(L,Z){return L.add(Z),L}function Ge(L,Z){for(var se=-1,He=L?L.length:0;++se<He&&Z(L[se],se,L)!==!1;);return L}function Me(L,Z){for(var se=-1,He=Z.length,Yt=L.length;++se<He;)L[Yt+se]=Z[se];return L}function Ee(L,Z,se,He){for(var Yt=-1,Vt=L?L.length:0;++Yt<Vt;)se=Z(se,L[Yt],Yt,L);return se}function we(L,Z){for(var se=-1,He=Array(L);++se<L;)He[se]=Z(se);return He}function Ue(L,Z){return L==null?void 0:L[Z]}function ct(L){var Z=!1;if(L!=null&&typeof L.toString!="function")try{Z=!!(L+"")}catch{}return Z}function Ne(L){var Z=-1,se=Array(L.size);return L.forEach(function(He,Yt){se[++Z]=[Yt,He]}),se}function bt(L,Z){return function(se){return L(Z(se))}}function Le(L){var Z=-1,se=Array(L.size);return L.forEach(function(He){se[++Z]=He}),se}var Ze=Array.prototype,ot=Function.prototype,Ct=Object.prototype,_t=Pe["__core-js_shared__"],wt=function(){var L=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),xt=ot.toString,it=Ct.hasOwnProperty,je=Ct.toString,yt=RegExp("^"+xt.call(it).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),st=Ie?Pe.Buffer:void 0,Rt=Pe.Symbol,Bt=Pe.Uint8Array,ze=bt(Object.getPrototypeOf,Object),Tt=Object.create,Ht=Ct.propertyIsEnumerable,_r=Ze.splice,kr=Object.getOwnPropertySymbols,Cr=st?st.isBuffer:void 0,ve=bt(Object.keys,Object),ne=Mt(Pe,"DataView"),Je=Mt(Pe,"Map"),pt=Mt(Pe,"Promise"),$e=Mt(Pe,"Set"),De=Mt(Pe,"WeakMap"),St=Mt(Object,"create"),Et=Xr(ne),ut=Xr(Je),Nt=Xr(pt),Qt=Xr($e),rr=Xr(De),Ft=Rt?Rt.prototype:void 0,zt=Ft?Ft.valueOf:void 0;function nr(L){var Z=-1,se=L?L.length:0;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function et(){this.__data__=St?St(null):{}}function At(L){return this.has(L)&&delete this.__data__[L]}function vt(L){var Z=this.__data__;if(St){var se=Z[L];return se===n?void 0:se}return it.call(Z,L)?Z[L]:void 0}function It(L){var Z=this.__data__;return St?Z[L]!==void 0:it.call(Z,L)}function pr(L,Z){var se=this.__data__;return se[L]=St&&Z===void 0?n:Z,this}nr.prototype.clear=et,nr.prototype.delete=At,nr.prototype.get=vt,nr.prototype.has=It,nr.prototype.set=pr;function $(L){var Z=-1,se=L?L.length:0;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function _e(){this.__data__=[]}function Ke(L){var Z=this.__data__,se=Jn(Z,L);if(se<0)return!1;var He=Z.length-1;return se==He?Z.pop():_r.call(Z,se,1),!0}function mt(L){var Z=this.__data__,se=Jn(Z,L);return se<0?void 0:Z[se][1]}function Pt(L){return Jn(this.__data__,L)>-1}function Wt(L,Z){var se=this.__data__,He=Jn(se,L);return He<0?se.push([L,Z]):se[He][1]=Z,this}$.prototype.clear=_e,$.prototype.delete=Ke,$.prototype.get=mt,$.prototype.has=Pt,$.prototype.set=Wt;function Lt(L){var Z=-1,se=L?L.length:0;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function $t(){this.__data__={hash:new nr,map:new(Je||$),string:new nr}}function ir(L){return at(this,L).delete(L)}function or(L){return at(this,L).get(L)}function fr(L){return at(this,L).has(L)}function Ur(L,Z){return at(this,L).set(L,Z),this}Lt.prototype.clear=$t,Lt.prototype.delete=ir,Lt.prototype.get=or,Lt.prototype.has=fr,Lt.prototype.set=Ur;function vr(L){this.__data__=new $(L)}function Kn(){this.__data__=new $}function Cn(L){return this.__data__.delete(L)}function Dn(L){return this.__data__.get(L)}function Yr(L){return this.__data__.has(L)}function Yn(L,Z){var se=this.__data__;if(se instanceof $){var He=se.__data__;if(!Je||He.length<t-1)return He.push([L,Z]),this;se=this.__data__=new Lt(He)}return se.set(L,Z),this}vr.prototype.clear=Kn,vr.prototype.delete=Cn,vr.prototype.get=Dn,vr.prototype.has=Yr,vr.prototype.set=Yn;function En(L,Z){var se=bo(L)||ei(L)?we(L.length,String):[],He=se.length,Yt=!!He;for(var Vt in L)it.call(L,Vt)&&!(Yt&&(Vt=="length"||yn(Vt,He)))&&se.push(Vt);return se}function Xn(L,Z,se){var He=L[Z];(!(it.call(L,Z)&&Hn(He,se))||se===void 0&&!(Z in L))&&(L[Z]=se)}function Jn(L,Z){for(var se=L.length;se--;)if(Hn(L[se][0],Z))return se;return-1}function on(L,Z){return L&&ke(Z,Or(Z),L)}function On(L,Z,se,He,Yt,Vt,gr){var Sr;if(He&&(Sr=Vt?He(L,Yt,Vt,gr):He(L)),Sr!==void 0)return Sr;if(!ri(L))return L;var dr=bo(L);if(dr){if(Sr=xr(L),!Z)return ee(L,Sr)}else{var Ar=jt(L),Jr=Ar==R||Ar==E;if(Rn(L))return An(L,Z);if(Ar==x||Ar==l||Jr&&!Vt){if(ct(L))return Vt?L:{};if(Sr=Zr(Jr?{}:L),!Z)return Ce(L,on(Sr,L))}else{if(!le[Ar])return Vt?L:{};Sr=vn(L,Ar,On,Z)}}gr||(gr=new vr);var In=gr.get(L);if(In)return In;if(gr.set(L,Sr),!dr)var Vr=se?Be(L):Or(L);return Ge(Vr||L,function(Br,Qr){Vr&&(Qr=Br,Br=L[Qr]),Xn(Sr,Qr,On(Br,Z,se,He,Qr,L,gr))}),Sr}function wn(L){return ri(L)?Tt(L):{}}function hi(L,Z,se){var He=Z(L);return bo(L)?He:Me(He,se(L))}function Si(L){return je.call(L)}function Ci(L){if(!ri(L)||Bn(L))return!1;var Z=_o(L)||ct(L)?yt:ue;return Z.test(Xr(L))}function kn(L){if(!wi(L))return ve(L);var Z=[];for(var se in Object(L))it.call(L,se)&&se!="constructor"&&Z.push(se);return Z}function An(L,Z){if(Z)return L.slice();var se=new L.constructor(L.length);return L.copy(se),se}function un(L){var Z=new L.constructor(L.byteLength);return new Bt(Z).set(new Bt(L)),Z}function Qn(L,Z){var se=Z?un(L.buffer):L.buffer;return new L.constructor(se,L.byteOffset,L.byteLength)}function sn(L,Z,se){var He=Z?se(Ne(L),!0):Ne(L);return Ee(He,Xe,new L.constructor)}function pn(L){var Z=new L.constructor(L.source,be.exec(L));return Z.lastIndex=L.lastIndex,Z}function C(L,Z,se){var He=Z?se(Le(L),!0):Le(L);return Ee(He,tt,new L.constructor)}function N(L){return zt?Object(zt.call(L)):{}}function G(L,Z){var se=Z?un(L.buffer):L.buffer;return new L.constructor(se,L.byteOffset,L.length)}function ee(L,Z){var se=-1,He=L.length;for(Z||(Z=Array(He));++se<He;)Z[se]=L[se];return Z}function ke(L,Z,se,He){se||(se={});for(var Yt=-1,Vt=Z.length;++Yt<Vt;){var gr=Z[Yt],Sr=void 0;Xn(se,gr,Sr===void 0?L[gr]:Sr)}return se}function Ce(L,Z){return ke(L,qt(L),Z)}function Be(L){return hi(L,Or,qt)}function at(L,Z){var se=L.__data__;return li(Z)?se[typeof Z=="string"?"string":"hash"]:se.map}function Mt(L,Z){var se=Ue(L,Z);return Ci(se)?se:void 0}var qt=kr?bt(kr,Object):wr,jt=Si;(ne&&jt(new ne(new ArrayBuffer(1)))!=z||Je&&jt(new Je)!=_||pt&&jt(pt.resolve())!=M||$e&&jt(new $e)!=b||De&&jt(new De)!=H)&&(jt=function(L){var Z=je.call(L),se=Z==x?L.constructor:void 0,He=se?Xr(se):void 0;if(He)switch(He){case Et:return z;case ut:return _;case Nt:return M;case Qt:return b;case rr:return H}return Z});function xr(L){var Z=L.length,se=L.constructor(Z);return Z&&typeof L[0]=="string"&&it.call(L,"index")&&(se.index=L.index,se.input=L.input),se}function Zr(L){return typeof L.constructor=="function"&&!wi(L)?wn(ze(L)):{}}function vn(L,Z,se,He){var Yt=L.constructor;switch(Z){case q:return un(L);case f:case g:return new Yt(+L);case z:return Qn(L,He);case Y:case fe:case X:case he:case j:case re:case Q:case J:case me:return G(L,He);case _:return sn(L,He,se);case S:case I:return new Yt(L);case w:return pn(L);case b:return C(L,He,se);case O:return N(L)}}function yn(L,Z){return Z=Z??i,!!Z&&(typeof L=="number"||Se.test(L))&&L>-1&&L%1==0&&L<Z}function li(L){var Z=typeof L;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?L!=="__proto__":L===null}function Bn(L){return!!wt&&wt in L}function wi(L){var Z=L&&L.constructor,se=typeof Z=="function"&&Z.prototype||Ct;return L===se}function Xr(L){if(L!=null){try{return xt.call(L)}catch{}try{return L+""}catch{}}return""}function pi(L){return On(L,!0,!0)}function Hn(L,Z){return L===Z||L!==L&&Z!==Z}function ei(L){return no(L)&&it.call(L,"callee")&&(!Ht.call(L,"callee")||je.call(L)==l)}var bo=Array.isArray;function ro(L){return L!=null&&ti(L.length)&&!_o(L)}function no(L){return $i(L)&&ro(L)}var Rn=Cr||Mr;function _o(L){var Z=ri(L)?je.call(L):"";return Z==R||Z==E}function ti(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=i}function ri(L){var Z=typeof L;return!!L&&(Z=="object"||Z=="function")}function $i(L){return!!L&&typeof L=="object"}function Or(L){return ro(L)?En(L):kn(L)}function wr(){return[]}function Mr(){return!1}r.exports=pi}(jf,jf.exports)),jf.exports}var Bf={exports:{}};Bf.exports;var F0;function Ex(){return F0||(F0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=1,l=2,u=9007199254740991,f="[object Arguments]",g="[object Array]",m="[object AsyncFunction]",R="[object Boolean]",E="[object Date]",_="[object Error]",S="[object Function]",x="[object GeneratorFunction]",M="[object Map]",w="[object Number]",b="[object Null]",I="[object Object]",O="[object Promise]",H="[object Proxy]",q="[object RegExp]",z="[object Set]",Y="[object String]",fe="[object Symbol]",X="[object Undefined]",he="[object WeakMap]",j="[object ArrayBuffer]",re="[object DataView]",Q="[object Float32Array]",J="[object Float64Array]",me="[object Int8Array]",ce="[object Int16Array]",be="[object Int32Array]",ue="[object Uint8Array]",Se="[object Uint8ClampedArray]",le="[object Uint16Array]",ae="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,Pe=/^\[object .+?Constructor\]$/,Qe=/^(?:0|[1-9]\d*)$/,pe={};pe[Q]=pe[J]=pe[me]=pe[ce]=pe[be]=pe[ue]=pe[Se]=pe[le]=pe[ae]=!0,pe[f]=pe[g]=pe[j]=pe[R]=pe[re]=pe[E]=pe[_]=pe[S]=pe[M]=pe[w]=pe[I]=pe[q]=pe[z]=pe[Y]=pe[he]=!1;var Ie=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Xe=typeof self=="object"&&self&&self.Object===Object&&self,tt=Ie||Xe||Function("return this")(),Ge=e&&!e.nodeType&&e,Me=Ge&&!0&&r&&!r.nodeType&&r,Ee=Me&&Me.exports===Ge,we=Ee&&Ie.process,Ue=function(){try{return we&&we.binding&&we.binding("util")}catch{}}(),ct=Ue&&Ue.isTypedArray;function Ne(L,Z){for(var se=-1,He=L==null?0:L.length,Yt=0,Vt=[];++se<He;){var gr=L[se];Z(gr,se,L)&&(Vt[Yt++]=gr)}return Vt}function bt(L,Z){for(var se=-1,He=Z.length,Yt=L.length;++se<He;)L[Yt+se]=Z[se];return L}function Le(L,Z){for(var se=-1,He=L==null?0:L.length;++se<He;)if(Z(L[se],se,L))return!0;return!1}function Ze(L,Z){for(var se=-1,He=Array(L);++se<L;)He[se]=Z(se);return He}function ot(L){return function(Z){return L(Z)}}function Ct(L,Z){return L.has(Z)}function _t(L,Z){return L==null?void 0:L[Z]}function wt(L){var Z=-1,se=Array(L.size);return L.forEach(function(He,Yt){se[++Z]=[Yt,He]}),se}function xt(L,Z){return function(se){return L(Z(se))}}function it(L){var Z=-1,se=Array(L.size);return L.forEach(function(He){se[++Z]=He}),se}var je=Array.prototype,yt=Function.prototype,st=Object.prototype,Rt=tt["__core-js_shared__"],Bt=yt.toString,ze=st.hasOwnProperty,Tt=function(){var L=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),Ht=st.toString,_r=RegExp("^"+Bt.call(ze).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kr=Ee?tt.Buffer:void 0,Cr=tt.Symbol,ve=tt.Uint8Array,ne=st.propertyIsEnumerable,Je=je.splice,pt=Cr?Cr.toStringTag:void 0,$e=Object.getOwnPropertySymbols,De=kr?kr.isBuffer:void 0,St=xt(Object.keys,Object),Et=qt(tt,"DataView"),ut=qt(tt,"Map"),Nt=qt(tt,"Promise"),Qt=qt(tt,"Set"),rr=qt(tt,"WeakMap"),Ft=qt(Object,"create"),zt=Xr(Et),nr=Xr(ut),et=Xr(Nt),At=Xr(Qt),vt=Xr(rr),It=Cr?Cr.prototype:void 0,pr=It?It.valueOf:void 0;function $(L){var Z=-1,se=L==null?0:L.length;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function _e(){this.__data__=Ft?Ft(null):{},this.size=0}function Ke(L){var Z=this.has(L)&&delete this.__data__[L];return this.size-=Z?1:0,Z}function mt(L){var Z=this.__data__;if(Ft){var se=Z[L];return se===n?void 0:se}return ze.call(Z,L)?Z[L]:void 0}function Pt(L){var Z=this.__data__;return Ft?Z[L]!==void 0:ze.call(Z,L)}function Wt(L,Z){var se=this.__data__;return this.size+=this.has(L)?0:1,se[L]=Ft&&Z===void 0?n:Z,this}$.prototype.clear=_e,$.prototype.delete=Ke,$.prototype.get=mt,$.prototype.has=Pt,$.prototype.set=Wt;function Lt(L){var Z=-1,se=L==null?0:L.length;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function $t(){this.__data__=[],this.size=0}function ir(L){var Z=this.__data__,se=An(Z,L);if(se<0)return!1;var He=Z.length-1;return se==He?Z.pop():Je.call(Z,se,1),--this.size,!0}function or(L){var Z=this.__data__,se=An(Z,L);return se<0?void 0:Z[se][1]}function fr(L){return An(this.__data__,L)>-1}function Ur(L,Z){var se=this.__data__,He=An(se,L);return He<0?(++this.size,se.push([L,Z])):se[He][1]=Z,this}Lt.prototype.clear=$t,Lt.prototype.delete=ir,Lt.prototype.get=or,Lt.prototype.has=fr,Lt.prototype.set=Ur;function vr(L){var Z=-1,se=L==null?0:L.length;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function Kn(){this.size=0,this.__data__={hash:new $,map:new(ut||Lt),string:new $}}function Cn(L){var Z=Mt(this,L).delete(L);return this.size-=Z?1:0,Z}function Dn(L){return Mt(this,L).get(L)}function Yr(L){return Mt(this,L).has(L)}function Yn(L,Z){var se=Mt(this,L),He=se.size;return se.set(L,Z),this.size+=se.size==He?0:1,this}vr.prototype.clear=Kn,vr.prototype.delete=Cn,vr.prototype.get=Dn,vr.prototype.has=Yr,vr.prototype.set=Yn;function En(L){var Z=-1,se=L==null?0:L.length;for(this.__data__=new vr;++Z<se;)this.add(L[Z])}function Xn(L){return this.__data__.set(L,n),this}function Jn(L){return this.__data__.has(L)}En.prototype.add=En.prototype.push=Xn,En.prototype.has=Jn;function on(L){var Z=this.__data__=new Lt(L);this.size=Z.size}function On(){this.__data__=new Lt,this.size=0}function wn(L){var Z=this.__data__,se=Z.delete(L);return this.size=Z.size,se}function hi(L){return this.__data__.get(L)}function Si(L){return this.__data__.has(L)}function Ci(L,Z){var se=this.__data__;if(se instanceof Lt){var He=se.__data__;if(!ut||He.length<t-1)return He.push([L,Z]),this.size=++se.size,this;se=this.__data__=new vr(He)}return se.set(L,Z),this.size=se.size,this}on.prototype.clear=On,on.prototype.delete=wn,on.prototype.get=hi,on.prototype.has=Si,on.prototype.set=Ci;function kn(L,Z){var se=ei(L),He=!se&&Hn(L),Yt=!se&&!He&&ro(L),Vt=!se&&!He&&!Yt&&$i(L),gr=se||He||Yt||Vt,Sr=gr?Ze(L.length,String):[],dr=Sr.length;for(var Ar in L)ze.call(L,Ar)&&!(gr&&(Ar=="length"||Yt&&(Ar=="offset"||Ar=="parent")||Vt&&(Ar=="buffer"||Ar=="byteLength"||Ar=="byteOffset")||vn(Ar,dr)))&&Sr.push(Ar);return Sr}function An(L,Z){for(var se=L.length;se--;)if(pi(L[se][0],Z))return se;return-1}function un(L,Z,se){var He=Z(L);return ei(L)?He:bt(He,se(L))}function Qn(L){return L==null?L===void 0?X:b:pt&&pt in Object(L)?jt(L):wi(L)}function sn(L){return ri(L)&&Qn(L)==f}function pn(L,Z,se,He,Yt){return L===Z?!0:L==null||Z==null||!ri(L)&&!ri(Z)?L!==L&&Z!==Z:C(L,Z,se,He,pn,Yt)}function C(L,Z,se,He,Yt,Vt){var gr=ei(L),Sr=ei(Z),dr=gr?g:Zr(L),Ar=Sr?g:Zr(Z);dr=dr==f?I:dr,Ar=Ar==f?I:Ar;var Jr=dr==I,In=Ar==I,Vr=dr==Ar;if(Vr&&ro(L)){if(!ro(Z))return!1;gr=!0,Jr=!1}if(Vr&&!Jr)return Vt||(Vt=new on),gr||$i(L)?ke(L,Z,se,He,Yt,Vt):Ce(L,Z,dr,se,He,Yt,Vt);if(!(se&i)){var Br=Jr&&ze.call(L,"__wrapped__"),Qr=In&&ze.call(Z,"__wrapped__");if(Br||Qr){var ci=Br?L.value():L,gi=Qr?Z.value():Z;return Vt||(Vt=new on),Yt(ci,gi,se,He,Vt)}}return Vr?(Vt||(Vt=new on),Be(L,Z,se,He,Yt,Vt)):!1}function N(L){if(!ti(L)||li(L))return!1;var Z=Rn(L)?_r:Pe;return Z.test(Xr(L))}function G(L){return ri(L)&&_o(L.length)&&!!pe[Qn(L)]}function ee(L){if(!Bn(L))return St(L);var Z=[];for(var se in Object(L))ze.call(L,se)&&se!="constructor"&&Z.push(se);return Z}function ke(L,Z,se,He,Yt,Vt){var gr=se&i,Sr=L.length,dr=Z.length;if(Sr!=dr&&!(gr&&dr>Sr))return!1;var Ar=Vt.get(L);if(Ar&&Vt.get(Z))return Ar==Z;var Jr=-1,In=!0,Vr=se&l?new En:void 0;for(Vt.set(L,Z),Vt.set(Z,L);++Jr<Sr;){var Br=L[Jr],Qr=Z[Jr];if(He)var ci=gr?He(Qr,Br,Jr,Z,L,Vt):He(Br,Qr,Jr,L,Z,Vt);if(ci!==void 0){if(ci)continue;In=!1;break}if(Vr){if(!Le(Z,function(gi,qn){if(!Ct(Vr,qn)&&(Br===gi||Yt(Br,gi,se,He,Vt)))return Vr.push(qn)})){In=!1;break}}else if(!(Br===Qr||Yt(Br,Qr,se,He,Vt))){In=!1;break}}return Vt.delete(L),Vt.delete(Z),In}function Ce(L,Z,se,He,Yt,Vt,gr){switch(se){case re:if(L.byteLength!=Z.byteLength||L.byteOffset!=Z.byteOffset)return!1;L=L.buffer,Z=Z.buffer;case j:return!(L.byteLength!=Z.byteLength||!Vt(new ve(L),new ve(Z)));case R:case E:case w:return pi(+L,+Z);case _:return L.name==Z.name&&L.message==Z.message;case q:case Y:return L==Z+"";case M:var Sr=wt;case z:var dr=He&i;if(Sr||(Sr=it),L.size!=Z.size&&!dr)return!1;var Ar=gr.get(L);if(Ar)return Ar==Z;He|=l,gr.set(L,Z);var Jr=ke(Sr(L),Sr(Z),He,Yt,Vt,gr);return gr.delete(L),Jr;case fe:if(pr)return pr.call(L)==pr.call(Z)}return!1}function Be(L,Z,se,He,Yt,Vt){var gr=se&i,Sr=at(L),dr=Sr.length,Ar=at(Z),Jr=Ar.length;if(dr!=Jr&&!gr)return!1;for(var In=dr;In--;){var Vr=Sr[In];if(!(gr?Vr in Z:ze.call(Z,Vr)))return!1}var Br=Vt.get(L);if(Br&&Vt.get(Z))return Br==Z;var Qr=!0;Vt.set(L,Z),Vt.set(Z,L);for(var ci=gr;++In<dr;){Vr=Sr[In];var gi=L[Vr],qn=Z[Vr];if(He)var xo=gr?He(qn,gi,Vr,Z,L,Vt):He(gi,qn,Vr,L,Z,Vt);if(!(xo===void 0?gi===qn||Yt(gi,qn,se,He,Vt):xo)){Qr=!1;break}ci||(ci=Vr=="constructor")}if(Qr&&!ci){var Ui=L.constructor,an=Z.constructor;Ui!=an&&"constructor"in L&&"constructor"in Z&&!(typeof Ui=="function"&&Ui instanceof Ui&&typeof an=="function"&&an instanceof an)&&(Qr=!1)}return Vt.delete(L),Vt.delete(Z),Qr}function at(L){return un(L,Or,xr)}function Mt(L,Z){var se=L.__data__;return yn(Z)?se[typeof Z=="string"?"string":"hash"]:se.map}function qt(L,Z){var se=_t(L,Z);return N(se)?se:void 0}function jt(L){var Z=ze.call(L,pt),se=L[pt];try{L[pt]=void 0;var He=!0}catch{}var Yt=Ht.call(L);return He&&(Z?L[pt]=se:delete L[pt]),Yt}var xr=$e?function(L){return L==null?[]:(L=Object(L),Ne($e(L),function(Z){return ne.call(L,Z)}))}:wr,Zr=Qn;(Et&&Zr(new Et(new ArrayBuffer(1)))!=re||ut&&Zr(new ut)!=M||Nt&&Zr(Nt.resolve())!=O||Qt&&Zr(new Qt)!=z||rr&&Zr(new rr)!=he)&&(Zr=function(L){var Z=Qn(L),se=Z==I?L.constructor:void 0,He=se?Xr(se):"";if(He)switch(He){case zt:return re;case nr:return M;case et:return O;case At:return z;case vt:return he}return Z});function vn(L,Z){return Z=Z??u,!!Z&&(typeof L=="number"||Qe.test(L))&&L>-1&&L%1==0&&L<Z}function yn(L){var Z=typeof L;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?L!=="__proto__":L===null}function li(L){return!!Tt&&Tt in L}function Bn(L){var Z=L&&L.constructor,se=typeof Z=="function"&&Z.prototype||st;return L===se}function wi(L){return Ht.call(L)}function Xr(L){if(L!=null){try{return Bt.call(L)}catch{}try{return L+""}catch{}}return""}function pi(L,Z){return L===Z||L!==L&&Z!==Z}var Hn=sn(function(){return arguments}())?sn:function(L){return ri(L)&&ze.call(L,"callee")&&!ne.call(L,"callee")},ei=Array.isArray;function bo(L){return L!=null&&_o(L.length)&&!Rn(L)}var ro=De||Mr;function no(L,Z){return pn(L,Z)}function Rn(L){if(!ti(L))return!1;var Z=Qn(L);return Z==S||Z==x||Z==m||Z==H}function _o(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=u}function ti(L){var Z=typeof L;return L!=null&&(Z=="object"||Z=="function")}function ri(L){return L!=null&&typeof L=="object"}var $i=ct?ot(ct):G;function Or(L){return bo(L)?kn(L):ee(L)}function wr(){return[]}function Mr(){return!1}r.exports=no}(Bf,Bf.exports)),Bf.exports}var Pd={},j0;function gM(){if(j0)return Pd;j0=1,Object.defineProperty(Pd,"__esModule",{value:!0});const r=Tx(),e=Ex();var t;return function(n){function i(g={},m={},R=!1){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});let E=r(m);R||(E=Object.keys(E).reduce((_,S)=>(E[S]!=null&&(_[S]=E[S]),_),{}));for(const _ in g)g[_]!==void 0&&m[_]===void 0&&(E[_]=g[_]);return Object.keys(E).length>0?E:void 0}n.compose=i;function l(g={},m={}){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});const R=Object.keys(g).concat(Object.keys(m)).reduce((E,_)=>(e(g[_],m[_])||(E[_]=m[_]===void 0?null:m[_]),E),{});return Object.keys(R).length>0?R:void 0}n.diff=l;function u(g={},m={}){g=g||{};const R=Object.keys(m).reduce((E,_)=>(m[_]!==g[_]&&g[_]!==void 0&&(E[_]=m[_]),E),{});return Object.keys(g).reduce((E,_)=>(g[_]!==m[_]&&m[_]===void 0&&(E[_]=null),E),R)}n.invert=u;function f(g,m,R=!1){if(typeof g!="object")return m;if(typeof m!="object")return;if(!R)return m;const E=Object.keys(m).reduce((_,S)=>(g[S]===void 0&&(_[S]=m[S]),_),{});return Object.keys(E).length>0?E:void 0}n.transform=f}(t||(t={})),Pd.default=t,Pd}var Nd={},B0;function kx(){if(B0)return Nd;B0=1,Object.defineProperty(Nd,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),Nd.default=r,Nd}var Fd={},H0;function mM(){if(H0)return Fd;H0=1,Object.defineProperty(Fd,"__esModule",{value:!0});const r=kx();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const i=this.ops[this.index];if(i){const l=this.offset,u=r.default.length(i);if(n>=u-l?(n=u-l,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const f={};return i.attributes&&(f.attributes=i.attributes),typeof i.retain=="number"?f.retain=n:typeof i.retain=="object"&&i.retain!==null?f.retain=i.retain:typeof i.insert=="string"?f.insert=i.insert.substr(l,n):f.insert=i.insert,f}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,i=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=n,this.index=i,[l].concat(u)}}else return[]}}return Fd.default=e,Fd}var q0;function vM(){return q0||(q0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=pM(),n=Tx(),i=Ex(),l=gM();e.AttributeMap=l.default;const u=kx();e.Op=u.default;const f=mM();e.OpIterator=f.default;const g="\0",m=(E,_)=>{if(typeof E!="object"||E===null)throw new Error(`cannot retain a ${typeof E}`);if(typeof _!="object"||_===null)throw new Error(`cannot retain a ${typeof _}`);const S=Object.keys(E)[0];if(!S||S!==Object.keys(_)[0])throw new Error(`embed types not matched: ${S} != ${Object.keys(_)[0]}`);return[S,E[S],_[S]]};class R{constructor(_){Array.isArray(_)?this.ops=_:_!=null&&Array.isArray(_.ops)?this.ops=_.ops:this.ops=[]}static registerEmbed(_,S){this.handlers[_]=S}static unregisterEmbed(_){delete this.handlers[_]}static getHandler(_){const S=this.handlers[_];if(!S)throw new Error(`no handlers for embed type "${_}"`);return S}insert(_,S){const x={};return typeof _=="string"&&_.length===0?this:(x.insert=_,S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(x.attributes=S),this.push(x))}delete(_){return _<=0?this:this.push({delete:_})}retain(_,S){if(typeof _=="number"&&_<=0)return this;const x={retain:_};return S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(x.attributes=S),this.push(x)}push(_){let S=this.ops.length,x=this.ops[S-1];if(_=n(_),typeof x=="object"){if(typeof _.delete=="number"&&typeof x.delete=="number")return this.ops[S-1]={delete:x.delete+_.delete},this;if(typeof x.delete=="number"&&_.insert!=null&&(S-=1,x=this.ops[S-1],typeof x!="object"))return this.ops.unshift(_),this;if(i(_.attributes,x.attributes)){if(typeof _.insert=="string"&&typeof x.insert=="string")return this.ops[S-1]={insert:x.insert+_.insert},typeof _.attributes=="object"&&(this.ops[S-1].attributes=_.attributes),this;if(typeof _.retain=="number"&&typeof x.retain=="number")return this.ops[S-1]={retain:x.retain+_.retain},typeof _.attributes=="object"&&(this.ops[S-1].attributes=_.attributes),this}}return S===this.ops.length?this.ops.push(_):this.ops.splice(S,0,_),this}chop(){const _=this.ops[this.ops.length-1];return _&&typeof _.retain=="number"&&!_.attributes&&this.ops.pop(),this}filter(_){return this.ops.filter(_)}forEach(_){this.ops.forEach(_)}map(_){return this.ops.map(_)}partition(_){const S=[],x=[];return this.forEach(M=>{(_(M)?S:x).push(M)}),[S,x]}reduce(_,S){return this.ops.reduce(_,S)}changeLength(){return this.reduce((_,S)=>S.insert?_+u.default.length(S):S.delete?_-S.delete:_,0)}length(){return this.reduce((_,S)=>_+u.default.length(S),0)}slice(_=0,S=1/0){const x=[],M=new f.default(this.ops);let w=0;for(;w<S&&M.hasNext();){let b;w<_?b=M.next(_-w):(b=M.next(S-w),x.push(b)),w+=u.default.length(b)}return new R(x)}compose(_){const S=new f.default(this.ops),x=new f.default(_.ops),M=[],w=x.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let I=w.retain;for(;S.peekType()==="insert"&&S.peekLength()<=I;)I-=S.peekLength(),M.push(S.next());w.retain-I>0&&x.next(w.retain-I)}const b=new R(M);for(;S.hasNext()||x.hasNext();)if(x.peekType()==="insert")b.push(x.next());else if(S.peekType()==="delete")b.push(S.next());else{const I=Math.min(S.peekLength(),x.peekLength()),O=S.next(I),H=x.next(I);if(H.retain){const q={};if(typeof O.retain=="number")q.retain=typeof H.retain=="number"?I:H.retain;else if(typeof H.retain=="number")O.retain==null?q.insert=O.insert:q.retain=O.retain;else{const Y=O.retain==null?"insert":"retain",[fe,X,he]=m(O[Y],H.retain),j=R.getHandler(fe);q[Y]={[fe]:j.compose(X,he,Y==="retain")}}const z=l.default.compose(O.attributes,H.attributes,typeof O.retain=="number");if(z&&(q.attributes=z),b.push(q),!x.hasNext()&&i(b.ops[b.ops.length-1],q)){const Y=new R(S.rest());return b.concat(Y).chop()}}else typeof H.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&b.push(H)}return b.chop()}concat(_){const S=new R(this.ops.slice());return _.ops.length>0&&(S.push(_.ops[0]),S.ops=S.ops.concat(_.ops.slice(1))),S}diff(_,S){if(this.ops===_.ops)return new R;const x=[this,_].map(O=>O.map(H=>{if(H.insert!=null)return typeof H.insert=="string"?H.insert:g;const q=O===_?"on":"with";throw new Error("diff() called "+q+" non-document")}).join("")),M=new R,w=t(x[0],x[1],S,!0),b=new f.default(this.ops),I=new f.default(_.ops);return w.forEach(O=>{let H=O[1].length;for(;H>0;){let q=0;switch(O[0]){case t.INSERT:q=Math.min(I.peekLength(),H),M.push(I.next(q));break;case t.DELETE:q=Math.min(H,b.peekLength()),b.next(q),M.delete(q);break;case t.EQUAL:q=Math.min(b.peekLength(),I.peekLength(),H);const z=b.next(q),Y=I.next(q);i(z.insert,Y.insert)?M.retain(q,l.default.diff(z.attributes,Y.attributes)):M.push(Y).delete(q);break}H-=q}}),M.chop()}eachLine(_,S=`
160
+ `+wt:""}`)}Ze.length>0&&Y([...z||[],...Ze])},[Y,ue,m,g,q,z]),Ie=A.useCallback(()=>{var Le;return(Le=J.current)==null?void 0:Le.click()},[]),Xe=A.useCallback(Le=>{const Ze=Le.target.files;Ze!=null&&Ze.length&&(pe(Ze),Qe())},[pe,Qe]),tt=A.useCallback(Le=>{if(_==null||_(Le),!Y||!z)return;const Ze=z.filter(ot=>Le.idx!==void 0&&ot.idx!==void 0?ot.idx!==Le.idx:ot.name!==Le.name||ot.size!==Le.size);Y(Ze),Qe()},[_,Y,z,Qe]),Ue=A.useCallback(()=>{Y&&(Y([]),Qe())},[Y,Qe]),Me=A.useCallback(Le=>{if(!R)return;const Ze=ce(Le);Se(Ze,"Loading"),R(Le,ot=>Se(Ze,ot))},[R,ce,Se]),Ee=A.useCallback(()=>{E&&(z!=null&&z.length)&&E(z)},[E,z]),we=A.useMemo(()=>{const Le=Ze=>(Ze.preventDefault(),Ze.stopPropagation(),Ze);return{onDragEnter:Ze=>{Le(Ze),!fe&&!b&&Q(!0)},onDragOver:Ze=>{Le(Ze),!fe&&!b&&Ze.dataTransfer&&(Ze.dataTransfer.dropEffect="copy")},onDragLeave:Ze=>{var Ct;Le(Ze);const ot=(Ct=me.current)==null?void 0:Ct.contains(Ze.relatedTarget);(!Ze.relatedTarget||!ot)&&Q(!1)},onDrop:Ze=>{var ot;Le(Ze),Q(!1),!fe&&!b&&((ot=Ze.dataTransfer.files)!=null&&ot.length)&&pe(Ze.dataTransfer.files)}}},[fe,b,pe]),We=A.useMemo(()=>{const Le=Fe.clsx(Fn.ButtonRenderer,"NoSelect");return{upload:Ze=>v.jsx(_i,{icon:"X",iconSize:"sm",tooltip:q.Delete,type:"Raw",className:Le,style:{color:"var(--label-neutral)"},onClick:()=>tt(Ze)}),loading:()=>v.jsx(_i,{icon:"Spinner",iconSize:"sm",type:"Raw",className:Le}),error:()=>v.jsx(_i,{icon:"CircleAlertOutline",iconSize:"sm",type:"Raw",className:Fe.clsx(Le,Fn.ErrorColor,Fn.ErrorCursor),tooltip:q["Fail Download"]}),download:Ze=>v.jsx(_i,{icon:"FileDownload",iconSize:"sm",tooltip:q.Download,type:"Raw",className:Le,style:{color:"var(--acent-brand)"},onClick:()=>Me(Ze)})}},[q,tt,Me]),ct=A.useCallback((Le,Ze)=>{const ot=ae(Le),Ct=ge(Le),_t=()=>S==="Upload"?We.upload(Le):ot?We.loading():Ct?We.error():We.download(Le);return v.jsx(hm,{label:v.jsx("div",{className:Fn.FileChipContent,children:v.jsxs(Sn,{className:Fn.FileNameContainer,children:[v.jsx(Sa,{className:Fe.clsx(Ct&&Fn.ErrorColor),children:Le.name}),v.jsx("span",{className:Fn.FileSize,children:Kc(Le.size)})]})}),ButtonRenderer:_t,className:Fe.clsx(Fn.FileChip,Ct&&Fn.ErrorBorder)},Ze)},[ae,ge,S,We]),Ne=A.useCallback(()=>v.jsx("div",{className:Fe.clsx(Fn.FileBox,fe&&Fn.ErrorBorder,fe&&Fn.ErrorColor,fe&&Fn.ErrorCursor),...we,ref:me,children:re?v.jsxs(Sn,{className:Fe.clsx("NoSelect"),style:{gap:4},children:[v.jsx(jr,{icon:"FileDownload"}),v.jsx("span",{children:q["Drop file to select"]})]}):v.jsx(Fi,{type:"Raw",className:Fe.clsx(Fn.SelectRenderer,"NoSelect"),onClick:Ie,isDisabled:fe||b,children:q["Insert File"]})}),[fe,re,q,Ie,b,we]),bt=A.useMemo(()=>{const Le=S==="Upload",Ze=Le?q["Delete All"]:q["Download All"],ot=Le?Ue:Ee;return v.jsxs(Sn,{className:Fn.LabelContainer,children:[t,S==="Upload"&&v.jsxs(Sa,{className:Fe.clsx(Fn.TotalFileSize,"NoSelect"),children:["(",v.jsx("span",{className:Fe.clsx(fe&&Fn.ErrorColor),children:Kc(be)})," / ",Kc(x),")"]}),v.jsx("span",{className:Fe.clsx(Fn.LabelButton,"Label1",Pe&&Fn.Disabled,Le&&Fn.Delete),onClick:Pe?void 0:ot,children:Ze})]})},[S,q,Ue,Ee,t,fe,be,x,Pe]);return S==="Download"&&!(z!=null&&z.length)?null:v.jsxs(ec,{helperText:e,wrapProps:i,wrapType:l,labelProps:n,errorMessage:u,label:bt,children:[v.jsx("input",{style:{display:"none"},ref:J,type:"file",multiple:!0,onChange:Xe,accept:g||""}),v.jsx($r,{...H,className:Fe.clsx(Fn.AFileUploader,O),children:v.jsxs(Sn,{className:Fn.ChipsContainer,children:[S==="Upload"&&Ne(),z==null?void 0:z.map(ct)]})})]})},QE="_AFloatMenu_xco8u_1",ek="_Content_xco8u_10",o0={AFloatMenu:QE,Content:ek},j2=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:i,onClose:l,onClick:u,onPaperClick:f,position:g=ef.ES,width:m=137}=r,R=A.useMemo(()=>({content:tk,...t}),[t]),E=A.useMemo(()=>{const j={};return er.keys(e).forEach(re=>{const Q=e[re],J={...R,...Q};J.noDisplay||(j[re]=J)}),j},[R,e]),[_,S]=A.useState(null),x=A.useCallback(j=>{X_(j,O,g,i),S(j)},[g,i]),[M,w]=A.useState(!1),[b,I]=A.useState(!1),O=A.useRef(null),H=A.useCallback(j=>{I(!0),setTimeout(()=>w(!0),0),setTimeout(()=>x(j),0)},[x]),q=A.useCallback(()=>{w(!1),I(!0),l==null||l()},[l]),z=A.useCallback(()=>I(!1),[]),Y=A.useCallback(async j=>{const re=document.getElementById("root"),Q=j.target,J=O.current;!re||!J||!Q||!J.contains(Q)&&re.contains(Q)&&(await(f==null?void 0:f(j)),q())},[q,f]);A.useEffect(()=>{if(M)return setTimeout(()=>document.addEventListener("mousedown",Y),0),()=>document.removeEventListener("mousedown",Y)},[M,Y]);const fe=A.useCallback(()=>{_&&x(_)},[x,_]);A.useEffect(()=>{if(!M||!_)return;let j=_.parentElement;for(;j;)j.addEventListener("scroll",fe),j=j.parentElement;return()=>{let re=_.parentElement;for(;re;)re.removeEventListener("scroll",fe),re=re.parentElement}},[_,M,fe]),A.useEffect(()=>{if(M)return window.addEventListener("resize",fe),()=>window.removeEventListener("resize",fe)},[M,fe]);const X=A.useCallback(j=>{j[0].intersectionRatio===0&&q()},[q]);A.useEffect(()=>{if(!M)return;const j=new IntersectionObserver(X,{threshold:0});return O.current&&j.observe(O.current),()=>j.disconnect()},[O,M,X]),A.useEffect(()=>{n&&(n.current={open:H,close:q})},[n,H,q]);const he=A.useCallback(j=>{var re;if(M){if((re=E[j])!=null&&re.isDisabled)return}else return;u==null||u(j),q()},[M,u,q,E]);return!M&&!b?null:Hs.createPortal(v.jsx("div",{className:o0.AFloatMenu,style:{opacity:+M,visibility:M&&Object.keys(E).length>0?"visible":"hidden",minWidth:m},onTransitionEnd:z,ref:O,children:er.map(E,([j],re)=>{const Q={...R,...E[j]};let{content:J,noDisplay:me,tooltipDirection:ce=yi.E,...be}=Q;return me?null:(J=Lr.getContent(Q.content,{defKey:j,def:Q}),A.createElement($r,{...be,key:re,className:Fe.clsx(o0.Content,"Label2","IsClickable",be.className),onClick:ue=>{var Se;he==null||he(j),(Se=be.onClick)==null||Se.call(be,ue)},tooltipDirection:ce},J))})}),document.body)},tk=r=>r.defKey;function rk(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const B2={parseInt:rk},nk=`${Number.MAX_SAFE_INTEGER}`.length-1,ik=r=>{const{unit:e,type:t="Secondary",min:n,max:i,useValue:l,onEnterPress:u,canAsterisk:f=!1,onFocus:g,...m}=r,R=A.useMemo(()=>i!==void 0&&n!==void 0?Math.max(`${i}`.length+1,`${n}`.length+1):nk,[n,i]),[E,_]=nn(l,""),S=A.useCallback(b=>{if(_)if(f&&b.startsWith("*"))_("*");else if(b==="")_("");else if(b==="-")_("-");else{b=b.replace(/[^0-9-]/g,"");try{const I=B2.parseInt(b);I!==void 0&&(n!==void 0&&I<n?_(`${n}`):i!==void 0&&I>i?_(`${i}`):_(`${I}`))}catch(I){console.error("ANumInput : ",I)}}},[_,f,n,i]),x=A.useRef(null),M=A.useCallback(b=>{var I;(I=x.current)==null||I.blur(),u==null||u(b)},[u]),w=A.useMemo(()=>n===void 0&&i===void 0?e??"number":`${n??""}~${i??""}`,[n,i,e]);return v.jsx(tc,{...m,type:t,className:Fe.clsx(to.ANumInput,r.className),autoComplete:"off",onEnterPress:M,useValue:[E,S],maxLength:R,placeholder:w,RightAddon:r.unit&&v.jsx("span",{style:{marginRight:4},children:r.unit}),inputRef:x})},ok="_AListView_k7t2d_1",sk="_Row_k7t2d_10",ak="_Label_k7t2d_20",lk="_Content_k7t2d_30",kd={AListView:ok,Row:sk,Label:ak,Content:lk},ck=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:i,labelWidth:l,noBorder:u,style:f,...g}=r,m=u?"":"var(--AListView_border-thin)",R=u?"":"var(--AListView_border-thick)",E=A.useMemo(()=>({content:fk,label:uk,...t}),[t]),_=A.useMemo(()=>{const S={};return er.keys(e).forEach(x=>{const M=e[x],w={...E,...M};S[x]=w}),S},[E,e]);return v.jsx($r,{...g,className:Fe.clsx(kd.AListView,g.className),style:{...f,borderTop:m},children:er.map(_,([S])=>{const x={...E,..._[S]},M=Lr.getContent(x.label,{defKey:S,item:n,def:x}),w=Lr.getContent(x.content,{defKey:S,item:n||{[S]:""},def:x}),b=Lr.getContent(x.bold||"label",{defKey:S,item:n,def:x});return v.jsxs("div",{className:kd.Row,style:{height:i,borderBottom:m},children:[v.jsx("div",{className:Fe.clsx(kd.Label,"NoSelect",b!=="content"&&"Bold"),style:{width:l,minWidth:l,maxWidth:l,borderLeft:R,paddingLeft:u?0:10},children:v.jsx(Sa,{children:M})}),v.jsx("div",{className:Fe.clsx(kd.Content,b!=="label"&&"Bold"),style:{borderLeft:R,borderRight:R},children:v.jsx(Sa,{style:{width:"100%",padding:u?0:10},children:w})})]},S)})})},uk=r=>r.defKey,fk=r=>{const{defKey:e,item:t}=r;if(t)if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null;else return null},dk="_ALoadingBorder_kwc1g_1",hk="_ProgressBar_kwc1g_9",pk="_IsLoading_kwc1g_15",gk="_load_kwc1g_1",mk="_Cover_kwc1g_19",Lf={ALoadingBorder:dk,ProgressBar:hk,IsLoading:pk,load:gk,Cover:mk},vm=r=>{const{isLoading:e}=r,[t,n]=A.useState(!1),i=A.useRef(null);return A.useEffect(()=>{e?(n(!0),i.current&&clearTimeout(i.current)):i.current=setTimeout(()=>n(!1),300)},[e]),v.jsxs("div",{className:Lf.ALoadingBorder,children:[v.jsx("div",{className:Fe.clsx(Lf.ProgressBar,t&&Lf.IsLoading)}),v.jsx("div",{className:Fe.clsx(Lf.Cover,e&&Lf.IsLoading),style:{transition:"all 300ms"}})]})},vk="_Container_tmqll_1",yk="_Option_tmqll_7",bk="_RadioButton_tmqll_14",_k="_InnerCircle_tmqll_24",xk="_isChecked_tmqll_29",qu={Container:vk,Option:yk,RadioButton:bk,InnerCircle:_k,isChecked:xk},Sk=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:i=23,innerRadius:l=i*.6,OptionRenderer:u=H2}=r,[f,g]=nn(t,e[0]);return v.jsx("div",{className:qu.Container,children:e.map((m,R)=>{const E=n==null?void 0:n(m),_=()=>E?null:g==null?void 0:g(m);return v.jsxs(Sn,{className:Fe.clsx(qu.Option,"IsClickable"),isDisabled:E,onClick:_,children:[v.jsx(Ck,{isChecked:f===m,radius:i,innerRadius:l},R),v.jsx(u,{option:m})]},R)})})},H2=({option:r})=>r,Ck=({isChecked:r,radius:e,innerRadius:t})=>v.jsx($r,{className:Fe.clsx(qu.RadioButton,r&&qu.isChecked),style:{width:e,height:e},children:v.jsx($r,{className:Fe.clsx(qu.InnerCircle,r&&qu.isChecked),style:{width:t,height:t}})}),wk="_AMultiSelect_mr38x_1",Ak="_Arrow_mr38x_15",Tk="_Primary_mr38x_24",Ek="_UnAvailable_mr38x_35",kk="_IsOpen_mr38x_35",Rk="_Secondary_mr38x_42",Ik="_Placeholder_mr38x_58",Lk="_ValuesContainer_mr38x_63",Mk="_Values_mr38x_63",Dk="_Options_mr38x_82",Ok="_Option_mr38x_82",Pk="_Selected_mr38x_124",Nk="_CheckBox_mr38x_131",yo={AMultiSelect:wk,Arrow:Ak,Primary:Tk,UnAvailable:Ek,IsOpen:kk,Secondary:Rk,Placeholder:Ik,ValuesContainer:Lk,Values:Mk,Options:Dk,Option:Ok,Selected:Pk,CheckBox:Nk},Fk=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:i=hn.AMultiSelect["Select(Placeholder)"],onClose:l,SelectedRenderer:u=Bk,OptionRenderer:f=Hk,minShowRows:g=2,maxShowRows:m=6,arrowProps:R,isAutoWidth:E=!1,..._}=r,S=A.useRef(null),x=A.useMemo(()=>_.abaseRef??S,[_.abaseRef]),M=A.useRef(null),[w,b]=nn(t,[]),[I,O]=A.useState(void 0),H=A.useRef(e),q=A.useRef(null),[z,Y]=A.useState(!1),[fe,X]=A.useState(!1),he=A.useCallback(()=>X(!1),[]),j=A.useCallback(()=>{_.isDisabled||_.isLoading||e.length<1||(X(!0),setTimeout(()=>Y(!0),0),setTimeout(()=>Jh(M,x,e,g,m),0))},[x,_.isDisabled,_.isLoading,e,g,m]),re=A.useCallback(()=>{Y(!1),X(!0),l==null||l()},[l]),Q=A.useCallback(le=>{var ae;z?re():j(),setTimeout(()=>Jh(M,x,e,g,m),0),(ae=_.onClick)==null||ae.call(_,le)},[x,_,e,z,re,j,g,m]),J=A.useCallback(()=>{Jh(M,x,e,g,m)},[x,e,g,m]);A.useEffect(()=>{if(!z||!x.current)return;const le=x.current;let ae=le.parentElement;for(;ae;)ae.addEventListener("scroll",J),ae=ae.parentElement;return()=>{let ge=le.parentElement;for(;ge;)ge.removeEventListener("scroll",J),ge=ge.parentElement}},[x,z,J]),A.useEffect(()=>{if(z)return window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[z,J]);const me=A.useCallback(le=>{le[0].intersectionRatio===0&&re()},[re]);A.useEffect(()=>{if(!z)return;const le=new IntersectionObserver(me,{threshold:0});return x.current&&le.observe(x.current),()=>le.disconnect()},[x,z,me]);const ce=A.useCallback(le=>{const ae=le.target,ge=x.current,Pe=M.current;!ge||!ae||!Pe||!ge.contains(ae)&&!Pe.contains(ae)&&re()},[x,re]),be=A.useMemo(()=>_.isDisabled||_.isLoading||e.length<1,[_.isDisabled,_.isLoading,e]);A.useEffect(()=>{if(z)return setTimeout(()=>document.addEventListener("mousedown",ce),0),()=>document.removeEventListener("mousedown",ce)},[z,ce]);const ue=A.useCallback((le,ae)=>{le.stopPropagation(),le.preventDefault();let ge=[...w];ge.includes(ae)?ge=ge.filter(Pe=>Pe!==ae):ge.push(ae),b==null||b(ge)},[w,b]),Se=A.useCallback(()=>{if(!E||!x.current)return;const le=Zc.calculateOptimalSelectWidth({elementRef:x,options:e,selectedOptions:w,placeholder:i,optionRenderer:ae=>f({option:ae}),type:n,isMulti:!0});O(le)},[E,x,e,w,i,f,n]);return A.useEffect(()=>E?((e!==H.current||I===void 0)&&(q.current!==null&&cancelAnimationFrame(q.current),q.current=requestAnimationFrame(()=>{Se(),q.current=null,H.current=[...e]})),()=>{q.current!==null&&(cancelAnimationFrame(q.current),q.current=null)}):void 0,[E,e,Se,I]),A.useEffect(()=>()=>{typeof Zc.clearCache=="function"&&Zc.clearCache()},[]),v.jsxs(v.Fragment,{children:[v.jsxs($r,{..._,isDisabled:_.isDisabled||e.length<1,className:Fe.clsx(_.className,yo.AMultiSelect,"NoSelect",z&&yo.IsOpen,be&&yo.UnAvailable,yo[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:I?`${I}px`:E?"100px":void 0,..._.style},abaseRef:x,onClick:Q,children:[v.jsx("div",{className:yo.ValuesContainer,children:v.jsx("div",{className:Fe.clsx(yo.Values,w.length<1&&yo.Placeholder),children:v.jsx(u,{OptionRenderer:f,selectedOptions:w,placeholder:i})})}),v.jsx("div",{...R,className:Fe.clsx(yo.Arrow,R==null?void 0:R.className),children:v.jsx(jr,{style:{transform:z?"rotate(180deg)":"",transition:"var(--Transition)"},icon:"TriangleDown"})})]}),e.length>0&&(z||fe)&&Hs.createPortal(v.jsx("div",{className:Fe.clsx(yo.Options,yo[n]),onTransitionEnd:he,style:{opacity:+z,visibility:z?"visible":"hidden",pointerEvents:z?void 0:"none",width:I?`${I}px`:E?"100px":void 0,borderRadius:x.current?window.getComputedStyle(x.current).borderRadius:void 0},ref:M,children:e.map((le,ae)=>{var Pe;const ge=w.includes(le);return v.jsxs("div",{className:Fe.clsx(yo.Option,ge&&yo.Selected,"NoSelect",yo[n]),style:{height:(Pe=x.current)==null?void 0:Pe.getBoundingClientRect().height},onClick:Qe=>ue(Qe,le),children:[v.jsx(Zu,{className:yo.CheckBox,useCheck:[+ge,void 0]}),v.jsx(f,{option:le})]},ae)})}),document.body)]})};function Jh(r,e,t,n,i){if(!e.current||!r.current||!t||t.length<1)return;const l=e.current.getBoundingClientRect(),u=jk(l,t.length,n,i),f=window.getComputedStyle(e.current);r.current.style.top=`calc(${u.top??0}px - ${f.borderTopWidth})`,r.current.style.bottom=u.bottom?u.bottom+"px":"",r.current.style.left=u.left+"px",r.current.style.width||(r.current.style.minWidth=u.minWidth+"px"),r.current.style.minHeight=u.minHeight+"px",r.current.style.maxHeight=u.maxHeight+"px",r.current.style.visibility="visible"}function jk(r,e,t,n){const i={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<i.height&&(window.innerHeight-r.bottom-10<i.minHeight?(i.top=r.top-e*r.height,i.top<0&&(i.top=10,i.minHeight=r.top-10,i.height=r.top-10)):i.height=window.innerHeight-r.bottom-10),i}const Bk=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?v.jsx(e,{option:t[0]}):`${t.length} selected`},Hk=r=>{const{option:e}=r;return er.isReactNode(e)?e:null},qk="_Container_10ion_1",zk="_Steps_10ion_9",$k="_Step_10ion_9",Uk="_OutCircle_10ion_26",Wk="_IsOver_10ion_37",Vk="_InCircle_10ion_41",Gk="_Line_10ion_54",Zk="_Left_10ion_66",Kk="_Right_10ion_69",Yk="_ContentContainer_10ion_73",Xk="_Content_10ion_73",eo={Container:qk,Steps:zk,Step:$k,OutCircle:Uk,IsOver:Wk,InCircle:Vk,Line:Gk,Left:Zk,Right:Kk,ContentContainer:Yk,Content:Xk},Jk=r=>{const{useSelect:e,steps:t,StepRenderer:n=s0,ContentRenderer:i=s0}=r;if(t.length===0)throw new Error("steps should have at least one element");const l=A.useRef(null),[u,f]=nn(e,t[0]),g=A.useCallback(R=>f==null?void 0:f(R),[f]),m=A.useMemo(()=>t.indexOf(u),[u,t]);return A.useEffect(()=>{m<0&&g(t[0])},[m,t,g]),v.jsxs("div",{className:eo.Container,children:[v.jsx("div",{className:eo.Steps,children:t.map((R,E)=>{const _=t.indexOf(R),S=m>=E,x=m>E;return v.jsxs("div",{className:eo.Step,children:[E!==0&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Left,S&&eo.IsOver)}),E!==t.length-1&&v.jsx("div",{className:Fe.clsx(eo.Line,eo.Right,x&&eo.IsOver)}),v.jsx(Fi,{type:"Raw",className:Fe.clsx(eo.OutCircle,S&&eo.IsOver),onClick:()=>g(R),children:v.jsx("div",{className:Fe.clsx(eo.InCircle,S&&eo.IsOver)})}),v.jsx(n,{step:R,stepIdx:_})]},E)})}),v.jsx("div",{className:eo.ContentContainer,ref:l,children:t.map((R,E)=>{const _=t.indexOf(R);return v.jsx("div",{className:eo.Content,style:E===0?{marginLeft:`${m*-100}%`}:{},children:v.jsx(i,{step:R,stepIdx:_})},E)})})]})},s0=r=>{const{step:e}=r;return typeof e=="object"?er.stringify(e):e},Qk="_ATab_1ikea_1",e8="_Option_1ikea_9",t8="_Underline_1ikea_22",r8="_IsSelected_1ikea_22",n8="_IndicatorTrack_1ikea_33",i8="_Indicator_1ikea_33",o8="_Primary_1ikea_49",s8="_Secondary_1ikea_56",a8="_IsDisabled_1ikea_66",l8="_Tertiary_1ikea_80",c8="_Quaternary_1ikea_110",Zl={ATab:Qk,Option:e8,Underline:t8,IsSelected:r8,IndicatorTrack:n8,Indicator:i8,Primary:o8,Secondary:s8,IsDisabled:a8,Tertiary:l8,Quaternary:c8},u8=["Primary","Secondary","Tertiary","Quaternary"],q2=r=>{const{options:e,useSelect:t,selectDisabled:n,type:i="Primary",tabProps:l,optionProps:u,optionWidth:f,OptionRenderer:g=f8,RightAddon:m,color:R,underline:E}=r;if(e.length===0)throw new Error("options should have at least one element");const _=A.useMemo(()=>e.findIndex(ue=>!(n!=null&&n(ue))),[e,n]),S=i==="Tertiary"?2:0,x=i==="Secondary"?8:0,M=A.useMemo(()=>S+x,[S,x]),w=i==="Tertiary"?2:0,b=A.useMemo(()=>(x-S-w-w)/e.length,[e.length,S,x,w]),[I,O]=nn(t,e[_]),H=A.useRef([]),q=A.useCallback(ue=>O==null?void 0:O(ue),[O]),z=A.useMemo(()=>typeof f=="number"?f+"px":f,[f]),Y=A.useMemo(()=>e.indexOf(I),[e,I]),fe=A.useMemo(()=>`calc(${100/e.length}% + ${b}px)`,[e.length,b]),X=A.useMemo(()=>z||`calc(${fe} - ${M}px)`,[fe,M,z]),[he,j]=A.useState(0),[re,Q]=A.useState(0),[J,me]=A.useState(X),ce=A.useMemo(()=>{let ue;switch(z){case void 0:ue=`calc(${fe} * ${Y})`;break;case"fit-content":ue=`calc(${he}px)`;break;default:ue=`calc((${z} + ${M}px) * ${Y})`;break}return`calc(${ue} + ${w}px)`},[z,w,fe,Y,he,M]),be=A.useMemo(()=>{switch(z){case void 0:return;case"fit-content":return`calc(${re}px)`;default:return`calc((${z} + ${M}px - ${b}px) * ${e.length})`}},[z,b,M,e,re]);return A.useEffect(()=>{var Se,le;if(e.includes(I)||O==null||O(e[_]),z!=="fit-content"){me(X);return}let ue=0;H.current.forEach((ae,ge)=>{ge<Y&&ae.current&&(ue+=ae.current.offsetWidth+M)}),j(ue),me(`calc(${((le=(Se=H.current[Y])==null?void 0:Se.current)==null?void 0:le.offsetWidth)||0}px)`),Q(H.current.reduce((ae,ge)=>{var Pe;return ae+((((Pe=ge.current)==null?void 0:Pe.offsetWidth)||0)+M-b)},0))},[z,H,e,I,O,_,b,M,Y,X]),v.jsxs("div",{...l,className:Fe.clsx(Zl.ATab,"Headline2",Zl[i],l==null?void 0:l.className),children:[v.jsx("div",{className:Zl.Indicator,style:{minWidth:J,left:ce,marginLeft:S}}),v.jsx("div",{className:Zl.IndicatorTrack,style:{width:be}}),v.jsx(mn,{w}),e.map((ue,Se)=>{const le=n==null?void 0:n(ue);return H.current[Se]||(H.current[Se]=A.createRef()),v.jsx($r,{abaseRef:H.current[Se],...u,style:{minWidth:X,maxWidth:X,marginLeft:S,marginRight:x,"--color":R,...u==null?void 0:u.style},className:Fe.clsx(Zl.Option,le&&Zl.IsDiabled,ue===I&&Zl.IsSelected,"IsClickable",E&&Zl.Underline,u==null?void 0:u.className),onClick:ae=>{!le&&q(ue),u&&u.onClick&&u.onClick(ae)},isDisabled:le,children:v.jsx(g,{option:ue})},Se)}),v.jsx(mn,{w:w+S}),m&&v.jsxs(v.Fragment,{children:[v.jsx(Qc,{}),m]})]})},f8=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=er.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function z2(...r){const e=A.useRef(!1);A.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const $2={String:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;if(t==="")return er.keys(e).some(R=>{const E=e[R],_=Lr.getContent(E.asText,{defKey:R,def:E,item:r});if(_!==void 0)return _.toString().toLowerCase().includes(i.toLowerCase());const S=Lr.getContent(E.content,{defKey:R,def:E,item:r});return["string","number"].includes(typeof S)&&S!==void 0&&S!==null?S.toString().toLowerCase().includes(i.toLowerCase()):!1});const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(i.toLowerCase());const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?m.toString().toLowerCase().includes(i.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:i}=n;if(i==null)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0)return i.toString().toLowerCase()===g.toString().toLowerCase();const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});return["string","number"].includes(typeof m)&&m!==void 0&&m!==null?i.toString().toLowerCase()===m.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.eq(R,i)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.eq(R,i)}return!1},DateRange:(r,e,t,n)=>{const{value:i}=n;if(i===void 0)return!1;const l=er.keys(e),u=t;if(!l.includes(u))return!1;const f=e[u],g=Lr.getContent(f.asText,{defKey:u,def:f,item:r});if(g!==void 0){const R=Kt.toDate(g.toString());return R&&Kt.be(i.sDate,R,i.eDate)}const m=Lr.getContent(f.content,{defKey:u,def:f,item:r});if(["string","number"].includes(typeof m)&&m!==void 0&&m!==null){const R=Kt.toDate(m.toString());return R&&Kt.be(i.sDate,R,i.eDate)}return!1}},d8=(r,e,t)=>{let n=r;return er.keys(t).forEach(l=>{const u=t[l];u.value===void 0||u.value===null||u.value===""||(n=n.filter(f=>{var g;return(g=u.predicate??$2[u.type])==null?void 0:g(f,e,l,u)}))}),n},h8=(r,e,t)=>{if(!t)return r;const n=t.defKey,i=e[n];if(n===void 0)return r;const l=t.sortF??((u,f)=>{const g=Lr.getContent(i.content,{defKey:n,def:i,item:u}),m=Lr.getContent(i.content,{defKey:n,def:i,item:f});return typeof g=="string"&&typeof m=="string"?g<m?-1:g>m?1:0:typeof g=="number"&&typeof m=="number"?g-m:typeof g=="string"&&typeof m=="number"?-1:typeof g=="number"&&typeof m=="string"||g===void 0&&m!==void 0?1:g!==void 0&&m===void 0?-1:0});return r.slice().sort((u,f)=>t.isAsc?l(u,f):l(f,u))},p8=(r,e,t)=>r.slice((e-1)*t,e*t),U2=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,i)=>i+1)},g8=(r,e,t,n)=>{const i=U2(e,t),l=Math.floor((r-1)/n),u=l*n+1,f=(l+1)*n,g=i.slice(u-1,f);return{pages:i,rangedPages:g}},m8=(r,e,t)=>{const n=[],i=Object.keys(t),l=[];i.forEach(_=>{const S=t[_],x=Lr.getContent(S.hContent,{defKey:_,def:S});if(x!==void 0){if(typeof x=="string"){l.push(x);return}else if(typeof x=="number"){l.push(x.toString());return}}const M=Lr.getContent(S.name,{defKey:_,def:S});if(M!==void 0&&typeof M=="string"){l.push(M);return}l.push(_)});const u=l.map(_=>`"${_.replaceAll('"','""')}"`);n.push(u.join(",")),e.forEach(_=>{const S=[];i.forEach(M=>{const w=t[M],b=Lr.getContent(w.content,{defKey:M,def:w,item:_});if(b!==void 0){if(typeof b=="string"){S.push(b);return}else if(typeof b=="number"){S.push(b.toString());return}}const I=_[M];typeof I=="string"?S.push(I):typeof I=="number"?S.push(I.toString()):S.push("")});const x=S.map(M=>`"${M.replaceAll('"','""')}"`);n.push(x.join(","))});const f=`${r}.csv`,g="\uFEFF"+n.join(`
161
+ `),m=new Blob([g],{type:"text/csv;charset=UTF-8"}),R=URL.createObjectURL(m),E=document.createElement("a");E.href=R,E.download=f,E.click(),URL.revokeObjectURL(R)},v8=r=>{const e=er.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},y8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,i])=>{!i||i.value===void 0||i.value===null||i.value===""||(i.type==="DateRange"?(t[i.sFilterKey]=i.value.sDate,t[i.eFilterKey]=i.value.eDate):t[i.filterKey??n]=i.value)}),t},b8=r=>{const e=er.keys(r).filter(i=>i!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},tl={applyFilteration:d8,applySortation:h8,applyPagination:p8,getPages:U2,getRangedPages:g8,downloadCsv:m8,getSingleFilterValue:v8,getMultiFilterValues:y8,getSelectFilterValue:b8},_8="_ATable_12zow_1",x8={ATable:_8};function W2(r,e,t,n){A.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const S8="_BodyHeader_43b3m_1",C8="_TRow_43b3m_7",w8="_OverflowSpace_43b3m_13",A8="_BodyBody_43b3m_19",T8="_IsSelected_43b3m_40",E8="_IsSelectable_43b3m_44",k8="_IsRowMarked_43b3m_52",R8="_TH_43b3m_57",I8="_TD_43b3m_62",L8="_IsMarked_43b3m_62",M8="_Resizer_43b3m_81",D8="_IsMoving_43b3m_93",O8="_IsResizable_43b3m_96",P8="_ResizerCenter_43b3m_99",N8="_ResizerOut_43b3m_105",F8="_ResizerIn_43b3m_109",j8="_IsClicked_43b3m_144",B8="_NoItems_43b3m_151",H8="_Content_43b3m_157",_n={BodyHeader:S8,TRow:C8,OverflowSpace:w8,BodyBody:A8,IsSelected:T8,IsSelectable:E8,IsRowMarked:k8,TH:R8,TD:I8,IsMarked:L8,Resizer:M8,IsMoving:D8,IsResizable:O8,ResizerCenter:P8,ResizerOut:N8,ResizerIn:F8,IsClicked:j8,NoItems:B8,Content:H8},Yl=25,q8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:i,isTableDisabled:l,isSelectMulti:u,selectDisabled:f,appliedFilteration:g,useSortation:m,pagination:R,pagedItems:E,noMarking:_,noDefHeader:S,isLoading:x,showRows:M,RowRenderer:w=U8,isRowRendered:b,resources:I}=r,[O,H]=A.useMemo(()=>i??[],[i]),q=A.useCallback(Ne=>{l||!H||!O||f!=null&&f(Ne)||(u?O.some(bt=>t(bt,Ne))?H(O.filter(bt=>!t(bt,Ne))):H([...O,Ne]):H([Ne]))},[O,f,H,t,l,u]);A.useEffect(()=>{u||!O||!H||O.length>1&&H([O[O.length-1]])},[O,H,u]),A.useEffect(()=>{if(!O||!H)return;O.filter(bt=>f==null?void 0:f(bt)).length>0&&H(O.filter(bt=>!(f!=null&&f(bt))))},[O,H,f]);const[z,Y]=m,fe=A.useCallback((Ne,bt)=>{Y&&((z==null?void 0:z.defKey)===Ne?z.isAsc===!0?Y({defKey:Ne,isAsc:!1,sortF:bt}):z.isAsc===!1?Y(void 0):Y({defKey:Ne,isAsc:!0,sortF:bt}):Y({defKey:Ne,isAsc:!0,sortF:bt}))},[z,Y]),[X,he]=A.useState({elem:null,row:null}),j=A.useRef(null),re=A.useRef(null),Q=A.useCallback(()=>he({elem:j.current,row:re.current}),[]);A.useEffect(()=>Q(),[E.length,Q]),W2(window,"resize",Q);const[J,me]=A.useState(40);A.useEffect(()=>{const{row:Ne}=X;Ne!=null&&me(Ne.clientHeight)},[X,J]);const ce=A.useMemo(()=>{const{elem:Ne}=X;return Ne?Math.floor(Ne.clientHeight/J):0},[X,J]),be=A.useMemo(()=>M||(E.length<=ce?ce:E.length),[ce,M,E]),ue=A.useMemo(()=>{if(M!==void 0)return M*J},[M,J]),Se=A.useMemo(()=>ue,[ue]),le=A.useMemo(()=>{const{elem:Ne}=X;return Ne?Ne.getBoundingClientRect().height/J<E.length:!1},[X,J,E.length]),[ae,ge]=A.useState(),Pe=A.useMemo(()=>{const{elem:Ne}=X;return!ae||!Ne?"100%":Ne.clientHeight+(b?0:50)},[ae,b,X]),Qe=A.useRef(null),[pe,Ie]=A.useState({}),Xe=A.useRef({x:0,y:0}),tt=A.useRef({}),Ue=A.useMemo(()=>er.keys(pe),[pe]),Me=A.useCallback((Ne,bt)=>{const Le=Qe.current;if(!Le)return;const Ze=[];Le.childNodes.forEach(wt=>{wt.classList.contains(_n.TH)&&Ze.push(wt)});const ot={};er.keys(e).forEach((wt,xt)=>{const it=Ze[xt];if(!it)return;const je=it.getBoundingClientRect().width;ot[wt]=je}),tt.current=ot,ge(bt),Xe.current={x:Ne.clientX,y:Ne.clientY};const Ct=wt=>{if(!Qe.current)return;const it=wt.clientX-Xe.current.x,je=$8(e,bt,tt.current,it);Ie(je)};document.addEventListener("mousemove",Ct);const _t=()=>{ge(void 0),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",_t)};document.addEventListener("mouseup",_t)},[e]),Ee=A.useCallback(()=>{ge(void 0),Ie({})},[]),we=A.useMemo(()=>{if(Ue.length===0){const Le={},Ze=er.keys(e);for(let ot=0;ot<Ze.length;ot++){const Ct=Ze[ot],_t=e[Ct],wt=Lr.getContent(_t.colSpan,{defKey:Ct,def:_t}),xt=_t.width??80,it=_t.minWidth??Yl,je=_t.maxWidth,yt={width:xt,minWidth:it,maxWidth:je,flexGrow:wt??1};if(Le[Ct]=yt,wt!==void 0){for(let st=1;st<Math.min(wt,Ze.length-ot);st++){const Rt=e[Ze[ot+st]],Bt=Rt.width??80,ze=Rt.minWidth??Yl,Tt=Rt.maxWidth;yt.width+=Bt,yt.minWidth+=ze,yt.maxWidth!==void 0&&(Tt!==void 0?yt.maxWidth+=Tt:yt.maxWidth=void 0)}ot+=wt-1}}return Le}const Ne={},bt=er.keys(e);for(let Le=0;Le<bt.length;Le++){let Ze=bt[Le];const ot=e[Ze];let Ct=pe[Ze];const _t=Lr.getContent(ot.colSpan,{defKey:Ze,def:ot}),wt=ot.minWidth??Yl,xt=ot.maxWidth,it={width:Ct,minWidth:wt,maxWidth:xt,flexGrow:_t??1};if(Ne[Ze]=it,_t!==void 0){for(let je=1;je<Math.min(_t,bt.length-Le);je++){const yt=e[bt[Le+je]],st=pe[bt[Le+je]],Rt=yt.minWidth??Yl,Bt=yt.maxWidth;it.width+=st,it.minWidth+=Rt,it.maxWidth!==void 0&&(Bt!==void 0?it.maxWidth+=Bt:it.maxWidth=void 0)}Le+=_t-1}}return Ne},[e,Ue,pe]),We=A.useRef(null),ct=A.useMemo(()=>tl.getSingleFilterValue(g),[g]);return A.useEffect(()=>{j.current&&j.current.scrollTo({top:0})},[R.page]),A.useEffect(()=>{b&&re.current&&re.current.scrollIntoView({behavior:"smooth",block:"center"})},[O,E,b]),v.jsxs(v.Fragment,{children:[v.jsx(vm,{isLoading:x}),v.jsx("div",{className:Fe.clsx(_n.BodyHeader,ae!==void 0&&_n.IsClicked),onResizeCapture:Q,ref:We,style:{display:S||b?"none":"flex"},children:v.jsx("div",{className:_n.TRow,ref:Qe,children:er.map(e,([Ne],bt)=>{const Le=e[Ne],Ze=Lr.getContent(Le.hContent,{defKey:Ne,def:Le}),ot=Le.name,Ct=bt===er.keys(e).length-1,_t=Le.width??80,wt=Le.minWidth??Yl,xt=Le.maxWidth,it={width:_t,minWidth:wt,maxWidth:xt,justifyContent:Lr.getContent(Le.hAlign,{defKey:Ne,def:Le})??"flex-start",...Lr.getContent(Le.hStyle,{defKey:Ne,def:Le})};Ue.includes(Ne)&&(it.width=pe[Ne]);const je=Le.isSortable,yt=(z==null?void 0:z.defKey)===Ne,st=z==null?void 0:z.isAsc;return v.jsxs(A.Fragment,{children:[v.jsxs("div",{style:it,onClick:()=>je&&fe(Ne,Le.sortF),className:Fe.clsx(_n.TH,"Label1",je?"IsClickable":"NoSelect"),children:[v.jsx(Sa,{className:_n.Content,children:Ze??ot}),je&&v.jsx(jr,{icon:yt?st?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Ct&&v.jsxs("div",{className:Fe.sclsx(_n,"Resizer","IsResizable","NoSelect",ae!==void 0&&"IsMoving"),onMouseDown:Rt=>Me(Rt,Ne),onDoubleClick:Ee,children:[v.jsx("div",{className:_n.ResizerOut}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerCenter,style:{height:Pe}}),v.jsx("div",{className:_n.ResizerIn}),v.jsx("div",{className:_n.ResizerOut})]}),Ct&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:50,style:{color:it.color,backgroundColor:it.backgroundColor,transition:it.transition}})]},Ne)})})}),v.jsxs("div",{className:Fe.clsx(_n.BodyBody,ae!==void 0&&_n.IsClicked),ref:j,style:{overflowY:le?"scroll":"hidden",minHeight:ue,maxHeight:Se},children:[E.map((Ne,bt)=>{const Le=Lr.getContent(n,{item:Ne}),Ze=H&&!l,ot=O==null?void 0:O.some(xt=>t(xt,Ne)),Ct=O&&(f==null?void 0:f(Ne)),_t=typeof Ct=="string"?Ct:void 0,wt={...Ne};return b&&er.keys(e).forEach(xt=>{const it=e[xt],je=Lr.getContent(it.content,{defKey:xt,def:it,item:Ne});let yt=!1;if(ct&&!_){const st=Lr.getContent(it.asText,{defKey:xt,def:it,item:Ne});st!==void 0?yt=st.toString().toLowerCase().includes(ct.toLowerCase()):["string","number"].includes(typeof je)&&je!==void 0&&je!==null&&(yt=je.toString().toLowerCase().includes(ct.toLowerCase()))}wt[xt]=v.jsx("span",{className:Fe.clsx(yt&&_n.IsRowMarked),children:wt[xt]})}),v.jsx($r,{isDisabled:Ct,tooltip:_t,...Le,onClick:xt=>{var it;q(Ne),(it=Le==null?void 0:Le.onClick)==null||it.call(Le,xt)},className:Fe.clsx(Le==null?void 0:Le.className,Ze&&_n.IsSelectable,ot&&_n.IsSelected),abaseRef:ot?re:void 0,children:v.jsx(w,{defs:e,item:Ne,markedItem:wt,noMarking:_,spanWidths:we,singleFilterValue:ct,isBodyBodyOverflowed:le})},bt)}),v.jsx(z8,{showRows:be,itemsLength:E.length,isRowRendered:b,rowHeight:J,resources:I})]})]})},z8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:i,rowHeight:l}=r,u=A.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:u},(f,g)=>v.jsx("div",{className:Fe.clsx(_n.TRow,"NoSelect"),...i&&{style:{border:"none",minHeight:l,maxHeight:l}},children:t===0&&g===Math.floor(e/2)&&v.jsx(Sn,{className:_n.NoItems,children:n["No Items"]})},g))};function $8(r,e,t,n){const i={...t},l=er.keys(r).findIndex(m=>m===e)+1,u=Object.entries(r);let f=l-1,g=l;if(n<0){for(;n<0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[E,_]=[u[g][0],u[g][1]],S=R.minWidth??Yl,x=_.maxWidth,M=i[m],w=i[E];let b=M-S;x!==void 0&&(b=Math.min(b,x-w));let I=-n;I=Math.min(I,b),M-I<=S&&f--,x!==void 0&&w+I>=x&&g++,i[m]=M-I,i[E]=w+I,n+=I}return i}else if(n>0){for(;n>0&&!(f<0||g>=u.length);){const[m,R]=[u[f][0],u[f][1]],[E,_]=[u[g][0],u[g][1]],S=_.minWidth??Yl,x=R.maxWidth,M=i[E],w=i[m];let b=M-S;x!==void 0&&(b=Math.min(b,x-w));let I=n;I=Math.min(I,b),M-I<=S&&g++,x!==void 0&&w+I>=x&&f--,i[E]=M-I,i[m]=w+I,n-=I}return i}return i}const U8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:i,singleFilterValue:l,isBodyBodyOverflowed:u}=r;return v.jsx("div",{className:Fe.clsx(_n.TRow),children:er.map(e,([f],g)=>{const m=i[f];if(m===void 0)return null;const R=g===er.keys(e).length-1,E=e[f],_=Lr.getContent(E.content,{defKey:f,def:E,item:t}),S={width:m.width,minWidth:m.minWidth,maxWidth:m.maxWidth,flexGrow:m.flexGrow,justifyContent:Lr.getContent(E.align,{defKey:f,def:E,item:t})??"flex-start",...Lr.getContent(E.style,{defKey:f,def:E,item:t})};let x=!1;if(l&&!n){const M=Lr.getContent(E.asText,{defKey:f,def:E,item:t});M!==void 0?x=M.toString().toLowerCase().includes(l.toLowerCase()):["string","number"].includes(typeof _)&&_!==void 0&&_!==null&&(x=_.toString().toLowerCase().includes(l.toLowerCase()))}return v.jsxs(A.Fragment,{children:[v.jsx("div",{style:S,className:Fe.clsx(_n.TD,"Label1",x&&_n.IsMarked),children:v.jsx(Sa,{className:_n.Content,children:_})}),!u&&R&&v.jsx(mn,{className:_n.OverflowSpace,w:"var(--Scrollbar-width)",h:40,style:{color:S.color,backgroundColor:S.backgroundColor}})]},f)})})},W8="_ATableFooter_w090q_1",V8="_Button_w090q_10",G8="_IsSelected_w090q_26",Z8="_IsDisabled_w090q_31",Ds={ATableFooter:W8,Button:V8,IsSelected:G8,IsDisabled:Z8},K8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:i}=r,l=A.useMemo(()=>e[e.length-1],[e]);return v.jsxs(Sn,{className:Ds.ATableFooter,children:[v.jsx(jr,{icon:"FirstPage",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.moveFirst}),v.jsx(jr,{icon:"NavigateBefore",className:Fe.clsx(Ds.Button,i.page===1&&Ds.IsDisabled),onClick:n.movePrev}),t.map(u=>v.jsx("div",{className:Fe.clsx(Ds.Button,"NoSelect",i.page===u&&Ds.IsSelected),onClick:()=>n.move(u),children:u},u)),v.jsx(jr,{icon:"NavigateNext",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveNext}),v.jsx(jr,{icon:"LastPage",className:Fe.clsx(Ds.Button,i.page===l&&Ds.IsDisabled),onClick:n.moveLast})]})},Y8="_Filter_1b9j0_1",X8="_SelectFilter_1b9j0_11",J8="_MainFilter_1b9j0_15",Q8="_IsOpen_1b9j0_26",eR="_SubFilters_1b9j0_30",tR="_Input_1b9j0_44",rR="_Main_1b9j0_15",nR="_Sub_1b9j0_30",iR="_Actions_1b9j0_62",oR="_Icon_1b9j0_67",sR="_LeftIcon_1b9j0_74",aR="_CircleAlertOutline_1b9j0_79",lR="_Rotate_1b9j0_87",cR="_rotate_1b9j0_1",Er={Filter:Y8,SelectFilter:X8,MainFilter:J8,IsOpen:Q8,SubFilters:eR,Input:tR,Main:rR,Sub:nR,Actions:iR,Icon:oR,LeftIcon:sR,CircleAlertOutline:aR,Rotate:lR,rotate:cR},uR=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:i,isRowRendered:l,isFilterSort:u,filterType:f,resources:g}=r,[m,R]=A.useState([]),[E,_]=A.useMemo(()=>t,[t]),S=A.useMemo(()=>f==="Select",[f]),x=A.useMemo(()=>er.keys(E).map(pe=>String(pe)),[E]),[M,w]=A.useState(S&&x.length>0?x[0]:null),b=A.useCallback((pe,Ie,Xe)=>{if(!_)return;const tt={...E};pe.value=Ie,_(tt),R(Ue=>Ue.map((Me,Ee)=>Ee===(Xe?Xe+1:0)?"":Me))},[E,_]),I=A.useMemo(()=>{let pe=[],Ie=er.keys(E);S&&M&&(Ie=Ie.filter(Xe=>Xe===M));for(const Xe of Ie)pe.push({key:Xe,def:e[Xe],filter:E[Xe]});return pe},[E,e,S,M]),O=A.useMemo(()=>I.length>0?I[0]:null,[I]),H=A.useMemo(()=>m.length>0?m[0]:"",[m]),q=A.useMemo(()=>I.length>1?I.slice(1):[],[I]),z=A.useMemo(()=>m.length>1?m.slice(1):[],[m]),Y=A.useMemo(()=>q.length>0,[q]),[fe,X]=A.useState(!1),[he,j]=A.useState(!1),re=A.useRef(null),Q=A.useCallback(()=>X(!1),[]),J=A.useRef(null),me=A.useCallback(()=>{j(!1),X(!0),J.current&&(document.removeEventListener("mousedown",J.current),J.current=null)},[]),ce=A.useCallback(()=>{const pe=Ie=>{const Xe=document.getElementById("root"),tt=Ie.target,Ue=re.current;!Xe||!Ue||!tt||!Ue.contains(tt)&&Xe.contains(tt)&&me()};return J.current=pe,pe},[me]),be=A.useCallback(()=>{X(!0),j(!0),setTimeout(()=>{const pe=ce();document.addEventListener("mousedown",pe)},0)},[ce]),ue=A.useMemo(()=>he?me:be,[he,be,me]),Se=A.useCallback(()=>{const pe=I.map((Ie,Xe)=>Ie.filter.type==="String"&&Ie.filter.validation?Ie.filter.validation(Ie.filter.value||""):Ie.filter.type==="Date"&&Ie.filter.validation||Ie.filter.type==="DateRange"&&Ie.filter.validation?Ie.filter.validation(Ie.filter.value):m[Xe]);R(pe),pe.every(Ie=>!Ie)&&i.apply()},[m,i,I]),le=A.useCallback(pe=>{pe.key==="Enter"?(Se(),pe.stopPropagation()):pe.key==="Escape"&&(j(!1),pe.currentTarget.focus(),pe.currentTarget.blur(),pe.stopPropagation())},[Se,j]),ae=A.useMemo(()=>({open:be,close:me,toggle:ue,validate:Se}),[be,me,ue,Se]),ge=A.useCallback(()=>{Se(),!m.some(Ie=>Ie)&&i.apply()},[Se,m,i]),Pe=A.useCallback(()=>{i.clear()},[i]),Qe=A.useCallback(pe=>{if(!_||!pe)return;w(pe);const Ie={...E};er.keys(Ie).forEach(Xe=>{if(Xe!==pe&&Ie[Xe])switch(Ie[Xe].type){case"String":Ie[Xe].value="";break;case"Select":Ie[Xe].value=null;break;case"Date":Ie[Xe].value=void 0;break;case"DateRange":Ie[Xe].value=void 0;break}}),R([]),_(Ie),i.clear(),setTimeout(()=>{var tt;const Xe=(tt=re.current)==null?void 0:tt.querySelector("input");Xe&&Xe.focus()},0)},[E,_,R,i]);return O?v.jsxs(v.Fragment,{children:[S&&v.jsx(rc,{className:Fe.clsx(Er.SelectFilter),options:x,isAutoWidth:!0,useSelect:[M,Qe],type:"Secondary",OptionRenderer:({option:pe})=>{const Ie=e[pe];let Xe;if(Ie!=null&&Ie.hContent){const tt={defKey:pe,def:Ie};Xe=typeof Ie.hContent=="function"?Ie.hContent(tt):Ie.hContent}else{const tt=E[pe],Ue=(Ie==null?void 0:Ie.name)||(tt==null?void 0:tt.placeholder)||String(pe);Xe=v.jsx("span",{children:Ue})}return Xe}}),v.jsxs("div",{className:Fe.clsx(Er.Filter),ref:re,onKeyDown:le,onClick:pe=>{pe.preventDefault(),pe.stopPropagation()},style:{minWidth:l?u?180:void 0:180,maxWidth:l?u?300:void 0:300},tabIndex:-1,children:[v.jsx(fR,{filterSet:O,hasToggleFilteration:n,onChange:b,filterF:i,hasSubFilters:Y,popupF:ae,isOpen:he,resources:g,errorMessage:H,hasSelectFilterType:S,onSearchClick:ge}),!S&&v.jsx(dR,{subFilterSets:q,onChange:b,onClearClick:Pe,onSearchClick:ge,isOpen:he,isTransitioning:fe,onTransitionEnd:Q,resources:g,errorMessages:z})]})]}):null},fR=r=>{var _,S,x,M;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:i,filterF:l,hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,onSearchClick:E}=r;if(e.filter.type==="String"){const w=[e.filter.value??"",H=>i(e.filter,H)],{placeholder:b=(_=e.def)==null?void 0:_.name,icon:I,iconTooltip:O=b}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"Type",tooltip:O,isOpen:g}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Main),useValue:w,placeholder:b??m["Search(Placeholder)"],wrapProps:{style:{width:"100%",boxSizing:"border-box"}},LeftAddon:t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,errorMessage:R,hasSelectFilterType:n}),autoFocus:e.filter.autoFocus,maxLength:e.filter.maxLength,type:R?"Error":"Primary"})]})}else if(e.filter.type==="Select"){const w=[e.filter.value??null,H=>{i(e.filter,H),n&&setTimeout(()=>E(),0)}],{placeholder:b=(S=e.def)==null?void 0:S.name,icon:I,iconTooltip:O=b}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"Menu",tooltip:O,isOpen:g}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Main),options:e.filter.options,useSelect:w,placeholder:b,OptionRenderer:e.filter.OptionRenderer,SelectedRenderer:({OptionRenderer:H,selectedOption:q})=>q===null?b||e.filter.placeholder:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),v.jsx(H,{option:q}),v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hideSearchButton:!0,hasSelectFilterType:n})]})})]})}else if(e.filter.type==="Date"){const w=[e.filter.value,H=>i(e.filter,H)],{placeholder:b=(x=e.def)==null?void 0:x.name,icon:I,iconTooltip:O=b}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:g}),v.jsx(mm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDate:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:b,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}else if(e.filter.type==="DateRange"){const w=[e.filter.value,q=>i(e.filter,q)],{placeholder:b=(M=e.def)==null?void 0:M.name,icon:I,iconTooltip:O=b,noDefaultChoices:H}=e.filter;return v.jsxs("div",{className:Fe.clsx(Er.MainFilter,g&&Er.IsOpen),children:[v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:g}),v.jsx(pm,{type:"Raw",className:Fe.clsx(Er.DatePicker,Er.Input,Er.Main),useDateRange:w,minDate:e.filter.minDate,maxDate:e.filter.maxDate,placeholder:b,noDefaultChoices:H,LeftAddon:v.jsxs(v.Fragment,{children:[t&&v.jsx(Rd,{isOpen:g,filterF:l,popupF:f,resources:m}),!t&&v.jsx(mn,{w:g?0:6}),v.jsx(ya,{icon:I??"CalendarDay",tooltip:O,isOpen:!g}),v.jsx(mn,{w:g?8:0})]}),RightAddon:v.jsx(Id,{hasSubFilters:u,popupF:f,isOpen:g,resources:m,hasSelectFilterType:n})})]})}return null},Rd=r=>{const{filterF:e,popupF:t,resources:n,isOpen:i}=r;return v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Convert",tooltip:n["Toggle Filter"],onMouseDown:l=>l.currentTarget.classList.remove(Er.Rotate),style:{width:i?0:24,marginLeft:i?0:8},onClick:l=>{l.currentTarget.classList.add(Er.Rotate),e.toggle(),t.close(),l.stopPropagation()}})},Id=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:i,errorMessage:l,hideSearchButton:u,hasSelectFilterType:f}=r,g=A.useCallback(E=>{E.stopPropagation(),t.open()},[t]),m=A.useCallback(E=>{E.stopPropagation(),t.close()},[t]),R=A.useCallback(E=>{E.stopPropagation(),t.validate()},[t]);return v.jsxs(A.Fragment,{children:[l&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:l}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListAdd",onClick:g,style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0}}),e&&!f&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"ListRemove",onClick:m,style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"}}),!u&&v.jsx(_i,{type:"Raw",className:Er.Icon,icon:"Search",tooltip:i["Search(Button)"],onClick:R,style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4}})]})},dR=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,onSearchClick:i,isOpen:l,isTransitioning:u,onTransitionEnd:f,resources:g,errorMessages:m}=r;return!l&&!u?null:v.jsxs("div",{className:Er.SubFilters,onTransitionEnd:f,style:{opacity:+l,visibility:+l?"visible":"hidden"},children:[e.map((R,E)=>{var _,S,x,M;if(R.filter.type==="String"){const w=[R.filter.value??"",q=>t(R.filter,q,E)],b=m[E],{placeholder:I=(_=R.def)==null?void 0:_.name,icon:O,iconTooltip:H=I}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:H,icon:O??"Type"}),v.jsx(tc,{className:Fe.clsx(Er.Input,Er.Sub),wrapProps:{style:{width:"100%"}},useValue:w,placeholder:I??g["Search(Placeholder)"],type:b?"Error":"Secondary",RightAddon:b&&v.jsx(_i,{type:"Raw",className:Er.CircleAlertOutline,iconSize:"xs",icon:"CircleAlertOutline",tooltip:b}),autoFocus:R.filter.autoFocus,maxLength:R.filter.maxLength}),v.jsx(mn,{h:8})]},E)}else if(R.filter.type==="Select"){const w=[R.filter.value??null,H=>t(R.filter,H)],{placeholder:b=(S=R.def)==null?void 0:S.name,icon:I,iconTooltip:O=b}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:O,icon:I??"Menu"}),v.jsx(rc,{className:Fe.clsx(Er.Input,Er.Sub),options:R.filter.options,placeholder:b,OptionRenderer:R.filter.OptionRenderer,useSelect:w,arrowProps:{style:{marginRight:4}},type:"Secondary"}),v.jsx(mn,{h:8})]},E)}else if(R.filter.type==="Date"){const w=[R.filter.value,H=>t(R.filter,H)],{placeholder:b=(x=R.def)==null?void 0:x.name,icon:I,iconTooltip:O=b}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:O,icon:I??"CalendarDay"}),v.jsx(mm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),placeholder:b,className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDate:w,minDate:R.filter.minDate,maxDate:R.filter.maxDate}),v.jsx(mn,{h:8})]},E)}else if(R.filter.type==="DateRange"){const w=[R.filter.value,H=>t(R.filter,H)],{placeholder:b=(M=R.def)==null?void 0:M.name,icon:I,iconTooltip:O=b}=R.filter;return v.jsxs(Sn,{style:{marginBottom:6},children:[v.jsx(ya,{tooltip:O,icon:I??"CalendarDay"}),v.jsx(pm,{type:"Raw",LeftAddon:v.jsx(mn,{w:12}),className:Fe.clsx(Er.DatePicker,Er.Input,Er.Sub),useDateRange:w,placeholder:b,minDate:R.filter.minDate,maxDate:R.filter.maxDate})]},E)}else return null}),v.jsxs(Sn,{className:Er.Actions,children:[v.jsx(Fi,{type:"Secondary",onClick:n,children:g["Clear(Button)"]}),v.jsx(Fi,{onClick:i,children:g["Search(Button)"]})]})]})},ya=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return v.jsx(_i,{type:"Raw",className:Er.LeftIcon,tooltip:t,icon:e,style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},hR="_ATableHeader_1hzfz_1",pR="_LeftHeaderContent_1hzfz_11",gR="_RightHeaderContent_1hzfz_19",mR="_TopRightAddon_1hzfz_27",vR="_HItem_1hzfz_32",Vc={ATableHeader:hR,LeftHeaderContent:pR,RightHeaderContent:gR,TopRightAddon:mR,HItem:vR},yR=r=>{const{defs:e,title:t,totalCount:n,useCheck:i,useFilteration:l,hasToggleFilteration:u,filterF:f,noFilter:g,noCount:m,isFiltered:R,TopLeftAddon:E,TopRightAddon:_,useSortation:S,resources:x=hn.ATable,filterType:M}=r,[w]=A.useMemo(()=>i||[],[i]),b=A.useMemo(()=>R?x["Searched n items"](n):x["Total n items"](n),[x,R,n]),[I]=l,[O,H]=S,[q,z]=A.useState(!1),Y=A.useMemo(()=>{const ce=er.values(I).filter(Se=>Se.type==="DateRange"),be=er.keys(I).filter(Se=>ce.includes(I[Se])),ue=er.keys(e).filter(Se=>e[Se].isSortable);return be.length>0?(be.length>1&&z(!0),ue.map(le=>be.includes(le)?[le+"_Asc",le+"_Desc"]:le).flat()):ue},[e,I]),fe=A.useMemo(()=>r.isRowRendered&&Y.length>0,[Y.length,r.isRowRendered]),X=A.useCallback((ce,be)=>{H&&(O==null?void 0:O.defKey)===ce&&(O.isAsc===!0?H({defKey:ce,isAsc:!1,sortF:be}):H({defKey:ce,isAsc:!0,sortF:be}))},[O,H]),he=A.useRef(),[j,re]=A.useState(),[Q,J]=A.useState(O?O.defKey:Y[0]),me=A.useMemo(()=>{if(!j)return{};const ce=e[j];return{SortUp:{onClick:()=>{H==null||H({defKey:j,isAsc:!0,sortF:ce.sortF}),J(j)},content:()=>x["Sort up"]},SortDown:{onClick:()=>{H==null||H({defKey:j,isAsc:!1,sortF:ce.sortF}),J(j)},content:()=>x["Sort down"]}}},[H,j,e,x]);return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:Fe.clsx(Vc.ATableHeader),children:[v.jsxs("div",{className:Fe.clsx(Vc.LeftHeaderContent,"NoSelect"),children:[v.jsxs(Sn,{style:{marginBottom:fe?8:0},children:[E&&v.jsx("div",{className:Fe.clsx(Vc.HItem),children:E}),t&&v.jsx("div",{className:Fe.clsx(Vc.HItem),style:{whiteSpace:"nowrap"},children:t}),!m&&v.jsxs("div",{className:Fe.clsx(Vc.HItem),style:{maxHeight:14,...fe&&{minHeight:14,color:"var(--label-neutral)"}},children:[b,w&&w.length>0&&v.jsxs(v.Fragment,{children:[" / ",x["Checked n items"](w.length)]})]})]}),fe&&v.jsx(q2,{type:"Tertiary",options:Y,useSelect:[Q,()=>{}],optionWidth:"fit-content",tabProps:{style:{marginRight:8}},optionProps:{style:{cursor:"default"},onClick:ce=>{var Se;const be=ce.currentTarget.textContent;if(be===x[be])return;ce.currentTarget.querySelector("svg")===null&&((Se=he.current)==null||Se.open(ce.currentTarget))}},OptionRenderer:ce=>{const be=/_Asc|_Desc/.test(ce.option),ue=(O==null?void 0:O.defKey)===ce.option,Se=Q===ce.option,le=O==null?void 0:O.isAsc,ae=()=>{if(be){re(void 0),J(ce.option);const[Qe,pe]=ce.option.split("_"),Ie=pe==="Asc";H==null||H({defKey:Qe,isAsc:Ie,sortF:e[Qe].sortF})}else Se?X(ce.option,e[ce.option].sortF):re(ce.option)},Pe=be?(Qe=>{const[pe,Ie]=Qe.split("_");return(q?pe+" ":"")+x[Ie]})(ce.option):x["Sort by x"](ce.option);return v.jsxs(Sn,{style:{height:"100%"},className:Fe.clsx(!(be&&Se)&&"IsClickable"),onClick:ae,children:[Pe,Se&&!be&&v.jsx(jr,{style:{marginRight:-5,marginLeft:4},icon:ue?le?"RowSortUp":"RowSortDown":"RowSortBoth"})]},ce.option)}})]}),v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(Vc.RightHeaderContent,"NoSelect"),children:[!g&&v.jsx(uR,{defs:e,useFilteration:l,hasToggleFilteration:u,filterF:f,isRowRendered:r.isRowRendered,isFilterSort:Y.length>0,resources:x,filterType:M}),_&&v.jsx(Sn,{className:Fe.clsx(Vc.TopRightAddon),children:_})]})]}),v.jsx(j2,{defs:me,actionRef:he,onClose:()=>re(void 0),width:100,position:ef.S})]})},bR=r=>{const{defs:e,pk:t,defaultDef:n,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,useCheck:g,checkDisabled:m,isLoading:R,isDisabled:E,title:_,entireItems:S,onStateChange:x,pagedItems:M,totalCount:w,useFilteration:b,useToggleFilteration:I,filterType:O="Default",usePagination:H,useSortation:q,showRows:z,noHeader:Y,noDefHeader:fe,noFooter:X,noFilter:he,noCount:j,noMarking:re,noStateChangeOnMount:Q,TopLeftAddon:J,TopRightAddon:me,actionRef:ce,RowRenderer:be,resources:ue}=r,Se=A.useMemo(()=>({...hn.ATable,...ue}),[ue]),le=A.useCallback(($,_e)=>t!==void 0?Array.isArray(t)?t.every(Ke=>nl.isEqual($[Ke],_e[Ke])):nl.isEqual($[t],_e[t]):nl.isEqual($,_e),[t]),ae=A.useMemo(()=>({content:_R,...n}),[n]),ge=A.useMemo(()=>{const $={};return er.keys(e).forEach(_e=>{const Ke=e[_e],mt={...ae,...Ke};$[_e]=mt}),$},[ae,e]),[Pe,Qe]=nn(nl.cloneDeep(b),{"":{type:"String",placeholder:Se["Search(Placeholder)"],value:""}}),[pe,Ie]=nn(nl.cloneDeep(I),void 0),[Xe,tt]=A.useState(!1),[Ue,Me]=A.useMemo(()=>Xe&&pe?[pe,Ie]:[Pe,Qe],[Pe,Xe,Qe,Ie,pe]),[Ee,we]=A.useState(Ue),We=A.useMemo(()=>S?tl.applyFilteration(S,ge,Ee):[],[S,ge,Ee]),ct=A.useMemo(()=>{for(const $ in Ee){const _e=Ee[$];if(_e.value!==void 0&&_e.value!==null&&_e.value!=="")return!0}return!1},[Ee]),[Ne,bt]=nn(q,void 0),Le=A.useMemo(()=>tl.applySortation(We,ge,Ne),[We,ge,Ne]),Ze=A.useMemo(()=>{if(M!==void 0)return tl.applySortation(M,ge,Ne)},[M,ge,Ne]),[ot,Ct]=nn(H,{page:1,pageSize:50,pageRange:10}),_t=A.useMemo(()=>({pageSize:50,page:1,pageRange:10,...ot}),[ot]),{pagedItems:wt,totalCount:xt,pagination:it}=A.useMemo(()=>{const $={..._t};if(Ze!==void 0){let _e=w??Ze.length;const Ke=tl.getPages(_e,$.pageSize);return $.page>Ke.length?$.page=Ke.length:$.page<1&&($.page=1),{pagedItems:Ze,totalCount:_e,pagination:$}}else if(S!==void 0){const _e=w??Le.length,Ke=tl.getPages(_e,$.pageSize);return $.page>Ke.length?$.page=Ke.length:$.page<1&&($.page=1),{pagedItems:tl.applyPagination(Le,$.page,$.pageSize),totalCount:_e,pagination:$}}else return{pagedItems:[],totalCount:w??0,pagination:_t}},[S,Ze,w,_t,Le]),{pages:je,rangedPages:yt}=A.useMemo(()=>tl.getRangedPages(it.page,xt,it.pageSize,it.pageRange),[xt,it.pageSize,it.page,it.pageRange]),[st,Rt]=A.useMemo(()=>g??[],[g]),Bt=A.useMemo(()=>wt.filter($=>st==null?void 0:st.some(_e=>le(_e,$))),[wt,st,le]),ze=A.useMemo(()=>wt.filter($=>!(m!=null&&m($))),[wt,m]),Tt=A.useMemo(()=>ze.length>0&&ze.every($=>Bt.some(_e=>le(_e,$))),[Bt,ze,le]),Ht=A.useMemo(()=>Tt?!1:ze.some($=>Bt.some(_e=>le(_e,$))),[Bt,ze,Tt,le]),_r=A.useCallback(()=>{!st||!Rt||E||Rt(Tt||Ht?st.filter($=>!ze.some(_e=>le(_e,$))):[...st,...ze])},[st,Rt,Tt,Ht,ze,E,le]),kr=A.useCallback($=>{!st||!Rt||E||(st.some(_e=>le(_e,$))?Rt(st.filter(_e=>!le(_e,$))):Rt([...st,$]))},[st,Rt,E,le]);A.useEffect(()=>{if(!Rt||!st||!m)return;st.filter(_e=>m(_e)).length>0&&Rt(st.filter(_e=>!m(_e)))},[m,st,Rt]);const Cr=A.useMemo(()=>({hContent:st&&v.jsx(Zu,{useCheck:[Tt,_r],isIndeterminate:Ht}),content:$=>{const{item:_e}=$,Ke=m==null?void 0:m(_e),mt=typeof Ke=="string"?Ke:void 0,Pt=st==null?void 0:st.some(Wt=>le(Wt,_e));return v.jsx(Zu,{style:{zIndex:1},isDisabled:Ke,tooltip:mt,onClick:Wt=>Wt.stopPropagation(),useCheck:[Pt,()=>kr(_e)]})},minWidth:32,maxWidth:32}),[st,Tt,Ht,le,_r,m,kr]),ve=A.useMemo(()=>g?{checkDef:Cr,...ge}:ge,[ge,Cr,g]),[ne,Je]=A.useState(!1),pt=A.useMemo(()=>R??ne,[R,ne]),$e=A.useCallback(async $=>{x&&(Je(!0),await x($),Je(!1)),Ct==null||Ct($.pagination),bt==null||bt($.sortation),we($.filteration)},[x,Ct,bt]);A.useEffect(()=>{if(!ce)return;const $=Ke=>{const mt={entireItems:S,filteration:Ue,pagination:it,sortation:Ne},Pt=Ke?Ke(mt):mt;$e(Pt)},_e=Ke=>{const mt={...it,page:1},Pt=Ke?Ke(Ue):Ue;$e({entireItems:S,filteration:Pt,pagination:mt,sortation:Ne}),Me==null||Me(Pt)};ce.current={fireOnStateChange:$,applyFilteration:_e}},[ce,$e,S,Me,Ue,it,Ne]);const De=A.useCallback($=>{$.page===it.page&&$.pageSize===it.pageSize||($.page<1?$.page=1:$.page>je[je.length-1]&&($.page=je[je.length-1]),$e({entireItems:S,filteration:Ee,pagination:$,sortation:Ne}))},[it,je,$e,S,Ee,Ne]),St=A.useCallback($=>{Me&&Me($)},[Me]),Et=A.useCallback($=>{$e({entireItems:S,filteration:Ee,pagination:it,sortation:$})},[$e,S,Ee,it]),ut=A.useCallback($=>{De({...it,page:$})},[De,it]),Nt=A.useCallback(()=>{ut(it.page-1)},[ut,it.page]),Qt=A.useCallback(()=>{ut(it.page+1)},[ut,it.page]),rr=A.useCallback(()=>{ut(1)},[ut]),Ft=A.useCallback(()=>{ut(je[je.length-1])},[ut,je]),zt=A.useMemo(()=>({move:ut,movePrev:Nt,moveNext:Qt,moveFirst:rr,moveLast:Ft}),[ut,Nt,Qt,rr,Ft]),nr=A.useCallback(()=>{const $={...it,page:1};$e({entireItems:S,filteration:Ue,pagination:$,sortation:Ne})},[Ue,it,$e,S,Ne]),et=A.useCallback(()=>{tt(!Xe)},[Xe]),At=A.useCallback(()=>{Xe&&pe?Ie==null||Ie(a0(pe)):Me==null||Me(a0(Pe))},[Xe,pe,Ie,Pe,Me]),vt=A.useMemo(()=>({apply:nr,toggle:et,clear:At}),[nr,et,At]);z2(()=>{Q||$e({entireItems:S,filteration:Ue,pagination:it,sortation:Ne})});const It=A.useMemo(()=>er.map(ge,([_e])=>ge[_e].minWidth??Yl).reduce((_e,Ke)=>_e+Ke,0),[ge]),pr=A.useMemo(()=>be!==void 0,[be]);return v.jsxs($r,{className:x8.ATable,isDisabled:E,style:{minWidth:It},children:[!Y&&v.jsx(yR,{defs:ge,title:_,totalCount:xt,useCheck:g&&st?[st,Rt]:void 0,useFilteration:[Ue,St],useSortation:[Ne,Et],isRowRendered:pr,hasToggleFilteration:pe!==void 0,filterF:vt,noFilter:he,noCount:j,isFiltered:ct,TopLeftAddon:J,TopRightAddon:me,resources:Se,filterType:O}),v.jsx(q8,{defs:ve,isEqual:le,rProps:i,useSelect:l,isSelectMulti:u,selectDisabled:f,isTableDisabled:E,appliedFilteration:Ee,useSortation:[Ne,Et],pagination:it,pagedItems:wt,showRows:z,isLoading:pt,noMarking:re,noDefHeader:fe,resources:Se,RowRenderer:be,isRowRendered:pr}),!X&&v.jsx(K8,{pages:je,rangedPages:yt,pageF:zt,pagination:it})]})},_R=r=>{const{defKey:e,item:t}=r;if(er.hasKey(t,e)){const n=t[e];return er.isReactNode(n)?n:null}else return null};function a0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const xR="_AText_1asz6_1",SR={AText:xR},V2=r=>{const{text:e,styled:t,style:n}=r,i=A.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?v.jsx("b",{children:e}):v.jsx("span",{style:n,children:e});if(typeof t=="string"){const l=e.split(t);return n==="bold"?l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1?v.jsx("b",{children:Ld(t)}):""]},f)):l.map((u,f)=>v.jsxs(A.Fragment,{children:[Ld(u),f<l.length-1&&v.jsx("span",{style:n,children:Ld(t)})]},f))}}else return e;else return e;else return""},[e,n,t]);return v.jsx("div",{className:Fe.clsx("Body1Reading",SR.AText,"NoSelect"),children:i})};function Ld(r){const e=r.split(`
162
+ `);return e.map((t,n)=>v.jsxs(A.Fragment,{children:[t,n!==e.length-1&&v.jsx("br",{})]},n))}const CR="_Base_sw5fu_7",wR="_ATextArea_sw5fu_11",AR="_Primary_sw5fu_34",TR="_UnAvailable_sw5fu_39",ER="_Secondary_sw5fu_47",kR="_ReadOnly_sw5fu_59",Md={Base:CR,ATextArea:wR,Primary:AR,UnAvailable:TR,Secondary:ER,ReadOnly:kR,Error:"_Error_sw5fu_66"},RR=["Primary","Secondary","ReadOnly","Error"],IR=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:i,useValue:l,rows:u,isReadonly:f,placeholder:g,maxLength:m,tabIndex:R,autoFocus:E,textAreaProps:_,wrapProps:S,helperText:x,label:M,wrapType:w,labelProps:b,...I}=r,O=A.useMemo(()=>LR(t)?"Error":n,[t,n]),H=A.useMemo(()=>O==="ReadOnly"?!0:f,[O,f]),q=A.useMemo(()=>I.isDisabled||I.isLoading,[I.isDisabled,I.isLoading]),[z,Y]=nn(l,""),fe=A.useCallback(j=>{Y&&Y(j)},[Y]),X=A.useCallback(j=>{var re;q||(fe(j.target.value),(re=_==null?void 0:_.onChange)==null||re.call(_,j))},[q,fe,_]),he=A.useCallback(j=>{var re;if(!q){if((re=_==null?void 0:_.onKeyDown)==null||re.call(_,j),j.key==="Tab"){const Q=j.currentTarget.selectionStart,J=j.currentTarget.selectionEnd;j.currentTarget.value=j.currentTarget.value.substring(0,Q)+" "+j.currentTarget.value.substring(J),j.currentTarget.selectionStart=j.currentTarget.selectionEnd=Q+1,j.preventDefault()}else j.key==="Enter"&&(e==null||e(j.currentTarget.value),j.stopPropagation());j.key!=="Escape"&&j.stopPropagation()}},[q,e,_]);return v.jsx(ec,{wrapProps:S,label:M,helperText:x,errorMessage:t,labelProps:b,wrapType:w??O==="Error"?"Error":"Default",children:v.jsx($r,{...I,className:Fe.clsx(Md.Base,I.className),children:v.jsx("textarea",{..._,className:Fe.clsx(Md.ATextArea,Md[O],q&&Md.UnAvailable,_==null?void 0:_.className),value:z,rows:u,readOnly:H,onChange:X,onKeyDown:he,placeholder:g,maxLength:m,tabIndex:I.isDisabled||I.isLoading?-1:R,autoFocus:E,ref:i})})})};function LR(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}var G2=typeof global=="object"&&global&&global.Object===Object&&global,MR=typeof self=="object"&&self&&self.Object===Object&&self,Aa=G2||MR||Function("return this")(),nc=Aa.Symbol,Z2=Object.prototype,DR=Z2.hasOwnProperty,OR=Z2.toString,Mf=nc?nc.toStringTag:void 0;function PR(r){var e=DR.call(r,Mf),t=r[Mf];try{r[Mf]=void 0;var n=!0}catch{}var i=OR.call(r);return n&&(e?r[Mf]=t:delete r[Mf]),i}var NR=Object.prototype,FR=NR.toString;function jR(r){return FR.call(r)}var BR="[object Null]",HR="[object Undefined]",l0=nc?nc.toStringTag:void 0;function tf(r){return r==null?r===void 0?HR:BR:l0&&l0 in Object(r)?PR(r):jR(r)}function il(r){return r!=null&&typeof r=="object"}var Yc=Array.isArray;function ic(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function K2(r){return r}var qR="[object AsyncFunction]",zR="[object Function]",$R="[object GeneratorFunction]",UR="[object Proxy]";function ym(r){if(!ic(r))return!1;var e=tf(r);return e==zR||e==$R||e==qR||e==UR}var Qh=Aa["__core-js_shared__"],c0=function(){var r=/[^.]+$/.exec(Qh&&Qh.keys&&Qh.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function WR(r){return!!c0&&c0 in r}var VR=Function.prototype,GR=VR.toString;function eu(r){if(r!=null){try{return GR.call(r)}catch{}try{return r+""}catch{}}return""}var ZR=/[\\^$.*+?()[\]{}|]/g,KR=/^\[object .+?Constructor\]$/,YR=Function.prototype,XR=Object.prototype,JR=YR.toString,QR=XR.hasOwnProperty,e9=RegExp("^"+JR.call(QR).replace(ZR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function t9(r){if(!ic(r)||WR(r))return!1;var e=ym(r)?e9:KR;return e.test(eu(r))}function r9(r,e){return r==null?void 0:r[e]}function tu(r,e){var t=r9(r,e);return t9(t)?t:void 0}var B1=tu(Aa,"WeakMap"),u0=Object.create,n9=function(){function r(){}return function(e){if(!ic(e))return{};if(u0)return u0(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function i9(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Y2(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var o9=800,s9=16,a9=Date.now;function l9(r){var e=0,t=0;return function(){var n=a9(),i=s9-(n-t);if(t=n,i>0){if(++e>=o9)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function c9(r){return function(){return r}}var Qd=function(){try{var r=tu(Object,"defineProperty");return r({},"",{}),r}catch{}}(),u9=Qd?function(r,e){return Qd(r,"toString",{configurable:!0,enumerable:!1,value:c9(e),writable:!0})}:K2,f9=l9(u9);function d9(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var h9=9007199254740991,p9=/^(?:0|[1-9]\d*)$/;function X2(r,e){var t=typeof r;return e=e??h9,!!e&&(t=="number"||t!="symbol"&&p9.test(r))&&r>-1&&r%1==0&&r<e}function bm(r,e,t){e=="__proto__"&&Qd?Qd(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function nd(r,e){return r===e||r!==r&&e!==e}var g9=Object.prototype,m9=g9.hasOwnProperty;function J2(r,e,t){var n=r[e];(!(m9.call(r,e)&&nd(n,t))||t===void 0&&!(e in r))&&bm(r,e,t)}function id(r,e,t,n){var i=!t;t||(t={});for(var l=-1,u=e.length;++l<u;){var f=e[l],g=void 0;g===void 0&&(g=r[f]),i?bm(t,f,g):J2(t,f,g)}return t}var f0=Math.max;function v9(r,e,t){return e=f0(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,l=f0(n.length-e,0),u=Array(l);++i<l;)u[i]=n[e+i];i=-1;for(var f=Array(e+1);++i<e;)f[i]=n[i];return f[e]=t(u),i9(r,this,f)}}function y9(r,e){return f9(v9(r,e,K2),r+"")}var b9=9007199254740991;function Q2(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=b9}function ch(r){return r!=null&&Q2(r.length)&&!ym(r)}function _9(r,e,t){if(!ic(t))return!1;var n=typeof e;return(n=="number"?ch(t)&&X2(e,t.length):n=="string"&&e in t)?nd(t[e],r):!1}function x9(r){return y9(function(e,t){var n=-1,i=t.length,l=i>1?t[i-1]:void 0,u=i>2?t[2]:void 0;for(l=r.length>3&&typeof l=="function"?(i--,l):void 0,u&&_9(t[0],t[1],u)&&(l=i<3?void 0:l,i=1),e=Object(e);++n<i;){var f=t[n];f&&r(e,f,n,l)}return e})}var S9=Object.prototype;function _m(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||S9;return r===t}function C9(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var w9="[object Arguments]";function d0(r){return il(r)&&tf(r)==w9}var ex=Object.prototype,A9=ex.hasOwnProperty,T9=ex.propertyIsEnumerable,H1=d0(function(){return arguments}())?d0:function(r){return il(r)&&A9.call(r,"callee")&&!T9.call(r,"callee")};function E9(){return!1}var tx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,h0=tx&&typeof module=="object"&&module&&!module.nodeType&&module,k9=h0&&h0.exports===tx,p0=k9?Aa.Buffer:void 0,R9=p0?p0.isBuffer:void 0,Yf=R9||E9,I9="[object Arguments]",L9="[object Array]",M9="[object Boolean]",D9="[object Date]",O9="[object Error]",P9="[object Function]",N9="[object Map]",F9="[object Number]",j9="[object Object]",B9="[object RegExp]",H9="[object Set]",q9="[object String]",z9="[object WeakMap]",$9="[object ArrayBuffer]",U9="[object DataView]",W9="[object Float32Array]",V9="[object Float64Array]",G9="[object Int8Array]",Z9="[object Int16Array]",K9="[object Int32Array]",Y9="[object Uint8Array]",X9="[object Uint8ClampedArray]",J9="[object Uint16Array]",Q9="[object Uint32Array]",xn={};xn[W9]=xn[V9]=xn[G9]=xn[Z9]=xn[K9]=xn[Y9]=xn[X9]=xn[J9]=xn[Q9]=!0;xn[I9]=xn[L9]=xn[$9]=xn[M9]=xn[U9]=xn[D9]=xn[O9]=xn[P9]=xn[N9]=xn[F9]=xn[j9]=xn[B9]=xn[H9]=xn[q9]=xn[z9]=!1;function e7(r){return il(r)&&Q2(r.length)&&!!xn[tf(r)]}function xm(r){return function(e){return r(e)}}var rx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$f=rx&&typeof module=="object"&&module&&!module.nodeType&&module,t7=$f&&$f.exports===rx,ep=t7&&G2.process,Ku=function(){try{var r=$f&&$f.require&&$f.require("util").types;return r||ep&&ep.binding&&ep.binding("util")}catch{}}(),g0=Ku&&Ku.isTypedArray,Sm=g0?xm(g0):e7,r7=Object.prototype,n7=r7.hasOwnProperty;function nx(r,e){var t=Yc(r),n=!t&&H1(r),i=!t&&!n&&Yf(r),l=!t&&!n&&!i&&Sm(r),u=t||n||i||l,f=u?C9(r.length,String):[],g=f.length;for(var m in r)(e||n7.call(r,m))&&!(u&&(m=="length"||i&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||X2(m,g)))&&f.push(m);return f}function ix(r,e){return function(t){return r(e(t))}}var i7=ix(Object.keys,Object),o7=Object.prototype,s7=o7.hasOwnProperty;function a7(r){if(!_m(r))return i7(r);var e=[];for(var t in Object(r))s7.call(r,t)&&t!="constructor"&&e.push(t);return e}function Cm(r){return ch(r)?nx(r):a7(r)}function l7(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var c7=Object.prototype,u7=c7.hasOwnProperty;function f7(r){if(!ic(r))return l7(r);var e=_m(r),t=[];for(var n in r)n=="constructor"&&(e||!u7.call(r,n))||t.push(n);return t}function od(r){return ch(r)?nx(r,!0):f7(r)}var Xf=tu(Object,"create");function d7(){this.__data__=Xf?Xf(null):{},this.size=0}function h7(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var p7="__lodash_hash_undefined__",g7=Object.prototype,m7=g7.hasOwnProperty;function v7(r){var e=this.__data__;if(Xf){var t=e[r];return t===p7?void 0:t}return m7.call(e,r)?e[r]:void 0}var y7=Object.prototype,b7=y7.hasOwnProperty;function _7(r){var e=this.__data__;return Xf?e[r]!==void 0:b7.call(e,r)}var x7="__lodash_hash_undefined__";function S7(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Xf&&e===void 0?x7:e,this}function Xc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Xc.prototype.clear=d7;Xc.prototype.delete=h7;Xc.prototype.get=v7;Xc.prototype.has=_7;Xc.prototype.set=S7;function C7(){this.__data__=[],this.size=0}function uh(r,e){for(var t=r.length;t--;)if(nd(r[t][0],e))return t;return-1}var w7=Array.prototype,A7=w7.splice;function T7(r){var e=this.__data__,t=uh(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():A7.call(e,t,1),--this.size,!0}function E7(r){var e=this.__data__,t=uh(e,r);return t<0?void 0:e[t][1]}function k7(r){return uh(this.__data__,r)>-1}function R7(r,e){var t=this.__data__,n=uh(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function ll(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ll.prototype.clear=C7;ll.prototype.delete=T7;ll.prototype.get=E7;ll.prototype.has=k7;ll.prototype.set=R7;var Jf=tu(Aa,"Map");function I7(){this.size=0,this.__data__={hash:new Xc,map:new(Jf||ll),string:new Xc}}function L7(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function fh(r,e){var t=r.__data__;return L7(e)?t[typeof e=="string"?"string":"hash"]:t.map}function M7(r){var e=fh(this,r).delete(r);return this.size-=e?1:0,e}function D7(r){return fh(this,r).get(r)}function O7(r){return fh(this,r).has(r)}function P7(r,e){var t=fh(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function ru(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}ru.prototype.clear=I7;ru.prototype.delete=M7;ru.prototype.get=D7;ru.prototype.has=O7;ru.prototype.set=P7;function ox(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var wm=ix(Object.getPrototypeOf,Object),N7="[object Object]",F7=Function.prototype,j7=Object.prototype,sx=F7.toString,B7=j7.hasOwnProperty,H7=sx.call(Object);function q7(r){if(!il(r)||tf(r)!=N7)return!1;var e=wm(r);if(e===null)return!0;var t=B7.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sx.call(t)==H7}function z7(){this.__data__=new ll,this.size=0}function $7(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function U7(r){return this.__data__.get(r)}function W7(r){return this.__data__.has(r)}var V7=200;function G7(r,e){var t=this.__data__;if(t instanceof ll){var n=t.__data__;if(!Jf||n.length<V7-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new ru(n)}return t.set(r,e),this.size=t.size,this}function _a(r){var e=this.__data__=new ll(r);this.size=e.size}_a.prototype.clear=z7;_a.prototype.delete=$7;_a.prototype.get=U7;_a.prototype.has=W7;_a.prototype.set=G7;function Z7(r,e){return r&&id(e,Cm(e),r)}function K7(r,e){return r&&id(e,od(e),r)}var ax=typeof exports=="object"&&exports&&!exports.nodeType&&exports,m0=ax&&typeof module=="object"&&module&&!module.nodeType&&module,Y7=m0&&m0.exports===ax,v0=Y7?Aa.Buffer:void 0,y0=v0?v0.allocUnsafe:void 0;function lx(r,e){if(e)return r.slice();var t=r.length,n=y0?y0(t):new r.constructor(t);return r.copy(n),n}function X7(r,e){for(var t=-1,n=r==null?0:r.length,i=0,l=[];++t<n;){var u=r[t];e(u,t,r)&&(l[i++]=u)}return l}function cx(){return[]}var J7=Object.prototype,Q7=J7.propertyIsEnumerable,b0=Object.getOwnPropertySymbols,Am=b0?function(r){return r==null?[]:(r=Object(r),X7(b0(r),function(e){return Q7.call(r,e)}))}:cx;function eI(r,e){return id(r,Am(r),e)}var tI=Object.getOwnPropertySymbols,ux=tI?function(r){for(var e=[];r;)ox(e,Am(r)),r=wm(r);return e}:cx;function rI(r,e){return id(r,ux(r),e)}function fx(r,e,t){var n=e(r);return Yc(r)?n:ox(n,t(r))}function q1(r){return fx(r,Cm,Am)}function nI(r){return fx(r,od,ux)}var z1=tu(Aa,"DataView"),$1=tu(Aa,"Promise"),U1=tu(Aa,"Set"),_0="[object Map]",iI="[object Object]",x0="[object Promise]",S0="[object Set]",C0="[object WeakMap]",w0="[object DataView]",oI=eu(z1),sI=eu(Jf),aI=eu($1),lI=eu(U1),cI=eu(B1),Fs=tf;(z1&&Fs(new z1(new ArrayBuffer(1)))!=w0||Jf&&Fs(new Jf)!=_0||$1&&Fs($1.resolve())!=x0||U1&&Fs(new U1)!=S0||B1&&Fs(new B1)!=C0)&&(Fs=function(r){var e=tf(r),t=e==iI?r.constructor:void 0,n=t?eu(t):"";if(n)switch(n){case oI:return w0;case sI:return _0;case aI:return x0;case lI:return S0;case cI:return C0}return e});var uI=Object.prototype,fI=uI.hasOwnProperty;function dI(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&fI.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var eh=Aa.Uint8Array;function Tm(r){var e=new r.constructor(r.byteLength);return new eh(e).set(new eh(r)),e}function hI(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var pI=/\w*$/;function gI(r){var e=new r.constructor(r.source,pI.exec(r));return e.lastIndex=r.lastIndex,e}var A0=nc?nc.prototype:void 0,T0=A0?A0.valueOf:void 0;function mI(r){return T0?Object(T0.call(r)):{}}function dx(r,e){var t=e?Tm(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var vI="[object Boolean]",yI="[object Date]",bI="[object Map]",_I="[object Number]",xI="[object RegExp]",SI="[object Set]",CI="[object String]",wI="[object Symbol]",AI="[object ArrayBuffer]",TI="[object DataView]",EI="[object Float32Array]",kI="[object Float64Array]",RI="[object Int8Array]",II="[object Int16Array]",LI="[object Int32Array]",MI="[object Uint8Array]",DI="[object Uint8ClampedArray]",OI="[object Uint16Array]",PI="[object Uint32Array]";function NI(r,e,t){var n=r.constructor;switch(e){case AI:return Tm(r);case vI:case yI:return new n(+r);case TI:return hI(r,t);case EI:case kI:case RI:case II:case LI:case MI:case DI:case OI:case PI:return dx(r,t);case bI:return new n;case _I:case CI:return new n(r);case xI:return gI(r);case SI:return new n;case wI:return mI(r)}}function hx(r){return typeof r.constructor=="function"&&!_m(r)?n9(wm(r)):{}}var FI="[object Map]";function jI(r){return il(r)&&Fs(r)==FI}var E0=Ku&&Ku.isMap,BI=E0?xm(E0):jI,HI="[object Set]";function qI(r){return il(r)&&Fs(r)==HI}var k0=Ku&&Ku.isSet,zI=k0?xm(k0):qI,$I=1,UI=2,WI=4,px="[object Arguments]",VI="[object Array]",GI="[object Boolean]",ZI="[object Date]",KI="[object Error]",gx="[object Function]",YI="[object GeneratorFunction]",XI="[object Map]",JI="[object Number]",mx="[object Object]",QI="[object RegExp]",eL="[object Set]",tL="[object String]",rL="[object Symbol]",nL="[object WeakMap]",iL="[object ArrayBuffer]",oL="[object DataView]",sL="[object Float32Array]",aL="[object Float64Array]",lL="[object Int8Array]",cL="[object Int16Array]",uL="[object Int32Array]",fL="[object Uint8Array]",dL="[object Uint8ClampedArray]",hL="[object Uint16Array]",pL="[object Uint32Array]",gn={};gn[px]=gn[VI]=gn[iL]=gn[oL]=gn[GI]=gn[ZI]=gn[sL]=gn[aL]=gn[lL]=gn[cL]=gn[uL]=gn[XI]=gn[JI]=gn[mx]=gn[QI]=gn[eL]=gn[tL]=gn[rL]=gn[fL]=gn[dL]=gn[hL]=gn[pL]=!0;gn[KI]=gn[gx]=gn[nL]=!1;function Ud(r,e,t,n,i,l){var u,f=e&$I,g=e&UI,m=e&WI;if(u!==void 0)return u;if(!ic(r))return r;var R=Yc(r);if(R){if(u=dI(r),!f)return Y2(r,u)}else{var E=Fs(r),_=E==gx||E==YI;if(Yf(r))return lx(r,f);if(E==mx||E==px||_&&!i){if(u=g||_?{}:hx(r),!f)return g?rI(r,K7(u,r)):eI(r,Z7(u,r))}else{if(!gn[E])return i?r:{};u=NI(r,E,f)}}l||(l=new _a);var S=l.get(r);if(S)return S;l.set(r,u),zI(r)?r.forEach(function(w){u.add(Ud(w,e,t,w,r,l))}):BI(r)&&r.forEach(function(w,b){u.set(b,Ud(w,e,t,b,r,l))});var x=m?g?nI:q1:g?od:Cm,M=R?void 0:x(r);return d9(M||r,function(w,b){M&&(b=w,w=r[b]),J2(u,b,Ud(w,e,t,b,r,l))}),u}var gL=1,mL=4;function Uu(r){return Ud(r,gL|mL)}var vL="__lodash_hash_undefined__";function yL(r){return this.__data__.set(r,vL),this}function bL(r){return this.__data__.has(r)}function th(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new ru;++e<t;)this.add(r[e])}th.prototype.add=th.prototype.push=yL;th.prototype.has=bL;function _L(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function xL(r,e){return r.has(e)}var SL=1,CL=2;function vx(r,e,t,n,i,l){var u=t&SL,f=r.length,g=e.length;if(f!=g&&!(u&&g>f))return!1;var m=l.get(r),R=l.get(e);if(m&&R)return m==e&&R==r;var E=-1,_=!0,S=t&CL?new th:void 0;for(l.set(r,e),l.set(e,r);++E<f;){var x=r[E],M=e[E];if(n)var w=u?n(M,x,E,e,r,l):n(x,M,E,r,e,l);if(w!==void 0){if(w)continue;_=!1;break}if(S){if(!_L(e,function(b,I){if(!xL(S,I)&&(x===b||i(x,b,t,n,l)))return S.push(I)})){_=!1;break}}else if(!(x===M||i(x,M,t,n,l))){_=!1;break}}return l.delete(r),l.delete(e),_}function wL(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}function AL(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var TL=1,EL=2,kL="[object Boolean]",RL="[object Date]",IL="[object Error]",LL="[object Map]",ML="[object Number]",DL="[object RegExp]",OL="[object Set]",PL="[object String]",NL="[object Symbol]",FL="[object ArrayBuffer]",jL="[object DataView]",R0=nc?nc.prototype:void 0,tp=R0?R0.valueOf:void 0;function BL(r,e,t,n,i,l,u){switch(t){case jL:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case FL:return!(r.byteLength!=e.byteLength||!l(new eh(r),new eh(e)));case kL:case RL:case ML:return nd(+r,+e);case IL:return r.name==e.name&&r.message==e.message;case DL:case PL:return r==e+"";case LL:var f=wL;case OL:var g=n&TL;if(f||(f=AL),r.size!=e.size&&!g)return!1;var m=u.get(r);if(m)return m==e;n|=EL,u.set(r,e);var R=vx(f(r),f(e),n,i,l,u);return u.delete(r),R;case NL:if(tp)return tp.call(r)==tp.call(e)}return!1}var HL=1,qL=Object.prototype,zL=qL.hasOwnProperty;function $L(r,e,t,n,i,l){var u=t&HL,f=q1(r),g=f.length,m=q1(e),R=m.length;if(g!=R&&!u)return!1;for(var E=g;E--;){var _=f[E];if(!(u?_ in e:zL.call(e,_)))return!1}var S=l.get(r),x=l.get(e);if(S&&x)return S==e&&x==r;var M=!0;l.set(r,e),l.set(e,r);for(var w=u;++E<g;){_=f[E];var b=r[_],I=e[_];if(n)var O=u?n(I,b,_,e,r,l):n(b,I,_,r,e,l);if(!(O===void 0?b===I||i(b,I,t,n,l):O)){M=!1;break}w||(w=_=="constructor")}if(M&&!w){var H=r.constructor,q=e.constructor;H!=q&&"constructor"in r&&"constructor"in e&&!(typeof H=="function"&&H instanceof H&&typeof q=="function"&&q instanceof q)&&(M=!1)}return l.delete(r),l.delete(e),M}var UL=1,I0="[object Arguments]",L0="[object Array]",Dd="[object Object]",WL=Object.prototype,M0=WL.hasOwnProperty;function VL(r,e,t,n,i,l){var u=Yc(r),f=Yc(e),g=u?L0:Fs(r),m=f?L0:Fs(e);g=g==I0?Dd:g,m=m==I0?Dd:m;var R=g==Dd,E=m==Dd,_=g==m;if(_&&Yf(r)){if(!Yf(e))return!1;u=!0,R=!1}if(_&&!R)return l||(l=new _a),u||Sm(r)?vx(r,e,t,n,i,l):BL(r,e,g,t,n,i,l);if(!(t&UL)){var S=R&&M0.call(r,"__wrapped__"),x=E&&M0.call(e,"__wrapped__");if(S||x){var M=S?r.value():r,w=x?e.value():e;return l||(l=new _a),i(M,w,t,n,l)}}return _?(l||(l=new _a),$L(r,e,t,n,i,l)):!1}function yx(r,e,t,n,i){return r===e?!0:r==null||e==null||!il(r)&&!il(e)?r!==r&&e!==e:VL(r,e,t,n,yx,i)}function GL(r){return function(e,t,n){for(var i=-1,l=Object(e),u=n(e),f=u.length;f--;){var g=u[++i];if(t(l[g],g,l)===!1)break}return e}}var ZL=GL();function W1(r,e,t){(t!==void 0&&!nd(r[e],t)||t===void 0&&!(e in r))&&bm(r,e,t)}function KL(r){return il(r)&&ch(r)}function V1(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function YL(r){return id(r,od(r))}function XL(r,e,t,n,i,l,u){var f=V1(r,t),g=V1(e,t),m=u.get(g);if(m){W1(r,t,m);return}var R=l?l(f,g,t+"",r,e,u):void 0,E=R===void 0;if(E){var _=Yc(g),S=!_&&Yf(g),x=!_&&!S&&Sm(g);R=g,_||S||x?Yc(f)?R=f:KL(f)?R=Y2(f):S?(E=!1,R=lx(g,!0)):x?(E=!1,R=dx(g,!0)):R=[]:q7(g)||H1(g)?(R=f,H1(f)?R=YL(f):(!ic(f)||ym(f))&&(R=hx(g))):E=!1}E&&(u.set(g,R),i(R,g,n,l,u),u.delete(g)),W1(r,t,R)}function bx(r,e,t,n,i){r!==e&&ZL(e,function(l,u){if(i||(i=new _a),ic(l))XL(r,e,u,t,bx,n,i);else{var f=n?n(V1(r,u),l,u+"",r,e,i):void 0;f===void 0&&(f=l),W1(r,u,f)}},od)}function Em(r,e){return yx(r,e)}var Ql=x9(function(r,e,t){bx(r,e,t)}),Jt=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(Jt||{});class Ca{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const i=Jt.TYPE&Jt.ATTRIBUTE;this.scope=n.scope!=null?n.scope&Jt.LEVEL|i:Jt.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class Wu extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const _x=class G1{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const i=this.query(t);if(i==null)throw new Wu(`Unable to create ${t} blot`);const l=i,u=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:l.create(n),f=new l(e,u,n);return G1.blots.set(f.domNode,f),f}find(e,t=!1){return G1.find(e,t)}query(e,t=Jt.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&Jt.LEVEL&Jt.BLOCK?n=this.types.block:e&Jt.LEVEL&Jt.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(n=this.classes[i],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&Jt.LEVEL&n.scope&&t&Jt.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,i="attrName"in t;if(!n&&!i)throw new Wu("Invalid definition");if(n&&t.blotName==="abstract")throw new Wu("Cannot register abstract class");const l=n?t.blotName:i?t.attrName:void 0;return this.types[l]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(u=>u.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(u=>{(this.tags[u]==null||t.className==null)&&(this.tags[u]=t)}))),t})}};_x.blots=new WeakMap;let Yu=_x;function D0(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class JL extends Ca{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){D0(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(D0(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const Us=JL;function rp(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class QL extends Ca{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[rp(this.keyName)]=t,!0):!1}remove(e){e.style[rp(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[rp(this.keyName)];return this.canAdd(e,t)?t:""}}const oc=QL;class eM{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Yu.find(this.domNode);if(e==null)return;const t=Ca.keys(this.domNode),n=Us.keys(this.domNode),i=oc.keys(this.domNode);t.concat(n).concat(i).forEach(l=>{const u=e.scroll.query(l,Jt.ATTRIBUTE);u instanceof Ca&&(this.attributes[u.attrName]=u)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const dh=eM,xx=class{constructor(e,t){this.scroll=e,this.domNode=t,Yu.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Wu("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Yu.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,i){const l=this.isolate(e,t);if(this.scroll.query(n,Jt.BLOT)!=null&&i)l.wrap(n,i);else if(this.scroll.query(n,Jt.ATTRIBUTE)!=null){const u=this.scroll.create(this.statics.scope);l.wrap(u),u.format(n,i)}}insertAt(e,t,n){const i=n==null?this.scroll.create("text",t):this.scroll.create(t,n),l=this.split(e);this.parent.insertBefore(i,l||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new Wu(`Cannot wrap ${e}`);return n.appendChild(this),n}};xx.blotName="abstract";let Sx=xx;const Cx=class extends Sx{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Cx.scope=Jt.INLINE_BLOT;let tM=Cx;const qi=tM;class rM{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),i=0;for(;n;){if(n===e)return i;i+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let i=n();for(;i;){const l=i.length();if(e<l||t&&e===l&&(i.next==null||i.next.length()!==0))return[i,e];e-=l,i=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[i,l]=this.find(e);let u=e-l;const f=this.iterator(i);let g=f();for(;g&&u<e+t;){const m=g.length();e>u?n(g,e-u,Math.min(t,u+m-e)):n(g,0,Math.min(m,e+t-u)),u+=m,g=f()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let i=n();for(;i;)t=e(t,i),i=n();return t}}function O0(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(Jt.INLINE);return Array.from(r.childNodes).forEach(i=>{n.domNode.appendChild(i)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const wx=class Kl extends Sx{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Kl.uiClass&&this.uiNode.classList.add(Kl.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new rM,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=O0(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Wu)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,i,l)=>{n.deleteAt(i,l)})}descendant(e,t=0){const[n,i]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,i]:n instanceof Kl?n.descendant(e,i):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let i=[],l=n;return this.children.forEachAt(t,n,(u,f,g)=>{(e.blotName==null&&e(u)||e.blotName!=null&&u instanceof e)&&i.push(u),u instanceof Kl&&(i=i.concat(u.descendants(e,f,l))),l-=g}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===Jt.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Kl?t.unwrap():t.remove())})}formatAt(e,t,n,i){this.children.forEachAt(e,t,(l,u,f)=>{l.formatAt(u,f,n,i)})}insertAt(e,t,n){const[i,l]=this.children.find(e);if(i)i.insertAt(l,t,n);else{const u=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(u)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,i]=this.children.find(e,t),l=[[this,e]];return n instanceof Kl?l.concat(n.path(i,t)):(n!=null&&l.push([n,i]),l)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Kl&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(i,l,u)=>{const f=i.split(l,t);f!=null&&n.appendChild(f)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],i=[];e.forEach(l=>{l.target===this.domNode&&l.type==="childList"&&(n.push(...l.addedNodes),i.push(...l.removedNodes))}),i.forEach(l=>{if(l.parentNode!=null&&l.tagName!=="IFRAME"&&document.body.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const u=this.scroll.find(l);u!=null&&(u.domNode.parentNode==null||u.domNode.parentNode===this.domNode)&&u.detach()}),n.filter(l=>l.parentNode===this.domNode&&l!==this.uiNode).sort((l,u)=>l===u?0:l.compareDocumentPosition(u)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(l=>{let u=null;l.nextSibling!=null&&(u=this.scroll.find(l.nextSibling));const f=O0(l,this.scroll);(f.next!==u||f.next==null)&&(f.parent!=null&&f.parent.removeChild(this),this.insertBefore(f,u||void 0))}),this.enforceAllowedChildren()}};wx.uiClass="";let nM=wx;const qs=nM;function iM(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Pu=class Nu extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Nu.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Nu||(n=n.wrap(Nu.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,Jt.INLINE);if(n==null)return;n instanceof Ca?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.formats()[n]!=null||this.scroll.query(n,Jt.ATTRIBUTE)?this.isolate(e,t).format(n,i):super.formatAt(e,t,n,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Nu&&n.prev===this&&iM(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof Nu&&this.attributes.move(n),n}};Pu.allowedChildren=[Pu,qi],Pu.blotName="inline",Pu.scope=Jt.INLINE_BLOT,Pu.tagName="SPAN";let oM=Pu;const km=oM,Fu=class Z1 extends qs{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Z1.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new dh(this.domNode)}format(e,t){const n=this.scroll.query(e,Jt.BLOCK);n!=null&&(n instanceof Ca?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(Z1.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,i){this.scroll.query(n,Jt.BLOCK)!=null?this.format(n,i):super.formatAt(e,t,n,i)}insertAt(e,t,n){if(n==null||this.scroll.query(t,Jt.INLINE)!=null)super.insertAt(e,t,n);else{const i=this.split(e);if(i!=null){const l=this.scroll.create(t,n);i.parent.insertBefore(l,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Fu.blotName="block",Fu.scope=Jt.BLOCK_BLOT,Fu.tagName="P",Fu.allowedChildren=[km,Fu,qi];let sM=Fu;const Qf=sM,K1=class extends qs{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};K1.blotName="container",K1.scope=Jt.BLOCK_BLOT;let aM=K1;const hh=aM;class lM extends qi{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,i){e===0&&t===this.length()?this.format(n,i):super.formatAt(e,t,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const zo=lM,cM={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},uM=100,ju=class extends qs{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,cM),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=Jt.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,i){this.update(),super.formatAt(e,t,n,i)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const l=(g,m=!0)=>{g==null||g===this||g.domNode.parentNode!=null&&(n.has(g.domNode)||n.set(g.domNode,[]),m&&l(g.parent))},u=g=>{n.has(g.domNode)&&(g instanceof qs&&g.children.forEach(u),n.delete(g.domNode),g.optimize(t))};let f=e;for(let g=0;f.length>0;g+=1){if(g>=uM)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(m=>{const R=this.find(m.target,!0);R!=null&&(R.domNode===m.target&&(m.type==="childList"?(l(this.find(m.previousSibling,!1)),Array.from(m.addedNodes).forEach(E=>{const _=this.find(E,!1);l(_,!1),_ instanceof qs&&_.children.forEach(S=>{l(S,!1)})})):m.type==="attributes"&&l(R.prev)),l(R))}),this.children.forEach(u),f=Array.from(this.observer.takeRecords()),i=f.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(i=>{const l=this.find(i.target,!0);return l==null?null:n.has(l.domNode)?(n.get(l.domNode).push(i),null):(n.set(l.domNode,[i]),l)}).forEach(i=>{i!=null&&i!==this&&n.has(i.domNode)&&i.update(n.get(i.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};ju.blotName="scroll",ju.defaultChild=Qf,ju.allowedChildren=[Qf,hh],ju.scope=Jt.BLOCK_BLOT,ju.tagName="DIV";let fM=ju;const Rm=fM,Y1=class Ax extends qi{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Ax&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Y1.blotName="text",Y1.scope=Jt.INLINE_BLOT;let dM=Y1;const rh=dM,hM=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Ca,AttributorStore:dh,BlockBlot:Qf,ClassAttributor:Us,ContainerBlot:hh,EmbedBlot:zo,InlineBlot:km,LeafBlot:qi,ParentBlot:qs,Registry:Yu,Scope:Jt,ScrollBlot:Rm,StyleAttributor:oc,TextBlot:rh},Symbol.toStringTag,{value:"Module"}));var Od={exports:{}},np,P0;function pM(){if(P0)return np;P0=1;var r=-1,e=1,t=0;function n(j,re,Q,J,me){if(j===re)return j?[[t,j]]:[];if(Q!=null){var ce=X(j,re,Q);if(ce)return ce}var be=f(j,re),ue=j.substring(0,be);j=j.substring(be),re=re.substring(be),be=m(j,re);var Se=j.substring(j.length-be);j=j.substring(0,j.length-be),re=re.substring(0,re.length-be);var le=i(j,re);return ue&&le.unshift([t,ue]),Se&&le.push([t,Se]),I(le,me),J&&E(le),le}function i(j,re){var Q;if(!j)return[[e,re]];if(!re)return[[r,j]];var J=j.length>re.length?j:re,me=j.length>re.length?re:j,ce=J.indexOf(me);if(ce!==-1)return Q=[[e,J.substring(0,ce)],[t,me],[e,J.substring(ce+me.length)]],j.length>re.length&&(Q[0][0]=Q[2][0]=r),Q;if(me.length===1)return[[r,j],[e,re]];var be=R(j,re);if(be){var ue=be[0],Se=be[1],le=be[2],ae=be[3],ge=be[4],Pe=n(ue,le),Qe=n(Se,ae);return Pe.concat([[t,ge]],Qe)}return l(j,re)}function l(j,re){for(var Q=j.length,J=re.length,me=Math.ceil((Q+J)/2),ce=me,be=2*me,ue=new Array(be),Se=new Array(be),le=0;le<be;le++)ue[le]=-1,Se[le]=-1;ue[ce+1]=0,Se[ce+1]=0;for(var ae=Q-J,ge=ae%2!==0,Pe=0,Qe=0,pe=0,Ie=0,Xe=0;Xe<me;Xe++){for(var tt=-Xe+Pe;tt<=Xe-Qe;tt+=2){var Ue=ce+tt,Me;tt===-Xe||tt!==Xe&&ue[Ue-1]<ue[Ue+1]?Me=ue[Ue+1]:Me=ue[Ue-1]+1;for(var Ee=Me-tt;Me<Q&&Ee<J&&j.charAt(Me)===re.charAt(Ee);)Me++,Ee++;if(ue[Ue]=Me,Me>Q)Qe+=2;else if(Ee>J)Pe+=2;else if(ge){var we=ce+ae-tt;if(we>=0&&we<be&&Se[we]!==-1){var We=Q-Se[we];if(Me>=We)return u(j,re,Me,Ee)}}}for(var ct=-Xe+pe;ct<=Xe-Ie;ct+=2){var we=ce+ct,We;ct===-Xe||ct!==Xe&&Se[we-1]<Se[we+1]?We=Se[we+1]:We=Se[we-1]+1;for(var Ne=We-ct;We<Q&&Ne<J&&j.charAt(Q-We-1)===re.charAt(J-Ne-1);)We++,Ne++;if(Se[we]=We,We>Q)Ie+=2;else if(Ne>J)pe+=2;else if(!ge){var Ue=ce+ae-ct;if(Ue>=0&&Ue<be&&ue[Ue]!==-1){var Me=ue[Ue],Ee=ce+Me-Ue;if(We=Q-We,Me>=We)return u(j,re,Me,Ee)}}}}return[[r,j],[e,re]]}function u(j,re,Q,J){var me=j.substring(0,Q),ce=re.substring(0,J),be=j.substring(Q),ue=re.substring(J),Se=n(me,ce),le=n(be,ue);return Se.concat(le)}function f(j,re){if(!j||!re||j.charAt(0)!==re.charAt(0))return 0;for(var Q=0,J=Math.min(j.length,re.length),me=J,ce=0;Q<me;)j.substring(ce,me)==re.substring(ce,me)?(Q=me,ce=Q):J=me,me=Math.floor((J-Q)/2+Q);return O(j.charCodeAt(me-1))&&me--,me}function g(j,re){var Q=j.length,J=re.length;if(Q==0||J==0)return 0;Q>J?j=j.substring(Q-J):Q<J&&(re=re.substring(0,Q));var me=Math.min(Q,J);if(j==re)return me;for(var ce=0,be=1;;){var ue=j.substring(me-be),Se=re.indexOf(ue);if(Se==-1)return ce;be+=Se,(Se==0||j.substring(me-be)==re.substring(0,be))&&(ce=be,be++)}}function m(j,re){if(!j||!re||j.slice(-1)!==re.slice(-1))return 0;for(var Q=0,J=Math.min(j.length,re.length),me=J,ce=0;Q<me;)j.substring(j.length-me,j.length-ce)==re.substring(re.length-me,re.length-ce)?(Q=me,ce=Q):J=me,me=Math.floor((J-Q)/2+Q);return H(j.charCodeAt(j.length-me))&&me--,me}function R(j,re){var Q=j.length>re.length?j:re,J=j.length>re.length?re:j;if(Q.length<4||J.length*2<Q.length)return null;function me(Qe,pe,Ie){for(var Xe=Qe.substring(Ie,Ie+Math.floor(Qe.length/4)),tt=-1,Ue="",Me,Ee,we,We;(tt=pe.indexOf(Xe,tt+1))!==-1;){var ct=f(Qe.substring(Ie),pe.substring(tt)),Ne=m(Qe.substring(0,Ie),pe.substring(0,tt));Ue.length<Ne+ct&&(Ue=pe.substring(tt-Ne,tt)+pe.substring(tt,tt+ct),Me=Qe.substring(0,Ie-Ne),Ee=Qe.substring(Ie+ct),we=pe.substring(0,tt-Ne),We=pe.substring(tt+ct))}return Ue.length*2>=Qe.length?[Me,Ee,we,We,Ue]:null}var ce=me(Q,J,Math.ceil(Q.length/4)),be=me(Q,J,Math.ceil(Q.length/2)),ue;if(!ce&&!be)return null;be?ce?ue=ce[4].length>be[4].length?ce:be:ue=be:ue=ce;var Se,le,ae,ge;j.length>re.length?(Se=ue[0],le=ue[1],ae=ue[2],ge=ue[3]):(ae=ue[0],ge=ue[1],Se=ue[2],le=ue[3]);var Pe=ue[4];return[Se,le,ae,ge,Pe]}function E(j){for(var re=!1,Q=[],J=0,me=null,ce=0,be=0,ue=0,Se=0,le=0;ce<j.length;)j[ce][0]==t?(Q[J++]=ce,be=Se,ue=le,Se=0,le=0,me=j[ce][1]):(j[ce][0]==e?Se+=j[ce][1].length:le+=j[ce][1].length,me&&me.length<=Math.max(be,ue)&&me.length<=Math.max(Se,le)&&(j.splice(Q[J-1],0,[r,me]),j[Q[J-1]+1][0]=e,J--,J--,ce=J>0?Q[J-1]:-1,be=0,ue=0,Se=0,le=0,me=null,re=!0)),ce++;for(re&&I(j),b(j),ce=1;ce<j.length;){if(j[ce-1][0]==r&&j[ce][0]==e){var ae=j[ce-1][1],ge=j[ce][1],Pe=g(ae,ge),Qe=g(ge,ae);Pe>=Qe?(Pe>=ae.length/2||Pe>=ge.length/2)&&(j.splice(ce,0,[t,ge.substring(0,Pe)]),j[ce-1][1]=ae.substring(0,ae.length-Pe),j[ce+1][1]=ge.substring(Pe),ce++):(Qe>=ae.length/2||Qe>=ge.length/2)&&(j.splice(ce,0,[t,ae.substring(0,Qe)]),j[ce-1][0]=e,j[ce-1][1]=ge.substring(0,ge.length-Qe),j[ce+1][0]=r,j[ce+1][1]=ae.substring(Qe),ce++),ce++}ce++}}var _=/[^a-zA-Z0-9]/,S=/\s/,x=/[\r\n]/,M=/\n\r?\n$/,w=/^\r?\n\r?\n/;function b(j){function re(Qe,pe){if(!Qe||!pe)return 6;var Ie=Qe.charAt(Qe.length-1),Xe=pe.charAt(0),tt=Ie.match(_),Ue=Xe.match(_),Me=tt&&Ie.match(S),Ee=Ue&&Xe.match(S),we=Me&&Ie.match(x),We=Ee&&Xe.match(x),ct=we&&Qe.match(M),Ne=We&&pe.match(w);return ct||Ne?5:we||We?4:tt&&!Me&&Ee?3:Me||Ee?2:tt||Ue?1:0}for(var Q=1;Q<j.length-1;){if(j[Q-1][0]==t&&j[Q+1][0]==t){var J=j[Q-1][1],me=j[Q][1],ce=j[Q+1][1],be=m(J,me);if(be){var ue=me.substring(me.length-be);J=J.substring(0,J.length-be),me=ue+me.substring(0,me.length-be),ce=ue+ce}for(var Se=J,le=me,ae=ce,ge=re(J,me)+re(me,ce);me.charAt(0)===ce.charAt(0);){J+=me.charAt(0),me=me.substring(1)+ce.charAt(0),ce=ce.substring(1);var Pe=re(J,me)+re(me,ce);Pe>=ge&&(ge=Pe,Se=J,le=me,ae=ce)}j[Q-1][1]!=Se&&(Se?j[Q-1][1]=Se:(j.splice(Q-1,1),Q--),j[Q][1]=le,ae?j[Q+1][1]=ae:(j.splice(Q+1,1),Q--))}Q++}}function I(j,re){j.push([t,""]);for(var Q=0,J=0,me=0,ce="",be="",ue;Q<j.length;){if(Q<j.length-1&&!j[Q][1]){j.splice(Q,1);continue}switch(j[Q][0]){case e:me++,be+=j[Q][1],Q++;break;case r:J++,ce+=j[Q][1],Q++;break;case t:var Se=Q-me-J-1;if(re){if(Se>=0&&z(j[Se][1])){var le=j[Se][1].slice(-1);if(j[Se][1]=j[Se][1].slice(0,-1),ce=le+ce,be=le+be,!j[Se][1]){j.splice(Se,1),Q--;var ae=Se-1;j[ae]&&j[ae][0]===e&&(me++,be=j[ae][1]+be,ae--),j[ae]&&j[ae][0]===r&&(J++,ce=j[ae][1]+ce,ae--),Se=ae}}if(q(j[Q][1])){var le=j[Q][1].charAt(0);j[Q][1]=j[Q][1].slice(1),ce+=le,be+=le}}if(Q<j.length-1&&!j[Q][1]){j.splice(Q,1);break}if(ce.length>0||be.length>0){ce.length>0&&be.length>0&&(ue=f(be,ce),ue!==0&&(Se>=0?j[Se][1]+=be.substring(0,ue):(j.splice(0,0,[t,be.substring(0,ue)]),Q++),be=be.substring(ue),ce=ce.substring(ue)),ue=m(be,ce),ue!==0&&(j[Q][1]=be.substring(be.length-ue)+j[Q][1],be=be.substring(0,be.length-ue),ce=ce.substring(0,ce.length-ue)));var ge=me+J;ce.length===0&&be.length===0?(j.splice(Q-ge,ge),Q=Q-ge):ce.length===0?(j.splice(Q-ge,ge,[e,be]),Q=Q-ge+1):be.length===0?(j.splice(Q-ge,ge,[r,ce]),Q=Q-ge+1):(j.splice(Q-ge,ge,[r,ce],[e,be]),Q=Q-ge+2)}Q!==0&&j[Q-1][0]===t?(j[Q-1][1]+=j[Q][1],j.splice(Q,1)):Q++,me=0,J=0,ce="",be="";break}}j[j.length-1][1]===""&&j.pop();var Pe=!1;for(Q=1;Q<j.length-1;)j[Q-1][0]===t&&j[Q+1][0]===t&&(j[Q][1].substring(j[Q][1].length-j[Q-1][1].length)===j[Q-1][1]?(j[Q][1]=j[Q-1][1]+j[Q][1].substring(0,j[Q][1].length-j[Q-1][1].length),j[Q+1][1]=j[Q-1][1]+j[Q+1][1],j.splice(Q-1,1),Pe=!0):j[Q][1].substring(0,j[Q+1][1].length)==j[Q+1][1]&&(j[Q-1][1]+=j[Q+1][1],j[Q][1]=j[Q][1].substring(j[Q+1][1].length)+j[Q+1][1],j.splice(Q+1,1),Pe=!0)),Q++;Pe&&I(j,re)}function O(j){return j>=55296&&j<=56319}function H(j){return j>=56320&&j<=57343}function q(j){return H(j.charCodeAt(0))}function z(j){return O(j.charCodeAt(j.length-1))}function Y(j){for(var re=[],Q=0;Q<j.length;Q++)j[Q][1].length>0&&re.push(j[Q]);return re}function fe(j,re,Q,J){return z(j)||q(J)?null:Y([[t,j],[r,re],[e,Q],[t,J]])}function X(j,re,Q){var J=typeof Q=="number"?{index:Q,length:0}:Q.oldRange,me=typeof Q=="number"?null:Q.newRange,ce=j.length,be=re.length;if(J.length===0&&(me===null||me.length===0)){var ue=J.index,Se=j.slice(0,ue),le=j.slice(ue),ae=me?me.index:null;e:{var ge=ue+be-ce;if(ae!==null&&ae!==ge||ge<0||ge>be)break e;var Pe=re.slice(0,ge),Qe=re.slice(ge);if(Qe!==le)break e;var pe=Math.min(ue,ge),Ie=Se.slice(0,pe),Xe=Pe.slice(0,pe);if(Ie!==Xe)break e;var tt=Se.slice(pe),Ue=Pe.slice(pe);return fe(Ie,tt,Ue,le)}e:{if(ae!==null&&ae!==ue)break e;var Me=ue,Pe=re.slice(0,Me),Qe=re.slice(Me);if(Pe!==Se)break e;var Ee=Math.min(ce-Me,be-Me),we=le.slice(le.length-Ee),We=Qe.slice(Qe.length-Ee);if(we!==We)break e;var tt=le.slice(0,le.length-Ee),Ue=Qe.slice(0,Qe.length-Ee);return fe(Se,tt,Ue,we)}}if(J.length>0&&me&&me.length===0)e:{var Ie=j.slice(0,J.index),we=j.slice(J.index+J.length),pe=Ie.length,Ee=we.length;if(be<pe+Ee)break e;var Xe=re.slice(0,pe),We=re.slice(be-Ee);if(Ie!==Xe||we!==We)break e;var tt=j.slice(pe,ce-Ee),Ue=re.slice(pe,be-Ee);return fe(Ie,tt,Ue,we)}return null}function he(j,re,Q,J){return n(j,re,Q,J,!0)}return he.INSERT=e,he.DELETE=r,he.EQUAL=t,np=he,np}var jf={exports:{}};jf.exports;var N0;function Tx(){return N0||(N0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=9007199254740991,l="[object Arguments]",u="[object Array]",f="[object Boolean]",g="[object Date]",m="[object Error]",R="[object Function]",E="[object GeneratorFunction]",_="[object Map]",S="[object Number]",x="[object Object]",M="[object Promise]",w="[object RegExp]",b="[object Set]",I="[object String]",O="[object Symbol]",H="[object WeakMap]",q="[object ArrayBuffer]",z="[object DataView]",Y="[object Float32Array]",fe="[object Float64Array]",X="[object Int8Array]",he="[object Int16Array]",j="[object Int32Array]",re="[object Uint8Array]",Q="[object Uint8ClampedArray]",J="[object Uint16Array]",me="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,be=/\w*$/,ue=/^\[object .+?Constructor\]$/,Se=/^(?:0|[1-9]\d*)$/,le={};le[l]=le[u]=le[q]=le[z]=le[f]=le[g]=le[Y]=le[fe]=le[X]=le[he]=le[j]=le[_]=le[S]=le[x]=le[w]=le[b]=le[I]=le[O]=le[re]=le[Q]=le[J]=le[me]=!0,le[m]=le[R]=le[H]=!1;var ae=typeof bi=="object"&&bi&&bi.Object===Object&&bi,ge=typeof self=="object"&&self&&self.Object===Object&&self,Pe=ae||ge||Function("return this")(),Qe=e&&!e.nodeType&&e,pe=Qe&&!0&&r&&!r.nodeType&&r,Ie=pe&&pe.exports===Qe;function Xe(L,Z){return L.set(Z[0],Z[1]),L}function tt(L,Z){return L.add(Z),L}function Ue(L,Z){for(var se=-1,He=L?L.length:0;++se<He&&Z(L[se],se,L)!==!1;);return L}function Me(L,Z){for(var se=-1,He=Z.length,Yt=L.length;++se<He;)L[Yt+se]=Z[se];return L}function Ee(L,Z,se,He){for(var Yt=-1,Vt=L?L.length:0;++Yt<Vt;)se=Z(se,L[Yt],Yt,L);return se}function we(L,Z){for(var se=-1,He=Array(L);++se<L;)He[se]=Z(se);return He}function We(L,Z){return L==null?void 0:L[Z]}function ct(L){var Z=!1;if(L!=null&&typeof L.toString!="function")try{Z=!!(L+"")}catch{}return Z}function Ne(L){var Z=-1,se=Array(L.size);return L.forEach(function(He,Yt){se[++Z]=[Yt,He]}),se}function bt(L,Z){return function(se){return L(Z(se))}}function Le(L){var Z=-1,se=Array(L.size);return L.forEach(function(He){se[++Z]=He}),se}var Ze=Array.prototype,ot=Function.prototype,Ct=Object.prototype,_t=Pe["__core-js_shared__"],wt=function(){var L=/[^.]+$/.exec(_t&&_t.keys&&_t.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),xt=ot.toString,it=Ct.hasOwnProperty,je=Ct.toString,yt=RegExp("^"+xt.call(it).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),st=Ie?Pe.Buffer:void 0,Rt=Pe.Symbol,Bt=Pe.Uint8Array,ze=bt(Object.getPrototypeOf,Object),Tt=Object.create,Ht=Ct.propertyIsEnumerable,_r=Ze.splice,kr=Object.getOwnPropertySymbols,Cr=st?st.isBuffer:void 0,ve=bt(Object.keys,Object),ne=Mt(Pe,"DataView"),Je=Mt(Pe,"Map"),pt=Mt(Pe,"Promise"),$e=Mt(Pe,"Set"),De=Mt(Pe,"WeakMap"),St=Mt(Object,"create"),Et=Xr(ne),ut=Xr(Je),Nt=Xr(pt),Qt=Xr($e),rr=Xr(De),Ft=Rt?Rt.prototype:void 0,zt=Ft?Ft.valueOf:void 0;function nr(L){var Z=-1,se=L?L.length:0;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function et(){this.__data__=St?St(null):{}}function At(L){return this.has(L)&&delete this.__data__[L]}function vt(L){var Z=this.__data__;if(St){var se=Z[L];return se===n?void 0:se}return it.call(Z,L)?Z[L]:void 0}function It(L){var Z=this.__data__;return St?Z[L]!==void 0:it.call(Z,L)}function pr(L,Z){var se=this.__data__;return se[L]=St&&Z===void 0?n:Z,this}nr.prototype.clear=et,nr.prototype.delete=At,nr.prototype.get=vt,nr.prototype.has=It,nr.prototype.set=pr;function $(L){var Z=-1,se=L?L.length:0;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function _e(){this.__data__=[]}function Ke(L){var Z=this.__data__,se=Jn(Z,L);if(se<0)return!1;var He=Z.length-1;return se==He?Z.pop():_r.call(Z,se,1),!0}function mt(L){var Z=this.__data__,se=Jn(Z,L);return se<0?void 0:Z[se][1]}function Pt(L){return Jn(this.__data__,L)>-1}function Wt(L,Z){var se=this.__data__,He=Jn(se,L);return He<0?se.push([L,Z]):se[He][1]=Z,this}$.prototype.clear=_e,$.prototype.delete=Ke,$.prototype.get=mt,$.prototype.has=Pt,$.prototype.set=Wt;function Lt(L){var Z=-1,se=L?L.length:0;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function $t(){this.__data__={hash:new nr,map:new(Je||$),string:new nr}}function ir(L){return at(this,L).delete(L)}function or(L){return at(this,L).get(L)}function fr(L){return at(this,L).has(L)}function Ur(L,Z){return at(this,L).set(L,Z),this}Lt.prototype.clear=$t,Lt.prototype.delete=ir,Lt.prototype.get=or,Lt.prototype.has=fr,Lt.prototype.set=Ur;function vr(L){this.__data__=new $(L)}function Kn(){this.__data__=new $}function Cn(L){return this.__data__.delete(L)}function Dn(L){return this.__data__.get(L)}function Yr(L){return this.__data__.has(L)}function Yn(L,Z){var se=this.__data__;if(se instanceof $){var He=se.__data__;if(!Je||He.length<t-1)return He.push([L,Z]),this;se=this.__data__=new Lt(He)}return se.set(L,Z),this}vr.prototype.clear=Kn,vr.prototype.delete=Cn,vr.prototype.get=Dn,vr.prototype.has=Yr,vr.prototype.set=Yn;function En(L,Z){var se=bo(L)||ei(L)?we(L.length,String):[],He=se.length,Yt=!!He;for(var Vt in L)it.call(L,Vt)&&!(Yt&&(Vt=="length"||yn(Vt,He)))&&se.push(Vt);return se}function Xn(L,Z,se){var He=L[Z];(!(it.call(L,Z)&&Hn(He,se))||se===void 0&&!(Z in L))&&(L[Z]=se)}function Jn(L,Z){for(var se=L.length;se--;)if(Hn(L[se][0],Z))return se;return-1}function on(L,Z){return L&&ke(Z,Or(Z),L)}function On(L,Z,se,He,Yt,Vt,gr){var Sr;if(He&&(Sr=Vt?He(L,Yt,Vt,gr):He(L)),Sr!==void 0)return Sr;if(!ri(L))return L;var dr=bo(L);if(dr){if(Sr=xr(L),!Z)return ee(L,Sr)}else{var Ar=jt(L),Jr=Ar==R||Ar==E;if(Rn(L))return An(L,Z);if(Ar==x||Ar==l||Jr&&!Vt){if(ct(L))return Vt?L:{};if(Sr=Zr(Jr?{}:L),!Z)return Ce(L,on(Sr,L))}else{if(!le[Ar])return Vt?L:{};Sr=vn(L,Ar,On,Z)}}gr||(gr=new vr);var In=gr.get(L);if(In)return In;if(gr.set(L,Sr),!dr)var Vr=se?Be(L):Or(L);return Ue(Vr||L,function(Br,Qr){Vr&&(Qr=Br,Br=L[Qr]),Xn(Sr,Qr,On(Br,Z,se,He,Qr,L,gr))}),Sr}function wn(L){return ri(L)?Tt(L):{}}function hi(L,Z,se){var He=Z(L);return bo(L)?He:Me(He,se(L))}function Si(L){return je.call(L)}function Ci(L){if(!ri(L)||Bn(L))return!1;var Z=_o(L)||ct(L)?yt:ue;return Z.test(Xr(L))}function kn(L){if(!wi(L))return ve(L);var Z=[];for(var se in Object(L))it.call(L,se)&&se!="constructor"&&Z.push(se);return Z}function An(L,Z){if(Z)return L.slice();var se=new L.constructor(L.length);return L.copy(se),se}function un(L){var Z=new L.constructor(L.byteLength);return new Bt(Z).set(new Bt(L)),Z}function Qn(L,Z){var se=Z?un(L.buffer):L.buffer;return new L.constructor(se,L.byteOffset,L.byteLength)}function sn(L,Z,se){var He=Z?se(Ne(L),!0):Ne(L);return Ee(He,Xe,new L.constructor)}function pn(L){var Z=new L.constructor(L.source,be.exec(L));return Z.lastIndex=L.lastIndex,Z}function C(L,Z,se){var He=Z?se(Le(L),!0):Le(L);return Ee(He,tt,new L.constructor)}function N(L){return zt?Object(zt.call(L)):{}}function G(L,Z){var se=Z?un(L.buffer):L.buffer;return new L.constructor(se,L.byteOffset,L.length)}function ee(L,Z){var se=-1,He=L.length;for(Z||(Z=Array(He));++se<He;)Z[se]=L[se];return Z}function ke(L,Z,se,He){se||(se={});for(var Yt=-1,Vt=Z.length;++Yt<Vt;){var gr=Z[Yt],Sr=void 0;Xn(se,gr,Sr===void 0?L[gr]:Sr)}return se}function Ce(L,Z){return ke(L,qt(L),Z)}function Be(L){return hi(L,Or,qt)}function at(L,Z){var se=L.__data__;return li(Z)?se[typeof Z=="string"?"string":"hash"]:se.map}function Mt(L,Z){var se=We(L,Z);return Ci(se)?se:void 0}var qt=kr?bt(kr,Object):wr,jt=Si;(ne&&jt(new ne(new ArrayBuffer(1)))!=z||Je&&jt(new Je)!=_||pt&&jt(pt.resolve())!=M||$e&&jt(new $e)!=b||De&&jt(new De)!=H)&&(jt=function(L){var Z=je.call(L),se=Z==x?L.constructor:void 0,He=se?Xr(se):void 0;if(He)switch(He){case Et:return z;case ut:return _;case Nt:return M;case Qt:return b;case rr:return H}return Z});function xr(L){var Z=L.length,se=L.constructor(Z);return Z&&typeof L[0]=="string"&&it.call(L,"index")&&(se.index=L.index,se.input=L.input),se}function Zr(L){return typeof L.constructor=="function"&&!wi(L)?wn(ze(L)):{}}function vn(L,Z,se,He){var Yt=L.constructor;switch(Z){case q:return un(L);case f:case g:return new Yt(+L);case z:return Qn(L,He);case Y:case fe:case X:case he:case j:case re:case Q:case J:case me:return G(L,He);case _:return sn(L,He,se);case S:case I:return new Yt(L);case w:return pn(L);case b:return C(L,He,se);case O:return N(L)}}function yn(L,Z){return Z=Z??i,!!Z&&(typeof L=="number"||Se.test(L))&&L>-1&&L%1==0&&L<Z}function li(L){var Z=typeof L;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?L!=="__proto__":L===null}function Bn(L){return!!wt&&wt in L}function wi(L){var Z=L&&L.constructor,se=typeof Z=="function"&&Z.prototype||Ct;return L===se}function Xr(L){if(L!=null){try{return xt.call(L)}catch{}try{return L+""}catch{}}return""}function pi(L){return On(L,!0,!0)}function Hn(L,Z){return L===Z||L!==L&&Z!==Z}function ei(L){return no(L)&&it.call(L,"callee")&&(!Ht.call(L,"callee")||je.call(L)==l)}var bo=Array.isArray;function ro(L){return L!=null&&ti(L.length)&&!_o(L)}function no(L){return $i(L)&&ro(L)}var Rn=Cr||Mr;function _o(L){var Z=ri(L)?je.call(L):"";return Z==R||Z==E}function ti(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=i}function ri(L){var Z=typeof L;return!!L&&(Z=="object"||Z=="function")}function $i(L){return!!L&&typeof L=="object"}function Or(L){return ro(L)?En(L):kn(L)}function wr(){return[]}function Mr(){return!1}r.exports=pi}(jf,jf.exports)),jf.exports}var Bf={exports:{}};Bf.exports;var F0;function Ex(){return F0||(F0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",i=1,l=2,u=9007199254740991,f="[object Arguments]",g="[object Array]",m="[object AsyncFunction]",R="[object Boolean]",E="[object Date]",_="[object Error]",S="[object Function]",x="[object GeneratorFunction]",M="[object Map]",w="[object Number]",b="[object Null]",I="[object Object]",O="[object Promise]",H="[object Proxy]",q="[object RegExp]",z="[object Set]",Y="[object String]",fe="[object Symbol]",X="[object Undefined]",he="[object WeakMap]",j="[object ArrayBuffer]",re="[object DataView]",Q="[object Float32Array]",J="[object Float64Array]",me="[object Int8Array]",ce="[object Int16Array]",be="[object Int32Array]",ue="[object Uint8Array]",Se="[object Uint8ClampedArray]",le="[object Uint16Array]",ae="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,Pe=/^\[object .+?Constructor\]$/,Qe=/^(?:0|[1-9]\d*)$/,pe={};pe[Q]=pe[J]=pe[me]=pe[ce]=pe[be]=pe[ue]=pe[Se]=pe[le]=pe[ae]=!0,pe[f]=pe[g]=pe[j]=pe[R]=pe[re]=pe[E]=pe[_]=pe[S]=pe[M]=pe[w]=pe[I]=pe[q]=pe[z]=pe[Y]=pe[he]=!1;var Ie=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Xe=typeof self=="object"&&self&&self.Object===Object&&self,tt=Ie||Xe||Function("return this")(),Ue=e&&!e.nodeType&&e,Me=Ue&&!0&&r&&!r.nodeType&&r,Ee=Me&&Me.exports===Ue,we=Ee&&Ie.process,We=function(){try{return we&&we.binding&&we.binding("util")}catch{}}(),ct=We&&We.isTypedArray;function Ne(L,Z){for(var se=-1,He=L==null?0:L.length,Yt=0,Vt=[];++se<He;){var gr=L[se];Z(gr,se,L)&&(Vt[Yt++]=gr)}return Vt}function bt(L,Z){for(var se=-1,He=Z.length,Yt=L.length;++se<He;)L[Yt+se]=Z[se];return L}function Le(L,Z){for(var se=-1,He=L==null?0:L.length;++se<He;)if(Z(L[se],se,L))return!0;return!1}function Ze(L,Z){for(var se=-1,He=Array(L);++se<L;)He[se]=Z(se);return He}function ot(L){return function(Z){return L(Z)}}function Ct(L,Z){return L.has(Z)}function _t(L,Z){return L==null?void 0:L[Z]}function wt(L){var Z=-1,se=Array(L.size);return L.forEach(function(He,Yt){se[++Z]=[Yt,He]}),se}function xt(L,Z){return function(se){return L(Z(se))}}function it(L){var Z=-1,se=Array(L.size);return L.forEach(function(He){se[++Z]=He}),se}var je=Array.prototype,yt=Function.prototype,st=Object.prototype,Rt=tt["__core-js_shared__"],Bt=yt.toString,ze=st.hasOwnProperty,Tt=function(){var L=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),Ht=st.toString,_r=RegExp("^"+Bt.call(ze).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kr=Ee?tt.Buffer:void 0,Cr=tt.Symbol,ve=tt.Uint8Array,ne=st.propertyIsEnumerable,Je=je.splice,pt=Cr?Cr.toStringTag:void 0,$e=Object.getOwnPropertySymbols,De=kr?kr.isBuffer:void 0,St=xt(Object.keys,Object),Et=qt(tt,"DataView"),ut=qt(tt,"Map"),Nt=qt(tt,"Promise"),Qt=qt(tt,"Set"),rr=qt(tt,"WeakMap"),Ft=qt(Object,"create"),zt=Xr(Et),nr=Xr(ut),et=Xr(Nt),At=Xr(Qt),vt=Xr(rr),It=Cr?Cr.prototype:void 0,pr=It?It.valueOf:void 0;function $(L){var Z=-1,se=L==null?0:L.length;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function _e(){this.__data__=Ft?Ft(null):{},this.size=0}function Ke(L){var Z=this.has(L)&&delete this.__data__[L];return this.size-=Z?1:0,Z}function mt(L){var Z=this.__data__;if(Ft){var se=Z[L];return se===n?void 0:se}return ze.call(Z,L)?Z[L]:void 0}function Pt(L){var Z=this.__data__;return Ft?Z[L]!==void 0:ze.call(Z,L)}function Wt(L,Z){var se=this.__data__;return this.size+=this.has(L)?0:1,se[L]=Ft&&Z===void 0?n:Z,this}$.prototype.clear=_e,$.prototype.delete=Ke,$.prototype.get=mt,$.prototype.has=Pt,$.prototype.set=Wt;function Lt(L){var Z=-1,se=L==null?0:L.length;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function $t(){this.__data__=[],this.size=0}function ir(L){var Z=this.__data__,se=An(Z,L);if(se<0)return!1;var He=Z.length-1;return se==He?Z.pop():Je.call(Z,se,1),--this.size,!0}function or(L){var Z=this.__data__,se=An(Z,L);return se<0?void 0:Z[se][1]}function fr(L){return An(this.__data__,L)>-1}function Ur(L,Z){var se=this.__data__,He=An(se,L);return He<0?(++this.size,se.push([L,Z])):se[He][1]=Z,this}Lt.prototype.clear=$t,Lt.prototype.delete=ir,Lt.prototype.get=or,Lt.prototype.has=fr,Lt.prototype.set=Ur;function vr(L){var Z=-1,se=L==null?0:L.length;for(this.clear();++Z<se;){var He=L[Z];this.set(He[0],He[1])}}function Kn(){this.size=0,this.__data__={hash:new $,map:new(ut||Lt),string:new $}}function Cn(L){var Z=Mt(this,L).delete(L);return this.size-=Z?1:0,Z}function Dn(L){return Mt(this,L).get(L)}function Yr(L){return Mt(this,L).has(L)}function Yn(L,Z){var se=Mt(this,L),He=se.size;return se.set(L,Z),this.size+=se.size==He?0:1,this}vr.prototype.clear=Kn,vr.prototype.delete=Cn,vr.prototype.get=Dn,vr.prototype.has=Yr,vr.prototype.set=Yn;function En(L){var Z=-1,se=L==null?0:L.length;for(this.__data__=new vr;++Z<se;)this.add(L[Z])}function Xn(L){return this.__data__.set(L,n),this}function Jn(L){return this.__data__.has(L)}En.prototype.add=En.prototype.push=Xn,En.prototype.has=Jn;function on(L){var Z=this.__data__=new Lt(L);this.size=Z.size}function On(){this.__data__=new Lt,this.size=0}function wn(L){var Z=this.__data__,se=Z.delete(L);return this.size=Z.size,se}function hi(L){return this.__data__.get(L)}function Si(L){return this.__data__.has(L)}function Ci(L,Z){var se=this.__data__;if(se instanceof Lt){var He=se.__data__;if(!ut||He.length<t-1)return He.push([L,Z]),this.size=++se.size,this;se=this.__data__=new vr(He)}return se.set(L,Z),this.size=se.size,this}on.prototype.clear=On,on.prototype.delete=wn,on.prototype.get=hi,on.prototype.has=Si,on.prototype.set=Ci;function kn(L,Z){var se=ei(L),He=!se&&Hn(L),Yt=!se&&!He&&ro(L),Vt=!se&&!He&&!Yt&&$i(L),gr=se||He||Yt||Vt,Sr=gr?Ze(L.length,String):[],dr=Sr.length;for(var Ar in L)ze.call(L,Ar)&&!(gr&&(Ar=="length"||Yt&&(Ar=="offset"||Ar=="parent")||Vt&&(Ar=="buffer"||Ar=="byteLength"||Ar=="byteOffset")||vn(Ar,dr)))&&Sr.push(Ar);return Sr}function An(L,Z){for(var se=L.length;se--;)if(pi(L[se][0],Z))return se;return-1}function un(L,Z,se){var He=Z(L);return ei(L)?He:bt(He,se(L))}function Qn(L){return L==null?L===void 0?X:b:pt&&pt in Object(L)?jt(L):wi(L)}function sn(L){return ri(L)&&Qn(L)==f}function pn(L,Z,se,He,Yt){return L===Z?!0:L==null||Z==null||!ri(L)&&!ri(Z)?L!==L&&Z!==Z:C(L,Z,se,He,pn,Yt)}function C(L,Z,se,He,Yt,Vt){var gr=ei(L),Sr=ei(Z),dr=gr?g:Zr(L),Ar=Sr?g:Zr(Z);dr=dr==f?I:dr,Ar=Ar==f?I:Ar;var Jr=dr==I,In=Ar==I,Vr=dr==Ar;if(Vr&&ro(L)){if(!ro(Z))return!1;gr=!0,Jr=!1}if(Vr&&!Jr)return Vt||(Vt=new on),gr||$i(L)?ke(L,Z,se,He,Yt,Vt):Ce(L,Z,dr,se,He,Yt,Vt);if(!(se&i)){var Br=Jr&&ze.call(L,"__wrapped__"),Qr=In&&ze.call(Z,"__wrapped__");if(Br||Qr){var ci=Br?L.value():L,gi=Qr?Z.value():Z;return Vt||(Vt=new on),Yt(ci,gi,se,He,Vt)}}return Vr?(Vt||(Vt=new on),Be(L,Z,se,He,Yt,Vt)):!1}function N(L){if(!ti(L)||li(L))return!1;var Z=Rn(L)?_r:Pe;return Z.test(Xr(L))}function G(L){return ri(L)&&_o(L.length)&&!!pe[Qn(L)]}function ee(L){if(!Bn(L))return St(L);var Z=[];for(var se in Object(L))ze.call(L,se)&&se!="constructor"&&Z.push(se);return Z}function ke(L,Z,se,He,Yt,Vt){var gr=se&i,Sr=L.length,dr=Z.length;if(Sr!=dr&&!(gr&&dr>Sr))return!1;var Ar=Vt.get(L);if(Ar&&Vt.get(Z))return Ar==Z;var Jr=-1,In=!0,Vr=se&l?new En:void 0;for(Vt.set(L,Z),Vt.set(Z,L);++Jr<Sr;){var Br=L[Jr],Qr=Z[Jr];if(He)var ci=gr?He(Qr,Br,Jr,Z,L,Vt):He(Br,Qr,Jr,L,Z,Vt);if(ci!==void 0){if(ci)continue;In=!1;break}if(Vr){if(!Le(Z,function(gi,qn){if(!Ct(Vr,qn)&&(Br===gi||Yt(Br,gi,se,He,Vt)))return Vr.push(qn)})){In=!1;break}}else if(!(Br===Qr||Yt(Br,Qr,se,He,Vt))){In=!1;break}}return Vt.delete(L),Vt.delete(Z),In}function Ce(L,Z,se,He,Yt,Vt,gr){switch(se){case re:if(L.byteLength!=Z.byteLength||L.byteOffset!=Z.byteOffset)return!1;L=L.buffer,Z=Z.buffer;case j:return!(L.byteLength!=Z.byteLength||!Vt(new ve(L),new ve(Z)));case R:case E:case w:return pi(+L,+Z);case _:return L.name==Z.name&&L.message==Z.message;case q:case Y:return L==Z+"";case M:var Sr=wt;case z:var dr=He&i;if(Sr||(Sr=it),L.size!=Z.size&&!dr)return!1;var Ar=gr.get(L);if(Ar)return Ar==Z;He|=l,gr.set(L,Z);var Jr=ke(Sr(L),Sr(Z),He,Yt,Vt,gr);return gr.delete(L),Jr;case fe:if(pr)return pr.call(L)==pr.call(Z)}return!1}function Be(L,Z,se,He,Yt,Vt){var gr=se&i,Sr=at(L),dr=Sr.length,Ar=at(Z),Jr=Ar.length;if(dr!=Jr&&!gr)return!1;for(var In=dr;In--;){var Vr=Sr[In];if(!(gr?Vr in Z:ze.call(Z,Vr)))return!1}var Br=Vt.get(L);if(Br&&Vt.get(Z))return Br==Z;var Qr=!0;Vt.set(L,Z),Vt.set(Z,L);for(var ci=gr;++In<dr;){Vr=Sr[In];var gi=L[Vr],qn=Z[Vr];if(He)var xo=gr?He(qn,gi,Vr,Z,L,Vt):He(gi,qn,Vr,L,Z,Vt);if(!(xo===void 0?gi===qn||Yt(gi,qn,se,He,Vt):xo)){Qr=!1;break}ci||(ci=Vr=="constructor")}if(Qr&&!ci){var Ui=L.constructor,an=Z.constructor;Ui!=an&&"constructor"in L&&"constructor"in Z&&!(typeof Ui=="function"&&Ui instanceof Ui&&typeof an=="function"&&an instanceof an)&&(Qr=!1)}return Vt.delete(L),Vt.delete(Z),Qr}function at(L){return un(L,Or,xr)}function Mt(L,Z){var se=L.__data__;return yn(Z)?se[typeof Z=="string"?"string":"hash"]:se.map}function qt(L,Z){var se=_t(L,Z);return N(se)?se:void 0}function jt(L){var Z=ze.call(L,pt),se=L[pt];try{L[pt]=void 0;var He=!0}catch{}var Yt=Ht.call(L);return He&&(Z?L[pt]=se:delete L[pt]),Yt}var xr=$e?function(L){return L==null?[]:(L=Object(L),Ne($e(L),function(Z){return ne.call(L,Z)}))}:wr,Zr=Qn;(Et&&Zr(new Et(new ArrayBuffer(1)))!=re||ut&&Zr(new ut)!=M||Nt&&Zr(Nt.resolve())!=O||Qt&&Zr(new Qt)!=z||rr&&Zr(new rr)!=he)&&(Zr=function(L){var Z=Qn(L),se=Z==I?L.constructor:void 0,He=se?Xr(se):"";if(He)switch(He){case zt:return re;case nr:return M;case et:return O;case At:return z;case vt:return he}return Z});function vn(L,Z){return Z=Z??u,!!Z&&(typeof L=="number"||Qe.test(L))&&L>-1&&L%1==0&&L<Z}function yn(L){var Z=typeof L;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?L!=="__proto__":L===null}function li(L){return!!Tt&&Tt in L}function Bn(L){var Z=L&&L.constructor,se=typeof Z=="function"&&Z.prototype||st;return L===se}function wi(L){return Ht.call(L)}function Xr(L){if(L!=null){try{return Bt.call(L)}catch{}try{return L+""}catch{}}return""}function pi(L,Z){return L===Z||L!==L&&Z!==Z}var Hn=sn(function(){return arguments}())?sn:function(L){return ri(L)&&ze.call(L,"callee")&&!ne.call(L,"callee")},ei=Array.isArray;function bo(L){return L!=null&&_o(L.length)&&!Rn(L)}var ro=De||Mr;function no(L,Z){return pn(L,Z)}function Rn(L){if(!ti(L))return!1;var Z=Qn(L);return Z==S||Z==x||Z==m||Z==H}function _o(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=u}function ti(L){var Z=typeof L;return L!=null&&(Z=="object"||Z=="function")}function ri(L){return L!=null&&typeof L=="object"}var $i=ct?ot(ct):G;function Or(L){return bo(L)?kn(L):ee(L)}function wr(){return[]}function Mr(){return!1}r.exports=no}(Bf,Bf.exports)),Bf.exports}var Pd={},j0;function gM(){if(j0)return Pd;j0=1,Object.defineProperty(Pd,"__esModule",{value:!0});const r=Tx(),e=Ex();var t;return function(n){function i(g={},m={},R=!1){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});let E=r(m);R||(E=Object.keys(E).reduce((_,S)=>(E[S]!=null&&(_[S]=E[S]),_),{}));for(const _ in g)g[_]!==void 0&&m[_]===void 0&&(E[_]=g[_]);return Object.keys(E).length>0?E:void 0}n.compose=i;function l(g={},m={}){typeof g!="object"&&(g={}),typeof m!="object"&&(m={});const R=Object.keys(g).concat(Object.keys(m)).reduce((E,_)=>(e(g[_],m[_])||(E[_]=m[_]===void 0?null:m[_]),E),{});return Object.keys(R).length>0?R:void 0}n.diff=l;function u(g={},m={}){g=g||{};const R=Object.keys(m).reduce((E,_)=>(m[_]!==g[_]&&g[_]!==void 0&&(E[_]=m[_]),E),{});return Object.keys(g).reduce((E,_)=>(g[_]!==m[_]&&m[_]===void 0&&(E[_]=null),E),R)}n.invert=u;function f(g,m,R=!1){if(typeof g!="object")return m;if(typeof m!="object")return;if(!R)return m;const E=Object.keys(m).reduce((_,S)=>(g[S]===void 0&&(_[S]=m[S]),_),{});return Object.keys(E).length>0?E:void 0}n.transform=f}(t||(t={})),Pd.default=t,Pd}var Nd={},B0;function kx(){if(B0)return Nd;B0=1,Object.defineProperty(Nd,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),Nd.default=r,Nd}var Fd={},H0;function mM(){if(H0)return Fd;H0=1,Object.defineProperty(Fd,"__esModule",{value:!0});const r=kx();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const i=this.ops[this.index];if(i){const l=this.offset,u=r.default.length(i);if(n>=u-l?(n=u-l,this.index+=1,this.offset=0):this.offset+=n,typeof i.delete=="number")return{delete:n};{const f={};return i.attributes&&(f.attributes=i.attributes),typeof i.retain=="number"?f.retain=n:typeof i.retain=="object"&&i.retain!==null?f.retain=i.retain:typeof i.insert=="string"?f.insert=i.insert.substr(l,n):f.insert=i.insert,f}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,i=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=n,this.index=i,[l].concat(u)}}else return[]}}return Fd.default=e,Fd}var q0;function vM(){return q0||(q0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=pM(),n=Tx(),i=Ex(),l=gM();e.AttributeMap=l.default;const u=kx();e.Op=u.default;const f=mM();e.OpIterator=f.default;const g="\0",m=(E,_)=>{if(typeof E!="object"||E===null)throw new Error(`cannot retain a ${typeof E}`);if(typeof _!="object"||_===null)throw new Error(`cannot retain a ${typeof _}`);const S=Object.keys(E)[0];if(!S||S!==Object.keys(_)[0])throw new Error(`embed types not matched: ${S} != ${Object.keys(_)[0]}`);return[S,E[S],_[S]]};class R{constructor(_){Array.isArray(_)?this.ops=_:_!=null&&Array.isArray(_.ops)?this.ops=_.ops:this.ops=[]}static registerEmbed(_,S){this.handlers[_]=S}static unregisterEmbed(_){delete this.handlers[_]}static getHandler(_){const S=this.handlers[_];if(!S)throw new Error(`no handlers for embed type "${_}"`);return S}insert(_,S){const x={};return typeof _=="string"&&_.length===0?this:(x.insert=_,S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(x.attributes=S),this.push(x))}delete(_){return _<=0?this:this.push({delete:_})}retain(_,S){if(typeof _=="number"&&_<=0)return this;const x={retain:_};return S!=null&&typeof S=="object"&&Object.keys(S).length>0&&(x.attributes=S),this.push(x)}push(_){let S=this.ops.length,x=this.ops[S-1];if(_=n(_),typeof x=="object"){if(typeof _.delete=="number"&&typeof x.delete=="number")return this.ops[S-1]={delete:x.delete+_.delete},this;if(typeof x.delete=="number"&&_.insert!=null&&(S-=1,x=this.ops[S-1],typeof x!="object"))return this.ops.unshift(_),this;if(i(_.attributes,x.attributes)){if(typeof _.insert=="string"&&typeof x.insert=="string")return this.ops[S-1]={insert:x.insert+_.insert},typeof _.attributes=="object"&&(this.ops[S-1].attributes=_.attributes),this;if(typeof _.retain=="number"&&typeof x.retain=="number")return this.ops[S-1]={retain:x.retain+_.retain},typeof _.attributes=="object"&&(this.ops[S-1].attributes=_.attributes),this}}return S===this.ops.length?this.ops.push(_):this.ops.splice(S,0,_),this}chop(){const _=this.ops[this.ops.length-1];return _&&typeof _.retain=="number"&&!_.attributes&&this.ops.pop(),this}filter(_){return this.ops.filter(_)}forEach(_){this.ops.forEach(_)}map(_){return this.ops.map(_)}partition(_){const S=[],x=[];return this.forEach(M=>{(_(M)?S:x).push(M)}),[S,x]}reduce(_,S){return this.ops.reduce(_,S)}changeLength(){return this.reduce((_,S)=>S.insert?_+u.default.length(S):S.delete?_-S.delete:_,0)}length(){return this.reduce((_,S)=>_+u.default.length(S),0)}slice(_=0,S=1/0){const x=[],M=new f.default(this.ops);let w=0;for(;w<S&&M.hasNext();){let b;w<_?b=M.next(_-w):(b=M.next(S-w),x.push(b)),w+=u.default.length(b)}return new R(x)}compose(_){const S=new f.default(this.ops),x=new f.default(_.ops),M=[],w=x.peek();if(w!=null&&typeof w.retain=="number"&&w.attributes==null){let I=w.retain;for(;S.peekType()==="insert"&&S.peekLength()<=I;)I-=S.peekLength(),M.push(S.next());w.retain-I>0&&x.next(w.retain-I)}const b=new R(M);for(;S.hasNext()||x.hasNext();)if(x.peekType()==="insert")b.push(x.next());else if(S.peekType()==="delete")b.push(S.next());else{const I=Math.min(S.peekLength(),x.peekLength()),O=S.next(I),H=x.next(I);if(H.retain){const q={};if(typeof O.retain=="number")q.retain=typeof H.retain=="number"?I:H.retain;else if(typeof H.retain=="number")O.retain==null?q.insert=O.insert:q.retain=O.retain;else{const Y=O.retain==null?"insert":"retain",[fe,X,he]=m(O[Y],H.retain),j=R.getHandler(fe);q[Y]={[fe]:j.compose(X,he,Y==="retain")}}const z=l.default.compose(O.attributes,H.attributes,typeof O.retain=="number");if(z&&(q.attributes=z),b.push(q),!x.hasNext()&&i(b.ops[b.ops.length-1],q)){const Y=new R(S.rest());return b.concat(Y).chop()}}else typeof H.delete=="number"&&(typeof O.retain=="number"||typeof O.retain=="object"&&O.retain!==null)&&b.push(H)}return b.chop()}concat(_){const S=new R(this.ops.slice());return _.ops.length>0&&(S.push(_.ops[0]),S.ops=S.ops.concat(_.ops.slice(1))),S}diff(_,S){if(this.ops===_.ops)return new R;const x=[this,_].map(O=>O.map(H=>{if(H.insert!=null)return typeof H.insert=="string"?H.insert:g;const q=O===_?"on":"with";throw new Error("diff() called "+q+" non-document")}).join("")),M=new R,w=t(x[0],x[1],S,!0),b=new f.default(this.ops),I=new f.default(_.ops);return w.forEach(O=>{let H=O[1].length;for(;H>0;){let q=0;switch(O[0]){case t.INSERT:q=Math.min(I.peekLength(),H),M.push(I.next(q));break;case t.DELETE:q=Math.min(H,b.peekLength()),b.next(q),M.delete(q);break;case t.EQUAL:q=Math.min(b.peekLength(),I.peekLength(),H);const z=b.next(q),Y=I.next(q);i(z.insert,Y.insert)?M.retain(q,l.default.diff(z.attributes,Y.attributes)):M.push(Y).delete(q);break}H-=q}}),M.chop()}eachLine(_,S=`
163
163
  `){const x=new f.default(this.ops);let M=new R,w=0;for(;x.hasNext();){if(x.peekType()!=="insert")return;const b=x.peek(),I=u.default.length(b)-x.peekLength(),O=typeof b.insert=="string"?b.insert.indexOf(S,I)-I:-1;if(O<0)M.push(x.next());else if(O>0)M.push(x.next(O));else{if(_(M,x.next(1).attributes||{},w)===!1)return;w+=1,M=new R}}M.length()>0&&_(M,{},w)}invert(_){const S=new R;return this.reduce((x,M)=>{if(M.insert)S.delete(u.default.length(M));else{if(typeof M.retain=="number"&&M.attributes==null)return S.retain(M.retain),x+M.retain;if(M.delete||typeof M.retain=="number"){const w=M.delete||M.retain;return _.slice(x,x+w).forEach(I=>{M.delete?S.push(I):M.retain&&M.attributes&&S.retain(u.default.length(I),l.default.invert(M.attributes,I.attributes))}),x+w}else if(typeof M.retain=="object"&&M.retain!==null){const w=_.slice(x,x+1),b=new f.default(w.ops).next(),[I,O,H]=m(M.retain,b.insert),q=R.getHandler(I);return S.retain({[I]:q.invert(O,H)},l.default.invert(M.attributes,b.attributes)),x+1}}return x},0),S.chop()}transform(_,S=!1){if(S=!!S,typeof _=="number")return this.transformPosition(_,S);const x=_,M=new f.default(this.ops),w=new f.default(x.ops),b=new R;for(;M.hasNext()||w.hasNext();)if(M.peekType()==="insert"&&(S||w.peekType()!=="insert"))b.retain(u.default.length(M.next()));else if(w.peekType()==="insert")b.push(w.next());else{const I=Math.min(M.peekLength(),w.peekLength()),O=M.next(I),H=w.next(I);if(O.delete)continue;if(H.delete)b.push(H);else{const q=O.retain,z=H.retain;let Y=typeof z=="object"&&z!==null?z:I;if(typeof q=="object"&&q!==null&&typeof z=="object"&&z!==null){const fe=Object.keys(q)[0];if(fe===Object.keys(z)[0]){const X=R.getHandler(fe);X&&(Y={[fe]:X.transform(q[fe],z[fe],S)})}}b.retain(Y,l.default.transform(O.attributes,H.attributes,S))}}return b.chop()}transformPosition(_,S=!1){S=!!S;const x=new f.default(this.ops);let M=0;for(;x.hasNext()&&M<=_;){const w=x.peekLength(),b=x.peekType();if(x.next(),b==="delete"){_-=Math.min(w,_-M);continue}else b==="insert"&&(M<_||!S)&&(_+=w);M+=w}return _}}R.Op=u.default,R.OpIterator=f.default,R.AttributeMap=l.default,R.handlers={},e.default=R,r.exports=R,r.exports.default=R}(Od,Od.exports)),Od.exports}var hs=vM();const Gt=al(hs);class Ws extends zo{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Ws.blotName="break";Ws.tagName="BR";let $s=class extends rh{};const yM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ph(r){return r.replace(/[&<>"']/g,e=>yM[e])}const va=class va extends km{static compare(e,t){const n=va.order.indexOf(e),i=va.order.indexOf(t);return n>=0||i>=0?n-i:e===t?0:e<t?-1:1}formatAt(e,t,n,i){if(va.compare(this.statics.blotName,n)<0&&this.scroll.query(n,Jt.BLOT)){const l=this.isolate(e,t);i&&l.wrap(n,i)}else super.formatAt(e,t,n,i)}optimize(e){if(super.optimize(e),this.parent instanceof va&&va.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};dt(va,"allowedChildren",[va,Ws,zo,$s]),dt(va,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let wa=va;const z0=1;class ji extends Qf{constructor(){super(...arguments);dt(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Rx(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,i,l){n<=0||(this.scroll.query(i,Jt.BLOCK)?t+n===this.length()&&this.format(i,l):super.formatAt(t,Math.min(n,this.length()-t-1),i,l),this.cache={})}insertAt(t,n,i){if(i!=null){super.insertAt(t,n,i),this.cache={};return}if(n.length===0)return;const l=n.split(`
164
164
  `),u=l.shift();u.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),u):this.children.tail.insertAt(this.children.tail.length(),u),this.cache={});let f=this;l.reduce((g,m)=>(f=f.split(g,!0),f.insertAt(0,m),m.length),t+u.length)}insertBefore(t,n){const{head:i}=this.children;super.insertBefore(t,n),i instanceof Ws&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+z0),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(t===0||t>=this.length()-z0)){const l=this.clone();return t===0?(this.parent.insertBefore(l,this),this):(this.parent.insertBefore(l,this.next),l)}const i=super.split(t,n);return this.cache={},i}}ji.blotName="block";ji.tagName="P";ji.defaultChild=Ws;ji.allowedChildren=[Ws,wa,zo,$s];class ds extends zo{attach(){super.attach(),this.attributes=new dh(this.domNode)}delta(){return new Gt().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,Jt.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,t)}formatAt(e,t,n,i){this.format(n,i)}insertAt(e,t,n){if(n!=null){super.insertAt(e,t,n);return}const i=t.split(`
165
165
  `),l=i.pop(),u=i.map(g=>{const m=this.scroll.create(ji.blotName);return m.insertAt(0,g),m}),f=this.split(e);u.forEach(g=>{this.parent.insertBefore(g,f)}),l&&this.parent.insertBefore(this.scroll.create("text",l),f)}}ds.scope=Jt.BLOCK_BLOT;function Rx(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(qi).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),us(n,{},e)),new Gt).insert(`
@@ -173,21 +173,21 @@ ${q["Invalid file(s)"]}: ${xt}${wt?`
173
173
  `);return e.insert(n,t.attributes)}return e.push(t)},new Gt)}function W0(r,e){let{index:t,length:n}=r;return new Jc(t+e,n)}function EM(r){const e=[];return r.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
174
174
  `).forEach((i,l)=>{l&&e.push({insert:`
175
175
  `,attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})}):e.push(t)}),e}class Vs{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}dt(Vs,"DEFAULTS",{});const jd="\uFEFF";class Im extends zo{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode(jd),this.rightGuard=document.createTextNode(jd),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,n;const i=e.data.split(jd).join("");if(e===this.leftGuard)if(this.prev instanceof $s){const l=this.prev.length();this.prev.insertAt(l,i),t={startNode:this.prev.domNode,startOffset:l+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof $s?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(n),this.next),t={startNode:n,startOffset:i.length}));return e.data=jd,t}update(e,t){e.forEach(n=>{if(n.type==="characterData"&&(n.target===this.leftGuard||n.target===this.rightGuard)){const i=this.restore(n.target);i&&(t.range=i)}})}}class kM{constructor(e,t){dt(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof Im)&&(this.emitter.emit(Zt.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Zt.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(Zt.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Zt.events.COMPOSITION_END,e),this.isComposing=!1}}const Wf=class Wf{constructor(e,t){dt(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};dt(Wf,"DEFAULTS",{modules:{}}),dt(Wf,"themes",{default:Wf});let Ju=Wf;const RM=r=>r.parentElement||r.getRootNode().host||null,IM=r=>{const e=r.getBoundingClientRect(),t="offsetWidth"in r&&Math.abs(e.width)/r.offsetWidth||1,n="offsetHeight"in r&&Math.abs(e.height)/r.offsetHeight||1;return{top:e.top,right:e.left+r.clientWidth*t,bottom:e.top+r.clientHeight*n,left:e.left}},Bd=r=>{const e=parseInt(r,10);return Number.isNaN(e)?0:e},V0=(r,e,t,n,i,l)=>r<t&&e>n?0:r<t?-(t-r+i):e>n?e-r>n-t?r+i-t:e-n+l:0,LM=(r,e)=>{var l,u,f;const t=r.ownerDocument;let n=e,i=r;for(;i;){const g=i===t.body,m=g?{top:0,right:((l=window.visualViewport)==null?void 0:l.width)??t.documentElement.clientWidth,bottom:((u=window.visualViewport)==null?void 0:u.height)??t.documentElement.clientHeight,left:0}:IM(i),R=getComputedStyle(i),E=V0(n.left,n.right,m.left,m.right,Bd(R.scrollPaddingLeft),Bd(R.scrollPaddingRight)),_=V0(n.top,n.bottom,m.top,m.bottom,Bd(R.scrollPaddingTop),Bd(R.scrollPaddingBottom));if(E||_)if(g)(f=t.defaultView)==null||f.scrollBy(E,_);else{const{scrollLeft:S,scrollTop:x}=i;_&&(i.scrollTop+=_),E&&(i.scrollLeft+=E);const M=i.scrollLeft-S,w=i.scrollTop-x;n={left:n.left-M,top:n.top-w,right:n.right-M,bottom:n.bottom-w}}i=g||R.position==="fixed"?null:RM(i)}},MM=100,DM=["block","break","cursor","inline","scroll","text"],OM=(r,e,t)=>{const n=new Yu;return DM.forEach(i=>{const l=e.query(i);l&&n.register(l)}),r.forEach(i=>{let l=e.query(i);l||t.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let u=0;for(;l;)if(n.register(l),l="blotName"in l?l.requiredContainer??null:null,u+=1,u>MM){t.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),n},Vu=cl("quill"),Hd=new Yu;qs.uiClass="ql-ui";const Ps=class Ps{static debug(e){e===!0&&(e="log"),cl.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return X1.get(e)||Hd.find(e,t)}static import(e){return this.imports[e]==null&&Vu.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),n="attrName"in e?e.attrName:e.blotName;typeof n=="string"?this.register(`formats/${n}`,e,t):Object.keys(e).forEach(i=>{this.register(i,e[i],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!n&&Vu.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&Hd.register(t),typeof t.register=="function"&&t.register(Hd)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=PM(e,t),this.container=this.options.container,this.container==null){Vu.error("Invalid Quill container",e);return}this.options.debug&&Ps.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",X1.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Zt;const i=Rm.blotName,l=this.options.registry.query(i);if(!l||!("blotName"in l))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new l(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new AM(this.scroll),this.selection=new CM(this.scroll,this.emitter),this.composition=new kM(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Zt.events.EDITOR_CHANGE,u=>{u===Zt.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(Zt.events.SCROLL_UPDATE,(u,f)=>{const g=this.selection.lastRange,[m]=this.selection.getRange(),R=g&&m?{oldRange:g,newRange:m}:void 0;Os.call(this,()=>this.editor.update(null,f,R),u)}),this.emitter.on(Zt.events.SCROLL_EMBED_UPDATE,(u,f)=>{const g=this.selection.lastRange,[m]=this.selection.getRange(),R=g&&m?{oldRange:g,newRange:m}:void 0;Os.call(this,()=>{const E=new Gt().retain(u.offset(this)).retain({[u.statics.blotName]:f});return this.editor.update(E,[],R)},Ps.sources.USER)}),n){const u=this.clipboard.convert({html:`${n}<p><br></p>`,text:`
176
- `});this.setContents(u)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt.sources.API;return Os.call(this,()=>{const i=this.getSelection(!0);let l=new Gt;if(i==null)return l;if(this.scroll.query(e,Jt.BLOCK))l=this.editor.formatLine(i.index,i.length,{[e]:t});else{if(i.length===0)return this.selection.format(e,t),l;l=this.editor.formatText(i.index,i.length,{[e]:t})}return this.setSelection(i,Zt.sources.SILENT),l},n)}formatLine(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatLine(e,t,u),l,e,0)}formatText(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatText(e,t,u),l,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof e=="number"?n=this.selection.getBounds(e,t):n=this.selection.getBounds(e.index,e.length),!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=el(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ps.sources.API;return Os.call(this,()=>this.editor.insertEmbed(e,t,n),i,e)}insertText(e,t,n,i,l){let u;return[e,,u,l]=el(e,0,n,i,l),Os.call(this,()=>this.editor.insertText(e,t,u),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){LM(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>{e=new Gt(e);const n=this.getLength(),i=this.editor.deleteText(0,n),l=this.editor.insertContents(0,e),u=this.editor.deleteText(this.getLength()-1,1);return i.compose(l).compose(u)},t)}setSelection(e,t,n){e==null?this.selection.setRange(null,t||Ps.sources.API):([e,t,,n]=el(e,t,n),this.selection.setRange(new Jc(Math.max(0,e),t),n),n!==Zt.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;const n=new Gt().insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zt.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>(e=new Gt(e),this.editor.applyDelta(e)),t,!0)}};dt(Ps,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Hd,theme:"default"}),dt(Ps,"events",Zt.events),dt(Ps,"sources",Zt.sources),dt(Ps,"version","2.0.3"),dt(Ps,"imports",{delta:Gt,parchment:hM,"core/module":Vs,"core/theme":Ju});let We=Ps;function G0(r){return typeof r=="string"?document.querySelector(r):r}function cp(r){return Object.entries(r??{}).reduce((e,t)=>{let[n,i]=t;return{...e,[n]:i===!0?{}:i}},{})}function Z0(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0))}function PM(r,e){const t=G0(r);if(!t)throw new Error("Invalid Quill container");const i=!e.theme||e.theme===We.DEFAULTS.theme?Ju:We.import(`themes/${e.theme}`);if(!i)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...u}=We.DEFAULTS,{modules:f,...g}=i.DEFAULTS;let m=cp(e.modules);m!=null&&m.toolbar&&m.toolbar.constructor!==Object&&(m={...m,toolbar:{container:m.toolbar}});const R=Ql({},cp(l),cp(f),m),E={...u,...Z0(g),...Z0(e)};let _=e.registry;return _?e.formats&&Vu.warn('Ignoring "formats" option because "registry" is specified'):_=e.formats?OM(e.formats,E.registry,Vu):E.registry,{...E,registry:_,container:t,theme:i,modules:Object.entries(R).reduce((S,x)=>{let[M,w]=x;if(!w)return S;const b=We.import(`modules/${M}`);return b==null?(Vu.error(`Cannot load ${M} module. Are you sure you registered it?`),S):{...S,[M]:Ql({},b.DEFAULTS||{},w)}},{}),bounds:G0(E.bounds)}}function Os(r,e,t,n){if(!this.isEnabled()&&e===Zt.sources.USER&&!this.allowReadOnlyEdits)return new Gt;let i=t==null?null:this.getSelection();const l=this.editor.delta,u=r();if(i!=null&&(t===!0&&(t=i.index),n==null?i=K0(i,u,e):n!==0&&(i=K0(i,t,n,e)),this.setSelection(i,Zt.sources.SILENT)),u.length()>0){const f=[Zt.events.TEXT_CHANGE,u,l,e];this.emitter.emit(Zt.events.EDITOR_CHANGE,...f),e!==Zt.sources.SILENT&&this.emitter.emit(...f)}return u}function el(r,e,t,n,i){let l={};return typeof r.index=="number"&&typeof r.length=="number"?typeof e!="number"?(i=n,n=t,t=e,e=r.length,r=r.index):(e=r.length,r=r.index):typeof e!="number"&&(i=n,n=t,t=e,e=0),typeof t=="object"?(l=t,i=n):typeof t=="string"&&(n!=null?l[t]=n:i=t),i=i||Zt.sources.API,[r,e,l,i]}function K0(r,e,t,n){const i=typeof t=="number"?t:0;if(r==null)return null;let l,u;return e&&typeof e.transformPosition=="function"?[l,u]=[r.index,r.index+r.length].map(f=>e.transformPosition(f,n!==Zt.sources.USER)):[l,u]=[r.index,r.index+r.length].map(f=>f<e||f===e&&n===Zt.sources.USER?f:i>=0?f+i:Math.max(e,f+i)),new Jc(l,u-l)}class nu extends hh{}function Y0(r){return r instanceof ji||r instanceof ds}function X0(r){return typeof r.updateContent=="function"}class Hu extends Rm{constructor(e,t,n){let{emitter:i}=n;super(e,t),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",l=>this.handleDragStart(l))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Zt.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Zt.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Zt.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[n,i]=this.line(e),[l]=this.line(e+t);if(super.deleteAt(e,t),l!=null&&n!==l&&i>0){if(n instanceof ds||l instanceof ds){this.optimize();return}const u=l.children.head instanceof Ws?null:l.children.head;n.moveChildren(l,u),n.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(n==null||this.scroll.query(t,Jt.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),n==null&&t.endsWith(`
176
+ `});this.setContents(u)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zt.sources.API;return Os.call(this,()=>{const i=this.getSelection(!0);let l=new Gt;if(i==null)return l;if(this.scroll.query(e,Jt.BLOCK))l=this.editor.formatLine(i.index,i.length,{[e]:t});else{if(i.length===0)return this.selection.format(e,t),l;l=this.editor.formatText(i.index,i.length,{[e]:t})}return this.setSelection(i,Zt.sources.SILENT),l},n)}formatLine(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatLine(e,t,u),l,e,0)}formatText(e,t,n,i,l){let u;return[e,t,u,l]=el(e,t,n,i,l),Os.call(this,()=>this.editor.formatText(e,t,u),l,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof e=="number"?n=this.selection.getBounds(e,t):n=this.selection.getBounds(e.index,e.length),!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=el(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=el(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ps.sources.API;return Os.call(this,()=>this.editor.insertEmbed(e,t,n),i,e)}insertText(e,t,n,i,l){let u;return[e,,u,l]=el(e,0,n,i,l),Os.call(this,()=>this.editor.insertText(e,t,u),l,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=el(e,t,n),Os.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){LM(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>{e=new Gt(e);const n=this.getLength(),i=this.editor.deleteText(0,n),l=this.editor.insertContents(0,e),u=this.editor.deleteText(this.getLength()-1,1);return i.compose(l).compose(u)},t)}setSelection(e,t,n){e==null?this.selection.setRange(null,t||Ps.sources.API):([e,t,,n]=el(e,t,n),this.selection.setRange(new Jc(Math.max(0,e),t),n),n!==Zt.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;const n=new Gt().insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zt.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt.sources.API;return Os.call(this,()=>(e=new Gt(e),this.editor.applyDelta(e)),t,!0)}};dt(Ps,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Hd,theme:"default"}),dt(Ps,"events",Zt.events),dt(Ps,"sources",Zt.sources),dt(Ps,"version","2.0.3"),dt(Ps,"imports",{delta:Gt,parchment:hM,"core/module":Vs,"core/theme":Ju});let Ve=Ps;function G0(r){return typeof r=="string"?document.querySelector(r):r}function cp(r){return Object.entries(r??{}).reduce((e,t)=>{let[n,i]=t;return{...e,[n]:i===!0?{}:i}},{})}function Z0(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0))}function PM(r,e){const t=G0(r);if(!t)throw new Error("Invalid Quill container");const i=!e.theme||e.theme===Ve.DEFAULTS.theme?Ju:Ve.import(`themes/${e.theme}`);if(!i)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:l,...u}=Ve.DEFAULTS,{modules:f,...g}=i.DEFAULTS;let m=cp(e.modules);m!=null&&m.toolbar&&m.toolbar.constructor!==Object&&(m={...m,toolbar:{container:m.toolbar}});const R=Ql({},cp(l),cp(f),m),E={...u,...Z0(g),...Z0(e)};let _=e.registry;return _?e.formats&&Vu.warn('Ignoring "formats" option because "registry" is specified'):_=e.formats?OM(e.formats,E.registry,Vu):E.registry,{...E,registry:_,container:t,theme:i,modules:Object.entries(R).reduce((S,x)=>{let[M,w]=x;if(!w)return S;const b=Ve.import(`modules/${M}`);return b==null?(Vu.error(`Cannot load ${M} module. Are you sure you registered it?`),S):{...S,[M]:Ql({},b.DEFAULTS||{},w)}},{}),bounds:G0(E.bounds)}}function Os(r,e,t,n){if(!this.isEnabled()&&e===Zt.sources.USER&&!this.allowReadOnlyEdits)return new Gt;let i=t==null?null:this.getSelection();const l=this.editor.delta,u=r();if(i!=null&&(t===!0&&(t=i.index),n==null?i=K0(i,u,e):n!==0&&(i=K0(i,t,n,e)),this.setSelection(i,Zt.sources.SILENT)),u.length()>0){const f=[Zt.events.TEXT_CHANGE,u,l,e];this.emitter.emit(Zt.events.EDITOR_CHANGE,...f),e!==Zt.sources.SILENT&&this.emitter.emit(...f)}return u}function el(r,e,t,n,i){let l={};return typeof r.index=="number"&&typeof r.length=="number"?typeof e!="number"?(i=n,n=t,t=e,e=r.length,r=r.index):(e=r.length,r=r.index):typeof e!="number"&&(i=n,n=t,t=e,e=0),typeof t=="object"?(l=t,i=n):typeof t=="string"&&(n!=null?l[t]=n:i=t),i=i||Zt.sources.API,[r,e,l,i]}function K0(r,e,t,n){const i=typeof t=="number"?t:0;if(r==null)return null;let l,u;return e&&typeof e.transformPosition=="function"?[l,u]=[r.index,r.index+r.length].map(f=>e.transformPosition(f,n!==Zt.sources.USER)):[l,u]=[r.index,r.index+r.length].map(f=>f<e||f===e&&n===Zt.sources.USER?f:i>=0?f+i:Math.max(e,f+i)),new Jc(l,u-l)}class nu extends hh{}function Y0(r){return r instanceof ji||r instanceof ds}function X0(r){return typeof r.updateContent=="function"}class Hu extends Rm{constructor(e,t,n){let{emitter:i}=n;super(e,t),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",l=>this.handleDragStart(l))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(Zt.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(Zt.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(Zt.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[n,i]=this.line(e),[l]=this.line(e+t);if(super.deleteAt(e,t),l!=null&&n!==l&&i>0){if(n instanceof ds||l instanceof ds){this.optimize();return}const u=l.children.head instanceof Ws?null:l.children.head;n.moveChildren(l,u),n.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,i){super.formatAt(e,t,n,i),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(n==null||this.scroll.query(t,Jt.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),n==null&&t.endsWith(`
177
177
  `)?i.insertAt(0,t.slice(0,-1),n):i.insertAt(0,t,n)}else{const i=this.scroll.create(t,n);this.appendChild(i)}else super.insertAt(e,t,n);this.optimize()}insertBefore(e,t){if(e.statics.scope===Jt.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(e),super.insertBefore(n,t)}else super.insertBefore(e,t)}insertContents(e,t){const n=this.deltaToRenderBlocks(t.concat(new Gt().insert(`
178
178
  `))),i=n.pop();if(i==null)return;this.batchStart();const l=n.shift();if(l){const g=l.type==="block"&&(l.delta.length()===0||!this.descendant(ds,e)[0]&&e<this.length()),m=l.type==="block"?l.delta:new Gt().insert({[l.key]:l.value});up(this,e,m);const R=l.type==="block"?1:0,E=e+m.length()+R;g&&this.insertAt(E-1,`
179
179
  `);const _=us(this.line(e)[0]),S=hs.AttributeMap.diff(_,l.attributes)||{};Object.keys(S).forEach(x=>{this.formatAt(E-1,1,x,S[x])}),e=E}let[u,f]=this.children.find(e);if(n.length&&(u&&(u=u.split(f),f=0),n.forEach(g=>{if(g.type==="block"){const m=this.createBlock(g.attributes,u||void 0);up(m,0,g.delta)}else{const m=this.create(g.key,g.value);this.insertBefore(m,u||void 0),Object.keys(g.attributes).forEach(R=>{m.format(R,g.attributes[R])})}})),i.type==="block"&&i.delta.length()){const g=u?u.offset(u.scroll)+f:this.length();up(this,g,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[n,i]=t;return n instanceof qi?[n,i]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(Y0,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const n=(i,l,u)=>{let f=[],g=u;return i.children.forEachAt(l,u,(m,R,E)=>{Y0(m)?f.push(m):m instanceof hh&&(f=f.concat(n(m,R,g))),g-=E}),f};return n(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(Zt.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=Zt.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(n=>{let{target:i}=n;const l=this.find(i,!0);return l&&!X0(l)}),e.length>0&&this.emitter.emit(Zt.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(Zt.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,n){const[i]=this.descendant(l=>l instanceof ds,e);i&&i.statics.blotName===t&&X0(i)&&i.updateContent(n)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let n=new Gt;return e.forEach(i=>{const l=i==null?void 0:i.insert;if(l)if(typeof l=="string"){const u=l.split(`
180
180
  `);u.slice(0,-1).forEach(g=>{n.insert(g,i.attributes),t.push({type:"block",delta:n,attributes:i.attributes??{}}),n=new Gt});const f=u[u.length-1];f&&n.insert(f,i.attributes)}else{const u=Object.keys(l)[0];if(!u)return;this.query(u,Jt.INLINE)?n.push(i):(n.length()&&t.push({type:"block",delta:n,attributes:{}}),n=new Gt,t.push({type:"blockEmbed",key:u,value:l[u],attributes:i.attributes??{}}))}}),n.length()&&t.push({type:"block",delta:n,attributes:{}}),t}createBlock(e,t){let n;const i={};Object.entries(e).forEach(f=>{let[g,m]=f;this.query(g,Jt.BLOCK&Jt.BLOT)!=null?n=g:i[g]=m});const l=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(l,t||void 0);const u=l.length();return Object.entries(i).forEach(f=>{let[g,m]=f;l.formatAt(0,u,g,m)}),l}}dt(Hu,"blotName","scroll"),dt(Hu,"className","ql-editor"),dt(Hu,"tagName","DIV"),dt(Hu,"defaultChild",ji),dt(Hu,"allowedChildren",[ji,ds,nu]);function up(r,e,t){t.reduce((n,i)=>{const l=hs.Op.length(i);let u=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const f=i.insert;r.insertAt(n,f);const[g]=r.descendant(qi,n),m=us(g);u=hs.AttributeMap.diff(m,u)||{}}else if(typeof i.insert=="object"){const f=Object.keys(i.insert)[0];if(f==null)return n;if(r.insertAt(n,f,i.insert[f]),r.scroll.query(f,Jt.INLINE)!=null){const[m]=r.descendant(qi,n),R=us(m);u=hs.AttributeMap.diff(R,u)||{}}}}return Object.keys(u).forEach(f=>{r.formatAt(n,l,f,u[f])}),n+l},e)}const Lm={scope:Jt.BLOCK,whitelist:["right","center","justify"]},NM=new Ca("align","align",Lm),Lx=new Us("align","ql-align",Lm),Mx=new oc("align","text-align",Lm);class Dx extends oc{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):t}}const FM=new Us("color","ql-color",{scope:Jt.INLINE}),Mm=new Dx("color","color",{scope:Jt.INLINE}),jM=new Us("background","ql-bg",{scope:Jt.INLINE}),Dm=new Dx("background","background-color",{scope:Jt.INLINE});class iu extends nu{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(n=>n.length()<=1?"":n.domNode.innerText).join(`
181
181
  `).slice(e,e+t)}html(e,t){return`<pre>
182
182
  ${ph(this.code(e,t))}
183
- </pre>`}}class zi extends ji{static register(){We.register(iu)}}dt(zi,"TAB"," ");class Om extends wa{}Om.blotName="code";Om.tagName="CODE";zi.blotName="code-block";zi.className="ql-code-block";zi.tagName="DIV";iu.blotName="code-block-container";iu.className="ql-code-block-container";iu.tagName="DIV";iu.allowedChildren=[zi];zi.allowedChildren=[$s,Ws,Xu];zi.requiredContainer=iu;const Pm={scope:Jt.BLOCK,whitelist:["rtl"]},Ox=new Ca("direction","dir",Pm),Px=new Us("direction","ql-direction",Pm),Nx=new oc("direction","direction",Pm),Fx={scope:Jt.INLINE,whitelist:["serif","monospace"]},jx=new Us("font","ql-font",Fx);class BM extends oc{value(e){return super.value(e).replace(/["']/g,"")}}const Bx=new BM("font","font-family",Fx),Hx=new Us("size","ql-size",{scope:Jt.INLINE,whitelist:["small","large","huge"]}),qx=new oc("size","font-size",{scope:Jt.INLINE,whitelist:["10px","18px","32px"]}),HM=cl("quill:keyboard"),qM=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class gh extends Vs{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&t[n]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=$M(e);if(i==null){HM.warn("Attempted to add invalid keyboard binding",i);return}typeof t=="function"&&(t={handler:t}),typeof n=="function"&&(n={handler:n}),(Array.isArray(i.key)?i.key:[i.key]).forEach(u=>{const f={...i,key:u,...t,...n};this.bindings[f.key]=this.bindings[f.key]||[],this.bindings[f.key].push(f)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const i=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(b=>gh.match(e,b));if(i.length===0)return;const l=We.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const u=this.quill.getSelection();if(u==null||!this.quill.hasFocus())return;const[f,g]=this.quill.getLine(u.index),[m,R]=this.quill.getLeaf(u.index),[E,_]=u.length===0?[m,R]:this.quill.getLeaf(u.index+u.length),S=m instanceof rh?m.value().slice(0,R):"",x=E instanceof rh?E.value().slice(_):"",M={collapsed:u.length===0,empty:u.length===0&&f.length()<=1,format:this.quill.getFormat(u),line:f,offset:g,prefix:S,suffix:x,event:e};i.some(b=>{if(b.collapsed!=null&&b.collapsed!==M.collapsed||b.empty!=null&&b.empty!==M.empty||b.offset!=null&&b.offset!==M.offset)return!1;if(Array.isArray(b.format)){if(b.format.every(I=>M.format[I]==null))return!1}else if(typeof b.format=="object"&&!Object.keys(b.format).every(I=>b.format[I]===!0?M.format[I]!=null:b.format[I]===!1?M.format[I]==null:Em(b.format[I],M.format[I])))return!1;return b.prefix!=null&&!b.prefix.test(M.prefix)||b.suffix!=null&&!b.suffix.test(M.suffix)?!1:b.handler.call(this,u,M,b)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let i={};const[l]=this.quill.getLine(e.index);let u=new Gt().retain(e.index-n).delete(n);if(t.offset===0){const[f]=this.quill.getLine(e.index-1);if(f&&!(f.statics.blotName==="block"&&f.length()<=1)){const m=l.formats(),R=this.quill.getFormat(e.index-1,1);if(i=hs.AttributeMap.diff(m,R)||{},Object.keys(i).length>0){const E=new Gt().retain(e.index+l.length()-2).retain(1,i);u=u.compose(E)}}}this.quill.updateContents(u,We.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let i={};const[l]=this.quill.getLine(e.index);let u=new Gt().retain(e.index).delete(n);if(t.offset>=l.length()-1){const[f]=this.quill.getLine(e.index+1);if(f){const g=l.formats(),m=this.quill.getFormat(e.index,1);i=hs.AttributeMap.diff(g,m)||{},Object.keys(i).length>0&&(u=u.retain(f.length()-1).retain(1,i))}}this.quill.updateContents(u,We.sources.USER),this.quill.focus()}handleDeleteRange(e){Nm({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce((l,u)=>(this.quill.scroll.query(u,Jt.BLOCK)&&!Array.isArray(t.format[u])&&(l[u]=t.format[u]),l),{}),i=new Gt().retain(e.index).delete(e.length).insert(`
184
- `,n);this.quill.updateContents(i,We.sources.USER),this.quill.setSelection(e.index+1,We.sources.SILENT),this.quill.focus()}}const zM={bindings:{bold:fp("bold"),italic:fp("italic"),underline:fp("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",We.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",We.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,e){e.format.indent!=null?this.quill.format("indent","-1",We.sources.USER):e.format.list!=null&&this.quill.format("list",!1,We.sources.USER)}},"indent code-block":J0(!0),"outdent code-block":J0(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,We.sources.USER)}},tab:{key:"Tab",handler(r,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Gt().retain(r.index).delete(r.length).insert(" ");return this.quill.updateContents(t,We.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,We.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,We.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(r.index,r.length,t,We.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[e,t]=this.quill.getLine(r.index),n={...e.formats(),list:"checked"},i=new Gt().retain(r.index).insert(`
185
- `,n).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,We.sources.USER),this.quill.setSelection(r.index+1,We.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,e){const[t,n]=this.quill.getLine(r.index),i=new Gt().retain(r.index).insert(`
186
- `,e.format).retain(t.length()-n-1).retain(1,{header:null});this.quill.updateContents(i,We.sources.USER),this.quill.setSelection(r.index+1,We.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){const e=this.quill.getModule("table");if(e){const[t,n,i,l]=e.getTable(r),u=UM(t,n,i,l);if(u==null)return;let f=t.offset();if(u<0){const g=new Gt().retain(f).insert(`
187
- `);this.quill.updateContents(g,We.sources.USER),this.quill.setSelection(r.index+1,r.length,We.sources.SILENT)}else if(u>0){f+=t.length();const g=new Gt().retain(f).insert(`
188
- `);this.quill.updateContents(g,We.sources.USER),this.quill.setSelection(f,We.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,e){const{event:t,line:n}=e,i=n.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,We.sources.USER):this.quill.setSelection(i+n.length(),We.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[n,i]=this.quill.getLine(r.index);if(i>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(r.index," ",We.sources.USER),this.quill.history.cutoff();const u=new Gt().retain(r.index-i).delete(t+1).retain(n.length()-2-i).retain(1,{list:l});return this.quill.updateContents(u,We.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,We.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[e,t]=this.quill.getLine(r.index);let n=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,n-=1,n<=0){const l=new Gt().retain(r.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,We.sources.USER),this.quill.setSelection(r.index-1,We.sources.SILENT),!1}return!0}},"embed left":qd("ArrowLeft",!1),"embed left shift":qd("ArrowLeft",!0),"embed right":qd("ArrowRight",!1),"embed right shift":qd("ArrowRight",!0),"table down":Q0(!1),"table up":Q0(!0)}};gh.DEFAULTS=zM;function J0(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(e,t){let{event:n}=t;const i=this.quill.scroll.query("code-block"),{TAB:l}=i;if(e.length===0&&!n.shiftKey){this.quill.insertText(e.index,l,We.sources.USER),this.quill.setSelection(e.index+l.length,We.sources.SILENT);return}const u=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:f,length:g}=e;u.forEach((m,R)=>{r?(m.insertAt(0,l),R===0?f+=l.length:g+=l.length):m.domNode.textContent.startsWith(l)&&(m.deleteAt(0,l.length),R===0?f-=l.length:g-=l.length)}),this.quill.update(We.sources.USER),this.quill.setSelection(f,g,We.sources.SILENT)}}}function qd(r,e){return{key:r,shiftKey:e,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(n){let{index:i}=n;r==="ArrowRight"&&(i+=n.length+1);const[l]=this.quill.getLeaf(i);return l instanceof zo?(r==="ArrowLeft"?e?this.quill.setSelection(n.index-1,n.length+1,We.sources.USER):this.quill.setSelection(n.index-1,We.sources.USER):e?this.quill.setSelection(n.index,n.length+1,We.sources.USER):this.quill.setSelection(n.index+n.length+1,We.sources.USER),!1):!0}}}function fp(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],We.sources.USER)}}}function Q0(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const n=r?"prev":"next",i=t.line,l=i.parent[n];if(l!=null){if(l.statics.blotName==="table-row"){let u=l.children.head,f=i;for(;f.prev!=null;)f=f.prev,u=u.next;const g=u.offset(this.quill.scroll)+Math.min(t.offset,u.length()-1);this.quill.setSelection(g,0,We.sources.USER)}}else{const u=i.table()[n];u!=null&&(r?this.quill.setSelection(u.offset(this.quill.scroll)+u.length()-1,0,We.sources.USER):this.quill.setSelection(u.offset(this.quill.scroll),0,We.sources.USER))}return!1}}}function $M(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=Uu(r);else return null;return r.shortKey&&(r[qM]=r.shortKey,delete r.shortKey),r}function Nm(r){let{quill:e,range:t}=r;const n=e.getLines(t);let i={};if(n.length>1){const l=n[0].formats(),u=n[n.length-1].formats();i=hs.AttributeMap.diff(u,l)||{}}e.deleteText(t,We.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,We.sources.USER),e.setSelection(t.index,We.sources.SILENT)}function UM(r,e,t,n){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?n===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const WM=/font-weight:\s*normal/,VM=["P","OL","UL"],ey=r=>r&&VM.includes(r.tagName),GM=r=>{Array.from(r.querySelectorAll("br")).filter(e=>ey(e.previousElementSibling)&&ey(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},ZM=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(WM)}).forEach(e=>{var n;const t=r.createDocumentFragment();t.append(...e.childNodes),(n=e.parentNode)==null||n.replaceChild(t,e)})};function KM(r){r.querySelector('[id^="docs-internal-guid-"]')&&(ZM(r),GM(r))}const YM=/\bmso-list:[^;]*ignore/i,XM=/\bmso-list:[^;]*\bl(\d+)/i,JM=/\bmso-list:[^;]*\blevel(\d+)/i,QM=(r,e)=>{const t=r.getAttribute("style"),n=t==null?void 0:t.match(XM);if(!n)return null;const i=Number(n[1]),l=t==null?void 0:t.match(JM),u=l?Number(l[1]):1,f=new RegExp(`@list l${i}:level${u}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),g=e.match(f),m=g&&g[1]==="bullet"?"bullet":"ordered";return{id:i,indent:u,type:m,element:r}},eD=r=>{var u,f;const e=Array.from(r.querySelectorAll("[style*=mso-list]")),t=[],n=[];e.forEach(g=>{(g.getAttribute("style")||"").match(YM)?t.push(g):n.push(g)}),t.forEach(g=>{var m;return(m=g.parentNode)==null?void 0:m.removeChild(g)});const i=r.documentElement.innerHTML,l=n.map(g=>QM(g,i)).filter(g=>g);for(;l.length;){const g=[];let m=l.shift();for(;m;)g.push(m),m=l.length&&((u=l[0])==null?void 0:u.element)===m.element.nextElementSibling&&l[0].id===m.id?l.shift():null;const R=document.createElement("ul");g.forEach(S=>{const x=document.createElement("li");x.setAttribute("data-list",S.type),S.indent>1&&x.setAttribute("class",`ql-indent-${S.indent-1}`),x.innerHTML=S.element.innerHTML,R.appendChild(x)});const E=(f=g[0])==null?void 0:f.element,{parentNode:_}=E??{};E&&(_==null||_.replaceChild(R,E)),g.slice(1).forEach(S=>{let{element:x}=S;_==null||_.removeChild(x)})}};function tD(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&eD(r)}const rD=[tD,KM],nD=r=>{r.documentElement&&rD.forEach(e=>{e(r)})},iD=cl("quill:clipboard"),oD=[[Node.TEXT_NODE,vD],[Node.TEXT_NODE,ry],["br",uD],[Node.ELEMENT_NODE,ry],[Node.ELEMENT_NODE,cD],[Node.ELEMENT_NODE,lD],[Node.ELEMENT_NODE,gD],["li",hD],["ol, ul",pD],["pre",fD],["tr",mD],["b",dp("bold")],["i",dp("italic")],["strike",dp("strike")],["style",dD]],sD=[NM,Ox].reduce((r,e)=>(r[e.keyName]=e,r),{}),ty=[Mx,Dm,Mm,Nx,Bx,qx].reduce((r,e)=>(r[e.keyName]=e,r),{});class zx extends Vs{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",n=>this.onCaptureCopy(n,!1)),this.quill.root.addEventListener("cut",n=>this.onCaptureCopy(n,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],oD.concat(this.options.matchers??[]).forEach(n=>{let[i,l]=n;this.addMatcher(i,l)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[zi.blotName])return new Gt().insert(n||"",{[zi.blotName]:i[zi.blotName]});if(!t)return new Gt().insert(n||"",i);const l=this.convertHTML(t);return sd(l,`
189
- `)&&(l.ops[l.ops.length-1].attributes==null||i.table)?l.compose(new Gt().retain(l.length()-1).delete(1)):l}normalizeHTML(e){nD(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const n=t.body,i=new WeakMap,[l,u]=this.prepareMatching(n,i);return Fm(this.quill.scroll,n,l,u,i)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:We.sources.API;if(typeof e=="string"){const i=this.convert({html:e,text:""});this.quill.setContents(i,t),this.quill.setSelection(0,We.sources.SILENT)}else{const i=this.convert({html:t,text:""});this.quill.updateContents(new Gt().retain(e).concat(i),n),this.quill.setSelection(e+i.length(),We.sources.SILENT)}}onCaptureCopy(e){var u,f;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[n]=this.quill.selection.getRange();if(n==null)return;const{html:i,text:l}=this.onCopy(n,t);(u=e.clipboardData)==null||u.setData("text/plain",l),(f=e.clipboardData)==null||f.setData("text/html",i),t&&Nm({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
190
- `)}onCapturePaste(e){var u,f,g,m,R;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const n=(u=e.clipboardData)==null?void 0:u.getData("text/html");let i=(f=e.clipboardData)==null?void 0:f.getData("text/plain");if(!n&&!i){const E=(g=e.clipboardData)==null?void 0:g.getData("text/uri-list");E&&(i=this.normalizeURIList(E))}const l=Array.from(((m=e.clipboardData)==null?void 0:m.files)||[]);if(!n&&l.length>0){this.quill.uploader.upload(t,l);return}if(n&&l.length>0){const E=new DOMParser().parseFromString(n,"text/html");if(E.body.childElementCount===1&&((R=E.body.firstElementChild)==null?void 0:R.tagName)==="IMG"){this.quill.uploader.upload(t,l);return}}this.onPaste(t,{html:n,text:i})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:i}=t;const l=this.quill.getFormat(e.index),u=this.convert({text:n,html:i},l);iD.log("onPaste",u,{text:n,html:i});const f=new Gt().retain(e.index).delete(e.length).concat(u);this.quill.updateContents(f,We.sources.USER),this.quill.setSelection(f.length()-e.length,We.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],i=[];return this.matchers.forEach(l=>{const[u,f]=l;switch(u){case Node.TEXT_NODE:i.push(f);break;case Node.ELEMENT_NODE:n.push(f);break;default:Array.from(e.querySelectorAll(u)).forEach(g=>{if(t.has(g)){const m=t.get(g);m==null||m.push(f)}else t.set(g,[f])});break}}),[n,i]}}dt(zx,"DEFAULTS",{matchers:[]});function ou(r,e,t,n){return n.query(e)?r.reduce((i,l)=>{if(!l.insert)return i;if(l.attributes&&l.attributes[e])return i.push(l);const u=t?{[e]:t}:{};return i.insert(l.insert,{...u,...l.attributes})},new Gt):r}function sd(r,e){let t="";for(let n=r.ops.length-1;n>=0&&t.length<e.length;--n){const i=r.ops[n];if(typeof i.insert!="string")break;t=i.insert+t}return t.slice(-1*e.length)===e}function Xl(r,e){if(!(r instanceof Element))return!1;const t=e.query(r);return t&&t.prototype instanceof zo?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(r.tagName.toLowerCase())}function aD(r,e){return r.previousElementSibling&&r.nextElementSibling&&!Xl(r.previousElementSibling,e)&&!Xl(r.nextElementSibling,e)}const zd=new WeakMap;function $x(r){return r==null?!1:(zd.has(r)||(r.tagName==="PRE"?zd.set(r,!0):zd.set(r,$x(r.parentNode))),zd.get(r))}function Fm(r,e,t,n,i){return e.nodeType===e.TEXT_NODE?n.reduce((l,u)=>u(e,l,r),new Gt):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,u)=>{let f=Fm(r,u,t,n,i);return u.nodeType===e.ELEMENT_NODE&&(f=t.reduce((g,m)=>m(u,g,r),f),f=(i.get(u)||[]).reduce((g,m)=>m(u,g,r),f)),l.concat(f)},new Gt):new Gt}function dp(r){return(e,t,n)=>ou(t,r,!0,n)}function lD(r,e,t){const n=Ca.keys(r),i=Us.keys(r),l=oc.keys(r),u={};return n.concat(i).concat(l).forEach(f=>{let g=t.query(f,Jt.ATTRIBUTE);g!=null&&(u[g.attrName]=g.value(r),u[g.attrName])||(g=sD[f],g!=null&&(g.attrName===f||g.keyName===f)&&(u[g.attrName]=g.value(r)||void 0),g=ty[f],g!=null&&(g.attrName===f||g.keyName===f)&&(g=ty[f],u[g.attrName]=g.value(r)||void 0))}),Object.entries(u).reduce((f,g)=>{let[m,R]=g;return ou(f,m,R,t)},e)}function cD(r,e,t){const n=t.query(r);if(n==null)return e;if(n.prototype instanceof zo){const i={},l=n.value(r);if(l!=null)return i[n.blotName]=l,new Gt().insert(i,n.formats(r,t))}else if(n.prototype instanceof Qf&&!sd(e,`
183
+ </pre>`}}class zi extends ji{static register(){Ve.register(iu)}}dt(zi,"TAB"," ");class Om extends wa{}Om.blotName="code";Om.tagName="CODE";zi.blotName="code-block";zi.className="ql-code-block";zi.tagName="DIV";iu.blotName="code-block-container";iu.className="ql-code-block-container";iu.tagName="DIV";iu.allowedChildren=[zi];zi.allowedChildren=[$s,Ws,Xu];zi.requiredContainer=iu;const Pm={scope:Jt.BLOCK,whitelist:["rtl"]},Ox=new Ca("direction","dir",Pm),Px=new Us("direction","ql-direction",Pm),Nx=new oc("direction","direction",Pm),Fx={scope:Jt.INLINE,whitelist:["serif","monospace"]},jx=new Us("font","ql-font",Fx);class BM extends oc{value(e){return super.value(e).replace(/["']/g,"")}}const Bx=new BM("font","font-family",Fx),Hx=new Us("size","ql-size",{scope:Jt.INLINE,whitelist:["small","large","huge"]}),qx=new oc("size","font-size",{scope:Jt.INLINE,whitelist:["10px","18px","32px"]}),HM=cl("quill:keyboard"),qM=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class gh extends Vs{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&t[n]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=$M(e);if(i==null){HM.warn("Attempted to add invalid keyboard binding",i);return}typeof t=="function"&&(t={handler:t}),typeof n=="function"&&(n={handler:n}),(Array.isArray(i.key)?i.key:[i.key]).forEach(u=>{const f={...i,key:u,...t,...n};this.bindings[f.key]=this.bindings[f.key]||[],this.bindings[f.key].push(f)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const i=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(b=>gh.match(e,b));if(i.length===0)return;const l=Ve.find(e.target,!0);if(l&&l.scroll!==this.quill.scroll)return;const u=this.quill.getSelection();if(u==null||!this.quill.hasFocus())return;const[f,g]=this.quill.getLine(u.index),[m,R]=this.quill.getLeaf(u.index),[E,_]=u.length===0?[m,R]:this.quill.getLeaf(u.index+u.length),S=m instanceof rh?m.value().slice(0,R):"",x=E instanceof rh?E.value().slice(_):"",M={collapsed:u.length===0,empty:u.length===0&&f.length()<=1,format:this.quill.getFormat(u),line:f,offset:g,prefix:S,suffix:x,event:e};i.some(b=>{if(b.collapsed!=null&&b.collapsed!==M.collapsed||b.empty!=null&&b.empty!==M.empty||b.offset!=null&&b.offset!==M.offset)return!1;if(Array.isArray(b.format)){if(b.format.every(I=>M.format[I]==null))return!1}else if(typeof b.format=="object"&&!Object.keys(b.format).every(I=>b.format[I]===!0?M.format[I]!=null:b.format[I]===!1?M.format[I]==null:Em(b.format[I],M.format[I])))return!1;return b.prefix!=null&&!b.prefix.test(M.prefix)||b.suffix!=null&&!b.suffix.test(M.suffix)?!1:b.handler.call(this,u,M,b)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let i={};const[l]=this.quill.getLine(e.index);let u=new Gt().retain(e.index-n).delete(n);if(t.offset===0){const[f]=this.quill.getLine(e.index-1);if(f&&!(f.statics.blotName==="block"&&f.length()<=1)){const m=l.formats(),R=this.quill.getFormat(e.index-1,1);if(i=hs.AttributeMap.diff(m,R)||{},Object.keys(i).length>0){const E=new Gt().retain(e.index+l.length()-2).retain(1,i);u=u.compose(E)}}}this.quill.updateContents(u,Ve.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let i={};const[l]=this.quill.getLine(e.index);let u=new Gt().retain(e.index).delete(n);if(t.offset>=l.length()-1){const[f]=this.quill.getLine(e.index+1);if(f){const g=l.formats(),m=this.quill.getFormat(e.index,1);i=hs.AttributeMap.diff(g,m)||{},Object.keys(i).length>0&&(u=u.retain(f.length()-1).retain(1,i))}}this.quill.updateContents(u,Ve.sources.USER),this.quill.focus()}handleDeleteRange(e){Nm({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce((l,u)=>(this.quill.scroll.query(u,Jt.BLOCK)&&!Array.isArray(t.format[u])&&(l[u]=t.format[u]),l),{}),i=new Gt().retain(e.index).delete(e.length).insert(`
184
+ `,n);this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(e.index+1,Ve.sources.SILENT),this.quill.focus()}}const zM={bindings:{bold:fp("bold"),italic:fp("italic"),underline:fp("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",Ve.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",Ve.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,e){e.format.indent!=null?this.quill.format("indent","-1",Ve.sources.USER):e.format.list!=null&&this.quill.format("list",!1,Ve.sources.USER)}},"indent code-block":J0(!0),"outdent code-block":J0(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,Ve.sources.USER)}},tab:{key:"Tab",handler(r,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new Gt().retain(r.index).delete(r.length).insert(" ");return this.quill.updateContents(t,Ve.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,Ve.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,Ve.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(r.index,r.length,t,Ve.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[e,t]=this.quill.getLine(r.index),n={...e.formats(),list:"checked"},i=new Gt().retain(r.index).insert(`
185
+ `,n).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(r.index+1,Ve.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,e){const[t,n]=this.quill.getLine(r.index),i=new Gt().retain(r.index).insert(`
186
+ `,e.format).retain(t.length()-n-1).retain(1,{header:null});this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(r.index+1,Ve.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){const e=this.quill.getModule("table");if(e){const[t,n,i,l]=e.getTable(r),u=UM(t,n,i,l);if(u==null)return;let f=t.offset();if(u<0){const g=new Gt().retain(f).insert(`
187
+ `);this.quill.updateContents(g,Ve.sources.USER),this.quill.setSelection(r.index+1,r.length,Ve.sources.SILENT)}else if(u>0){f+=t.length();const g=new Gt().retain(f).insert(`
188
+ `);this.quill.updateContents(g,Ve.sources.USER),this.quill.setSelection(f,Ve.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,e){const{event:t,line:n}=e,i=n.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,Ve.sources.USER):this.quill.setSelection(i+n.length(),Ve.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[n,i]=this.quill.getLine(r.index);if(i>t)return!0;let l;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(r.index," ",Ve.sources.USER),this.quill.history.cutoff();const u=new Gt().retain(r.index-i).delete(t+1).retain(n.length()-2-i).retain(1,{list:l});return this.quill.updateContents(u,Ve.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,Ve.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[e,t]=this.quill.getLine(r.index);let n=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,n-=1,n<=0){const l=new Gt().retain(r.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(l,Ve.sources.USER),this.quill.setSelection(r.index-1,Ve.sources.SILENT),!1}return!0}},"embed left":qd("ArrowLeft",!1),"embed left shift":qd("ArrowLeft",!0),"embed right":qd("ArrowRight",!1),"embed right shift":qd("ArrowRight",!0),"table down":Q0(!1),"table up":Q0(!0)}};gh.DEFAULTS=zM;function J0(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(e,t){let{event:n}=t;const i=this.quill.scroll.query("code-block"),{TAB:l}=i;if(e.length===0&&!n.shiftKey){this.quill.insertText(e.index,l,Ve.sources.USER),this.quill.setSelection(e.index+l.length,Ve.sources.SILENT);return}const u=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:f,length:g}=e;u.forEach((m,R)=>{r?(m.insertAt(0,l),R===0?f+=l.length:g+=l.length):m.domNode.textContent.startsWith(l)&&(m.deleteAt(0,l.length),R===0?f-=l.length:g-=l.length)}),this.quill.update(Ve.sources.USER),this.quill.setSelection(f,g,Ve.sources.SILENT)}}}function qd(r,e){return{key:r,shiftKey:e,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(n){let{index:i}=n;r==="ArrowRight"&&(i+=n.length+1);const[l]=this.quill.getLeaf(i);return l instanceof zo?(r==="ArrowLeft"?e?this.quill.setSelection(n.index-1,n.length+1,Ve.sources.USER):this.quill.setSelection(n.index-1,Ve.sources.USER):e?this.quill.setSelection(n.index,n.length+1,Ve.sources.USER):this.quill.setSelection(n.index+n.length+1,Ve.sources.USER),!1):!0}}}function fp(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],Ve.sources.USER)}}}function Q0(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const n=r?"prev":"next",i=t.line,l=i.parent[n];if(l!=null){if(l.statics.blotName==="table-row"){let u=l.children.head,f=i;for(;f.prev!=null;)f=f.prev,u=u.next;const g=u.offset(this.quill.scroll)+Math.min(t.offset,u.length()-1);this.quill.setSelection(g,0,Ve.sources.USER)}}else{const u=i.table()[n];u!=null&&(r?this.quill.setSelection(u.offset(this.quill.scroll)+u.length()-1,0,Ve.sources.USER):this.quill.setSelection(u.offset(this.quill.scroll),0,Ve.sources.USER))}return!1}}}function $M(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=Uu(r);else return null;return r.shortKey&&(r[qM]=r.shortKey,delete r.shortKey),r}function Nm(r){let{quill:e,range:t}=r;const n=e.getLines(t);let i={};if(n.length>1){const l=n[0].formats(),u=n[n.length-1].formats();i=hs.AttributeMap.diff(u,l)||{}}e.deleteText(t,Ve.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,Ve.sources.USER),e.setSelection(t.index,Ve.sources.SILENT)}function UM(r,e,t,n){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?n===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const WM=/font-weight:\s*normal/,VM=["P","OL","UL"],ey=r=>r&&VM.includes(r.tagName),GM=r=>{Array.from(r.querySelectorAll("br")).filter(e=>ey(e.previousElementSibling)&&ey(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},ZM=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(WM)}).forEach(e=>{var n;const t=r.createDocumentFragment();t.append(...e.childNodes),(n=e.parentNode)==null||n.replaceChild(t,e)})};function KM(r){r.querySelector('[id^="docs-internal-guid-"]')&&(ZM(r),GM(r))}const YM=/\bmso-list:[^;]*ignore/i,XM=/\bmso-list:[^;]*\bl(\d+)/i,JM=/\bmso-list:[^;]*\blevel(\d+)/i,QM=(r,e)=>{const t=r.getAttribute("style"),n=t==null?void 0:t.match(XM);if(!n)return null;const i=Number(n[1]),l=t==null?void 0:t.match(JM),u=l?Number(l[1]):1,f=new RegExp(`@list l${i}:level${u}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),g=e.match(f),m=g&&g[1]==="bullet"?"bullet":"ordered";return{id:i,indent:u,type:m,element:r}},eD=r=>{var u,f;const e=Array.from(r.querySelectorAll("[style*=mso-list]")),t=[],n=[];e.forEach(g=>{(g.getAttribute("style")||"").match(YM)?t.push(g):n.push(g)}),t.forEach(g=>{var m;return(m=g.parentNode)==null?void 0:m.removeChild(g)});const i=r.documentElement.innerHTML,l=n.map(g=>QM(g,i)).filter(g=>g);for(;l.length;){const g=[];let m=l.shift();for(;m;)g.push(m),m=l.length&&((u=l[0])==null?void 0:u.element)===m.element.nextElementSibling&&l[0].id===m.id?l.shift():null;const R=document.createElement("ul");g.forEach(S=>{const x=document.createElement("li");x.setAttribute("data-list",S.type),S.indent>1&&x.setAttribute("class",`ql-indent-${S.indent-1}`),x.innerHTML=S.element.innerHTML,R.appendChild(x)});const E=(f=g[0])==null?void 0:f.element,{parentNode:_}=E??{};E&&(_==null||_.replaceChild(R,E)),g.slice(1).forEach(S=>{let{element:x}=S;_==null||_.removeChild(x)})}};function tD(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&eD(r)}const rD=[tD,KM],nD=r=>{r.documentElement&&rD.forEach(e=>{e(r)})},iD=cl("quill:clipboard"),oD=[[Node.TEXT_NODE,vD],[Node.TEXT_NODE,ry],["br",uD],[Node.ELEMENT_NODE,ry],[Node.ELEMENT_NODE,cD],[Node.ELEMENT_NODE,lD],[Node.ELEMENT_NODE,gD],["li",hD],["ol, ul",pD],["pre",fD],["tr",mD],["b",dp("bold")],["i",dp("italic")],["strike",dp("strike")],["style",dD]],sD=[NM,Ox].reduce((r,e)=>(r[e.keyName]=e,r),{}),ty=[Mx,Dm,Mm,Nx,Bx,qx].reduce((r,e)=>(r[e.keyName]=e,r),{});class zx extends Vs{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",n=>this.onCaptureCopy(n,!1)),this.quill.root.addEventListener("cut",n=>this.onCaptureCopy(n,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],oD.concat(this.options.matchers??[]).forEach(n=>{let[i,l]=n;this.addMatcher(i,l)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[zi.blotName])return new Gt().insert(n||"",{[zi.blotName]:i[zi.blotName]});if(!t)return new Gt().insert(n||"",i);const l=this.convertHTML(t);return sd(l,`
189
+ `)&&(l.ops[l.ops.length-1].attributes==null||i.table)?l.compose(new Gt().retain(l.length()-1).delete(1)):l}normalizeHTML(e){nD(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const n=t.body,i=new WeakMap,[l,u]=this.prepareMatching(n,i);return Fm(this.quill.scroll,n,l,u,i)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ve.sources.API;if(typeof e=="string"){const i=this.convert({html:e,text:""});this.quill.setContents(i,t),this.quill.setSelection(0,Ve.sources.SILENT)}else{const i=this.convert({html:t,text:""});this.quill.updateContents(new Gt().retain(e).concat(i),n),this.quill.setSelection(e+i.length(),Ve.sources.SILENT)}}onCaptureCopy(e){var u,f;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[n]=this.quill.selection.getRange();if(n==null)return;const{html:i,text:l}=this.onCopy(n,t);(u=e.clipboardData)==null||u.setData("text/plain",l),(f=e.clipboardData)==null||f.setData("text/html",i),t&&Nm({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
190
+ `)}onCapturePaste(e){var u,f,g,m,R;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const n=(u=e.clipboardData)==null?void 0:u.getData("text/html");let i=(f=e.clipboardData)==null?void 0:f.getData("text/plain");if(!n&&!i){const E=(g=e.clipboardData)==null?void 0:g.getData("text/uri-list");E&&(i=this.normalizeURIList(E))}const l=Array.from(((m=e.clipboardData)==null?void 0:m.files)||[]);if(!n&&l.length>0){this.quill.uploader.upload(t,l);return}if(n&&l.length>0){const E=new DOMParser().parseFromString(n,"text/html");if(E.body.childElementCount===1&&((R=E.body.firstElementChild)==null?void 0:R.tagName)==="IMG"){this.quill.uploader.upload(t,l);return}}this.onPaste(t,{html:n,text:i})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:i}=t;const l=this.quill.getFormat(e.index),u=this.convert({text:n,html:i},l);iD.log("onPaste",u,{text:n,html:i});const f=new Gt().retain(e.index).delete(e.length).concat(u);this.quill.updateContents(f,Ve.sources.USER),this.quill.setSelection(f.length()-e.length,Ve.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],i=[];return this.matchers.forEach(l=>{const[u,f]=l;switch(u){case Node.TEXT_NODE:i.push(f);break;case Node.ELEMENT_NODE:n.push(f);break;default:Array.from(e.querySelectorAll(u)).forEach(g=>{if(t.has(g)){const m=t.get(g);m==null||m.push(f)}else t.set(g,[f])});break}}),[n,i]}}dt(zx,"DEFAULTS",{matchers:[]});function ou(r,e,t,n){return n.query(e)?r.reduce((i,l)=>{if(!l.insert)return i;if(l.attributes&&l.attributes[e])return i.push(l);const u=t?{[e]:t}:{};return i.insert(l.insert,{...u,...l.attributes})},new Gt):r}function sd(r,e){let t="";for(let n=r.ops.length-1;n>=0&&t.length<e.length;--n){const i=r.ops[n];if(typeof i.insert!="string")break;t=i.insert+t}return t.slice(-1*e.length)===e}function Xl(r,e){if(!(r instanceof Element))return!1;const t=e.query(r);return t&&t.prototype instanceof zo?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(r.tagName.toLowerCase())}function aD(r,e){return r.previousElementSibling&&r.nextElementSibling&&!Xl(r.previousElementSibling,e)&&!Xl(r.nextElementSibling,e)}const zd=new WeakMap;function $x(r){return r==null?!1:(zd.has(r)||(r.tagName==="PRE"?zd.set(r,!0):zd.set(r,$x(r.parentNode))),zd.get(r))}function Fm(r,e,t,n,i){return e.nodeType===e.TEXT_NODE?n.reduce((l,u)=>u(e,l,r),new Gt):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((l,u)=>{let f=Fm(r,u,t,n,i);return u.nodeType===e.ELEMENT_NODE&&(f=t.reduce((g,m)=>m(u,g,r),f),f=(i.get(u)||[]).reduce((g,m)=>m(u,g,r),f)),l.concat(f)},new Gt):new Gt}function dp(r){return(e,t,n)=>ou(t,r,!0,n)}function lD(r,e,t){const n=Ca.keys(r),i=Us.keys(r),l=oc.keys(r),u={};return n.concat(i).concat(l).forEach(f=>{let g=t.query(f,Jt.ATTRIBUTE);g!=null&&(u[g.attrName]=g.value(r),u[g.attrName])||(g=sD[f],g!=null&&(g.attrName===f||g.keyName===f)&&(u[g.attrName]=g.value(r)||void 0),g=ty[f],g!=null&&(g.attrName===f||g.keyName===f)&&(g=ty[f],u[g.attrName]=g.value(r)||void 0))}),Object.entries(u).reduce((f,g)=>{let[m,R]=g;return ou(f,m,R,t)},e)}function cD(r,e,t){const n=t.query(r);if(n==null)return e;if(n.prototype instanceof zo){const i={},l=n.value(r);if(l!=null)return i[n.blotName]=l,new Gt().insert(i,n.formats(r,t))}else if(n.prototype instanceof Qf&&!sd(e,`
191
191
  `)&&e.insert(`
192
192
  `),"blotName"in n&&"formats"in n&&typeof n.formats=="function")return ou(e,n.blotName,n.formats(r,t),t);return e}function uD(r,e){return sd(e,`
193
193
  `)||e.insert(`
@@ -197,17 +197,17 @@ ${ph(this.code(e,t))}
197
197
  `);if(e.length()>0&&r.nextSibling){let n=r.nextSibling;for(;n!=null;){if(Xl(n,t))return e.insert(`
198
198
  `);const i=t.query(n);if(i&&i.prototype instanceof ds)return e.insert(`
199
199
  `);n=n.firstChild}}}return e}function gD(r,e,t){var l;const n={},i=r.style||{};return i.fontStyle==="italic"&&(n.italic=!0),i.textDecoration==="underline"&&(n.underline=!0),i.textDecoration==="line-through"&&(n.strike=!0),((l=i.fontWeight)!=null&&l.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(n.bold=!0),e=Object.entries(n).reduce((u,f)=>{let[g,m]=f;return ou(u,g,m,t)},e),parseFloat(i.textIndent||0)>0?new Gt().insert(" ").concat(e):e}function mD(r,e,t){var i,l;const n=((i=r.parentElement)==null?void 0:i.tagName)==="TABLE"?r.parentElement:(l=r.parentElement)==null?void 0:l.parentElement;if(n!=null){const f=Array.from(n.querySelectorAll("tr")).indexOf(r)+1;return ou(e,"table",f,t)}return e}function vD(r,e,t){var i;let n=r.data;if(((i=r.parentElement)==null?void 0:i.tagName)==="O:P")return e.insert(n.trim());if(!$x(r)){if(n.trim().length===0&&n.includes(`
200
- `)&&!aD(r,t))return e;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(r.previousSibling==null&&r.parentElement!=null&&Xl(r.parentElement,t)||r.previousSibling instanceof Element&&Xl(r.previousSibling,t))&&(n=n.replace(/^ /,"")),(r.nextSibling==null&&r.parentElement!=null&&Xl(r.parentElement,t)||r.nextSibling instanceof Element&&Xl(r.nextSibling,t))&&(n=n.replace(/ $/,"")),n=n.replaceAll(" "," ")}return e.insert(n)}class Ux extends Vs{constructor(t,n){super(t,n);dt(this,"lastRecorded",0);dt(this,"ignoreChange",!1);dt(this,"stack",{undo:[],redo:[]});dt(this,"currentRange",null);this.quill.on(We.events.EDITOR_CHANGE,(i,l,u,f)=>{i===We.events.SELECTION_CHANGE?l&&f!==We.sources.SILENT&&(this.currentRange=l):i===We.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||f===We.sources.USER?this.record(l,u):this.transform(l)),this.currentRange=em(this.currentRange,l))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(t,n){if(this.stack[t].length===0)return;const i=this.stack[t].pop();if(!i)return;const l=this.quill.getContents(),u=i.delta.invert(l);this.stack[n].push({delta:u,range:em(i.range,u)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,We.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,n){if(t.ops.length===0)return;this.stack.redo=[];let i=t.invert(n),l=this.currentRange;const u=Date.now();if(this.lastRecorded+this.options.delay>u&&this.stack.undo.length>0){const f=this.stack.undo.pop();f&&(i=i.compose(f.delta),l=f.range)}else this.lastRecorded=u;i.length()!==0&&(this.stack.undo.push({delta:i,range:l}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){ny(this.stack.undo,t),ny(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,We.sources.USER);else{const n=bD(this.quill.scroll,t.delta);this.quill.setSelection(n,We.sources.USER)}}}dt(Ux,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function ny(r,e){let t=e;for(let n=r.length-1;n>=0;n-=1){const i=r[n];r[n]={delta:t.transform(i.delta,!0),range:i.range&&em(i.range,t)},t=i.delta.transform(t),r[n].delta.length()===0&&r.splice(n,1)}}function yD(r,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
201
- `):t.attributes!=null?Object.keys(t.attributes).some(n=>r.query(n,Jt.BLOCK)!=null):!1}function bD(r,e){const t=e.reduce((i,l)=>i+(l.delete||0),0);let n=e.length()-t;return yD(r,e)&&(n-=1),n}function em(r,e){if(!r)return r;const t=e.transformPosition(r.index),n=e.transformPosition(r.index+r.length);return{index:t,length:n-t}}class Wx extends Vs{constructor(e,t){super(e,t),e.root.addEventListener("drop",n=>{var u;n.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){const f=document.caretPositionFromPoint(n.clientX,n.clientY);i=document.createRange(),i.setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset)}const l=i&&e.selection.normalizeNative(i);if(l){const f=e.selection.normalizedToRange(l);(u=n.dataTransfer)!=null&&u.files&&this.upload(f,n.dataTransfer.files)}})}upload(e,t){const n=[];Array.from(t).forEach(i=>{var l;i&&((l=this.options.mimetypes)!=null&&l.includes(i.type))&&n.push(i)}),n.length>0&&this.options.handler.call(this,e,n)}}Wx.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,e){if(!this.quill.scroll.query("image"))return;const t=e.map(n=>new Promise(i=>{const l=new FileReader;l.onload=()=>{i(l.result)},l.readAsDataURL(n)}));Promise.all(t).then(n=>{const i=n.reduce((l,u)=>l.insert({image:u}),new Gt().retain(r.index).delete(r.length));this.quill.updateContents(i,Zt.sources.USER),this.quill.setSelection(r.index+n.length,Zt.sources.SILENT)})}};const _D=["insertText","insertReplacementText"];class xD extends Vs{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||e.on(We.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Nm({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Gt().retain(e.index).insert(t,n),We.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,We.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!_D.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const n=SD(e);if(n==null)return;const i=this.quill.selection.normalizeNative(t),l=i?this.quill.selection.normalizedToRange(i):null;l&&this.replaceText(l,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function SD(r){var e;return typeof r.data=="string"?r.data:(e=r.dataTransfer)!=null&&e.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}const CD=/Mac/i.test(navigator.platform),wD=100,AD=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||CD&&r.key==="a"&&r.ctrlKey===!0);class TD extends Vs{constructor(t,n){super(t,n);dt(this,"isListening",!1);dt(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,n){let{line:i,event:l}=n;if(!(i instanceof qs)||!i.uiNode)return!0;const u=getComputedStyle(i.domNode).direction==="rtl";return u&&l.key!=="ArrowRight"||!u&&l.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(l.shiftKey?1:0),We.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&AD(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+wD,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const n=t.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const i=this.quill.scroll.find(n.startContainer);if(!(i instanceof qs)||!i.uiNode)return;const l=document.createRange();l.setStartAfter(i.uiNode),l.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(l)}}We.register({"blots/block":ji,"blots/block/embed":ds,"blots/break":Ws,"blots/container":nu,"blots/cursor":Xu,"blots/embed":Im,"blots/inline":wa,"blots/scroll":Hu,"blots/text":$s,"modules/clipboard":zx,"modules/history":Ux,"modules/keyboard":gh,"modules/uploader":Wx,"modules/input":xD,"modules/uiNode":TD});class ED extends Us{add(e,t){let n=0;if(t==="+1"||t==="-1"){const i=this.value(e)||0;n=t==="+1"?i+1:i-1}else typeof t=="number"&&(n=t);return n===0?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const kD=new ED("indent","ql-indent",{scope:Jt.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class tm extends ji{}dt(tm,"blotName","blockquote"),dt(tm,"tagName","blockquote");class rm extends ji{static formats(e){return this.tagName.indexOf(e.tagName)+1}}dt(rm,"blotName","header"),dt(rm,"tagName",["H1","H2","H3","H4","H5","H6"]);class ad extends nu{}ad.blotName="list-container";ad.tagName="OL";class ld extends ji{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){We.register(ad)}constructor(e,t){super(e,t);const n=t.ownerDocument.createElement("span"),i=l=>{if(!e.isEnabled())return;const u=this.statics.formats(t,e);u==="checked"?(this.format("list","unchecked"),l.preventDefault()):u==="unchecked"&&(this.format("list","checked"),l.preventDefault())};n.addEventListener("mousedown",i),n.addEventListener("touchstart",i),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}ld.blotName="list";ld.tagName="LI";ad.allowedChildren=[ld];ld.requiredContainer=ad;class td extends wa{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}dt(td,"blotName","bold"),dt(td,"tagName",["STRONG","B"]);class nm extends td{}dt(nm,"blotName","italic"),dt(nm,"tagName",["EM","I"]);class Jl extends wa{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Vx(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}dt(Jl,"blotName","link"),dt(Jl,"tagName","A"),dt(Jl,"SANITIZED_URL","about:blank"),dt(Jl,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Vx(r,e){const t=document.createElement("a");t.href=r;const n=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(n)>-1}class im extends wa{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}dt(im,"blotName","script"),dt(im,"tagName",["SUB","SUP"]);class om extends td{}dt(om,"blotName","strike"),dt(om,"tagName",["S","STRIKE"]);class sm extends wa{}dt(sm,"blotName","underline"),dt(sm,"tagName","U");class Wd extends Im{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}dt(Wd,"blotName","formula"),dt(Wd,"className","ql-formula"),dt(Wd,"tagName","SPAN");const iy=["alt","height","width"];var $d;let RD=($d=class extends zo{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return iy.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Vx(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){iy.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}},dt($d,"blotName","image"),dt($d,"tagName","IMG"),$d);const oy=["height","width"];class Vd extends ds{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return oy.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return Jl.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){oy.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}dt(Vd,"blotName","video"),dt(Vd,"className","ql-video"),dt(Vd,"tagName","IFRAME");const Hf=new Us("code-token","hljs",{scope:Jt.INLINE});class ol extends wa{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(zi.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),Hf.add(this.domNode,n)}format(e,t){e!==ol.blotName?super.format(e,t):t?Hf.add(this.domNode,t):(Hf.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Hf.value(this.domNode)||this.unwrap()}}ol.blotName="code-token";ol.className="ql-token";class fs extends zi{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),ol.blotName,!1),super.replaceWith(e,t)}}class Uf extends iu{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===fs.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(e,t)}))}formatAt(e,t,n,i){n===fs.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,i)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(u=>u!==this.uiNode).map(u=>u.textContent).join(`
200
+ `)&&!aD(r,t))return e;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(r.previousSibling==null&&r.parentElement!=null&&Xl(r.parentElement,t)||r.previousSibling instanceof Element&&Xl(r.previousSibling,t))&&(n=n.replace(/^ /,"")),(r.nextSibling==null&&r.parentElement!=null&&Xl(r.parentElement,t)||r.nextSibling instanceof Element&&Xl(r.nextSibling,t))&&(n=n.replace(/ $/,"")),n=n.replaceAll(" "," ")}return e.insert(n)}class Ux extends Vs{constructor(t,n){super(t,n);dt(this,"lastRecorded",0);dt(this,"ignoreChange",!1);dt(this,"stack",{undo:[],redo:[]});dt(this,"currentRange",null);this.quill.on(Ve.events.EDITOR_CHANGE,(i,l,u,f)=>{i===Ve.events.SELECTION_CHANGE?l&&f!==Ve.sources.SILENT&&(this.currentRange=l):i===Ve.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||f===Ve.sources.USER?this.record(l,u):this.transform(l)),this.currentRange=em(this.currentRange,l))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(t,n){if(this.stack[t].length===0)return;const i=this.stack[t].pop();if(!i)return;const l=this.quill.getContents(),u=i.delta.invert(l);this.stack[n].push({delta:u,range:em(i.range,u)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,Ve.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,n){if(t.ops.length===0)return;this.stack.redo=[];let i=t.invert(n),l=this.currentRange;const u=Date.now();if(this.lastRecorded+this.options.delay>u&&this.stack.undo.length>0){const f=this.stack.undo.pop();f&&(i=i.compose(f.delta),l=f.range)}else this.lastRecorded=u;i.length()!==0&&(this.stack.undo.push({delta:i,range:l}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){ny(this.stack.undo,t),ny(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,Ve.sources.USER);else{const n=bD(this.quill.scroll,t.delta);this.quill.setSelection(n,Ve.sources.USER)}}}dt(Ux,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function ny(r,e){let t=e;for(let n=r.length-1;n>=0;n-=1){const i=r[n];r[n]={delta:t.transform(i.delta,!0),range:i.range&&em(i.range,t)},t=i.delta.transform(t),r[n].delta.length()===0&&r.splice(n,1)}}function yD(r,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
201
+ `):t.attributes!=null?Object.keys(t.attributes).some(n=>r.query(n,Jt.BLOCK)!=null):!1}function bD(r,e){const t=e.reduce((i,l)=>i+(l.delete||0),0);let n=e.length()-t;return yD(r,e)&&(n-=1),n}function em(r,e){if(!r)return r;const t=e.transformPosition(r.index),n=e.transformPosition(r.index+r.length);return{index:t,length:n-t}}class Wx extends Vs{constructor(e,t){super(e,t),e.root.addEventListener("drop",n=>{var u;n.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){const f=document.caretPositionFromPoint(n.clientX,n.clientY);i=document.createRange(),i.setStart(f.offsetNode,f.offset),i.setEnd(f.offsetNode,f.offset)}const l=i&&e.selection.normalizeNative(i);if(l){const f=e.selection.normalizedToRange(l);(u=n.dataTransfer)!=null&&u.files&&this.upload(f,n.dataTransfer.files)}})}upload(e,t){const n=[];Array.from(t).forEach(i=>{var l;i&&((l=this.options.mimetypes)!=null&&l.includes(i.type))&&n.push(i)}),n.length>0&&this.options.handler.call(this,e,n)}}Wx.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,e){if(!this.quill.scroll.query("image"))return;const t=e.map(n=>new Promise(i=>{const l=new FileReader;l.onload=()=>{i(l.result)},l.readAsDataURL(n)}));Promise.all(t).then(n=>{const i=n.reduce((l,u)=>l.insert({image:u}),new Gt().retain(r.index).delete(r.length));this.quill.updateContents(i,Zt.sources.USER),this.quill.setSelection(r.index+n.length,Zt.sources.SILENT)})}};const _D=["insertText","insertReplacementText"];class xD extends Vs{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||e.on(Ve.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){Nm({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new Gt().retain(e.index).insert(t,n),Ve.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,Ve.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!_D.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const n=SD(e);if(n==null)return;const i=this.quill.selection.normalizeNative(t),l=i?this.quill.selection.normalizedToRange(i):null;l&&this.replaceText(l,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}}function SD(r){var e;return typeof r.data=="string"?r.data:(e=r.dataTransfer)!=null&&e.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}const CD=/Mac/i.test(navigator.platform),wD=100,AD=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||CD&&r.key==="a"&&r.ctrlKey===!0);class TD extends Vs{constructor(t,n){super(t,n);dt(this,"isListening",!1);dt(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,n){let{line:i,event:l}=n;if(!(i instanceof qs)||!i.uiNode)return!0;const u=getComputedStyle(i.domNode).direction==="rtl";return u&&l.key!=="ArrowRight"||!u&&l.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(l.shiftKey?1:0),Ve.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&AD(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+wD,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const n=t.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const i=this.quill.scroll.find(n.startContainer);if(!(i instanceof qs)||!i.uiNode)return;const l=document.createRange();l.setStartAfter(i.uiNode),l.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(l)}}Ve.register({"blots/block":ji,"blots/block/embed":ds,"blots/break":Ws,"blots/container":nu,"blots/cursor":Xu,"blots/embed":Im,"blots/inline":wa,"blots/scroll":Hu,"blots/text":$s,"modules/clipboard":zx,"modules/history":Ux,"modules/keyboard":gh,"modules/uploader":Wx,"modules/input":xD,"modules/uiNode":TD});class ED extends Us{add(e,t){let n=0;if(t==="+1"||t==="-1"){const i=this.value(e)||0;n=t==="+1"?i+1:i-1}else typeof t=="number"&&(n=t);return n===0?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const kD=new ED("indent","ql-indent",{scope:Jt.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class tm extends ji{}dt(tm,"blotName","blockquote"),dt(tm,"tagName","blockquote");class rm extends ji{static formats(e){return this.tagName.indexOf(e.tagName)+1}}dt(rm,"blotName","header"),dt(rm,"tagName",["H1","H2","H3","H4","H5","H6"]);class ad extends nu{}ad.blotName="list-container";ad.tagName="OL";class ld extends ji{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){Ve.register(ad)}constructor(e,t){super(e,t);const n=t.ownerDocument.createElement("span"),i=l=>{if(!e.isEnabled())return;const u=this.statics.formats(t,e);u==="checked"?(this.format("list","unchecked"),l.preventDefault()):u==="unchecked"&&(this.format("list","checked"),l.preventDefault())};n.addEventListener("mousedown",i),n.addEventListener("touchstart",i),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}ld.blotName="list";ld.tagName="LI";ad.allowedChildren=[ld];ld.requiredContainer=ad;class td extends wa{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}dt(td,"blotName","bold"),dt(td,"tagName",["STRONG","B"]);class nm extends td{}dt(nm,"blotName","italic"),dt(nm,"tagName",["EM","I"]);class Jl extends wa{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Vx(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}dt(Jl,"blotName","link"),dt(Jl,"tagName","A"),dt(Jl,"SANITIZED_URL","about:blank"),dt(Jl,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Vx(r,e){const t=document.createElement("a");t.href=r;const n=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(n)>-1}class im extends wa{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}dt(im,"blotName","script"),dt(im,"tagName",["SUB","SUP"]);class om extends td{}dt(om,"blotName","strike"),dt(om,"tagName",["S","STRIKE"]);class sm extends wa{}dt(sm,"blotName","underline"),dt(sm,"tagName","U");class Wd extends Im{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}dt(Wd,"blotName","formula"),dt(Wd,"className","ql-formula"),dt(Wd,"tagName","SPAN");const iy=["alt","height","width"];var $d;let RD=($d=class extends zo{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return iy.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Vx(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){iy.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}},dt($d,"blotName","image"),dt($d,"tagName","IMG"),$d);const oy=["height","width"];class Vd extends ds{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return oy.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return Jl.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){oy.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}dt(Vd,"blotName","video"),dt(Vd,"className","ql-video"),dt(Vd,"tagName","IFRAME");const Hf=new Us("code-token","hljs",{scope:Jt.INLINE});class ol extends wa{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(zi.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),Hf.add(this.domNode,n)}format(e,t){e!==ol.blotName?super.format(e,t):t?Hf.add(this.domNode,t):(Hf.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Hf.value(this.domNode)||this.unwrap()}}ol.blotName="code-token";ol.className="ql-token";class fs extends zi{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),ol.blotName,!1),super.replaceWith(e,t)}}class Uf extends iu{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===fs.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(e,t)}))}formatAt(e,t,n,i){n===fs.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,i)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(u=>u!==this.uiNode).map(u=>u.textContent).join(`
202
202
  `)}
203
203
  `,l=fs.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const u=this.children.reduce((g,m)=>g.concat(Rx(m,!1)),new Gt),f=e(i,l);u.diff(f).reduce((g,m)=>{let{retain:R,attributes:E}=m;return R?(E&&Object.keys(E).forEach(_=>{[fs.blotName,ol.blotName].includes(_)&&this.formatAt(g,R,_,E[_])}),g+R):g},0)}this.cachedText=i,this.forceNext=!1}}html(e,t){const[n]=this.children.find(e);return`<pre data-language="${n?fs.formats(n.domNode):"plain"}">
204
204
  ${ph(this.code(e,t))}
205
- </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=fs.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Uf.allowedChildren=[fs];fs.requiredContainer=Uf;fs.allowedChildren=[ol,Xu,$s,Ws];const ID=(r,e,t)=>{if(typeof r.versionString=="string"){const n=r.versionString.split(".")[0];if(parseInt(n,10)>=11)return r.highlight(t,{language:e}).value}return r.highlight(e,t).value};class Gx extends Vs{static register(){We.register(ol,!0),We.register(fs,!0),We.register(Uf,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,i)=>{let{key:l}=i;return n[l]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(We.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Uf))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(n=>{let{key:i,label:l}=n;const u=t.ownerDocument.createElement("option");u.textContent=l,u.setAttribute("value",i),t.appendChild(u)}),t.addEventListener("change",()=>{e.format(fs.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=fs.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(We.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(We.sources.USER);const n=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Uf):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update(We.sources.SILENT),n!=null&&this.quill.setSelection(n,We.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return ph(e).split(`
205
+ </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=fs.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Uf.allowedChildren=[fs];fs.requiredContainer=Uf;fs.allowedChildren=[ol,Xu,$s,Ws];const ID=(r,e,t)=>{if(typeof r.versionString=="string"){const n=r.versionString.split(".")[0];if(parseInt(n,10)>=11)return r.highlight(t,{language:e}).value}return r.highlight(e,t).value};class Gx extends Vs{static register(){Ve.register(ol,!0),Ve.register(fs,!0),Ve.register(Uf,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,i)=>{let{key:l}=i;return n[l]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(Ve.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Uf))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(n=>{let{key:i,label:l}=n;const u=t.ownerDocument.createElement("option");u.textContent=l,u.setAttribute("value",i),t.appendChild(u)}),t.addEventListener("change",()=>{e.format(fs.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=fs.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(Ve.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(Ve.sources.USER);const n=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Uf):[e]).forEach(l=>{l.highlight(this.highlightBlot,t)}),this.quill.update(Ve.sources.SILENT),n!=null&&this.quill.setSelection(n,Ve.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return ph(e).split(`
206
206
  `).reduce((i,l,u)=>(u!==0&&i.insert(`
207
207
  `,{[zi.blotName]:t}),i.insert(l)),new Gt);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(zi.className),n.innerHTML=ID(this.options.hljs,t,e),Fm(this.quill.scroll,n,[(i,l)=>{const u=Hf.value(i);return u?l.compose(new Gt().retain(l.length(),{[ol.blotName]:u})):l}],[(i,l)=>i.data.split(`
208
208
  `).reduce((u,f,g)=>(g!==0&&u.insert(`
209
- `,{[zi.blotName]:t}),u.insert(f)),l)],new WeakMap)}}Gx.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Vf=class Vf extends ji{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",jm()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Vf.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};dt(Vf,"blotName","table"),dt(Vf,"tagName","TD");let Bs=Vf;class sl extends nu{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const n=t.formats(),i=t.next.formats();if(n.table!==i.table){const l=this.splitAfter(t);l&&l.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}dt(sl,"blotName","table-row"),dt(sl,"tagName","TR");class xa extends nu{}dt(xa,"blotName","table-body"),dt(xa,"tagName","TBODY");class Qu extends nu{balanceCells(){const e=this.descendants(sl),t=e.reduce((n,i)=>Math.max(i.children.length,n),0);e.forEach(n=>{new Array(t-n.children.length).fill(0).forEach(()=>{let i;n.children.head!=null&&(i=Bs.formats(n.children.head.domNode));const l=this.scroll.create(Bs.blotName,i);n.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(xa);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e);i!=null&&i.remove()})}insertColumn(e){const[t]=this.descendant(xa);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e),l=Bs.formats(n.children.head.domNode),u=this.scroll.create(Bs.blotName,l);n.insertBefore(u,i)})}insertRow(e){const[t]=this.descendant(xa);if(t==null||t.children.head==null)return;const n=jm(),i=this.scroll.create(sl.blotName);t.children.head.children.forEach(()=>{const u=this.scroll.create(Bs.blotName,n);i.appendChild(u)});const l=t.children.at(e);t.insertBefore(i,l)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}dt(Qu,"blotName","table-container"),dt(Qu,"tagName","TABLE");Qu.allowedChildren=[xa];xa.requiredContainer=Qu;xa.allowedChildren=[sl];sl.requiredContainer=xa;sl.allowedChildren=[Bs];Bs.requiredContainer=sl;function jm(){return`row-${Math.random().toString(36).slice(2,6)}`}class LD extends Vs{static register(){We.register(Bs),We.register(sl),We.register(xa),We.register(Qu)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Qu).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(We.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(We.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(We.sources.USER),this.quill.setSelection(t,We.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Bs.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=l.cellOffset();n.insertColumn(u+e),this.quill.update(We.sources.USER);let f=i.rowOffset();e===0&&(f+=1),this.quill.setSelection(t.index+f,t.length,We.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=i.rowOffset();n.insertRow(u+e),this.quill.update(We.sources.USER),e>0?this.quill.setSelection(t,We.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,We.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(n==null)return;const i=new Array(e).fill(0).reduce(l=>{const u=new Array(t).fill(`
210
- `).join("");return l.insert(u,{table:jm()})},new Gt().retain(n.index));this.quill.updateContents(i,We.sources.USER),this.quill.setSelection(n.index,We.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(We.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(We.events.TEXT_CHANGE,(n,i,l)=>{l===We.sources.USER&&this.balanceTables()}),!0):!1)})}}const sy=cl("quill:toolbar");class Bm extends Vs{constructor(e,t){var n,i;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),MD(l,this.options.container),(i=(n=e.container)==null?void 0:n.parentNode)==null||i.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sy.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(l=>{var f;const u=(f=this.options.handlers)==null?void 0:f[l];u&&this.addHandler(l,u)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(We.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sy.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,i=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const f=e.options[e.selectedIndex];f.hasAttribute("selected")?l=!1:l=f.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[u]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof zo){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Gt().retain(u.index).delete(u.length).insert({[t]:l}),We.sources.USER)}else this.quill.format(t,l,We.sources.USER);this.update(u)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[i,l]=n;if(l.tagName==="SELECT"){let u=null;if(e==null)u=null;else if(t[i]==null)u=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){let f=t[i];typeof f=="string"&&(f=f.replace(/"/g,'\\"')),u=l.querySelector(`option[value="${f}"]`)}u==null?(l.value="",l.selectedIndex=-1):u.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const u=t[i],f=u===l.getAttribute("value")||u!=null&&u.toString()===l.getAttribute("value")||u==null&&!l.getAttribute("value");l.classList.toggle("ql-active",f),l.setAttribute("aria-pressed",f.toString())}else{const u=t[i]!=null;l.classList.toggle("ql-active",u),l.setAttribute("aria-pressed",u.toString())}})}}Bm.DEFAULTS={};function ay(r,e,t){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),t!=null?(n.value=t,n.setAttribute("aria-label",`${e}: ${t}`)):n.setAttribute("aria-label",e),r.appendChild(n)}function MD(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")ay(n,i);else{const l=Object.keys(i)[0],u=i[l];Array.isArray(u)?DD(n,l,u):ay(n,l,u)}}),r.appendChild(n)})}function DD(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(i=>{const l=document.createElement("option");i!==!1?l.setAttribute("value",String(i)):l.setAttribute("selected","selected"),n.appendChild(l)}),r.appendChild(n)}Bm.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Jt.INLINE)!=null&&this.quill.format(t,!1,We.sources.USER)})}else this.quill.removeFormat(r.index,r.length,We.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",We.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,We.sources.USER),this.quill.format("direction",r,We.sources.USER)},indent(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e),n=parseInt(t.indent||0,10);if(r==="+1"||r==="-1"){let i=r==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,We.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,We.sources.USER)},list(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e);r==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,We.sources.USER):this.quill.format("list","unchecked",We.sources.USER):this.quill.format("list",r,We.sources.USER)}}};const OD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',PD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',ND='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',FD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',jD='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',BD='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',HD='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',qD='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',ly='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',zD='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',$D='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',UD='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',WD='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',VD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',GD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',ZD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',KD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',YD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',XD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',JD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',QD='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',eO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',tO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',rO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',nO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',iO='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',oO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',sO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',aO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',lO='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',cO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',uO='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',fO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',rd={align:{"":OD,center:PD,right:ND,justify:FD},background:jD,blockquote:BD,bold:HD,clean:qD,code:ly,"code-block":ly,color:zD,direction:{"":$D,rtl:UD},formula:WD,header:{1:VD,2:GD,3:ZD,4:KD,5:YD,6:XD},italic:JD,image:QD,indent:{"+1":eO,"-1":tO},link:rO,list:{bullet:nO,check:iO,ordered:oO},script:{sub:sO,super:aO},strike:lO,table:cO,underline:uO,video:fO},dO='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let cy=0;function uy(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class mh{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),uy(this.label,"aria-expanded"),uy(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=dO,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${cy}`,cy+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),t.selected===!0&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");e!==n&&(n!=null&&n.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Zx extends mh{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class Kx extends mh{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=t[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const hO=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class Yx{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,hO(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let u=0;if(l.right>i.right&&(u=i.right-l.right,this.root.style.left=`${t+u}px`),l.left<i.left&&(u=i.left-l.left,this.root.style.left=`${t+u}px`),l.bottom>i.bottom){const f=l.bottom-l.top,g=e.bottom-e.top+f;this.root.style.top=`${n-g}px`,this.root.classList.add("ql-flip")}return u}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const pO=[!1,"center","right","justify"],gO=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],mO=[!1,"serif","monospace"],vO=["1","2","3",!1],yO=["small",!1,"large","huge"];class cd extends Ju{constructor(e,t){super(e,t);const n=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(i.target)||l.close()})};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")n.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")n.innerHTML=t[l];else{const u=n.value||"";u!=null&&t[l][u]&&(n.innerHTML=t[l][u])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Df(i,pO),typeof t.align=="object"))return new Kx(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const l=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Df(i,gO,l==="background"?"#ffffff":"#000000"),new Zx(i,t[l])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Df(i,mO):i.classList.contains("ql-header")?Df(i,vO):i.classList.contains("ql-size")&&Df(i,yO)),new mh(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Zt.events.EDITOR_CHANGE,n)}}cd.DEFAULTS=Ql({},Ju.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xx extends Yx{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Zt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Zt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=bO(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,Zt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Zt.sources.USER),this.quill.setSelection(n+2,Zt.sources.USER)}break}}this.textbox.value="",this.hide()}}function bO(r){let e=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:r}function Df(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const i=document.createElement("option");n===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),r.appendChild(i)})}const _O=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Jx extends Xx{constructor(e,t){super(e,t),this.quill.on(Zt.events.EDITOR_CHANGE,(n,i,l,u)=>{if(n===Zt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&u===Zt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const f=this.quill.getLines(i.index,i.length);if(f.length===1){const g=this.quill.getBounds(i);g!=null&&this.position(g)}else{const g=f[f.length-1],m=this.quill.getIndex(g),R=Math.min(g.length()-1,i.index+i.length-m),E=this.quill.getBounds(new Jc(m,R));E!=null&&this.position(E)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Zt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",t!==0&&(n.style.marginLeft=`${-1*t-n.offsetWidth/2}px`),t}}dt(Jx,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Qx extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=_O),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Jx(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd))}}Qx.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,We.sources.USER)}}}}});const xO=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class eS extends Xx{constructor(){super(...arguments);dt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,Zt.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Zt.events.SELECTION_CHANGE,(t,n,i)=>{if(t!=null){if(t.length===0&&i===Zt.sources.USER){const[l,u]=this.quill.scroll.descendant(Jl,t.index);if(l!=null){this.linkRange=new Jc(t.index-u,l.length());const f=Jl.formats(l.domNode);this.preview.textContent=f,this.preview.setAttribute("href",f),this.show();const g=this.quill.getBounds(this.linkRange);g!=null&&this.position(g);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}dt(eS,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class tS extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=xO),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd),this.tooltip=new eS(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}tS.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,We.sources.USER)}}}}});We.register({"attributors/attribute/direction":Ox,"attributors/class/align":Lx,"attributors/class/background":jM,"attributors/class/color":FM,"attributors/class/direction":Px,"attributors/class/font":jx,"attributors/class/size":Hx,"attributors/style/align":Mx,"attributors/style/background":Dm,"attributors/style/color":Mm,"attributors/style/direction":Nx,"attributors/style/font":Bx,"attributors/style/size":qx},!0);We.register({"formats/align":Lx,"formats/direction":Px,"formats/indent":kD,"formats/background":Dm,"formats/color":Mm,"formats/font":jx,"formats/size":Hx,"formats/blockquote":tm,"formats/code-block":zi,"formats/header":rm,"formats/list":ld,"formats/bold":td,"formats/code":Om,"formats/italic":nm,"formats/link":Jl,"formats/script":im,"formats/strike":om,"formats/underline":sm,"formats/formula":Wd,"formats/image":RD,"formats/video":Vd,"modules/syntax":Gx,"modules/table":LD,"modules/toolbar":Bm,"themes/bubble":Qx,"themes/snow":tS,"ui/icons":rd,"ui/picker":mh,"ui/icon-picker":Kx,"ui/color-picker":Zx,"ui/tooltip":Yx},!0);var hp={exports:{}},fy;function SO(){return fy||(fy=1,function(r,e){(function(t,n){r.exports=n()})(self,()=>(()=>{var t={321:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ConsoleLogger=void 0;var f=function(){function g(m,R){this.debug=m,this.suppressErrorLogging=R}return g.prototype.prefixString=function(){return"</> quill-image-compress: "},Object.defineProperty(g.prototype,"log",{get:function(){return this.debug?console.log.bind(console,this.prefixString()):function(){}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"error",{get:function(){return this.suppressErrorLogging?function(){}:console.error.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"warn",{get:function(){return this.suppressErrorLogging?function(){}:console.warn.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),g}();u.ConsoleLogger=f},337:function(l,u){var f=this&&this.__awaiter||function(m,R,E,_){return new(E||(E=Promise))(function(S,x){function M(I){try{b(_.next(I))}catch(O){x(O)}}function w(I){try{b(_.throw(I))}catch(O){x(O)}}function b(I){var O;I.done?S(I.value):(O=I.value,O instanceof E?O:new E(function(H){H(O)})).then(M,w)}b((_=_.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var E,_,S,x={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},M=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return M.next=w(0),M.throw=w(1),M.return=w(2),typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function w(b){return function(I){return function(O){if(E)throw new TypeError("Generator is already executing.");for(;M&&(M=0,O[0]&&(x=0)),x;)try{if(E=1,_&&(S=2&O[0]?_.return:O[0]?_.throw||((S=_.return)&&S.call(_),0):_.next)&&!(S=S.call(_,O[1])).done)return S;switch(_=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return x.label++,{value:O[1],done:!1};case 5:x.label++,_=O[1],O=[0];continue;case 7:O=x.ops.pop(),x.trys.pop();continue;default:if(S=x.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){x=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){x.label=O[1];break}if(O[0]===6&&x.label<S[1]){x.label=S[1],S=O;break}if(S&&x.label<S[2]){x.label=S[2],x.ops.push(O);break}S[2]&&x.ops.pop(),x.trys.pop();continue}O=R.call(m,x)}catch(H){O=[6,H],_=0}finally{E=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([b,I])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.downscaleImage=function(m,R,E,_,S,x,M,w){return f(this,void 0,void 0,function(){var b,I,O,H,q,z,Y,fe;return g(this,function(X){switch(X.label){case 0:return b=R.split(";")[0].split(":")[1],S=S||"image/jpeg",w=w||.7,(I=new Image).src=R,[4,new Promise(function(he){I.onload=function(){he()}})];case 1:return X.sent(),O=function(he,j,re,Q){if(re&&Q&&he<=re&&j<=Q)return[he,j];if(re&&he>re){var J=re,me=Math.floor(j/he*J);if(Q&&me>Q){var ce=Q;return[Math.floor(he/j*ce),ce]}return[J,me]}return Q&&j>Q?(me=Q,[J=Math.floor(he/j*me),me]):[j,he]}(I.width,I.height,E,_),H=O[0],q=O[1],(z=document.createElement("canvas")).width=H,z.height=q,Y=z.getContext("2d"),S==="image/jpeg"&&(Y.fillStyle="#FFFFFF",Y.fillRect(0,0,I.width,I.height)),M!=null&&M.includes(b)?[2,R]:(x!=null&&x.includes(b)&&(S=b),Y.drawImage(I,0,0,H,q),fe=z.toDataURL(S,w),m.log("downscaling image...",{args:{dataUrl:R,maxWidth:E,maxHeight:_,imageType:S,ignoreImageTypes:M,keepImageTypes:x,imageQuality:w},newHeight:q,newWidth:H}),[2,fe])}})})}},922:function(l,u){var f=this&&this.__awaiter||function(m,R,E,_){return new(E||(E=Promise))(function(S,x){function M(I){try{b(_.next(I))}catch(O){x(O)}}function w(I){try{b(_.throw(I))}catch(O){x(O)}}function b(I){var O;I.done?S(I.value):(O=I.value,O instanceof E?O:new E(function(H){H(O)})).then(M,w)}b((_=_.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var E,_,S,x={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},M=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return M.next=w(0),M.throw=w(1),M.return=w(2),typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function w(b){return function(I){return function(O){if(E)throw new TypeError("Generator is already executing.");for(;M&&(M=0,O[0]&&(x=0)),x;)try{if(E=1,_&&(S=2&O[0]?_.return:O[0]?_.throw||((S=_.return)&&S.call(_),0):_.next)&&!(S=S.call(_,O[1])).done)return S;switch(_=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return x.label++,{value:O[1],done:!1};case 5:x.label++,_=O[1],O=[0];continue;case 7:O=x.ops.pop(),x.trys.pop();continue;default:if(S=x.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){x=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){x.label=O[1];break}if(O[0]===6&&x.label<S[1]){x.label=S[1],S=O;break}if(S&&x.label<S[2]){x.label=S[2],x.ops.push(O);break}S[2]&&x.ops.pop(),x.trys.pop();continue}O=R.call(m,x)}catch(H){O=[6,H],_=0}finally{E=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([b,I])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.file2b64=function(m){return f(this,void 0,void 0,function(){var R,E;return g(this,function(_){return R=new FileReader,E=new Promise(function(S,x){R.addEventListener("load",function(){var M,w=(M=R.result)===null||M===void 0?void 0:M.toString();w?S(w):x("could not convert file to base64")},!1)}),R.readAsDataURL(m),[2,E]})})}},457:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.warnAboutOptions=function(f,g){f.maxWidth=f.maxWidth||1e3,f.maxHeight=f.maxHeight||1e3,f.maxWidth&&typeof f.maxWidth!="number"&&(g.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
209
+ `,{[zi.blotName]:t}),u.insert(f)),l)],new WeakMap)}}Gx.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Vf=class Vf extends ji{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",jm()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Vf.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};dt(Vf,"blotName","table"),dt(Vf,"tagName","TD");let Bs=Vf;class sl extends nu{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const n=t.formats(),i=t.next.formats();if(n.table!==i.table){const l=this.splitAfter(t);l&&l.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}dt(sl,"blotName","table-row"),dt(sl,"tagName","TR");class xa extends nu{}dt(xa,"blotName","table-body"),dt(xa,"tagName","TBODY");class Qu extends nu{balanceCells(){const e=this.descendants(sl),t=e.reduce((n,i)=>Math.max(i.children.length,n),0);e.forEach(n=>{new Array(t-n.children.length).fill(0).forEach(()=>{let i;n.children.head!=null&&(i=Bs.formats(n.children.head.domNode));const l=this.scroll.create(Bs.blotName,i);n.appendChild(l),l.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(xa);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e);i!=null&&i.remove()})}insertColumn(e){const[t]=this.descendant(xa);t==null||t.children.head==null||t.children.forEach(n=>{const i=n.children.at(e),l=Bs.formats(n.children.head.domNode),u=this.scroll.create(Bs.blotName,l);n.insertBefore(u,i)})}insertRow(e){const[t]=this.descendant(xa);if(t==null||t.children.head==null)return;const n=jm(),i=this.scroll.create(sl.blotName);t.children.head.children.forEach(()=>{const u=this.scroll.create(Bs.blotName,n);i.appendChild(u)});const l=t.children.at(e);t.insertBefore(i,l)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}dt(Qu,"blotName","table-container"),dt(Qu,"tagName","TABLE");Qu.allowedChildren=[xa];xa.requiredContainer=Qu;xa.allowedChildren=[sl];sl.requiredContainer=xa;sl.allowedChildren=[Bs];Bs.requiredContainer=sl;function jm(){return`row-${Math.random().toString(36).slice(2,6)}`}class LD extends Vs{static register(){Ve.register(Bs),Ve.register(sl),Ve.register(xa),Ve.register(Qu)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Qu).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(Ve.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(Ve.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(Ve.sources.USER),this.quill.setSelection(t,Ve.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Bs.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=l.cellOffset();n.insertColumn(u+e),this.quill.update(Ve.sources.USER);let f=i.rowOffset();e===0&&(f+=1),this.quill.setSelection(t.index+f,t.length,Ve.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,i,l]=this.getTable(t);if(l==null)return;const u=i.rowOffset();n.insertRow(u+e),this.quill.update(Ve.sources.USER),e>0?this.quill.setSelection(t,Ve.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,Ve.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(n==null)return;const i=new Array(e).fill(0).reduce(l=>{const u=new Array(t).fill(`
210
+ `).join("");return l.insert(u,{table:jm()})},new Gt().retain(n.index));this.quill.updateContents(i,Ve.sources.USER),this.quill.setSelection(n.index,Ve.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(Ve.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(Ve.events.TEXT_CHANGE,(n,i,l)=>{l===Ve.sources.USER&&this.balanceTables()}),!0):!1)})}}const sy=cl("quill:toolbar");class Bm extends Vs{constructor(e,t){var n,i;if(super(e,t),Array.isArray(this.options.container)){const l=document.createElement("div");l.setAttribute("role","toolbar"),MD(l,this.options.container),(i=(n=e.container)==null?void 0:n.parentNode)==null||i.insertBefore(l,e.container),this.container=l}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){sy.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(l=>{var f;const u=(f=this.options.handlers)==null?void 0:f[l];u&&this.addHandler(l,u)}),Array.from(this.container.querySelectorAll("button, select")).forEach(l=>{this.attach(l)}),this.quill.on(Ve.events.EDITOR_CHANGE,()=>{const[l]=this.quill.selection.getRange();this.update(l)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){sy.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,i=>{let l;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const f=e.options[e.selectedIndex];f.hasAttribute("selected")?l=!1:l=f.value||!1}else e.classList.contains("ql-active")?l=!1:l=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[u]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,l);else if(this.quill.scroll.query(t).prototype instanceof zo){if(l=prompt(`Enter ${t}`),!l)return;this.quill.updateContents(new Gt().retain(u.index).delete(u.length).insert({[t]:l}),Ve.sources.USER)}else this.quill.format(t,l,Ve.sources.USER);this.update(u)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[i,l]=n;if(l.tagName==="SELECT"){let u=null;if(e==null)u=null;else if(t[i]==null)u=l.querySelector("option[selected]");else if(!Array.isArray(t[i])){let f=t[i];typeof f=="string"&&(f=f.replace(/"/g,'\\"')),u=l.querySelector(`option[value="${f}"]`)}u==null?(l.value="",l.selectedIndex=-1):u.selected=!0}else if(e==null)l.classList.remove("ql-active"),l.setAttribute("aria-pressed","false");else if(l.hasAttribute("value")){const u=t[i],f=u===l.getAttribute("value")||u!=null&&u.toString()===l.getAttribute("value")||u==null&&!l.getAttribute("value");l.classList.toggle("ql-active",f),l.setAttribute("aria-pressed",f.toString())}else{const u=t[i]!=null;l.classList.toggle("ql-active",u),l.setAttribute("aria-pressed",u.toString())}})}}Bm.DEFAULTS={};function ay(r,e,t){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),t!=null?(n.value=t,n.setAttribute("aria-label",`${e}: ${t}`)):n.setAttribute("aria-label",e),r.appendChild(n)}function MD(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")ay(n,i);else{const l=Object.keys(i)[0],u=i[l];Array.isArray(u)?DD(n,l,u):ay(n,l,u)}}),r.appendChild(n)})}function DD(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(i=>{const l=document.createElement("option");i!==!1?l.setAttribute("value",String(i)):l.setAttribute("selected","selected"),n.appendChild(l)}),r.appendChild(n)}Bm.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,Jt.INLINE)!=null&&this.quill.format(t,!1,Ve.sources.USER)})}else this.quill.removeFormat(r.index,r.length,Ve.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",Ve.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,Ve.sources.USER),this.quill.format("direction",r,Ve.sources.USER)},indent(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e),n=parseInt(t.indent||0,10);if(r==="+1"||r==="-1"){let i=r==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",n+i,Ve.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,Ve.sources.USER)},list(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e);r==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,Ve.sources.USER):this.quill.format("list","unchecked",Ve.sources.USER):this.quill.format("list",r,Ve.sources.USER)}}};const OD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',PD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',ND='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',FD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',jD='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',BD='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',HD='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',qD='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',ly='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',zD='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',$D='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',UD='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',WD='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',VD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',GD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',ZD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',KD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',YD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',XD='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',JD='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',QD='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',eO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',tO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',rO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',nO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',iO='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',oO='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',sO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',aO='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',lO='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',cO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',uO='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',fO='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',rd={align:{"":OD,center:PD,right:ND,justify:FD},background:jD,blockquote:BD,bold:HD,clean:qD,code:ly,"code-block":ly,color:zD,direction:{"":$D,rtl:UD},formula:WD,header:{1:VD,2:GD,3:ZD,4:KD,5:YD,6:XD},italic:JD,image:QD,indent:{"+1":eO,"-1":tO},link:rO,list:{bullet:nO,check:iO,ordered:oO},script:{sub:sO,super:aO},strike:lO,table:cO,underline:uO,video:fO},dO='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let cy=0;function uy(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class mh{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),uy(this.label,"aria-expanded"),uy(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=dO,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${cy}`,cy+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),t.selected===!0&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");e!==n&&(n!=null&&n.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Zx extends mh{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=i:n.style.fill=i)}}class Kx extends mh{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=t[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const hO=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class Yx{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,hO(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),l=this.root.getBoundingClientRect();let u=0;if(l.right>i.right&&(u=i.right-l.right,this.root.style.left=`${t+u}px`),l.left<i.left&&(u=i.left-l.left,this.root.style.left=`${t+u}px`),l.bottom>i.bottom){const f=l.bottom-l.top,g=e.bottom-e.top+f;this.root.style.top=`${n-g}px`,this.root.classList.add("ql-flip")}return u}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const pO=[!1,"center","right","justify"],gO=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],mO=[!1,"serif","monospace"],vO=["1","2","3",!1],yO=["small",!1,"large","huge"];class cd extends Ju{constructor(e,t){super(e,t);const n=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(l=>{l.container.contains(i.target)||l.close()})};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(l=>{if(l.startsWith("ql-")&&(l=l.slice(3),t[l]!=null))if(l==="direction")n.innerHTML=t[l][""]+t[l].rtl;else if(typeof t[l]=="string")n.innerHTML=t[l];else{const u=n.value||"";u!=null&&t[l][u]&&(n.innerHTML=t[l][u])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&Df(i,pO),typeof t.align=="object"))return new Kx(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const l=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&Df(i,gO,l==="background"?"#ffffff":"#000000"),new Zx(i,t[l])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?Df(i,mO):i.classList.contains("ql-header")?Df(i,vO):i.classList.contains("ql-size")&&Df(i,yO)),new mh(i)});const n=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(Zt.events.EDITOR_CHANGE,n)}}cd.DEFAULTS=Ql({},Ju.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Xx extends Yx{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Zt.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Zt.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=bO(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,Zt.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",Zt.sources.USER),this.quill.setSelection(n+2,Zt.sources.USER)}break}}this.textbox.value="",this.hide()}}function bO(r){let e=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:r}function Df(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const i=document.createElement("option");n===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(n)),r.appendChild(i)})}const _O=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Jx extends Xx{constructor(e,t){super(e,t),this.quill.on(Zt.events.EDITOR_CHANGE,(n,i,l,u)=>{if(n===Zt.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&u===Zt.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const f=this.quill.getLines(i.index,i.length);if(f.length===1){const g=this.quill.getBounds(i);g!=null&&this.position(g)}else{const g=f[f.length-1],m=this.quill.getIndex(g),R=Math.min(g.length()-1,i.index+i.length-m),E=this.quill.getBounds(new Jc(m,R));E!=null&&this.position(E)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Zt.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",t!==0&&(n.style.marginLeft=`${-1*t-n.offsetWidth/2}px`),t}}dt(Jx,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class Qx extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=_O),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new Jx(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd))}}Qx.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,Ve.sources.USER)}}}}});const xO=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class eS extends Xx{constructor(){super(...arguments);dt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,Zt.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(Zt.events.SELECTION_CHANGE,(t,n,i)=>{if(t!=null){if(t.length===0&&i===Zt.sources.USER){const[l,u]=this.quill.scroll.descendant(Jl,t.index);if(l!=null){this.linkRange=new Jc(t.index-u,l.length());const f=Jl.formats(l.domNode);this.preview.textContent=f,this.preview.setAttribute("href",f),this.show();const g=this.quill.getBounds(this.linkRange);g!=null&&this.position(g);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}dt(eS,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class tS extends cd{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=xO),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),rd),this.buildPickers(e.container.querySelectorAll("select"),rd),this.tooltip=new eS(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}tS.DEFAULTS=Ql({},cd.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,Ve.sources.USER)}}}}});Ve.register({"attributors/attribute/direction":Ox,"attributors/class/align":Lx,"attributors/class/background":jM,"attributors/class/color":FM,"attributors/class/direction":Px,"attributors/class/font":jx,"attributors/class/size":Hx,"attributors/style/align":Mx,"attributors/style/background":Dm,"attributors/style/color":Mm,"attributors/style/direction":Nx,"attributors/style/font":Bx,"attributors/style/size":qx},!0);Ve.register({"formats/align":Lx,"formats/direction":Px,"formats/indent":kD,"formats/background":Dm,"formats/color":Mm,"formats/font":jx,"formats/size":Hx,"formats/blockquote":tm,"formats/code-block":zi,"formats/header":rm,"formats/list":ld,"formats/bold":td,"formats/code":Om,"formats/italic":nm,"formats/link":Jl,"formats/script":im,"formats/strike":om,"formats/underline":sm,"formats/formula":Wd,"formats/image":RD,"formats/video":Vd,"modules/syntax":Gx,"modules/table":LD,"modules/toolbar":Bm,"themes/bubble":Qx,"themes/snow":tS,"ui/icons":rd,"ui/picker":mh,"ui/icon-picker":Kx,"ui/color-picker":Zx,"ui/tooltip":Yx},!0);var hp={exports:{}},fy;function SO(){return fy||(fy=1,function(r,e){(function(t,n){r.exports=n()})(self,()=>(()=>{var t={321:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.ConsoleLogger=void 0;var f=function(){function g(m,R){this.debug=m,this.suppressErrorLogging=R}return g.prototype.prefixString=function(){return"</> quill-image-compress: "},Object.defineProperty(g.prototype,"log",{get:function(){return this.debug?console.log.bind(console,this.prefixString()):function(){}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"error",{get:function(){return this.suppressErrorLogging?function(){}:console.error.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"warn",{get:function(){return this.suppressErrorLogging?function(){}:console.warn.bind(console,this.prefixString())},enumerable:!1,configurable:!0}),g}();u.ConsoleLogger=f},337:function(l,u){var f=this&&this.__awaiter||function(m,R,E,_){return new(E||(E=Promise))(function(S,x){function M(I){try{b(_.next(I))}catch(O){x(O)}}function w(I){try{b(_.throw(I))}catch(O){x(O)}}function b(I){var O;I.done?S(I.value):(O=I.value,O instanceof E?O:new E(function(H){H(O)})).then(M,w)}b((_=_.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var E,_,S,x={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},M=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return M.next=w(0),M.throw=w(1),M.return=w(2),typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function w(b){return function(I){return function(O){if(E)throw new TypeError("Generator is already executing.");for(;M&&(M=0,O[0]&&(x=0)),x;)try{if(E=1,_&&(S=2&O[0]?_.return:O[0]?_.throw||((S=_.return)&&S.call(_),0):_.next)&&!(S=S.call(_,O[1])).done)return S;switch(_=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return x.label++,{value:O[1],done:!1};case 5:x.label++,_=O[1],O=[0];continue;case 7:O=x.ops.pop(),x.trys.pop();continue;default:if(S=x.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){x=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){x.label=O[1];break}if(O[0]===6&&x.label<S[1]){x.label=S[1],S=O;break}if(S&&x.label<S[2]){x.label=S[2],x.ops.push(O);break}S[2]&&x.ops.pop(),x.trys.pop();continue}O=R.call(m,x)}catch(H){O=[6,H],_=0}finally{E=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([b,I])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.downscaleImage=function(m,R,E,_,S,x,M,w){return f(this,void 0,void 0,function(){var b,I,O,H,q,z,Y,fe;return g(this,function(X){switch(X.label){case 0:return b=R.split(";")[0].split(":")[1],S=S||"image/jpeg",w=w||.7,(I=new Image).src=R,[4,new Promise(function(he){I.onload=function(){he()}})];case 1:return X.sent(),O=function(he,j,re,Q){if(re&&Q&&he<=re&&j<=Q)return[he,j];if(re&&he>re){var J=re,me=Math.floor(j/he*J);if(Q&&me>Q){var ce=Q;return[Math.floor(he/j*ce),ce]}return[J,me]}return Q&&j>Q?(me=Q,[J=Math.floor(he/j*me),me]):[j,he]}(I.width,I.height,E,_),H=O[0],q=O[1],(z=document.createElement("canvas")).width=H,z.height=q,Y=z.getContext("2d"),S==="image/jpeg"&&(Y.fillStyle="#FFFFFF",Y.fillRect(0,0,I.width,I.height)),M!=null&&M.includes(b)?[2,R]:(x!=null&&x.includes(b)&&(S=b),Y.drawImage(I,0,0,H,q),fe=z.toDataURL(S,w),m.log("downscaling image...",{args:{dataUrl:R,maxWidth:E,maxHeight:_,imageType:S,ignoreImageTypes:M,keepImageTypes:x,imageQuality:w},newHeight:q,newWidth:H}),[2,fe])}})})}},922:function(l,u){var f=this&&this.__awaiter||function(m,R,E,_){return new(E||(E=Promise))(function(S,x){function M(I){try{b(_.next(I))}catch(O){x(O)}}function w(I){try{b(_.throw(I))}catch(O){x(O)}}function b(I){var O;I.done?S(I.value):(O=I.value,O instanceof E?O:new E(function(H){H(O)})).then(M,w)}b((_=_.apply(m,R||[])).next())})},g=this&&this.__generator||function(m,R){var E,_,S,x={label:0,sent:function(){if(1&S[0])throw S[1];return S[1]},trys:[],ops:[]},M=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return M.next=w(0),M.throw=w(1),M.return=w(2),typeof Symbol=="function"&&(M[Symbol.iterator]=function(){return this}),M;function w(b){return function(I){return function(O){if(E)throw new TypeError("Generator is already executing.");for(;M&&(M=0,O[0]&&(x=0)),x;)try{if(E=1,_&&(S=2&O[0]?_.return:O[0]?_.throw||((S=_.return)&&S.call(_),0):_.next)&&!(S=S.call(_,O[1])).done)return S;switch(_=0,S&&(O=[2&O[0],S.value]),O[0]){case 0:case 1:S=O;break;case 4:return x.label++,{value:O[1],done:!1};case 5:x.label++,_=O[1],O=[0];continue;case 7:O=x.ops.pop(),x.trys.pop();continue;default:if(S=x.trys,!((S=S.length>0&&S[S.length-1])||O[0]!==6&&O[0]!==2)){x=0;continue}if(O[0]===3&&(!S||O[1]>S[0]&&O[1]<S[3])){x.label=O[1];break}if(O[0]===6&&x.label<S[1]){x.label=S[1],S=O;break}if(S&&x.label<S[2]){x.label=S[2],x.ops.push(O);break}S[2]&&x.ops.pop(),x.trys.pop();continue}O=R.call(m,x)}catch(H){O=[6,H],_=0}finally{E=S=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([b,I])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.file2b64=function(m){return f(this,void 0,void 0,function(){var R,E;return g(this,function(_){return R=new FileReader,E=new Promise(function(S,x){R.addEventListener("load",function(){var M,w=(M=R.result)===null||M===void 0?void 0:M.toString();w?S(w):x("could not convert file to base64")},!1)}),R.readAsDataURL(m),[2,E]})})}},457:(l,u)=>{Object.defineProperty(u,"__esModule",{value:!0}),u.warnAboutOptions=function(f,g){f.maxWidth=f.maxWidth||1e3,f.maxHeight=f.maxHeight||1e3,f.maxWidth&&typeof f.maxWidth!="number"&&(g.warn(`[config error] 'maxWidth' is required to be a "number" (in pixels),
211
211
  received: `.concat(f.maxWidth,`
212
212
  -> using default 1000`)),f.maxWidth=1e3),f.maxHeight&&typeof f.maxHeight!="number"&&(g.warn(`[config error] 'maxHeight' is required to be a "number" (in pixels),
213
213
  received: `.concat(f.maxHeight,`
@@ -344,15 +344,15 @@ received: `.concat(f.imageType,`
344
344
  <a class="btn" data-type="align" data-styles="">{4}</a>
345
345
  </div>
346
346
  </div>
347
- `,R=function(){function x(M,w,b,I){this.resizer=null,this.startResizePosition=null,this.i18n=new u((I==null?void 0:I.locale)||f),this.options=I,this.resizeTarget=M,M.originSize||(M.originSize={width:M.clientWidth,height:M.clientHeight}),this.editor=b,this.container=w,this.initResizer(),this.positionResizerToTarget(M),this.resizing=this.resizing.bind(this),this.endResize=this.endResize.bind(this),this.startResize=this.startResize.bind(this),this.toolbarClick=this.toolbarClick.bind(this),this.toolbarInputChange=this.toolbarInputChange.bind(this),this.onScroll=this.onScroll.bind(this),this.bindEvents()}return x.prototype.initResizer=function(){var M=this.container.querySelector("#editor-resizer");M||(M=document.createElement("div"),M.setAttribute("id","editor-resizer"),M.innerHTML=g(m,this.i18n.findLabel("altTip"),this.i18n.findLabel("floatLeft"),this.i18n.findLabel("center"),this.i18n.findLabel("floatRight"),this.i18n.findLabel("restore"),this.i18n.findLabel("inputTip")),this.container.appendChild(M)),this.resizer=M},x.prototype.positionResizerToTarget=function(M){this.resizer!==null&&(this.resizer.style.setProperty("left",M.offsetLeft+"px"),this.resizer.style.setProperty("top",M.offsetTop-this.editor.scrollTop+"px"),this.resizer.style.setProperty("width",M.clientWidth+"px"),this.resizer.style.setProperty("height",M.clientHeight+"px"))},x.prototype.bindEvents=function(){this.resizer!==null&&(this.resizer.addEventListener("mousedown",this.startResize),this.resizer.addEventListener("click",this.toolbarClick),this.resizer.addEventListener("change",this.toolbarInputChange)),window.addEventListener("mouseup",this.endResize),window.addEventListener("mousemove",this.resizing),this.editor.addEventListener("scroll",this.onScroll)},x.prototype.onScroll=function(){this.positionResizerToTarget(this.resizeTarget)},x.prototype._setStylesForToolbar=function(M,w){var b,I="_styles_"+M,O=this.resizeTarget.style,H=this.resizeTarget[I];O.cssText=O.cssText.replaceAll(" ","").replace(H,"")+(";"+w),this.resizeTarget[I]=w,this.positionResizerToTarget(this.resizeTarget),(b=this.options)===null||b===void 0||b.onChange(this.resizeTarget)},x.prototype.toolbarInputChange=function(M){var w,b=M.target,I=(w=b==null?void 0:b.dataset)===null||w===void 0?void 0:w.type,O=b.value;I&&Number(O)&&this._setStylesForToolbar(I,"width: "+Number(O)+"%;")},x.prototype.toolbarClick=function(M){var w,b,I=M.target,O=(w=I==null?void 0:I.dataset)===null||w===void 0?void 0:w.type;O&&I.classList.contains("btn")&&this._setStylesForToolbar(O,(b=I==null?void 0:I.dataset)===null||b===void 0?void 0:b.styles)},x.prototype.startResize=function(M){var w=M.target;w.classList.contains("handler")&&M.which===1&&(this.startResizePosition={left:M.clientX,top:M.clientY,width:this.resizeTarget.clientWidth,height:this.resizeTarget.clientHeight})},x.prototype.endResize=function(){var M;this.startResizePosition=null,(M=this.options)===null||M===void 0||M.onChange(this.resizeTarget)},x.prototype.resizing=function(M){if(this.startResizePosition){var w=M.clientX-this.startResizePosition.left,b=M.clientY-this.startResizePosition.top,I=this.startResizePosition.width,O=this.startResizePosition.height;if(I+=w,O+=b,M.altKey){var H=this.resizeTarget.originSize,q=H.height/H.width;O=q*I}this.resizeTarget.style.setProperty("width",Math.max(I,30)+"px"),this.resizeTarget.style.setProperty("height",Math.max(O,30)+"px"),this.positionResizerToTarget(this.resizeTarget)}},x.prototype.destory=function(){this.container.removeChild(this.resizer),window.removeEventListener("mouseup",this.endResize),window.removeEventListener("mousemove",this.resizing),this.editor.removeEventListener("scroll",this.onScroll),this.resizer=null},x}(),E=function(){function x(M,w){this.element=M,this.cb=w,this.hasTracked=!1}return x}(),_=function(){function x(){}return x.track=function(M,w){this.iframes.push(new E(M,w)),this.interval||(this.interval=setInterval(function(){x.checkClick()},this.resolution))},x.checkClick=function(){if(document.activeElement){var M=document.activeElement;for(var w in this.iframes)M===this.iframes[w].element?this.iframes[w].hasTracked==!1&&(this.iframes[w].cb.apply(window,[]),this.iframes[w].hasTracked=!0):this.iframes[w].hasTracked=!1}},x.resolution=200,x.iframes=[],x.interval=null,x}();function S(x,M){var w=x.root,b,I;function O(){var H=x.getContents().constructor,q=new H().retain(1);x.updateContents(q)}w.addEventListener("click",function(H){var q=H.target;H.target&&["img","video"].includes(q.tagName.toLowerCase())&&(b=q,I=new R(q,w.parentElement,w,l(l({},M),{onChange:O})))}),x.on("text-change",function(H,q){w.querySelectorAll("iframe").forEach(function(z){_.track(z,function(){b=z,I=new R(z,w.parentElement,w,l(l({},M),{onChange:O}))})})}),document.addEventListener("mousedown",function(H){var q,z,Y,fe=H.target;fe!==b&&!(!((z=(q=I==null?void 0:I.resizer)===null||q===void 0?void 0:q.contains)===null||z===void 0)&&z.call(q,fe))&&((Y=I==null?void 0:I.destory)===null||Y===void 0||Y.call(I),I=null,b=null)},{capture:!0})}return S})}(Gd)),Gd.exports}var EO=TO();const kO=al(EO);var pp,hy;function RO(){if(hy)return pp;hy=1;function r(){this.__data__=[],this.size=0}return pp=r,pp}var gp,py;function rS(){if(py)return gp;py=1;function r(e,t){return e===t||e!==e&&t!==t}return gp=r,gp}var mp,gy;function vh(){if(gy)return mp;gy=1;var r=rS();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return mp=e,mp}var vp,my;function IO(){if(my)return vp;my=1;var r=vh(),e=Array.prototype,t=e.splice;function n(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():t.call(l,u,1),--this.size,!0}return vp=n,vp}var yp,vy;function LO(){if(vy)return yp;vy=1;var r=vh();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return yp=e,yp}var bp,yy;function MO(){if(yy)return bp;yy=1;var r=vh();function e(t){return r(this.__data__,t)>-1}return bp=e,bp}var _p,by;function DO(){if(by)return _p;by=1;var r=vh();function e(t,n){var i=this.__data__,l=r(i,t);return l<0?(++this.size,i.push([t,n])):i[l][1]=n,this}return _p=e,_p}var xp,_y;function yh(){if(_y)return xp;_y=1;var r=RO(),e=IO(),t=LO(),n=MO(),i=DO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,xp=l,xp}var Sp,xy;function OO(){if(xy)return Sp;xy=1;var r=yh();function e(){this.__data__=new r,this.size=0}return Sp=e,Sp}var Cp,Sy;function PO(){if(Sy)return Cp;Sy=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return Cp=r,Cp}var wp,Cy;function NO(){if(Cy)return wp;Cy=1;function r(e){return this.__data__.get(e)}return wp=r,wp}var Ap,wy;function FO(){if(wy)return Ap;wy=1;function r(e){return this.__data__.has(e)}return Ap=r,Ap}var Tp,Ay;function nS(){if(Ay)return Tp;Ay=1;var r=typeof bi=="object"&&bi&&bi.Object===Object&&bi;return Tp=r,Tp}var Ep,Ty;function ul(){if(Ty)return Ep;Ty=1;var r=nS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Ep=t,Ep}var kp,Ey;function Hm(){if(Ey)return kp;Ey=1;var r=ul(),e=r.Symbol;return kp=e,kp}var Rp,ky;function jO(){if(ky)return Rp;ky=1;var r=Hm(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,i=r?r.toStringTag:void 0;function l(u){var f=t.call(u,i),g=u[i];try{u[i]=void 0;var m=!0}catch{}var R=n.call(u);return m&&(f?u[i]=g:delete u[i]),R}return Rp=l,Rp}var Ip,Ry;function BO(){if(Ry)return Ip;Ry=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ip=t,Ip}var Lp,Iy;function bh(){if(Iy)return Lp;Iy=1;var r=Hm(),e=jO(),t=BO(),n="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(f){return f==null?f===void 0?i:n:l&&l in Object(f)?e(f):t(f)}return Lp=u,Lp}var Mp,Ly;function iS(){if(Ly)return Mp;Ly=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Mp=r,Mp}var Dp,My;function oS(){if(My)return Dp;My=1;var r=bh(),e=iS(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!e(f))return!1;var g=r(f);return g==n||g==i||g==t||g==l}return Dp=u,Dp}var Op,Dy;function HO(){if(Dy)return Op;Dy=1;var r=ul(),e=r["__core-js_shared__"];return Op=e,Op}var Pp,Oy;function qO(){if(Oy)return Pp;Oy=1;var r=HO(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return Pp=t,Pp}var Np,Py;function sS(){if(Py)return Np;Py=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Np=t,Np}var Fp,Ny;function zO(){if(Ny)return Fp;Ny=1;var r=oS(),e=qO(),t=iS(),n=sS(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,g=u.toString,m=f.hasOwnProperty,R=RegExp("^"+g.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(_){if(!t(_)||e(_))return!1;var S=r(_)?R:l;return S.test(n(_))}return Fp=E,Fp}var jp,Fy;function $O(){if(Fy)return jp;Fy=1;function r(e,t){return e==null?void 0:e[t]}return jp=r,jp}var Bp,jy;function rf(){if(jy)return Bp;jy=1;var r=zO(),e=$O();function t(n,i){var l=e(n,i);return r(l)?l:void 0}return Bp=t,Bp}var Hp,By;function qm(){if(By)return Hp;By=1;var r=rf(),e=ul(),t=r(e,"Map");return Hp=t,Hp}var qp,Hy;function _h(){if(Hy)return qp;Hy=1;var r=rf(),e=r(Object,"create");return qp=e,qp}var zp,qy;function UO(){if(qy)return zp;qy=1;var r=_h();function e(){this.__data__=r?r(null):{},this.size=0}return zp=e,zp}var $p,zy;function WO(){if(zy)return $p;zy=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return $p=r,$p}var Up,$y;function VO(){if($y)return Up;$y=1;var r=_h(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(l){var u=this.__data__;if(r){var f=u[l];return f===e?void 0:f}return n.call(u,l)?u[l]:void 0}return Up=i,Up}var Wp,Uy;function GO(){if(Uy)return Wp;Uy=1;var r=_h(),e=Object.prototype,t=e.hasOwnProperty;function n(i){var l=this.__data__;return r?l[i]!==void 0:t.call(l,i)}return Wp=n,Wp}var Vp,Wy;function ZO(){if(Wy)return Vp;Wy=1;var r=_h(),e="__lodash_hash_undefined__";function t(n,i){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=r&&i===void 0?e:i,this}return Vp=t,Vp}var Gp,Vy;function KO(){if(Vy)return Gp;Vy=1;var r=UO(),e=WO(),t=VO(),n=GO(),i=ZO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Gp=l,Gp}var Zp,Gy;function YO(){if(Gy)return Zp;Gy=1;var r=KO(),e=yh(),t=qm();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Zp=n,Zp}var Kp,Zy;function XO(){if(Zy)return Kp;Zy=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Kp=r,Kp}var Yp,Ky;function xh(){if(Ky)return Yp;Ky=1;var r=XO();function e(t,n){var i=t.__data__;return r(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Yp=e,Yp}var Xp,Yy;function JO(){if(Yy)return Xp;Yy=1;var r=xh();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Xp=e,Xp}var Jp,Xy;function QO(){if(Xy)return Jp;Xy=1;var r=xh();function e(t){return r(this,t).get(t)}return Jp=e,Jp}var Qp,Jy;function eP(){if(Jy)return Qp;Jy=1;var r=xh();function e(t){return r(this,t).has(t)}return Qp=e,Qp}var eg,Qy;function tP(){if(Qy)return eg;Qy=1;var r=xh();function e(t,n){var i=r(this,t),l=i.size;return i.set(t,n),this.size+=i.size==l?0:1,this}return eg=e,eg}var tg,eb;function aS(){if(eb)return tg;eb=1;var r=YO(),e=JO(),t=QO(),n=eP(),i=tP();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,tg=l,tg}var rg,tb;function rP(){if(tb)return rg;tb=1;var r=yh(),e=qm(),t=aS(),n=200;function i(l,u){var f=this.__data__;if(f instanceof r){var g=f.__data__;if(!e||g.length<n-1)return g.push([l,u]),this.size=++f.size,this;f=this.__data__=new t(g)}return f.set(l,u),this.size=f.size,this}return rg=i,rg}var ng,rb;function nP(){if(rb)return ng;rb=1;var r=yh(),e=OO(),t=PO(),n=NO(),i=FO(),l=rP();function u(f){var g=this.__data__=new r(f);this.size=g.size}return u.prototype.clear=e,u.prototype.delete=t,u.prototype.get=n,u.prototype.has=i,u.prototype.set=l,ng=u,ng}var ig,nb;function iP(){if(nb)return ig;nb=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return ig=e,ig}var og,ib;function oP(){if(ib)return og;ib=1;function r(e){return this.__data__.has(e)}return og=r,og}var sg,ob;function sP(){if(ob)return sg;ob=1;var r=aS(),e=iP(),t=oP();function n(i){var l=-1,u=i==null?0:i.length;for(this.__data__=new r;++l<u;)this.add(i[l])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,sg=n,sg}var ag,sb;function aP(){if(sb)return ag;sb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}return ag=r,ag}var lg,ab;function lP(){if(ab)return lg;ab=1;function r(e,t){return e.has(t)}return lg=r,lg}var cg,lb;function lS(){if(lb)return cg;lb=1;var r=sP(),e=aP(),t=lP(),n=1,i=2;function l(u,f,g,m,R,E){var _=g&n,S=u.length,x=f.length;if(S!=x&&!(_&&x>S))return!1;var M=E.get(u),w=E.get(f);if(M&&w)return M==f&&w==u;var b=-1,I=!0,O=g&i?new r:void 0;for(E.set(u,f),E.set(f,u);++b<S;){var H=u[b],q=f[b];if(m)var z=_?m(q,H,b,f,u,E):m(H,q,b,u,f,E);if(z!==void 0){if(z)continue;I=!1;break}if(O){if(!e(f,function(Y,fe){if(!t(O,fe)&&(H===Y||R(H,Y,g,m,E)))return O.push(fe)})){I=!1;break}}else if(!(H===q||R(H,q,g,m,E))){I=!1;break}}return E.delete(u),E.delete(f),I}return cg=l,cg}var ug,cb;function cP(){if(cb)return ug;cb=1;var r=ul(),e=r.Uint8Array;return ug=e,ug}var fg,ub;function uP(){if(ub)return fg;ub=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i,l){n[++t]=[l,i]}),n}return fg=r,fg}var dg,fb;function fP(){if(fb)return dg;fb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}return dg=r,dg}var hg,db;function dP(){if(db)return hg;db=1;var r=Hm(),e=cP(),t=rS(),n=lS(),i=uP(),l=fP(),u=1,f=2,g="[object Boolean]",m="[object Date]",R="[object Error]",E="[object Map]",_="[object Number]",S="[object RegExp]",x="[object Set]",M="[object String]",w="[object Symbol]",b="[object ArrayBuffer]",I="[object DataView]",O=r?r.prototype:void 0,H=O?O.valueOf:void 0;function q(z,Y,fe,X,he,j,re){switch(fe){case I:if(z.byteLength!=Y.byteLength||z.byteOffset!=Y.byteOffset)return!1;z=z.buffer,Y=Y.buffer;case b:return!(z.byteLength!=Y.byteLength||!j(new e(z),new e(Y)));case g:case m:case _:return t(+z,+Y);case R:return z.name==Y.name&&z.message==Y.message;case S:case M:return z==Y+"";case E:var Q=i;case x:var J=X&u;if(Q||(Q=l),z.size!=Y.size&&!J)return!1;var me=re.get(z);if(me)return me==Y;X|=f,re.set(z,Y);var ce=n(Q(z),Q(Y),X,he,j,re);return re.delete(z),ce;case w:if(H)return H.call(z)==H.call(Y)}return!1}return hg=q,hg}var pg,hb;function hP(){if(hb)return pg;hb=1;function r(e,t){for(var n=-1,i=t.length,l=e.length;++n<i;)e[l+n]=t[n];return e}return pg=r,pg}var gg,pb;function zm(){if(pb)return gg;pb=1;var r=Array.isArray;return gg=r,gg}var mg,gb;function pP(){if(gb)return mg;gb=1;var r=hP(),e=zm();function t(n,i,l){var u=i(n);return e(n)?u:r(u,l(n))}return mg=t,mg}var vg,mb;function gP(){if(mb)return vg;mb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length,l=0,u=[];++n<i;){var f=e[n];t(f,n,e)&&(u[l++]=f)}return u}return vg=r,vg}var yg,vb;function mP(){if(vb)return yg;vb=1;function r(){return[]}return yg=r,yg}var bg,yb;function vP(){if(yb)return bg;yb=1;var r=gP(),e=mP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(f){return n.call(u,f)}))}:e;return bg=l,bg}var _g,bb;function yP(){if(bb)return _g;bb=1;function r(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}return _g=r,_g}var xg,_b;function Sh(){if(_b)return xg;_b=1;function r(e){return e!=null&&typeof e=="object"}return xg=r,xg}var Sg,xb;function bP(){if(xb)return Sg;xb=1;var r=bh(),e=Sh(),t="[object Arguments]";function n(i){return e(i)&&r(i)==t}return Sg=n,Sg}var Cg,Sb;function _P(){if(Sb)return Cg;Sb=1;var r=bP(),e=Sh(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(u){return e(u)&&n.call(u,"callee")&&!i.call(u,"callee")};return Cg=l,Cg}var qf={exports:{}},wg,Cb;function xP(){if(Cb)return wg;Cb=1;function r(){return!1}return wg=r,wg}qf.exports;var wb;function cS(){return wb||(wb=1,function(r,e){var t=ul(),n=xP(),i=e&&!e.nodeType&&e,l=i&&!0&&r&&!r.nodeType&&r,u=l&&l.exports===i,f=u?t.Buffer:void 0,g=f?f.isBuffer:void 0,m=g||n;r.exports=m}(qf,qf.exports)),qf.exports}var Ag,Ab;function SP(){if(Ab)return Ag;Ab=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,i){var l=typeof n;return i=i??r,!!i&&(l=="number"||l!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Ag=t,Ag}var Tg,Tb;function uS(){if(Tb)return Tg;Tb=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Tg=e,Tg}var Eg,Eb;function CP(){if(Eb)return Eg;Eb=1;var r=bh(),e=uS(),t=Sh(),n="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",g="[object Function]",m="[object Map]",R="[object Number]",E="[object Object]",_="[object RegExp]",S="[object Set]",x="[object String]",M="[object WeakMap]",w="[object ArrayBuffer]",b="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",z="[object Int32Array]",Y="[object Uint8Array]",fe="[object Uint8ClampedArray]",X="[object Uint16Array]",he="[object Uint32Array]",j={};j[I]=j[O]=j[H]=j[q]=j[z]=j[Y]=j[fe]=j[X]=j[he]=!0,j[n]=j[i]=j[w]=j[l]=j[b]=j[u]=j[f]=j[g]=j[m]=j[R]=j[E]=j[_]=j[S]=j[x]=j[M]=!1;function re(Q){return t(Q)&&e(Q.length)&&!!j[r(Q)]}return Eg=re,Eg}var kg,kb;function wP(){if(kb)return kg;kb=1;function r(e){return function(t){return e(t)}}return kg=r,kg}var zf={exports:{}};zf.exports;var Rb;function AP(){return Rb||(Rb=1,function(r,e){var t=nS(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,l=i&&i.exports===n,u=l&&t.process,f=function(){try{var g=i&&i.require&&i.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}}();r.exports=f}(zf,zf.exports)),zf.exports}var Rg,Ib;function fS(){if(Ib)return Rg;Ib=1;var r=CP(),e=wP(),t=AP(),n=t&&t.isTypedArray,i=n?e(n):r;return Rg=i,Rg}var Ig,Lb;function TP(){if(Lb)return Ig;Lb=1;var r=yP(),e=_P(),t=zm(),n=cS(),i=SP(),l=fS(),u=Object.prototype,f=u.hasOwnProperty;function g(m,R){var E=t(m),_=!E&&e(m),S=!E&&!_&&n(m),x=!E&&!_&&!S&&l(m),M=E||_||S||x,w=M?r(m.length,String):[],b=w.length;for(var I in m)(R||f.call(m,I))&&!(M&&(I=="length"||S&&(I=="offset"||I=="parent")||x&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||i(I,b)))&&w.push(I);return w}return Ig=g,Ig}var Lg,Mb;function EP(){if(Mb)return Lg;Mb=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return Lg=e,Lg}var Mg,Db;function kP(){if(Db)return Mg;Db=1;function r(e,t){return function(n){return e(t(n))}}return Mg=r,Mg}var Dg,Ob;function RP(){if(Ob)return Dg;Ob=1;var r=kP(),e=r(Object.keys,Object);return Dg=e,Dg}var Og,Pb;function IP(){if(Pb)return Og;Pb=1;var r=EP(),e=RP(),t=Object.prototype,n=t.hasOwnProperty;function i(l){if(!r(l))return e(l);var u=[];for(var f in Object(l))n.call(l,f)&&f!="constructor"&&u.push(f);return u}return Og=i,Og}var Pg,Nb;function LP(){if(Nb)return Pg;Nb=1;var r=oS(),e=uS();function t(n){return n!=null&&e(n.length)&&!r(n)}return Pg=t,Pg}var Ng,Fb;function MP(){if(Fb)return Ng;Fb=1;var r=TP(),e=IP(),t=LP();function n(i){return t(i)?r(i):e(i)}return Ng=n,Ng}var Fg,jb;function DP(){if(jb)return Fg;jb=1;var r=pP(),e=vP(),t=MP();function n(i){return r(i,t,e)}return Fg=n,Fg}var jg,Bb;function OP(){if(Bb)return jg;Bb=1;var r=DP(),e=1,t=Object.prototype,n=t.hasOwnProperty;function i(l,u,f,g,m,R){var E=f&e,_=r(l),S=_.length,x=r(u),M=x.length;if(S!=M&&!E)return!1;for(var w=S;w--;){var b=_[w];if(!(E?b in u:n.call(u,b)))return!1}var I=R.get(l),O=R.get(u);if(I&&O)return I==u&&O==l;var H=!0;R.set(l,u),R.set(u,l);for(var q=E;++w<S;){b=_[w];var z=l[b],Y=u[b];if(g)var fe=E?g(Y,z,b,u,l,R):g(z,Y,b,l,u,R);if(!(fe===void 0?z===Y||m(z,Y,f,g,R):fe)){H=!1;break}q||(q=b=="constructor")}if(H&&!q){var X=l.constructor,he=u.constructor;X!=he&&"constructor"in l&&"constructor"in u&&!(typeof X=="function"&&X instanceof X&&typeof he=="function"&&he instanceof he)&&(H=!1)}return R.delete(l),R.delete(u),H}return jg=i,jg}var Bg,Hb;function PP(){if(Hb)return Bg;Hb=1;var r=rf(),e=ul(),t=r(e,"DataView");return Bg=t,Bg}var Hg,qb;function NP(){if(qb)return Hg;qb=1;var r=rf(),e=ul(),t=r(e,"Promise");return Hg=t,Hg}var qg,zb;function FP(){if(zb)return qg;zb=1;var r=rf(),e=ul(),t=r(e,"Set");return qg=t,qg}var zg,$b;function jP(){if($b)return zg;$b=1;var r=rf(),e=ul(),t=r(e,"WeakMap");return zg=t,zg}var $g,Ub;function BP(){if(Ub)return $g;Ub=1;var r=PP(),e=qm(),t=NP(),n=FP(),i=jP(),l=bh(),u=sS(),f="[object Map]",g="[object Object]",m="[object Promise]",R="[object Set]",E="[object WeakMap]",_="[object DataView]",S=u(r),x=u(e),M=u(t),w=u(n),b=u(i),I=l;return(r&&I(new r(new ArrayBuffer(1)))!=_||e&&I(new e)!=f||t&&I(t.resolve())!=m||n&&I(new n)!=R||i&&I(new i)!=E)&&(I=function(O){var H=l(O),q=H==g?O.constructor:void 0,z=q?u(q):"";if(z)switch(z){case S:return _;case x:return f;case M:return m;case w:return R;case b:return E}return H}),$g=I,$g}var Ug,Wb;function HP(){if(Wb)return Ug;Wb=1;var r=nP(),e=lS(),t=dP(),n=OP(),i=BP(),l=zm(),u=cS(),f=fS(),g=1,m="[object Arguments]",R="[object Array]",E="[object Object]",_=Object.prototype,S=_.hasOwnProperty;function x(M,w,b,I,O,H){var q=l(M),z=l(w),Y=q?R:i(M),fe=z?R:i(w);Y=Y==m?E:Y,fe=fe==m?E:fe;var X=Y==E,he=fe==E,j=Y==fe;if(j&&u(M)){if(!u(w))return!1;q=!0,X=!1}if(j&&!X)return H||(H=new r),q||f(M)?e(M,w,b,I,O,H):t(M,w,Y,b,I,O,H);if(!(b&g)){var re=X&&S.call(M,"__wrapped__"),Q=he&&S.call(w,"__wrapped__");if(re||Q){var J=re?M.value():M,me=Q?w.value():w;return H||(H=new r),O(J,me,b,I,H)}}return j?(H||(H=new r),n(M,w,b,I,O,H)):!1}return Ug=x,Ug}var Wg,Vb;function qP(){if(Vb)return Wg;Vb=1;var r=HP(),e=Sh();function t(n,i,l,u,f){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:r(n,i,l,u,t,f)}return Wg=t,Wg}var Vg,Gb;function zP(){if(Gb)return Vg;Gb=1;var r=qP();function e(t,n){return r(t,n)}return Vg=e,Vg}var $P=zP();const Of=al($P);class Ch extends A.Component{constructor(e){super(e),this.editingAreaRef=A.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,i,l,u)=>{var f,g;n==="text-change"?(f=this.onEditorChangeText)==null||f.call(this,this.editor.root.innerHTML,i,u,this.unprivilegedEditor):n==="selection-change"&&((g=this.onEditorChangeSelection)==null||g.call(this,i,u,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(A.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(A.Children.count(e.children)){const t=A.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,n)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!Of(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!Of(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const n=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:n,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const l=this.editor;l.setContents(n),Zb(()=>this.setEditorSelection(l,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){this.editor&&this.unhookEditor(this.editor)}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const n=new We(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?Of(e.ops,t.ops):Of(e,t)}setEditorContents(e,t){this.value=t;const n=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),Zb(()=>this.setEditorSelection(e,n))}setEditorSelection(e,t){if(this.selection=t,t){const n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var n;(n=e==null?void 0:e.scroll)!=null&&n.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:n}=this.state,i={key:n,ref:this.editingAreaRef};return A.Children.count(e)?A.cloneElement(A.Children.only(e),i):t?A.createElement("pre",{...i}):A.createElement("div",{...i})}render(){return A.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,n,i){var u,f;if(!this.editor)return;const l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,(f=(u=this.props).onChange)==null||f.call(u,e,t,n,i))}onEditorChangeSelection(e,t,n){var f,g,m,R,E,_;if(!this.editor)return;const i=this.getEditorSelection(),l=!i&&e,u=i&&!e;Of(e,i)||(this.selection=e,(g=(f=this.props).onChangeSelection)==null||g.call(f,e,t,n),l?(R=(m=this.props).onFocus)==null||R.call(m,e,t,n):u&&((_=(E=this.props).onBlur)==null||_.call(E,i,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Ch.displayName="React Quill";Ch.Quill=We;Ch.defaultProps={theme:"snow",modules:{},readOnly:!1};function Zb(r){Promise.resolve().then(r)}const UP="_AEditorWrapper_1i771_1",WP="_AEditorContainer_1i771_7",VP="_AEditor_1i771_1",GP="_Primary_1i771_466",ZP="_ReadOnly_1i771_536",KP="_Raw_1i771_687",YP="_LimitContainer_1i771_701",XP="_Limit_1i771_701",JP="_Indicator_1i771_724",QP="_Resizer_1i771_733",jn={AEditorWrapper:UP,AEditorContainer:WP,AEditor:VP,Primary:GP,ReadOnly:ZP,Error:"_Error_1i771_613",Raw:KP,LimitContainer:YP,Limit:XP,Indicator:JP,Resizer:QP,"ql-tablepicker-row":"_ql-tablepicker-row_1i771_767","ql-tablepicker-cell":"_ql-tablepicker-cell_1i771_770","ql-tablepicker-grid":"_ql-tablepicker-grid_1i771_778","ql-tablepicker-inner-cell":"_ql-tablepicker-inner-cell_1i771_782","ql-tablepicker-options":"_ql-tablepicker-options_1i771_791","ql-tablepicker-tooltip":"_ql-tablepicker-tooltip_1i771_802","ql-tableui-options":"_ql-tableui-options_1i771_821","ql-tableui-options__item":"_ql-tableui-options__item_1i771_833","ql-tableui-options__item-icon":"_ql-tableui-options__item-icon_1i771_852","ql-tableui-options__item-text":"_ql-tableui-options__item-text_1i771_857","ql-tableui-helper":"_ql-tableui-helper_1i771_861","ql-tableui-helper__icon":"_ql-tableui-helper__icon_1i771_873","ql-tableui-helper__text":"_ql-tableui-helper__text_1i771_883"};class eN{constructor(e){dt(this,"quill");dt(this,"picker",null);dt(this,"tooltip",null);dt(this,"toolbar",null);dt(this,"tableButton",null);dt(this,"CONSTANTS",{MAX_ROWS:10,MAX_COLS:10,CELL_SIZE:18,SPACING:5,PICKER_PADDING:20});dt(this,"CLASSNAMES",{tooltip:jn["ql-tablepicker-tooltip"],grid:jn["ql-tablepicker-grid"],row:jn["ql-tablepicker-row"],cell:jn["ql-tablepicker-cell"],innerCell:jn["ql-tablepicker-inner-cell"],options:jn["ql-tablepicker-options"]});dt(this,"COLORS",{highlight:"var(--AEditor_Addon_hover_color)",normal:"var(--AEditor_Addon_Primary_background-color)",border:"1px solid var(--AEditor_Addon_Primary_color)"});dt(this,"boundHandlers",{globalClick:this.handleGlobalClick.bind(this),tableButtonClick:this.handleTableButtonClick.bind(this),gridMouseOver:this.handleGridMouseOver.bind(this),gridMouseOut:this.handleGridMouseOut.bind(this),gridClick:this.handleGridClick.bind(this),highlightReset:()=>this.highlightCells(0,0)});this.quill=e,this.initializeTablePicker(),document.addEventListener("click",this.boundHandlers.globalClick)}destroy(){document.removeEventListener("click",this.boundHandlers.globalClick),this.tableButton&&this.tableButton.removeEventListener("click",this.boundHandlers.tableButtonClick),this.hidePicker()}handleGlobalClick(e){if(!this.picker)return;const t=e.target;this.isTableButtonOrPicker(t)||this.hidePicker()}isTableButtonOrPicker(e){return!!e.closest("button.ql-table")||!!e.closest(`.${this.CLASSNAMES.options}`)}initializeTablePicker(){if(this.toolbar=this.quill.getModule("toolbar"),this.tableButton=this.toolbar.container.querySelector("button.ql-table"),!this.tableButton){console.warn("Table button not found");return}this.toolbar.handlers.table=()=>{},this.tableButton.addEventListener("click",this.boundHandlers.tableButtonClick)}handleTableButtonClick(e){if(e.preventDefault(),e.stopPropagation(),this.picker&&document.body.contains(this.picker)){this.hidePicker();return}this.showTablePicker(e.target)}createElement(e,t){const n=document.createElement("div");return n.className=e,t&&(n.textContent=t),n}showTablePicker(e){this.hidePicker(),this.closeOtherOptions();const t=e.closest("button.ql-table");t&&t.classList.add("ql-expanded"),this.createPicker(e)}closeOtherOptions(){document.querySelectorAll(".ql-picker.ql-expanded").forEach(e=>{e.classList.remove("ql-expanded")})}createPicker(e){const t=document.createDocumentFragment();this.picker=this.createElement(this.CLASSNAMES.options);const n=this.createGrid();t.appendChild(n),this.picker.appendChild(t),this.positionPicker(e),document.body.appendChild(this.picker),this.picker.addEventListener("mouseover",this.boundHandlers.gridMouseOver),this.picker.addEventListener("mouseout",this.boundHandlers.gridMouseOut),this.picker.addEventListener("click",this.boundHandlers.gridClick),this.picker.addEventListener("mouseleave",this.boundHandlers.highlightReset)}handleGridMouseOver(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.highlightCells(n+1,i+1),this.showTooltip(t,n+1,i+1)}handleGridMouseOut(e){var t;(t=this.picker)!=null&&t.contains(e.relatedTarget)||this.removeTooltip()}handleGridClick(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.insertTable(n+1,i+1),this.removeTooltip(),this.hidePicker()}findTargetCell(e){return e.target.closest(`.${this.CLASSNAMES.cell}`)}getCellCoordinates(e){const t=parseInt(e.getAttribute("data-row")||"0",10),n=parseInt(e.getAttribute("data-col")||"0",10);return[t,n]}createGrid(){const e=this.createElement(this.CLASSNAMES.grid),t=document.createDocumentFragment(),{MAX_ROWS:n,MAX_COLS:i}=this.CONSTANTS;for(let l=0;l<n;l++){const u=this.createElement(this.CLASSNAMES.row);for(let f=0;f<i;f++){const g=this.createElement(this.CLASSNAMES.cell),m=this.createElement(this.CLASSNAMES.innerCell);g.setAttribute("data-row",l.toString()),g.setAttribute("data-col",f.toString()),g.appendChild(m),u.appendChild(g)}t.appendChild(u)}return e.appendChild(t),e}showTooltip(e,t,n){this.removeTooltip(),this.tooltip=this.createElement(this.CLASSNAMES.tooltip,`${t}×${n}`),document.body.appendChild(this.tooltip);const{top:i,left:l}=this.calculateTooltipPosition(e,this.tooltip);this.tooltip.style.top=`${i}px`,this.tooltip.style.left=`${l}px`}calculateTooltipPosition(e,t){const{SPACING:n}=this.CONSTANTS,i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),u=this.getViewportMetrics();let f=i.top-l.height-n,g=i.left;return f<0&&(f=i.bottom+n),g+l.width>u.width&&(g=u.width-l.width-n),{top:f,left:g}}getViewportMetrics(){return{width:window.innerWidth,height:window.innerHeight,scrollTop:window.scrollY||document.documentElement.scrollTop,scrollLeft:window.scrollX||document.documentElement.scrollLeft}}removeTooltip(){this.tooltip&&(this.tooltip.remove(),this.tooltip=null)}positionPicker(e){if(!this.picker)return;const{CELL_SIZE:t,MAX_ROWS:n,MAX_COLS:i,PICKER_PADDING:l}=this.CONSTANTS,u=e.getBoundingClientRect(),f=this.getViewportMetrics(),g=t*n+l,m=t*i+l,R=this.isElementInViewport(u),{top:E,left:_}=this.calculatePickerPosition(u,R,{pickerWidth:m,pickerHeight:g,viewport:f});this.picker.style.top=`${E}px`,this.picker.style.left=`${_}px`}isElementInViewport(e){const t=this.getViewportMetrics();return e.top>=0&&e.left>=0&&e.bottom<=t.height&&e.right<=t.width}calculatePickerPosition(e,t,n){const{pickerWidth:i,pickerHeight:l,viewport:u}=n,{width:f,height:g,scrollTop:m,scrollLeft:R}=u;let E,_;if(t)E=e.bottom+m,_=e.left+R;else{const S=this.quill.getSelection();if(S){const x=this.quill.getBounds(S.index),M=this.quill.container.getBoundingClientRect();E=M.top+x.bottom+m,_=M.left+x.left+R}else E=(g-l)/2+m,_=(f-i)/2+R}return E+l>g+m&&(E=Math.max(m,E-l-(t?e.height:0))),_+i>f+R&&(_=Math.max(R,f+R-i)),{top:E,left:_}}highlightCells(e,t){if(!this.picker)return;const n=this.picker.querySelectorAll(`.${this.CLASSNAMES.innerCell}`),{NORMAL:i,HIGHLIGHT:l}={NORMAL:this.COLORS.normal,HIGHLIGHT:this.COLORS.highlight};for(let u=0;u<n.length;u++){const f=n[u],g=f.parentElement;if(!g)continue;const[m,R]=this.getCellCoordinates(g);f.style.backgroundColor=m<e&&R<t?l:i}}insertTable(e,t){const n=this.quill.getSelection(!0);if(!n)return;const[i]=this.quill.getLeaf(n.index);if(!i)return;this.prepareInsertionPoint(i,n);const l=this.quill.getModule("table");this.quill.setSelection(n.index,0),l.insertTable(e,t);const u=this.quill.root.querySelector("table:last-of-type");if(u){const f=u.querySelectorAll("td, th");for(let m=0;m<f.length;m++)f[m].style.border=this.COLORS.border;const g=this.quill.getSelection();g&&this.quill.setSelection(g.index,0)}}prepareInsertionPoint(e,t){const n=this.findTableParent(e.parent);if(n){const i=this.quill.getIndex(n)+n.length();this.quill.insertText(i,`
347
+ `,R=function(){function x(M,w,b,I){this.resizer=null,this.startResizePosition=null,this.i18n=new u((I==null?void 0:I.locale)||f),this.options=I,this.resizeTarget=M,M.originSize||(M.originSize={width:M.clientWidth,height:M.clientHeight}),this.editor=b,this.container=w,this.initResizer(),this.positionResizerToTarget(M),this.resizing=this.resizing.bind(this),this.endResize=this.endResize.bind(this),this.startResize=this.startResize.bind(this),this.toolbarClick=this.toolbarClick.bind(this),this.toolbarInputChange=this.toolbarInputChange.bind(this),this.onScroll=this.onScroll.bind(this),this.bindEvents()}return x.prototype.initResizer=function(){var M=this.container.querySelector("#editor-resizer");M||(M=document.createElement("div"),M.setAttribute("id","editor-resizer"),M.innerHTML=g(m,this.i18n.findLabel("altTip"),this.i18n.findLabel("floatLeft"),this.i18n.findLabel("center"),this.i18n.findLabel("floatRight"),this.i18n.findLabel("restore"),this.i18n.findLabel("inputTip")),this.container.appendChild(M)),this.resizer=M},x.prototype.positionResizerToTarget=function(M){this.resizer!==null&&(this.resizer.style.setProperty("left",M.offsetLeft+"px"),this.resizer.style.setProperty("top",M.offsetTop-this.editor.scrollTop+"px"),this.resizer.style.setProperty("width",M.clientWidth+"px"),this.resizer.style.setProperty("height",M.clientHeight+"px"))},x.prototype.bindEvents=function(){this.resizer!==null&&(this.resizer.addEventListener("mousedown",this.startResize),this.resizer.addEventListener("click",this.toolbarClick),this.resizer.addEventListener("change",this.toolbarInputChange)),window.addEventListener("mouseup",this.endResize),window.addEventListener("mousemove",this.resizing),this.editor.addEventListener("scroll",this.onScroll)},x.prototype.onScroll=function(){this.positionResizerToTarget(this.resizeTarget)},x.prototype._setStylesForToolbar=function(M,w){var b,I="_styles_"+M,O=this.resizeTarget.style,H=this.resizeTarget[I];O.cssText=O.cssText.replaceAll(" ","").replace(H,"")+(";"+w),this.resizeTarget[I]=w,this.positionResizerToTarget(this.resizeTarget),(b=this.options)===null||b===void 0||b.onChange(this.resizeTarget)},x.prototype.toolbarInputChange=function(M){var w,b=M.target,I=(w=b==null?void 0:b.dataset)===null||w===void 0?void 0:w.type,O=b.value;I&&Number(O)&&this._setStylesForToolbar(I,"width: "+Number(O)+"%;")},x.prototype.toolbarClick=function(M){var w,b,I=M.target,O=(w=I==null?void 0:I.dataset)===null||w===void 0?void 0:w.type;O&&I.classList.contains("btn")&&this._setStylesForToolbar(O,(b=I==null?void 0:I.dataset)===null||b===void 0?void 0:b.styles)},x.prototype.startResize=function(M){var w=M.target;w.classList.contains("handler")&&M.which===1&&(this.startResizePosition={left:M.clientX,top:M.clientY,width:this.resizeTarget.clientWidth,height:this.resizeTarget.clientHeight})},x.prototype.endResize=function(){var M;this.startResizePosition=null,(M=this.options)===null||M===void 0||M.onChange(this.resizeTarget)},x.prototype.resizing=function(M){if(this.startResizePosition){var w=M.clientX-this.startResizePosition.left,b=M.clientY-this.startResizePosition.top,I=this.startResizePosition.width,O=this.startResizePosition.height;if(I+=w,O+=b,M.altKey){var H=this.resizeTarget.originSize,q=H.height/H.width;O=q*I}this.resizeTarget.style.setProperty("width",Math.max(I,30)+"px"),this.resizeTarget.style.setProperty("height",Math.max(O,30)+"px"),this.positionResizerToTarget(this.resizeTarget)}},x.prototype.destory=function(){this.container.removeChild(this.resizer),window.removeEventListener("mouseup",this.endResize),window.removeEventListener("mousemove",this.resizing),this.editor.removeEventListener("scroll",this.onScroll),this.resizer=null},x}(),E=function(){function x(M,w){this.element=M,this.cb=w,this.hasTracked=!1}return x}(),_=function(){function x(){}return x.track=function(M,w){this.iframes.push(new E(M,w)),this.interval||(this.interval=setInterval(function(){x.checkClick()},this.resolution))},x.checkClick=function(){if(document.activeElement){var M=document.activeElement;for(var w in this.iframes)M===this.iframes[w].element?this.iframes[w].hasTracked==!1&&(this.iframes[w].cb.apply(window,[]),this.iframes[w].hasTracked=!0):this.iframes[w].hasTracked=!1}},x.resolution=200,x.iframes=[],x.interval=null,x}();function S(x,M){var w=x.root,b,I;function O(){var H=x.getContents().constructor,q=new H().retain(1);x.updateContents(q)}w.addEventListener("click",function(H){var q=H.target;H.target&&["img","video"].includes(q.tagName.toLowerCase())&&(b=q,I=new R(q,w.parentElement,w,l(l({},M),{onChange:O})))}),x.on("text-change",function(H,q){w.querySelectorAll("iframe").forEach(function(z){_.track(z,function(){b=z,I=new R(z,w.parentElement,w,l(l({},M),{onChange:O}))})})}),document.addEventListener("mousedown",function(H){var q,z,Y,fe=H.target;fe!==b&&!(!((z=(q=I==null?void 0:I.resizer)===null||q===void 0?void 0:q.contains)===null||z===void 0)&&z.call(q,fe))&&((Y=I==null?void 0:I.destory)===null||Y===void 0||Y.call(I),I=null,b=null)},{capture:!0})}return S})}(Gd)),Gd.exports}var EO=TO();const kO=al(EO);var pp,hy;function RO(){if(hy)return pp;hy=1;function r(){this.__data__=[],this.size=0}return pp=r,pp}var gp,py;function rS(){if(py)return gp;py=1;function r(e,t){return e===t||e!==e&&t!==t}return gp=r,gp}var mp,gy;function vh(){if(gy)return mp;gy=1;var r=rS();function e(t,n){for(var i=t.length;i--;)if(r(t[i][0],n))return i;return-1}return mp=e,mp}var vp,my;function IO(){if(my)return vp;my=1;var r=vh(),e=Array.prototype,t=e.splice;function n(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var f=l.length-1;return u==f?l.pop():t.call(l,u,1),--this.size,!0}return vp=n,vp}var yp,vy;function LO(){if(vy)return yp;vy=1;var r=vh();function e(t){var n=this.__data__,i=r(n,t);return i<0?void 0:n[i][1]}return yp=e,yp}var bp,yy;function MO(){if(yy)return bp;yy=1;var r=vh();function e(t){return r(this.__data__,t)>-1}return bp=e,bp}var _p,by;function DO(){if(by)return _p;by=1;var r=vh();function e(t,n){var i=this.__data__,l=r(i,t);return l<0?(++this.size,i.push([t,n])):i[l][1]=n,this}return _p=e,_p}var xp,_y;function yh(){if(_y)return xp;_y=1;var r=RO(),e=IO(),t=LO(),n=MO(),i=DO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,xp=l,xp}var Sp,xy;function OO(){if(xy)return Sp;xy=1;var r=yh();function e(){this.__data__=new r,this.size=0}return Sp=e,Sp}var Cp,Sy;function PO(){if(Sy)return Cp;Sy=1;function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}return Cp=r,Cp}var wp,Cy;function NO(){if(Cy)return wp;Cy=1;function r(e){return this.__data__.get(e)}return wp=r,wp}var Ap,wy;function FO(){if(wy)return Ap;wy=1;function r(e){return this.__data__.has(e)}return Ap=r,Ap}var Tp,Ay;function nS(){if(Ay)return Tp;Ay=1;var r=typeof bi=="object"&&bi&&bi.Object===Object&&bi;return Tp=r,Tp}var Ep,Ty;function ul(){if(Ty)return Ep;Ty=1;var r=nS(),e=typeof self=="object"&&self&&self.Object===Object&&self,t=r||e||Function("return this")();return Ep=t,Ep}var kp,Ey;function Hm(){if(Ey)return kp;Ey=1;var r=ul(),e=r.Symbol;return kp=e,kp}var Rp,ky;function jO(){if(ky)return Rp;ky=1;var r=Hm(),e=Object.prototype,t=e.hasOwnProperty,n=e.toString,i=r?r.toStringTag:void 0;function l(u){var f=t.call(u,i),g=u[i];try{u[i]=void 0;var m=!0}catch{}var R=n.call(u);return m&&(f?u[i]=g:delete u[i]),R}return Rp=l,Rp}var Ip,Ry;function BO(){if(Ry)return Ip;Ry=1;var r=Object.prototype,e=r.toString;function t(n){return e.call(n)}return Ip=t,Ip}var Lp,Iy;function bh(){if(Iy)return Lp;Iy=1;var r=Hm(),e=jO(),t=BO(),n="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(f){return f==null?f===void 0?i:n:l&&l in Object(f)?e(f):t(f)}return Lp=u,Lp}var Mp,Ly;function iS(){if(Ly)return Mp;Ly=1;function r(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}return Mp=r,Mp}var Dp,My;function oS(){if(My)return Dp;My=1;var r=bh(),e=iS(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(f){if(!e(f))return!1;var g=r(f);return g==n||g==i||g==t||g==l}return Dp=u,Dp}var Op,Dy;function HO(){if(Dy)return Op;Dy=1;var r=ul(),e=r["__core-js_shared__"];return Op=e,Op}var Pp,Oy;function qO(){if(Oy)return Pp;Oy=1;var r=HO(),e=function(){var n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function t(n){return!!e&&e in n}return Pp=t,Pp}var Np,Py;function sS(){if(Py)return Np;Py=1;var r=Function.prototype,e=r.toString;function t(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Np=t,Np}var Fp,Ny;function zO(){if(Ny)return Fp;Ny=1;var r=oS(),e=qO(),t=iS(),n=sS(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,f=Object.prototype,g=u.toString,m=f.hasOwnProperty,R=RegExp("^"+g.call(m).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E(_){if(!t(_)||e(_))return!1;var S=r(_)?R:l;return S.test(n(_))}return Fp=E,Fp}var jp,Fy;function $O(){if(Fy)return jp;Fy=1;function r(e,t){return e==null?void 0:e[t]}return jp=r,jp}var Bp,jy;function rf(){if(jy)return Bp;jy=1;var r=zO(),e=$O();function t(n,i){var l=e(n,i);return r(l)?l:void 0}return Bp=t,Bp}var Hp,By;function qm(){if(By)return Hp;By=1;var r=rf(),e=ul(),t=r(e,"Map");return Hp=t,Hp}var qp,Hy;function _h(){if(Hy)return qp;Hy=1;var r=rf(),e=r(Object,"create");return qp=e,qp}var zp,qy;function UO(){if(qy)return zp;qy=1;var r=_h();function e(){this.__data__=r?r(null):{},this.size=0}return zp=e,zp}var $p,zy;function WO(){if(zy)return $p;zy=1;function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return $p=r,$p}var Up,$y;function VO(){if($y)return Up;$y=1;var r=_h(),e="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(l){var u=this.__data__;if(r){var f=u[l];return f===e?void 0:f}return n.call(u,l)?u[l]:void 0}return Up=i,Up}var Wp,Uy;function GO(){if(Uy)return Wp;Uy=1;var r=_h(),e=Object.prototype,t=e.hasOwnProperty;function n(i){var l=this.__data__;return r?l[i]!==void 0:t.call(l,i)}return Wp=n,Wp}var Vp,Wy;function ZO(){if(Wy)return Vp;Wy=1;var r=_h(),e="__lodash_hash_undefined__";function t(n,i){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=r&&i===void 0?e:i,this}return Vp=t,Vp}var Gp,Vy;function KO(){if(Vy)return Gp;Vy=1;var r=UO(),e=WO(),t=VO(),n=GO(),i=ZO();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,Gp=l,Gp}var Zp,Gy;function YO(){if(Gy)return Zp;Gy=1;var r=KO(),e=yh(),t=qm();function n(){this.size=0,this.__data__={hash:new r,map:new(t||e),string:new r}}return Zp=n,Zp}var Kp,Zy;function XO(){if(Zy)return Kp;Zy=1;function r(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}return Kp=r,Kp}var Yp,Ky;function xh(){if(Ky)return Yp;Ky=1;var r=XO();function e(t,n){var i=t.__data__;return r(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Yp=e,Yp}var Xp,Yy;function JO(){if(Yy)return Xp;Yy=1;var r=xh();function e(t){var n=r(this,t).delete(t);return this.size-=n?1:0,n}return Xp=e,Xp}var Jp,Xy;function QO(){if(Xy)return Jp;Xy=1;var r=xh();function e(t){return r(this,t).get(t)}return Jp=e,Jp}var Qp,Jy;function eP(){if(Jy)return Qp;Jy=1;var r=xh();function e(t){return r(this,t).has(t)}return Qp=e,Qp}var eg,Qy;function tP(){if(Qy)return eg;Qy=1;var r=xh();function e(t,n){var i=r(this,t),l=i.size;return i.set(t,n),this.size+=i.size==l?0:1,this}return eg=e,eg}var tg,eb;function aS(){if(eb)return tg;eb=1;var r=YO(),e=JO(),t=QO(),n=eP(),i=tP();function l(u){var f=-1,g=u==null?0:u.length;for(this.clear();++f<g;){var m=u[f];this.set(m[0],m[1])}}return l.prototype.clear=r,l.prototype.delete=e,l.prototype.get=t,l.prototype.has=n,l.prototype.set=i,tg=l,tg}var rg,tb;function rP(){if(tb)return rg;tb=1;var r=yh(),e=qm(),t=aS(),n=200;function i(l,u){var f=this.__data__;if(f instanceof r){var g=f.__data__;if(!e||g.length<n-1)return g.push([l,u]),this.size=++f.size,this;f=this.__data__=new t(g)}return f.set(l,u),this.size=f.size,this}return rg=i,rg}var ng,rb;function nP(){if(rb)return ng;rb=1;var r=yh(),e=OO(),t=PO(),n=NO(),i=FO(),l=rP();function u(f){var g=this.__data__=new r(f);this.size=g.size}return u.prototype.clear=e,u.prototype.delete=t,u.prototype.get=n,u.prototype.has=i,u.prototype.set=l,ng=u,ng}var ig,nb;function iP(){if(nb)return ig;nb=1;var r="__lodash_hash_undefined__";function e(t){return this.__data__.set(t,r),this}return ig=e,ig}var og,ib;function oP(){if(ib)return og;ib=1;function r(e){return this.__data__.has(e)}return og=r,og}var sg,ob;function sP(){if(ob)return sg;ob=1;var r=aS(),e=iP(),t=oP();function n(i){var l=-1,u=i==null?0:i.length;for(this.__data__=new r;++l<u;)this.add(i[l])}return n.prototype.add=n.prototype.push=e,n.prototype.has=t,sg=n,sg}var ag,sb;function aP(){if(sb)return ag;sb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}return ag=r,ag}var lg,ab;function lP(){if(ab)return lg;ab=1;function r(e,t){return e.has(t)}return lg=r,lg}var cg,lb;function lS(){if(lb)return cg;lb=1;var r=sP(),e=aP(),t=lP(),n=1,i=2;function l(u,f,g,m,R,E){var _=g&n,S=u.length,x=f.length;if(S!=x&&!(_&&x>S))return!1;var M=E.get(u),w=E.get(f);if(M&&w)return M==f&&w==u;var b=-1,I=!0,O=g&i?new r:void 0;for(E.set(u,f),E.set(f,u);++b<S;){var H=u[b],q=f[b];if(m)var z=_?m(q,H,b,f,u,E):m(H,q,b,u,f,E);if(z!==void 0){if(z)continue;I=!1;break}if(O){if(!e(f,function(Y,fe){if(!t(O,fe)&&(H===Y||R(H,Y,g,m,E)))return O.push(fe)})){I=!1;break}}else if(!(H===q||R(H,q,g,m,E))){I=!1;break}}return E.delete(u),E.delete(f),I}return cg=l,cg}var ug,cb;function cP(){if(cb)return ug;cb=1;var r=ul(),e=r.Uint8Array;return ug=e,ug}var fg,ub;function uP(){if(ub)return fg;ub=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i,l){n[++t]=[l,i]}),n}return fg=r,fg}var dg,fb;function fP(){if(fb)return dg;fb=1;function r(e){var t=-1,n=Array(e.size);return e.forEach(function(i){n[++t]=i}),n}return dg=r,dg}var hg,db;function dP(){if(db)return hg;db=1;var r=Hm(),e=cP(),t=rS(),n=lS(),i=uP(),l=fP(),u=1,f=2,g="[object Boolean]",m="[object Date]",R="[object Error]",E="[object Map]",_="[object Number]",S="[object RegExp]",x="[object Set]",M="[object String]",w="[object Symbol]",b="[object ArrayBuffer]",I="[object DataView]",O=r?r.prototype:void 0,H=O?O.valueOf:void 0;function q(z,Y,fe,X,he,j,re){switch(fe){case I:if(z.byteLength!=Y.byteLength||z.byteOffset!=Y.byteOffset)return!1;z=z.buffer,Y=Y.buffer;case b:return!(z.byteLength!=Y.byteLength||!j(new e(z),new e(Y)));case g:case m:case _:return t(+z,+Y);case R:return z.name==Y.name&&z.message==Y.message;case S:case M:return z==Y+"";case E:var Q=i;case x:var J=X&u;if(Q||(Q=l),z.size!=Y.size&&!J)return!1;var me=re.get(z);if(me)return me==Y;X|=f,re.set(z,Y);var ce=n(Q(z),Q(Y),X,he,j,re);return re.delete(z),ce;case w:if(H)return H.call(z)==H.call(Y)}return!1}return hg=q,hg}var pg,hb;function hP(){if(hb)return pg;hb=1;function r(e,t){for(var n=-1,i=t.length,l=e.length;++n<i;)e[l+n]=t[n];return e}return pg=r,pg}var gg,pb;function zm(){if(pb)return gg;pb=1;var r=Array.isArray;return gg=r,gg}var mg,gb;function pP(){if(gb)return mg;gb=1;var r=hP(),e=zm();function t(n,i,l){var u=i(n);return e(n)?u:r(u,l(n))}return mg=t,mg}var vg,mb;function gP(){if(mb)return vg;mb=1;function r(e,t){for(var n=-1,i=e==null?0:e.length,l=0,u=[];++n<i;){var f=e[n];t(f,n,e)&&(u[l++]=f)}return u}return vg=r,vg}var yg,vb;function mP(){if(vb)return yg;vb=1;function r(){return[]}return yg=r,yg}var bg,yb;function vP(){if(yb)return bg;yb=1;var r=gP(),e=mP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(f){return n.call(u,f)}))}:e;return bg=l,bg}var _g,bb;function yP(){if(bb)return _g;bb=1;function r(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}return _g=r,_g}var xg,_b;function Sh(){if(_b)return xg;_b=1;function r(e){return e!=null&&typeof e=="object"}return xg=r,xg}var Sg,xb;function bP(){if(xb)return Sg;xb=1;var r=bh(),e=Sh(),t="[object Arguments]";function n(i){return e(i)&&r(i)==t}return Sg=n,Sg}var Cg,Sb;function _P(){if(Sb)return Cg;Sb=1;var r=bP(),e=Sh(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(u){return e(u)&&n.call(u,"callee")&&!i.call(u,"callee")};return Cg=l,Cg}var qf={exports:{}},wg,Cb;function xP(){if(Cb)return wg;Cb=1;function r(){return!1}return wg=r,wg}qf.exports;var wb;function cS(){return wb||(wb=1,function(r,e){var t=ul(),n=xP(),i=e&&!e.nodeType&&e,l=i&&!0&&r&&!r.nodeType&&r,u=l&&l.exports===i,f=u?t.Buffer:void 0,g=f?f.isBuffer:void 0,m=g||n;r.exports=m}(qf,qf.exports)),qf.exports}var Ag,Ab;function SP(){if(Ab)return Ag;Ab=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function t(n,i){var l=typeof n;return i=i??r,!!i&&(l=="number"||l!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return Ag=t,Ag}var Tg,Tb;function uS(){if(Tb)return Tg;Tb=1;var r=9007199254740991;function e(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=r}return Tg=e,Tg}var Eg,Eb;function CP(){if(Eb)return Eg;Eb=1;var r=bh(),e=uS(),t=Sh(),n="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",f="[object Error]",g="[object Function]",m="[object Map]",R="[object Number]",E="[object Object]",_="[object RegExp]",S="[object Set]",x="[object String]",M="[object WeakMap]",w="[object ArrayBuffer]",b="[object DataView]",I="[object Float32Array]",O="[object Float64Array]",H="[object Int8Array]",q="[object Int16Array]",z="[object Int32Array]",Y="[object Uint8Array]",fe="[object Uint8ClampedArray]",X="[object Uint16Array]",he="[object Uint32Array]",j={};j[I]=j[O]=j[H]=j[q]=j[z]=j[Y]=j[fe]=j[X]=j[he]=!0,j[n]=j[i]=j[w]=j[l]=j[b]=j[u]=j[f]=j[g]=j[m]=j[R]=j[E]=j[_]=j[S]=j[x]=j[M]=!1;function re(Q){return t(Q)&&e(Q.length)&&!!j[r(Q)]}return Eg=re,Eg}var kg,kb;function wP(){if(kb)return kg;kb=1;function r(e){return function(t){return e(t)}}return kg=r,kg}var zf={exports:{}};zf.exports;var Rb;function AP(){return Rb||(Rb=1,function(r,e){var t=nS(),n=e&&!e.nodeType&&e,i=n&&!0&&r&&!r.nodeType&&r,l=i&&i.exports===n,u=l&&t.process,f=function(){try{var g=i&&i.require&&i.require("util").types;return g||u&&u.binding&&u.binding("util")}catch{}}();r.exports=f}(zf,zf.exports)),zf.exports}var Rg,Ib;function fS(){if(Ib)return Rg;Ib=1;var r=CP(),e=wP(),t=AP(),n=t&&t.isTypedArray,i=n?e(n):r;return Rg=i,Rg}var Ig,Lb;function TP(){if(Lb)return Ig;Lb=1;var r=yP(),e=_P(),t=zm(),n=cS(),i=SP(),l=fS(),u=Object.prototype,f=u.hasOwnProperty;function g(m,R){var E=t(m),_=!E&&e(m),S=!E&&!_&&n(m),x=!E&&!_&&!S&&l(m),M=E||_||S||x,w=M?r(m.length,String):[],b=w.length;for(var I in m)(R||f.call(m,I))&&!(M&&(I=="length"||S&&(I=="offset"||I=="parent")||x&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||i(I,b)))&&w.push(I);return w}return Ig=g,Ig}var Lg,Mb;function EP(){if(Mb)return Lg;Mb=1;var r=Object.prototype;function e(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||r;return t===i}return Lg=e,Lg}var Mg,Db;function kP(){if(Db)return Mg;Db=1;function r(e,t){return function(n){return e(t(n))}}return Mg=r,Mg}var Dg,Ob;function RP(){if(Ob)return Dg;Ob=1;var r=kP(),e=r(Object.keys,Object);return Dg=e,Dg}var Og,Pb;function IP(){if(Pb)return Og;Pb=1;var r=EP(),e=RP(),t=Object.prototype,n=t.hasOwnProperty;function i(l){if(!r(l))return e(l);var u=[];for(var f in Object(l))n.call(l,f)&&f!="constructor"&&u.push(f);return u}return Og=i,Og}var Pg,Nb;function LP(){if(Nb)return Pg;Nb=1;var r=oS(),e=uS();function t(n){return n!=null&&e(n.length)&&!r(n)}return Pg=t,Pg}var Ng,Fb;function MP(){if(Fb)return Ng;Fb=1;var r=TP(),e=IP(),t=LP();function n(i){return t(i)?r(i):e(i)}return Ng=n,Ng}var Fg,jb;function DP(){if(jb)return Fg;jb=1;var r=pP(),e=vP(),t=MP();function n(i){return r(i,t,e)}return Fg=n,Fg}var jg,Bb;function OP(){if(Bb)return jg;Bb=1;var r=DP(),e=1,t=Object.prototype,n=t.hasOwnProperty;function i(l,u,f,g,m,R){var E=f&e,_=r(l),S=_.length,x=r(u),M=x.length;if(S!=M&&!E)return!1;for(var w=S;w--;){var b=_[w];if(!(E?b in u:n.call(u,b)))return!1}var I=R.get(l),O=R.get(u);if(I&&O)return I==u&&O==l;var H=!0;R.set(l,u),R.set(u,l);for(var q=E;++w<S;){b=_[w];var z=l[b],Y=u[b];if(g)var fe=E?g(Y,z,b,u,l,R):g(z,Y,b,l,u,R);if(!(fe===void 0?z===Y||m(z,Y,f,g,R):fe)){H=!1;break}q||(q=b=="constructor")}if(H&&!q){var X=l.constructor,he=u.constructor;X!=he&&"constructor"in l&&"constructor"in u&&!(typeof X=="function"&&X instanceof X&&typeof he=="function"&&he instanceof he)&&(H=!1)}return R.delete(l),R.delete(u),H}return jg=i,jg}var Bg,Hb;function PP(){if(Hb)return Bg;Hb=1;var r=rf(),e=ul(),t=r(e,"DataView");return Bg=t,Bg}var Hg,qb;function NP(){if(qb)return Hg;qb=1;var r=rf(),e=ul(),t=r(e,"Promise");return Hg=t,Hg}var qg,zb;function FP(){if(zb)return qg;zb=1;var r=rf(),e=ul(),t=r(e,"Set");return qg=t,qg}var zg,$b;function jP(){if($b)return zg;$b=1;var r=rf(),e=ul(),t=r(e,"WeakMap");return zg=t,zg}var $g,Ub;function BP(){if(Ub)return $g;Ub=1;var r=PP(),e=qm(),t=NP(),n=FP(),i=jP(),l=bh(),u=sS(),f="[object Map]",g="[object Object]",m="[object Promise]",R="[object Set]",E="[object WeakMap]",_="[object DataView]",S=u(r),x=u(e),M=u(t),w=u(n),b=u(i),I=l;return(r&&I(new r(new ArrayBuffer(1)))!=_||e&&I(new e)!=f||t&&I(t.resolve())!=m||n&&I(new n)!=R||i&&I(new i)!=E)&&(I=function(O){var H=l(O),q=H==g?O.constructor:void 0,z=q?u(q):"";if(z)switch(z){case S:return _;case x:return f;case M:return m;case w:return R;case b:return E}return H}),$g=I,$g}var Ug,Wb;function HP(){if(Wb)return Ug;Wb=1;var r=nP(),e=lS(),t=dP(),n=OP(),i=BP(),l=zm(),u=cS(),f=fS(),g=1,m="[object Arguments]",R="[object Array]",E="[object Object]",_=Object.prototype,S=_.hasOwnProperty;function x(M,w,b,I,O,H){var q=l(M),z=l(w),Y=q?R:i(M),fe=z?R:i(w);Y=Y==m?E:Y,fe=fe==m?E:fe;var X=Y==E,he=fe==E,j=Y==fe;if(j&&u(M)){if(!u(w))return!1;q=!0,X=!1}if(j&&!X)return H||(H=new r),q||f(M)?e(M,w,b,I,O,H):t(M,w,Y,b,I,O,H);if(!(b&g)){var re=X&&S.call(M,"__wrapped__"),Q=he&&S.call(w,"__wrapped__");if(re||Q){var J=re?M.value():M,me=Q?w.value():w;return H||(H=new r),O(J,me,b,I,H)}}return j?(H||(H=new r),n(M,w,b,I,O,H)):!1}return Ug=x,Ug}var Wg,Vb;function qP(){if(Vb)return Wg;Vb=1;var r=HP(),e=Sh();function t(n,i,l,u,f){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:r(n,i,l,u,t,f)}return Wg=t,Wg}var Vg,Gb;function zP(){if(Gb)return Vg;Gb=1;var r=qP();function e(t,n){return r(t,n)}return Vg=e,Vg}var $P=zP();const Of=al($P);class Ch extends A.Component{constructor(e){super(e),this.editingAreaRef=A.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],this.state={generation:0},this.selection=null,this.onEditorChange=(n,i,l,u)=>{var f,g;n==="text-change"?(f=this.onEditorChangeText)==null||f.call(this,this.editor.root.innerHTML,i,u,this.unprivilegedEditor):n==="selection-change"&&((g=this.onEditorChangeSelection)==null||g.call(this,i,u,this.unprivilegedEditor))};const t=this.isControlled()?e.value:e.defaultValue;this.value=t??""}validateProps(e){if(A.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(A.Children.count(e.children)){const t=A.Children.only(e.children);if((t==null?void 0:t.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(e,t){if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){const n=this.getEditorContents(),i=e.value??"";this.isEqualValue(i,n)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[...this.cleanProps,...this.dirtyProps].some(n=>!Of(e[n],this.props[n]))}shouldComponentRegenerate(e){return this.dirtyProps.some(t=>!Of(e[t],this.props[t]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(e,t){if(this.editor&&this.shouldComponentRegenerate(e)){const n=this.editor.getContents(),i=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:i},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){const{delta:n,selection:i}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const l=this.editor;l.setContents(n),Zb(()=>this.setEditorSelection(l,i))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){this.editor&&this.unhookEditor(this.editor)}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(e,t){const n=new Ve(e,t);return t.tabIndex!=null&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}hookEditor(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}unhookEditor(e){e.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(e){return e&&e.ops}isEqualValue(e,t){return this.isDelta(e)&&this.isDelta(t)?Of(e.ops,t.ops):Of(e,t)}setEditorContents(e,t){this.value=t;const n=this.getEditorSelection();typeof t=="string"?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),Zb(()=>this.setEditorSelection(e,n))}setEditorSelection(e,t){if(this.selection=t,t){const n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}setEditorTabIndex(e,t){var n;(n=e==null?void 0:e.scroll)!=null&&n.domNode&&(e.scroll.domNode.tabIndex=t)}setEditorReadOnly(e,t){t?e.disable():e.enable()}makeUnprivilegedEditor(e){const t=e;return{getHTML:()=>t.root.innerHTML,getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}getEditingArea(){const e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(e.nodeType===3)throw new Error("Editing area cannot be a text node");return e}renderEditingArea(){const{children:e,preserveWhitespace:t}=this.props,{generation:n}=this.state,i={key:n,ref:this.editingAreaRef};return A.Children.count(e)?A.cloneElement(A.Children.only(e),i):t?A.createElement("pre",{...i}):A.createElement("div",{...i})}render(){return A.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}onEditorChangeText(e,t,n,i){var u,f;if(!this.editor)return;const l=this.isDelta(this.value)?i.getContents():i.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=l,(f=(u=this.props).onChange)==null||f.call(u,e,t,n,i))}onEditorChangeSelection(e,t,n){var f,g,m,R,E,_;if(!this.editor)return;const i=this.getEditorSelection(),l=!i&&e,u=i&&!e;Of(e,i)||(this.selection=e,(g=(f=this.props).onChangeSelection)==null||g.call(f,e,t,n),l?(R=(m=this.props).onFocus)==null||R.call(m,e,t,n):u&&((_=(E=this.props).onBlur)==null||_.call(E,i,t,n)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}}Ch.displayName="React Quill";Ch.Quill=Ve;Ch.defaultProps={theme:"snow",modules:{},readOnly:!1};function Zb(r){Promise.resolve().then(r)}const UP="_AEditorWrapper_1i771_1",WP="_AEditorContainer_1i771_7",VP="_AEditor_1i771_1",GP="_Primary_1i771_466",ZP="_ReadOnly_1i771_536",KP="_Raw_1i771_687",YP="_LimitContainer_1i771_701",XP="_Limit_1i771_701",JP="_Indicator_1i771_724",QP="_Resizer_1i771_733",jn={AEditorWrapper:UP,AEditorContainer:WP,AEditor:VP,Primary:GP,ReadOnly:ZP,Error:"_Error_1i771_613",Raw:KP,LimitContainer:YP,Limit:XP,Indicator:JP,Resizer:QP,"ql-tablepicker-row":"_ql-tablepicker-row_1i771_767","ql-tablepicker-cell":"_ql-tablepicker-cell_1i771_770","ql-tablepicker-grid":"_ql-tablepicker-grid_1i771_778","ql-tablepicker-inner-cell":"_ql-tablepicker-inner-cell_1i771_782","ql-tablepicker-options":"_ql-tablepicker-options_1i771_791","ql-tablepicker-tooltip":"_ql-tablepicker-tooltip_1i771_802","ql-tableui-options":"_ql-tableui-options_1i771_821","ql-tableui-options__item":"_ql-tableui-options__item_1i771_833","ql-tableui-options__item-icon":"_ql-tableui-options__item-icon_1i771_852","ql-tableui-options__item-text":"_ql-tableui-options__item-text_1i771_857","ql-tableui-helper":"_ql-tableui-helper_1i771_861","ql-tableui-helper__icon":"_ql-tableui-helper__icon_1i771_873","ql-tableui-helper__text":"_ql-tableui-helper__text_1i771_883"};class eN{constructor(e){dt(this,"quill");dt(this,"picker",null);dt(this,"tooltip",null);dt(this,"toolbar",null);dt(this,"tableButton",null);dt(this,"CONSTANTS",{MAX_ROWS:10,MAX_COLS:10,CELL_SIZE:18,SPACING:5,PICKER_PADDING:20});dt(this,"CLASSNAMES",{tooltip:jn["ql-tablepicker-tooltip"],grid:jn["ql-tablepicker-grid"],row:jn["ql-tablepicker-row"],cell:jn["ql-tablepicker-cell"],innerCell:jn["ql-tablepicker-inner-cell"],options:jn["ql-tablepicker-options"]});dt(this,"COLORS",{highlight:"var(--AEditor_Addon_hover_color)",normal:"var(--AEditor_Addon_Primary_background-color)",border:"1px solid var(--AEditor_Addon_Primary_color)"});dt(this,"boundHandlers",{globalClick:this.handleGlobalClick.bind(this),tableButtonClick:this.handleTableButtonClick.bind(this),gridMouseOver:this.handleGridMouseOver.bind(this),gridMouseOut:this.handleGridMouseOut.bind(this),gridClick:this.handleGridClick.bind(this),highlightReset:()=>this.highlightCells(0,0)});this.quill=e,this.initializeTablePicker(),document.addEventListener("click",this.boundHandlers.globalClick)}destroy(){document.removeEventListener("click",this.boundHandlers.globalClick),this.tableButton&&this.tableButton.removeEventListener("click",this.boundHandlers.tableButtonClick),this.hidePicker()}handleGlobalClick(e){if(!this.picker)return;const t=e.target;this.isTableButtonOrPicker(t)||this.hidePicker()}isTableButtonOrPicker(e){return!!e.closest("button.ql-table")||!!e.closest(`.${this.CLASSNAMES.options}`)}initializeTablePicker(){if(this.toolbar=this.quill.getModule("toolbar"),this.tableButton=this.toolbar.container.querySelector("button.ql-table"),!this.tableButton){console.warn("Table button not found");return}this.toolbar.handlers.table=()=>{},this.tableButton.addEventListener("click",this.boundHandlers.tableButtonClick)}handleTableButtonClick(e){if(e.preventDefault(),e.stopPropagation(),this.picker&&document.body.contains(this.picker)){this.hidePicker();return}this.showTablePicker(e.target)}createElement(e,t){const n=document.createElement("div");return n.className=e,t&&(n.textContent=t),n}showTablePicker(e){this.hidePicker(),this.closeOtherOptions();const t=e.closest("button.ql-table");t&&t.classList.add("ql-expanded"),this.createPicker(e)}closeOtherOptions(){document.querySelectorAll(".ql-picker.ql-expanded").forEach(e=>{e.classList.remove("ql-expanded")})}createPicker(e){const t=document.createDocumentFragment();this.picker=this.createElement(this.CLASSNAMES.options);const n=this.createGrid();t.appendChild(n),this.picker.appendChild(t),this.positionPicker(e),document.body.appendChild(this.picker),this.picker.addEventListener("mouseover",this.boundHandlers.gridMouseOver),this.picker.addEventListener("mouseout",this.boundHandlers.gridMouseOut),this.picker.addEventListener("click",this.boundHandlers.gridClick),this.picker.addEventListener("mouseleave",this.boundHandlers.highlightReset)}handleGridMouseOver(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.highlightCells(n+1,i+1),this.showTooltip(t,n+1,i+1)}handleGridMouseOut(e){var t;(t=this.picker)!=null&&t.contains(e.relatedTarget)||this.removeTooltip()}handleGridClick(e){const t=this.findTargetCell(e);if(!t)return;const[n,i]=this.getCellCoordinates(t);this.insertTable(n+1,i+1),this.removeTooltip(),this.hidePicker()}findTargetCell(e){return e.target.closest(`.${this.CLASSNAMES.cell}`)}getCellCoordinates(e){const t=parseInt(e.getAttribute("data-row")||"0",10),n=parseInt(e.getAttribute("data-col")||"0",10);return[t,n]}createGrid(){const e=this.createElement(this.CLASSNAMES.grid),t=document.createDocumentFragment(),{MAX_ROWS:n,MAX_COLS:i}=this.CONSTANTS;for(let l=0;l<n;l++){const u=this.createElement(this.CLASSNAMES.row);for(let f=0;f<i;f++){const g=this.createElement(this.CLASSNAMES.cell),m=this.createElement(this.CLASSNAMES.innerCell);g.setAttribute("data-row",l.toString()),g.setAttribute("data-col",f.toString()),g.appendChild(m),u.appendChild(g)}t.appendChild(u)}return e.appendChild(t),e}showTooltip(e,t,n){this.removeTooltip(),this.tooltip=this.createElement(this.CLASSNAMES.tooltip,`${t}×${n}`),document.body.appendChild(this.tooltip);const{top:i,left:l}=this.calculateTooltipPosition(e,this.tooltip);this.tooltip.style.top=`${i}px`,this.tooltip.style.left=`${l}px`}calculateTooltipPosition(e,t){const{SPACING:n}=this.CONSTANTS,i=e.getBoundingClientRect(),l=t.getBoundingClientRect(),u=this.getViewportMetrics();let f=i.top-l.height-n,g=i.left;return f<0&&(f=i.bottom+n),g+l.width>u.width&&(g=u.width-l.width-n),{top:f,left:g}}getViewportMetrics(){return{width:window.innerWidth,height:window.innerHeight,scrollTop:window.scrollY||document.documentElement.scrollTop,scrollLeft:window.scrollX||document.documentElement.scrollLeft}}removeTooltip(){this.tooltip&&(this.tooltip.remove(),this.tooltip=null)}positionPicker(e){if(!this.picker)return;const{CELL_SIZE:t,MAX_ROWS:n,MAX_COLS:i,PICKER_PADDING:l}=this.CONSTANTS,u=e.getBoundingClientRect(),f=this.getViewportMetrics(),g=t*n+l,m=t*i+l,R=this.isElementInViewport(u),{top:E,left:_}=this.calculatePickerPosition(u,R,{pickerWidth:m,pickerHeight:g,viewport:f});this.picker.style.top=`${E}px`,this.picker.style.left=`${_}px`}isElementInViewport(e){const t=this.getViewportMetrics();return e.top>=0&&e.left>=0&&e.bottom<=t.height&&e.right<=t.width}calculatePickerPosition(e,t,n){const{pickerWidth:i,pickerHeight:l,viewport:u}=n,{width:f,height:g,scrollTop:m,scrollLeft:R}=u;let E,_;if(t)E=e.bottom+m,_=e.left+R;else{const S=this.quill.getSelection();if(S){const x=this.quill.getBounds(S.index),M=this.quill.container.getBoundingClientRect();E=M.top+x.bottom+m,_=M.left+x.left+R}else E=(g-l)/2+m,_=(f-i)/2+R}return E+l>g+m&&(E=Math.max(m,E-l-(t?e.height:0))),_+i>f+R&&(_=Math.max(R,f+R-i)),{top:E,left:_}}highlightCells(e,t){if(!this.picker)return;const n=this.picker.querySelectorAll(`.${this.CLASSNAMES.innerCell}`),{NORMAL:i,HIGHLIGHT:l}={NORMAL:this.COLORS.normal,HIGHLIGHT:this.COLORS.highlight};for(let u=0;u<n.length;u++){const f=n[u],g=f.parentElement;if(!g)continue;const[m,R]=this.getCellCoordinates(g);f.style.backgroundColor=m<e&&R<t?l:i}}insertTable(e,t){const n=this.quill.getSelection(!0);if(!n)return;const[i]=this.quill.getLeaf(n.index);if(!i)return;this.prepareInsertionPoint(i,n);const l=this.quill.getModule("table");this.quill.setSelection(n.index,0),l.insertTable(e,t);const u=this.quill.root.querySelector("table:last-of-type");if(u){const f=u.querySelectorAll("td, th");for(let m=0;m<f.length;m++)f[m].style.border=this.COLORS.border;const g=this.quill.getSelection();g&&this.quill.setSelection(g.index,0)}}prepareInsertionPoint(e,t){const n=this.findTableParent(e.parent);if(n){const i=this.quill.getIndex(n)+n.length();this.quill.insertText(i,`
348
348
  `,"user"),this.quill.setSelection(i+1,0),t.index=i+1}else{const l=this.quill.getLine(t.index)[0];l&&l.length()>1?(this.quill.insertText(t.index,`
349
349
 
350
350
  `,"user"),t.index+=2):(this.quill.insertText(t.index,`
351
- `,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Ou={},Kb;function tN(){if(Kb)return Ou;Kb=1;var r=Hs;if(process.env.NODE_ENV==="production")Ou.createRoot=r.createRoot,Ou.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ou.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Ou.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Ou}var rN=tN();const Yb=al(rN);class nN{constructor(e,t){dt(this,"DEFAULTS",{maxRowCount:-1});dt(this,"quill");dt(this,"options");dt(this,"position",null);dt(this,"table");dt(this,"selectedCell",null);dt(this,"menuRoot",null);dt(this,"helperTextElement",null);dt(this,"scrollTimeout",null);dt(this,"SCROLL_DEBOUNCE_TIME",80);dt(this,"lastSelectedCellRef",null);dt(this,"boundDocClickHandler",this.hideMenu.bind(this));dt(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));dt(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));dt(this,"boundCopyHandler",this.copyHandler.bind(this));dt(this,"boundScrollHandler",this.handleScroll.bind(this));dt(this,"boundPasteHandler",this.pasteHandler.bind(this));dt(this,"menuItems",[]);dt(this,"positionCache",new Map);dt(this,"POSITION_CACHE_LIFETIME",1e3);dt(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColRight"})),title:hn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Ns.renderToString(v.jsx(jr,{icon:"Trash"})),title:hn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=jn["ql-tableui-helper"];const e=document.createElement("span");e.className=Fe.clsx("Caption1",jn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=jn["ql-tableui-helper__icon"],t.innerHTML=Ns.renderToString(v.jsx(jr,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=A.memo(({item:u,index:f})=>v.jsxs("div",{className:jn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:jn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:jn["ql-tableui-options__item-text"],children:u.title})]},f)),l=()=>v.jsx("div",{className:jn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,f)=>v.jsx(i,{item:u,index:f},f))});try{Yb.createRoot?(this.reactRoot=Yb.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):Hs.render(v.jsx(l,{}),this.menuRoot)}catch{Hs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const f=u.getBoundingClientRect();let g=e.bottom+window.scrollY,m=e.left+window.scrollX;m+f.width>t&&(m=e.right-f.width+window.scrollX),g+f.height>n+window.scrollY&&(g=e.top-f.height+window.scrollY),u.style.top=`${g}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):Hs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const f=this.quill.container.getBoundingClientRect(),g=i.getBoundingClientRect(),m={bottom:g.bottom-f.top,height:g.height,left:g.left-f.left,right:g.right-f.left,top:g.top-f.top,width:g.width,x:g.x,y:g.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let f=i.top-l.top-20;i.top<l.top&&(f=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${f}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const iN=()=>{const r=[1,2,3,!1,4],e=We.import("ui/icons");e.table=Ns.renderToString(v.jsx(jr,{icon:"Table",strokeWidth:2.5})),e.divider=Ns.renderToString(v.jsx(jr,{icon:"Minus",strokeWidth:2.5}));const t=We.import("blots/block/embed");class n extends t{static create(l){const u=super.create(l);return u.style.border="var(--AEditor_Addon_Primary_border)",u.style.borderBottom="none",u.style.transition="border var(--Transition)",u}}return dt(n,"blotName","divider"),dt(n,"tagName","hr"),We.register({"modules/imageCompress":wO,"modules/resize":kO,"modules/tablePicker":eN,"modules/tableUI":nN,"formats/header":lN(r),"formats/divider":n},!0),{header:r,FORMAT_DEFAULT:["bold","italic","underline","strike","blockquote","table","size","header","color","background","indent","list","align","image","link","video","divider"],FORMAT_TITLE:["bold","italic","underline","strike","color","background"],TOOLBAR_DEFAULT:[[{header:r}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],TOOLBAR_TITLE:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}};let Gg=null;const oN=()=>(Gg||(Gg=iN()),Gg),ls=r=>Array.from(r).length,sN=r=>r.ops?r.ops.reduce((e,t)=>typeof t.insert=="string"?e+t.insert.replace(/\n/g,"").split("").reduce((n,i)=>n+(i.charCodeAt(0)<=127?1:3),0):typeof t.insert=="object"&&t.insert.image?e+t.insert.image.length:e,0):0;function aN(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function lN(r){const e=We.import("formats/header");return e.whitelist=r,e}const cN=A.memo(r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:f,tabIndex:g,autoFocus:m,editorProps:R,wrapProps:E,helperText:_,label:S,labelProps:x,wrapType:M,style:w,minHeight:b,maxHeight:I,contentHeight:O,contentMaxHeight:H=1e3,toolbarSize:q="Med",toolbarType:z="Default",readOnly:Y,limitPosition:fe="Bottom",maxLength:X,editorClassName:he,editorStyle:j,...re}=r,Q=A.useMemo(()=>oN(),[]),J=A.useMemo(()=>n==="ReadOnly"||Y,[n,Y]),me=A.useMemo(()=>O?20:0,[O]),[ce,be]=A.useState(q==="Med"?40:50),ue=A.useMemo(()=>J?0:ce,[J,ce]),[Se,le]=A.useMemo(()=>X||!u||J||fe==="Top"?[0,0]:[20,6],[X,u,J,fe]),ae=A.useMemo(()=>Se+le,[Se,le]),[ge,Pe]=A.useState(O),[Qe,pe]=A.useState(!1),[Ie,Xe]=A.useState(!1),tt=A.useRef(null),Ge=A.useRef(0),Me=A.useRef(0),Ee=A.useMemo(()=>S?24:0,[S]),we=A.useMemo(()=>z==="Title"?!0:void 0,[z]),Ue=A.useMemo(()=>O||b||we,[O,b,we]),ct=A.useMemo(()=>Ue?"fit-content":I?I+Ee:`calc(100% - ${Ee}px)`,[Ue,I,Ee]),Ne=A.useMemo(()=>{if(O){if(ge)switch(n){case"ReadOnly":return ge;case"Raw":return ge+ae;default:return ge+ue+ae}}else return},[O,ge,n,ue,ae]),bt=A.useMemo(()=>{if(!(!I||I<=ue+ae))switch(n){case"ReadOnly":return I;case"Raw":return I-ae;default:return I-ue-ae}},[n,ue,ae,I]),Le=A.useMemo(()=>{if(b&&O){const $e=Math.min(b-ue-ae,O);return J?$e:$e+ue+ae}else return b||(O?void 0:`calc(100% - ${Ee}px)`)},[b,O,Ee,ue,ae,J]),Ze=A.useMemo(()=>aN(t)?"Error":n,[t,n]),[ot,Ct]=nn(l,""),[_t,wt]=nn(u,!1),[xt,it]=A.useState(()=>{if(!ot)return new Gt;const $e=document.createElement("div");return $e.innerHTML=ot,new We($e,{readOnly:!0}).getContents()}),je=A.useCallback(sN,[]),yt=A.useMemo(()=>Math.floor(5e4*.68234)*3,[]),st=A.useMemo(()=>v.jsx(uN,{calculateSize:je,error:_t,htmlDelta:xt,limit:yt,useError:u,isReadonly:J}),[je,_t,xt,J,yt,u]),Rt=A.useMemo(()=>({clipboard:{matchVisual:!1,...we&&{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>({})],["blockquote",()=>({})]]}},keyboard:we?{bindings:{Enter:{key:"Enter",handler:$e=>{if(e&&Ct){const De=$e.root.innerHTML;e(De)}return!1}}}}:{bindings:{}},imageCompress:{quality:.5},...!J&&{resize:{locale:{altTip:hn.AEditor["Image size adjust"],center:hn.AEditor.Center,floatLeft:hn.AEditor.floatLeft,floatRight:hn.AEditor.floatRight,inputTip:hn.AEditor["Input on mouse down"],restore:hn.AEditor.Restore}},...!we&&{table:!0,tablePicker:!0,tableUI:!0},toolbar:{container:we?Q.TOOLBAR_TITLE:Q.TOOLBAR_DEFAULT,handlers:{divider:function(){const $e=this.quill,De=$e.getSelection(!0);if(!De||we)return;const St=$e.getModule("table"),Et=St&&!!St.getTable(De)[0];Et||$e.insertText(De.index,`
352
- `,We.sources.USER);const ut=Et?0:1,Nt=Math.min(De.index+ut,$e.getLength()-1);$e.insertEmbed(Nt,"divider",!0,We.sources.USER),setTimeout(()=>{const Qt=Math.min(Nt+1,$e.getLength()-1);$e.setSelection(Qt,0,We.sources.SILENT)},0)}}}}}),[J,we,e,Ct,Q]),Bt=A.useCallback($e=>{if(!Qe||!O)return;const De=$e.clientY-Me.current,St=b?b-ue-ae:O,Et=Math.max(St,0),ut=I?I-ue-ae:H,Nt=Math.min(ut,Math.max(Et,Ge.current+De));ge!==Nt&&Pe(Nt),$e.preventDefault(),$e.stopPropagation()},[Qe,O,H,b,I,ue,ae,ge]),ze=A.useCallback($e=>{pe(!1),Xe(!1),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",ze),$e.preventDefault(),$e.stopPropagation()},[Bt]),Tt=A.useCallback($e=>{if(!O)return;if($e.detail===2){Pe(O);return}ge===void 0?(Pe(O),Ge.current=O):Ge.current=ge,pe(!0),Xe(!0),Me.current=$e.clientY;const De=Et=>{if(!O)return;const ut=Et.clientY-Me.current,Nt=b?b-ue-ae:O,Qt=Math.max(Nt,0),rr=I?I-ue-ae:H,Ft=Math.min(rr,Math.max(Qt,Ge.current+ut));Pe(Ft),Et.preventDefault(),Et.stopPropagation()},St=Et=>{pe(!1),Xe(!1),document.removeEventListener("mousemove",De),document.removeEventListener("mouseup",St),Et.preventDefault(),Et.stopPropagation()};document.addEventListener("mousemove",De),document.addEventListener("mouseup",St),$e.preventDefault(),$e.stopPropagation()},[O,ge,b,I,ue,ae,H]),Ht=A.useCallback(($e,De,St,Et)=>{var rr;if(!Ct)return;const ut=Et.getContents(),Nt=Et.getHTML(),Qt=((rr=ut.ops)==null?void 0:rr.length)===1&&ut.ops[0].insert===`
353
- `;wt&&wt(je(ut)>yt),Ct(Qt?"":Nt),it(ut)},[je,yt,wt,Ct]),_r=A.useMemo(()=>q==="Med"?7.5:12.5,[q]),kr=A.useCallback($e=>{var ut,Nt;const De=$e.getEditor().container;if(!De)return null;const St=(ut=De.closest(".AEditorContainer"))==null?void 0:ut.querySelector(".ql-toolbar");return St||((Nt=De.parentElement)==null?void 0:Nt.querySelector(".ql-toolbar"))||null},[]),Cr=A.useRef([]);A.useEffect(()=>()=>{Cr.current.forEach($e=>$e()),Cr.current=[]},[]);const ve=A.useCallback(($e,De,St,Et)=>{if(!$e)return;const ut=St;$e.addEventListener(De,ut,Et),Cr.current.push(()=>{$e.removeEventListener(De,ut,Et)})},[]),ne=A.useCallback($e=>{if(!$e)return;const De=$e.getEditor();if(!De)return;const St=De.root;St&&he&&St.classList.add(...he.split(" ")),St&&j&&Object.entries(j).forEach(([Ft,zt])=>{const nr=Ft.replace(/([A-Z])/g,et=>`-${et[0].toLowerCase()}`);St.style[nr]=zt});const Et={input:Ft=>{const zt=Ft.target;if(!zt)return;const nr=parseInt(zt.value,10);isNaN(nr)},keyDown:Ft=>{if(Ft.key!=="Delete"&&Ft.key!=="Backspace"&&Ft.key!=="Enter")return;const zt=document.querySelector("#editor-resizer");zt&&(zt.style.display="none")},formatExpand:Ft=>{const zt=De.getFormat(),nr=kr($e);nr&&Ft.forEach(et=>{if(zt[et]){const At=zt[et],vt=`.ql-${et}`,It=nr.querySelector(`${vt} .ql-picker-label`),pr=nr.querySelectorAll(`${vt} .ql-picker-item`),$=Array.from(pr).find(_e=>_e.getAttribute("data-value")===At);$&&($.classList.add("ql-selected"),It==null||It.classList.add("ql-active"))}})},resizeToolbar:Ft=>{if(!Ft.length)return;const et=Ft[0].target.getBoundingClientRect(),At=Math.ceil(et.height);be(vt=>Math.abs(vt-At)<.1?vt:At)}},ut=Ft=>{const zt=Ft.target;if(zt.tagName==="IMG")try{const nr=We.find(zt);if(nr){const et=De.getIndex(nr);queueMicrotask(()=>{De.setSelection(et,1,We.sources.USER)}),Ft.preventDefault(),Ft.stopPropagation()}}catch(nr){console.error("이미지 선택 중 오류:",nr)}},Nt=kr($e),Qt=new ResizeObserver(Et.resizeToolbar);Nt&&(Qt.observe(Nt),Cr.current.push(()=>Qt.disconnect()));const rr=["header","color","background"];return rr.forEach(Ft=>{const zt=Nt==null?void 0:Nt.querySelector(`.ql-${Ft} .ql-picker-label`);zt&&ve(zt,"click",()=>Et.formatExpand(rr))}),St&&(ve(St,"keydown",Et.keyDown),ve(St,"click",ut)),()=>{}},[kr,ve,he,j]),Je=A.useCallback($e=>{if(!$e||!X)return;const De=$e.getEditor();if(!De)return;let St=!1,Et="",ut=null,Nt=0;const Qt=zt=>zt.replace(/[\r\n\u2028\u2029]+/g," ").replace(/\s+/g," "),rr=zt=>{St||(ut&&window.cancelAnimationFrame(ut),ut=window.requestAnimationFrame(()=>{St=!0;try{zt()}finally{St=!1,ut=null}}))},Ft=[];if(we){const zt=It=>{if(It.key==="Enter")return It.preventDefault(),e&&e(De.root.innerHTML),!1},nr=()=>{const It=De.getText().slice(0,-1);if(It===Et)return;const pr=/[\r\n\u2028\u2029]/.test(It),$=ls(It)>X;if(pr||$){const _e=De.getSelection(),Ke=De.getFormat();Nt=_e?_e.index:0;let mt=It;if(pr&&(mt=Qt(mt)),$&&(mt=Array.from(mt).slice(0,X).join("")),mt!==It){const Pt=new Gt().insert(mt+`
351
+ `,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Ou={},Kb;function tN(){if(Kb)return Ou;Kb=1;var r=Hs;if(process.env.NODE_ENV==="production")Ou.createRoot=r.createRoot,Ou.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ou.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Ou.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Ou}var rN=tN();const Yb=al(rN);class nN{constructor(e,t){dt(this,"DEFAULTS",{maxRowCount:-1});dt(this,"quill");dt(this,"options");dt(this,"position",null);dt(this,"table");dt(this,"selectedCell",null);dt(this,"menuRoot",null);dt(this,"helperTextElement",null);dt(this,"scrollTimeout",null);dt(this,"SCROLL_DEBOUNCE_TIME",80);dt(this,"lastSelectedCellRef",null);dt(this,"boundDocClickHandler",this.hideMenu.bind(this));dt(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));dt(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));dt(this,"boundCopyHandler",this.copyHandler.bind(this));dt(this,"boundScrollHandler",this.handleScroll.bind(this));dt(this,"boundPasteHandler",this.pasteHandler.bind(this));dt(this,"menuItems",[]);dt(this,"positionCache",new Map);dt(this,"POSITION_CACHE_LIFETIME",1e3);dt(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColRight"})),title:hn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Ns.renderToString(v.jsx(jr,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Ns.renderToString(v.jsx(jr,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Ns.renderToString(v.jsx(jr,{icon:"Trash"})),title:hn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=jn["ql-tableui-helper"];const e=document.createElement("span");e.className=Fe.clsx("Caption1",jn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=jn["ql-tableui-helper__icon"],t.innerHTML=Ns.renderToString(v.jsx(jr,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=A.memo(({item:u,index:f})=>v.jsxs("div",{className:jn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:jn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:jn["ql-tableui-options__item-text"],children:u.title})]},f)),l=()=>v.jsx("div",{className:jn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,f)=>v.jsx(i,{item:u,index:f},f))});try{Yb.createRoot?(this.reactRoot=Yb.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):Hs.render(v.jsx(l,{}),this.menuRoot)}catch{Hs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const f=u.getBoundingClientRect();let g=e.bottom+window.scrollY,m=e.left+window.scrollX;m+f.width>t&&(m=e.right-f.width+window.scrollX),g+f.height>n+window.scrollY&&(g=e.top-f.height+window.scrollY),u.style.top=`${g}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):Hs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const f=this.quill.container.getBoundingClientRect(),g=i.getBoundingClientRect(),m={bottom:g.bottom-f.top,height:g.height,left:g.left-f.left,right:g.right-f.left,top:g.top-f.top,width:g.width,x:g.x,y:g.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let f=i.top-l.top-20;i.top<l.top&&(f=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${f}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const iN=()=>{const r=[1,2,3,!1,4],e=Ve.import("ui/icons");e.table=Ns.renderToString(v.jsx(jr,{icon:"Table",strokeWidth:2.5})),e.divider=Ns.renderToString(v.jsx(jr,{icon:"Minus",strokeWidth:2.5}));const t=Ve.import("blots/block/embed");class n extends t{static create(l){const u=super.create(l);return u.style.border="var(--AEditor_Addon_Primary_border)",u.style.borderBottom="none",u.style.transition="border var(--Transition)",u}}return dt(n,"blotName","divider"),dt(n,"tagName","hr"),Ve.register({"modules/imageCompress":wO,"modules/resize":kO,"modules/tablePicker":eN,"modules/tableUI":nN,"formats/header":lN(r),"formats/divider":n},!0),{header:r,FORMAT_DEFAULT:["bold","italic","underline","strike","blockquote","table","size","header","color","background","indent","list","align","image","link","video","divider"],FORMAT_TITLE:["bold","italic","underline","strike","color","background"],TOOLBAR_DEFAULT:[[{header:r}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],TOOLBAR_TITLE:[["bold","italic","underline","strike",{color:[]},{background:[]},"clean"]]}};let Gg=null;const oN=()=>(Gg||(Gg=iN()),Gg),ls=r=>Array.from(r).length,sN=r=>r.ops?r.ops.reduce((e,t)=>typeof t.insert=="string"?e+t.insert.replace(/\n/g,"").split("").reduce((n,i)=>n+(i.charCodeAt(0)<=127?1:3),0):typeof t.insert=="object"&&t.insert.image?e+t.insert.image.length:e,0):0;function aN(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function lN(r){const e=Ve.import("formats/header");return e.whitelist=r,e}const cN=A.memo(r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:f,tabIndex:g,autoFocus:m,editorProps:R,wrapProps:E,helperText:_,label:S,labelProps:x,wrapType:M,style:w,minHeight:b,maxHeight:I,contentHeight:O,contentMaxHeight:H=1e3,toolbarSize:q="Med",toolbarType:z="Default",readOnly:Y,limitPosition:fe="Bottom",maxLength:X,editorClassName:he,editorStyle:j,...re}=r,Q=A.useMemo(()=>oN(),[]),J=A.useMemo(()=>n==="ReadOnly"||Y,[n,Y]),me=A.useMemo(()=>O?20:0,[O]),[ce,be]=A.useState(q==="Med"?40:50),ue=A.useMemo(()=>J?0:ce,[J,ce]),[Se,le]=A.useMemo(()=>X||!u||J||fe==="Top"?[0,0]:[20,6],[X,u,J,fe]),ae=A.useMemo(()=>Se+le,[Se,le]),[ge,Pe]=A.useState(O),[Qe,pe]=A.useState(!1),[Ie,Xe]=A.useState(!1),tt=A.useRef(null),Ue=A.useRef(0),Me=A.useRef(0),Ee=A.useMemo(()=>S?24:0,[S]),we=A.useMemo(()=>z==="Title"?!0:void 0,[z]),We=A.useMemo(()=>O||b||we,[O,b,we]),ct=A.useMemo(()=>We?"fit-content":I?I+Ee:`calc(100% - ${Ee}px)`,[We,I,Ee]),Ne=A.useMemo(()=>{if(O){if(ge)switch(n){case"ReadOnly":return ge;case"Raw":return ge+ae;default:return ge+ue+ae}}else return},[O,ge,n,ue,ae]),bt=A.useMemo(()=>{if(!(!I||I<=ue+ae))switch(n){case"ReadOnly":return I;case"Raw":return I-ae;default:return I-ue-ae}},[n,ue,ae,I]),Le=A.useMemo(()=>{if(b&&O){const $e=Math.min(b-ue-ae,O);return J?$e:$e+ue+ae}else return b||(O?void 0:`calc(100% - ${Ee}px)`)},[b,O,Ee,ue,ae,J]),Ze=A.useMemo(()=>aN(t)?"Error":n,[t,n]),[ot,Ct]=nn(l,""),[_t,wt]=nn(u,!1),[xt,it]=A.useState(()=>{if(!ot)return new Gt;const $e=document.createElement("div");return $e.innerHTML=ot,new Ve($e,{readOnly:!0}).getContents()}),je=A.useCallback(sN,[]),yt=A.useMemo(()=>Math.floor(5e4*.68234)*3,[]),st=A.useMemo(()=>v.jsx(uN,{calculateSize:je,error:_t,htmlDelta:xt,limit:yt,useError:u,isReadonly:J}),[je,_t,xt,J,yt,u]),Rt=A.useMemo(()=>({clipboard:{matchVisual:!1,...we&&{matchers:[["img",()=>!1],["table",()=>!1],["iframe",()=>!1],["video",()=>!1],["h1, h2, h3, h4, h5, h6",()=>({})],["blockquote",()=>({})]]}},keyboard:we?{bindings:{Enter:{key:"Enter",handler:$e=>{if(e&&Ct){const De=$e.root.innerHTML;e(De)}return!1}}}}:{bindings:{}},imageCompress:{quality:.5},...!J&&{resize:{locale:{altTip:hn.AEditor["Image size adjust"],center:hn.AEditor.Center,floatLeft:hn.AEditor.floatLeft,floatRight:hn.AEditor.floatRight,inputTip:hn.AEditor["Input on mouse down"],restore:hn.AEditor.Restore}},...!we&&{table:!0,tablePicker:!0,tableUI:!0},toolbar:{container:we?Q.TOOLBAR_TITLE:Q.TOOLBAR_DEFAULT,handlers:{divider:function(){const $e=this.quill,De=$e.getSelection(!0);if(!De||we)return;const St=$e.getModule("table"),Et=St&&!!St.getTable(De)[0];Et||$e.insertText(De.index,`
352
+ `,Ve.sources.USER);const ut=Et?0:1,Nt=Math.min(De.index+ut,$e.getLength()-1);$e.insertEmbed(Nt,"divider",!0,Ve.sources.USER),setTimeout(()=>{const Qt=Math.min(Nt+1,$e.getLength()-1);$e.setSelection(Qt,0,Ve.sources.SILENT)},0)}}}}}),[J,we,e,Ct,Q]),Bt=A.useCallback($e=>{if(!Qe||!O)return;const De=$e.clientY-Me.current,St=b?b-ue-ae:O,Et=Math.max(St,0),ut=I?I-ue-ae:H,Nt=Math.min(ut,Math.max(Et,Ue.current+De));ge!==Nt&&Pe(Nt),$e.preventDefault(),$e.stopPropagation()},[Qe,O,H,b,I,ue,ae,ge]),ze=A.useCallback($e=>{pe(!1),Xe(!1),document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",ze),$e.preventDefault(),$e.stopPropagation()},[Bt]),Tt=A.useCallback($e=>{if(!O)return;if($e.detail===2){Pe(O);return}ge===void 0?(Pe(O),Ue.current=O):Ue.current=ge,pe(!0),Xe(!0),Me.current=$e.clientY;const De=Et=>{if(!O)return;const ut=Et.clientY-Me.current,Nt=b?b-ue-ae:O,Qt=Math.max(Nt,0),rr=I?I-ue-ae:H,Ft=Math.min(rr,Math.max(Qt,Ue.current+ut));Pe(Ft),Et.preventDefault(),Et.stopPropagation()},St=Et=>{pe(!1),Xe(!1),document.removeEventListener("mousemove",De),document.removeEventListener("mouseup",St),Et.preventDefault(),Et.stopPropagation()};document.addEventListener("mousemove",De),document.addEventListener("mouseup",St),$e.preventDefault(),$e.stopPropagation()},[O,ge,b,I,ue,ae,H]),Ht=A.useCallback(($e,De,St,Et)=>{var rr;if(!Ct)return;const ut=Et.getContents(),Nt=Et.getHTML(),Qt=((rr=ut.ops)==null?void 0:rr.length)===1&&ut.ops[0].insert===`
353
+ `;wt&&wt(je(ut)>yt),Ct(Qt?"":Nt),it(ut)},[je,yt,wt,Ct]),_r=A.useMemo(()=>q==="Med"?7.5:12.5,[q]),kr=A.useCallback($e=>{var ut,Nt;const De=$e.getEditor().container;if(!De)return null;const St=(ut=De.closest(".AEditorContainer"))==null?void 0:ut.querySelector(".ql-toolbar");return St||((Nt=De.parentElement)==null?void 0:Nt.querySelector(".ql-toolbar"))||null},[]),Cr=A.useRef([]);A.useEffect(()=>()=>{Cr.current.forEach($e=>$e()),Cr.current=[]},[]);const ve=A.useCallback(($e,De,St,Et)=>{if(!$e)return;const ut=St;$e.addEventListener(De,ut,Et),Cr.current.push(()=>{$e.removeEventListener(De,ut,Et)})},[]),ne=A.useCallback($e=>{if(!$e)return;const De=$e.getEditor();if(!De)return;const St=De.root;St&&he&&St.classList.add(...he.split(" ")),St&&j&&Object.entries(j).forEach(([Ft,zt])=>{const nr=Ft.replace(/([A-Z])/g,et=>`-${et[0].toLowerCase()}`);St.style[nr]=zt});const Et={input:Ft=>{const zt=Ft.target;if(!zt)return;const nr=parseInt(zt.value,10);isNaN(nr)},keyDown:Ft=>{if(Ft.key!=="Delete"&&Ft.key!=="Backspace"&&Ft.key!=="Enter")return;const zt=document.querySelector("#editor-resizer");zt&&(zt.style.display="none")},formatExpand:Ft=>{const zt=De.getFormat(),nr=kr($e);nr&&Ft.forEach(et=>{if(zt[et]){const At=zt[et],vt=`.ql-${et}`,It=nr.querySelector(`${vt} .ql-picker-label`),pr=nr.querySelectorAll(`${vt} .ql-picker-item`),$=Array.from(pr).find(_e=>_e.getAttribute("data-value")===At);$&&($.classList.add("ql-selected"),It==null||It.classList.add("ql-active"))}})},resizeToolbar:Ft=>{if(!Ft.length)return;const et=Ft[0].target.getBoundingClientRect(),At=Math.ceil(et.height);be(vt=>Math.abs(vt-At)<.1?vt:At)}},ut=Ft=>{const zt=Ft.target;if(zt.tagName==="IMG")try{const nr=Ve.find(zt);if(nr){const et=De.getIndex(nr);queueMicrotask(()=>{De.setSelection(et,1,Ve.sources.USER)}),Ft.preventDefault(),Ft.stopPropagation()}}catch(nr){console.error("이미지 선택 중 오류:",nr)}},Nt=kr($e),Qt=new ResizeObserver(Et.resizeToolbar);Nt&&(Qt.observe(Nt),Cr.current.push(()=>Qt.disconnect()));const rr=["header","color","background"];return rr.forEach(Ft=>{const zt=Nt==null?void 0:Nt.querySelector(`.ql-${Ft} .ql-picker-label`);zt&&ve(zt,"click",()=>Et.formatExpand(rr))}),St&&(ve(St,"keydown",Et.keyDown),ve(St,"click",ut)),()=>{}},[kr,ve,he,j]),Je=A.useCallback($e=>{if(!$e||!X)return;const De=$e.getEditor();if(!De)return;let St=!1,Et="",ut=null,Nt=0;const Qt=zt=>zt.replace(/[\r\n\u2028\u2029]+/g," ").replace(/\s+/g," "),rr=zt=>{St||(ut&&window.cancelAnimationFrame(ut),ut=window.requestAnimationFrame(()=>{St=!0;try{zt()}finally{St=!1,ut=null}}))},Ft=[];if(we){const zt=It=>{if(It.key==="Enter")return It.preventDefault(),e&&e(De.root.innerHTML),!1},nr=()=>{const It=De.getText().slice(0,-1);if(It===Et)return;const pr=/[\r\n\u2028\u2029]/.test(It),$=ls(It)>X;if(pr||$){const _e=De.getSelection(),Ke=De.getFormat();Nt=_e?_e.index:0;let mt=It;if(pr&&(mt=Qt(mt)),$&&(mt=Array.from(mt).slice(0,X).join("")),mt!==It){const Pt=new Gt().insert(mt+`
354
354
  `);De.setContents(Pt),Object.keys(Ke).length>0&&De.formatText(0,mt.length,Ke);const Wt=Math.min(Nt,mt.length);De.setSelection(Wt,0)}Et=mt}else Et=It},et=It=>{It.preventDefault();const pr=It.clipboardData;if(!pr)return;const $=De.getSelection();if(!$)return;const _e=De.getText().slice(0,-1),Ke=$.index>0?_e.substring(0,$.index):"",mt=$.index+$.length<_e.length?_e.substring($.index+$.length):"",Pt=Qt(pr.getData("text/plain")),Wt=Ke+Pt+mt;if(ls(Wt)<=X)$.length>0&&De.deleteText($.index,$.length),De.insertText($.index,Pt),De.setSelection($.index+ls(Pt),0);else{const $t=X-(ls(Ke)+ls(mt));if($t<=0)return;const ir=Array.from(Pt).slice(0,$t).join("");De.updateContents(new Gt().retain($.index).delete($.length).insert(ir)),De.setSelection($.index+ls(ir),0)}rr(()=>{const $t=De.getText().slice(0,-1);if(/[\r\n\u2028\u2029]/.test($t)){const ir=Qt($t),or=De.getFormat();De.setContents(new Gt().insert(ir+`
355
- `)),Object.keys(or).length>0&&De.formatText(0,ir.length,or);const fr=Math.min($.index+ls(Pt),ir.length);De.setSelection(fr,0),Et=ir}else Et=$t})},At=It=>{(It.inputType==="insertLineBreak"||It.inputType==="insertText"&&It.data&&/[\r\n\u2028\u2029]/.test(It.data))&&It.preventDefault()},vt=()=>{rr(nr)};ve(De.root,"keydown",zt),ve(De.root,"paste",et),ve(De.root,"beforeinput",At),De.on("text-change",vt),Ft.push(()=>{ve(De.root,"keydown",zt),ve(De.root,"paste",et),ve(De.root,"beforeinput",At),De.off("text-change",vt),ut&&window.cancelAnimationFrame(ut)}),rr(nr)}else{const zt=()=>{const It=De.getText();if(ls(It)-1<=X)return;const $=De.getSelection(),_e=De.getContents();Nt=$?$.index:0;let Ke=0,mt=0;for(const Lt of _e.ops||[])if(typeof Lt.insert=="string"){const $t=Array.from(Lt.insert);for(const ir of $t){if(Ke>=X)break;Ke++,mt+=ir.length}if(Ke>=X)break}else Lt.insert&&(Ke+=1);const Pt=It.substring(0,mt);De.setText(Pt);const Wt=Math.min(Nt,Pt.length);De.setSelection(Wt,0)},nr=(It,pr)=>{const $=De.getSelection();if(!$)return!0;const _e=De.getText(),Ke=ls(_e)-1,mt=$.length>0?ls(_e.substring($.index,$.index+$.length)):0,Pt=X-(Ke-mt);if(ls(pr)<=Pt)return!0;if(It.preventDefault(),It.type==="paste"){const Lt=$.index,$t=Array.from(pr).slice(0,Pt).join(""),ir=new Gt;$.length?ir.retain(Lt).delete($.length):ir.retain(Lt),ir.insert($t),De.updateContents(ir,We.sources.USER),requestAnimationFrame(()=>{const or=Lt+ls($t);or<=De.getLength()&&De.setSelection(or,0)})}return!1},et=()=>{rr(zt)},At=It=>{It.inputType.startsWith("insert")&&nr(It,It.data||"")},vt=It=>{const pr=It.clipboardData;if(pr){const $=Qt(pr.getData("text/plain"));nr(It,$)}};De.on("text-change",et),ve(De.root,"beforeinput",At,{capture:!0}),ve(De.root,"paste",vt,{capture:!0}),Ft.push(()=>{De.off("text-change",et),ve(De.root,"beforeinput",At,{capture:!0}),ve(De.root,"paste",vt,{capture:!0}),ut&&window.cancelAnimationFrame(ut)})}return()=>Ft.forEach(zt=>zt())},[X,we,e,ve]),pt=A.useCallback($e=>{typeof i=="function"?i($e):i&&(i.current=$e),$e&&(ne($e),Je($e))},[i,ne,Je]);return v.jsx(ec,{helperText:_,wrapType:M,labelProps:{...x,style:{minHeight:S?20:void 0,marginBottom:S?4:0}},errorMessage:t,label:v.jsxs(Sn,{style:{gap:4},children:[S,!X&&fe==="Top"&&st]}),wrapProps:{...E,className:Fe.clsx(E==null?void 0:E.className,!Ue&&jn.AEditorWrapper),style:{...E==null?void 0:E.style,height:ct}},children:v.jsxs($r,{...re,className:Fe.clsx(re.className,jn.AEditorContainer),style:{...w,height:Ne,minHeight:Le},children:[v.jsx(Ch,{...R,ref:pt,className:Fe.clsx(R==null?void 0:R.className,jn.AEditor,jn[Ze],we&&"Title"),formats:we?Q.FORMAT_TITLE:Q.FORMAT_DEFAULT,modules:Rt,placeholder:f,readOnly:J,theme:"snow",value:xt,style:{...R==null?void 0:R.style,maxHeight:bt?bt+ue:void 0,"--icon-size":`${q==="Med"?18:24}px`,"--editor-padding":we?"8px 12px":"12px","--toolbar-padding":`${_r}px`,"--content-height":we?"34px":ge?`${ge}px`:"100%","--content-max-height":bt?`${bt}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Ns.renderToString(v.jsx(jr,{icon:"EditorArrow"})))}`,"--title-color-picker-width":we?"780px":"142px"},onChange:Ht}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:tt,className:jn.Resizer,style:{height:me,bottom:u&&!J?ae:0},onMouseDown:Tt}),Ie&&v.jsx("div",{className:Fe.clsx(jn.Indicator,"NoSelect","Label1"),style:{height:me,bottom:u&&!J?ae:0},children:`${Math.round(ge)}px`})]}),v.jsx("div",{className:Fe.clsx(jn.LimitContainer,"NoSelect"),style:{marginTop:le,minHeight:Se,display:!X&&fe==="Bottom"?"flex":"none"},children:st})]})})},(r,e)=>r.errorMessage===e.errorMessage&&r.type===e.type&&r.useValue===e.useValue&&r.useError===e.useError&&r.placeholder===e.placeholder&&r.readOnly===e.readOnly&&r.maxLength===e.maxLength&&r.contentHeight===e.contentHeight&&r.minHeight===e.minHeight&&r.maxHeight===e.maxHeight&&r.toolbarSize===e.toolbarSize&&r.toolbarType===e.toolbarType&&r.limitPosition===e.limitPosition&&r.editorClassName===e.editorClassName&&r.editorStyle===e.editorStyle),uN=A.memo(({calculateSize:r,error:e,htmlDelta:t,limit:n,useError:i,isReadonly:l})=>{if(!i||l)return null;const u=r(t),f=e||u>n;return v.jsxs(Sa,{className:jn.Limit,children:["(",v.jsx("span",{className:f?jn.Error:void 0,children:Kc(u)})," / ",Kc(n),")"]})});function nh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=nh(t.children,e);if(n)return n}}function ud(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&ud(t.children,e)}function dS(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>t.push(e(n,i))),t}function hS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!hS(t.children,e))return!1}return!0}function fN(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function dN(r){Array.isArray(r)||(r=[r]);let e=0;return ud(r,()=>e++),e}function hN(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,e))}),l=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),f=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(f,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),f=i.children.findIndex(g=>n(g,t));return u===void 0||f===void 0?null:(i.children.splice(u,1),i.children.splice(f,0,e),i.children=[...i.children],[...r])}return null}function pN(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function gN(r,e,t){Array.isArray(r)||(r=[r]);const n=dS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const f=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(R=>t(R,u))});f&&l.push(f)}return i}const rl={find:nh,forEach:ud,map:dS,every:hS,filter:fN,length:dN,replace:hN,descendants:pN,ancestors:gN},mN="_AWrap_f5le3_1",vN="_AContainer_f5le3_10",yN="_ATree_f5le3_18",bN="_ATreeBody_f5le3_30",_N="_CoverBorder_f5le3_36",xN="_InsertBorder_f5le3_45",SN="_ATreeHeader_f5le3_76",CN="_ATreeBodyHeader_f5le3_82",wN="_ATreeBodyHeaderResources_f5le3_92",AN="_ATreeItem_f5le3_98",TN="_IsSelectUsed_f5le3_114",EN="_IsSelected_f5le3_117",kN="_IsSearchSelected_f5le3_122",RN="_IsHovered_f5le3_133",IN="_CheckBox_f5le3_137",LN="_Indents_f5le3_149",MN="_ExpandIcon_f5le3_156",DN="_Content_f5le3_168",ON="_RightSticky_f5le3_177",PN="_SearchInputWrap_f5le3_188",NN="_SearchInput_f5le3_188",FN="_RightAddon_f5le3_200",jN="_RightAddonIcon_f5le3_211",BN="_Loader_f5le3_218",dn={AWrap:mN,AContainer:vN,ATree:yN,ATreeBody:bN,CoverBorder:_N,InsertBorder:xN,ATreeHeader:SN,ATreeBodyHeader:CN,ATreeBodyHeaderResources:wN,ATreeItem:AN,IsSelectUsed:TN,IsSelected:EN,IsSearchSelected:kN,IsHovered:RN,CheckBox:IN,Indents:LN,ExpandIcon:MN,Content:DN,RightSticky:ON,SearchInputWrap:PN,SearchInput:NN,RightAddon:FN,RightAddonIcon:jN,Loader:BN},HN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:E,onDragOver:_,onDragEnd:S,showCheckbox:x,icons:M,iconWidth:w,isSelectMulti:b,isDraggable:I,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:Y,TreeItemRenderer:fe,RightStickyAddon:X,resources:he,containerRef:j,TreeItemStyle:re,TreeItemClassName:Q,searchItemStyle:J,searchItemClassName:me,height:ce}=r,{children:be}=A.useMemo(()=>t,[t]),[ue,Se]=A.useMemo(()=>g,[g]),[le,ae]=A.useMemo(()=>m,[m]),[ge,Pe]=A.useMemo(()=>R,[R]),Qe=A.useMemo(()=>i?i(t):!1,[i,t]),pe=A.useMemo(()=>!n||l?l:n(t),[n,l,t]),Ie=A.useMemo(()=>ue.some(ze=>e(ze,t)),[ue,e,t]),Xe=A.useMemo(()=>!be||be.length<1?"noChild":Ie?"expanded":"collapsed",[be,Ie]),tt=A.useMemo(()=>{const ze=M[Xe];return um.includes(ze)?v.jsx(jr,{style:{width:w,height:w},icon:ze}):ze},[M,w,Xe]),Ge=A.useCallback(ze=>{!Se||Xe==="noChild"||(Se(Ie?ue.filter(Tt=>!e(Tt,t)):[...ue,t]),ze.stopPropagation())},[Se,ue,Ie,t,e,Xe]),Me=A.useMemo(()=>le.some(ze=>e(ze,t)),[le,e,t]),Ee=A.useCallback(()=>{!ae||pe||(ae(b?Me?le.filter(ze=>!e(ze,t)):[...le,t]:[t]),ge&&Pe&&ge.items.some(ze=>e(ze,t))&&Pe({...ge,item:t}))},[b,pe,Me,ge,Pe,ae,e,le,t]),we=A.useMemo(()=>ge==null?void 0:ge.items.some(ze=>e(ze,t)),[ge,e,t]),Ue=A.useMemo(()=>we&&(ge==null?void 0:ge.item)&&e(ge.item,t),[we,ge,e,t]),ct=A.useRef(null);A.useEffect(()=>{setTimeout(()=>{if(Ue&&ct.current&&j.current){const{top:ze,bottom:Tt}=ct.current.getBoundingClientRect(),{top:Ht,bottom:_r}=j.current.getBoundingClientRect();(ze<Ht||Tt>_r)&&ct.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[j,Ue]);const[Ne,bt]=A.useState(!1),Le=A.useCallback(()=>!pe&&bt(!0),[pe]),Ze=A.useCallback(()=>!pe&&bt(!1),[pe]),ot=A.useMemo(()=>rl.map(t,ze=>ze).filter(ze=>!(n!=null&&n(ze))&&!(i!=null&&i(ze))),[n,i,t]),Ct=A.useMemo(()=>!x||!b?!1:Me&&ot.some(ze=>le.some(Tt=>e(ze,Tt)))&&ot.some(ze=>!le.some(Tt=>e(ze,Tt))),[x,b,Me,ot,e,le]),_t=A.useMemo(()=>x?b?ot.every(ze=>le.some(Tt=>e(ze,Tt))):le.some(ze=>e(ze,t)):!1,[x,b,ot,t,e,le]),wt=A.useCallback(()=>{if(!(!ae||pe))if(b)if(Me){const ze=le.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&ot.some(Ht=>e(Ht,Tt)));ze.length>0&&ae(le.filter(Tt=>!ze.some(Ht=>e(Tt,Ht))))}else{const ze=ot.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&!le.some(Ht=>e(Ht,Tt)));ze.length>0&&ae([...le,...ze])}else ae([t])},[pe,n,i,b,ae,e,Me,le,ot,t]),xt=A.useCallback(ze=>{pe||wt(),ze.stopPropagation()},[pe,wt]),it=A.useMemo(()=>{if(!x||!b||pe)return"";if(Me){const Tt=le.filter(Ht=>!(i!=null&&i(Ht))&&!(n!=null&&n(Ht))&&ot.some(_r=>e(_r,Ht)));if(Tt.length>0)return he["deselect n"](Tt.length)}const ze=ot.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&!le.some(Ht=>e(Ht,Tt)));return he["select n"](ze.length)},[n,i,he,pe,x,b,Me,ot,e,le]),je=A.useMemo(()=>Lr.getContent(X,r),[X,r]),yt=A.useMemo(()=>Lr.getContent(re,r),[r,re]),st=A.useMemo(()=>Lr.getContent(Q,r),[r,Q]),Rt=A.useMemo(()=>Lr.getContent(me,r),[r,me]),Bt=A.useMemo(()=>Lr.getContent(J,r),[r,J]);return v.jsxs(A.Fragment,{children:[v.jsxs($r,{className:Fe.clsx(dn.ATreeItem,Me&&dn.IsSelected,!pe&&(Ne||O)&&dn.IsHovered,we&&dn.IsSearched,Ue&&(Rt||dn.IsSearchSelected),!Qe&&dn.IsSelectUsed,"NoSelect",st),style:{...yt,...Ue&&Bt,"--ATreeItem_height":`${ce}px`},draggable:I,onDragStart:()=>E==null?void 0:E(t),onDragEnter:ze=>_==null?void 0:_(ze,t),onDragEnd:ze=>S==null?void 0:S(ze,t),onClick:Ee,abaseRef:ct,isDisabled:pe,onMouseOver:ze=>q==null?void 0:q(ze,t),onMouseLeave:ze=>z==null?void 0:z(ze,t),children:[x&&v.jsx(Zu,{style:{visibility:pe||Qe?"hidden":"visible",zIndex:pe||Qe?0:2},className:dn.CheckBox,useCheck:[+_t,wt],onClick:xt,isIndeterminate:Ct,onMouseOver:Le,onMouseOut:Ze,tooltip:it,isDisabled:pe}),v.jsx("div",{className:dn.Indents,style:{paddingLeft:x?0:r.icons.noChild?12:0},children:u.map((ze,Tt)=>{const Ht=Tt===u.length-1;return v.jsx(P2,{value:ze,map:{Collapsed:f?f({iconWidth:w}).collapsed:v.jsx(zN,{iconWidth:w}),Expanded:f?f({iconWidth:w,isLast:Ht}).expanded:v.jsx(qN,{iconWidth:w,isLast:Ht}),IsLast:f?f({iconWidth:w}).isLast:v.jsx($N,{iconWidth:w})}},Tt)})}),tt&&v.jsx("div",{className:dn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:Ge,children:tt}),v.jsx("div",{className:Fe.clsx(dn.Content,"NoSelect"),children:v.jsx(Y,{isEqual:e,item:t,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:E,onDragOver:_,onDragEnd:S,showCheckbox:x,icons:M,iconWidth:w,isSelectMulti:b,isDraggable:I,isParentCheckHovered:b&&(Ne||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:Y,TreeItemRenderer:fe,RightStickyAddon:X,resources:he,containerRef:j,TreeItemStyle:re,TreeItemClassName:Q,searchItemClassName:Rt,searchItemStyle:J,height:ce})}),je&&v.jsx("div",{className:dn.RightSticky,children:je})]}),Ie&&(be==null?void 0:be.map((ze,Tt)=>v.jsx(fe,{isEqual:e,item:ze,selectDisabled:n,selectUnused:i,indents:[...u.map(Ht=>Ht==="IsLast"?"Collapsed":Ht),Tt===be.length-1?"IsLast":"Expanded"],extIndents:f,ContentRenderer:Y,useExpand:g,useSelect:m,useSearch:R,onDragStart:E,onDragOver:_,onDragEnd:S,showCheckbox:x,icons:M,iconWidth:w,isSelectMulti:b,isDraggable:I,isParentCheckHovered:b&&(Ne||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,TreeItemRenderer:fe,RightStickyAddon:X,resources:he,containerRef:j,TreeItemStyle:re,TreeItemClassName:Q,searchItemClassName:Rt,searchItemStyle:J,height:ce},Tt)))]})},qN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),zN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),$N=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),UN=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:f,isLoading:g,resources:m,maxLength:R,autoFocus:E}=r,_=A.useCallback(M=>{M.key==="Enter"?u():M.key==="ArrowDown"?l():M.key==="ArrowUp"&&i(),M.preventDefault(),M.stopPropagation()},[l,u,i]),S=A.useCallback(M=>{n(M)},[n]),x=A.useMemo(()=>f||g?-1:void 0,[f,g]);return v.jsx(tc,{className:dn.SearchInput,wrapProps:{className:dn.SearchInputWrap},isDisabled:f,tabIndex:x,useValue:[(t==null?void 0:t.keyword)??"",S],onKeyDown:_,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(WN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:R,autoFocus:E})},WN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,f=A.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(x=>t.item&&e(x,t.item))+1,[t,e]),g=A.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=A.useMemo(()=>f<2,[f]),R=A.useMemo(()=>f>=g,[f,g]),E=A.useCallback(x=>{x.stopPropagation(),!m&&n()},[n,m]),_=A.useCallback(x=>{x.stopPropagation(),!R&&i()},[i,R]),S=A.useCallback(x=>{x.stopPropagation(),l()},[l]);return v.jsx("div",{className:Fe.clsx(dn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[f,"/",g,v.jsx($r,{onClick:E,isDisabled:m,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx($r,{onClick:_,isDisabled:R,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(_i,{type:"Raw",className:dn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:S,tooltip:u["Search(Button)"]})})},VN=r=>{var nr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:f,showCheckbox:g,iconWidth:m=24,icons:R={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:E,isSelectMulti:_=!1,noSearch:S=!1,isDraggable:x,noSyncSearchSelect:M=!1,actionRef:w,placeholder:b,searchPredicate:I=ZN,isDisabled:O,isLoading:H,ContentRenderer:q=GN,TreeItemRenderer:z=HN,RightStickyAddon:Y,TopRightAddon:fe,TreeTopAddon:X,resources:he,maxLength:j,autoFocus:re,TreeItemStyle:Q,TreeItemClassName:J,OverflowPadding:me,insertBorder:ce,width:be,searchItemClassName:ue,searchItemStyle:Se,height:le=40,...ae}=r,ge=A.useMemo(()=>({...hn.ATree,...he}),[he]),Pe=A.useCallback((et,At)=>e!==void 0?Array.isArray(e)?e.every(vt=>nl.isEqual(et[vt],At[vt])):nl.isEqual(et[e],At[e]):nl.isEqual(et,At),[e]),Qe=A.useRef(null),[pe,Ie]=nn(i,[]),Xe=A.useMemo(()=>rl.map(pe,et=>et),[pe]),[tt,Ge]=nn(l,[]),[Me,Ee]=nn(u,[]),[we,Ue]=nn(f,void 0),ct=A.useCallback(et=>{if(O||!Ge||tt.some(It=>Pe(It,et)))return;const At=[];let vt=et;for(;vt;){const It=vt;tt.find(pr=>Pe(pr,It))||At.push(It),vt=Xe.find(pr=>{var $;return($=pr.children)==null?void 0:$.some(_e=>Pe(_e,It))})}Ge([...tt,...At])},[tt,O,Pe,Ge,Xe]),Ne=A.useCallback(()=>{!Ge||O||Ge([...Xe])},[Xe,O,Ge]),bt=A.useCallback(()=>{!Ge||O||Ge([])},[Ge,O]),Le=A.useCallback(et=>{!Ee||O||n!=null&&n(et)||(Ee([et]),ct(et))},[Ee,O,n,ct]),Ze=A.useCallback(et=>{if(!Ue||O)return;if(!et||S){Ue(void 0),M||Ee==null||Ee([]);return}const At=rl.filter(pe,It=>I(et,It));let vt;if(At.find(It=>(we==null?void 0:we.item)&&Pe(It,we.item))?vt=we==null?void 0:we.item:At.length>0&&(vt=At[0]),Ue({keyword:et,items:At,item:vt}),vt&&ct(vt),Ee&&!M)if(_)Ee(At);else{const It=At.find(pr=>vt&&Pe(pr,vt));Ee(It?[It]:[])}},[pe,O,Pe,I,Ue,Ee,ct,M,S,_,we]),ot=A.useRef(!1);A.useEffect(()=>{ot.current=!0},[pe]),A.useEffect(()=>{we&&ot.current&&(Ze(we.keyword),ot.current=!1)},[Ze,we]);const Ct=A.useCallback(()=>{if(!we||!Ue||O)return;let et=we.items.findIndex(At=>we.item&&Pe(At,we.item))-1;et<0||(Ue({...we,item:we.items[et]}),ct(we.items[et]),M||Le(we.items[et]))},[we,ct,Ue,O,Le,Pe,M]),_t=A.useCallback(()=>{if(!we||!Ue||O)return;let et=we.items.findIndex(At=>we.item&&Pe(At,we.item))+1;et>=we.items.length||(Ue({...we,item:we.items[et]}),ct(we.items[et]),M||Le(we.items[et]))},[we,ct,O,Ue,Le,Pe,M]),wt=A.useCallback(()=>{if(!we||!Ue||O)return;let et=we.items.findIndex(vt=>we.item&&Pe(vt,we.item));if(!M||n!=null&&n(we.items[et])){_t();return}if(Me.some(vt=>we.item&&Pe(vt,we.item))){let vt=et+1;const It=we.items[vt];if(vt>=we.items.length)return;Ue({...we,item:It}),Le(It)}else Le(we.items[et])},[we,Ue,O,Me,M,_t,Pe,Le,n]),[xt,it]=A.useState(!1),je=A.useCallback(()=>it(!0),[]),yt=A.useCallback(()=>it(!1),[]),st=A.useMemo(()=>n?rl.map(pe,et=>et).filter(et=>!n(et)):t?rl.map(pe,et=>et).filter(et=>!t(et)):rl.map(pe,et=>et),[n,t,pe]),Rt=A.useMemo(()=>!g||!_?!1:Me.length>0&&st.length>Me.length,[g,_,Me,st]),Bt=A.useMemo(()=>!g||!_?!1:Me.length>0&&st.length===Me.length,[g,_,Me,st]),ze=A.useCallback(()=>{if(!Ee||!_||O)return;const et=Me.filter(At=>!(n!=null&&n(At))&&!(t!=null&&t(At))&&st.some(vt=>Pe(vt,At)));if(et.length>0)Ee(Me.filter(At=>!et.some(vt=>Pe(At,vt))));else{const At=st.filter(vt=>!(n!=null&&n(vt))&&!(t!=null&&t(vt))&&!Me.some(It=>Pe(It,vt)));At.length>0&&Ee([...Me,...At])}},[_,O,n,t,Ee,Me,st,Pe]),Tt=A.useMemo(()=>{if(!g||!_||O)return"";const et=Me.filter(At=>!(n!=null&&n(At))&&!(t!=null&&t(At))&&st.some(vt=>Pe(vt,At)));if(et.length>0)return ge["deselect n"](et.length);{const At=st.filter(vt=>!(n!=null&&n(vt))&&!(t!=null&&t(vt))&&!Me.some(It=>Pe(It,vt)));return ge["select n"](At.length)}},[n,t,O,ge,g,_,st,Me,Pe]),[Ht,_r]=A.useState(null),[kr,Cr]=A.useState(null),ve=A.useCallback(et=>{!x||O||_r(et)},[O,x]),ne=A.useCallback((et,At)=>{if(!x||O||!Ht||(et.preventDefault(),et.stopPropagation(),Cr(At),!Ie))return;const vt=rl.replace(pe,Ht,At,Pe);vt&&Ie(vt)},[x,pe,Ht,O,Ie,Pe]),Je=A.useCallback(()=>{if(!x||O||!Ht||!kr||!Ie||Pe(Ht,kr))return;const et=rl.replace(pe,Ht,kr,Pe);et&&(Ie(et),_r(null))},[x,Ie,pe,Ht,kr,Pe,O]);A.useEffect(()=>{var et;g||(et=Qe.current)==null||et.scrollTo(0,0)},[g,Qe]),A.useEffect(()=>{!_&&Me.length>1&&(Ee==null||Ee([Me[Me.length-1]]))},[_,Ee,Me]),A.useEffect(()=>{w&&(w.current={expandAll:Ne,collapseAll:bt})},[w,Ne,bt]),A.useEffect(()=>{if(!t||!Ee)return;const et=Me.filter(At=>!t(At));Me.length!==et.length&&Ee(et)},[t,Me,Ee]),A.useEffect(()=>{if(!n||!Ee)return;const et=Me.filter(At=>!n(At));Me.length!==et.length&&Ee(et)},[n,Me,Ee]),A.useEffect(()=>{Ue&&Ue(void 0)},[Ue]);const[pt,$e]=A.useState(!1);A.useEffect(()=>{$e(et=>!et)},[pe]);const[De,St]=A.useState(null),Et=A.useCallback((et,At)=>{O||(et.stopPropagation(),et.preventDefault(),St(At))},[O]),ut=A.useCallback((et,At)=>{De===null||O||Pe(At,De)&&(et.stopPropagation(),et.preventDefault(),St(null))},[De,O,Pe]),Nt=A.useRef(null),[Qt,rr]=A.useState(!1),[Ft,zt]=A.useState((nr=Nt.current)==null?void 0:nr.scrollHeight);return A.useEffect(()=>{if(tt.length<0)return;const et=Qe.current,At=Nt.current,vt=et.clientHeight<At.clientHeight;zt(vt?At.scrollHeight:et.clientHeight),rr(vt)},[tt]),v.jsxs($r,{...ae,isDisabled:O,className:Fe.clsx(ae.className,dn.AWrap),children:[(!S||fe)&&v.jsxs(Sn,{className:dn.ATreeHeader,children:[!S&&v.jsx(UN,{isEqual:Pe,searchResult:we,initSearch:Ze,searchUp:Ct,searchDown:_t,searchEnter:wt,isLoading:H,isDisabled:O,resources:ge,maxLength:j,autoFocus:re}),!S&&fe&&v.jsx(mn,{w:8}),fe]}),(!S||fe||g&&_||x)&&v.jsx(vm,{isLoading:H&&pe.length!==0}),(g&&_||x)&&v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Zu,{className:dn.CheckBox,useCheck:[+Bt,()=>ze()],isIndeterminate:Rt,onMouseOver:je,onMouseOut:yt,isDisabled:O,tooltip:Tt}),ge.Items,v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Qt?8:0},children:[v.jsx("span",{children:g&&ge["*Click row for single select"]}),v.jsx("span",{children:x&&ge["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Qe,className:Fe.clsx(ae.className,dn.AContainer),children:v.jsxs("div",{className:dn.ATree,style:{minWidth:be||"fit-content",marginRight:me&&Qt?8:0},children:[v.jsxs("div",{ref:Nt,className:dn.ATreeBody,children:[pe.length===0?H?v.jsx(KN,{text:ge["Loading Contents..."]}):b:X,pe.map((et,At)=>v.jsx(z,{isEqual:Pe,indents:[],extIndents:E,item:et,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[tt,Ge],useSelect:[Me,Ee],useSearch:[we,Ue],onDragStart:ve,onDragOver:ne,onDragEnd:Je,showCheckbox:g,icons:R,iconWidth:m,isSelectMulti:_,isDraggable:x,isParentCheckHovered:_&&xt,ContentRenderer:q,TreeItemRenderer:z,RightStickyAddon:Y,resources:ge,containerRef:Qe,TreeItemStyle:Q,TreeItemClassName:J,hoverdItem:De,onMouseOver:Et,onMouseLeave:ut,searchItemClassName:ue,searchItemStyle:Se,height:le},`${At}${pt}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:dn.CoverBorder}),v.jsx("div",{className:dn.InsertBorder,style:{"--InsertBorder_height":`${le}px`,height:Qt?Ft:"100%"}})]})]})})]})},GN=r=>{const{item:e}=r,t={};return er.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function ZN(r,e){return er.some(e,(t,n)=>{var i;return(i=er.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const KN=r=>{const{text:e}=r;return v.jsxs(Sn,{className:Fe.clsx(dn.Loader,"NoSelect"),children:[v.jsx(jr,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(V2,{text:e})]})};var Zg,Xb;function nf(){return Xb||(Xb=1,Zg=TypeError),Zg}const YN={},XN=Object.freeze(Object.defineProperty({__proto__:null,default:YN},Symbol.toStringTag,{value:"Module"})),JN=n4(XN);var Kg,Jb;function wh(){if(Jb)return Kg;Jb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,f=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,R=typeof WeakSet=="function"&&WeakSet.prototype,E=R?WeakSet.prototype.has:null,_=typeof WeakRef=="function"&&WeakRef.prototype,S=_?WeakRef.prototype.deref:null,x=Boolean.prototype.valueOf,M=Object.prototype.toString,w=Function.prototype.toString,b=String.prototype.match,I=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,z=RegExp.prototype.test,Y=Array.prototype.concat,fe=Array.prototype.join,X=Array.prototype.slice,he=Math.floor,j=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,J=typeof Symbol=="function"&&typeof Symbol.iterator=="object",me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===J||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,be=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ve){return ve.__proto__}:null);function ue(ve,ne){if(ve===1/0||ve===-1/0||ve!==ve||ve&&ve>-1e3&&ve<1e3||z.call(/e/,ne))return ne;var Je=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ve=="number"){var pt=ve<0?-he(-ve):he(ve);if(pt!==ve){var $e=String(pt),De=I.call(ne,$e.length+1);return O.call($e,Je,"$&_")+"."+O.call(O.call(De,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(ne,Je,"$&_")}var Se=JN,le=Se.custom,ae=ct(le)?le:null,ge={__proto__:null,double:'"',single:"'"},Pe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Kg=function ve(ne,Je,pt,$e){var De=Je||{};if(Le(De,"quoteStyle")&&!Le(ge,De.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Le(De,"maxStringLength")&&(typeof De.maxStringLength=="number"?De.maxStringLength<0&&De.maxStringLength!==1/0:De.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var St=Le(De,"customInspect")?De.customInspect:!0;if(typeof St!="boolean"&&St!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Le(De,"indent")&&De.indent!==null&&De.indent!==" "&&!(parseInt(De.indent,10)===De.indent&&De.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Le(De,"numericSeparator")&&typeof De.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Et=De.numericSeparator;if(typeof ne>"u")return"undefined";if(ne===null)return"null";if(typeof ne=="boolean")return ne?"true":"false";if(typeof ne=="string")return st(ne,De);if(typeof ne=="number"){if(ne===0)return 1/0/ne>0?"0":"-0";var ut=String(ne);return Et?ue(ne,ut):ut}if(typeof ne=="bigint"){var Nt=String(ne)+"n";return Et?ue(ne,Nt):Nt}var Qt=typeof De.depth>"u"?5:De.depth;if(typeof pt>"u"&&(pt=0),pt>=Qt&&Qt>0&&typeof ne=="object")return Xe(ne)?"[Array]":"[Object]";var rr=_r(De,pt);if(typeof $e>"u")$e=[];else if(Ct($e,ne)>=0)return"[Circular]";function Ft(or,fr,Ur){if(fr&&($e=X.call($e),$e.push(fr)),Ur){var vr={depth:De.depth};return Le(De,"quoteStyle")&&(vr.quoteStyle=De.quoteStyle),ve(or,vr,pt+1,$e)}return ve(or,De,pt+1,$e)}if(typeof ne=="function"&&!Ge(ne)){var zt=ot(ne),nr=Cr(ne,Ft);return"[Function"+(zt?": "+zt:" (anonymous)")+"]"+(nr.length>0?" { "+fe.call(nr,", ")+" }":"")}if(ct(ne)){var et=J?O.call(String(ne),/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(ne);return typeof ne=="object"&&!J?Bt(et):et}if(yt(ne)){for(var At="<"+q.call(String(ne.nodeName)),vt=ne.attributes||[],It=0;It<vt.length;It++)At+=" "+vt[It].name+"="+Qe(pe(vt[It].value),"double",De);return At+=">",ne.childNodes&&ne.childNodes.length&&(At+="..."),At+="</"+q.call(String(ne.nodeName))+">",At}if(Xe(ne)){if(ne.length===0)return"[]";var pr=Cr(ne,Ft);return rr&&!Ht(pr)?"["+kr(pr,rr)+"]":"[ "+fe.call(pr,", ")+" ]"}if(Me(ne)){var $=Cr(ne,Ft);return!("cause"in Error.prototype)&&"cause"in ne&&!ce.call(ne,"cause")?"{ ["+String(ne)+"] "+fe.call(Y.call("[cause]: "+Ft(ne.cause),$),", ")+" }":$.length===0?"["+String(ne)+"]":"{ ["+String(ne)+"] "+fe.call($,", ")+" }"}if(typeof ne=="object"&&St){if(ae&&typeof ne[ae]=="function"&&Se)return Se(ne,{depth:Qt-pt});if(St!=="symbol"&&typeof ne.inspect=="function")return ne.inspect()}if(_t(ne)){var _e=[];return n&&n.call(ne,function(or,fr){_e.push(Ft(fr,ne,!0)+" => "+Ft(or,ne))}),Tt("Map",t.call(ne),_e,rr)}if(it(ne)){var Ke=[];return f&&f.call(ne,function(or){Ke.push(Ft(or,ne))}),Tt("Set",u.call(ne),Ke,rr)}if(wt(ne))return ze("WeakMap");if(je(ne))return ze("WeakSet");if(xt(ne))return ze("WeakRef");if(we(ne))return Bt(Ft(Number(ne)));if(Ne(ne))return Bt(Ft(j.call(ne)));if(Ue(ne))return Bt(x.call(ne));if(Ee(ne))return Bt(Ft(String(ne)));if(typeof window<"u"&&ne===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ne===globalThis||typeof bi<"u"&&ne===bi)return"{ [object globalThis] }";if(!tt(ne)&&!Ge(ne)){var mt=Cr(ne,Ft),Pt=be?be(ne)===Object.prototype:ne instanceof Object||ne.constructor===Object,Wt=ne instanceof Object?"":"null prototype",Lt=!Pt&&me&&Object(ne)===ne&&me in ne?I.call(Ze(ne),8,-1):Wt?"Object":"",$t=Pt||typeof ne.constructor!="function"?"":ne.constructor.name?ne.constructor.name+" ":"",ir=$t+(Lt||Wt?"["+fe.call(Y.call([],Lt||[],Wt||[]),": ")+"] ":"");return mt.length===0?ir+"{}":rr?ir+"{"+kr(mt,rr)+"}":ir+"{ "+fe.call(mt,", ")+" }"}return String(ne)};function Qe(ve,ne,Je){var pt=Je.quoteStyle||ne,$e=ge[pt];return $e+ve+$e}function pe(ve){return O.call(String(ve),/"/g,"&quot;")}function Ie(ve){return!me||!(typeof ve=="object"&&(me in ve||typeof ve[me]<"u"))}function Xe(ve){return Ze(ve)==="[object Array]"&&Ie(ve)}function tt(ve){return Ze(ve)==="[object Date]"&&Ie(ve)}function Ge(ve){return Ze(ve)==="[object RegExp]"&&Ie(ve)}function Me(ve){return Ze(ve)==="[object Error]"&&Ie(ve)}function Ee(ve){return Ze(ve)==="[object String]"&&Ie(ve)}function we(ve){return Ze(ve)==="[object Number]"&&Ie(ve)}function Ue(ve){return Ze(ve)==="[object Boolean]"&&Ie(ve)}function ct(ve){if(J)return ve&&typeof ve=="object"&&ve instanceof Symbol;if(typeof ve=="symbol")return!0;if(!ve||typeof ve!="object"||!Q)return!1;try{return Q.call(ve),!0}catch{}return!1}function Ne(ve){if(!ve||typeof ve!="object"||!j)return!1;try{return j.call(ve),!0}catch{}return!1}var bt=Object.prototype.hasOwnProperty||function(ve){return ve in this};function Le(ve,ne){return bt.call(ve,ne)}function Ze(ve){return M.call(ve)}function ot(ve){if(ve.name)return ve.name;var ne=b.call(w.call(ve),/^function\s*([\w$]+)/);return ne?ne[1]:null}function Ct(ve,ne){if(ve.indexOf)return ve.indexOf(ne);for(var Je=0,pt=ve.length;Je<pt;Je++)if(ve[Je]===ne)return Je;return-1}function _t(ve){if(!t||!ve||typeof ve!="object")return!1;try{t.call(ve);try{u.call(ve)}catch{return!0}return ve instanceof Map}catch{}return!1}function wt(ve){if(!m||!ve||typeof ve!="object")return!1;try{m.call(ve,m);try{E.call(ve,E)}catch{return!0}return ve instanceof WeakMap}catch{}return!1}function xt(ve){if(!S||!ve||typeof ve!="object")return!1;try{return S.call(ve),!0}catch{}return!1}function it(ve){if(!u||!ve||typeof ve!="object")return!1;try{u.call(ve);try{t.call(ve)}catch{return!0}return ve instanceof Set}catch{}return!1}function je(ve){if(!E||!ve||typeof ve!="object")return!1;try{E.call(ve,E);try{m.call(ve,m)}catch{return!0}return ve instanceof WeakSet}catch{}return!1}function yt(ve){return!ve||typeof ve!="object"?!1:typeof HTMLElement<"u"&&ve instanceof HTMLElement?!0:typeof ve.nodeName=="string"&&typeof ve.getAttribute=="function"}function st(ve,ne){if(ve.length>ne.maxStringLength){var Je=ve.length-ne.maxStringLength,pt="... "+Je+" more character"+(Je>1?"s":"");return st(I.call(ve,0,ne.maxStringLength),ne)+pt}var $e=Pe[ne.quoteStyle||"single"];$e.lastIndex=0;var De=O.call(O.call(ve,$e,"\\$1"),/[\x00-\x1f]/g,Rt);return Qe(De,"single",ne)}function Rt(ve){var ne=ve.charCodeAt(0),Je={8:"b",9:"t",10:"n",12:"f",13:"r"}[ne];return Je?"\\"+Je:"\\x"+(ne<16?"0":"")+H.call(ne.toString(16))}function Bt(ve){return"Object("+ve+")"}function ze(ve){return ve+" { ? }"}function Tt(ve,ne,Je,pt){var $e=pt?kr(Je,pt):fe.call(Je,", ");return ve+" ("+ne+") {"+$e+"}"}function Ht(ve){for(var ne=0;ne<ve.length;ne++)if(Ct(ve[ne],`
355
+ `)),Object.keys(or).length>0&&De.formatText(0,ir.length,or);const fr=Math.min($.index+ls(Pt),ir.length);De.setSelection(fr,0),Et=ir}else Et=$t})},At=It=>{(It.inputType==="insertLineBreak"||It.inputType==="insertText"&&It.data&&/[\r\n\u2028\u2029]/.test(It.data))&&It.preventDefault()},vt=()=>{rr(nr)};ve(De.root,"keydown",zt),ve(De.root,"paste",et),ve(De.root,"beforeinput",At),De.on("text-change",vt),Ft.push(()=>{ve(De.root,"keydown",zt),ve(De.root,"paste",et),ve(De.root,"beforeinput",At),De.off("text-change",vt),ut&&window.cancelAnimationFrame(ut)}),rr(nr)}else{const zt=()=>{const It=De.getText();if(ls(It)-1<=X)return;const $=De.getSelection(),_e=De.getContents();Nt=$?$.index:0;let Ke=0,mt=0;for(const Lt of _e.ops||[])if(typeof Lt.insert=="string"){const $t=Array.from(Lt.insert);for(const ir of $t){if(Ke>=X)break;Ke++,mt+=ir.length}if(Ke>=X)break}else Lt.insert&&(Ke+=1);const Pt=It.substring(0,mt);De.setText(Pt);const Wt=Math.min(Nt,Pt.length);De.setSelection(Wt,0)},nr=(It,pr)=>{const $=De.getSelection();if(!$)return!0;const _e=De.getText(),Ke=ls(_e)-1,mt=$.length>0?ls(_e.substring($.index,$.index+$.length)):0,Pt=X-(Ke-mt);if(ls(pr)<=Pt)return!0;if(It.preventDefault(),It.type==="paste"){const Lt=$.index,$t=Array.from(pr).slice(0,Pt).join(""),ir=new Gt;$.length?ir.retain(Lt).delete($.length):ir.retain(Lt),ir.insert($t),De.updateContents(ir,Ve.sources.USER),requestAnimationFrame(()=>{const or=Lt+ls($t);or<=De.getLength()&&De.setSelection(or,0)})}return!1},et=()=>{rr(zt)},At=It=>{It.inputType.startsWith("insert")&&nr(It,It.data||"")},vt=It=>{const pr=It.clipboardData;if(pr){const $=Qt(pr.getData("text/plain"));nr(It,$)}};De.on("text-change",et),ve(De.root,"beforeinput",At,{capture:!0}),ve(De.root,"paste",vt,{capture:!0}),Ft.push(()=>{De.off("text-change",et),ve(De.root,"beforeinput",At,{capture:!0}),ve(De.root,"paste",vt,{capture:!0}),ut&&window.cancelAnimationFrame(ut)})}return()=>Ft.forEach(zt=>zt())},[X,we,e,ve]),pt=A.useCallback($e=>{typeof i=="function"?i($e):i&&(i.current=$e),$e&&(ne($e),Je($e))},[i,ne,Je]);return v.jsx(ec,{helperText:_,wrapType:M,labelProps:{...x,style:{minHeight:S?20:void 0,marginBottom:S?4:0}},errorMessage:t,label:v.jsxs(Sn,{style:{gap:4},children:[S,!X&&fe==="Top"&&st]}),wrapProps:{...E,className:Fe.clsx(E==null?void 0:E.className,!We&&jn.AEditorWrapper),style:{...E==null?void 0:E.style,height:ct}},children:v.jsxs($r,{...re,className:Fe.clsx(re.className,jn.AEditorContainer),style:{...w,height:Ne,minHeight:Le},children:[v.jsx(Ch,{...R,ref:pt,className:Fe.clsx(R==null?void 0:R.className,jn.AEditor,jn[Ze],we&&"Title"),formats:we?Q.FORMAT_TITLE:Q.FORMAT_DEFAULT,modules:Rt,placeholder:f,readOnly:J,theme:"snow",value:xt,style:{...R==null?void 0:R.style,maxHeight:bt?bt+ue:void 0,"--icon-size":`${q==="Med"?18:24}px`,"--editor-padding":we?"8px 12px":"12px","--toolbar-padding":`${_r}px`,"--content-height":we?"34px":ge?`${ge}px`:"100%","--content-max-height":bt?`${bt}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Ns.renderToString(v.jsx(jr,{icon:"EditorArrow"})))}`,"--title-color-picker-width":we?"780px":"142px"},onChange:Ht}),O&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:tt,className:jn.Resizer,style:{height:me,bottom:u&&!J?ae:0},onMouseDown:Tt}),Ie&&v.jsx("div",{className:Fe.clsx(jn.Indicator,"NoSelect","Label1"),style:{height:me,bottom:u&&!J?ae:0},children:`${Math.round(ge)}px`})]}),v.jsx("div",{className:Fe.clsx(jn.LimitContainer,"NoSelect"),style:{marginTop:le,minHeight:Se,display:!X&&fe==="Bottom"?"flex":"none"},children:st})]})})},(r,e)=>r.errorMessage===e.errorMessage&&r.type===e.type&&r.useValue===e.useValue&&r.useError===e.useError&&r.placeholder===e.placeholder&&r.readOnly===e.readOnly&&r.maxLength===e.maxLength&&r.contentHeight===e.contentHeight&&r.minHeight===e.minHeight&&r.maxHeight===e.maxHeight&&r.toolbarSize===e.toolbarSize&&r.toolbarType===e.toolbarType&&r.limitPosition===e.limitPosition&&r.editorClassName===e.editorClassName&&r.editorStyle===e.editorStyle),uN=A.memo(({calculateSize:r,error:e,htmlDelta:t,limit:n,useError:i,isReadonly:l})=>{if(!i||l)return null;const u=r(t),f=e||u>n;return v.jsxs(Sa,{className:jn.Limit,children:["(",v.jsx("span",{className:f?jn.Error:void 0,children:Kc(u)})," / ",Kc(n),")"]})});function nh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=nh(t.children,e);if(n)return n}}function ud(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&ud(t.children,e)}function dS(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>t.push(e(n,i))),t}function hS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!hS(t.children,e))return!1}return!0}function fN(r,e){Array.isArray(r)||(r=[r]);const t=[];return ud(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function dN(r){Array.isArray(r)||(r=[r]);let e=0;return ud(r,()=>e++),e}function hN(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,e))}),l=nh(r,u=>{var f;return(f=u.children)==null?void 0:f.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),f=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(f,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),f=i.children.findIndex(g=>n(g,t));return u===void 0||f===void 0?null:(i.children.splice(u,1),i.children.splice(f,0,e),i.children=[...i.children],[...r])}return null}function pN(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function gN(r,e,t){Array.isArray(r)||(r=[r]);const n=dS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const f=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(R=>t(R,u))});f&&l.push(f)}return i}const rl={find:nh,forEach:ud,map:dS,every:hS,filter:fN,length:dN,replace:hN,descendants:pN,ancestors:gN},mN="_AWrap_f5le3_1",vN="_AContainer_f5le3_10",yN="_ATree_f5le3_18",bN="_ATreeBody_f5le3_30",_N="_CoverBorder_f5le3_36",xN="_InsertBorder_f5le3_45",SN="_ATreeHeader_f5le3_76",CN="_ATreeBodyHeader_f5le3_82",wN="_ATreeBodyHeaderResources_f5le3_92",AN="_ATreeItem_f5le3_98",TN="_IsSelectUsed_f5le3_114",EN="_IsSelected_f5le3_117",kN="_IsSearchSelected_f5le3_122",RN="_IsHovered_f5le3_133",IN="_CheckBox_f5le3_137",LN="_Indents_f5le3_149",MN="_ExpandIcon_f5le3_156",DN="_Content_f5le3_168",ON="_RightSticky_f5le3_177",PN="_SearchInputWrap_f5le3_188",NN="_SearchInput_f5le3_188",FN="_RightAddon_f5le3_200",jN="_RightAddonIcon_f5le3_211",BN="_Loader_f5le3_218",dn={AWrap:mN,AContainer:vN,ATree:yN,ATreeBody:bN,CoverBorder:_N,InsertBorder:xN,ATreeHeader:SN,ATreeBodyHeader:CN,ATreeBodyHeaderResources:wN,ATreeItem:AN,IsSelectUsed:TN,IsSelected:EN,IsSearchSelected:kN,IsHovered:RN,CheckBox:IN,Indents:LN,ExpandIcon:MN,Content:DN,RightSticky:ON,SearchInputWrap:PN,SearchInput:NN,RightAddon:FN,RightAddonIcon:jN,Loader:BN},HN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:E,onDragOver:_,onDragEnd:S,showCheckbox:x,icons:M,iconWidth:w,isSelectMulti:b,isDraggable:I,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:Y,TreeItemRenderer:fe,RightStickyAddon:X,resources:he,containerRef:j,TreeItemStyle:re,TreeItemClassName:Q,searchItemStyle:J,searchItemClassName:me,height:ce}=r,{children:be}=A.useMemo(()=>t,[t]),[ue,Se]=A.useMemo(()=>g,[g]),[le,ae]=A.useMemo(()=>m,[m]),[ge,Pe]=A.useMemo(()=>R,[R]),Qe=A.useMemo(()=>i?i(t):!1,[i,t]),pe=A.useMemo(()=>!n||l?l:n(t),[n,l,t]),Ie=A.useMemo(()=>ue.some(ze=>e(ze,t)),[ue,e,t]),Xe=A.useMemo(()=>!be||be.length<1?"noChild":Ie?"expanded":"collapsed",[be,Ie]),tt=A.useMemo(()=>{const ze=M[Xe];return um.includes(ze)?v.jsx(jr,{style:{width:w,height:w},icon:ze}):ze},[M,w,Xe]),Ue=A.useCallback(ze=>{!Se||Xe==="noChild"||(Se(Ie?ue.filter(Tt=>!e(Tt,t)):[...ue,t]),ze.stopPropagation())},[Se,ue,Ie,t,e,Xe]),Me=A.useMemo(()=>le.some(ze=>e(ze,t)),[le,e,t]),Ee=A.useCallback(()=>{!ae||pe||(ae(b?Me?le.filter(ze=>!e(ze,t)):[...le,t]:[t]),ge&&Pe&&ge.items.some(ze=>e(ze,t))&&Pe({...ge,item:t}))},[b,pe,Me,ge,Pe,ae,e,le,t]),we=A.useMemo(()=>ge==null?void 0:ge.items.some(ze=>e(ze,t)),[ge,e,t]),We=A.useMemo(()=>we&&(ge==null?void 0:ge.item)&&e(ge.item,t),[we,ge,e,t]),ct=A.useRef(null);A.useEffect(()=>{setTimeout(()=>{if(We&&ct.current&&j.current){const{top:ze,bottom:Tt}=ct.current.getBoundingClientRect(),{top:Ht,bottom:_r}=j.current.getBoundingClientRect();(ze<Ht||Tt>_r)&&ct.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[j,We]);const[Ne,bt]=A.useState(!1),Le=A.useCallback(()=>!pe&&bt(!0),[pe]),Ze=A.useCallback(()=>!pe&&bt(!1),[pe]),ot=A.useMemo(()=>rl.map(t,ze=>ze).filter(ze=>!(n!=null&&n(ze))&&!(i!=null&&i(ze))),[n,i,t]),Ct=A.useMemo(()=>!x||!b?!1:Me&&ot.some(ze=>le.some(Tt=>e(ze,Tt)))&&ot.some(ze=>!le.some(Tt=>e(ze,Tt))),[x,b,Me,ot,e,le]),_t=A.useMemo(()=>x?b?ot.every(ze=>le.some(Tt=>e(ze,Tt))):le.some(ze=>e(ze,t)):!1,[x,b,ot,t,e,le]),wt=A.useCallback(()=>{if(!(!ae||pe))if(b)if(Me){const ze=le.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&ot.some(Ht=>e(Ht,Tt)));ze.length>0&&ae(le.filter(Tt=>!ze.some(Ht=>e(Tt,Ht))))}else{const ze=ot.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&!le.some(Ht=>e(Ht,Tt)));ze.length>0&&ae([...le,...ze])}else ae([t])},[pe,n,i,b,ae,e,Me,le,ot,t]),xt=A.useCallback(ze=>{pe||wt(),ze.stopPropagation()},[pe,wt]),it=A.useMemo(()=>{if(!x||!b||pe)return"";if(Me){const Tt=le.filter(Ht=>!(i!=null&&i(Ht))&&!(n!=null&&n(Ht))&&ot.some(_r=>e(_r,Ht)));if(Tt.length>0)return he["deselect n"](Tt.length)}const ze=ot.filter(Tt=>!(i!=null&&i(Tt))&&!(n!=null&&n(Tt))&&!le.some(Ht=>e(Ht,Tt)));return he["select n"](ze.length)},[n,i,he,pe,x,b,Me,ot,e,le]),je=A.useMemo(()=>Lr.getContent(X,r),[X,r]),yt=A.useMemo(()=>Lr.getContent(re,r),[r,re]),st=A.useMemo(()=>Lr.getContent(Q,r),[r,Q]),Rt=A.useMemo(()=>Lr.getContent(me,r),[r,me]),Bt=A.useMemo(()=>Lr.getContent(J,r),[r,J]);return v.jsxs(A.Fragment,{children:[v.jsxs($r,{className:Fe.clsx(dn.ATreeItem,Me&&dn.IsSelected,!pe&&(Ne||O)&&dn.IsHovered,we&&dn.IsSearched,We&&(Rt||dn.IsSearchSelected),!Qe&&dn.IsSelectUsed,"NoSelect",st),style:{...yt,...We&&Bt,"--ATreeItem_height":`${ce}px`},draggable:I,onDragStart:()=>E==null?void 0:E(t),onDragEnter:ze=>_==null?void 0:_(ze,t),onDragEnd:ze=>S==null?void 0:S(ze,t),onClick:Ee,abaseRef:ct,isDisabled:pe,onMouseOver:ze=>q==null?void 0:q(ze,t),onMouseLeave:ze=>z==null?void 0:z(ze,t),children:[x&&v.jsx(Zu,{style:{visibility:pe||Qe?"hidden":"visible",zIndex:pe||Qe?0:2},className:dn.CheckBox,useCheck:[+_t,wt],onClick:xt,isIndeterminate:Ct,onMouseOver:Le,onMouseOut:Ze,tooltip:it,isDisabled:pe}),v.jsx("div",{className:dn.Indents,style:{paddingLeft:x?0:r.icons.noChild?12:0},children:u.map((ze,Tt)=>{const Ht=Tt===u.length-1;return v.jsx(P2,{value:ze,map:{Collapsed:f?f({iconWidth:w}).collapsed:v.jsx(zN,{iconWidth:w}),Expanded:f?f({iconWidth:w,isLast:Ht}).expanded:v.jsx(qN,{iconWidth:w,isLast:Ht}),IsLast:f?f({iconWidth:w}).isLast:v.jsx($N,{iconWidth:w})}},Tt)})}),tt&&v.jsx("div",{className:dn.ExpandIcon,style:{width:w,minWidth:w,maxWidth:w},onClick:Ue,children:tt}),v.jsx("div",{className:Fe.clsx(dn.Content,"NoSelect"),children:v.jsx(Y,{isEqual:e,item:t,indents:u,extIndents:f,useExpand:g,useSelect:m,useSearch:R,onDragStart:E,onDragOver:_,onDragEnd:S,showCheckbox:x,icons:M,iconWidth:w,isSelectMulti:b,isDraggable:I,isParentCheckHovered:b&&(Ne||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,ContentRenderer:Y,TreeItemRenderer:fe,RightStickyAddon:X,resources:he,containerRef:j,TreeItemStyle:re,TreeItemClassName:Q,searchItemClassName:Rt,searchItemStyle:J,height:ce})}),je&&v.jsx("div",{className:dn.RightSticky,children:je})]}),Ie&&(be==null?void 0:be.map((ze,Tt)=>v.jsx(fe,{isEqual:e,item:ze,selectDisabled:n,selectUnused:i,indents:[...u.map(Ht=>Ht==="IsLast"?"Collapsed":Ht),Tt===be.length-1?"IsLast":"Expanded"],extIndents:f,ContentRenderer:Y,useExpand:g,useSelect:m,useSearch:R,onDragStart:E,onDragOver:_,onDragEnd:S,showCheckbox:x,icons:M,iconWidth:w,isSelectMulti:b,isDraggable:I,isParentCheckHovered:b&&(Ne||O),hoverdItem:H,onMouseOver:q,onMouseLeave:z,TreeItemRenderer:fe,RightStickyAddon:X,resources:he,containerRef:j,TreeItemStyle:re,TreeItemClassName:Q,searchItemClassName:Rt,searchItemStyle:J,height:ce},Tt)))]})},qN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),zN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),$N=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),UN=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:f,isLoading:g,resources:m,maxLength:R,autoFocus:E}=r,_=A.useCallback(M=>{M.key==="Enter"?u():M.key==="ArrowDown"?l():M.key==="ArrowUp"&&i(),M.preventDefault(),M.stopPropagation()},[l,u,i]),S=A.useCallback(M=>{n(M)},[n]),x=A.useMemo(()=>f||g?-1:void 0,[f,g]);return v.jsx(tc,{className:dn.SearchInput,wrapProps:{className:dn.SearchInputWrap},isDisabled:f,tabIndex:x,useValue:[(t==null?void 0:t.keyword)??"",S],onKeyDown:_,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(WN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:R,autoFocus:E})},WN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,f=A.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(x=>t.item&&e(x,t.item))+1,[t,e]),g=A.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=A.useMemo(()=>f<2,[f]),R=A.useMemo(()=>f>=g,[f,g]),E=A.useCallback(x=>{x.stopPropagation(),!m&&n()},[n,m]),_=A.useCallback(x=>{x.stopPropagation(),!R&&i()},[i,R]),S=A.useCallback(x=>{x.stopPropagation(),l()},[l]);return v.jsx("div",{className:Fe.clsx(dn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[f,"/",g,v.jsx($r,{onClick:E,isDisabled:m,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx($r,{onClick:_,isDisabled:R,children:v.jsx(jr,{className:dn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(_i,{type:"Raw",className:dn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:S,tooltip:u["Search(Button)"]})})},VN=r=>{var nr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:f,showCheckbox:g,iconWidth:m=24,icons:R={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:E,isSelectMulti:_=!1,noSearch:S=!1,isDraggable:x,noSyncSearchSelect:M=!1,actionRef:w,placeholder:b,searchPredicate:I=ZN,isDisabled:O,isLoading:H,ContentRenderer:q=GN,TreeItemRenderer:z=HN,RightStickyAddon:Y,TopRightAddon:fe,TreeTopAddon:X,resources:he,maxLength:j,autoFocus:re,TreeItemStyle:Q,TreeItemClassName:J,OverflowPadding:me,insertBorder:ce,width:be,searchItemClassName:ue,searchItemStyle:Se,height:le=40,...ae}=r,ge=A.useMemo(()=>({...hn.ATree,...he}),[he]),Pe=A.useCallback((et,At)=>e!==void 0?Array.isArray(e)?e.every(vt=>nl.isEqual(et[vt],At[vt])):nl.isEqual(et[e],At[e]):nl.isEqual(et,At),[e]),Qe=A.useRef(null),[pe,Ie]=nn(i,[]),Xe=A.useMemo(()=>rl.map(pe,et=>et),[pe]),[tt,Ue]=nn(l,[]),[Me,Ee]=nn(u,[]),[we,We]=nn(f,void 0),ct=A.useCallback(et=>{if(O||!Ue||tt.some(It=>Pe(It,et)))return;const At=[];let vt=et;for(;vt;){const It=vt;tt.find(pr=>Pe(pr,It))||At.push(It),vt=Xe.find(pr=>{var $;return($=pr.children)==null?void 0:$.some(_e=>Pe(_e,It))})}Ue([...tt,...At])},[tt,O,Pe,Ue,Xe]),Ne=A.useCallback(()=>{!Ue||O||Ue([...Xe])},[Xe,O,Ue]),bt=A.useCallback(()=>{!Ue||O||Ue([])},[Ue,O]),Le=A.useCallback(et=>{!Ee||O||n!=null&&n(et)||(Ee([et]),ct(et))},[Ee,O,n,ct]),Ze=A.useCallback(et=>{if(!We||O)return;if(!et||S){We(void 0),M||Ee==null||Ee([]);return}const At=rl.filter(pe,It=>I(et,It));let vt;if(At.find(It=>(we==null?void 0:we.item)&&Pe(It,we.item))?vt=we==null?void 0:we.item:At.length>0&&(vt=At[0]),We({keyword:et,items:At,item:vt}),vt&&ct(vt),Ee&&!M)if(_)Ee(At);else{const It=At.find(pr=>vt&&Pe(pr,vt));Ee(It?[It]:[])}},[pe,O,Pe,I,We,Ee,ct,M,S,_,we]),ot=A.useRef(!1);A.useEffect(()=>{ot.current=!0},[pe]),A.useEffect(()=>{we&&ot.current&&(Ze(we.keyword),ot.current=!1)},[Ze,we]);const Ct=A.useCallback(()=>{if(!we||!We||O)return;let et=we.items.findIndex(At=>we.item&&Pe(At,we.item))-1;et<0||(We({...we,item:we.items[et]}),ct(we.items[et]),M||Le(we.items[et]))},[we,ct,We,O,Le,Pe,M]),_t=A.useCallback(()=>{if(!we||!We||O)return;let et=we.items.findIndex(At=>we.item&&Pe(At,we.item))+1;et>=we.items.length||(We({...we,item:we.items[et]}),ct(we.items[et]),M||Le(we.items[et]))},[we,ct,O,We,Le,Pe,M]),wt=A.useCallback(()=>{if(!we||!We||O)return;let et=we.items.findIndex(vt=>we.item&&Pe(vt,we.item));if(!M||n!=null&&n(we.items[et])){_t();return}if(Me.some(vt=>we.item&&Pe(vt,we.item))){let vt=et+1;const It=we.items[vt];if(vt>=we.items.length)return;We({...we,item:It}),Le(It)}else Le(we.items[et])},[we,We,O,Me,M,_t,Pe,Le,n]),[xt,it]=A.useState(!1),je=A.useCallback(()=>it(!0),[]),yt=A.useCallback(()=>it(!1),[]),st=A.useMemo(()=>n?rl.map(pe,et=>et).filter(et=>!n(et)):t?rl.map(pe,et=>et).filter(et=>!t(et)):rl.map(pe,et=>et),[n,t,pe]),Rt=A.useMemo(()=>!g||!_?!1:Me.length>0&&st.length>Me.length,[g,_,Me,st]),Bt=A.useMemo(()=>!g||!_?!1:Me.length>0&&st.length===Me.length,[g,_,Me,st]),ze=A.useCallback(()=>{if(!Ee||!_||O)return;const et=Me.filter(At=>!(n!=null&&n(At))&&!(t!=null&&t(At))&&st.some(vt=>Pe(vt,At)));if(et.length>0)Ee(Me.filter(At=>!et.some(vt=>Pe(At,vt))));else{const At=st.filter(vt=>!(n!=null&&n(vt))&&!(t!=null&&t(vt))&&!Me.some(It=>Pe(It,vt)));At.length>0&&Ee([...Me,...At])}},[_,O,n,t,Ee,Me,st,Pe]),Tt=A.useMemo(()=>{if(!g||!_||O)return"";const et=Me.filter(At=>!(n!=null&&n(At))&&!(t!=null&&t(At))&&st.some(vt=>Pe(vt,At)));if(et.length>0)return ge["deselect n"](et.length);{const At=st.filter(vt=>!(n!=null&&n(vt))&&!(t!=null&&t(vt))&&!Me.some(It=>Pe(It,vt)));return ge["select n"](At.length)}},[n,t,O,ge,g,_,st,Me,Pe]),[Ht,_r]=A.useState(null),[kr,Cr]=A.useState(null),ve=A.useCallback(et=>{!x||O||_r(et)},[O,x]),ne=A.useCallback((et,At)=>{if(!x||O||!Ht||(et.preventDefault(),et.stopPropagation(),Cr(At),!Ie))return;const vt=rl.replace(pe,Ht,At,Pe);vt&&Ie(vt)},[x,pe,Ht,O,Ie,Pe]),Je=A.useCallback(()=>{if(!x||O||!Ht||!kr||!Ie||Pe(Ht,kr))return;const et=rl.replace(pe,Ht,kr,Pe);et&&(Ie(et),_r(null))},[x,Ie,pe,Ht,kr,Pe,O]);A.useEffect(()=>{var et;g||(et=Qe.current)==null||et.scrollTo(0,0)},[g,Qe]),A.useEffect(()=>{!_&&Me.length>1&&(Ee==null||Ee([Me[Me.length-1]]))},[_,Ee,Me]),A.useEffect(()=>{w&&(w.current={expandAll:Ne,collapseAll:bt})},[w,Ne,bt]),A.useEffect(()=>{if(!t||!Ee)return;const et=Me.filter(At=>!t(At));Me.length!==et.length&&Ee(et)},[t,Me,Ee]),A.useEffect(()=>{if(!n||!Ee)return;const et=Me.filter(At=>!n(At));Me.length!==et.length&&Ee(et)},[n,Me,Ee]),A.useEffect(()=>{We&&We(void 0)},[We]);const[pt,$e]=A.useState(!1);A.useEffect(()=>{$e(et=>!et)},[pe]);const[De,St]=A.useState(null),Et=A.useCallback((et,At)=>{O||(et.stopPropagation(),et.preventDefault(),St(At))},[O]),ut=A.useCallback((et,At)=>{De===null||O||Pe(At,De)&&(et.stopPropagation(),et.preventDefault(),St(null))},[De,O,Pe]),Nt=A.useRef(null),[Qt,rr]=A.useState(!1),[Ft,zt]=A.useState((nr=Nt.current)==null?void 0:nr.scrollHeight);return A.useEffect(()=>{if(tt.length<0)return;const et=Qe.current,At=Nt.current,vt=et.clientHeight<At.clientHeight;zt(vt?At.scrollHeight:et.clientHeight),rr(vt)},[tt]),v.jsxs($r,{...ae,isDisabled:O,className:Fe.clsx(ae.className,dn.AWrap),children:[(!S||fe)&&v.jsxs(Sn,{className:dn.ATreeHeader,children:[!S&&v.jsx(UN,{isEqual:Pe,searchResult:we,initSearch:Ze,searchUp:Ct,searchDown:_t,searchEnter:wt,isLoading:H,isDisabled:O,resources:ge,maxLength:j,autoFocus:re}),!S&&fe&&v.jsx(mn,{w:8}),fe]}),(!S||fe||g&&_||x)&&v.jsx(vm,{isLoading:H&&pe.length!==0}),(g&&_||x)&&v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Zu,{className:dn.CheckBox,useCheck:[+Bt,()=>ze()],isIndeterminate:Rt,onMouseOver:je,onMouseOut:yt,isDisabled:O,tooltip:Tt}),ge.Items,v.jsx(Qc,{}),v.jsxs("div",{className:Fe.clsx(dn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Qt?8:0},children:[v.jsx("span",{children:g&&ge["*Click row for single select"]}),v.jsx("span",{children:x&&ge["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Qe,className:Fe.clsx(ae.className,dn.AContainer),children:v.jsxs("div",{className:dn.ATree,style:{minWidth:be||"fit-content",marginRight:me&&Qt?8:0},children:[v.jsxs("div",{ref:Nt,className:dn.ATreeBody,children:[pe.length===0?H?v.jsx(KN,{text:ge["Loading Contents..."]}):b:X,pe.map((et,At)=>v.jsx(z,{isEqual:Pe,indents:[],extIndents:E,item:et,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[tt,Ue],useSelect:[Me,Ee],useSearch:[we,We],onDragStart:ve,onDragOver:ne,onDragEnd:Je,showCheckbox:g,icons:R,iconWidth:m,isSelectMulti:_,isDraggable:x,isParentCheckHovered:_&&xt,ContentRenderer:q,TreeItemRenderer:z,RightStickyAddon:Y,resources:ge,containerRef:Qe,TreeItemStyle:Q,TreeItemClassName:J,hoverdItem:De,onMouseOver:Et,onMouseLeave:ut,searchItemClassName:ue,searchItemStyle:Se,height:le},`${At}${pt}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:dn.CoverBorder}),v.jsx("div",{className:dn.InsertBorder,style:{"--InsertBorder_height":`${le}px`,height:Qt?Ft:"100%"}})]})]})})]})},GN=r=>{const{item:e}=r,t={};return er.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function ZN(r,e){return er.some(e,(t,n)=>{var i;return(i=er.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const KN=r=>{const{text:e}=r;return v.jsxs(Sn,{className:Fe.clsx(dn.Loader,"NoSelect"),children:[v.jsx(jr,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(V2,{text:e})]})};var Zg,Xb;function nf(){return Xb||(Xb=1,Zg=TypeError),Zg}const YN={},XN=Object.freeze(Object.defineProperty({__proto__:null,default:YN},Symbol.toStringTag,{value:"Module"})),JN=n4(XN);var Kg,Jb;function wh(){if(Jb)return Kg;Jb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,f=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,R=typeof WeakSet=="function"&&WeakSet.prototype,E=R?WeakSet.prototype.has:null,_=typeof WeakRef=="function"&&WeakRef.prototype,S=_?WeakRef.prototype.deref:null,x=Boolean.prototype.valueOf,M=Object.prototype.toString,w=Function.prototype.toString,b=String.prototype.match,I=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,z=RegExp.prototype.test,Y=Array.prototype.concat,fe=Array.prototype.join,X=Array.prototype.slice,he=Math.floor,j=typeof BigInt=="function"?BigInt.prototype.valueOf:null,re=Object.getOwnPropertySymbols,Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,J=typeof Symbol=="function"&&typeof Symbol.iterator=="object",me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===J||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,be=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ve){return ve.__proto__}:null);function ue(ve,ne){if(ve===1/0||ve===-1/0||ve!==ve||ve&&ve>-1e3&&ve<1e3||z.call(/e/,ne))return ne;var Je=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ve=="number"){var pt=ve<0?-he(-ve):he(ve);if(pt!==ve){var $e=String(pt),De=I.call(ne,$e.length+1);return O.call($e,Je,"$&_")+"."+O.call(O.call(De,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(ne,Je,"$&_")}var Se=JN,le=Se.custom,ae=ct(le)?le:null,ge={__proto__:null,double:'"',single:"'"},Pe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Kg=function ve(ne,Je,pt,$e){var De=Je||{};if(Le(De,"quoteStyle")&&!Le(ge,De.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Le(De,"maxStringLength")&&(typeof De.maxStringLength=="number"?De.maxStringLength<0&&De.maxStringLength!==1/0:De.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var St=Le(De,"customInspect")?De.customInspect:!0;if(typeof St!="boolean"&&St!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Le(De,"indent")&&De.indent!==null&&De.indent!==" "&&!(parseInt(De.indent,10)===De.indent&&De.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Le(De,"numericSeparator")&&typeof De.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Et=De.numericSeparator;if(typeof ne>"u")return"undefined";if(ne===null)return"null";if(typeof ne=="boolean")return ne?"true":"false";if(typeof ne=="string")return st(ne,De);if(typeof ne=="number"){if(ne===0)return 1/0/ne>0?"0":"-0";var ut=String(ne);return Et?ue(ne,ut):ut}if(typeof ne=="bigint"){var Nt=String(ne)+"n";return Et?ue(ne,Nt):Nt}var Qt=typeof De.depth>"u"?5:De.depth;if(typeof pt>"u"&&(pt=0),pt>=Qt&&Qt>0&&typeof ne=="object")return Xe(ne)?"[Array]":"[Object]";var rr=_r(De,pt);if(typeof $e>"u")$e=[];else if(Ct($e,ne)>=0)return"[Circular]";function Ft(or,fr,Ur){if(fr&&($e=X.call($e),$e.push(fr)),Ur){var vr={depth:De.depth};return Le(De,"quoteStyle")&&(vr.quoteStyle=De.quoteStyle),ve(or,vr,pt+1,$e)}return ve(or,De,pt+1,$e)}if(typeof ne=="function"&&!Ue(ne)){var zt=ot(ne),nr=Cr(ne,Ft);return"[Function"+(zt?": "+zt:" (anonymous)")+"]"+(nr.length>0?" { "+fe.call(nr,", ")+" }":"")}if(ct(ne)){var et=J?O.call(String(ne),/^(Symbol\(.*\))_[^)]*$/,"$1"):Q.call(ne);return typeof ne=="object"&&!J?Bt(et):et}if(yt(ne)){for(var At="<"+q.call(String(ne.nodeName)),vt=ne.attributes||[],It=0;It<vt.length;It++)At+=" "+vt[It].name+"="+Qe(pe(vt[It].value),"double",De);return At+=">",ne.childNodes&&ne.childNodes.length&&(At+="..."),At+="</"+q.call(String(ne.nodeName))+">",At}if(Xe(ne)){if(ne.length===0)return"[]";var pr=Cr(ne,Ft);return rr&&!Ht(pr)?"["+kr(pr,rr)+"]":"[ "+fe.call(pr,", ")+" ]"}if(Me(ne)){var $=Cr(ne,Ft);return!("cause"in Error.prototype)&&"cause"in ne&&!ce.call(ne,"cause")?"{ ["+String(ne)+"] "+fe.call(Y.call("[cause]: "+Ft(ne.cause),$),", ")+" }":$.length===0?"["+String(ne)+"]":"{ ["+String(ne)+"] "+fe.call($,", ")+" }"}if(typeof ne=="object"&&St){if(ae&&typeof ne[ae]=="function"&&Se)return Se(ne,{depth:Qt-pt});if(St!=="symbol"&&typeof ne.inspect=="function")return ne.inspect()}if(_t(ne)){var _e=[];return n&&n.call(ne,function(or,fr){_e.push(Ft(fr,ne,!0)+" => "+Ft(or,ne))}),Tt("Map",t.call(ne),_e,rr)}if(it(ne)){var Ke=[];return f&&f.call(ne,function(or){Ke.push(Ft(or,ne))}),Tt("Set",u.call(ne),Ke,rr)}if(wt(ne))return ze("WeakMap");if(je(ne))return ze("WeakSet");if(xt(ne))return ze("WeakRef");if(we(ne))return Bt(Ft(Number(ne)));if(Ne(ne))return Bt(Ft(j.call(ne)));if(We(ne))return Bt(x.call(ne));if(Ee(ne))return Bt(Ft(String(ne)));if(typeof window<"u"&&ne===window)return"{ [object Window] }";if(typeof globalThis<"u"&&ne===globalThis||typeof bi<"u"&&ne===bi)return"{ [object globalThis] }";if(!tt(ne)&&!Ue(ne)){var mt=Cr(ne,Ft),Pt=be?be(ne)===Object.prototype:ne instanceof Object||ne.constructor===Object,Wt=ne instanceof Object?"":"null prototype",Lt=!Pt&&me&&Object(ne)===ne&&me in ne?I.call(Ze(ne),8,-1):Wt?"Object":"",$t=Pt||typeof ne.constructor!="function"?"":ne.constructor.name?ne.constructor.name+" ":"",ir=$t+(Lt||Wt?"["+fe.call(Y.call([],Lt||[],Wt||[]),": ")+"] ":"");return mt.length===0?ir+"{}":rr?ir+"{"+kr(mt,rr)+"}":ir+"{ "+fe.call(mt,", ")+" }"}return String(ne)};function Qe(ve,ne,Je){var pt=Je.quoteStyle||ne,$e=ge[pt];return $e+ve+$e}function pe(ve){return O.call(String(ve),/"/g,"&quot;")}function Ie(ve){return!me||!(typeof ve=="object"&&(me in ve||typeof ve[me]<"u"))}function Xe(ve){return Ze(ve)==="[object Array]"&&Ie(ve)}function tt(ve){return Ze(ve)==="[object Date]"&&Ie(ve)}function Ue(ve){return Ze(ve)==="[object RegExp]"&&Ie(ve)}function Me(ve){return Ze(ve)==="[object Error]"&&Ie(ve)}function Ee(ve){return Ze(ve)==="[object String]"&&Ie(ve)}function we(ve){return Ze(ve)==="[object Number]"&&Ie(ve)}function We(ve){return Ze(ve)==="[object Boolean]"&&Ie(ve)}function ct(ve){if(J)return ve&&typeof ve=="object"&&ve instanceof Symbol;if(typeof ve=="symbol")return!0;if(!ve||typeof ve!="object"||!Q)return!1;try{return Q.call(ve),!0}catch{}return!1}function Ne(ve){if(!ve||typeof ve!="object"||!j)return!1;try{return j.call(ve),!0}catch{}return!1}var bt=Object.prototype.hasOwnProperty||function(ve){return ve in this};function Le(ve,ne){return bt.call(ve,ne)}function Ze(ve){return M.call(ve)}function ot(ve){if(ve.name)return ve.name;var ne=b.call(w.call(ve),/^function\s*([\w$]+)/);return ne?ne[1]:null}function Ct(ve,ne){if(ve.indexOf)return ve.indexOf(ne);for(var Je=0,pt=ve.length;Je<pt;Je++)if(ve[Je]===ne)return Je;return-1}function _t(ve){if(!t||!ve||typeof ve!="object")return!1;try{t.call(ve);try{u.call(ve)}catch{return!0}return ve instanceof Map}catch{}return!1}function wt(ve){if(!m||!ve||typeof ve!="object")return!1;try{m.call(ve,m);try{E.call(ve,E)}catch{return!0}return ve instanceof WeakMap}catch{}return!1}function xt(ve){if(!S||!ve||typeof ve!="object")return!1;try{return S.call(ve),!0}catch{}return!1}function it(ve){if(!u||!ve||typeof ve!="object")return!1;try{u.call(ve);try{t.call(ve)}catch{return!0}return ve instanceof Set}catch{}return!1}function je(ve){if(!E||!ve||typeof ve!="object")return!1;try{E.call(ve,E);try{m.call(ve,m)}catch{return!0}return ve instanceof WeakSet}catch{}return!1}function yt(ve){return!ve||typeof ve!="object"?!1:typeof HTMLElement<"u"&&ve instanceof HTMLElement?!0:typeof ve.nodeName=="string"&&typeof ve.getAttribute=="function"}function st(ve,ne){if(ve.length>ne.maxStringLength){var Je=ve.length-ne.maxStringLength,pt="... "+Je+" more character"+(Je>1?"s":"");return st(I.call(ve,0,ne.maxStringLength),ne)+pt}var $e=Pe[ne.quoteStyle||"single"];$e.lastIndex=0;var De=O.call(O.call(ve,$e,"\\$1"),/[\x00-\x1f]/g,Rt);return Qe(De,"single",ne)}function Rt(ve){var ne=ve.charCodeAt(0),Je={8:"b",9:"t",10:"n",12:"f",13:"r"}[ne];return Je?"\\"+Je:"\\x"+(ne<16?"0":"")+H.call(ne.toString(16))}function Bt(ve){return"Object("+ve+")"}function ze(ve){return ve+" { ? }"}function Tt(ve,ne,Je,pt){var $e=pt?kr(Je,pt):fe.call(Je,", ");return ve+" ("+ne+") {"+$e+"}"}function Ht(ve){for(var ne=0;ne<ve.length;ne++)if(Ct(ve[ne],`
356
356
  `)>=0)return!1;return!0}function _r(ve,ne){var Je;if(ve.indent===" ")Je=" ";else if(typeof ve.indent=="number"&&ve.indent>0)Je=fe.call(Array(ve.indent+1)," ");else return null;return{base:Je,prev:fe.call(Array(ne+1),Je)}}function kr(ve,ne){if(ve.length===0)return"";var Je=`
357
357
  `+ne.prev+ne.base;return Je+fe.call(ve,","+Je)+`
358
- `+ne.prev}function Cr(ve,ne){var Je=Xe(ve),pt=[];if(Je){pt.length=ve.length;for(var $e=0;$e<ve.length;$e++)pt[$e]=Le(ve,$e)?ne(ve[$e],ve):""}var De=typeof re=="function"?re(ve):[],St;if(J){St={};for(var Et=0;Et<De.length;Et++)St["$"+De[Et]]=De[Et]}for(var ut in ve)Le(ve,ut)&&(Je&&String(Number(ut))===ut&&ut<ve.length||J&&St["$"+ut]instanceof Symbol||(z.call(/[^\w$]/,ut)?pt.push(ne(ut,ve)+": "+ne(ve[ut],ve)):pt.push(ut+": "+ne(ve[ut],ve))));if(typeof re=="function")for(var Nt=0;Nt<De.length;Nt++)ce.call(ve,De[Nt])&&pt.push("["+ne(De[Nt])+"]: "+ne(ve[De[Nt]],ve));return pt}return Kg}var Yg,Qb;function QN(){if(Qb)return Yg;Qb=1;var r=wh(),e=nf(),t=function(f,g,m){for(var R=f,E;(E=R.next)!=null;R=E)if(E.key===g)return R.next=E.next,m||(E.next=f.next,f.next=E),E},n=function(f,g){if(f){var m=t(f,g);return m&&m.value}},i=function(f,g,m){var R=t(f,g);R?R.value=m:f.next={key:g,next:f.next,value:m}},l=function(f,g){return f?!!t(f,g):!1},u=function(f,g){if(f)return t(f,g,!0)};return Yg=function(){var g,m={assert:function(R){if(!m.has(R))throw new e("Side channel does not contain "+r(R))},delete:function(R){var E=g&&g.next,_=u(g,R);return _&&E&&E===_&&(g=void 0),!!_},get:function(R){return n(g,R)},has:function(R){return l(g,R)},set:function(R,E){g||(g={next:void 0}),i(g,R,E)}};return m},Yg}var Xg,e_;function pS(){return e_||(e_=1,Xg=Object),Xg}var Jg,t_;function eF(){return t_||(t_=1,Jg=Error),Jg}var Qg,r_;function tF(){return r_||(r_=1,Qg=EvalError),Qg}var e1,n_;function rF(){return n_||(n_=1,e1=RangeError),e1}var t1,i_;function nF(){return i_||(i_=1,t1=ReferenceError),t1}var r1,o_;function iF(){return o_||(o_=1,r1=SyntaxError),r1}var n1,s_;function oF(){return s_||(s_=1,n1=URIError),n1}var i1,a_;function sF(){return a_||(a_=1,i1=Math.abs),i1}var o1,l_;function aF(){return l_||(l_=1,o1=Math.floor),o1}var s1,c_;function lF(){return c_||(c_=1,s1=Math.max),s1}var a1,u_;function cF(){return u_||(u_=1,a1=Math.min),a1}var l1,f_;function uF(){return f_||(f_=1,l1=Math.pow),l1}var c1,d_;function fF(){return d_||(d_=1,c1=Math.round),c1}var u1,h_;function dF(){return h_||(h_=1,u1=Number.isNaN||function(e){return e!==e}),u1}var f1,p_;function hF(){if(p_)return f1;p_=1;var r=dF();return f1=function(t){return r(t)||t===0?t:t<0?-1:1},f1}var d1,g_;function pF(){return g_||(g_=1,d1=Object.getOwnPropertyDescriptor),d1}var h1,m_;function gS(){if(m_)return h1;m_=1;var r=pF();if(r)try{r([],"length")}catch{r=null}return h1=r,h1}var p1,v_;function gF(){if(v_)return p1;v_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return p1=r,p1}var g1,y_;function mF(){return y_||(y_=1,g1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}),g1}var m1,b_;function vF(){if(b_)return m1;b_=1;var r=typeof Symbol<"u"&&Symbol,e=mF();return m1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},m1}var v1,__;function mS(){return __||(__=1,v1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),v1}var y1,x_;function vS(){if(x_)return y1;x_=1;var r=pS();return y1=r.getPrototypeOf||null,y1}var b1,S_;function yF(){if(S_)return b1;S_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(g,m){for(var R=[],E=0;E<g.length;E+=1)R[E]=g[E];for(var _=0;_<m.length;_+=1)R[_+g.length]=m[_];return R},l=function(g,m){for(var R=[],E=m,_=0;E<g.length;E+=1,_+=1)R[_]=g[E];return R},u=function(f,g){for(var m="",R=0;R<f.length;R+=1)m+=f[R],R+1<f.length&&(m+=g);return m};return b1=function(g){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var R=l(arguments,1),E,_=function(){if(this instanceof E){var b=m.apply(this,i(R,arguments));return Object(b)===b?b:this}return m.apply(g,i(R,arguments))},S=t(0,m.length-R.length),x=[],M=0;M<S;M++)x[M]="$"+M;if(E=Function("binder","return function ("+u(x,",")+"){ return binder.apply(this,arguments); }")(_),m.prototype){var w=function(){};w.prototype=m.prototype,E.prototype=new w,w.prototype=null}return E},b1}var _1,C_;function Ah(){if(C_)return _1;C_=1;var r=yF();return _1=Function.prototype.bind||r,_1}var x1,w_;function $m(){return w_||(w_=1,x1=Function.prototype.call),x1}var S1,A_;function yS(){return A_||(A_=1,S1=Function.prototype.apply),S1}var C1,T_;function bF(){return T_||(T_=1,C1=typeof Reflect<"u"&&Reflect&&Reflect.apply),C1}var w1,E_;function _F(){if(E_)return w1;E_=1;var r=Ah(),e=yS(),t=$m(),n=bF();return w1=n||r.call(t,e),w1}var A1,k_;function bS(){if(k_)return A1;k_=1;var r=Ah(),e=nf(),t=$m(),n=_F();return A1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},A1}var T1,R_;function xF(){if(R_)return T1;R_=1;var r=bS(),e=gS(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return T1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(f){return l(f==null?f:i(f))}:!1,T1}var E1,I_;function SF(){if(I_)return E1;I_=1;var r=mS(),e=vS(),t=xF();return E1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,E1}var k1,L_;function CF(){if(L_)return k1;L_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ah();return k1=t.call(r,e),k1}var R1,M_;function Um(){if(M_)return R1;M_=1;var r,e=pS(),t=eF(),n=tF(),i=rF(),l=nF(),u=iF(),f=nf(),g=oF(),m=sF(),R=aF(),E=lF(),_=cF(),S=uF(),x=fF(),M=hF(),w=Function,b=function(Ge){try{return w('"use strict"; return ('+Ge+").constructor;")()}catch{}},I=gS(),O=gF(),H=function(){throw new f},q=I?function(){try{return arguments.callee,H}catch{try{return I(arguments,"callee").get}catch{return H}}}():H,z=vF()(),Y=SF(),fe=vS(),X=mS(),he=yS(),j=$m(),re={},Q=typeof Uint8Array>"u"||!Y?r:Y(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":z&&Y?Y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":re,"%AsyncGenerator%":re,"%AsyncGeneratorFunction%":re,"%AsyncIteratorPrototype%":re,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":re,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&Y?Y(Y([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!Y?r:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!Y?r:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&Y?Y(""[Symbol.iterator]()):r,"%Symbol%":z?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":q,"%TypedArray%":Q,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":he,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":fe,"%Math.abs%":m,"%Math.floor%":R,"%Math.max%":E,"%Math.min%":_,"%Math.pow%":S,"%Math.round%":x,"%Math.sign%":M,"%Reflect.getPrototypeOf%":X};if(Y)try{null.error}catch(Ge){var me=Y(Y(Ge));J["%Error.prototype%"]=me}var ce=function Ge(Me){var Ee;if(Me==="%AsyncFunction%")Ee=b("async function () {}");else if(Me==="%GeneratorFunction%")Ee=b("function* () {}");else if(Me==="%AsyncGeneratorFunction%")Ee=b("async function* () {}");else if(Me==="%AsyncGenerator%"){var we=Ge("%AsyncGeneratorFunction%");we&&(Ee=we.prototype)}else if(Me==="%AsyncIteratorPrototype%"){var Ue=Ge("%AsyncGenerator%");Ue&&Y&&(Ee=Y(Ue.prototype))}return J[Me]=Ee,Ee},be={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ue=Ah(),Se=CF(),le=ue.call(j,Array.prototype.concat),ae=ue.call(he,Array.prototype.splice),ge=ue.call(j,String.prototype.replace),Pe=ue.call(j,String.prototype.slice),Qe=ue.call(j,RegExp.prototype.exec),pe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ie=/\\(\\)?/g,Xe=function(Me){var Ee=Pe(Me,0,1),we=Pe(Me,-1);if(Ee==="%"&&we!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(we==="%"&&Ee!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Ue=[];return ge(Me,pe,function(ct,Ne,bt,Le){Ue[Ue.length]=bt?ge(Le,Ie,"$1"):Ne||ct}),Ue},tt=function(Me,Ee){var we=Me,Ue;if(Se(be,we)&&(Ue=be[we],we="%"+Ue[0]+"%"),Se(J,we)){var ct=J[we];if(ct===re&&(ct=ce(we)),typeof ct>"u"&&!Ee)throw new f("intrinsic "+Me+" exists, but is not available. Please file an issue!");return{alias:Ue,name:we,value:ct}}throw new u("intrinsic "+Me+" does not exist!")};return R1=function(Me,Ee){if(typeof Me!="string"||Me.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ee!="boolean")throw new f('"allowMissing" argument must be a boolean');if(Qe(/^%?[^%]*%?$/,Me)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var we=Xe(Me),Ue=we.length>0?we[0]:"",ct=tt("%"+Ue+"%",Ee),Ne=ct.name,bt=ct.value,Le=!1,Ze=ct.alias;Ze&&(Ue=Ze[0],ae(we,le([0,1],Ze)));for(var ot=1,Ct=!0;ot<we.length;ot+=1){var _t=we[ot],wt=Pe(_t,0,1),xt=Pe(_t,-1);if((wt==='"'||wt==="'"||wt==="`"||xt==='"'||xt==="'"||xt==="`")&&wt!==xt)throw new u("property names with quotes must have matching quotes");if((_t==="constructor"||!Ct)&&(Le=!0),Ue+="."+_t,Ne="%"+Ue+"%",Se(J,Ne))bt=J[Ne];else if(bt!=null){if(!(_t in bt)){if(!Ee)throw new f("base intrinsic for "+Me+" exists, but the property is not available.");return}if(I&&ot+1>=we.length){var it=I(bt,_t);Ct=!!it,Ct&&"get"in it&&!("originalValue"in it.get)?bt=it.get:bt=bt[_t]}else Ct=Se(bt,_t),bt=bt[_t];Ct&&!Le&&(J[Ne]=bt)}}return bt},R1}var I1,D_;function _S(){if(D_)return I1;D_=1;var r=Um(),e=bS(),t=e([r("%String.prototype.indexOf%")]);return I1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},I1}var L1,O_;function xS(){if(O_)return L1;O_=1;var r=Um(),e=_S(),t=wh(),n=nf(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),f=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return L1=!!i&&function(){var E,_={assert:function(S){if(!_.has(S))throw new n("Side channel does not contain "+t(S))},delete:function(S){if(E){var x=g(E,S);return m(E)===0&&(E=void 0),x}return!1},get:function(S){if(E)return l(E,S)},has:function(S){return E?f(E,S):!1},set:function(S,x){E||(E=new i),u(E,S,x)}};return _},L1}var M1,P_;function wF(){if(P_)return M1;P_=1;var r=Um(),e=_S(),t=wh(),n=xS(),i=nf(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),f=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return M1=l?function(){var E,_,S={assert:function(x){if(!S.has(x))throw new i("Side channel does not contain "+t(x))},delete:function(x){if(l&&x&&(typeof x=="object"||typeof x=="function")){if(E)return m(E,x)}else if(n&&_)return _.delete(x);return!1},get:function(x){return l&&x&&(typeof x=="object"||typeof x=="function")&&E?u(E,x):_&&_.get(x)},has:function(x){return l&&x&&(typeof x=="object"||typeof x=="function")&&E?g(E,x):!!_&&_.has(x)},set:function(x,M){l&&x&&(typeof x=="object"||typeof x=="function")?(E||(E=new l),f(E,x,M)):n&&(_||(_=n()),_.set(x,M))}};return S}:n,M1}var D1,N_;function AF(){if(N_)return D1;N_=1;var r=nf(),e=wh(),t=QN(),n=xS(),i=wF(),l=i||n||t;return D1=function(){var f,g={assert:function(m){if(!g.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!f&&f.delete(m)},get:function(m){return f&&f.get(m)},has:function(m){return!!f&&f.has(m)},set:function(m,R){f||(f=l()),f.set(m,R)}};return g},D1}var O1,F_;function Wm(){if(F_)return O1;F_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return O1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},O1}var P1,j_;function SS(){if(j_)return P1;j_=1;var r=Wm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var w=[],b=0;b<256;++b)w.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return w}(),i=function(b){for(;b.length>1;){var I=b.pop(),O=I.obj[I.prop];if(t(O)){for(var H=[],q=0;q<O.length;++q)typeof O[q]<"u"&&H.push(O[q]);I.obj[I.prop]=H}}},l=function(b,I){for(var O=I&&I.plainObjects?{__proto__:null}:{},H=0;H<b.length;++H)typeof b[H]<"u"&&(O[H]=b[H]);return O},u=function w(b,I,O){if(!I)return b;if(typeof I!="object"&&typeof I!="function"){if(t(b))b.push(I);else if(b&&typeof b=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,I))&&(b[I]=!0);else return[b,I];return b}if(!b||typeof b!="object")return[b].concat(I);var H=b;return t(b)&&!t(I)&&(H=l(b,O)),t(b)&&t(I)?(I.forEach(function(q,z){if(e.call(b,z)){var Y=b[z];Y&&typeof Y=="object"&&q&&typeof q=="object"?b[z]=w(Y,q,O):b.push(q)}else b[z]=q}),b):Object.keys(I).reduce(function(q,z){var Y=I[z];return e.call(q,z)?q[z]=w(q[z],Y,O):q[z]=Y,q},H)},f=function(b,I){return Object.keys(I).reduce(function(O,H){return O[H]=I[H],O},b)},g=function(w,b,I){var O=w.replace(/\+/g," ");if(I==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,R=function(b,I,O,H,q){if(b.length===0)return b;var z=b;if(typeof b=="symbol"?z=Symbol.prototype.toString.call(b):typeof b!="string"&&(z=String(b)),O==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(Q){return"%26%23"+parseInt(Q.slice(2),16)+"%3B"});for(var Y="",fe=0;fe<z.length;fe+=m){for(var X=z.length>=m?z.slice(fe,fe+m):z,he=[],j=0;j<X.length;++j){var re=X.charCodeAt(j);if(re===45||re===46||re===95||re===126||re>=48&&re<=57||re>=65&&re<=90||re>=97&&re<=122||q===r.RFC1738&&(re===40||re===41)){he[he.length]=X.charAt(j);continue}if(re<128){he[he.length]=n[re];continue}if(re<2048){he[he.length]=n[192|re>>6]+n[128|re&63];continue}if(re<55296||re>=57344){he[he.length]=n[224|re>>12]+n[128|re>>6&63]+n[128|re&63];continue}j+=1,re=65536+((re&1023)<<10|X.charCodeAt(j)&1023),he[he.length]=n[240|re>>18]+n[128|re>>12&63]+n[128|re>>6&63]+n[128|re&63]}Y+=he.join("")}return Y},E=function(b){for(var I=[{obj:{o:b},prop:"o"}],O=[],H=0;H<I.length;++H)for(var q=I[H],z=q.obj[q.prop],Y=Object.keys(z),fe=0;fe<Y.length;++fe){var X=Y[fe],he=z[X];typeof he=="object"&&he!==null&&O.indexOf(he)===-1&&(I.push({obj:z,prop:X}),O.push(he))}return i(I),b},_=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},S=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},x=function(b,I){return[].concat(b,I)},M=function(b,I){if(t(b)){for(var O=[],H=0;H<b.length;H+=1)O.push(I(b[H]));return O}return I(b)};return P1={arrayToObject:l,assign:f,combine:x,compact:E,decode:g,encode:R,isBuffer:S,isRegExp:_,maybeMap:M,merge:u},P1}var N1,B_;function TF(){if(B_)return N1;B_=1;var r=AF(),e=SS(),t=Wm(),n=Object.prototype.hasOwnProperty,i={brackets:function(w){return w+"[]"},comma:"comma",indices:function(w,b){return w+"["+b+"]"},repeat:function(w){return w}},l=Array.isArray,u=Array.prototype.push,f=function(M,w){u.apply(M,l(w)?w:[w])},g=Date.prototype.toISOString,m=t.default,R={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:t.formatters[m],indices:!1,serializeDate:function(w){return g.call(w)},skipNulls:!1,strictNullHandling:!1},E=function(w){return typeof w=="string"||typeof w=="number"||typeof w=="boolean"||typeof w=="symbol"||typeof w=="bigint"},_={},S=function M(w,b,I,O,H,q,z,Y,fe,X,he,j,re,Q,J,me,ce,be){for(var ue=w,Se=be,le=0,ae=!1;(Se=Se.get(_))!==void 0&&!ae;){var ge=Se.get(w);if(le+=1,typeof ge<"u"){if(ge===le)throw new RangeError("Cyclic object value");ae=!0}typeof Se.get(_)>"u"&&(le=0)}if(typeof X=="function"?ue=X(b,ue):ue instanceof Date?ue=re(ue):I==="comma"&&l(ue)&&(ue=e.maybeMap(ue,function(Ne){return Ne instanceof Date?re(Ne):Ne})),ue===null){if(q)return fe&&!me?fe(b,R.encoder,ce,"key",Q):b;ue=""}if(E(ue)||e.isBuffer(ue)){if(fe){var Pe=me?b:fe(b,R.encoder,ce,"key",Q);return[J(Pe)+"="+J(fe(ue,R.encoder,ce,"value",Q))]}return[J(b)+"="+J(String(ue))]}var Qe=[];if(typeof ue>"u")return Qe;var pe;if(I==="comma"&&l(ue))me&&fe&&(ue=e.maybeMap(ue,fe)),pe=[{value:ue.length>0?ue.join(",")||null:void 0}];else if(l(X))pe=X;else{var Ie=Object.keys(ue);pe=he?Ie.sort(he):Ie}var Xe=Y?String(b).replace(/\./g,"%2E"):String(b),tt=O&&l(ue)&&ue.length===1?Xe+"[]":Xe;if(H&&l(ue)&&ue.length===0)return tt+"[]";for(var Ge=0;Ge<pe.length;++Ge){var Me=pe[Ge],Ee=typeof Me=="object"&&Me&&typeof Me.value<"u"?Me.value:ue[Me];if(!(z&&Ee===null)){var we=j&&Y?String(Me).replace(/\./g,"%2E"):String(Me),Ue=l(ue)?typeof I=="function"?I(tt,we):tt:tt+(j?"."+we:"["+we+"]");be.set(w,le);var ct=r();ct.set(_,be),f(Qe,M(Ee,Ue,I,O,H,q,z,Y,I==="comma"&&me&&l(ue)?null:fe,X,he,j,re,Q,J,me,ce,ct))}}return Qe},x=function(w){if(!w)return R;if(typeof w.allowEmptyArrays<"u"&&typeof w.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof w.encodeDotInKeys<"u"&&typeof w.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(w.encoder!==null&&typeof w.encoder<"u"&&typeof w.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=w.charset||R.charset;if(typeof w.charset<"u"&&w.charset!=="utf-8"&&w.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var I=t.default;if(typeof w.format<"u"){if(!n.call(t.formatters,w.format))throw new TypeError("Unknown format option provided.");I=w.format}var O=t.formatters[I],H=R.filter;(typeof w.filter=="function"||l(w.filter))&&(H=w.filter);var q;if(w.arrayFormat in i?q=w.arrayFormat:"indices"in w?q=w.indices?"indices":"repeat":q=R.arrayFormat,"commaRoundTrip"in w&&typeof w.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var z=typeof w.allowDots>"u"?w.encodeDotInKeys===!0?!0:R.allowDots:!!w.allowDots;return{addQueryPrefix:typeof w.addQueryPrefix=="boolean"?w.addQueryPrefix:R.addQueryPrefix,allowDots:z,allowEmptyArrays:typeof w.allowEmptyArrays=="boolean"?!!w.allowEmptyArrays:R.allowEmptyArrays,arrayFormat:q,charset:b,charsetSentinel:typeof w.charsetSentinel=="boolean"?w.charsetSentinel:R.charsetSentinel,commaRoundTrip:!!w.commaRoundTrip,delimiter:typeof w.delimiter>"u"?R.delimiter:w.delimiter,encode:typeof w.encode=="boolean"?w.encode:R.encode,encodeDotInKeys:typeof w.encodeDotInKeys=="boolean"?w.encodeDotInKeys:R.encodeDotInKeys,encoder:typeof w.encoder=="function"?w.encoder:R.encoder,encodeValuesOnly:typeof w.encodeValuesOnly=="boolean"?w.encodeValuesOnly:R.encodeValuesOnly,filter:H,format:I,formatter:O,serializeDate:typeof w.serializeDate=="function"?w.serializeDate:R.serializeDate,skipNulls:typeof w.skipNulls=="boolean"?w.skipNulls:R.skipNulls,sort:typeof w.sort=="function"?w.sort:null,strictNullHandling:typeof w.strictNullHandling=="boolean"?w.strictNullHandling:R.strictNullHandling}};return N1=function(M,w){var b=M,I=x(w),O,H;typeof I.filter=="function"?(H=I.filter,b=H("",b)):l(I.filter)&&(H=I.filter,O=H);var q=[];if(typeof b!="object"||b===null)return"";var z=i[I.arrayFormat],Y=z==="comma"&&I.commaRoundTrip;O||(O=Object.keys(b)),I.sort&&O.sort(I.sort);for(var fe=r(),X=0;X<O.length;++X){var he=O[X],j=b[he];I.skipNulls&&j===null||f(q,S(j,he,z,Y,I.allowEmptyArrays,I.strictNullHandling,I.skipNulls,I.encodeDotInKeys,I.encode?I.encoder:null,I.filter,I.sort,I.allowDots,I.serializeDate,I.format,I.formatter,I.encodeValuesOnly,I.charset,fe))}var re=q.join(I.delimiter),Q=I.addQueryPrefix===!0?"?":"";return I.charsetSentinel&&(I.charset==="iso-8859-1"?Q+="utf8=%26%2310003%3B&":Q+="utf8=%E2%9C%93&"),re.length>0?Q+re:""},N1}var F1,H_;function EF(){if(H_)return F1;H_=1;var r=SS(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(_){return _.replace(/&#(\d+);/g,function(S,x){return String.fromCharCode(parseInt(x,10))})},l=function(_,S,x){if(_&&typeof _=="string"&&S.comma&&_.indexOf(",")>-1)return _.split(",");if(S.throwOnLimitExceeded&&x>=S.arrayLimit)throw new RangeError("Array limit exceeded. Only "+S.arrayLimit+" element"+(S.arrayLimit===1?"":"s")+" allowed in an array.");return _},u="utf8=%26%2310003%3B",f="utf8=%E2%9C%93",g=function(S,x){var M={__proto__:null},w=x.ignoreQueryPrefix?S.replace(/^\?/,""):S;w=w.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=x.parameterLimit===1/0?void 0:x.parameterLimit,I=w.split(x.delimiter,x.throwOnLimitExceeded?b+1:b);if(x.throwOnLimitExceeded&&I.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var O=-1,H,q=x.charset;if(x.charsetSentinel)for(H=0;H<I.length;++H)I[H].indexOf("utf8=")===0&&(I[H]===f?q="utf-8":I[H]===u&&(q="iso-8859-1"),O=H,H=I.length);for(H=0;H<I.length;++H)if(H!==O){var z=I[H],Y=z.indexOf("]="),fe=Y===-1?z.indexOf("="):Y+1,X,he;fe===-1?(X=x.decoder(z,n.decoder,q,"key"),he=x.strictNullHandling?null:""):(X=x.decoder(z.slice(0,fe),n.decoder,q,"key"),he=r.maybeMap(l(z.slice(fe+1),x,t(M[X])?M[X].length:0),function(re){return x.decoder(re,n.decoder,q,"value")})),he&&x.interpretNumericEntities&&q==="iso-8859-1"&&(he=i(String(he))),z.indexOf("[]=")>-1&&(he=t(he)?[he]:he);var j=e.call(M,X);j&&x.duplicates==="combine"?M[X]=r.combine(M[X],he):(!j||x.duplicates==="last")&&(M[X]=he)}return M},m=function(_,S,x,M){var w=0;if(_.length>0&&_[_.length-1]==="[]"){var b=_.slice(0,-1).join("");w=Array.isArray(S)&&S[b]?S[b].length:0}for(var I=M?S:l(S,x,w),O=_.length-1;O>=0;--O){var H,q=_[O];if(q==="[]"&&x.parseArrays)H=x.allowEmptyArrays&&(I===""||x.strictNullHandling&&I===null)?[]:r.combine([],I);else{H=x.plainObjects?{__proto__:null}:{};var z=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=x.decodeDotInKeys?z.replace(/%2E/g,"."):z,fe=parseInt(Y,10);!x.parseArrays&&Y===""?H={0:I}:!isNaN(fe)&&q!==Y&&String(fe)===Y&&fe>=0&&x.parseArrays&&fe<=x.arrayLimit?(H=[],H[fe]=I):Y!=="__proto__"&&(H[Y]=I)}I=H}return I},R=function(S,x,M,w){if(S){var b=M.allowDots?S.replace(/\.([^.[]+)/g,"[$1]"):S,I=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,H=M.depth>0&&I.exec(b),q=H?b.slice(0,H.index):b,z=[];if(q){if(!M.plainObjects&&e.call(Object.prototype,q)&&!M.allowPrototypes)return;z.push(q)}for(var Y=0;M.depth>0&&(H=O.exec(b))!==null&&Y<M.depth;){if(Y+=1,!M.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!M.allowPrototypes)return;z.push(H[1])}if(H){if(M.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+M.depth+" and strictDepth is true");z.push("["+b.slice(H.index)+"]")}return m(z,x,M,w)}},E=function(S){if(!S)return n;if(typeof S.allowEmptyArrays<"u"&&typeof S.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof S.decodeDotInKeys<"u"&&typeof S.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(S.decoder!==null&&typeof S.decoder<"u"&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof S.throwOnLimitExceeded<"u"&&typeof S.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var x=typeof S.charset>"u"?n.charset:S.charset,M=typeof S.duplicates>"u"?n.duplicates:S.duplicates;if(M!=="combine"&&M!=="first"&&M!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var w=typeof S.allowDots>"u"?S.decodeDotInKeys===!0?!0:n.allowDots:!!S.allowDots;return{allowDots:w,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:n.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:n.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:n.arrayLimit,charset:x,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:n.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:n.comma,decodeDotInKeys:typeof S.decodeDotInKeys=="boolean"?S.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof S.decoder=="function"?S.decoder:n.decoder,delimiter:typeof S.delimiter=="string"||r.isRegExp(S.delimiter)?S.delimiter:n.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:n.depth,duplicates:M,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:n.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:n.plainObjects,strictDepth:typeof S.strictDepth=="boolean"?!!S.strictDepth:n.strictDepth,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof S.throwOnLimitExceeded=="boolean"?S.throwOnLimitExceeded:!1}};return F1=function(_,S){var x=E(S);if(_===""||_===null||typeof _>"u")return x.plainObjects?{__proto__:null}:{};for(var M=typeof _=="string"?g(_,x):_,w=x.plainObjects?{__proto__:null}:{},b=Object.keys(M),I=0;I<b.length;++I){var O=b[I],H=R(O,M[O],x,typeof _=="string");w=r.merge(w,H,x)}return x.allowSparse===!0?w:r.compact(w)},F1}var j1,q_;function kF(){if(q_)return j1;q_=1;var r=TF(),e=EF(),t=Wm();return j1={formats:t,parse:e,stringify:r},j1}var RF=kF();const IF=al(RF),am={StoredContexts:{},defaultHandler:()=>{}},CS={Init:()=>{},Create:r=>{const e=r.method+r.url;return am.StoredContexts[e]=r,LF(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{am.defaultHandler=r}};function LF(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:f}=r;const{po:g,onStream:m,onStreamEnd:R,noDefaultHandle:E=[]}=n??{};(f==="query"||l==="GET")&&g!==void 0&&(i+="?"+IF.stringify(g,{arrayFormat:"comma"}));const _={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(f==="form"){const M=new FormData;if(g!==void 0)for(const w in g){const b=g[w];M.append(w,b)}_.body=M}else(f==="body"||f===void 0&&r.method!=="GET")&&(_.body=JSON.stringify(g),_.headers["Content-Type"]="application/json;charset=UTF-8");let S={errorCode:0,message:""};const x=Date.now();i=CS.FetchBaseUrl()+i;try{let M=await fetch(i,_);if(M.ok===!1)return S.errorCode=M.status,S.message=M.statusText,S;{const w=new TextDecoder("utf-8");if(u){if(M.body){let b=M.body.getReader(),I="";for(;;){const O=await b.read();if(O.done)break;const H=w.decode(O.value).trim();I+=H;let q=null;try{const z=H.split("\0");let Y=z[z.length-1];for(let fe=z.length-2;fe>=0;fe--)if(z[fe].trim().length!==0){Y=z[fe];break}q=await JSON.parse(Y)}catch{try{const Y=I.split("\0");let fe=Y[Y.length-1];for(let X=Y.length-2;X>=0;X--)if(Y[X].trim().length!==0){fe=Y[X];break}q=await JSON.parse(fe)}catch{}}if(q!=null&&(Object.keys(q).includes("err_code")?S.errorCode=q.err_code:(S.errorCode=0,S.data=q,I="",O.done?R==null||R(S.data):m==null||m(S.data))),O.done)break}}}else if(M.body){const I=await M.body.getReader().read(),O=w.decode(I.value);if(O==="null")return S;{let H=await JSON.parse(O.replaceAll("\0",""));Object.keys(H).includes("err_code")?(S.errorCode=H.err_code,S.message=H.err_msg):S.data=H}}}}catch(M){console.warn(M),S.errorCode=-1,S.message=M.message}return console.debug(`${e} ${Date.now()-x}ms`),E!==!0&&await am.defaultHandler(S,E),S}}}async function MF(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function DF(r,e){var f,g;const t=r.split(","),n=(g=(f=t[0])==null?void 0:f.match(/:(.*?);/))==null?void 0:g[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const OF={toBase64:MF,toFile:DF};exports.ABase=$r;exports.ABaseStyleKeys=a2;exports.AButton=Fi;exports.AButtonStyleKeys=c2;exports.AButtonTypes=c5;exports.ACheckBox=Zu;exports.ACheckBoxStyleKeys=h2;exports.AChip=hm;exports.AChipKeys=M2;exports.AChips=AT;exports.AClock=jT;exports.AColFrame=O2;exports.ADatePicker=mm;exports.ADatePickerStyleKeys=C2;exports.ADatePickerTypes=fE;exports.ADateRangePicker=pm;exports.ADateRangePickerStyleKeys=w2;exports.ADialog=_E;exports.ADialogStyleKeys=p2;exports.ADialogTypes=bE;exports.ADivideFrame=hT;exports.AEditor=cN;exports.AEditorStyleKeys=d2;exports.AFileBox=LE;exports.AFileBoxStyleKeys=_2;exports.AFileUploader=JE;exports.AFloatMenu=j2;exports.AFloatMenuKeys=k2;exports.AFrameStyleKeys=E2;exports.AGrow=Qc;exports.AIcon=jr;exports.AIconButton=_i;exports.AIconButtonStyleKeys=A2;exports.AIconButtonTypes=u5;exports.AIconHOC=H4;exports.AIcons=um;exports.AInput=tc;exports.AInputStyleKeys=u2;exports.AInputTypes=XT;exports.AListView=ck;exports.AListViewStyleKeys=x2;exports.ALoadingBorder=vm;exports.ALoadingBorderKeys=R2;exports.AMultiSelect=Fk;exports.AMultiSelectStyleKeys=m2;exports.ANumInput=ik;exports.AOverflowFrame=Sa;exports.ARadioSelect=Sk;exports.ARadioSelectKeys=L2;exports.ARowFrame=Sn;exports.ASelect=rc;exports.ASelectStyleKeys=g2;exports.ASelectTypes=d6;exports.ASpace=mn;exports.AStepper=Jk;exports.AStepperStyleKeys=S2;exports.ASwitch=e2;exports.ASwitchFrame=P2;exports.ASwitchStyleKeys=y2;exports.ATab=q2;exports.ATabStyleKeys=b2;exports.ATabTypes=u8;exports.ATable=bR;exports.ATableStyleKeys=T2;exports.AText=V2;exports.ATextArea=IR;exports.ATextAreaStyleKeys=f2;exports.ATextAreaTypes=RR;exports.AThemeButton=K5;exports.AThemes=Ff;exports.ATooltip=Q_;exports.ATooltipStyleKeys=l2;exports.ATree=VN;exports.ATreeStyleKeys=v2;exports.AWrap=ec;exports.AWrapKeys=I2;exports.AWrapTypes=R5;exports.ApiContext=CS;exports.BodyStyleKeys=s2;exports.CreateADC=TE;exports.DefaultOptionRenderer=H2;exports.EDir12=ef;exports.EDir4=yi;exports.FileSizeTrans=Kc;exports.Icons=ih;exports.IsCursorPointer=V_;exports.IsFixedShape=W_;exports.IsInteractive=G_;exports.NoSelect=U_;exports.Resources=hn;exports.SetResources=C5;exports.alphanumericRegex=ET;exports.bound=Nf;exports.cbF=Lr;exports.changeSemanticMode=dm;exports.componentStyleKeys=q5;exports.createEvent=Gc;exports.dateF=Kt;exports.defaultPredicate=$2;exports.dlgF=EE;exports.emailIdRegex=RT;exports.emailRegex=kT;exports.fileF=OF;exports.getMonthsOptions=Kf;exports.getYearsOptions=gm;exports.hangulRegex=LT;exports.hexRegex=IT;exports.noHanguljamoRegex=DT;exports.noSpaceRegex=MT;exports.numF=B2;exports.objF=er;exports.paletteKeys=t2;exports.paletteModes=oh;exports.passwordRegex=PT;exports.refinedDesignTokens=xi;exports.sF=Fe;exports.semanticKeys=i2;exports.semanticModes=Gu;exports.setDir12Style=fm;exports.setDir12StyleElem=X_;exports.specialCharRegex=OT;exports.strF=F2;exports.tableF=tl;exports.textMeasurement=Zc;exports.treeF=rl;exports.useADialogCore=wE;exports.useADialogCores=CE;exports.useEvent=W2;exports.useInit=z2;exports.useValues=nn;exports.uuidRegex=NT;
358
+ `+ne.prev}function Cr(ve,ne){var Je=Xe(ve),pt=[];if(Je){pt.length=ve.length;for(var $e=0;$e<ve.length;$e++)pt[$e]=Le(ve,$e)?ne(ve[$e],ve):""}var De=typeof re=="function"?re(ve):[],St;if(J){St={};for(var Et=0;Et<De.length;Et++)St["$"+De[Et]]=De[Et]}for(var ut in ve)Le(ve,ut)&&(Je&&String(Number(ut))===ut&&ut<ve.length||J&&St["$"+ut]instanceof Symbol||(z.call(/[^\w$]/,ut)?pt.push(ne(ut,ve)+": "+ne(ve[ut],ve)):pt.push(ut+": "+ne(ve[ut],ve))));if(typeof re=="function")for(var Nt=0;Nt<De.length;Nt++)ce.call(ve,De[Nt])&&pt.push("["+ne(De[Nt])+"]: "+ne(ve[De[Nt]],ve));return pt}return Kg}var Yg,Qb;function QN(){if(Qb)return Yg;Qb=1;var r=wh(),e=nf(),t=function(f,g,m){for(var R=f,E;(E=R.next)!=null;R=E)if(E.key===g)return R.next=E.next,m||(E.next=f.next,f.next=E),E},n=function(f,g){if(f){var m=t(f,g);return m&&m.value}},i=function(f,g,m){var R=t(f,g);R?R.value=m:f.next={key:g,next:f.next,value:m}},l=function(f,g){return f?!!t(f,g):!1},u=function(f,g){if(f)return t(f,g,!0)};return Yg=function(){var g,m={assert:function(R){if(!m.has(R))throw new e("Side channel does not contain "+r(R))},delete:function(R){var E=g&&g.next,_=u(g,R);return _&&E&&E===_&&(g=void 0),!!_},get:function(R){return n(g,R)},has:function(R){return l(g,R)},set:function(R,E){g||(g={next:void 0}),i(g,R,E)}};return m},Yg}var Xg,e_;function pS(){return e_||(e_=1,Xg=Object),Xg}var Jg,t_;function eF(){return t_||(t_=1,Jg=Error),Jg}var Qg,r_;function tF(){return r_||(r_=1,Qg=EvalError),Qg}var e1,n_;function rF(){return n_||(n_=1,e1=RangeError),e1}var t1,i_;function nF(){return i_||(i_=1,t1=ReferenceError),t1}var r1,o_;function iF(){return o_||(o_=1,r1=SyntaxError),r1}var n1,s_;function oF(){return s_||(s_=1,n1=URIError),n1}var i1,a_;function sF(){return a_||(a_=1,i1=Math.abs),i1}var o1,l_;function aF(){return l_||(l_=1,o1=Math.floor),o1}var s1,c_;function lF(){return c_||(c_=1,s1=Math.max),s1}var a1,u_;function cF(){return u_||(u_=1,a1=Math.min),a1}var l1,f_;function uF(){return f_||(f_=1,l1=Math.pow),l1}var c1,d_;function fF(){return d_||(d_=1,c1=Math.round),c1}var u1,h_;function dF(){return h_||(h_=1,u1=Number.isNaN||function(e){return e!==e}),u1}var f1,p_;function hF(){if(p_)return f1;p_=1;var r=dF();return f1=function(t){return r(t)||t===0?t:t<0?-1:1},f1}var d1,g_;function pF(){return g_||(g_=1,d1=Object.getOwnPropertyDescriptor),d1}var h1,m_;function gS(){if(m_)return h1;m_=1;var r=pF();if(r)try{r([],"length")}catch{r=null}return h1=r,h1}var p1,v_;function gF(){if(v_)return p1;v_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return p1=r,p1}var g1,y_;function mF(){return y_||(y_=1,g1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(e,t);if(f.value!==i||f.enumerable!==!0)return!1}return!0}),g1}var m1,b_;function vF(){if(b_)return m1;b_=1;var r=typeof Symbol<"u"&&Symbol,e=mF();return m1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},m1}var v1,__;function mS(){return __||(__=1,v1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),v1}var y1,x_;function vS(){if(x_)return y1;x_=1;var r=pS();return y1=r.getPrototypeOf||null,y1}var b1,S_;function yF(){if(S_)return b1;S_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(g,m){for(var R=[],E=0;E<g.length;E+=1)R[E]=g[E];for(var _=0;_<m.length;_+=1)R[_+g.length]=m[_];return R},l=function(g,m){for(var R=[],E=m,_=0;E<g.length;E+=1,_+=1)R[_]=g[E];return R},u=function(f,g){for(var m="",R=0;R<f.length;R+=1)m+=f[R],R+1<f.length&&(m+=g);return m};return b1=function(g){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var R=l(arguments,1),E,_=function(){if(this instanceof E){var b=m.apply(this,i(R,arguments));return Object(b)===b?b:this}return m.apply(g,i(R,arguments))},S=t(0,m.length-R.length),x=[],M=0;M<S;M++)x[M]="$"+M;if(E=Function("binder","return function ("+u(x,",")+"){ return binder.apply(this,arguments); }")(_),m.prototype){var w=function(){};w.prototype=m.prototype,E.prototype=new w,w.prototype=null}return E},b1}var _1,C_;function Ah(){if(C_)return _1;C_=1;var r=yF();return _1=Function.prototype.bind||r,_1}var x1,w_;function $m(){return w_||(w_=1,x1=Function.prototype.call),x1}var S1,A_;function yS(){return A_||(A_=1,S1=Function.prototype.apply),S1}var C1,T_;function bF(){return T_||(T_=1,C1=typeof Reflect<"u"&&Reflect&&Reflect.apply),C1}var w1,E_;function _F(){if(E_)return w1;E_=1;var r=Ah(),e=yS(),t=$m(),n=bF();return w1=n||r.call(t,e),w1}var A1,k_;function bS(){if(k_)return A1;k_=1;var r=Ah(),e=nf(),t=$m(),n=_F();return A1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},A1}var T1,R_;function xF(){if(R_)return T1;R_=1;var r=bS(),e=gS(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return T1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(f){return l(f==null?f:i(f))}:!1,T1}var E1,I_;function SF(){if(I_)return E1;I_=1;var r=mS(),e=vS(),t=xF();return E1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,E1}var k1,L_;function CF(){if(L_)return k1;L_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ah();return k1=t.call(r,e),k1}var R1,M_;function Um(){if(M_)return R1;M_=1;var r,e=pS(),t=eF(),n=tF(),i=rF(),l=nF(),u=iF(),f=nf(),g=oF(),m=sF(),R=aF(),E=lF(),_=cF(),S=uF(),x=fF(),M=hF(),w=Function,b=function(Ue){try{return w('"use strict"; return ('+Ue+").constructor;")()}catch{}},I=gS(),O=gF(),H=function(){throw new f},q=I?function(){try{return arguments.callee,H}catch{try{return I(arguments,"callee").get}catch{return H}}}():H,z=vF()(),Y=SF(),fe=vS(),X=mS(),he=yS(),j=$m(),re={},Q=typeof Uint8Array>"u"||!Y?r:Y(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":z&&Y?Y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":re,"%AsyncGenerator%":re,"%AsyncGeneratorFunction%":re,"%AsyncIteratorPrototype%":re,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":re,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&Y?Y(Y([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!Y?r:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!Y?r:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&Y?Y(""[Symbol.iterator]()):r,"%Symbol%":z?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":q,"%TypedArray%":Q,"%TypeError%":f,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":j,"%Function.prototype.apply%":he,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":fe,"%Math.abs%":m,"%Math.floor%":R,"%Math.max%":E,"%Math.min%":_,"%Math.pow%":S,"%Math.round%":x,"%Math.sign%":M,"%Reflect.getPrototypeOf%":X};if(Y)try{null.error}catch(Ue){var me=Y(Y(Ue));J["%Error.prototype%"]=me}var ce=function Ue(Me){var Ee;if(Me==="%AsyncFunction%")Ee=b("async function () {}");else if(Me==="%GeneratorFunction%")Ee=b("function* () {}");else if(Me==="%AsyncGeneratorFunction%")Ee=b("async function* () {}");else if(Me==="%AsyncGenerator%"){var we=Ue("%AsyncGeneratorFunction%");we&&(Ee=we.prototype)}else if(Me==="%AsyncIteratorPrototype%"){var We=Ue("%AsyncGenerator%");We&&Y&&(Ee=Y(We.prototype))}return J[Me]=Ee,Ee},be={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ue=Ah(),Se=CF(),le=ue.call(j,Array.prototype.concat),ae=ue.call(he,Array.prototype.splice),ge=ue.call(j,String.prototype.replace),Pe=ue.call(j,String.prototype.slice),Qe=ue.call(j,RegExp.prototype.exec),pe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ie=/\\(\\)?/g,Xe=function(Me){var Ee=Pe(Me,0,1),we=Pe(Me,-1);if(Ee==="%"&&we!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(we==="%"&&Ee!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var We=[];return ge(Me,pe,function(ct,Ne,bt,Le){We[We.length]=bt?ge(Le,Ie,"$1"):Ne||ct}),We},tt=function(Me,Ee){var we=Me,We;if(Se(be,we)&&(We=be[we],we="%"+We[0]+"%"),Se(J,we)){var ct=J[we];if(ct===re&&(ct=ce(we)),typeof ct>"u"&&!Ee)throw new f("intrinsic "+Me+" exists, but is not available. Please file an issue!");return{alias:We,name:we,value:ct}}throw new u("intrinsic "+Me+" does not exist!")};return R1=function(Me,Ee){if(typeof Me!="string"||Me.length===0)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ee!="boolean")throw new f('"allowMissing" argument must be a boolean');if(Qe(/^%?[^%]*%?$/,Me)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var we=Xe(Me),We=we.length>0?we[0]:"",ct=tt("%"+We+"%",Ee),Ne=ct.name,bt=ct.value,Le=!1,Ze=ct.alias;Ze&&(We=Ze[0],ae(we,le([0,1],Ze)));for(var ot=1,Ct=!0;ot<we.length;ot+=1){var _t=we[ot],wt=Pe(_t,0,1),xt=Pe(_t,-1);if((wt==='"'||wt==="'"||wt==="`"||xt==='"'||xt==="'"||xt==="`")&&wt!==xt)throw new u("property names with quotes must have matching quotes");if((_t==="constructor"||!Ct)&&(Le=!0),We+="."+_t,Ne="%"+We+"%",Se(J,Ne))bt=J[Ne];else if(bt!=null){if(!(_t in bt)){if(!Ee)throw new f("base intrinsic for "+Me+" exists, but the property is not available.");return}if(I&&ot+1>=we.length){var it=I(bt,_t);Ct=!!it,Ct&&"get"in it&&!("originalValue"in it.get)?bt=it.get:bt=bt[_t]}else Ct=Se(bt,_t),bt=bt[_t];Ct&&!Le&&(J[Ne]=bt)}}return bt},R1}var I1,D_;function _S(){if(D_)return I1;D_=1;var r=Um(),e=bS(),t=e([r("%String.prototype.indexOf%")]);return I1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},I1}var L1,O_;function xS(){if(O_)return L1;O_=1;var r=Um(),e=_S(),t=wh(),n=nf(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),f=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return L1=!!i&&function(){var E,_={assert:function(S){if(!_.has(S))throw new n("Side channel does not contain "+t(S))},delete:function(S){if(E){var x=g(E,S);return m(E)===0&&(E=void 0),x}return!1},get:function(S){if(E)return l(E,S)},has:function(S){return E?f(E,S):!1},set:function(S,x){E||(E=new i),u(E,S,x)}};return _},L1}var M1,P_;function wF(){if(P_)return M1;P_=1;var r=Um(),e=_S(),t=wh(),n=xS(),i=nf(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),f=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return M1=l?function(){var E,_,S={assert:function(x){if(!S.has(x))throw new i("Side channel does not contain "+t(x))},delete:function(x){if(l&&x&&(typeof x=="object"||typeof x=="function")){if(E)return m(E,x)}else if(n&&_)return _.delete(x);return!1},get:function(x){return l&&x&&(typeof x=="object"||typeof x=="function")&&E?u(E,x):_&&_.get(x)},has:function(x){return l&&x&&(typeof x=="object"||typeof x=="function")&&E?g(E,x):!!_&&_.has(x)},set:function(x,M){l&&x&&(typeof x=="object"||typeof x=="function")?(E||(E=new l),f(E,x,M)):n&&(_||(_=n()),_.set(x,M))}};return S}:n,M1}var D1,N_;function AF(){if(N_)return D1;N_=1;var r=nf(),e=wh(),t=QN(),n=xS(),i=wF(),l=i||n||t;return D1=function(){var f,g={assert:function(m){if(!g.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!f&&f.delete(m)},get:function(m){return f&&f.get(m)},has:function(m){return!!f&&f.has(m)},set:function(m,R){f||(f=l()),f.set(m,R)}};return g},D1}var O1,F_;function Wm(){if(F_)return O1;F_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return O1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},O1}var P1,j_;function SS(){if(j_)return P1;j_=1;var r=Wm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var w=[],b=0;b<256;++b)w.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return w}(),i=function(b){for(;b.length>1;){var I=b.pop(),O=I.obj[I.prop];if(t(O)){for(var H=[],q=0;q<O.length;++q)typeof O[q]<"u"&&H.push(O[q]);I.obj[I.prop]=H}}},l=function(b,I){for(var O=I&&I.plainObjects?{__proto__:null}:{},H=0;H<b.length;++H)typeof b[H]<"u"&&(O[H]=b[H]);return O},u=function w(b,I,O){if(!I)return b;if(typeof I!="object"&&typeof I!="function"){if(t(b))b.push(I);else if(b&&typeof b=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,I))&&(b[I]=!0);else return[b,I];return b}if(!b||typeof b!="object")return[b].concat(I);var H=b;return t(b)&&!t(I)&&(H=l(b,O)),t(b)&&t(I)?(I.forEach(function(q,z){if(e.call(b,z)){var Y=b[z];Y&&typeof Y=="object"&&q&&typeof q=="object"?b[z]=w(Y,q,O):b.push(q)}else b[z]=q}),b):Object.keys(I).reduce(function(q,z){var Y=I[z];return e.call(q,z)?q[z]=w(q[z],Y,O):q[z]=Y,q},H)},f=function(b,I){return Object.keys(I).reduce(function(O,H){return O[H]=I[H],O},b)},g=function(w,b,I){var O=w.replace(/\+/g," ");if(I==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,R=function(b,I,O,H,q){if(b.length===0)return b;var z=b;if(typeof b=="symbol"?z=Symbol.prototype.toString.call(b):typeof b!="string"&&(z=String(b)),O==="iso-8859-1")return escape(z).replace(/%u[0-9a-f]{4}/gi,function(Q){return"%26%23"+parseInt(Q.slice(2),16)+"%3B"});for(var Y="",fe=0;fe<z.length;fe+=m){for(var X=z.length>=m?z.slice(fe,fe+m):z,he=[],j=0;j<X.length;++j){var re=X.charCodeAt(j);if(re===45||re===46||re===95||re===126||re>=48&&re<=57||re>=65&&re<=90||re>=97&&re<=122||q===r.RFC1738&&(re===40||re===41)){he[he.length]=X.charAt(j);continue}if(re<128){he[he.length]=n[re];continue}if(re<2048){he[he.length]=n[192|re>>6]+n[128|re&63];continue}if(re<55296||re>=57344){he[he.length]=n[224|re>>12]+n[128|re>>6&63]+n[128|re&63];continue}j+=1,re=65536+((re&1023)<<10|X.charCodeAt(j)&1023),he[he.length]=n[240|re>>18]+n[128|re>>12&63]+n[128|re>>6&63]+n[128|re&63]}Y+=he.join("")}return Y},E=function(b){for(var I=[{obj:{o:b},prop:"o"}],O=[],H=0;H<I.length;++H)for(var q=I[H],z=q.obj[q.prop],Y=Object.keys(z),fe=0;fe<Y.length;++fe){var X=Y[fe],he=z[X];typeof he=="object"&&he!==null&&O.indexOf(he)===-1&&(I.push({obj:z,prop:X}),O.push(he))}return i(I),b},_=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},S=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},x=function(b,I){return[].concat(b,I)},M=function(b,I){if(t(b)){for(var O=[],H=0;H<b.length;H+=1)O.push(I(b[H]));return O}return I(b)};return P1={arrayToObject:l,assign:f,combine:x,compact:E,decode:g,encode:R,isBuffer:S,isRegExp:_,maybeMap:M,merge:u},P1}var N1,B_;function TF(){if(B_)return N1;B_=1;var r=AF(),e=SS(),t=Wm(),n=Object.prototype.hasOwnProperty,i={brackets:function(w){return w+"[]"},comma:"comma",indices:function(w,b){return w+"["+b+"]"},repeat:function(w){return w}},l=Array.isArray,u=Array.prototype.push,f=function(M,w){u.apply(M,l(w)?w:[w])},g=Date.prototype.toISOString,m=t.default,R={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:t.formatters[m],indices:!1,serializeDate:function(w){return g.call(w)},skipNulls:!1,strictNullHandling:!1},E=function(w){return typeof w=="string"||typeof w=="number"||typeof w=="boolean"||typeof w=="symbol"||typeof w=="bigint"},_={},S=function M(w,b,I,O,H,q,z,Y,fe,X,he,j,re,Q,J,me,ce,be){for(var ue=w,Se=be,le=0,ae=!1;(Se=Se.get(_))!==void 0&&!ae;){var ge=Se.get(w);if(le+=1,typeof ge<"u"){if(ge===le)throw new RangeError("Cyclic object value");ae=!0}typeof Se.get(_)>"u"&&(le=0)}if(typeof X=="function"?ue=X(b,ue):ue instanceof Date?ue=re(ue):I==="comma"&&l(ue)&&(ue=e.maybeMap(ue,function(Ne){return Ne instanceof Date?re(Ne):Ne})),ue===null){if(q)return fe&&!me?fe(b,R.encoder,ce,"key",Q):b;ue=""}if(E(ue)||e.isBuffer(ue)){if(fe){var Pe=me?b:fe(b,R.encoder,ce,"key",Q);return[J(Pe)+"="+J(fe(ue,R.encoder,ce,"value",Q))]}return[J(b)+"="+J(String(ue))]}var Qe=[];if(typeof ue>"u")return Qe;var pe;if(I==="comma"&&l(ue))me&&fe&&(ue=e.maybeMap(ue,fe)),pe=[{value:ue.length>0?ue.join(",")||null:void 0}];else if(l(X))pe=X;else{var Ie=Object.keys(ue);pe=he?Ie.sort(he):Ie}var Xe=Y?String(b).replace(/\./g,"%2E"):String(b),tt=O&&l(ue)&&ue.length===1?Xe+"[]":Xe;if(H&&l(ue)&&ue.length===0)return tt+"[]";for(var Ue=0;Ue<pe.length;++Ue){var Me=pe[Ue],Ee=typeof Me=="object"&&Me&&typeof Me.value<"u"?Me.value:ue[Me];if(!(z&&Ee===null)){var we=j&&Y?String(Me).replace(/\./g,"%2E"):String(Me),We=l(ue)?typeof I=="function"?I(tt,we):tt:tt+(j?"."+we:"["+we+"]");be.set(w,le);var ct=r();ct.set(_,be),f(Qe,M(Ee,We,I,O,H,q,z,Y,I==="comma"&&me&&l(ue)?null:fe,X,he,j,re,Q,J,me,ce,ct))}}return Qe},x=function(w){if(!w)return R;if(typeof w.allowEmptyArrays<"u"&&typeof w.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof w.encodeDotInKeys<"u"&&typeof w.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(w.encoder!==null&&typeof w.encoder<"u"&&typeof w.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=w.charset||R.charset;if(typeof w.charset<"u"&&w.charset!=="utf-8"&&w.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var I=t.default;if(typeof w.format<"u"){if(!n.call(t.formatters,w.format))throw new TypeError("Unknown format option provided.");I=w.format}var O=t.formatters[I],H=R.filter;(typeof w.filter=="function"||l(w.filter))&&(H=w.filter);var q;if(w.arrayFormat in i?q=w.arrayFormat:"indices"in w?q=w.indices?"indices":"repeat":q=R.arrayFormat,"commaRoundTrip"in w&&typeof w.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var z=typeof w.allowDots>"u"?w.encodeDotInKeys===!0?!0:R.allowDots:!!w.allowDots;return{addQueryPrefix:typeof w.addQueryPrefix=="boolean"?w.addQueryPrefix:R.addQueryPrefix,allowDots:z,allowEmptyArrays:typeof w.allowEmptyArrays=="boolean"?!!w.allowEmptyArrays:R.allowEmptyArrays,arrayFormat:q,charset:b,charsetSentinel:typeof w.charsetSentinel=="boolean"?w.charsetSentinel:R.charsetSentinel,commaRoundTrip:!!w.commaRoundTrip,delimiter:typeof w.delimiter>"u"?R.delimiter:w.delimiter,encode:typeof w.encode=="boolean"?w.encode:R.encode,encodeDotInKeys:typeof w.encodeDotInKeys=="boolean"?w.encodeDotInKeys:R.encodeDotInKeys,encoder:typeof w.encoder=="function"?w.encoder:R.encoder,encodeValuesOnly:typeof w.encodeValuesOnly=="boolean"?w.encodeValuesOnly:R.encodeValuesOnly,filter:H,format:I,formatter:O,serializeDate:typeof w.serializeDate=="function"?w.serializeDate:R.serializeDate,skipNulls:typeof w.skipNulls=="boolean"?w.skipNulls:R.skipNulls,sort:typeof w.sort=="function"?w.sort:null,strictNullHandling:typeof w.strictNullHandling=="boolean"?w.strictNullHandling:R.strictNullHandling}};return N1=function(M,w){var b=M,I=x(w),O,H;typeof I.filter=="function"?(H=I.filter,b=H("",b)):l(I.filter)&&(H=I.filter,O=H);var q=[];if(typeof b!="object"||b===null)return"";var z=i[I.arrayFormat],Y=z==="comma"&&I.commaRoundTrip;O||(O=Object.keys(b)),I.sort&&O.sort(I.sort);for(var fe=r(),X=0;X<O.length;++X){var he=O[X],j=b[he];I.skipNulls&&j===null||f(q,S(j,he,z,Y,I.allowEmptyArrays,I.strictNullHandling,I.skipNulls,I.encodeDotInKeys,I.encode?I.encoder:null,I.filter,I.sort,I.allowDots,I.serializeDate,I.format,I.formatter,I.encodeValuesOnly,I.charset,fe))}var re=q.join(I.delimiter),Q=I.addQueryPrefix===!0?"?":"";return I.charsetSentinel&&(I.charset==="iso-8859-1"?Q+="utf8=%26%2310003%3B&":Q+="utf8=%E2%9C%93&"),re.length>0?Q+re:""},N1}var F1,H_;function EF(){if(H_)return F1;H_=1;var r=SS(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(_){return _.replace(/&#(\d+);/g,function(S,x){return String.fromCharCode(parseInt(x,10))})},l=function(_,S,x){if(_&&typeof _=="string"&&S.comma&&_.indexOf(",")>-1)return _.split(",");if(S.throwOnLimitExceeded&&x>=S.arrayLimit)throw new RangeError("Array limit exceeded. Only "+S.arrayLimit+" element"+(S.arrayLimit===1?"":"s")+" allowed in an array.");return _},u="utf8=%26%2310003%3B",f="utf8=%E2%9C%93",g=function(S,x){var M={__proto__:null},w=x.ignoreQueryPrefix?S.replace(/^\?/,""):S;w=w.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=x.parameterLimit===1/0?void 0:x.parameterLimit,I=w.split(x.delimiter,x.throwOnLimitExceeded?b+1:b);if(x.throwOnLimitExceeded&&I.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var O=-1,H,q=x.charset;if(x.charsetSentinel)for(H=0;H<I.length;++H)I[H].indexOf("utf8=")===0&&(I[H]===f?q="utf-8":I[H]===u&&(q="iso-8859-1"),O=H,H=I.length);for(H=0;H<I.length;++H)if(H!==O){var z=I[H],Y=z.indexOf("]="),fe=Y===-1?z.indexOf("="):Y+1,X,he;fe===-1?(X=x.decoder(z,n.decoder,q,"key"),he=x.strictNullHandling?null:""):(X=x.decoder(z.slice(0,fe),n.decoder,q,"key"),he=r.maybeMap(l(z.slice(fe+1),x,t(M[X])?M[X].length:0),function(re){return x.decoder(re,n.decoder,q,"value")})),he&&x.interpretNumericEntities&&q==="iso-8859-1"&&(he=i(String(he))),z.indexOf("[]=")>-1&&(he=t(he)?[he]:he);var j=e.call(M,X);j&&x.duplicates==="combine"?M[X]=r.combine(M[X],he):(!j||x.duplicates==="last")&&(M[X]=he)}return M},m=function(_,S,x,M){var w=0;if(_.length>0&&_[_.length-1]==="[]"){var b=_.slice(0,-1).join("");w=Array.isArray(S)&&S[b]?S[b].length:0}for(var I=M?S:l(S,x,w),O=_.length-1;O>=0;--O){var H,q=_[O];if(q==="[]"&&x.parseArrays)H=x.allowEmptyArrays&&(I===""||x.strictNullHandling&&I===null)?[]:r.combine([],I);else{H=x.plainObjects?{__proto__:null}:{};var z=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=x.decodeDotInKeys?z.replace(/%2E/g,"."):z,fe=parseInt(Y,10);!x.parseArrays&&Y===""?H={0:I}:!isNaN(fe)&&q!==Y&&String(fe)===Y&&fe>=0&&x.parseArrays&&fe<=x.arrayLimit?(H=[],H[fe]=I):Y!=="__proto__"&&(H[Y]=I)}I=H}return I},R=function(S,x,M,w){if(S){var b=M.allowDots?S.replace(/\.([^.[]+)/g,"[$1]"):S,I=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,H=M.depth>0&&I.exec(b),q=H?b.slice(0,H.index):b,z=[];if(q){if(!M.plainObjects&&e.call(Object.prototype,q)&&!M.allowPrototypes)return;z.push(q)}for(var Y=0;M.depth>0&&(H=O.exec(b))!==null&&Y<M.depth;){if(Y+=1,!M.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!M.allowPrototypes)return;z.push(H[1])}if(H){if(M.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+M.depth+" and strictDepth is true");z.push("["+b.slice(H.index)+"]")}return m(z,x,M,w)}},E=function(S){if(!S)return n;if(typeof S.allowEmptyArrays<"u"&&typeof S.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof S.decodeDotInKeys<"u"&&typeof S.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(S.decoder!==null&&typeof S.decoder<"u"&&typeof S.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof S.charset<"u"&&S.charset!=="utf-8"&&S.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof S.throwOnLimitExceeded<"u"&&typeof S.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var x=typeof S.charset>"u"?n.charset:S.charset,M=typeof S.duplicates>"u"?n.duplicates:S.duplicates;if(M!=="combine"&&M!=="first"&&M!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var w=typeof S.allowDots>"u"?S.decodeDotInKeys===!0?!0:n.allowDots:!!S.allowDots;return{allowDots:w,allowEmptyArrays:typeof S.allowEmptyArrays=="boolean"?!!S.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof S.allowPrototypes=="boolean"?S.allowPrototypes:n.allowPrototypes,allowSparse:typeof S.allowSparse=="boolean"?S.allowSparse:n.allowSparse,arrayLimit:typeof S.arrayLimit=="number"?S.arrayLimit:n.arrayLimit,charset:x,charsetSentinel:typeof S.charsetSentinel=="boolean"?S.charsetSentinel:n.charsetSentinel,comma:typeof S.comma=="boolean"?S.comma:n.comma,decodeDotInKeys:typeof S.decodeDotInKeys=="boolean"?S.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof S.decoder=="function"?S.decoder:n.decoder,delimiter:typeof S.delimiter=="string"||r.isRegExp(S.delimiter)?S.delimiter:n.delimiter,depth:typeof S.depth=="number"||S.depth===!1?+S.depth:n.depth,duplicates:M,ignoreQueryPrefix:S.ignoreQueryPrefix===!0,interpretNumericEntities:typeof S.interpretNumericEntities=="boolean"?S.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof S.parameterLimit=="number"?S.parameterLimit:n.parameterLimit,parseArrays:S.parseArrays!==!1,plainObjects:typeof S.plainObjects=="boolean"?S.plainObjects:n.plainObjects,strictDepth:typeof S.strictDepth=="boolean"?!!S.strictDepth:n.strictDepth,strictNullHandling:typeof S.strictNullHandling=="boolean"?S.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof S.throwOnLimitExceeded=="boolean"?S.throwOnLimitExceeded:!1}};return F1=function(_,S){var x=E(S);if(_===""||_===null||typeof _>"u")return x.plainObjects?{__proto__:null}:{};for(var M=typeof _=="string"?g(_,x):_,w=x.plainObjects?{__proto__:null}:{},b=Object.keys(M),I=0;I<b.length;++I){var O=b[I],H=R(O,M[O],x,typeof _=="string");w=r.merge(w,H,x)}return x.allowSparse===!0?w:r.compact(w)},F1}var j1,q_;function kF(){if(q_)return j1;q_=1;var r=TF(),e=EF(),t=Wm();return j1={formats:t,parse:e,stringify:r},j1}var RF=kF();const IF=al(RF),am={StoredContexts:{},defaultHandler:()=>{}},CS={Init:()=>{},Create:r=>{const e=r.method+r.url;return am.StoredContexts[e]=r,LF(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{am.defaultHandler=r}};function LF(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:f}=r;const{po:g,onStream:m,onStreamEnd:R,noDefaultHandle:E=[]}=n??{};(f==="query"||l==="GET")&&g!==void 0&&(i+="?"+IF.stringify(g,{arrayFormat:"comma"}));const _={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(f==="form"){const M=new FormData;if(g!==void 0)for(const w in g){const b=g[w];M.append(w,b)}_.body=M}else(f==="body"||f===void 0&&r.method!=="GET")&&(_.body=JSON.stringify(g),_.headers["Content-Type"]="application/json;charset=UTF-8");let S={errorCode:0,message:""};const x=Date.now();i=CS.FetchBaseUrl()+i;try{let M=await fetch(i,_);if(M.ok===!1)return S.errorCode=M.status,S.message=M.statusText,S;{const w=new TextDecoder("utf-8");if(u){if(M.body){let b=M.body.getReader(),I="";for(;;){const O=await b.read();if(O.done)break;const H=w.decode(O.value).trim();I+=H;let q=null;try{const z=H.split("\0");let Y=z[z.length-1];for(let fe=z.length-2;fe>=0;fe--)if(z[fe].trim().length!==0){Y=z[fe];break}q=await JSON.parse(Y)}catch{try{const Y=I.split("\0");let fe=Y[Y.length-1];for(let X=Y.length-2;X>=0;X--)if(Y[X].trim().length!==0){fe=Y[X];break}q=await JSON.parse(fe)}catch{}}if(q!=null&&(Object.keys(q).includes("err_code")?S.errorCode=q.err_code:(S.errorCode=0,S.data=q,I="",O.done?R==null||R(S.data):m==null||m(S.data))),O.done)break}}}else if(M.body){const I=await M.body.getReader().read(),O=w.decode(I.value);if(O==="null")return S;{let H=await JSON.parse(O.replaceAll("\0",""));Object.keys(H).includes("err_code")?(S.errorCode=H.err_code,S.message=H.err_msg):S.data=H}}}}catch(M){console.warn(M),S.errorCode=-1,S.message=M.message}return console.debug(`${e} ${Date.now()-x}ms`),E!==!0&&await am.defaultHandler(S,E),S}}}async function MF(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function DF(r,e){var f,g;const t=r.split(","),n=(g=(f=t[0])==null?void 0:f.match(/:(.*?);/))==null?void 0:g[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const OF={toBase64:MF,toFile:DF};exports.ABase=$r;exports.ABaseStyleKeys=a2;exports.AButton=Fi;exports.AButtonStyleKeys=c2;exports.AButtonTypes=c5;exports.ACheckBox=Zu;exports.ACheckBoxStyleKeys=h2;exports.AChip=hm;exports.AChipKeys=M2;exports.AChips=AT;exports.AClock=jT;exports.AColFrame=O2;exports.ADatePicker=mm;exports.ADatePickerStyleKeys=C2;exports.ADatePickerTypes=fE;exports.ADateRangePicker=pm;exports.ADateRangePickerStyleKeys=w2;exports.ADialog=_E;exports.ADialogStyleKeys=p2;exports.ADialogTypes=bE;exports.ADivideFrame=hT;exports.AEditor=cN;exports.AEditorStyleKeys=d2;exports.AFileBox=LE;exports.AFileBoxStyleKeys=_2;exports.AFileUploader=JE;exports.AFloatMenu=j2;exports.AFloatMenuKeys=k2;exports.AFrameStyleKeys=E2;exports.AGrow=Qc;exports.AIcon=jr;exports.AIconButton=_i;exports.AIconButtonStyleKeys=A2;exports.AIconButtonTypes=u5;exports.AIconHOC=H4;exports.AIcons=um;exports.AInput=tc;exports.AInputStyleKeys=u2;exports.AInputTypes=XT;exports.AListView=ck;exports.AListViewStyleKeys=x2;exports.ALoadingBorder=vm;exports.ALoadingBorderKeys=R2;exports.AMultiSelect=Fk;exports.AMultiSelectStyleKeys=m2;exports.ANumInput=ik;exports.AOverflowFrame=Sa;exports.ARadioSelect=Sk;exports.ARadioSelectKeys=L2;exports.ARowFrame=Sn;exports.ASelect=rc;exports.ASelectStyleKeys=g2;exports.ASelectTypes=d6;exports.ASpace=mn;exports.AStepper=Jk;exports.AStepperStyleKeys=S2;exports.ASwitch=e2;exports.ASwitchFrame=P2;exports.ASwitchStyleKeys=y2;exports.ATab=q2;exports.ATabStyleKeys=b2;exports.ATabTypes=u8;exports.ATable=bR;exports.ATableStyleKeys=T2;exports.AText=V2;exports.ATextArea=IR;exports.ATextAreaStyleKeys=f2;exports.ATextAreaTypes=RR;exports.AThemeButton=K5;exports.AThemes=Ff;exports.ATooltip=Q_;exports.ATooltipStyleKeys=l2;exports.ATree=VN;exports.ATreeStyleKeys=v2;exports.AWrap=ec;exports.AWrapKeys=I2;exports.AWrapTypes=R5;exports.ApiContext=CS;exports.BodyStyleKeys=s2;exports.CreateADC=TE;exports.DefaultOptionRenderer=H2;exports.EDir12=ef;exports.EDir4=yi;exports.FileSizeTrans=Kc;exports.Icons=ih;exports.IsCursorPointer=V_;exports.IsFixedShape=W_;exports.IsInteractive=G_;exports.NoSelect=U_;exports.Resources=hn;exports.SetResources=C5;exports.alphanumericRegex=ET;exports.bound=Nf;exports.cbF=Lr;exports.changeSemanticMode=dm;exports.componentStyleKeys=q5;exports.createEvent=Gc;exports.dateF=Kt;exports.defaultPredicate=$2;exports.dlgF=EE;exports.emailIdRegex=RT;exports.emailRegex=kT;exports.fileF=OF;exports.getMonthsOptions=Kf;exports.getYearsOptions=gm;exports.hangulRegex=LT;exports.hexRegex=IT;exports.noHanguljamoRegex=DT;exports.noSpaceRegex=MT;exports.numF=B2;exports.objF=er;exports.paletteKeys=t2;exports.paletteModes=oh;exports.passwordRegex=PT;exports.refinedDesignTokens=xi;exports.sF=Fe;exports.semanticKeys=i2;exports.semanticModes=Gu;exports.setDir12Style=fm;exports.setDir12StyleElem=X_;exports.specialCharRegex=OT;exports.strF=F2;exports.tableF=tl;exports.textMeasurement=Zc;exports.treeF=rl;exports.useADialogCore=wE;exports.useADialogCores=CE;exports.useEvent=W2;exports.useInit=z2;exports.useValues=nn;exports.uuidRegex=NT;