var gS=Object.defineProperty;var _S=(it,at,lt)=>at in it?gS(it,at,{enumerable:!0,configurable:!0,writable:!0,value:lt}):it[at]=lt;var Hr=(it,at,lt)=>(_S(it,typeof at!="symbol"?at+"":at,lt),lt),E1=(it,at,lt)=>{if(!at.has(it))throw TypeError("Cannot "+lt)};var Yt=(it,at,lt)=>(E1(it,at,"read from private field"),lt?lt.call(it):at.get(it)),An=(it,at,lt)=>{if(at.has(it))throw TypeError("Cannot add the same private member more than once");at instanceof WeakSet?at.add(it):at.set(it,lt)},Wn=(it,at,lt,ut)=>(E1(it,at,"write to private field"),ut?ut.call(it,lt):at.set(it,lt),lt);var $u=(it,at,lt,ut)=>({set _(ct){Wn(it,at,ct,lt)},get _(){return Yt(it,at,ut)}}),Nn=(it,at,lt)=>(E1(it,at,"access private method"),lt);function _mergeNamespaces(it,at){for(var lt=0;lt<at.length;lt++){const ut=at[lt];if(typeof ut!="string"&&!Array.isArray(ut)){for(const ct in ut)if(ct!=="default"&&!(ct in it)){const dt=Object.getOwnPropertyDescriptor(ut,ct);dt&&Object.defineProperty(it,ct,dt.get?dt:{enumerable:!0,get:()=>ut[ct]})}}}return Object.freeze(Object.defineProperty(it,Symbol.toStringTag,{value:"Module"}))}var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(it){return it&&it.__esModule&&Object.prototype.hasOwnProperty.call(it,"default")?it.default:it}function getAugmentedNamespace(it){if(it.__esModule)return it;var at=it.default;if(typeof at=="function"){var lt=function ut(){return this instanceof ut?Reflect.construct(at,arguments,this.constructor):at.apply(this,arguments)};lt.prototype=at.prototype}else lt={};return Object.defineProperty(lt,"__esModule",{value:!0}),Object.keys(it).forEach(function(ut){var ct=Object.getOwnPropertyDescriptor(it,ut);Object.defineProperty(lt,ut,ct.get?ct:{enumerable:!0,get:function(){return it[ut]}})}),lt}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var l$3=Symbol.for("react.element"),n$4=Symbol.for("react.portal"),p$4=Symbol.for("react.fragment"),q$4=Symbol.for("react.strict_mode"),r$6=Symbol.for("react.profiler"),t$3=Symbol.for("react.provider"),u$2=Symbol.for("react.context"),v$4=Symbol.for("react.forward_ref"),w$1=Symbol.for("react.suspense"),x$2=Symbol.for("react.memo"),y$3=Symbol.for("react.lazy"),z$4=Symbol.iterator;function A$4(it){return it===null||typeof it!="object"?null:(it=z$4&&it[z$4]||it["@@iterator"],typeof it=="function"?it:null)}var B$4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$4=Object.assign,D$4={};function E$4(it,at,lt){this.props=it,this.context=at,this.refs=D$4,this.updater=lt||B$4}E$4.prototype.isReactComponent={};E$4.prototype.setState=function(it,at){if(typeof it!="object"&&typeof it!="function"&&it!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,it,at,"setState")};E$4.prototype.forceUpdate=function(it){this.updater.enqueueForceUpdate(this,it,"forceUpdate")};function F$3(){}F$3.prototype=E$4.prototype;function G$3(it,at,lt){this.props=it,this.context=at,this.refs=D$4,this.updater=lt||B$4}var H$4=G$3.prototype=new F$3;H$4.constructor=G$3;C$4(H$4,E$4.prototype);H$4.isPureReactComponent=!0;var I$4=Array.isArray,J$2=Object.prototype.hasOwnProperty,K$3={current:null},L$4={key:!0,ref:!0,__self:!0,__source:!0};function M$4(it,at,lt){var ut,ct={},dt=null,ft=null;if(at!=null)for(ut in at.ref!==void 0&&(ft=at.ref),at.key!==void 0&&(dt=""+at.key),at)J$2.call(at,ut)&&!L$4.hasOwnProperty(ut)&&(ct[ut]=at[ut]);var mt=arguments.length-2;if(mt===1)ct.children=lt;else if(1<mt){for(var pt=Array(mt),gt=0;gt<mt;gt++)pt[gt]=arguments[gt+2];ct.children=pt}if(it&&it.defaultProps)for(ut in mt=it.defaultProps,mt)ct[ut]===void 0&&(ct[ut]=mt[ut]);return{$$typeof:l$3,type:it,key:dt,ref:ft,props:ct,_owner:K$3.current}}function N$4(it,at){return{$$typeof:l$3,type:it.type,key:at,ref:it.ref,props:it.props,_owner:it._owner}}function O$4(it){return typeof it=="object"&&it!==null&&it.$$typeof===l$3}function escape$2(it){var at={"=":"=0",":":"=2"};return"$"+it.replace(/[=:]/g,function(lt){return at[lt]})}var P$4=/\/+/g;function Q$4(it,at){return typeof it=="object"&&it!==null&&it.key!=null?escape$2(""+it.key):at.toString(36)}function R$4(it,at,lt,ut,ct){var dt=typeof it;(dt==="undefined"||dt==="boolean")&&(it=null);var ft=!1;if(it===null)ft=!0;else switch(dt){case"string":case"number":ft=!0;break;case"object":switch(it.$$typeof){case l$3:case n$4:ft=!0}}if(ft)return ft=it,ct=ct(ft),it=ut===""?"."+Q$4(ft,0):ut,I$4(ct)?(lt="",it!=null&&(lt=it.replace(P$4,"$&/")+"/"),R$4(ct,at,lt,"",function(gt){return gt})):ct!=null&&(O$4(ct)&&(ct=N$4(ct,lt+(!ct.key||ft&&ft.key===ct.key?"":(""+ct.key).replace(P$4,"$&/")+"/")+it)),at.push(ct)),1;if(ft=0,ut=ut===""?".":ut+":",I$4(it))for(var mt=0;mt<it.length;mt++){dt=it[mt];var pt=ut+Q$4(dt,mt);ft+=R$4(dt,at,lt,pt,ct)}else if(pt=A$4(it),typeof pt=="function")for(it=pt.call(it),mt=0;!(dt=it.next()).done;)dt=dt.value,pt=ut+Q$4(dt,mt++),ft+=R$4(dt,at,lt,pt,ct);else if(dt==="object")throw at=String(it),Error("Objects are not valid as a React child (found: "+(at==="[object Object]"?"object with keys {"+Object.keys(it).join(", ")+"}":at)+"). If you meant to render a collection of children, use an array instead.");return ft}function S$3(it,at,lt){if(it==null)return it;var ut=[],ct=0;return R$4(it,ut,"","",function(dt){return at.call(lt,dt,ct++)}),ut}function T$4(it){if(it._status===-1){var at=it._result;at=at(),at.then(function(lt){(it._status===0||it._status===-1)&&(it._status=1,it._result=lt)},function(lt){(it._status===0||it._status===-1)&&(it._status=2,it._result=lt)}),it._status===-1&&(it._status=0,it._result=at)}if(it._status===1)return it._result.default;throw it._result}var U$3={current:null},V$3={transition:null},W$2={ReactCurrentDispatcher:U$3,ReactCurrentBatchConfig:V$3,ReactCurrentOwner:K$3};react_production_min.Children={map:S$3,forEach:function(it,at,lt){S$3(it,function(){at.apply(this,arguments)},lt)},count:function(it){var at=0;return S$3(it,function(){at++}),at},toArray:function(it){return S$3(it,function(at){return at})||[]},only:function(it){if(!O$4(it))throw Error("React.Children.only expected to receive a single React element child.");return it}};react_production_min.Component=E$4;react_production_min.Fragment=p$4;react_production_min.Profiler=r$6;react_production_min.PureComponent=G$3;react_production_min.StrictMode=q$4;react_production_min.Suspense=w$1;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$2;react_production_min.cloneElement=function(it,at,lt){if(it==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+it+".");var ut=C$4({},it.props),ct=it.key,dt=it.ref,ft=it._owner;if(at!=null){if(at.ref!==void 0&&(dt=at.ref,ft=K$3.current),at.key!==void 0&&(ct=""+at.key),it.type&&it.type.defaultProps)var mt=it.type.defaultProps;for(pt in at)J$2.call(at,pt)&&!L$4.hasOwnProperty(pt)&&(ut[pt]=at[pt]===void 0&&mt!==void 0?mt[pt]:at[pt])}var pt=arguments.length-2;if(pt===1)ut.children=lt;else if(1<pt){mt=Array(pt);for(var gt=0;gt<pt;gt++)mt[gt]=arguments[gt+2];ut.children=mt}return{$$typeof:l$3,type:it.type,key:ct,ref:dt,props:ut,_owner:ft}};react_production_min.createContext=function(it){return it={$$typeof:u$2,_currentValue:it,_currentValue2:it,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},it.Provider={$$typeof:t$3,_context:it},it.Consumer=it};react_production_min.createElement=M$4;react_production_min.createFactory=function(it){var at=M$4.bind(null,it);return at.type=it,at};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(it){return{$$typeof:v$4,render:it}};react_production_min.isValidElement=O$4;react_production_min.lazy=function(it){return{$$typeof:y$3,_payload:{_status:-1,_result:it},_init:T$4}};react_production_min.memo=function(it,at){return{$$typeof:x$2,type:it,compare:at===void 0?null:at}};react_production_min.startTransition=function(it){var at=V$3.transition;V$3.transition={};try{it()}finally{V$3.transition=at}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};react_production_min.useCallback=function(it,at){return U$3.current.useCallback(it,at)};react_production_min.useContext=function(it){return U$3.current.useContext(it)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(it){return U$3.current.useDeferredValue(it)};react_production_min.useEffect=function(it,at){return U$3.current.useEffect(it,at)};react_production_min.useId=function(){return U$3.current.useId()};react_production_min.useImperativeHandle=function(it,at,lt){return U$3.current.useImperativeHandle(it,at,lt)};react_production_min.useInsertionEffect=function(it,at){return U$3.current.useInsertionEffect(it,at)};react_production_min.useLayoutEffect=function(it,at){return U$3.current.useLayoutEffect(it,at)};react_production_min.useMemo=function(it,at){return U$3.current.useMemo(it,at)};react_production_min.useReducer=function(it,at,lt){return U$3.current.useReducer(it,at,lt)};react_production_min.useRef=function(it){return U$3.current.useRef(it)};react_production_min.useState=function(it){return U$3.current.useState(it)};react_production_min.useSyncExternalStore=function(it,at,lt){return U$3.current.useSyncExternalStore(it,at,lt)};react_production_min.useTransition=function(){return U$3.current.useTransition()};react_production_min.version="18.2.0";react.exports=react_production_min;var reactExports=react.exports;const b$2=getDefaultExportFromCjs(reactExports),React=_mergeNamespaces({__proto__:null,default:b$2},[reactExports]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var f$3=reactExports,k$3=Symbol.for("react.element"),l$2=Symbol.for("react.fragment"),m$3=Object.prototype.hasOwnProperty,n$3=f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$3={key:!0,ref:!0,__self:!0,__source:!0};function q$3(it,at,lt){var ut,ct={},dt=null,ft=null;lt!==void 0&&(dt=""+lt),at.key!==void 0&&(dt=""+at.key),at.ref!==void 0&&(ft=at.ref);for(ut in at)m$3.call(at,ut)&&!p$3.hasOwnProperty(ut)&&(ct[ut]=at[ut]);if(it&&it.defaultProps)for(ut in at=it.defaultProps,at)ct[ut]===void 0&&(ct[ut]=at[ut]);return{$$typeof:k$3,type:it,key:dt,ref:ft,props:ct,_owner:n$3.current}}reactJsxRuntime_production_min.Fragment=l$2;reactJsxRuntime_production_min.jsx=q$3;reactJsxRuntime_production_min.jsxs=q$3;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(it){function at(nn,on){var rn=nn.length;nn.push(on);e:for(;0<rn;){var Jt=rn-1>>>1,Zt=nn[Jt];if(0<ct(Zt,on))nn[Jt]=on,nn[rn]=Zt,rn=Jt;else break e}}function lt(nn){return nn.length===0?null:nn[0]}function ut(nn){if(nn.length===0)return null;var on=nn[0],rn=nn.pop();if(rn!==on){nn[0]=rn;e:for(var Jt=0,Zt=nn.length,Wt=Zt>>>1;Jt<Wt;){var jt=2*(Jt+1)-1,Bt=nn[jt],Dt=jt+1,zt=nn[Dt];if(0>ct(Bt,rn))Dt<Zt&&0>ct(zt,Bt)?(nn[Jt]=zt,nn[Dt]=rn,Jt=Dt):(nn[Jt]=Bt,nn[jt]=rn,Jt=jt);else if(Dt<Zt&&0>ct(zt,rn))nn[Jt]=zt,nn[Dt]=rn,Jt=Dt;else break e}}return on}function ct(nn,on){var rn=nn.sortIndex-on.sortIndex;return rn!==0?rn:nn.id-on.id}if(typeof performance=="object"&&typeof performance.now=="function"){var dt=performance;it.unstable_now=function(){return dt.now()}}else{var ft=Date,mt=ft.now();it.unstable_now=function(){return ft.now()-mt}}var pt=[],gt=[],vt=1,wt=null,yt=3,bt=!1,Ct=!1,Et=!1,kt=typeof setTimeout=="function"?setTimeout:null,xt=typeof clearTimeout=="function"?clearTimeout:null,St=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ot(nn){for(var on=lt(gt);on!==null;){if(on.callback===null)ut(gt);else if(on.startTime<=nn)ut(gt),on.sortIndex=on.expirationTime,at(pt,on);else break;on=lt(gt)}}function At(nn){if(Et=!1,Ot(nn),!Ct)if(lt(pt)!==null)Ct=!0,tn(Tt);else{var on=lt(gt);on!==null&&ln(At,on.startTime-nn)}}function Tt(nn,on){Ct=!1,Et&&(Et=!1,xt(Rt),Rt=-1),bt=!0;var rn=yt;try{for(Ot(on),wt=lt(pt);wt!==null&&(!(wt.expirationTime>on)||nn&&!Mt());){var Jt=wt.callback;if(typeof Jt=="function"){wt.callback=null,yt=wt.priorityLevel;var Zt=Jt(wt.expirationTime<=on);on=it.unstable_now(),typeof Zt=="function"?wt.callback=Zt:wt===lt(pt)&&ut(pt),Ot(on)}else ut(pt);wt=lt(pt)}if(wt!==null)var Wt=!0;else{var jt=lt(gt);jt!==null&&ln(At,jt.startTime-on),Wt=!1}return Wt}finally{wt=null,yt=rn,bt=!1}}var $t=!1,Lt=null,Rt=-1,It=5,Ft=-1;function Mt(){return!(it.unstable_now()-Ft<It)}function Ht(){if(Lt!==null){var nn=it.unstable_now();Ft=nn;var on=!0;try{on=Lt(!0,nn)}finally{on?Vt():($t=!1,Lt=null)}}else $t=!1}var Vt;if(typeof St=="function")Vt=function(){St(Ht)};else if(typeof MessageChannel<"u"){var Nt=new MessageChannel,Gt=Nt.port2;Nt.port1.onmessage=Ht,Vt=function(){Gt.postMessage(null)}}else Vt=function(){kt(Ht,0)};function tn(nn){Lt=nn,$t||($t=!0,Vt())}function ln(nn,on){Rt=kt(function(){nn(it.unstable_now())},on)}it.unstable_IdlePriority=5,it.unstable_ImmediatePriority=1,it.unstable_LowPriority=4,it.unstable_NormalPriority=3,it.unstable_Profiling=null,it.unstable_UserBlockingPriority=2,it.unstable_cancelCallback=function(nn){nn.callback=null},it.unstable_continueExecution=function(){Ct||bt||(Ct=!0,tn(Tt))},it.unstable_forceFrameRate=function(nn){0>nn||125<nn?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):It=0<nn?Math.floor(1e3/nn):5},it.unstable_getCurrentPriorityLevel=function(){return yt},it.unstable_getFirstCallbackNode=function(){return lt(pt)},it.unstable_next=function(nn){switch(yt){case 1:case 2:case 3:var on=3;break;default:on=yt}var rn=yt;yt=on;try{return nn()}finally{yt=rn}},it.unstable_pauseExecution=function(){},it.unstable_requestPaint=function(){},it.unstable_runWithPriority=function(nn,on){switch(nn){case 1:case 2:case 3:case 4:case 5:break;default:nn=3}var rn=yt;yt=nn;try{return on()}finally{yt=rn}},it.unstable_scheduleCallback=function(nn,on,rn){var Jt=it.unstable_now();switch(typeof rn=="object"&&rn!==null?(rn=rn.delay,rn=typeof rn=="number"&&0<rn?Jt+rn:Jt):rn=Jt,nn){case 1:var Zt=-1;break;case 2:Zt=250;break;case 5:Zt=1073741823;break;case 4:Zt=1e4;break;default:Zt=5e3}return Zt=rn+Zt,nn={id:vt++,callback:on,priorityLevel:nn,startTime:rn,expirationTime:Zt,sortIndex:-1},rn>Jt?(nn.sortIndex=rn,at(gt,nn),lt(pt)===null&&nn===lt(gt)&&(Et?(xt(Rt),Rt=-1):Et=!0,ln(At,rn-Jt))):(nn.sortIndex=Zt,at(pt,nn),Ct||bt||(Ct=!0,tn(Tt))),nn},it.unstable_shouldYield=Mt,it.unstable_wrapCallback=function(nn){var on=yt;return function(){var rn=yt;yt=on;try{return nn.apply(this,arguments)}finally{yt=rn}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var aa=reactExports,ca=schedulerExports;function p$2(it){for(var at="https://reactjs.org/docs/error-decoder.html?invariant="+it,lt=1;lt<arguments.length;lt++)at+="&args[]="+encodeURIComponent(arguments[lt]);return"Minified React error #"+it+"; visit "+at+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(it,at){ha(it,at),ha(it+"Capture",at)}function ha(it,at){for(ea[it]=at,it=0;it<at.length;it++)da.add(at[it])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(it){return ja.call(ma,it)?!0:ja.call(la,it)?!1:ka.test(it)?ma[it]=!0:(la[it]=!0,!1)}function pa(it,at,lt,ut){if(lt!==null&&lt.type===0)return!1;switch(typeof at){case"function":case"symbol":return!0;case"boolean":return ut?!1:lt!==null?!lt.acceptsBooleans:(it=it.toLowerCase().slice(0,5),it!=="data-"&&it!=="aria-");default:return!1}}function qa(it,at,lt,ut){if(at===null||typeof at>"u"||pa(it,at,lt,ut))return!0;if(ut)return!1;if(lt!==null)switch(lt.type){case 3:return!at;case 4:return at===!1;case 5:return isNaN(at);case 6:return isNaN(at)||1>at}return!1}function v$3(it,at,lt,ut,ct,dt,ft){this.acceptsBooleans=at===2||at===3||at===4,this.attributeName=ut,this.attributeNamespace=ct,this.mustUseProperty=lt,this.propertyName=it,this.type=at,this.sanitizeURL=dt,this.removeEmptyString=ft}var z$3={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(it){z$3[it]=new v$3(it,0,!1,it,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(it){var at=it[0];z$3[at]=new v$3(at,1,!1,it[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(it){z$3[it]=new v$3(it,2,!1,it.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(it){z$3[it]=new v$3(it,2,!1,it,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(it){z$3[it]=new v$3(it,3,!1,it.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(it){z$3[it]=new v$3(it,3,!0,it,null,!1,!1)});["capture","download"].forEach(function(it){z$3[it]=new v$3(it,4,!1,it,null,!1,!1)});["cols","rows","size","span"].forEach(function(it){z$3[it]=new v$3(it,6,!1,it,null,!1,!1)});["rowSpan","start"].forEach(function(it){z$3[it]=new v$3(it,5,!1,it.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(it){return it[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(it){var at=it.replace(ra,sa);z$3[at]=new v$3(at,1,!1,it,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(it){var at=it.replace(ra,sa);z$3[at]=new v$3(at,1,!1,it,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(it){var at=it.replace(ra,sa);z$3[at]=new v$3(at,1,!1,it,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(it){z$3[it]=new v$3(it,1,!1,it.toLowerCase(),null,!1,!1)});z$3.xlinkHref=new v$3("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(it){z$3[it]=new v$3(it,1,!1,it.toLowerCase(),null,!0,!0)});function ta(it,at,lt,ut){var ct=z$3.hasOwnProperty(at)?z$3[at]:null;(ct!==null?ct.type!==0:ut||!(2<at.length)||at[0]!=="o"&&at[0]!=="O"||at[1]!=="n"&&at[1]!=="N")&&(qa(at,lt,ct,ut)&&(lt=null),ut||ct===null?oa(at)&&(lt===null?it.removeAttribute(at):it.setAttribute(at,""+lt)):ct.mustUseProperty?it[ct.propertyName]=lt===null?ct.type===3?!1:"":lt:(at=ct.attributeName,ut=ct.attributeNamespace,lt===null?it.removeAttribute(at):(ct=ct.type,lt=ct===3||ct===4&&lt===!0?"":""+lt,ut?it.setAttributeNS(ut,at,lt):it.setAttribute(at,lt))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(it){return it===null||typeof it!="object"?null:(it=Ja&&it[Ja]||it["@@iterator"],typeof it=="function"?it:null)}var A$3=Object.assign,La;function Ma(it){if(La===void 0)try{throw Error()}catch(lt){var at=lt.stack.trim().match(/\n( *(at )?)/);La=at&&at[1]||""}return`
`+La+it}var Na=!1;function Oa(it,at){if(!it||Na)return"";Na=!0;var lt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(at)if(at=function(){throw Error()},Object.defineProperty(at.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(at,[])}catch(gt){var ut=gt}Reflect.construct(it,[],at)}else{try{at.call()}catch(gt){ut=gt}it.call(at.prototype)}else{try{throw Error()}catch(gt){ut=gt}it()}}catch(gt){if(gt&&ut&&typeof gt.stack=="string"){for(var ct=gt.stack.split(`
`),dt=ut.stack.split(`
`),ft=ct.length-1,mt=dt.length-1;1<=ft&&0<=mt&&ct[ft]!==dt[mt];)mt--;for(;1<=ft&&0<=mt;ft--,mt--)if(ct[ft]!==dt[mt]){if(ft!==1||mt!==1)do if(ft--,mt--,0>mt||ct[ft]!==dt[mt]){var pt=`
`+ct[ft].replace(" at new "," at ");return it.displayName&&pt.includes("<anonymous>")&&(pt=pt.replace("<anonymous>",it.displayName)),pt}while(1<=ft&&0<=mt);break}}}finally{Na=!1,Error.prepareStackTrace=lt}return(it=it?it.displayName||it.name:"")?Ma(it):""}function Pa(it){switch(it.tag){case 5:return Ma(it.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return it=Oa(it.type,!1),it;case 11:return it=Oa(it.type.render,!1),it;case 1:return it=Oa(it.type,!0),it;default:return""}}function Qa(it){if(it==null)return null;if(typeof it=="function")return it.displayName||it.name||null;if(typeof it=="string")return it;switch(it){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof it=="object")switch(it.$$typeof){case Ca:return(it.displayName||"Context")+".Consumer";case Ba:return(it._context.displayName||"Context")+".Provider";case Da:var at=it.render;return it=it.displayName,it||(it=at.displayName||at.name||"",it=it!==""?"ForwardRef("+it+")":"ForwardRef"),it;case Ga:return at=it.displayName||null,at!==null?at:Qa(it.type)||"Memo";case Ha:at=it._payload,it=it._init;try{return Qa(it(at))}catch{}}return null}function Ra(it){var at=it.type;switch(it.tag){case 24:return"Cache";case 9:return(at.displayName||"Context")+".Consumer";case 10:return(at._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return it=at.render,it=it.displayName||it.name||"",at.displayName||(it!==""?"ForwardRef("+it+")":"ForwardRef");case 7:return"Fragment";case 5:return at;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(at);case 8:return at===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof at=="function")return at.displayName||at.name||null;if(typeof at=="string")return at}return null}function Sa(it){switch(typeof it){case"boolean":case"number":case"string":case"undefined":return it;case"object":return it;default:return""}}function Ta(it){var at=it.type;return(it=it.nodeName)&&it.toLowerCase()==="input"&&(at==="checkbox"||at==="radio")}function Ua(it){var at=Ta(it)?"checked":"value",lt=Object.getOwnPropertyDescriptor(it.constructor.prototype,at),ut=""+it[at];if(!it.hasOwnProperty(at)&&typeof lt<"u"&&typeof lt.get=="function"&&typeof lt.set=="function"){var ct=lt.get,dt=lt.set;return Object.defineProperty(it,at,{configurable:!0,get:function(){return ct.call(this)},set:function(ft){ut=""+ft,dt.call(this,ft)}}),Object.defineProperty(it,at,{enumerable:lt.enumerable}),{getValue:function(){return ut},setValue:function(ft){ut=""+ft},stopTracking:function(){it._valueTracker=null,delete it[at]}}}}function Va(it){it._valueTracker||(it._valueTracker=Ua(it))}function Wa(it){if(!it)return!1;var at=it._valueTracker;if(!at)return!0;var lt=at.getValue(),ut="";return it&&(ut=Ta(it)?it.checked?"true":"false":it.value),it=ut,it!==lt?(at.setValue(it),!0):!1}function Xa(it){if(it=it||(typeof document<"u"?document:void 0),typeof it>"u")return null;try{return it.activeElement||it.body}catch{return it.body}}function Ya(it,at){var lt=at.checked;return A$3({},at,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:lt??it._wrapperState.initialChecked})}function Za(it,at){var lt=at.defaultValue==null?"":at.defaultValue,ut=at.checked!=null?at.checked:at.defaultChecked;lt=Sa(at.value!=null?at.value:lt),it._wrapperState={initialChecked:ut,initialValue:lt,controlled:at.type==="checkbox"||at.type==="radio"?at.checked!=null:at.value!=null}}function ab(it,at){at=at.checked,at!=null&&ta(it,"checked",at,!1)}function bb(it,at){ab(it,at);var lt=Sa(at.value),ut=at.type;if(lt!=null)ut==="number"?(lt===0&&it.value===""||it.value!=lt)&&(it.value=""+lt):it.value!==""+lt&&(it.value=""+lt);else if(ut==="submit"||ut==="reset"){it.removeAttribute("value");return}at.hasOwnProperty("value")?cb(it,at.type,lt):at.hasOwnProperty("defaultValue")&&cb(it,at.type,Sa(at.defaultValue)),at.checked==null&&at.defaultChecked!=null&&(it.defaultChecked=!!at.defaultChecked)}function db(it,at,lt){if(at.hasOwnProperty("value")||at.hasOwnProperty("defaultValue")){var ut=at.type;if(!(ut!=="submit"&&ut!=="reset"||at.value!==void 0&&at.value!==null))return;at=""+it._wrapperState.initialValue,lt||at===it.value||(it.value=at),it.defaultValue=at}lt=it.name,lt!==""&&(it.name=""),it.defaultChecked=!!it._wrapperState.initialChecked,lt!==""&&(it.name=lt)}function cb(it,at,lt){(at!=="number"||Xa(it.ownerDocument)!==it)&&(lt==null?it.defaultValue=""+it._wrapperState.initialValue:it.defaultValue!==""+lt&&(it.defaultValue=""+lt))}var eb=Array.isArray;function fb(it,at,lt,ut){if(it=it.options,at){at={};for(var ct=0;ct<lt.length;ct++)at["$"+lt[ct]]=!0;for(lt=0;lt<it.length;lt++)ct=at.hasOwnProperty("$"+it[lt].value),it[lt].selected!==ct&&(it[lt].selected=ct),ct&&ut&&(it[lt].defaultSelected=!0)}else{for(lt=""+Sa(lt),at=null,ct=0;ct<it.length;ct++){if(it[ct].value===lt){it[ct].selected=!0,ut&&(it[ct].defaultSelected=!0);return}at!==null||it[ct].disabled||(at=it[ct])}at!==null&&(at.selected=!0)}}function gb(it,at){if(at.dangerouslySetInnerHTML!=null)throw Error(p$2(91));return A$3({},at,{value:void 0,defaultValue:void 0,children:""+it._wrapperState.initialValue})}function hb(it,at){var lt=at.value;if(lt==null){if(lt=at.children,at=at.defaultValue,lt!=null){if(at!=null)throw Error(p$2(92));if(eb(lt)){if(1<lt.length)throw Error(p$2(93));lt=lt[0]}at=lt}at==null&&(at=""),lt=at}it._wrapperState={initialValue:Sa(lt)}}function ib(it,at){var lt=Sa(at.value),ut=Sa(at.defaultValue);lt!=null&&(lt=""+lt,lt!==it.value&&(it.value=lt),at.defaultValue==null&&it.defaultValue!==lt&&(it.defaultValue=lt)),ut!=null&&(it.defaultValue=""+ut)}function jb(it){var at=it.textContent;at===it._wrapperState.initialValue&&at!==""&&at!==null&&(it.value=at)}function kb(it){switch(it){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(it,at){return it==null||it==="http://www.w3.org/1999/xhtml"?kb(at):it==="http://www.w3.org/2000/svg"&&at==="foreignObject"?"http://www.w3.org/1999/xhtml":it}var mb,nb=function(it){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(at,lt,ut,ct){MSApp.execUnsafeLocalFunction(function(){return it(at,lt,ut,ct)})}:it}(function(it,at){if(it.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in it)it.innerHTML=at;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+at.valueOf().toString()+"</svg>",at=mb.firstChild;it.firstChild;)it.removeChild(it.firstChild);for(;at.firstChild;)it.appendChild(at.firstChild)}});function ob(it,at){if(at){var lt=it.firstChild;if(lt&&lt===it.lastChild&&lt.nodeType===3){lt.nodeValue=at;return}}it.textContent=at}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(it){qb.forEach(function(at){at=at+it.charAt(0).toUpperCase()+it.substring(1),pb[at]=pb[it]})});function rb(it,at,lt){return at==null||typeof at=="boolean"||at===""?"":lt||typeof at!="number"||at===0||pb.hasOwnProperty(it)&&pb[it]?(""+at).trim():at+"px"}function sb(it,at){it=it.style;for(var lt in at)if(at.hasOwnProperty(lt)){var ut=lt.indexOf("--")===0,ct=rb(lt,at[lt],ut);lt==="float"&&(lt="cssFloat"),ut?it.setProperty(lt,ct):it[lt]=ct}}var tb=A$3({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(it,at){if(at){if(tb[it]&&(at.children!=null||at.dangerouslySetInnerHTML!=null))throw Error(p$2(137,it));if(at.dangerouslySetInnerHTML!=null){if(at.children!=null)throw Error(p$2(60));if(typeof at.dangerouslySetInnerHTML!="object"||!("__html"in at.dangerouslySetInnerHTML))throw Error(p$2(61))}if(at.style!=null&&typeof at.style!="object")throw Error(p$2(62))}}function vb(it,at){if(it.indexOf("-")===-1)return typeof at.is=="string";switch(it){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 wb=null;function xb(it){return it=it.target||it.srcElement||window,it.correspondingUseElement&&(it=it.correspondingUseElement),it.nodeType===3?it.parentNode:it}var yb=null,zb=null,Ab=null;function Bb(it){if(it=Cb(it)){if(typeof yb!="function")throw Error(p$2(280));var at=it.stateNode;at&&(at=Db(at),yb(it.stateNode,it.type,at))}}function Eb(it){zb?Ab?Ab.push(it):Ab=[it]:zb=it}function Fb(){if(zb){var it=zb,at=Ab;if(Ab=zb=null,Bb(it),at)for(it=0;it<at.length;it++)Bb(at[it])}}function Gb(it,at){return it(at)}function Hb(){}var Ib=!1;function Jb(it,at,lt){if(Ib)return it(at,lt);Ib=!0;try{return Gb(it,at,lt)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(it,at){var lt=it.stateNode;if(lt===null)return null;var ut=Db(lt);if(ut===null)return null;lt=ut[at];e:switch(at){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(ut=!ut.disabled)||(it=it.type,ut=!(it==="button"||it==="input"||it==="select"||it==="textarea")),it=!ut;break e;default:it=!1}if(it)return null;if(lt&&typeof lt!="function")throw Error(p$2(231,at,typeof lt));return lt}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(it,at,lt,ut,ct,dt,ft,mt,pt){var gt=Array.prototype.slice.call(arguments,3);try{at.apply(lt,gt)}catch(vt){this.onError(vt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(it){Ob=!0,Pb=it}};function Tb(it,at,lt,ut,ct,dt,ft,mt,pt){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(it,at,lt,ut,ct,dt,ft,mt,pt){if(Tb.apply(this,arguments),Ob){if(Ob){var gt=Pb;Ob=!1,Pb=null}else throw Error(p$2(198));Qb||(Qb=!0,Rb=gt)}}function Vb(it){var at=it,lt=it;if(it.alternate)for(;at.return;)at=at.return;else{it=at;do at=it,at.flags&4098&&(lt=at.return),it=at.return;while(it)}return at.tag===3?lt:null}function Wb(it){if(it.tag===13){var at=it.memoizedState;if(at===null&&(it=it.alternate,it!==null&&(at=it.memoizedState)),at!==null)return at.dehydrated}return null}function Xb(it){if(Vb(it)!==it)throw Error(p$2(188))}function Yb(it){var at=it.alternate;if(!at){if(at=Vb(it),at===null)throw Error(p$2(188));return at!==it?null:it}for(var lt=it,ut=at;;){var ct=lt.return;if(ct===null)break;var dt=ct.alternate;if(dt===null){if(ut=ct.return,ut!==null){lt=ut;continue}break}if(ct.child===dt.child){for(dt=ct.child;dt;){if(dt===lt)return Xb(ct),it;if(dt===ut)return Xb(ct),at;dt=dt.sibling}throw Error(p$2(188))}if(lt.return!==ut.return)lt=ct,ut=dt;else{for(var ft=!1,mt=ct.child;mt;){if(mt===lt){ft=!0,lt=ct,ut=dt;break}if(mt===ut){ft=!0,ut=ct,lt=dt;break}mt=mt.sibling}if(!ft){for(mt=dt.child;mt;){if(mt===lt){ft=!0,lt=dt,ut=ct;break}if(mt===ut){ft=!0,ut=dt,lt=ct;break}mt=mt.sibling}if(!ft)throw Error(p$2(189))}}if(lt.alternate!==ut)throw Error(p$2(190))}if(lt.tag!==3)throw Error(p$2(188));return lt.stateNode.current===lt?it:at}function Zb(it){return it=Yb(it),it!==null?$b(it):null}function $b(it){if(it.tag===5||it.tag===6)return it;for(it=it.child;it!==null;){var at=$b(it);if(at!==null)return at;it=it.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B$3=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(it){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,it,void 0,(it.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(it){return it>>>=0,it===0?32:31-(pc(it)/qc|0)|0}var rc=64,sc=4194304;function tc(it){switch(it&-it){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return it&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return it&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return it}}function uc(it,at){var lt=it.pendingLanes;if(lt===0)return 0;var ut=0,ct=it.suspendedLanes,dt=it.pingedLanes,ft=lt&268435455;if(ft!==0){var mt=ft&~ct;mt!==0?ut=tc(mt):(dt&=ft,dt!==0&&(ut=tc(dt)))}else ft=lt&~ct,ft!==0?ut=tc(ft):dt!==0&&(ut=tc(dt));if(ut===0)return 0;if(at!==0&&at!==ut&&!(at&ct)&&(ct=ut&-ut,dt=at&-at,ct>=dt||ct===16&&(dt&4194240)!==0))return at;if(ut&4&&(ut|=lt&16),at=it.entangledLanes,at!==0)for(it=it.entanglements,at&=ut;0<at;)lt=31-oc(at),ct=1<<lt,ut|=it[lt],at&=~ct;return ut}function vc(it,at){switch(it){case 1:case 2:case 4:return at+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return at+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(it,at){for(var lt=it.suspendedLanes,ut=it.pingedLanes,ct=it.expirationTimes,dt=it.pendingLanes;0<dt;){var ft=31-oc(dt),mt=1<<ft,pt=ct[ft];pt===-1?(!(mt&lt)||mt&ut)&&(ct[ft]=vc(mt,at)):pt<=at&&(it.expiredLanes|=mt),dt&=~mt}}function xc(it){return it=it.pendingLanes&-1073741825,it!==0?it:it&1073741824?1073741824:0}function yc(){var it=rc;return rc<<=1,!(rc&4194240)&&(rc=64),it}function zc(it){for(var at=[],lt=0;31>lt;lt++)at.push(it);return at}function Ac(it,at,lt){it.pendingLanes|=at,at!==536870912&&(it.suspendedLanes=0,it.pingedLanes=0),it=it.eventTimes,at=31-oc(at),it[at]=lt}function Bc(it,at){var lt=it.pendingLanes&~at;it.pendingLanes=at,it.suspendedLanes=0,it.pingedLanes=0,it.expiredLanes&=at,it.mutableReadLanes&=at,it.entangledLanes&=at,at=it.entanglements;var ut=it.eventTimes;for(it=it.expirationTimes;0<lt;){var ct=31-oc(lt),dt=1<<ct;at[ct]=0,ut[ct]=-1,it[ct]=-1,lt&=~dt}}function Cc(it,at){var lt=it.entangledLanes|=at;for(it=it.entanglements;lt;){var ut=31-oc(lt),ct=1<<ut;ct&at|it[ut]&at&&(it[ut]|=at),lt&=~ct}}var C$3=0;function Dc(it){return it&=-it,1<it?4<it?it&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(it,at){switch(it){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(at.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(at.pointerId)}}function Tc(it,at,lt,ut,ct,dt){return it===null||it.nativeEvent!==dt?(it={blockedOn:at,domEventName:lt,eventSystemFlags:ut,nativeEvent:dt,targetContainers:[ct]},at!==null&&(at=Cb(at),at!==null&&Fc(at)),it):(it.eventSystemFlags|=ut,at=it.targetContainers,ct!==null&&at.indexOf(ct)===-1&&at.push(ct),it)}function Uc(it,at,lt,ut,ct){switch(at){case"focusin":return Lc=Tc(Lc,it,at,lt,ut,ct),!0;case"dragenter":return Mc=Tc(Mc,it,at,lt,ut,ct),!0;case"mouseover":return Nc=Tc(Nc,it,at,lt,ut,ct),!0;case"pointerover":var dt=ct.pointerId;return Oc.set(dt,Tc(Oc.get(dt)||null,it,at,lt,ut,ct)),!0;case"gotpointercapture":return dt=ct.pointerId,Pc.set(dt,Tc(Pc.get(dt)||null,it,at,lt,ut,ct)),!0}return!1}function Vc(it){var at=Wc(it.target);if(at!==null){var lt=Vb(at);if(lt!==null){if(at=lt.tag,at===13){if(at=Wb(lt),at!==null){it.blockedOn=at,Ic(it.priority,function(){Gc(lt)});return}}else if(at===3&&lt.stateNode.current.memoizedState.isDehydrated){it.blockedOn=lt.tag===3?lt.stateNode.containerInfo:null;return}}}it.blockedOn=null}function Xc(it){if(it.blockedOn!==null)return!1;for(var at=it.targetContainers;0<at.length;){var lt=Yc(it.domEventName,it.eventSystemFlags,at[0],it.nativeEvent);if(lt===null){lt=it.nativeEvent;var ut=new lt.constructor(lt.type,lt);wb=ut,lt.target.dispatchEvent(ut),wb=null}else return at=Cb(lt),at!==null&&Fc(at),it.blockedOn=lt,!1;at.shift()}return!0}function Zc(it,at,lt){Xc(it)&&lt.delete(at)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(it,at){it.blockedOn===at&&(it.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(it){function at(ct){return ad(ct,it)}if(0<Kc.length){ad(Kc[0],it);for(var lt=1;lt<Kc.length;lt++){var ut=Kc[lt];ut.blockedOn===it&&(ut.blockedOn=null)}}for(Lc!==null&&ad(Lc,it),Mc!==null&&ad(Mc,it),Nc!==null&&ad(Nc,it),Oc.forEach(at),Pc.forEach(at),lt=0;lt<Qc.length;lt++)ut=Qc[lt],ut.blockedOn===it&&(ut.blockedOn=null);for(;0<Qc.length&&(lt=Qc[0],lt.blockedOn===null);)Vc(lt),lt.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(it,at,lt,ut){var ct=C$3,dt=cd.transition;cd.transition=null;try{C$3=1,fd(it,at,lt,ut)}finally{C$3=ct,cd.transition=dt}}function gd(it,at,lt,ut){var ct=C$3,dt=cd.transition;cd.transition=null;try{C$3=4,fd(it,at,lt,ut)}finally{C$3=ct,cd.transition=dt}}function fd(it,at,lt,ut){if(dd){var ct=Yc(it,at,lt,ut);if(ct===null)hd(it,at,ut,id,lt),Sc(it,ut);else if(Uc(ct,it,at,lt,ut))ut.stopPropagation();else if(Sc(it,ut),at&4&&-1<Rc.indexOf(it)){for(;ct!==null;){var dt=Cb(ct);if(dt!==null&&Ec(dt),dt=Yc(it,at,lt,ut),dt===null&&hd(it,at,ut,id,lt),dt===ct)break;ct=dt}ct!==null&&ut.stopPropagation()}else hd(it,at,ut,null,lt)}}var id=null;function Yc(it,at,lt,ut){if(id=null,it=xb(ut),it=Wc(it),it!==null)if(at=Vb(it),at===null)it=null;else if(lt=at.tag,lt===13){if(it=Wb(at),it!==null)return it;it=null}else if(lt===3){if(at.stateNode.current.memoizedState.isDehydrated)return at.tag===3?at.stateNode.containerInfo:null;it=null}else at!==it&&(it=null);return id=it,null}function jd(it){switch(it){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var it,at=ld,lt=at.length,ut,ct="value"in kd?kd.value:kd.textContent,dt=ct.length;for(it=0;it<lt&&at[it]===ct[it];it++);var ft=lt-it;for(ut=1;ut<=ft&&at[lt-ut]===ct[dt-ut];ut++);return md=ct.slice(it,1<ut?1-ut:void 0)}function od(it){var at=it.keyCode;return"charCode"in it?(it=it.charCode,it===0&&at===13&&(it=13)):it=at,it===10&&(it=13),32<=it||it===13?it:0}function pd(){return!0}function qd(){return!1}function rd(it){function at(lt,ut,ct,dt,ft){this._reactName=lt,this._targetInst=ct,this.type=ut,this.nativeEvent=dt,this.target=ft,this.currentTarget=null;for(var mt in it)it.hasOwnProperty(mt)&&(lt=it[mt],this[mt]=lt?lt(dt):dt[mt]);return this.isDefaultPrevented=(dt.defaultPrevented!=null?dt.defaultPrevented:dt.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$3(at.prototype,{preventDefault:function(){this.defaultPrevented=!0;var lt=this.nativeEvent;lt&&(lt.preventDefault?lt.preventDefault():typeof lt.returnValue!="unknown"&&(lt.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var lt=this.nativeEvent;lt&&(lt.stopPropagation?lt.stopPropagation():typeof lt.cancelBubble!="unknown"&&(lt.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),at}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(it){return it.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$3({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$3({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(it){return it.relatedTarget===void 0?it.fromElement===it.srcElement?it.toElement:it.fromElement:it.relatedTarget},movementX:function(it){return"movementX"in it?it.movementX:(it!==yd&&(yd&&it.type==="mousemove"?(wd=it.screenX-yd.screenX,xd=it.screenY-yd.screenY):xd=wd=0,yd=it),wd)},movementY:function(it){return"movementY"in it?it.movementY:xd}}),Bd=rd(Ad),Cd=A$3({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$3({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$3({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$3({},sd,{clipboardData:function(it){return"clipboardData"in it?it.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$3({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(it){var at=this.nativeEvent;return at.getModifierState?at.getModifierState(it):(it=Od[it])?!!at[it]:!1}function zd(){return Pd}var Qd=A$3({},ud,{key:function(it){if(it.key){var at=Md[it.key]||it.key;if(at!=="Unidentified")return at}return it.type==="keypress"?(it=od(it),it===13?"Enter":String.fromCharCode(it)):it.type==="keydown"||it.type==="keyup"?Nd[it.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(it){return it.type==="keypress"?od(it):0},keyCode:function(it){return it.type==="keydown"||it.type==="keyup"?it.keyCode:0},which:function(it){return it.type==="keypress"?od(it):it.type==="keydown"||it.type==="keyup"?it.keyCode:0}}),Rd=rd(Qd),Sd=A$3({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$3({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$3({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$3({},Ad,{deltaX:function(it){return"deltaX"in it?it.deltaX:"wheelDeltaX"in it?-it.wheelDeltaX:0},deltaY:function(it){return"deltaY"in it?it.deltaY:"wheelDeltaY"in it?-it.wheelDeltaY:"wheelDelta"in it?-it.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae$1=ia&&"CompositionEvent"in window,be$2=null;ia&&"documentMode"in document&&(be$2=document.documentMode);var ce$2=ia&&"TextEvent"in window&&!be$2,de$2=ia&&(!ae$1||be$2&&8<be$2&&11>=be$2),ee$2=String.fromCharCode(32),fe$2=!1;function ge$2(it,at){switch(it){case"keyup":return $d.indexOf(at.keyCode)!==-1;case"keydown":return at.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$2(it){return it=it.detail,typeof it=="object"&&"data"in it?it.data:null}var ie$1=!1;function je$1(it,at){switch(it){case"compositionend":return he$2(at);case"keypress":return at.which!==32?null:(fe$2=!0,ee$2);case"textInput":return it=at.data,it===ee$2&&fe$2?null:it;default:return null}}function ke$2(it,at){if(ie$1)return it==="compositionend"||!ae$1&&ge$2(it,at)?(it=nd(),md=ld=kd=null,ie$1=!1,it):null;switch(it){case"paste":return null;case"keypress":if(!(at.ctrlKey||at.altKey||at.metaKey)||at.ctrlKey&&at.altKey){if(at.char&&1<at.char.length)return at.char;if(at.which)return String.fromCharCode(at.which)}return null;case"compositionend":return de$2&&at.locale!=="ko"?null:at.data;default:return null}}var le$2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me$2(it){var at=it&&it.nodeName&&it.nodeName.toLowerCase();return at==="input"?!!le$2[it.type]:at==="textarea"}function ne$2(it,at,lt,ut){Eb(ut),at=oe$2(at,"onChange"),0<at.length&&(lt=new td("onChange","change",null,lt,ut),it.push({event:lt,listeners:at}))}var pe$2=null,qe$1=null;function re$2(it){se$2(it,0)}function te$2(it){var at=ue$2(it);if(Wa(at))return it}function ve$2(it,at){if(it==="change")return at}var we$2=!1;if(ia){var xe$1;if(ia){var ye$2="oninput"in document;if(!ye$2){var ze$2=document.createElement("div");ze$2.setAttribute("oninput","return;"),ye$2=typeof ze$2.oninput=="function"}xe$1=ye$2}else xe$1=!1;we$2=xe$1&&(!document.documentMode||9<document.documentMode)}function Ae$2(){pe$2&&(pe$2.detachEvent("onpropertychange",Be$2),qe$1=pe$2=null)}function Be$2(it){if(it.propertyName==="value"&&te$2(qe$1)){var at=[];ne$2(at,qe$1,it,xb(it)),Jb(re$2,at)}}function Ce$2(it,at,lt){it==="focusin"?(Ae$2(),pe$2=at,qe$1=lt,pe$2.attachEvent("onpropertychange",Be$2)):it==="focusout"&&Ae$2()}function De$2(it){if(it==="selectionchange"||it==="keyup"||it==="keydown")return te$2(qe$1)}function Ee$2(it,at){if(it==="click")return te$2(at)}function Fe$2(it,at){if(it==="input"||it==="change")return te$2(at)}function Ge$2(it,at){return it===at&&(it!==0||1/it===1/at)||it!==it&&at!==at}var He$2=typeof Object.is=="function"?Object.is:Ge$2;function Ie$2(it,at){if(He$2(it,at))return!0;if(typeof it!="object"||it===null||typeof at!="object"||at===null)return!1;var lt=Object.keys(it),ut=Object.keys(at);if(lt.length!==ut.length)return!1;for(ut=0;ut<lt.length;ut++){var ct=lt[ut];if(!ja.call(at,ct)||!He$2(it[ct],at[ct]))return!1}return!0}function Je$1(it){for(;it&&it.firstChild;)it=it.firstChild;return it}function Ke$2(it,at){var lt=Je$1(it);it=0;for(var ut;lt;){if(lt.nodeType===3){if(ut=it+lt.textContent.length,it<=at&&ut>=at)return{node:lt,offset:at-it};it=ut}e:{for(;lt;){if(lt.nextSibling){lt=lt.nextSibling;break e}lt=lt.parentNode}lt=void 0}lt=Je$1(lt)}}function Le$2(it,at){return it&&at?it===at?!0:it&&it.nodeType===3?!1:at&&at.nodeType===3?Le$2(it,at.parentNode):"contains"in it?it.contains(at):it.compareDocumentPosition?!!(it.compareDocumentPosition(at)&16):!1:!1}function Me$1(){for(var it=window,at=Xa();at instanceof it.HTMLIFrameElement;){try{var lt=typeof at.contentWindow.location.href=="string"}catch{lt=!1}if(lt)it=at.contentWindow;else break;at=Xa(it.document)}return at}function Ne$2(it){var at=it&&it.nodeName&&it.nodeName.toLowerCase();return at&&(at==="input"&&(it.type==="text"||it.type==="search"||it.type==="tel"||it.type==="url"||it.type==="password")||at==="textarea"||it.contentEditable==="true")}function Oe$2(it){var at=Me$1(),lt=it.focusedElem,ut=it.selectionRange;if(at!==lt&&lt&&lt.ownerDocument&&Le$2(lt.ownerDocument.documentElement,lt)){if(ut!==null&&Ne$2(lt)){if(at=ut.start,it=ut.end,it===void 0&&(it=at),"selectionStart"in lt)lt.selectionStart=at,lt.selectionEnd=Math.min(it,lt.value.length);else if(it=(at=lt.ownerDocument||document)&&at.defaultView||window,it.getSelection){it=it.getSelection();var ct=lt.textContent.length,dt=Math.min(ut.start,ct);ut=ut.end===void 0?dt:Math.min(ut.end,ct),!it.extend&&dt>ut&&(ct=ut,ut=dt,dt=ct),ct=Ke$2(lt,dt);var ft=Ke$2(lt,ut);ct&&ft&&(it.rangeCount!==1||it.anchorNode!==ct.node||it.anchorOffset!==ct.offset||it.focusNode!==ft.node||it.focusOffset!==ft.offset)&&(at=at.createRange(),at.setStart(ct.node,ct.offset),it.removeAllRanges(),dt>ut?(it.addRange(at),it.extend(ft.node,ft.offset)):(at.setEnd(ft.node,ft.offset),it.addRange(at)))}}for(at=[],it=lt;it=it.parentNode;)it.nodeType===1&&at.push({element:it,left:it.scrollLeft,top:it.scrollTop});for(typeof lt.focus=="function"&&lt.focus(),lt=0;lt<at.length;lt++)it=at[lt],it.element.scrollLeft=it.left,it.element.scrollTop=it.top}}var Pe$2=ia&&"documentMode"in document&&11>=document.documentMode,Qe$2=null,Re$2=null,Se$2=null,Te$2=!1;function Ue$1(it,at,lt){var ut=lt.window===lt?lt.document:lt.nodeType===9?lt:lt.ownerDocument;Te$2||Qe$2==null||Qe$2!==Xa(ut)||(ut=Qe$2,"selectionStart"in ut&&Ne$2(ut)?ut={start:ut.selectionStart,end:ut.selectionEnd}:(ut=(ut.ownerDocument&&ut.ownerDocument.defaultView||window).getSelection(),ut={anchorNode:ut.anchorNode,anchorOffset:ut.anchorOffset,focusNode:ut.focusNode,focusOffset:ut.focusOffset}),Se$2&&Ie$2(Se$2,ut)||(Se$2=ut,ut=oe$2(Re$2,"onSelect"),0<ut.length&&(at=new td("onSelect","select",null,at,lt),it.push({event:at,listeners:ut}),at.target=Qe$2)))}function Ve$2(it,at){var lt={};return lt[it.toLowerCase()]=at.toLowerCase(),lt["Webkit"+it]="webkit"+at,lt["Moz"+it]="moz"+at,lt}var We$2={animationend:Ve$2("Animation","AnimationEnd"),animationiteration:Ve$2("Animation","AnimationIteration"),animationstart:Ve$2("Animation","AnimationStart"),transitionend:Ve$2("Transition","TransitionEnd")},Xe$1={},Ye$2={};ia&&(Ye$2=document.createElement("div").style,"AnimationEvent"in window||(delete We$2.animationend.animation,delete We$2.animationiteration.animation,delete We$2.animationstart.animation),"TransitionEvent"in window||delete We$2.transitionend.transition);function Ze$1(it){if(Xe$1[it])return Xe$1[it];if(!We$2[it])return it;var at=We$2[it],lt;for(lt in at)if(at.hasOwnProperty(lt)&&lt in Ye$2)return Xe$1[it]=at[lt];return it}var $e$2=Ze$1("animationend"),af=Ze$1("animationiteration"),bf=Ze$1("animationstart"),cf=Ze$1("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(it,at){df.set(it,at),fa(at,[it])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e$2,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(it,at,lt){var ut=it.type||"unknown-event";it.currentTarget=lt,Ub(ut,at,void 0,it),it.currentTarget=null}function se$2(it,at){at=(at&4)!==0;for(var lt=0;lt<it.length;lt++){var ut=it[lt],ct=ut.event;ut=ut.listeners;e:{var dt=void 0;if(at)for(var ft=ut.length-1;0<=ft;ft--){var mt=ut[ft],pt=mt.instance,gt=mt.currentTarget;if(mt=mt.listener,pt!==dt&&ct.isPropagationStopped())break e;nf(ct,mt,gt),dt=pt}else for(ft=0;ft<ut.length;ft++){if(mt=ut[ft],pt=mt.instance,gt=mt.currentTarget,mt=mt.listener,pt!==dt&&ct.isPropagationStopped())break e;nf(ct,mt,gt),dt=pt}}}if(Qb)throw it=Rb,Qb=!1,Rb=null,it}function D$3(it,at){var lt=at[of];lt===void 0&&(lt=at[of]=new Set);var ut=it+"__bubble";lt.has(ut)||(pf(at,it,2,!1),lt.add(ut))}function qf(it,at,lt){var ut=0;at&&(ut|=4),pf(lt,it,ut,at)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(it){if(!it[rf]){it[rf]=!0,da.forEach(function(lt){lt!=="selectionchange"&&(mf.has(lt)||qf(lt,!1,it),qf(lt,!0,it))});var at=it.nodeType===9?it:it.ownerDocument;at===null||at[rf]||(at[rf]=!0,qf("selectionchange",!1,at))}}function pf(it,at,lt,ut){switch(jd(at)){case 1:var ct=ed;break;case 4:ct=gd;break;default:ct=fd}lt=ct.bind(null,at,lt,it),ct=void 0,!Lb||at!=="touchstart"&&at!=="touchmove"&&at!=="wheel"||(ct=!0),ut?ct!==void 0?it.addEventListener(at,lt,{capture:!0,passive:ct}):it.addEventListener(at,lt,!0):ct!==void 0?it.addEventListener(at,lt,{passive:ct}):it.addEventListener(at,lt,!1)}function hd(it,at,lt,ut,ct){var dt=ut;if(!(at&1)&&!(at&2)&&ut!==null)e:for(;;){if(ut===null)return;var ft=ut.tag;if(ft===3||ft===4){var mt=ut.stateNode.containerInfo;if(mt===ct||mt.nodeType===8&&mt.parentNode===ct)break;if(ft===4)for(ft=ut.return;ft!==null;){var pt=ft.tag;if((pt===3||pt===4)&&(pt=ft.stateNode.containerInfo,pt===ct||pt.nodeType===8&&pt.parentNode===ct))return;ft=ft.return}for(;mt!==null;){if(ft=Wc(mt),ft===null)return;if(pt=ft.tag,pt===5||pt===6){ut=dt=ft;continue e}mt=mt.parentNode}}ut=ut.return}Jb(function(){var gt=dt,vt=xb(lt),wt=[];e:{var yt=df.get(it);if(yt!==void 0){var bt=td,Ct=it;switch(it){case"keypress":if(od(lt)===0)break e;case"keydown":case"keyup":bt=Rd;break;case"focusin":Ct="focus",bt=Fd;break;case"focusout":Ct="blur",bt=Fd;break;case"beforeblur":case"afterblur":bt=Fd;break;case"click":if(lt.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":bt=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":bt=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":bt=Vd;break;case $e$2:case af:case bf:bt=Hd;break;case cf:bt=Xd;break;case"scroll":bt=vd;break;case"wheel":bt=Zd;break;case"copy":case"cut":case"paste":bt=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":bt=Td}var Et=(at&4)!==0,kt=!Et&&it==="scroll",xt=Et?yt!==null?yt+"Capture":null:yt;Et=[];for(var St=gt,Ot;St!==null;){Ot=St;var At=Ot.stateNode;if(Ot.tag===5&&At!==null&&(Ot=At,xt!==null&&(At=Kb(St,xt),At!=null&&Et.push(tf(St,At,Ot)))),kt)break;St=St.return}0<Et.length&&(yt=new bt(yt,Ct,null,lt,vt),wt.push({event:yt,listeners:Et}))}}if(!(at&7)){e:{if(yt=it==="mouseover"||it==="pointerover",bt=it==="mouseout"||it==="pointerout",yt&&lt!==wb&&(Ct=lt.relatedTarget||lt.fromElement)&&(Wc(Ct)||Ct[uf]))break e;if((bt||yt)&&(yt=vt.window===vt?vt:(yt=vt.ownerDocument)?yt.defaultView||yt.parentWindow:window,bt?(Ct=lt.relatedTarget||lt.toElement,bt=gt,Ct=Ct?Wc(Ct):null,Ct!==null&&(kt=Vb(Ct),Ct!==kt||Ct.tag!==5&&Ct.tag!==6)&&(Ct=null)):(bt=null,Ct=gt),bt!==Ct)){if(Et=Bd,At="onMouseLeave",xt="onMouseEnter",St="mouse",(it==="pointerout"||it==="pointerover")&&(Et=Td,At="onPointerLeave",xt="onPointerEnter",St="pointer"),kt=bt==null?yt:ue$2(bt),Ot=Ct==null?yt:ue$2(Ct),yt=new Et(At,St+"leave",bt,lt,vt),yt.target=kt,yt.relatedTarget=Ot,At=null,Wc(vt)===gt&&(Et=new Et(xt,St+"enter",Ct,lt,vt),Et.target=Ot,Et.relatedTarget=kt,At=Et),kt=At,bt&&Ct)t:{for(Et=bt,xt=Ct,St=0,Ot=Et;Ot;Ot=vf(Ot))St++;for(Ot=0,At=xt;At;At=vf(At))Ot++;for(;0<St-Ot;)Et=vf(Et),St--;for(;0<Ot-St;)xt=vf(xt),Ot--;for(;St--;){if(Et===xt||xt!==null&&Et===xt.alternate)break t;Et=vf(Et),xt=vf(xt)}Et=null}else Et=null;bt!==null&&wf(wt,yt,bt,Et,!1),Ct!==null&&kt!==null&&wf(wt,kt,Ct,Et,!0)}}e:{if(yt=gt?ue$2(gt):window,bt=yt.nodeName&&yt.nodeName.toLowerCase(),bt==="select"||bt==="input"&&yt.type==="file")var Tt=ve$2;else if(me$2(yt))if(we$2)Tt=Fe$2;else{Tt=De$2;var $t=Ce$2}else(bt=yt.nodeName)&&bt.toLowerCase()==="input"&&(yt.type==="checkbox"||yt.type==="radio")&&(Tt=Ee$2);if(Tt&&(Tt=Tt(it,gt))){ne$2(wt,Tt,lt,vt);break e}$t&&$t(it,yt,gt),it==="focusout"&&($t=yt._wrapperState)&&$t.controlled&&yt.type==="number"&&cb(yt,"number",yt.value)}switch($t=gt?ue$2(gt):window,it){case"focusin":(me$2($t)||$t.contentEditable==="true")&&(Qe$2=$t,Re$2=gt,Se$2=null);break;case"focusout":Se$2=Re$2=Qe$2=null;break;case"mousedown":Te$2=!0;break;case"contextmenu":case"mouseup":case"dragend":Te$2=!1,Ue$1(wt,lt,vt);break;case"selectionchange":if(Pe$2)break;case"keydown":case"keyup":Ue$1(wt,lt,vt)}var Lt;if(ae$1)e:{switch(it){case"compositionstart":var Rt="onCompositionStart";break e;case"compositionend":Rt="onCompositionEnd";break e;case"compositionupdate":Rt="onCompositionUpdate";break e}Rt=void 0}else ie$1?ge$2(it,lt)&&(Rt="onCompositionEnd"):it==="keydown"&&lt.keyCode===229&&(Rt="onCompositionStart");Rt&&(de$2&&lt.locale!=="ko"&&(ie$1||Rt!=="onCompositionStart"?Rt==="onCompositionEnd"&&ie$1&&(Lt=nd()):(kd=vt,ld="value"in kd?kd.value:kd.textContent,ie$1=!0)),$t=oe$2(gt,Rt),0<$t.length&&(Rt=new Ld(Rt,it,null,lt,vt),wt.push({event:Rt,listeners:$t}),Lt?Rt.data=Lt:(Lt=he$2(lt),Lt!==null&&(Rt.data=Lt)))),(Lt=ce$2?je$1(it,lt):ke$2(it,lt))&&(gt=oe$2(gt,"onBeforeInput"),0<gt.length&&(vt=new Ld("onBeforeInput","beforeinput",null,lt,vt),wt.push({event:vt,listeners:gt}),vt.data=Lt))}se$2(wt,at)})}function tf(it,at,lt){return{instance:it,listener:at,currentTarget:lt}}function oe$2(it,at){for(var lt=at+"Capture",ut=[];it!==null;){var ct=it,dt=ct.stateNode;ct.tag===5&&dt!==null&&(ct=dt,dt=Kb(it,lt),dt!=null&&ut.unshift(tf(it,dt,ct)),dt=Kb(it,at),dt!=null&&ut.push(tf(it,dt,ct))),it=it.return}return ut}function vf(it){if(it===null)return null;do it=it.return;while(it&&it.tag!==5);return it||null}function wf(it,at,lt,ut,ct){for(var dt=at._reactName,ft=[];lt!==null&&lt!==ut;){var mt=lt,pt=mt.alternate,gt=mt.stateNode;if(pt!==null&&pt===ut)break;mt.tag===5&&gt!==null&&(mt=gt,ct?(pt=Kb(lt,dt),pt!=null&&ft.unshift(tf(lt,pt,mt))):ct||(pt=Kb(lt,dt),pt!=null&&ft.push(tf(lt,pt,mt)))),lt=lt.return}ft.length!==0&&it.push({event:at,listeners:ft})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(it){return(typeof it=="string"?it:""+it).replace(xf,`
`).replace(yf,"")}function Af(it,at,lt){if(at=zf(at),zf(it)!==at&&lt)throw Error(p$2(425))}function Bf(){}var Cf=null,Df=null;function Ef(it,at){return it==="textarea"||it==="noscript"||typeof at.children=="string"||typeof at.children=="number"||typeof at.dangerouslySetInnerHTML=="object"&&at.dangerouslySetInnerHTML!==null&&at.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(it){return Hf.resolve(null).then(it).catch(If)}:Ff;function If(it){setTimeout(function(){throw it})}function Kf(it,at){var lt=at,ut=0;do{var ct=lt.nextSibling;if(it.removeChild(lt),ct&&ct.nodeType===8)if(lt=ct.data,lt==="/$"){if(ut===0){it.removeChild(ct),bd(at);return}ut--}else lt!=="$"&&lt!=="$?"&&lt!=="$!"||ut++;lt=ct}while(lt);bd(at)}function Lf(it){for(;it!=null;it=it.nextSibling){var at=it.nodeType;if(at===1||at===3)break;if(at===8){if(at=it.data,at==="$"||at==="$!"||at==="$?")break;if(at==="/$")return null}}return it}function Mf(it){it=it.previousSibling;for(var at=0;it;){if(it.nodeType===8){var lt=it.data;if(lt==="$"||lt==="$!"||lt==="$?"){if(at===0)return it;at--}else lt==="/$"&&at++}it=it.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(it){var at=it[Of];if(at)return at;for(var lt=it.parentNode;lt;){if(at=lt[uf]||lt[Of]){if(lt=at.alternate,at.child!==null||lt!==null&&lt.child!==null)for(it=Mf(it);it!==null;){if(lt=it[Of])return lt;it=Mf(it)}return at}it=lt,lt=it.parentNode}return null}function Cb(it){return it=it[Of]||it[uf],!it||it.tag!==5&&it.tag!==6&&it.tag!==13&&it.tag!==3?null:it}function ue$2(it){if(it.tag===5||it.tag===6)return it.stateNode;throw Error(p$2(33))}function Db(it){return it[Pf]||null}var Sf=[],Tf=-1;function Uf(it){return{current:it}}function E$3(it){0>Tf||(it.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(it,at){Tf++,Sf[Tf]=it.current,it.current=at}var Vf={},H$3=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(it,at){var lt=it.type.contextTypes;if(!lt)return Vf;var ut=it.stateNode;if(ut&&ut.__reactInternalMemoizedUnmaskedChildContext===at)return ut.__reactInternalMemoizedMaskedChildContext;var ct={},dt;for(dt in lt)ct[dt]=at[dt];return ut&&(it=it.stateNode,it.__reactInternalMemoizedUnmaskedChildContext=at,it.__reactInternalMemoizedMaskedChildContext=ct),ct}function Zf(it){return it=it.childContextTypes,it!=null}function $f(){E$3(Wf),E$3(H$3)}function ag(it,at,lt){if(H$3.current!==Vf)throw Error(p$2(168));G$2(H$3,at),G$2(Wf,lt)}function bg(it,at,lt){var ut=it.stateNode;if(at=at.childContextTypes,typeof ut.getChildContext!="function")return lt;ut=ut.getChildContext();for(var ct in ut)if(!(ct in at))throw Error(p$2(108,Ra(it)||"Unknown",ct));return A$3({},lt,ut)}function cg(it){return it=(it=it.stateNode)&&it.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$3.current,G$2(H$3,it),G$2(Wf,Wf.current),!0}function dg(it,at,lt){var ut=it.stateNode;if(!ut)throw Error(p$2(169));lt?(it=bg(it,at,Xf),ut.__reactInternalMemoizedMergedChildContext=it,E$3(Wf),E$3(H$3),G$2(H$3,it)):E$3(Wf),G$2(Wf,lt)}var eg=null,fg=!1,gg=!1;function hg(it){eg===null?eg=[it]:eg.push(it)}function ig(it){fg=!0,hg(it)}function jg(){if(!gg&&eg!==null){gg=!0;var it=0,at=C$3;try{var lt=eg;for(C$3=1;it<lt.length;it++){var ut=lt[it];do ut=ut(!0);while(ut!==null)}eg=null,fg=!1}catch(ct){throw eg!==null&&(eg=eg.slice(it+1)),ac(fc,jg),ct}finally{C$3=at,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(it,at){kg[lg++]=ng,kg[lg++]=mg,mg=it,ng=at}function ug(it,at,lt){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=it;var ut=rg;it=sg;var ct=32-oc(ut)-1;ut&=~(1<<ct),lt+=1;var dt=32-oc(at)+ct;if(30<dt){var ft=ct-ct%5;dt=(ut&(1<<ft)-1).toString(32),ut>>=ft,ct-=ft,rg=1<<32-oc(at)+ct|lt<<ct|ut,sg=dt+it}else rg=1<<dt|lt<<ct|ut,sg=it}function vg(it){it.return!==null&&(tg(it,1),ug(it,1,0))}function wg(it){for(;it===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;it===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$3=!1,zg=null;function Ag(it,at){var lt=Bg(5,null,null,0);lt.elementType="DELETED",lt.stateNode=at,lt.return=it,at=it.deletions,at===null?(it.deletions=[lt],it.flags|=16):at.push(lt)}function Cg(it,at){switch(it.tag){case 5:var lt=it.type;return at=at.nodeType!==1||lt.toLowerCase()!==at.nodeName.toLowerCase()?null:at,at!==null?(it.stateNode=at,xg=it,yg=Lf(at.firstChild),!0):!1;case 6:return at=it.pendingProps===""||at.nodeType!==3?null:at,at!==null?(it.stateNode=at,xg=it,yg=null,!0):!1;case 13:return at=at.nodeType!==8?null:at,at!==null?(lt=qg!==null?{id:rg,overflow:sg}:null,it.memoizedState={dehydrated:at,treeContext:lt,retryLane:1073741824},lt=Bg(18,null,null,0),lt.stateNode=at,lt.return=it,it.child=lt,xg=it,yg=null,!0):!1;default:return!1}}function Dg(it){return(it.mode&1)!==0&&(it.flags&128)===0}function Eg(it){if(I$3){var at=yg;if(at){var lt=at;if(!Cg(it,at)){if(Dg(it))throw Error(p$2(418));at=Lf(lt.nextSibling);var ut=xg;at&&Cg(it,at)?Ag(ut,lt):(it.flags=it.flags&-4097|2,I$3=!1,xg=it)}}else{if(Dg(it))throw Error(p$2(418));it.flags=it.flags&-4097|2,I$3=!1,xg=it}}}function Fg(it){for(it=it.return;it!==null&&it.tag!==5&&it.tag!==3&&it.tag!==13;)it=it.return;xg=it}function Gg(it){if(it!==xg)return!1;if(!I$3)return Fg(it),I$3=!0,!1;var at;if((at=it.tag!==3)&&!(at=it.tag!==5)&&(at=it.type,at=at!=="head"&&at!=="body"&&!Ef(it.type,it.memoizedProps)),at&&(at=yg)){if(Dg(it))throw Hg(),Error(p$2(418));for(;at;)Ag(it,at),at=Lf(at.nextSibling)}if(Fg(it),it.tag===13){if(it=it.memoizedState,it=it!==null?it.dehydrated:null,!it)throw Error(p$2(317));e:{for(it=it.nextSibling,at=0;it;){if(it.nodeType===8){var lt=it.data;if(lt==="/$"){if(at===0){yg=Lf(it.nextSibling);break e}at--}else lt!=="$"&&lt!=="$!"&&lt!=="$?"||at++}it=it.nextSibling}yg=null}}else yg=xg?Lf(it.stateNode.nextSibling):null;return!0}function Hg(){for(var it=yg;it;)it=Lf(it.nextSibling)}function Ig(){yg=xg=null,I$3=!1}function Jg(it){zg===null?zg=[it]:zg.push(it)}var Kg=ua.ReactCurrentBatchConfig;function Lg(it,at){if(it&&it.defaultProps){at=A$3({},at),it=it.defaultProps;for(var lt in it)at[lt]===void 0&&(at[lt]=it[lt]);return at}return at}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(it){var at=Mg.current;E$3(Mg),it._currentValue=at}function Sg(it,at,lt){for(;it!==null;){var ut=it.alternate;if((it.childLanes&at)!==at?(it.childLanes|=at,ut!==null&&(ut.childLanes|=at)):ut!==null&&(ut.childLanes&at)!==at&&(ut.childLanes|=at),it===lt)break;it=it.return}}function Tg(it,at){Ng=it,Pg=Og=null,it=it.dependencies,it!==null&&it.firstContext!==null&&(it.lanes&at&&(Ug=!0),it.firstContext=null)}function Vg(it){var at=it._currentValue;if(Pg!==it)if(it={context:it,memoizedValue:at,next:null},Og===null){if(Ng===null)throw Error(p$2(308));Og=it,Ng.dependencies={lanes:0,firstContext:it}}else Og=Og.next=it;return at}var Wg=null;function Xg(it){Wg===null?Wg=[it]:Wg.push(it)}function Yg(it,at,lt,ut){var ct=at.interleaved;return ct===null?(lt.next=lt,Xg(at)):(lt.next=ct.next,ct.next=lt),at.interleaved=lt,Zg(it,ut)}function Zg(it,at){it.lanes|=at;var lt=it.alternate;for(lt!==null&&(lt.lanes|=at),lt=it,it=it.return;it!==null;)it.childLanes|=at,lt=it.alternate,lt!==null&&(lt.childLanes|=at),lt=it,it=it.return;return lt.tag===3?lt.stateNode:null}var $g=!1;function ah(it){it.updateQueue={baseState:it.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(it,at){it=it.updateQueue,at.updateQueue===it&&(at.updateQueue={baseState:it.baseState,firstBaseUpdate:it.firstBaseUpdate,lastBaseUpdate:it.lastBaseUpdate,shared:it.shared,effects:it.effects})}function ch(it,at){return{eventTime:it,lane:at,tag:0,payload:null,callback:null,next:null}}function dh(it,at,lt){var ut=it.updateQueue;if(ut===null)return null;if(ut=ut.shared,K$2&2){var ct=ut.pending;return ct===null?at.next=at:(at.next=ct.next,ct.next=at),ut.pending=at,Zg(it,lt)}return ct=ut.interleaved,ct===null?(at.next=at,Xg(ut)):(at.next=ct.next,ct.next=at),ut.interleaved=at,Zg(it,lt)}function eh(it,at,lt){if(at=at.updateQueue,at!==null&&(at=at.shared,(lt&4194240)!==0)){var ut=at.lanes;ut&=it.pendingLanes,lt|=ut,at.lanes=lt,Cc(it,lt)}}function fh(it,at){var lt=it.updateQueue,ut=it.alternate;if(ut!==null&&(ut=ut.updateQueue,lt===ut)){var ct=null,dt=null;if(lt=lt.firstBaseUpdate,lt!==null){do{var ft={eventTime:lt.eventTime,lane:lt.lane,tag:lt.tag,payload:lt.payload,callback:lt.callback,next:null};dt===null?ct=dt=ft:dt=dt.next=ft,lt=lt.next}while(lt!==null);dt===null?ct=dt=at:dt=dt.next=at}else ct=dt=at;lt={baseState:ut.baseState,firstBaseUpdate:ct,lastBaseUpdate:dt,shared:ut.shared,effects:ut.effects},it.updateQueue=lt;return}it=lt.lastBaseUpdate,it===null?lt.firstBaseUpdate=at:it.next=at,lt.lastBaseUpdate=at}function gh(it,at,lt,ut){var ct=it.updateQueue;$g=!1;var dt=ct.firstBaseUpdate,ft=ct.lastBaseUpdate,mt=ct.shared.pending;if(mt!==null){ct.shared.pending=null;var pt=mt,gt=pt.next;pt.next=null,ft===null?dt=gt:ft.next=gt,ft=pt;var vt=it.alternate;vt!==null&&(vt=vt.updateQueue,mt=vt.lastBaseUpdate,mt!==ft&&(mt===null?vt.firstBaseUpdate=gt:mt.next=gt,vt.lastBaseUpdate=pt))}if(dt!==null){var wt=ct.baseState;ft=0,vt=gt=pt=null,mt=dt;do{var yt=mt.lane,bt=mt.eventTime;if((ut&yt)===yt){vt!==null&&(vt=vt.next={eventTime:bt,lane:0,tag:mt.tag,payload:mt.payload,callback:mt.callback,next:null});e:{var Ct=it,Et=mt;switch(yt=at,bt=lt,Et.tag){case 1:if(Ct=Et.payload,typeof Ct=="function"){wt=Ct.call(bt,wt,yt);break e}wt=Ct;break e;case 3:Ct.flags=Ct.flags&-65537|128;case 0:if(Ct=Et.payload,yt=typeof Ct=="function"?Ct.call(bt,wt,yt):Ct,yt==null)break e;wt=A$3({},wt,yt);break e;case 2:$g=!0}}mt.callback!==null&&mt.lane!==0&&(it.flags|=64,yt=ct.effects,yt===null?ct.effects=[mt]:yt.push(mt))}else bt={eventTime:bt,lane:yt,tag:mt.tag,payload:mt.payload,callback:mt.callback,next:null},vt===null?(gt=vt=bt,pt=wt):vt=vt.next=bt,ft|=yt;if(mt=mt.next,mt===null){if(mt=ct.shared.pending,mt===null)break;yt=mt,mt=yt.next,yt.next=null,ct.lastBaseUpdate=yt,ct.shared.pending=null}}while(1);if(vt===null&&(pt=wt),ct.baseState=pt,ct.firstBaseUpdate=gt,ct.lastBaseUpdate=vt,at=ct.shared.interleaved,at!==null){ct=at;do ft|=ct.lane,ct=ct.next;while(ct!==at)}else dt===null&&(ct.shared.lanes=0);hh|=ft,it.lanes=ft,it.memoizedState=wt}}function ih(it,at,lt){if(it=at.effects,at.effects=null,it!==null)for(at=0;at<it.length;at++){var ut=it[at],ct=ut.callback;if(ct!==null){if(ut.callback=null,ut=lt,typeof ct!="function")throw Error(p$2(191,ct));ct.call(ut)}}}var jh=new aa.Component().refs;function kh(it,at,lt,ut){at=it.memoizedState,lt=lt(ut,at),lt=lt==null?at:A$3({},at,lt),it.memoizedState=lt,it.lanes===0&&(it.updateQueue.baseState=lt)}var nh={isMounted:function(it){return(it=it._reactInternals)?Vb(it)===it:!1},enqueueSetState:function(it,at,lt){it=it._reactInternals;var ut=L$3(),ct=lh(it),dt=ch(ut,ct);dt.payload=at,lt!=null&&(dt.callback=lt),at=dh(it,dt,ct),at!==null&&(mh(at,it,ct,ut),eh(at,it,ct))},enqueueReplaceState:function(it,at,lt){it=it._reactInternals;var ut=L$3(),ct=lh(it),dt=ch(ut,ct);dt.tag=1,dt.payload=at,lt!=null&&(dt.callback=lt),at=dh(it,dt,ct),at!==null&&(mh(at,it,ct,ut),eh(at,it,ct))},enqueueForceUpdate:function(it,at){it=it._reactInternals;var lt=L$3(),ut=lh(it),ct=ch(lt,ut);ct.tag=2,at!=null&&(ct.callback=at),at=dh(it,ct,ut),at!==null&&(mh(at,it,ut,lt),eh(at,it,ut))}};function oh(it,at,lt,ut,ct,dt,ft){return it=it.stateNode,typeof it.shouldComponentUpdate=="function"?it.shouldComponentUpdate(ut,dt,ft):at.prototype&&at.prototype.isPureReactComponent?!Ie$2(lt,ut)||!Ie$2(ct,dt):!0}function ph(it,at,lt){var ut=!1,ct=Vf,dt=at.contextType;return typeof dt=="object"&&dt!==null?dt=Vg(dt):(ct=Zf(at)?Xf:H$3.current,ut=at.contextTypes,dt=(ut=ut!=null)?Yf(it,ct):Vf),at=new at(lt,dt),it.memoizedState=at.state!==null&&at.state!==void 0?at.state:null,at.updater=nh,it.stateNode=at,at._reactInternals=it,ut&&(it=it.stateNode,it.__reactInternalMemoizedUnmaskedChildContext=ct,it.__reactInternalMemoizedMaskedChildContext=dt),at}function qh(it,at,lt,ut){it=at.state,typeof at.componentWillReceiveProps=="function"&&at.componentWillReceiveProps(lt,ut),typeof at.UNSAFE_componentWillReceiveProps=="function"&&at.UNSAFE_componentWillReceiveProps(lt,ut),at.state!==it&&nh.enqueueReplaceState(at,at.state,null)}function rh(it,at,lt,ut){var ct=it.stateNode;ct.props=lt,ct.state=it.memoizedState,ct.refs=jh,ah(it);var dt=at.contextType;typeof dt=="object"&&dt!==null?ct.context=Vg(dt):(dt=Zf(at)?Xf:H$3.current,ct.context=Yf(it,dt)),ct.state=it.memoizedState,dt=at.getDerivedStateFromProps,typeof dt=="function"&&(kh(it,at,dt,lt),ct.state=it.memoizedState),typeof at.getDerivedStateFromProps=="function"||typeof ct.getSnapshotBeforeUpdate=="function"||typeof ct.UNSAFE_componentWillMount!="function"&&typeof ct.componentWillMount!="function"||(at=ct.state,typeof ct.componentWillMount=="function"&&ct.componentWillMount(),typeof ct.UNSAFE_componentWillMount=="function"&&ct.UNSAFE_componentWillMount(),at!==ct.state&&nh.enqueueReplaceState(ct,ct.state,null),gh(it,lt,ct,ut),ct.state=it.memoizedState),typeof ct.componentDidMount=="function"&&(it.flags|=4194308)}function sh(it,at,lt){if(it=lt.ref,it!==null&&typeof it!="function"&&typeof it!="object"){if(lt._owner){if(lt=lt._owner,lt){if(lt.tag!==1)throw Error(p$2(309));var ut=lt.stateNode}if(!ut)throw Error(p$2(147,it));var ct=ut,dt=""+it;return at!==null&&at.ref!==null&&typeof at.ref=="function"&&at.ref._stringRef===dt?at.ref:(at=function(ft){var mt=ct.refs;mt===jh&&(mt=ct.refs={}),ft===null?delete mt[dt]:mt[dt]=ft},at._stringRef=dt,at)}if(typeof it!="string")throw Error(p$2(284));if(!lt._owner)throw Error(p$2(290,it))}return it}function th(it,at){throw it=Object.prototype.toString.call(at),Error(p$2(31,it==="[object Object]"?"object with keys {"+Object.keys(at).join(", ")+"}":it))}function uh(it){var at=it._init;return at(it._payload)}function vh(it){function at(xt,St){if(it){var Ot=xt.deletions;Ot===null?(xt.deletions=[St],xt.flags|=16):Ot.push(St)}}function lt(xt,St){if(!it)return null;for(;St!==null;)at(xt,St),St=St.sibling;return null}function ut(xt,St){for(xt=new Map;St!==null;)St.key!==null?xt.set(St.key,St):xt.set(St.index,St),St=St.sibling;return xt}function ct(xt,St){return xt=wh(xt,St),xt.index=0,xt.sibling=null,xt}function dt(xt,St,Ot){return xt.index=Ot,it?(Ot=xt.alternate,Ot!==null?(Ot=Ot.index,Ot<St?(xt.flags|=2,St):Ot):(xt.flags|=2,St)):(xt.flags|=1048576,St)}function ft(xt){return it&&xt.alternate===null&&(xt.flags|=2),xt}function mt(xt,St,Ot,At){return St===null||St.tag!==6?(St=xh(Ot,xt.mode,At),St.return=xt,St):(St=ct(St,Ot),St.return=xt,St)}function pt(xt,St,Ot,At){var Tt=Ot.type;return Tt===ya?vt(xt,St,Ot.props.children,At,Ot.key):St!==null&&(St.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===Ha&&uh(Tt)===St.type)?(At=ct(St,Ot.props),At.ref=sh(xt,St,Ot),At.return=xt,At):(At=yh(Ot.type,Ot.key,Ot.props,null,xt.mode,At),At.ref=sh(xt,St,Ot),At.return=xt,At)}function gt(xt,St,Ot,At){return St===null||St.tag!==4||St.stateNode.containerInfo!==Ot.containerInfo||St.stateNode.implementation!==Ot.implementation?(St=zh(Ot,xt.mode,At),St.return=xt,St):(St=ct(St,Ot.children||[]),St.return=xt,St)}function vt(xt,St,Ot,At,Tt){return St===null||St.tag!==7?(St=Ah(Ot,xt.mode,At,Tt),St.return=xt,St):(St=ct(St,Ot),St.return=xt,St)}function wt(xt,St,Ot){if(typeof St=="string"&&St!==""||typeof St=="number")return St=xh(""+St,xt.mode,Ot),St.return=xt,St;if(typeof St=="object"&&St!==null){switch(St.$$typeof){case va:return Ot=yh(St.type,St.key,St.props,null,xt.mode,Ot),Ot.ref=sh(xt,null,St),Ot.return=xt,Ot;case wa:return St=zh(St,xt.mode,Ot),St.return=xt,St;case Ha:var At=St._init;return wt(xt,At(St._payload),Ot)}if(eb(St)||Ka(St))return St=Ah(St,xt.mode,Ot,null),St.return=xt,St;th(xt,St)}return null}function yt(xt,St,Ot,At){var Tt=St!==null?St.key:null;if(typeof Ot=="string"&&Ot!==""||typeof Ot=="number")return Tt!==null?null:mt(xt,St,""+Ot,At);if(typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case va:return Ot.key===Tt?pt(xt,St,Ot,At):null;case wa:return Ot.key===Tt?gt(xt,St,Ot,At):null;case Ha:return Tt=Ot._init,yt(xt,St,Tt(Ot._payload),At)}if(eb(Ot)||Ka(Ot))return Tt!==null?null:vt(xt,St,Ot,At,null);th(xt,Ot)}return null}function bt(xt,St,Ot,At,Tt){if(typeof At=="string"&&At!==""||typeof At=="number")return xt=xt.get(Ot)||null,mt(St,xt,""+At,Tt);if(typeof At=="object"&&At!==null){switch(At.$$typeof){case va:return xt=xt.get(At.key===null?Ot:At.key)||null,pt(St,xt,At,Tt);case wa:return xt=xt.get(At.key===null?Ot:At.key)||null,gt(St,xt,At,Tt);case Ha:var $t=At._init;return bt(xt,St,Ot,$t(At._payload),Tt)}if(eb(At)||Ka(At))return xt=xt.get(Ot)||null,vt(St,xt,At,Tt,null);th(St,At)}return null}function Ct(xt,St,Ot,At){for(var Tt=null,$t=null,Lt=St,Rt=St=0,It=null;Lt!==null&&Rt<Ot.length;Rt++){Lt.index>Rt?(It=Lt,Lt=null):It=Lt.sibling;var Ft=yt(xt,Lt,Ot[Rt],At);if(Ft===null){Lt===null&&(Lt=It);break}it&&Lt&&Ft.alternate===null&&at(xt,Lt),St=dt(Ft,St,Rt),$t===null?Tt=Ft:$t.sibling=Ft,$t=Ft,Lt=It}if(Rt===Ot.length)return lt(xt,Lt),I$3&&tg(xt,Rt),Tt;if(Lt===null){for(;Rt<Ot.length;Rt++)Lt=wt(xt,Ot[Rt],At),Lt!==null&&(St=dt(Lt,St,Rt),$t===null?Tt=Lt:$t.sibling=Lt,$t=Lt);return I$3&&tg(xt,Rt),Tt}for(Lt=ut(xt,Lt);Rt<Ot.length;Rt++)It=bt(Lt,xt,Rt,Ot[Rt],At),It!==null&&(it&&It.alternate!==null&&Lt.delete(It.key===null?Rt:It.key),St=dt(It,St,Rt),$t===null?Tt=It:$t.sibling=It,$t=It);return it&&Lt.forEach(function(Mt){return at(xt,Mt)}),I$3&&tg(xt,Rt),Tt}function Et(xt,St,Ot,At){var Tt=Ka(Ot);if(typeof Tt!="function")throw Error(p$2(150));if(Ot=Tt.call(Ot),Ot==null)throw Error(p$2(151));for(var $t=Tt=null,Lt=St,Rt=St=0,It=null,Ft=Ot.next();Lt!==null&&!Ft.done;Rt++,Ft=Ot.next()){Lt.index>Rt?(It=Lt,Lt=null):It=Lt.sibling;var Mt=yt(xt,Lt,Ft.value,At);if(Mt===null){Lt===null&&(Lt=It);break}it&&Lt&&Mt.alternate===null&&at(xt,Lt),St=dt(Mt,St,Rt),$t===null?Tt=Mt:$t.sibling=Mt,$t=Mt,Lt=It}if(Ft.done)return lt(xt,Lt),I$3&&tg(xt,Rt),Tt;if(Lt===null){for(;!Ft.done;Rt++,Ft=Ot.next())Ft=wt(xt,Ft.value,At),Ft!==null&&(St=dt(Ft,St,Rt),$t===null?Tt=Ft:$t.sibling=Ft,$t=Ft);return I$3&&tg(xt,Rt),Tt}for(Lt=ut(xt,Lt);!Ft.done;Rt++,Ft=Ot.next())Ft=bt(Lt,xt,Rt,Ft.value,At),Ft!==null&&(it&&Ft.alternate!==null&&Lt.delete(Ft.key===null?Rt:Ft.key),St=dt(Ft,St,Rt),$t===null?Tt=Ft:$t.sibling=Ft,$t=Ft);return it&&Lt.forEach(function(Ht){return at(xt,Ht)}),I$3&&tg(xt,Rt),Tt}function kt(xt,St,Ot,At){if(typeof Ot=="object"&&Ot!==null&&Ot.type===ya&&Ot.key===null&&(Ot=Ot.props.children),typeof Ot=="object"&&Ot!==null){switch(Ot.$$typeof){case va:e:{for(var Tt=Ot.key,$t=St;$t!==null;){if($t.key===Tt){if(Tt=Ot.type,Tt===ya){if($t.tag===7){lt(xt,$t.sibling),St=ct($t,Ot.props.children),St.return=xt,xt=St;break e}}else if($t.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===Ha&&uh(Tt)===$t.type){lt(xt,$t.sibling),St=ct($t,Ot.props),St.ref=sh(xt,$t,Ot),St.return=xt,xt=St;break e}lt(xt,$t);break}else at(xt,$t);$t=$t.sibling}Ot.type===ya?(St=Ah(Ot.props.children,xt.mode,At,Ot.key),St.return=xt,xt=St):(At=yh(Ot.type,Ot.key,Ot.props,null,xt.mode,At),At.ref=sh(xt,St,Ot),At.return=xt,xt=At)}return ft(xt);case wa:e:{for($t=Ot.key;St!==null;){if(St.key===$t)if(St.tag===4&&St.stateNode.containerInfo===Ot.containerInfo&&St.stateNode.implementation===Ot.implementation){lt(xt,St.sibling),St=ct(St,Ot.children||[]),St.return=xt,xt=St;break e}else{lt(xt,St);break}else at(xt,St);St=St.sibling}St=zh(Ot,xt.mode,At),St.return=xt,xt=St}return ft(xt);case Ha:return $t=Ot._init,kt(xt,St,$t(Ot._payload),At)}if(eb(Ot))return Ct(xt,St,Ot,At);if(Ka(Ot))return Et(xt,St,Ot,At);th(xt,Ot)}return typeof Ot=="string"&&Ot!==""||typeof Ot=="number"?(Ot=""+Ot,St!==null&&St.tag===6?(lt(xt,St.sibling),St=ct(St,Ot),St.return=xt,xt=St):(lt(xt,St),St=xh(Ot,xt.mode,At),St.return=xt,xt=St),ft(xt)):lt(xt,St)}return kt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(it){if(it===Dh)throw Error(p$2(174));return it}function Ih(it,at){switch(G$2(Gh,at),G$2(Fh,it),G$2(Eh,Dh),it=at.nodeType,it){case 9:case 11:at=(at=at.documentElement)?at.namespaceURI:lb(null,"");break;default:it=it===8?at.parentNode:at,at=it.namespaceURI||null,it=it.tagName,at=lb(at,it)}E$3(Eh),G$2(Eh,at)}function Jh(){E$3(Eh),E$3(Fh),E$3(Gh)}function Kh(it){Hh(Gh.current);var at=Hh(Eh.current),lt=lb(at,it.type);at!==lt&&(G$2(Fh,it),G$2(Eh,lt))}function Lh(it){Fh.current===it&&(E$3(Eh),E$3(Fh))}var M$3=Uf(0);function Mh(it){for(var at=it;at!==null;){if(at.tag===13){var lt=at.memoizedState;if(lt!==null&&(lt=lt.dehydrated,lt===null||lt.data==="$?"||lt.data==="$!"))return at}else if(at.tag===19&&at.memoizedProps.revealOrder!==void 0){if(at.flags&128)return at}else if(at.child!==null){at.child.return=at,at=at.child;continue}if(at===it)break;for(;at.sibling===null;){if(at.return===null||at.return===it)return null;at=at.return}at.sibling.return=at.return,at=at.sibling}return null}var Nh=[];function Oh(){for(var it=0;it<Nh.length;it++)Nh[it]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua.ReactCurrentDispatcher,Qh=ua.ReactCurrentBatchConfig,Rh=0,N$3=null,O$3=null,P$3=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q$3(){throw Error(p$2(321))}function Wh(it,at){if(at===null)return!1;for(var lt=0;lt<at.length&&lt<it.length;lt++)if(!He$2(it[lt],at[lt]))return!1;return!0}function Xh(it,at,lt,ut,ct,dt){if(Rh=dt,N$3=at,at.memoizedState=null,at.updateQueue=null,at.lanes=0,Ph.current=it===null||it.memoizedState===null?Yh:Zh,it=lt(ut,ct),Th){dt=0;do{if(Th=!1,Uh=0,25<=dt)throw Error(p$2(301));dt+=1,P$3=O$3=null,at.updateQueue=null,Ph.current=$h,it=lt(ut,ct)}while(Th)}if(Ph.current=ai,at=O$3!==null&&O$3.next!==null,Rh=0,P$3=O$3=N$3=null,Sh=!1,at)throw Error(p$2(300));return it}function bi$1(){var it=Uh!==0;return Uh=0,it}function ci(){var it={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P$3===null?N$3.memoizedState=P$3=it:P$3=P$3.next=it,P$3}function di(){if(O$3===null){var it=N$3.alternate;it=it!==null?it.memoizedState:null}else it=O$3.next;var at=P$3===null?N$3.memoizedState:P$3.next;if(at!==null)P$3=at,O$3=it;else{if(it===null)throw Error(p$2(310));O$3=it,it={memoizedState:O$3.memoizedState,baseState:O$3.baseState,baseQueue:O$3.baseQueue,queue:O$3.queue,next:null},P$3===null?N$3.memoizedState=P$3=it:P$3=P$3.next=it}return P$3}function ei(it,at){return typeof at=="function"?at(it):at}function fi(it){var at=di(),lt=at.queue;if(lt===null)throw Error(p$2(311));lt.lastRenderedReducer=it;var ut=O$3,ct=ut.baseQueue,dt=lt.pending;if(dt!==null){if(ct!==null){var ft=ct.next;ct.next=dt.next,dt.next=ft}ut.baseQueue=ct=dt,lt.pending=null}if(ct!==null){dt=ct.next,ut=ut.baseState;var mt=ft=null,pt=null,gt=dt;do{var vt=gt.lane;if((Rh&vt)===vt)pt!==null&&(pt=pt.next={lane:0,action:gt.action,hasEagerState:gt.hasEagerState,eagerState:gt.eagerState,next:null}),ut=gt.hasEagerState?gt.eagerState:it(ut,gt.action);else{var wt={lane:vt,action:gt.action,hasEagerState:gt.hasEagerState,eagerState:gt.eagerState,next:null};pt===null?(mt=pt=wt,ft=ut):pt=pt.next=wt,N$3.lanes|=vt,hh|=vt}gt=gt.next}while(gt!==null&&gt!==dt);pt===null?ft=ut:pt.next=mt,He$2(ut,at.memoizedState)||(Ug=!0),at.memoizedState=ut,at.baseState=ft,at.baseQueue=pt,lt.lastRenderedState=ut}if(it=lt.interleaved,it!==null){ct=it;do dt=ct.lane,N$3.lanes|=dt,hh|=dt,ct=ct.next;while(ct!==it)}else ct===null&&(lt.lanes=0);return[at.memoizedState,lt.dispatch]}function gi(it){var at=di(),lt=at.queue;if(lt===null)throw Error(p$2(311));lt.lastRenderedReducer=it;var ut=lt.dispatch,ct=lt.pending,dt=at.memoizedState;if(ct!==null){lt.pending=null;var ft=ct=ct.next;do dt=it(dt,ft.action),ft=ft.next;while(ft!==ct);He$2(dt,at.memoizedState)||(Ug=!0),at.memoizedState=dt,at.baseQueue===null&&(at.baseState=dt),lt.lastRenderedState=dt}return[dt,ut]}function hi(){}function ii(it,at){var lt=N$3,ut=di(),ct=at(),dt=!He$2(ut.memoizedState,ct);if(dt&&(ut.memoizedState=ct,Ug=!0),ut=ut.queue,ji(ki.bind(null,lt,ut,it),[it]),ut.getSnapshot!==at||dt||P$3!==null&&P$3.memoizedState.tag&1){if(lt.flags|=2048,li(9,mi.bind(null,lt,ut,ct,at),void 0,null),R$3===null)throw Error(p$2(349));Rh&30||ni(lt,at,ct)}return ct}function ni(it,at,lt){it.flags|=16384,it={getSnapshot:at,value:lt},at=N$3.updateQueue,at===null?(at={lastEffect:null,stores:null},N$3.updateQueue=at,at.stores=[it]):(lt=at.stores,lt===null?at.stores=[it]:lt.push(it))}function mi(it,at,lt,ut){at.value=lt,at.getSnapshot=ut,oi(at)&&pi(it)}function ki(it,at,lt){return lt(function(){oi(at)&&pi(it)})}function oi(it){var at=it.getSnapshot;it=it.value;try{var lt=at();return!He$2(it,lt)}catch{return!0}}function pi(it){var at=Zg(it,1);at!==null&&mh(at,it,1,-1)}function qi(it){var at=ci();return typeof it=="function"&&(it=it()),at.memoizedState=at.baseState=it,it={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:it},at.queue=it,it=it.dispatch=ri.bind(null,N$3,it),[at.memoizedState,it]}function li(it,at,lt,ut){return it={tag:it,create:at,destroy:lt,deps:ut,next:null},at=N$3.updateQueue,at===null?(at={lastEffect:null,stores:null},N$3.updateQueue=at,at.lastEffect=it.next=it):(lt=at.lastEffect,lt===null?at.lastEffect=it.next=it:(ut=lt.next,lt.next=it,it.next=ut,at.lastEffect=it)),it}function si(){return di().memoizedState}function ti(it,at,lt,ut){var ct=ci();N$3.flags|=it,ct.memoizedState=li(1|at,lt,void 0,ut===void 0?null:ut)}function ui(it,at,lt,ut){var ct=di();ut=ut===void 0?null:ut;var dt=void 0;if(O$3!==null){var ft=O$3.memoizedState;if(dt=ft.destroy,ut!==null&&Wh(ut,ft.deps)){ct.memoizedState=li(at,lt,dt,ut);return}}N$3.flags|=it,ct.memoizedState=li(1|at,lt,dt,ut)}function vi(it,at){return ti(8390656,8,it,at)}function ji(it,at){return ui(2048,8,it,at)}function wi(it,at){return ui(4,2,it,at)}function xi(it,at){return ui(4,4,it,at)}function yi(it,at){if(typeof at=="function")return it=it(),at(it),function(){at(null)};if(at!=null)return it=it(),at.current=it,function(){at.current=null}}function zi(it,at,lt){return lt=lt!=null?lt.concat([it]):null,ui(4,4,yi.bind(null,at,it),lt)}function Ai(){}function Bi(it,at){var lt=di();at=at===void 0?null:at;var ut=lt.memoizedState;return ut!==null&&at!==null&&Wh(at,ut[1])?ut[0]:(lt.memoizedState=[it,at],it)}function Ci(it,at){var lt=di();at=at===void 0?null:at;var ut=lt.memoizedState;return ut!==null&&at!==null&&Wh(at,ut[1])?ut[0]:(it=it(),lt.memoizedState=[it,at],it)}function Di(it,at,lt){return Rh&21?(He$2(lt,at)||(lt=yc(),N$3.lanes|=lt,hh|=lt,it.baseState=!0),at):(it.baseState&&(it.baseState=!1,Ug=!0),it.memoizedState=lt)}function Ei(it,at){var lt=C$3;C$3=lt!==0&&4>lt?lt:4,it(!0);var ut=Qh.transition;Qh.transition={};try{it(!1),at()}finally{C$3=lt,Qh.transition=ut}}function Fi(){return di().memoizedState}function Gi(it,at,lt){var ut=lh(it);if(lt={lane:ut,action:lt,hasEagerState:!1,eagerState:null,next:null},Hi(it))Ii(at,lt);else if(lt=Yg(it,at,lt,ut),lt!==null){var ct=L$3();mh(lt,it,ut,ct),Ji(lt,at,ut)}}function ri(it,at,lt){var ut=lh(it),ct={lane:ut,action:lt,hasEagerState:!1,eagerState:null,next:null};if(Hi(it))Ii(at,ct);else{var dt=it.alternate;if(it.lanes===0&&(dt===null||dt.lanes===0)&&(dt=at.lastRenderedReducer,dt!==null))try{var ft=at.lastRenderedState,mt=dt(ft,lt);if(ct.hasEagerState=!0,ct.eagerState=mt,He$2(mt,ft)){var pt=at.interleaved;pt===null?(ct.next=ct,Xg(at)):(ct.next=pt.next,pt.next=ct),at.interleaved=ct;return}}catch{}finally{}lt=Yg(it,at,ct,ut),lt!==null&&(ct=L$3(),mh(lt,it,ut,ct),Ji(lt,at,ut))}}function Hi(it){var at=it.alternate;return it===N$3||at!==null&&at===N$3}function Ii(it,at){Th=Sh=!0;var lt=it.pending;lt===null?at.next=at:(at.next=lt.next,lt.next=at),it.pending=at}function Ji(it,at,lt){if(lt&4194240){var ut=at.lanes;ut&=it.pendingLanes,lt|=ut,at.lanes=lt,Cc(it,lt)}}var ai={readContext:Vg,useCallback:Q$3,useContext:Q$3,useEffect:Q$3,useImperativeHandle:Q$3,useInsertionEffect:Q$3,useLayoutEffect:Q$3,useMemo:Q$3,useReducer:Q$3,useRef:Q$3,useState:Q$3,useDebugValue:Q$3,useDeferredValue:Q$3,useTransition:Q$3,useMutableSource:Q$3,useSyncExternalStore:Q$3,useId:Q$3,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(it,at){return ci().memoizedState=[it,at===void 0?null:at],it},useContext:Vg,useEffect:vi,useImperativeHandle:function(it,at,lt){return lt=lt!=null?lt.concat([it]):null,ti(4194308,4,yi.bind(null,at,it),lt)},useLayoutEffect:function(it,at){return ti(4194308,4,it,at)},useInsertionEffect:function(it,at){return ti(4,2,it,at)},useMemo:function(it,at){var lt=ci();return at=at===void 0?null:at,it=it(),lt.memoizedState=[it,at],it},useReducer:function(it,at,lt){var ut=ci();return at=lt!==void 0?lt(at):at,ut.memoizedState=ut.baseState=at,it={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:it,lastRenderedState:at},ut.queue=it,it=it.dispatch=Gi.bind(null,N$3,it),[ut.memoizedState,it]},useRef:function(it){var at=ci();return it={current:it},at.memoizedState=it},useState:qi,useDebugValue:Ai,useDeferredValue:function(it){return ci().memoizedState=it},useTransition:function(){var it=qi(!1),at=it[0];return it=Ei.bind(null,it[1]),ci().memoizedState=it,[at,it]},useMutableSource:function(){},useSyncExternalStore:function(it,at,lt){var ut=N$3,ct=ci();if(I$3){if(lt===void 0)throw Error(p$2(407));lt=lt()}else{if(lt=at(),R$3===null)throw Error(p$2(349));Rh&30||ni(ut,at,lt)}ct.memoizedState=lt;var dt={value:lt,getSnapshot:at};return ct.queue=dt,vi(ki.bind(null,ut,dt,it),[it]),ut.flags|=2048,li(9,mi.bind(null,ut,dt,lt,at),void 0,null),lt},useId:function(){var it=ci(),at=R$3.identifierPrefix;if(I$3){var lt=sg,ut=rg;lt=(ut&~(1<<32-oc(ut)-1)).toString(32)+lt,at=":"+at+"R"+lt,lt=Uh++,0<lt&&(at+="H"+lt.toString(32)),at+=":"}else lt=Vh++,at=":"+at+"r"+lt.toString(32)+":";return it.memoizedState=at},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(it){var at=di();return Di(at,O$3.memoizedState,it)},useTransition:function(){var it=fi(ei)[0],at=di().memoizedState;return[it,at]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(it){var at=di();return O$3===null?at.memoizedState=it:Di(at,O$3.memoizedState,it)},useTransition:function(){var it=gi(ei)[0],at=di().memoizedState;return[it,at]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(it,at){try{var lt="",ut=at;do lt+=Pa(ut),ut=ut.return;while(ut);var ct=lt}catch(dt){ct=`
Error generating stack: `+dt.message+`
`+dt.stack}return{value:it,source:at,stack:ct,digest:null}}function Li(it,at,lt){return{value:it,source:null,stack:lt??null,digest:at??null}}function Mi(it,at){try{console.error(at.value)}catch(lt){setTimeout(function(){throw lt})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(it,at,lt){lt=ch(-1,lt),lt.tag=3,lt.payload={element:null};var ut=at.value;return lt.callback=function(){Pi||(Pi=!0,Qi=ut),Mi(it,at)},lt}function Ri(it,at,lt){lt=ch(-1,lt),lt.tag=3;var ut=it.type.getDerivedStateFromError;if(typeof ut=="function"){var ct=at.value;lt.payload=function(){return ut(ct)},lt.callback=function(){Mi(it,at)}}var dt=it.stateNode;return dt!==null&&typeof dt.componentDidCatch=="function"&&(lt.callback=function(){Mi(it,at),typeof ut!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var ft=at.stack;this.componentDidCatch(at.value,{componentStack:ft!==null?ft:""})}),lt}function Ti(it,at,lt){var ut=it.pingCache;if(ut===null){ut=it.pingCache=new Ni;var ct=new Set;ut.set(at,ct)}else ct=ut.get(at),ct===void 0&&(ct=new Set,ut.set(at,ct));ct.has(lt)||(ct.add(lt),it=Ui.bind(null,it,at,lt),at.then(it,it))}function Vi(it){do{var at;if((at=it.tag===13)&&(at=it.memoizedState,at=at!==null?at.dehydrated!==null:!0),at)return it;it=it.return}while(it!==null);return null}function Wi(it,at,lt,ut,ct){return it.mode&1?(it.flags|=65536,it.lanes=ct,it):(it===at?it.flags|=65536:(it.flags|=128,lt.flags|=131072,lt.flags&=-52805,lt.tag===1&&(lt.alternate===null?lt.tag=17:(at=ch(-1,1),at.tag=2,dh(lt,at,1))),lt.lanes|=1),it)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(it,at,lt,ut){at.child=it===null?Ch(at,null,lt,ut):Bh(at,it.child,lt,ut)}function Zi(it,at,lt,ut,ct){lt=lt.render;var dt=at.ref;return Tg(at,ct),ut=Xh(it,at,lt,ut,dt,ct),lt=bi$1(),it!==null&&!Ug?(at.updateQueue=it.updateQueue,at.flags&=-2053,it.lanes&=~ct,$i(it,at,ct)):(I$3&&lt&&vg(at),at.flags|=1,Yi(it,at,ut,ct),at.child)}function aj(it,at,lt,ut,ct){if(it===null){var dt=lt.type;return typeof dt=="function"&&!bj(dt)&&dt.defaultProps===void 0&&lt.compare===null&&lt.defaultProps===void 0?(at.tag=15,at.type=dt,cj(it,at,dt,ut,ct)):(it=yh(lt.type,null,ut,at,at.mode,ct),it.ref=at.ref,it.return=at,at.child=it)}if(dt=it.child,!(it.lanes&ct)){var ft=dt.memoizedProps;if(lt=lt.compare,lt=lt!==null?lt:Ie$2,lt(ft,ut)&&it.ref===at.ref)return $i(it,at,ct)}return at.flags|=1,it=wh(dt,ut),it.ref=at.ref,it.return=at,at.child=it}function cj(it,at,lt,ut,ct){if(it!==null){var dt=it.memoizedProps;if(Ie$2(dt,ut)&&it.ref===at.ref)if(Ug=!1,at.pendingProps=ut=dt,(it.lanes&ct)!==0)it.flags&131072&&(Ug=!0);else return at.lanes=it.lanes,$i(it,at,ct)}return dj(it,at,lt,ut,ct)}function ej(it,at,lt){var ut=at.pendingProps,ct=ut.children,dt=it!==null?it.memoizedState:null;if(ut.mode==="hidden")if(!(at.mode&1))at.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$2(fj,gj),gj|=lt;else{if(!(lt&1073741824))return it=dt!==null?dt.baseLanes|lt:lt,at.lanes=at.childLanes=1073741824,at.memoizedState={baseLanes:it,cachePool:null,transitions:null},at.updateQueue=null,G$2(fj,gj),gj|=it,null;at.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut=dt!==null?dt.baseLanes:lt,G$2(fj,gj),gj|=ut}else dt!==null?(ut=dt.baseLanes|lt,at.memoizedState=null):ut=lt,G$2(fj,gj),gj|=ut;return Yi(it,at,ct,lt),at.child}function hj(it,at){var lt=at.ref;(it===null&&lt!==null||it!==null&&it.ref!==lt)&&(at.flags|=512,at.flags|=2097152)}function dj(it,at,lt,ut,ct){var dt=Zf(lt)?Xf:H$3.current;return dt=Yf(at,dt),Tg(at,ct),lt=Xh(it,at,lt,ut,dt,ct),ut=bi$1(),it!==null&&!Ug?(at.updateQueue=it.updateQueue,at.flags&=-2053,it.lanes&=~ct,$i(it,at,ct)):(I$3&&ut&&vg(at),at.flags|=1,Yi(it,at,lt,ct),at.child)}function ij(it,at,lt,ut,ct){if(Zf(lt)){var dt=!0;cg(at)}else dt=!1;if(Tg(at,ct),at.stateNode===null)jj(it,at),ph(at,lt,ut),rh(at,lt,ut,ct),ut=!0;else if(it===null){var ft=at.stateNode,mt=at.memoizedProps;ft.props=mt;var pt=ft.context,gt=lt.contextType;typeof gt=="object"&&gt!==null?gt=Vg(gt):(gt=Zf(lt)?Xf:H$3.current,gt=Yf(at,gt));var vt=lt.getDerivedStateFromProps,wt=typeof vt=="function"||typeof ft.getSnapshotBeforeUpdate=="function";wt||typeof ft.UNSAFE_componentWillReceiveProps!="function"&&typeof ft.componentWillReceiveProps!="function"||(mt!==ut||pt!==gt)&&qh(at,ft,ut,gt),$g=!1;var yt=at.memoizedState;ft.state=yt,gh(at,ut,ft,ct),pt=at.memoizedState,mt!==ut||yt!==pt||Wf.current||$g?(typeof vt=="function"&&(kh(at,lt,vt,ut),pt=at.memoizedState),(mt=$g||oh(at,lt,mt,ut,yt,pt,gt))?(wt||typeof ft.UNSAFE_componentWillMount!="function"&&typeof ft.componentWillMount!="function"||(typeof ft.componentWillMount=="function"&&ft.componentWillMount(),typeof ft.UNSAFE_componentWillMount=="function"&&ft.UNSAFE_componentWillMount()),typeof ft.componentDidMount=="function"&&(at.flags|=4194308)):(typeof ft.componentDidMount=="function"&&(at.flags|=4194308),at.memoizedProps=ut,at.memoizedState=pt),ft.props=ut,ft.state=pt,ft.context=gt,ut=mt):(typeof ft.componentDidMount=="function"&&(at.flags|=4194308),ut=!1)}else{ft=at.stateNode,bh(it,at),mt=at.memoizedProps,gt=at.type===at.elementType?mt:Lg(at.type,mt),ft.props=gt,wt=at.pendingProps,yt=ft.context,pt=lt.contextType,typeof pt=="object"&&pt!==null?pt=Vg(pt):(pt=Zf(lt)?Xf:H$3.current,pt=Yf(at,pt));var bt=lt.getDerivedStateFromProps;(vt=typeof bt=="function"||typeof ft.getSnapshotBeforeUpdate=="function")||typeof ft.UNSAFE_componentWillReceiveProps!="function"&&typeof ft.componentWillReceiveProps!="function"||(mt!==wt||yt!==pt)&&qh(at,ft,ut,pt),$g=!1,yt=at.memoizedState,ft.state=yt,gh(at,ut,ft,ct);var Ct=at.memoizedState;mt!==wt||yt!==Ct||Wf.current||$g?(typeof bt=="function"&&(kh(at,lt,bt,ut),Ct=at.memoizedState),(gt=$g||oh(at,lt,gt,ut,yt,Ct,pt)||!1)?(vt||typeof ft.UNSAFE_componentWillUpdate!="function"&&typeof ft.componentWillUpdate!="function"||(typeof ft.componentWillUpdate=="function"&&ft.componentWillUpdate(ut,Ct,pt),typeof ft.UNSAFE_componentWillUpdate=="function"&&ft.UNSAFE_componentWillUpdate(ut,Ct,pt)),typeof ft.componentDidUpdate=="function"&&(at.flags|=4),typeof ft.getSnapshotBeforeUpdate=="function"&&(at.flags|=1024)):(typeof ft.componentDidUpdate!="function"||mt===it.memoizedProps&&yt===it.memoizedState||(at.flags|=4),typeof ft.getSnapshotBeforeUpdate!="function"||mt===it.memoizedProps&&yt===it.memoizedState||(at.flags|=1024),at.memoizedProps=ut,at.memoizedState=Ct),ft.props=ut,ft.state=Ct,ft.context=pt,ut=gt):(typeof ft.componentDidUpdate!="function"||mt===it.memoizedProps&&yt===it.memoizedState||(at.flags|=4),typeof ft.getSnapshotBeforeUpdate!="function"||mt===it.memoizedProps&&yt===it.memoizedState||(at.flags|=1024),ut=!1)}return kj(it,at,lt,ut,dt,ct)}function kj(it,at,lt,ut,ct,dt){hj(it,at);var ft=(at.flags&128)!==0;if(!ut&&!ft)return ct&&dg(at,lt,!1),$i(it,at,dt);ut=at.stateNode,Xi.current=at;var mt=ft&&typeof lt.getDerivedStateFromError!="function"?null:ut.render();return at.flags|=1,it!==null&&ft?(at.child=Bh(at,it.child,null,dt),at.child=Bh(at,null,mt,dt)):Yi(it,at,mt,dt),at.memoizedState=ut.state,ct&&dg(at,lt,!0),at.child}function lj(it){var at=it.stateNode;at.pendingContext?ag(it,at.pendingContext,at.pendingContext!==at.context):at.context&&ag(it,at.context,!1),Ih(it,at.containerInfo)}function mj(it,at,lt,ut,ct){return Ig(),Jg(ct),at.flags|=256,Yi(it,at,lt,ut),at.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(it){return{baseLanes:it,cachePool:null,transitions:null}}function pj(it,at,lt){var ut=at.pendingProps,ct=M$3.current,dt=!1,ft=(at.flags&128)!==0,mt;if((mt=ft)||(mt=it!==null&&it.memoizedState===null?!1:(ct&2)!==0),mt?(dt=!0,at.flags&=-129):(it===null||it.memoizedState!==null)&&(ct|=1),G$2(M$3,ct&1),it===null)return Eg(at),it=at.memoizedState,it!==null&&(it=it.dehydrated,it!==null)?(at.mode&1?it.data==="$!"?at.lanes=8:at.lanes=1073741824:at.lanes=1,null):(ft=ut.children,it=ut.fallback,dt?(ut=at.mode,dt=at.child,ft={mode:"hidden",children:ft},!(ut&1)&&dt!==null?(dt.childLanes=0,dt.pendingProps=ft):dt=qj(ft,ut,0,null),it=Ah(it,ut,lt,null),dt.return=at,it.return=at,dt.sibling=it,at.child=dt,at.child.memoizedState=oj(lt),at.memoizedState=nj,it):rj(at,ft));if(ct=it.memoizedState,ct!==null&&(mt=ct.dehydrated,mt!==null))return sj(it,at,ft,ut,mt,ct,lt);if(dt){dt=ut.fallback,ft=at.mode,ct=it.child,mt=ct.sibling;var pt={mode:"hidden",children:ut.children};return!(ft&1)&&at.child!==ct?(ut=at.child,ut.childLanes=0,ut.pendingProps=pt,at.deletions=null):(ut=wh(ct,pt),ut.subtreeFlags=ct.subtreeFlags&14680064),mt!==null?dt=wh(mt,dt):(dt=Ah(dt,ft,lt,null),dt.flags|=2),dt.return=at,ut.return=at,ut.sibling=dt,at.child=ut,ut=dt,dt=at.child,ft=it.child.memoizedState,ft=ft===null?oj(lt):{baseLanes:ft.baseLanes|lt,cachePool:null,transitions:ft.transitions},dt.memoizedState=ft,dt.childLanes=it.childLanes&~lt,at.memoizedState=nj,ut}return dt=it.child,it=dt.sibling,ut=wh(dt,{mode:"visible",children:ut.children}),!(at.mode&1)&&(ut.lanes=lt),ut.return=at,ut.sibling=null,it!==null&&(lt=at.deletions,lt===null?(at.deletions=[it],at.flags|=16):lt.push(it)),at.child=ut,at.memoizedState=null,ut}function rj(it,at){return at=qj({mode:"visible",children:at},it.mode,0,null),at.return=it,it.child=at}function tj(it,at,lt,ut){return ut!==null&&Jg(ut),Bh(at,it.child,null,lt),it=rj(at,at.pendingProps.children),it.flags|=2,at.memoizedState=null,it}function sj(it,at,lt,ut,ct,dt,ft){if(lt)return at.flags&256?(at.flags&=-257,ut=Li(Error(p$2(422))),tj(it,at,ft,ut)):at.memoizedState!==null?(at.child=it.child,at.flags|=128,null):(dt=ut.fallback,ct=at.mode,ut=qj({mode:"visible",children:ut.children},ct,0,null),dt=Ah(dt,ct,ft,null),dt.flags|=2,ut.return=at,dt.return=at,ut.sibling=dt,at.child=ut,at.mode&1&&Bh(at,it.child,null,ft),at.child.memoizedState=oj(ft),at.memoizedState=nj,dt);if(!(at.mode&1))return tj(it,at,ft,null);if(ct.data==="$!"){if(ut=ct.nextSibling&&ct.nextSibling.dataset,ut)var mt=ut.dgst;return ut=mt,dt=Error(p$2(419)),ut=Li(dt,ut,void 0),tj(it,at,ft,ut)}if(mt=(ft&it.childLanes)!==0,Ug||mt){if(ut=R$3,ut!==null){switch(ft&-ft){case 4:ct=2;break;case 16:ct=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:ct=32;break;case 536870912:ct=268435456;break;default:ct=0}ct=ct&(ut.suspendedLanes|ft)?0:ct,ct!==0&&ct!==dt.retryLane&&(dt.retryLane=ct,Zg(it,ct),mh(ut,it,ct,-1))}return uj(),ut=Li(Error(p$2(421))),tj(it,at,ft,ut)}return ct.data==="$?"?(at.flags|=128,at.child=it.child,at=vj.bind(null,it),ct._reactRetry=at,null):(it=dt.treeContext,yg=Lf(ct.nextSibling),xg=at,I$3=!0,zg=null,it!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=it.id,sg=it.overflow,qg=at),at=rj(at,ut.children),at.flags|=4096,at)}function wj(it,at,lt){it.lanes|=at;var ut=it.alternate;ut!==null&&(ut.lanes|=at),Sg(it.return,at,lt)}function xj(it,at,lt,ut,ct){var dt=it.memoizedState;dt===null?it.memoizedState={isBackwards:at,rendering:null,renderingStartTime:0,last:ut,tail:lt,tailMode:ct}:(dt.isBackwards=at,dt.rendering=null,dt.renderingStartTime=0,dt.last=ut,dt.tail=lt,dt.tailMode=ct)}function yj(it,at,lt){var ut=at.pendingProps,ct=ut.revealOrder,dt=ut.tail;if(Yi(it,at,ut.children,lt),ut=M$3.current,ut&2)ut=ut&1|2,at.flags|=128;else{if(it!==null&&it.flags&128)e:for(it=at.child;it!==null;){if(it.tag===13)it.memoizedState!==null&&wj(it,lt,at);else if(it.tag===19)wj(it,lt,at);else if(it.child!==null){it.child.return=it,it=it.child;continue}if(it===at)break e;for(;it.sibling===null;){if(it.return===null||it.return===at)break e;it=it.return}it.sibling.return=it.return,it=it.sibling}ut&=1}if(G$2(M$3,ut),!(at.mode&1))at.memoizedState=null;else switch(ct){case"forwards":for(lt=at.child,ct=null;lt!==null;)it=lt.alternate,it!==null&&Mh(it)===null&&(ct=lt),lt=lt.sibling;lt=ct,lt===null?(ct=at.child,at.child=null):(ct=lt.sibling,lt.sibling=null),xj(at,!1,ct,lt,dt);break;case"backwards":for(lt=null,ct=at.child,at.child=null;ct!==null;){if(it=ct.alternate,it!==null&&Mh(it)===null){at.child=ct;break}it=ct.sibling,ct.sibling=lt,lt=ct,ct=it}xj(at,!0,lt,null,dt);break;case"together":xj(at,!1,null,null,void 0);break;default:at.memoizedState=null}return at.child}function jj(it,at){!(at.mode&1)&&it!==null&&(it.alternate=null,at.alternate=null,at.flags|=2)}function $i(it,at,lt){if(it!==null&&(at.dependencies=it.dependencies),hh|=at.lanes,!(lt&at.childLanes))return null;if(it!==null&&at.child!==it.child)throw Error(p$2(153));if(at.child!==null){for(it=at.child,lt=wh(it,it.pendingProps),at.child=lt,lt.return=at;it.sibling!==null;)it=it.sibling,lt=lt.sibling=wh(it,it.pendingProps),lt.return=at;lt.sibling=null}return at.child}function zj(it,at,lt){switch(at.tag){case 3:lj(at),Ig();break;case 5:Kh(at);break;case 1:Zf(at.type)&&cg(at);break;case 4:Ih(at,at.stateNode.containerInfo);break;case 10:var ut=at.type._context,ct=at.memoizedProps.value;G$2(Mg,ut._currentValue),ut._currentValue=ct;break;case 13:if(ut=at.memoizedState,ut!==null)return ut.dehydrated!==null?(G$2(M$3,M$3.current&1),at.flags|=128,null):lt&at.child.childLanes?pj(it,at,lt):(G$2(M$3,M$3.current&1),it=$i(it,at,lt),it!==null?it.sibling:null);G$2(M$3,M$3.current&1);break;case 19:if(ut=(lt&at.childLanes)!==0,it.flags&128){if(ut)return yj(it,at,lt);at.flags|=128}if(ct=at.memoizedState,ct!==null&&(ct.rendering=null,ct.tail=null,ct.lastEffect=null),G$2(M$3,M$3.current),ut)break;return null;case 22:case 23:return at.lanes=0,ej(it,at,lt)}return $i(it,at,lt)}var Aj,Bj,Cj,Dj;Aj=function(it,at){for(var lt=at.child;lt!==null;){if(lt.tag===5||lt.tag===6)it.appendChild(lt.stateNode);else if(lt.tag!==4&&lt.child!==null){lt.child.return=lt,lt=lt.child;continue}if(lt===at)break;for(;lt.sibling===null;){if(lt.return===null||lt.return===at)return;lt=lt.return}lt.sibling.return=lt.return,lt=lt.sibling}};Bj=function(){};Cj=function(it,at,lt,ut){var ct=it.memoizedProps;if(ct!==ut){it=at.stateNode,Hh(Eh.current);var dt=null;switch(lt){case"input":ct=Ya(it,ct),ut=Ya(it,ut),dt=[];break;case"select":ct=A$3({},ct,{value:void 0}),ut=A$3({},ut,{value:void 0}),dt=[];break;case"textarea":ct=gb(it,ct),ut=gb(it,ut),dt=[];break;default:typeof ct.onClick!="function"&&typeof ut.onClick=="function"&&(it.onclick=Bf)}ub(lt,ut);var ft;lt=null;for(gt in ct)if(!ut.hasOwnProperty(gt)&&ct.hasOwnProperty(gt)&&ct[gt]!=null)if(gt==="style"){var mt=ct[gt];for(ft in mt)mt.hasOwnProperty(ft)&&(lt||(lt={}),lt[ft]="")}else gt!=="dangerouslySetInnerHTML"&&gt!=="children"&&gt!=="suppressContentEditableWarning"&&gt!=="suppressHydrationWarning"&&gt!=="autoFocus"&&(ea.hasOwnProperty(gt)?dt||(dt=[]):(dt=dt||[]).push(gt,null));for(gt in ut){var pt=ut[gt];if(mt=ct!=null?ct[gt]:void 0,ut.hasOwnProperty(gt)&&pt!==mt&&(pt!=null||mt!=null))if(gt==="style")if(mt){for(ft in mt)!mt.hasOwnProperty(ft)||pt&&pt.hasOwnProperty(ft)||(lt||(lt={}),lt[ft]="");for(ft in pt)pt.hasOwnProperty(ft)&&mt[ft]!==pt[ft]&&(lt||(lt={}),lt[ft]=pt[ft])}else lt||(dt||(dt=[]),dt.push(gt,lt)),lt=pt;else gt==="dangerouslySetInnerHTML"?(pt=pt?pt.__html:void 0,mt=mt?mt.__html:void 0,pt!=null&&mt!==pt&&(dt=dt||[]).push(gt,pt)):gt==="children"?typeof pt!="string"&&typeof pt!="number"||(dt=dt||[]).push(gt,""+pt):gt!=="suppressContentEditableWarning"&&gt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(gt)?(pt!=null&&gt==="onScroll"&&D$3("scroll",it),dt||mt===pt||(dt=[])):(dt=dt||[]).push(gt,pt))}lt&&(dt=dt||[]).push("style",lt);var gt=dt;(at.updateQueue=gt)&&(at.flags|=4)}};Dj=function(it,at,lt,ut){lt!==ut&&(at.flags|=4)};function Ej(it,at){if(!I$3)switch(it.tailMode){case"hidden":at=it.tail;for(var lt=null;at!==null;)at.alternate!==null&&(lt=at),at=at.sibling;lt===null?it.tail=null:lt.sibling=null;break;case"collapsed":lt=it.tail;for(var ut=null;lt!==null;)lt.alternate!==null&&(ut=lt),lt=lt.sibling;ut===null?at||it.tail===null?it.tail=null:it.tail.sibling=null:ut.sibling=null}}function S$2(it){var at=it.alternate!==null&&it.alternate.child===it.child,lt=0,ut=0;if(at)for(var ct=it.child;ct!==null;)lt|=ct.lanes|ct.childLanes,ut|=ct.subtreeFlags&14680064,ut|=ct.flags&14680064,ct.return=it,ct=ct.sibling;else for(ct=it.child;ct!==null;)lt|=ct.lanes|ct.childLanes,ut|=ct.subtreeFlags,ut|=ct.flags,ct.return=it,ct=ct.sibling;return it.subtreeFlags|=ut,it.childLanes=lt,at}function Fj(it,at,lt){var ut=at.pendingProps;switch(wg(at),at.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$2(at),null;case 1:return Zf(at.type)&&$f(),S$2(at),null;case 3:return ut=at.stateNode,Jh(),E$3(Wf),E$3(H$3),Oh(),ut.pendingContext&&(ut.context=ut.pendingContext,ut.pendingContext=null),(it===null||it.child===null)&&(Gg(at)?at.flags|=4:it===null||it.memoizedState.isDehydrated&&!(at.flags&256)||(at.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(it,at),S$2(at),null;case 5:Lh(at);var ct=Hh(Gh.current);if(lt=at.type,it!==null&&at.stateNode!=null)Cj(it,at,lt,ut,ct),it.ref!==at.ref&&(at.flags|=512,at.flags|=2097152);else{if(!ut){if(at.stateNode===null)throw Error(p$2(166));return S$2(at),null}if(it=Hh(Eh.current),Gg(at)){ut=at.stateNode,lt=at.type;var dt=at.memoizedProps;switch(ut[Of]=at,ut[Pf]=dt,it=(at.mode&1)!==0,lt){case"dialog":D$3("cancel",ut),D$3("close",ut);break;case"iframe":case"object":case"embed":D$3("load",ut);break;case"video":case"audio":for(ct=0;ct<lf.length;ct++)D$3(lf[ct],ut);break;case"source":D$3("error",ut);break;case"img":case"image":case"link":D$3("error",ut),D$3("load",ut);break;case"details":D$3("toggle",ut);break;case"input":Za(ut,dt),D$3("invalid",ut);break;case"select":ut._wrapperState={wasMultiple:!!dt.multiple},D$3("invalid",ut);break;case"textarea":hb(ut,dt),D$3("invalid",ut)}ub(lt,dt),ct=null;for(var ft in dt)if(dt.hasOwnProperty(ft)){var mt=dt[ft];ft==="children"?typeof mt=="string"?ut.textContent!==mt&&(dt.suppressHydrationWarning!==!0&&Af(ut.textContent,mt,it),ct=["children",mt]):typeof mt=="number"&&ut.textContent!==""+mt&&(dt.suppressHydrationWarning!==!0&&Af(ut.textContent,mt,it),ct=["children",""+mt]):ea.hasOwnProperty(ft)&&mt!=null&&ft==="onScroll"&&D$3("scroll",ut)}switch(lt){case"input":Va(ut),db(ut,dt,!0);break;case"textarea":Va(ut),jb(ut);break;case"select":case"option":break;default:typeof dt.onClick=="function"&&(ut.onclick=Bf)}ut=ct,at.updateQueue=ut,ut!==null&&(at.flags|=4)}else{ft=ct.nodeType===9?ct:ct.ownerDocument,it==="http://www.w3.org/1999/xhtml"&&(it=kb(lt)),it==="http://www.w3.org/1999/xhtml"?lt==="script"?(it=ft.createElement("div"),it.innerHTML="<script><\/script>",it=it.removeChild(it.firstChild)):typeof ut.is=="string"?it=ft.createElement(lt,{is:ut.is}):(it=ft.createElement(lt),lt==="select"&&(ft=it,ut.multiple?ft.multiple=!0:ut.size&&(ft.size=ut.size))):it=ft.createElementNS(it,lt),it[Of]=at,it[Pf]=ut,Aj(it,at,!1,!1),at.stateNode=it;e:{switch(ft=vb(lt,ut),lt){case"dialog":D$3("cancel",it),D$3("close",it),ct=ut;break;case"iframe":case"object":case"embed":D$3("load",it),ct=ut;break;case"video":case"audio":for(ct=0;ct<lf.length;ct++)D$3(lf[ct],it);ct=ut;break;case"source":D$3("error",it),ct=ut;break;case"img":case"image":case"link":D$3("error",it),D$3("load",it),ct=ut;break;case"details":D$3("toggle",it),ct=ut;break;case"input":Za(it,ut),ct=Ya(it,ut),D$3("invalid",it);break;case"option":ct=ut;break;case"select":it._wrapperState={wasMultiple:!!ut.multiple},ct=A$3({},ut,{value:void 0}),D$3("invalid",it);break;case"textarea":hb(it,ut),ct=gb(it,ut),D$3("invalid",it);break;default:ct=ut}ub(lt,ct),mt=ct;for(dt in mt)if(mt.hasOwnProperty(dt)){var pt=mt[dt];dt==="style"?sb(it,pt):dt==="dangerouslySetInnerHTML"?(pt=pt?pt.__html:void 0,pt!=null&&nb(it,pt)):dt==="children"?typeof pt=="string"?(lt!=="textarea"||pt!=="")&&ob(it,pt):typeof pt=="number"&&ob(it,""+pt):dt!=="suppressContentEditableWarning"&&dt!=="suppressHydrationWarning"&&dt!=="autoFocus"&&(ea.hasOwnProperty(dt)?pt!=null&&dt==="onScroll"&&D$3("scroll",it):pt!=null&&ta(it,dt,pt,ft))}switch(lt){case"input":Va(it),db(it,ut,!1);break;case"textarea":Va(it),jb(it);break;case"option":ut.value!=null&&it.setAttribute("value",""+Sa(ut.value));break;case"select":it.multiple=!!ut.multiple,dt=ut.value,dt!=null?fb(it,!!ut.multiple,dt,!1):ut.defaultValue!=null&&fb(it,!!ut.multiple,ut.defaultValue,!0);break;default:typeof ct.onClick=="function"&&(it.onclick=Bf)}switch(lt){case"button":case"input":case"select":case"textarea":ut=!!ut.autoFocus;break e;case"img":ut=!0;break e;default:ut=!1}}ut&&(at.flags|=4)}at.ref!==null&&(at.flags|=512,at.flags|=2097152)}return S$2(at),null;case 6:if(it&&at.stateNode!=null)Dj(it,at,it.memoizedProps,ut);else{if(typeof ut!="string"&&at.stateNode===null)throw Error(p$2(166));if(lt=Hh(Gh.current),Hh(Eh.current),Gg(at)){if(ut=at.stateNode,lt=at.memoizedProps,ut[Of]=at,(dt=ut.nodeValue!==lt)&&(it=xg,it!==null))switch(it.tag){case 3:Af(ut.nodeValue,lt,(it.mode&1)!==0);break;case 5:it.memoizedProps.suppressHydrationWarning!==!0&&Af(ut.nodeValue,lt,(it.mode&1)!==0)}dt&&(at.flags|=4)}else ut=(lt.nodeType===9?lt:lt.ownerDocument).createTextNode(ut),ut[Of]=at,at.stateNode=ut}return S$2(at),null;case 13:if(E$3(M$3),ut=at.memoizedState,it===null||it.memoizedState!==null&&it.memoizedState.dehydrated!==null){if(I$3&&yg!==null&&at.mode&1&&!(at.flags&128))Hg(),Ig(),at.flags|=98560,dt=!1;else if(dt=Gg(at),ut!==null&&ut.dehydrated!==null){if(it===null){if(!dt)throw Error(p$2(318));if(dt=at.memoizedState,dt=dt!==null?dt.dehydrated:null,!dt)throw Error(p$2(317));dt[Of]=at}else Ig(),!(at.flags&128)&&(at.memoizedState=null),at.flags|=4;S$2(at),dt=!1}else zg!==null&&(Gj(zg),zg=null),dt=!0;if(!dt)return at.flags&65536?at:null}return at.flags&128?(at.lanes=lt,at):(ut=ut!==null,ut!==(it!==null&&it.memoizedState!==null)&&ut&&(at.child.flags|=8192,at.mode&1&&(it===null||M$3.current&1?T$3===0&&(T$3=3):uj())),at.updateQueue!==null&&(at.flags|=4),S$2(at),null);case 4:return Jh(),Bj(it,at),it===null&&sf(at.stateNode.containerInfo),S$2(at),null;case 10:return Rg(at.type._context),S$2(at),null;case 17:return Zf(at.type)&&$f(),S$2(at),null;case 19:if(E$3(M$3),dt=at.memoizedState,dt===null)return S$2(at),null;if(ut=(at.flags&128)!==0,ft=dt.rendering,ft===null)if(ut)Ej(dt,!1);else{if(T$3!==0||it!==null&&it.flags&128)for(it=at.child;it!==null;){if(ft=Mh(it),ft!==null){for(at.flags|=128,Ej(dt,!1),ut=ft.updateQueue,ut!==null&&(at.updateQueue=ut,at.flags|=4),at.subtreeFlags=0,ut=lt,lt=at.child;lt!==null;)dt=lt,it=ut,dt.flags&=14680066,ft=dt.alternate,ft===null?(dt.childLanes=0,dt.lanes=it,dt.child=null,dt.subtreeFlags=0,dt.memoizedProps=null,dt.memoizedState=null,dt.updateQueue=null,dt.dependencies=null,dt.stateNode=null):(dt.childLanes=ft.childLanes,dt.lanes=ft.lanes,dt.child=ft.child,dt.subtreeFlags=0,dt.deletions=null,dt.memoizedProps=ft.memoizedProps,dt.memoizedState=ft.memoizedState,dt.updateQueue=ft.updateQueue,dt.type=ft.type,it=ft.dependencies,dt.dependencies=it===null?null:{lanes:it.lanes,firstContext:it.firstContext}),lt=lt.sibling;return G$2(M$3,M$3.current&1|2),at.child}it=it.sibling}dt.tail!==null&&B$3()>Hj&&(at.flags|=128,ut=!0,Ej(dt,!1),at.lanes=4194304)}else{if(!ut)if(it=Mh(ft),it!==null){if(at.flags|=128,ut=!0,lt=it.updateQueue,lt!==null&&(at.updateQueue=lt,at.flags|=4),Ej(dt,!0),dt.tail===null&&dt.tailMode==="hidden"&&!ft.alternate&&!I$3)return S$2(at),null}else 2*B$3()-dt.renderingStartTime>Hj&&lt!==1073741824&&(at.flags|=128,ut=!0,Ej(dt,!1),at.lanes=4194304);dt.isBackwards?(ft.sibling=at.child,at.child=ft):(lt=dt.last,lt!==null?lt.sibling=ft:at.child=ft,dt.last=ft)}return dt.tail!==null?(at=dt.tail,dt.rendering=at,dt.tail=at.sibling,dt.renderingStartTime=B$3(),at.sibling=null,lt=M$3.current,G$2(M$3,ut?lt&1|2:lt&1),at):(S$2(at),null);case 22:case 23:return Ij(),ut=at.memoizedState!==null,it!==null&&it.memoizedState!==null!==ut&&(at.flags|=8192),ut&&at.mode&1?gj&1073741824&&(S$2(at),at.subtreeFlags&6&&(at.flags|=8192)):S$2(at),null;case 24:return null;case 25:return null}throw Error(p$2(156,at.tag))}function Jj(it,at){switch(wg(at),at.tag){case 1:return Zf(at.type)&&$f(),it=at.flags,it&65536?(at.flags=it&-65537|128,at):null;case 3:return Jh(),E$3(Wf),E$3(H$3),Oh(),it=at.flags,it&65536&&!(it&128)?(at.flags=it&-65537|128,at):null;case 5:return Lh(at),null;case 13:if(E$3(M$3),it=at.memoizedState,it!==null&&it.dehydrated!==null){if(at.alternate===null)throw Error(p$2(340));Ig()}return it=at.flags,it&65536?(at.flags=it&-65537|128,at):null;case 19:return E$3(M$3),null;case 4:return Jh(),null;case 10:return Rg(at.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$2=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(it,at){var lt=it.ref;if(lt!==null)if(typeof lt=="function")try{lt(null)}catch(ut){W$1(it,at,ut)}else lt.current=null}function Nj(it,at,lt){try{lt()}catch(ut){W$1(it,at,ut)}}var Oj=!1;function Pj(it,at){if(Cf=dd,it=Me$1(),Ne$2(it)){if("selectionStart"in it)var lt={start:it.selectionStart,end:it.selectionEnd};else e:{lt=(lt=it.ownerDocument)&&lt.defaultView||window;var ut=lt.getSelection&&lt.getSelection();if(ut&&ut.rangeCount!==0){lt=ut.anchorNode;var ct=ut.anchorOffset,dt=ut.focusNode;ut=ut.focusOffset;try{lt.nodeType,dt.nodeType}catch{lt=null;break e}var ft=0,mt=-1,pt=-1,gt=0,vt=0,wt=it,yt=null;t:for(;;){for(var bt;wt!==lt||ct!==0&&wt.nodeType!==3||(mt=ft+ct),wt!==dt||ut!==0&&wt.nodeType!==3||(pt=ft+ut),wt.nodeType===3&&(ft+=wt.nodeValue.length),(bt=wt.firstChild)!==null;)yt=wt,wt=bt;for(;;){if(wt===it)break t;if(yt===lt&&++gt===ct&&(mt=ft),yt===dt&&++vt===ut&&(pt=ft),(bt=wt.nextSibling)!==null)break;wt=yt,yt=wt.parentNode}wt=bt}lt=mt===-1||pt===-1?null:{start:mt,end:pt}}else lt=null}lt=lt||{start:0,end:0}}else lt=null;for(Df={focusedElem:it,selectionRange:lt},dd=!1,V$2=at;V$2!==null;)if(at=V$2,it=at.child,(at.subtreeFlags&1028)!==0&&it!==null)it.return=at,V$2=it;else for(;V$2!==null;){at=V$2;try{var Ct=at.alternate;if(at.flags&1024)switch(at.tag){case 0:case 11:case 15:break;case 1:if(Ct!==null){var Et=Ct.memoizedProps,kt=Ct.memoizedState,xt=at.stateNode,St=xt.getSnapshotBeforeUpdate(at.elementType===at.type?Et:Lg(at.type,Et),kt);xt.__reactInternalSnapshotBeforeUpdate=St}break;case 3:var Ot=at.stateNode.containerInfo;Ot.nodeType===1?Ot.textContent="":Ot.nodeType===9&&Ot.documentElement&&Ot.removeChild(Ot.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$2(163))}}catch(At){W$1(at,at.return,At)}if(it=at.sibling,it!==null){it.return=at.return,V$2=it;break}V$2=at.return}return Ct=Oj,Oj=!1,Ct}function Qj(it,at,lt){var ut=at.updateQueue;if(ut=ut!==null?ut.lastEffect:null,ut!==null){var ct=ut=ut.next;do{if((ct.tag&it)===it){var dt=ct.destroy;ct.destroy=void 0,dt!==void 0&&Nj(at,lt,dt)}ct=ct.next}while(ct!==ut)}}function Rj(it,at){if(at=at.updateQueue,at=at!==null?at.lastEffect:null,at!==null){var lt=at=at.next;do{if((lt.tag&it)===it){var ut=lt.create;lt.destroy=ut()}lt=lt.next}while(lt!==at)}}function Sj(it){var at=it.ref;if(at!==null){var lt=it.stateNode;switch(it.tag){case 5:it=lt;break;default:it=lt}typeof at=="function"?at(it):at.current=it}}function Tj(it){var at=it.alternate;at!==null&&(it.alternate=null,Tj(at)),it.child=null,it.deletions=null,it.sibling=null,it.tag===5&&(at=it.stateNode,at!==null&&(delete at[Of],delete at[Pf],delete at[of],delete at[Qf],delete at[Rf])),it.stateNode=null,it.return=null,it.dependencies=null,it.memoizedProps=null,it.memoizedState=null,it.pendingProps=null,it.stateNode=null,it.updateQueue=null}function Uj(it){return it.tag===5||it.tag===3||it.tag===4}function Vj(it){e:for(;;){for(;it.sibling===null;){if(it.return===null||Uj(it.return))return null;it=it.return}for(it.sibling.return=it.return,it=it.sibling;it.tag!==5&&it.tag!==6&&it.tag!==18;){if(it.flags&2||it.child===null||it.tag===4)continue e;it.child.return=it,it=it.child}if(!(it.flags&2))return it.stateNode}}function Wj(it,at,lt){var ut=it.tag;if(ut===5||ut===6)it=it.stateNode,at?lt.nodeType===8?lt.parentNode.insertBefore(it,at):lt.insertBefore(it,at):(lt.nodeType===8?(at=lt.parentNode,at.insertBefore(it,lt)):(at=lt,at.appendChild(it)),lt=lt._reactRootContainer,lt!=null||at.onclick!==null||(at.onclick=Bf));else if(ut!==4&&(it=it.child,it!==null))for(Wj(it,at,lt),it=it.sibling;it!==null;)Wj(it,at,lt),it=it.sibling}function Xj(it,at,lt){var ut=it.tag;if(ut===5||ut===6)it=it.stateNode,at?lt.insertBefore(it,at):lt.appendChild(it);else if(ut!==4&&(it=it.child,it!==null))for(Xj(it,at,lt),it=it.sibling;it!==null;)Xj(it,at,lt),it=it.sibling}var X$2=null,Yj=!1;function Zj(it,at,lt){for(lt=lt.child;lt!==null;)ak(it,at,lt),lt=lt.sibling}function ak(it,at,lt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,lt)}catch{}switch(lt.tag){case 5:U$2||Mj(lt,at);case 6:var ut=X$2,ct=Yj;X$2=null,Zj(it,at,lt),X$2=ut,Yj=ct,X$2!==null&&(Yj?(it=X$2,lt=lt.stateNode,it.nodeType===8?it.parentNode.removeChild(lt):it.removeChild(lt)):X$2.removeChild(lt.stateNode));break;case 18:X$2!==null&&(Yj?(it=X$2,lt=lt.stateNode,it.nodeType===8?Kf(it.parentNode,lt):it.nodeType===1&&Kf(it,lt),bd(it)):Kf(X$2,lt.stateNode));break;case 4:ut=X$2,ct=Yj,X$2=lt.stateNode.containerInfo,Yj=!0,Zj(it,at,lt),X$2=ut,Yj=ct;break;case 0:case 11:case 14:case 15:if(!U$2&&(ut=lt.updateQueue,ut!==null&&(ut=ut.lastEffect,ut!==null))){ct=ut=ut.next;do{var dt=ct,ft=dt.destroy;dt=dt.tag,ft!==void 0&&(dt&2||dt&4)&&Nj(lt,at,ft),ct=ct.next}while(ct!==ut)}Zj(it,at,lt);break;case 1:if(!U$2&&(Mj(lt,at),ut=lt.stateNode,typeof ut.componentWillUnmount=="function"))try{ut.props=lt.memoizedProps,ut.state=lt.memoizedState,ut.componentWillUnmount()}catch(mt){W$1(lt,at,mt)}Zj(it,at,lt);break;case 21:Zj(it,at,lt);break;case 22:lt.mode&1?(U$2=(ut=U$2)||lt.memoizedState!==null,Zj(it,at,lt),U$2=ut):Zj(it,at,lt);break;default:Zj(it,at,lt)}}function bk(it){var at=it.updateQueue;if(at!==null){it.updateQueue=null;var lt=it.stateNode;lt===null&&(lt=it.stateNode=new Lj),at.forEach(function(ut){var ct=ck.bind(null,it,ut);lt.has(ut)||(lt.add(ut),ut.then(ct,ct))})}}function dk(it,at){var lt=at.deletions;if(lt!==null)for(var ut=0;ut<lt.length;ut++){var ct=lt[ut];try{var dt=it,ft=at,mt=ft;e:for(;mt!==null;){switch(mt.tag){case 5:X$2=mt.stateNode,Yj=!1;break e;case 3:X$2=mt.stateNode.containerInfo,Yj=!0;break e;case 4:X$2=mt.stateNode.containerInfo,Yj=!0;break e}mt=mt.return}if(X$2===null)throw Error(p$2(160));ak(dt,ft,ct),X$2=null,Yj=!1;var pt=ct.alternate;pt!==null&&(pt.return=null),ct.return=null}catch(gt){W$1(ct,at,gt)}}if(at.subtreeFlags&12854)for(at=at.child;at!==null;)ek(at,it),at=at.sibling}function ek(it,at){var lt=it.alternate,ut=it.flags;switch(it.tag){case 0:case 11:case 14:case 15:if(dk(at,it),fk(it),ut&4){try{Qj(3,it,it.return),Rj(3,it)}catch(Et){W$1(it,it.return,Et)}try{Qj(5,it,it.return)}catch(Et){W$1(it,it.return,Et)}}break;case 1:dk(at,it),fk(it),ut&512&&lt!==null&&Mj(lt,lt.return);break;case 5:if(dk(at,it),fk(it),ut&512&&lt!==null&&Mj(lt,lt.return),it.flags&32){var ct=it.stateNode;try{ob(ct,"")}catch(Et){W$1(it,it.return,Et)}}if(ut&4&&(ct=it.stateNode,ct!=null)){var dt=it.memoizedProps,ft=lt!==null?lt.memoizedProps:dt,mt=it.type,pt=it.updateQueue;if(it.updateQueue=null,pt!==null)try{mt==="input"&&dt.type==="radio"&&dt.name!=null&&ab(ct,dt),vb(mt,ft);var gt=vb(mt,dt);for(ft=0;ft<pt.length;ft+=2){var vt=pt[ft],wt=pt[ft+1];vt==="style"?sb(ct,wt):vt==="dangerouslySetInnerHTML"?nb(ct,wt):vt==="children"?ob(ct,wt):ta(ct,vt,wt,gt)}switch(mt){case"input":bb(ct,dt);break;case"textarea":ib(ct,dt);break;case"select":var yt=ct._wrapperState.wasMultiple;ct._wrapperState.wasMultiple=!!dt.multiple;var bt=dt.value;bt!=null?fb(ct,!!dt.multiple,bt,!1):yt!==!!dt.multiple&&(dt.defaultValue!=null?fb(ct,!!dt.multiple,dt.defaultValue,!0):fb(ct,!!dt.multiple,dt.multiple?[]:"",!1))}ct[Pf]=dt}catch(Et){W$1(it,it.return,Et)}}break;case 6:if(dk(at,it),fk(it),ut&4){if(it.stateNode===null)throw Error(p$2(162));ct=it.stateNode,dt=it.memoizedProps;try{ct.nodeValue=dt}catch(Et){W$1(it,it.return,Et)}}break;case 3:if(dk(at,it),fk(it),ut&4&&lt!==null&&lt.memoizedState.isDehydrated)try{bd(at.containerInfo)}catch(Et){W$1(it,it.return,Et)}break;case 4:dk(at,it),fk(it);break;case 13:dk(at,it),fk(it),ct=it.child,ct.flags&8192&&(dt=ct.memoizedState!==null,ct.stateNode.isHidden=dt,!dt||ct.alternate!==null&&ct.alternate.memoizedState!==null||(gk=B$3())),ut&4&&bk(it);break;case 22:if(vt=lt!==null&&lt.memoizedState!==null,it.mode&1?(U$2=(gt=U$2)||vt,dk(at,it),U$2=gt):dk(at,it),fk(it),ut&8192){if(gt=it.memoizedState!==null,(it.stateNode.isHidden=gt)&&!vt&&it.mode&1)for(V$2=it,vt=it.child;vt!==null;){for(wt=V$2=vt;V$2!==null;){switch(yt=V$2,bt=yt.child,yt.tag){case 0:case 11:case 14:case 15:Qj(4,yt,yt.return);break;case 1:Mj(yt,yt.return);var Ct=yt.stateNode;if(typeof Ct.componentWillUnmount=="function"){ut=yt,lt=yt.return;try{at=ut,Ct.props=at.memoizedProps,Ct.state=at.memoizedState,Ct.componentWillUnmount()}catch(Et){W$1(ut,lt,Et)}}break;case 5:Mj(yt,yt.return);break;case 22:if(yt.memoizedState!==null){hk(wt);continue}}bt!==null?(bt.return=yt,V$2=bt):hk(wt)}vt=vt.sibling}e:for(vt=null,wt=it;;){if(wt.tag===5){if(vt===null){vt=wt;try{ct=wt.stateNode,gt?(dt=ct.style,typeof dt.setProperty=="function"?dt.setProperty("display","none","important"):dt.display="none"):(mt=wt.stateNode,pt=wt.memoizedProps.style,ft=pt!=null&&pt.hasOwnProperty("display")?pt.display:null,mt.style.display=rb("display",ft))}catch(Et){W$1(it,it.return,Et)}}}else if(wt.tag===6){if(vt===null)try{wt.stateNode.nodeValue=gt?"":wt.memoizedProps}catch(Et){W$1(it,it.return,Et)}}else if((wt.tag!==22&&wt.tag!==23||wt.memoizedState===null||wt===it)&&wt.child!==null){wt.child.return=wt,wt=wt.child;continue}if(wt===it)break e;for(;wt.sibling===null;){if(wt.return===null||wt.return===it)break e;vt===wt&&(vt=null),wt=wt.return}vt===wt&&(vt=null),wt.sibling.return=wt.return,wt=wt.sibling}}break;case 19:dk(at,it),fk(it),ut&4&&bk(it);break;case 21:break;default:dk(at,it),fk(it)}}function fk(it){var at=it.flags;if(at&2){try{e:{for(var lt=it.return;lt!==null;){if(Uj(lt)){var ut=lt;break e}lt=lt.return}throw Error(p$2(160))}switch(ut.tag){case 5:var ct=ut.stateNode;ut.flags&32&&(ob(ct,""),ut.flags&=-33);var dt=Vj(it);Xj(it,dt,ct);break;case 3:case 4:var ft=ut.stateNode.containerInfo,mt=Vj(it);Wj(it,mt,ft);break;default:throw Error(p$2(161))}}catch(pt){W$1(it,it.return,pt)}it.flags&=-3}at&4096&&(it.flags&=-4097)}function ik(it,at,lt){V$2=it,jk(it)}function jk(it,at,lt){for(var ut=(it.mode&1)!==0;V$2!==null;){var ct=V$2,dt=ct.child;if(ct.tag===22&&ut){var ft=ct.memoizedState!==null||Kj;if(!ft){var mt=ct.alternate,pt=mt!==null&&mt.memoizedState!==null||U$2;mt=Kj;var gt=U$2;if(Kj=ft,(U$2=pt)&&!gt)for(V$2=ct;V$2!==null;)ft=V$2,pt=ft.child,ft.tag===22&&ft.memoizedState!==null?kk(ct):pt!==null?(pt.return=ft,V$2=pt):kk(ct);for(;dt!==null;)V$2=dt,jk(dt),dt=dt.sibling;V$2=ct,Kj=mt,U$2=gt}lk(it)}else ct.subtreeFlags&8772&&dt!==null?(dt.return=ct,V$2=dt):lk(it)}}function lk(it){for(;V$2!==null;){var at=V$2;if(at.flags&8772){var lt=at.alternate;try{if(at.flags&8772)switch(at.tag){case 0:case 11:case 15:U$2||Rj(5,at);break;case 1:var ut=at.stateNode;if(at.flags&4&&!U$2)if(lt===null)ut.componentDidMount();else{var ct=at.elementType===at.type?lt.memoizedProps:Lg(at.type,lt.memoizedProps);ut.componentDidUpdate(ct,lt.memoizedState,ut.__reactInternalSnapshotBeforeUpdate)}var dt=at.updateQueue;dt!==null&&ih(at,dt,ut);break;case 3:var ft=at.updateQueue;if(ft!==null){if(lt=null,at.child!==null)switch(at.child.tag){case 5:lt=at.child.stateNode;break;case 1:lt=at.child.stateNode}ih(at,ft,lt)}break;case 5:var mt=at.stateNode;if(lt===null&&at.flags&4){lt=mt;var pt=at.memoizedProps;switch(at.type){case"button":case"input":case"select":case"textarea":pt.autoFocus&&lt.focus();break;case"img":pt.src&&(lt.src=pt.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(at.memoizedState===null){var gt=at.alternate;if(gt!==null){var vt=gt.memoizedState;if(vt!==null){var wt=vt.dehydrated;wt!==null&&bd(wt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$2(163))}U$2||at.flags&512&&Sj(at)}catch(yt){W$1(at,at.return,yt)}}if(at===it){V$2=null;break}if(lt=at.sibling,lt!==null){lt.return=at.return,V$2=lt;break}V$2=at.return}}function hk(it){for(;V$2!==null;){var at=V$2;if(at===it){V$2=null;break}var lt=at.sibling;if(lt!==null){lt.return=at.return,V$2=lt;break}V$2=at.return}}function kk(it){for(;V$2!==null;){var at=V$2;try{switch(at.tag){case 0:case 11:case 15:var lt=at.return;try{Rj(4,at)}catch(pt){W$1(at,lt,pt)}break;case 1:var ut=at.stateNode;if(typeof ut.componentDidMount=="function"){var ct=at.return;try{ut.componentDidMount()}catch(pt){W$1(at,ct,pt)}}var dt=at.return;try{Sj(at)}catch(pt){W$1(at,dt,pt)}break;case 5:var ft=at.return;try{Sj(at)}catch(pt){W$1(at,ft,pt)}}}catch(pt){W$1(at,at.return,pt)}if(at===it){V$2=null;break}var mt=at.sibling;if(mt!==null){mt.return=at.return,V$2=mt;break}V$2=at.return}}var mk=Math.ceil,nk=ua.ReactCurrentDispatcher,ok=ua.ReactCurrentOwner,pk=ua.ReactCurrentBatchConfig,K$2=0,R$3=null,Y$2=null,Z$2=0,gj=0,fj=Uf(0),T$3=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$3(){return K$2&6?B$3():Bk!==-1?Bk:Bk=B$3()}function lh(it){return it.mode&1?K$2&2&&Z$2!==0?Z$2&-Z$2:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(it=C$3,it!==0||(it=window.event,it=it===void 0?16:jd(it.type)),it):1}function mh(it,at,lt,ut){if(50<zk)throw zk=0,Ak=null,Error(p$2(185));Ac(it,lt,ut),(!(K$2&2)||it!==R$3)&&(it===R$3&&(!(K$2&2)&&(rk|=lt),T$3===4&&Dk(it,Z$2)),Ek(it,ut),lt===1&&K$2===0&&!(at.mode&1)&&(Hj=B$3()+500,fg&&jg()))}function Ek(it,at){var lt=it.callbackNode;wc(it,at);var ut=uc(it,it===R$3?Z$2:0);if(ut===0)lt!==null&&bc(lt),it.callbackNode=null,it.callbackPriority=0;else if(at=ut&-ut,it.callbackPriority!==at){if(lt!=null&&bc(lt),at===1)it.tag===0?ig(Fk.bind(null,it)):hg(Fk.bind(null,it)),Jf(function(){!(K$2&6)&&jg()}),lt=null;else{switch(Dc(ut)){case 1:lt=fc;break;case 4:lt=gc;break;case 16:lt=hc;break;case 536870912:lt=jc;break;default:lt=hc}lt=Gk(lt,Hk.bind(null,it))}it.callbackPriority=at,it.callbackNode=lt}}function Hk(it,at){if(Bk=-1,Ck=0,K$2&6)throw Error(p$2(327));var lt=it.callbackNode;if(Ik()&&it.callbackNode!==lt)return null;var ut=uc(it,it===R$3?Z$2:0);if(ut===0)return null;if(ut&30||ut&it.expiredLanes||at)at=Jk(it,ut);else{at=ut;var ct=K$2;K$2|=2;var dt=Kk();(R$3!==it||Z$2!==at)&&(vk=null,Hj=B$3()+500,Lk(it,at));do try{Mk();break}catch(mt){Nk(it,mt)}while(1);Qg(),nk.current=dt,K$2=ct,Y$2!==null?at=0:(R$3=null,Z$2=0,at=T$3)}if(at!==0){if(at===2&&(ct=xc(it),ct!==0&&(ut=ct,at=Ok(it,ct))),at===1)throw lt=qk,Lk(it,0),Dk(it,ut),Ek(it,B$3()),lt;if(at===6)Dk(it,ut);else{if(ct=it.current.alternate,!(ut&30)&&!Pk(ct)&&(at=Jk(it,ut),at===2&&(dt=xc(it),dt!==0&&(ut=dt,at=Ok(it,dt))),at===1))throw lt=qk,Lk(it,0),Dk(it,ut),Ek(it,B$3()),lt;switch(it.finishedWork=ct,it.finishedLanes=ut,at){case 0:case 1:throw Error(p$2(345));case 2:Qk(it,uk,vk);break;case 3:if(Dk(it,ut),(ut&130023424)===ut&&(at=gk+500-B$3(),10<at)){if(uc(it,0)!==0)break;if(ct=it.suspendedLanes,(ct&ut)!==ut){L$3(),it.pingedLanes|=it.suspendedLanes&ct;break}it.timeoutHandle=Ff(Qk.bind(null,it,uk,vk),at);break}Qk(it,uk,vk);break;case 4:if(Dk(it,ut),(ut&4194240)===ut)break;for(at=it.eventTimes,ct=-1;0<ut;){var ft=31-oc(ut);dt=1<<ft,ft=at[ft],ft>ct&&(ct=ft),ut&=~dt}if(ut=ct,ut=B$3()-ut,ut=(120>ut?120:480>ut?480:1080>ut?1080:1920>ut?1920:3e3>ut?3e3:4320>ut?4320:1960*mk(ut/1960))-ut,10<ut){it.timeoutHandle=Ff(Qk.bind(null,it,uk,vk),ut);break}Qk(it,uk,vk);break;case 5:Qk(it,uk,vk);break;default:throw Error(p$2(329))}}}return Ek(it,B$3()),it.callbackNode===lt?Hk.bind(null,it):null}function Ok(it,at){var lt=tk;return it.current.memoizedState.isDehydrated&&(Lk(it,at).flags|=256),it=Jk(it,at),it!==2&&(at=uk,uk=lt,at!==null&&Gj(at)),it}function Gj(it){uk===null?uk=it:uk.push.apply(uk,it)}function Pk(it){for(var at=it;;){if(at.flags&16384){var lt=at.updateQueue;if(lt!==null&&(lt=lt.stores,lt!==null))for(var ut=0;ut<lt.length;ut++){var ct=lt[ut],dt=ct.getSnapshot;ct=ct.value;try{if(!He$2(dt(),ct))return!1}catch{return!1}}}if(lt=at.child,at.subtreeFlags&16384&&lt!==null)lt.return=at,at=lt;else{if(at===it)break;for(;at.sibling===null;){if(at.return===null||at.return===it)return!0;at=at.return}at.sibling.return=at.return,at=at.sibling}}return!0}function Dk(it,at){for(at&=~sk,at&=~rk,it.suspendedLanes|=at,it.pingedLanes&=~at,it=it.expirationTimes;0<at;){var lt=31-oc(at),ut=1<<lt;it[lt]=-1,at&=~ut}}function Fk(it){if(K$2&6)throw Error(p$2(327));Ik();var at=uc(it,0);if(!(at&1))return Ek(it,B$3()),null;var lt=Jk(it,at);if(it.tag!==0&&lt===2){var ut=xc(it);ut!==0&&(at=ut,lt=Ok(it,ut))}if(lt===1)throw lt=qk,Lk(it,0),Dk(it,at),Ek(it,B$3()),lt;if(lt===6)throw Error(p$2(345));return it.finishedWork=it.current.alternate,it.finishedLanes=at,Qk(it,uk,vk),Ek(it,B$3()),null}function Rk(it,at){var lt=K$2;K$2|=1;try{return it(at)}finally{K$2=lt,K$2===0&&(Hj=B$3()+500,fg&&jg())}}function Sk(it){xk!==null&&xk.tag===0&&!(K$2&6)&&Ik();var at=K$2;K$2|=1;var lt=pk.transition,ut=C$3;try{if(pk.transition=null,C$3=1,it)return it()}finally{C$3=ut,pk.transition=lt,K$2=at,!(K$2&6)&&jg()}}function Ij(){gj=fj.current,E$3(fj)}function Lk(it,at){it.finishedWork=null,it.finishedLanes=0;var lt=it.timeoutHandle;if(lt!==-1&&(it.timeoutHandle=-1,Gf(lt)),Y$2!==null)for(lt=Y$2.return;lt!==null;){var ut=lt;switch(wg(ut),ut.tag){case 1:ut=ut.type.childContextTypes,ut!=null&&$f();break;case 3:Jh(),E$3(Wf),E$3(H$3),Oh();break;case 5:Lh(ut);break;case 4:Jh();break;case 13:E$3(M$3);break;case 19:E$3(M$3);break;case 10:Rg(ut.type._context);break;case 22:case 23:Ij()}lt=lt.return}if(R$3=it,Y$2=it=wh(it.current,null),Z$2=gj=at,T$3=0,qk=null,sk=rk=hh=0,uk=tk=null,Wg!==null){for(at=0;at<Wg.length;at++)if(lt=Wg[at],ut=lt.interleaved,ut!==null){lt.interleaved=null;var ct=ut.next,dt=lt.pending;if(dt!==null){var ft=dt.next;dt.next=ct,ut.next=ft}lt.pending=ut}Wg=null}return it}function Nk(it,at){do{var lt=Y$2;try{if(Qg(),Ph.current=ai,Sh){for(var ut=N$3.memoizedState;ut!==null;){var ct=ut.queue;ct!==null&&(ct.pending=null),ut=ut.next}Sh=!1}if(Rh=0,P$3=O$3=N$3=null,Th=!1,Uh=0,ok.current=null,lt===null||lt.return===null){T$3=1,qk=at,Y$2=null;break}e:{var dt=it,ft=lt.return,mt=lt,pt=at;if(at=Z$2,mt.flags|=32768,pt!==null&&typeof pt=="object"&&typeof pt.then=="function"){var gt=pt,vt=mt,wt=vt.tag;if(!(vt.mode&1)&&(wt===0||wt===11||wt===15)){var yt=vt.alternate;yt?(vt.updateQueue=yt.updateQueue,vt.memoizedState=yt.memoizedState,vt.lanes=yt.lanes):(vt.updateQueue=null,vt.memoizedState=null)}var bt=Vi(ft);if(bt!==null){bt.flags&=-257,Wi(bt,ft,mt,dt,at),bt.mode&1&&Ti(dt,gt,at),at=bt,pt=gt;var Ct=at.updateQueue;if(Ct===null){var Et=new Set;Et.add(pt),at.updateQueue=Et}else Ct.add(pt);break e}else{if(!(at&1)){Ti(dt,gt,at),uj();break e}pt=Error(p$2(426))}}else if(I$3&&mt.mode&1){var kt=Vi(ft);if(kt!==null){!(kt.flags&65536)&&(kt.flags|=256),Wi(kt,ft,mt,dt,at),Jg(Ki(pt,mt));break e}}dt=pt=Ki(pt,mt),T$3!==4&&(T$3=2),tk===null?tk=[dt]:tk.push(dt),dt=ft;do{switch(dt.tag){case 3:dt.flags|=65536,at&=-at,dt.lanes|=at;var xt=Oi(dt,pt,at);fh(dt,xt);break e;case 1:mt=pt;var St=dt.type,Ot=dt.stateNode;if(!(dt.flags&128)&&(typeof St.getDerivedStateFromError=="function"||Ot!==null&&typeof Ot.componentDidCatch=="function"&&(Si===null||!Si.has(Ot)))){dt.flags|=65536,at&=-at,dt.lanes|=at;var At=Ri(dt,mt,at);fh(dt,At);break e}}dt=dt.return}while(dt!==null)}Tk(lt)}catch(Tt){at=Tt,Y$2===lt&&lt!==null&&(Y$2=lt=lt.return);continue}break}while(1)}function Kk(){var it=nk.current;return nk.current=ai,it===null?ai:it}function uj(){(T$3===0||T$3===3||T$3===2)&&(T$3=4),R$3===null||!(hh&268435455)&&!(rk&268435455)||Dk(R$3,Z$2)}function Jk(it,at){var lt=K$2;K$2|=2;var ut=Kk();(R$3!==it||Z$2!==at)&&(vk=null,Lk(it,at));do try{Uk();break}catch(ct){Nk(it,ct)}while(1);if(Qg(),K$2=lt,nk.current=ut,Y$2!==null)throw Error(p$2(261));return R$3=null,Z$2=0,T$3}function Uk(){for(;Y$2!==null;)Vk(Y$2)}function Mk(){for(;Y$2!==null&&!cc();)Vk(Y$2)}function Vk(it){var at=Wk(it.alternate,it,gj);it.memoizedProps=it.pendingProps,at===null?Tk(it):Y$2=at,ok.current=null}function Tk(it){var at=it;do{var lt=at.alternate;if(it=at.return,at.flags&32768){if(lt=Jj(lt,at),lt!==null){lt.flags&=32767,Y$2=lt;return}if(it!==null)it.flags|=32768,it.subtreeFlags=0,it.deletions=null;else{T$3=6,Y$2=null;return}}else if(lt=Fj(lt,at,gj),lt!==null){Y$2=lt;return}if(at=at.sibling,at!==null){Y$2=at;return}Y$2=at=it}while(at!==null);T$3===0&&(T$3=5)}function Qk(it,at,lt){var ut=C$3,ct=pk.transition;try{pk.transition=null,C$3=1,Xk(it,at,lt,ut)}finally{pk.transition=ct,C$3=ut}return null}function Xk(it,at,lt,ut){do Ik();while(xk!==null);if(K$2&6)throw Error(p$2(327));lt=it.finishedWork;var ct=it.finishedLanes;if(lt===null)return null;if(it.finishedWork=null,it.finishedLanes=0,lt===it.current)throw Error(p$2(177));it.callbackNode=null,it.callbackPriority=0;var dt=lt.lanes|lt.childLanes;if(Bc(it,dt),it===R$3&&(Y$2=R$3=null,Z$2=0),!(lt.subtreeFlags&2064)&&!(lt.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),dt=(lt.flags&15990)!==0,lt.subtreeFlags&15990||dt){dt=pk.transition,pk.transition=null;var ft=C$3;C$3=1;var mt=K$2;K$2|=4,ok.current=null,Pj(it,lt),ek(lt,it),Oe$2(Df),dd=!!Cf,Df=Cf=null,it.current=lt,ik(lt),dc(),K$2=mt,C$3=ft,pk.transition=dt}else it.current=lt;if(wk&&(wk=!1,xk=it,yk=ct),dt=it.pendingLanes,dt===0&&(Si=null),mc(lt.stateNode),Ek(it,B$3()),at!==null)for(ut=it.onRecoverableError,lt=0;lt<at.length;lt++)ct=at[lt],ut(ct.value,{componentStack:ct.stack,digest:ct.digest});if(Pi)throw Pi=!1,it=Qi,Qi=null,it;return yk&1&&it.tag!==0&&Ik(),dt=it.pendingLanes,dt&1?it===Ak?zk++:(zk=0,Ak=it):zk=0,jg(),null}function Ik(){if(xk!==null){var it=Dc(yk),at=pk.transition,lt=C$3;try{if(pk.transition=null,C$3=16>it?16:it,xk===null)var ut=!1;else{if(it=xk,xk=null,yk=0,K$2&6)throw Error(p$2(331));var ct=K$2;for(K$2|=4,V$2=it.current;V$2!==null;){var dt=V$2,ft=dt.child;if(V$2.flags&16){var mt=dt.deletions;if(mt!==null){for(var pt=0;pt<mt.length;pt++){var gt=mt[pt];for(V$2=gt;V$2!==null;){var vt=V$2;switch(vt.tag){case 0:case 11:case 15:Qj(8,vt,dt)}var wt=vt.child;if(wt!==null)wt.return=vt,V$2=wt;else for(;V$2!==null;){vt=V$2;var yt=vt.sibling,bt=vt.return;if(Tj(vt),vt===gt){V$2=null;break}if(yt!==null){yt.return=bt,V$2=yt;break}V$2=bt}}}var Ct=dt.alternate;if(Ct!==null){var Et=Ct.child;if(Et!==null){Ct.child=null;do{var kt=Et.sibling;Et.sibling=null,Et=kt}while(Et!==null)}}V$2=dt}}if(dt.subtreeFlags&2064&&ft!==null)ft.return=dt,V$2=ft;else e:for(;V$2!==null;){if(dt=V$2,dt.flags&2048)switch(dt.tag){case 0:case 11:case 15:Qj(9,dt,dt.return)}var xt=dt.sibling;if(xt!==null){xt.return=dt.return,V$2=xt;break e}V$2=dt.return}}var St=it.current;for(V$2=St;V$2!==null;){ft=V$2;var Ot=ft.child;if(ft.subtreeFlags&2064&&Ot!==null)Ot.return=ft,V$2=Ot;else e:for(ft=St;V$2!==null;){if(mt=V$2,mt.flags&2048)try{switch(mt.tag){case 0:case 11:case 15:Rj(9,mt)}}catch(Tt){W$1(mt,mt.return,Tt)}if(mt===ft){V$2=null;break e}var At=mt.sibling;if(At!==null){At.return=mt.return,V$2=At;break e}V$2=mt.return}}if(K$2=ct,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,it)}catch{}ut=!0}return ut}finally{C$3=lt,pk.transition=at}}return!1}function Yk(it,at,lt){at=Ki(lt,at),at=Oi(it,at,1),it=dh(it,at,1),at=L$3(),it!==null&&(Ac(it,1,at),Ek(it,at))}function W$1(it,at,lt){if(it.tag===3)Yk(it,it,lt);else for(;at!==null;){if(at.tag===3){Yk(at,it,lt);break}else if(at.tag===1){var ut=at.stateNode;if(typeof at.type.getDerivedStateFromError=="function"||typeof ut.componentDidCatch=="function"&&(Si===null||!Si.has(ut))){it=Ki(lt,it),it=Ri(at,it,1),at=dh(at,it,1),it=L$3(),at!==null&&(Ac(at,1,it),Ek(at,it));break}}at=at.return}}function Ui(it,at,lt){var ut=it.pingCache;ut!==null&&ut.delete(at),at=L$3(),it.pingedLanes|=it.suspendedLanes&lt,R$3===it&&(Z$2&lt)===lt&&(T$3===4||T$3===3&&(Z$2&130023424)===Z$2&&500>B$3()-gk?Lk(it,0):sk|=lt),Ek(it,at)}function Zk(it,at){at===0&&(it.mode&1?(at=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):at=1);var lt=L$3();it=Zg(it,at),it!==null&&(Ac(it,at,lt),Ek(it,lt))}function vj(it){var at=it.memoizedState,lt=0;at!==null&&(lt=at.retryLane),Zk(it,lt)}function ck(it,at){var lt=0;switch(it.tag){case 13:var ut=it.stateNode,ct=it.memoizedState;ct!==null&&(lt=ct.retryLane);break;case 19:ut=it.stateNode;break;default:throw Error(p$2(314))}ut!==null&&ut.delete(at),Zk(it,lt)}var Wk;Wk=function(it,at,lt){if(it!==null)if(it.memoizedProps!==at.pendingProps||Wf.current)Ug=!0;else{if(!(it.lanes&lt)&&!(at.flags&128))return Ug=!1,zj(it,at,lt);Ug=!!(it.flags&131072)}else Ug=!1,I$3&&at.flags&1048576&&ug(at,ng,at.index);switch(at.lanes=0,at.tag){case 2:var ut=at.type;jj(it,at),it=at.pendingProps;var ct=Yf(at,H$3.current);Tg(at,lt),ct=Xh(null,at,ut,it,ct,lt);var dt=bi$1();return at.flags|=1,typeof ct=="object"&&ct!==null&&typeof ct.render=="function"&&ct.$$typeof===void 0?(at.tag=1,at.memoizedState=null,at.updateQueue=null,Zf(ut)?(dt=!0,cg(at)):dt=!1,at.memoizedState=ct.state!==null&&ct.state!==void 0?ct.state:null,ah(at),ct.updater=nh,at.stateNode=ct,ct._reactInternals=at,rh(at,ut,it,lt),at=kj(null,at,ut,!0,dt,lt)):(at.tag=0,I$3&&dt&&vg(at),Yi(null,at,ct,lt),at=at.child),at;case 16:ut=at.elementType;e:{switch(jj(it,at),it=at.pendingProps,ct=ut._init,ut=ct(ut._payload),at.type=ut,ct=at.tag=$k(ut),it=Lg(ut,it),ct){case 0:at=dj(null,at,ut,it,lt);break e;case 1:at=ij(null,at,ut,it,lt);break e;case 11:at=Zi(null,at,ut,it,lt);break e;case 14:at=aj(null,at,ut,Lg(ut.type,it),lt);break e}throw Error(p$2(306,ut,""))}return at;case 0:return ut=at.type,ct=at.pendingProps,ct=at.elementType===ut?ct:Lg(ut,ct),dj(it,at,ut,ct,lt);case 1:return ut=at.type,ct=at.pendingProps,ct=at.elementType===ut?ct:Lg(ut,ct),ij(it,at,ut,ct,lt);case 3:e:{if(lj(at),it===null)throw Error(p$2(387));ut=at.pendingProps,dt=at.memoizedState,ct=dt.element,bh(it,at),gh(at,ut,null,lt);var ft=at.memoizedState;if(ut=ft.element,dt.isDehydrated)if(dt={element:ut,isDehydrated:!1,cache:ft.cache,pendingSuspenseBoundaries:ft.pendingSuspenseBoundaries,transitions:ft.transitions},at.updateQueue.baseState=dt,at.memoizedState=dt,at.flags&256){ct=Ki(Error(p$2(423)),at),at=mj(it,at,ut,lt,ct);break e}else if(ut!==ct){ct=Ki(Error(p$2(424)),at),at=mj(it,at,ut,lt,ct);break e}else for(yg=Lf(at.stateNode.containerInfo.firstChild),xg=at,I$3=!0,zg=null,lt=Ch(at,null,ut,lt),at.child=lt;lt;)lt.flags=lt.flags&-3|4096,lt=lt.sibling;else{if(Ig(),ut===ct){at=$i(it,at,lt);break e}Yi(it,at,ut,lt)}at=at.child}return at;case 5:return Kh(at),it===null&&Eg(at),ut=at.type,ct=at.pendingProps,dt=it!==null?it.memoizedProps:null,ft=ct.children,Ef(ut,ct)?ft=null:dt!==null&&Ef(ut,dt)&&(at.flags|=32),hj(it,at),Yi(it,at,ft,lt),at.child;case 6:return it===null&&Eg(at),null;case 13:return pj(it,at,lt);case 4:return Ih(at,at.stateNode.containerInfo),ut=at.pendingProps,it===null?at.child=Bh(at,null,ut,lt):Yi(it,at,ut,lt),at.child;case 11:return ut=at.type,ct=at.pendingProps,ct=at.elementType===ut?ct:Lg(ut,ct),Zi(it,at,ut,ct,lt);case 7:return Yi(it,at,at.pendingProps,lt),at.child;case 8:return Yi(it,at,at.pendingProps.children,lt),at.child;case 12:return Yi(it,at,at.pendingProps.children,lt),at.child;case 10:e:{if(ut=at.type._context,ct=at.pendingProps,dt=at.memoizedProps,ft=ct.value,G$2(Mg,ut._currentValue),ut._currentValue=ft,dt!==null)if(He$2(dt.value,ft)){if(dt.children===ct.children&&!Wf.current){at=$i(it,at,lt);break e}}else for(dt=at.child,dt!==null&&(dt.return=at);dt!==null;){var mt=dt.dependencies;if(mt!==null){ft=dt.child;for(var pt=mt.firstContext;pt!==null;){if(pt.context===ut){if(dt.tag===1){pt=ch(-1,lt&-lt),pt.tag=2;var gt=dt.updateQueue;if(gt!==null){gt=gt.shared;var vt=gt.pending;vt===null?pt.next=pt:(pt.next=vt.next,vt.next=pt),gt.pending=pt}}dt.lanes|=lt,pt=dt.alternate,pt!==null&&(pt.lanes|=lt),Sg(dt.return,lt,at),mt.lanes|=lt;break}pt=pt.next}}else if(dt.tag===10)ft=dt.type===at.type?null:dt.child;else if(dt.tag===18){if(ft=dt.return,ft===null)throw Error(p$2(341));ft.lanes|=lt,mt=ft.alternate,mt!==null&&(mt.lanes|=lt),Sg(ft,lt,at),ft=dt.sibling}else ft=dt.child;if(ft!==null)ft.return=dt;else for(ft=dt;ft!==null;){if(ft===at){ft=null;break}if(dt=ft.sibling,dt!==null){dt.return=ft.return,ft=dt;break}ft=ft.return}dt=ft}Yi(it,at,ct.children,lt),at=at.child}return at;case 9:return ct=at.type,ut=at.pendingProps.children,Tg(at,lt),ct=Vg(ct),ut=ut(ct),at.flags|=1,Yi(it,at,ut,lt),at.child;case 14:return ut=at.type,ct=Lg(ut,at.pendingProps),ct=Lg(ut.type,ct),aj(it,at,ut,ct,lt);case 15:return cj(it,at,at.type,at.pendingProps,lt);case 17:return ut=at.type,ct=at.pendingProps,ct=at.elementType===ut?ct:Lg(ut,ct),jj(it,at),at.tag=1,Zf(ut)?(it=!0,cg(at)):it=!1,Tg(at,lt),ph(at,ut,ct),rh(at,ut,ct,lt),kj(null,at,ut,!0,it,lt);case 19:return yj(it,at,lt);case 22:return ej(it,at,lt)}throw Error(p$2(156,at.tag))};function Gk(it,at){return ac(it,at)}function al(it,at,lt,ut){this.tag=it,this.key=lt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=at,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ut,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(it,at,lt,ut){return new al(it,at,lt,ut)}function bj(it){return it=it.prototype,!(!it||!it.isReactComponent)}function $k(it){if(typeof it=="function")return bj(it)?1:0;if(it!=null){if(it=it.$$typeof,it===Da)return 11;if(it===Ga)return 14}return 2}function wh(it,at){var lt=it.alternate;return lt===null?(lt=Bg(it.tag,at,it.key,it.mode),lt.elementType=it.elementType,lt.type=it.type,lt.stateNode=it.stateNode,lt.alternate=it,it.alternate=lt):(lt.pendingProps=at,lt.type=it.type,lt.flags=0,lt.subtreeFlags=0,lt.deletions=null),lt.flags=it.flags&14680064,lt.childLanes=it.childLanes,lt.lanes=it.lanes,lt.child=it.child,lt.memoizedProps=it.memoizedProps,lt.memoizedState=it.memoizedState,lt.updateQueue=it.updateQueue,at=it.dependencies,lt.dependencies=at===null?null:{lanes:at.lanes,firstContext:at.firstContext},lt.sibling=it.sibling,lt.index=it.index,lt.ref=it.ref,lt}function yh(it,at,lt,ut,ct,dt){var ft=2;if(ut=it,typeof it=="function")bj(it)&&(ft=1);else if(typeof it=="string")ft=5;else e:switch(it){case ya:return Ah(lt.children,ct,dt,at);case za:ft=8,ct|=8;break;case Aa:return it=Bg(12,lt,at,ct|2),it.elementType=Aa,it.lanes=dt,it;case Ea:return it=Bg(13,lt,at,ct),it.elementType=Ea,it.lanes=dt,it;case Fa:return it=Bg(19,lt,at,ct),it.elementType=Fa,it.lanes=dt,it;case Ia:return qj(lt,ct,dt,at);default:if(typeof it=="object"&&it!==null)switch(it.$$typeof){case Ba:ft=10;break e;case Ca:ft=9;break e;case Da:ft=11;break e;case Ga:ft=14;break e;case Ha:ft=16,ut=null;break e}throw Error(p$2(130,it==null?it:typeof it,""))}return at=Bg(ft,lt,at,ct),at.elementType=it,at.type=ut,at.lanes=dt,at}function Ah(it,at,lt,ut){return it=Bg(7,it,ut,at),it.lanes=lt,it}function qj(it,at,lt,ut){return it=Bg(22,it,ut,at),it.elementType=Ia,it.lanes=lt,it.stateNode={isHidden:!1},it}function xh(it,at,lt){return it=Bg(6,it,null,at),it.lanes=lt,it}function zh(it,at,lt){return at=Bg(4,it.children!==null?it.children:[],it.key,at),at.lanes=lt,at.stateNode={containerInfo:it.containerInfo,pendingChildren:null,implementation:it.implementation},at}function bl(it,at,lt,ut,ct){this.tag=at,this.containerInfo=it,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=ut,this.onRecoverableError=ct,this.mutableSourceEagerHydrationData=null}function cl(it,at,lt,ut,ct,dt,ft,mt,pt){return it=new bl(it,at,lt,mt,pt),at===1?(at=1,dt===!0&&(at|=8)):at=0,dt=Bg(3,null,null,at),it.current=dt,dt.stateNode=it,dt.memoizedState={element:ut,isDehydrated:lt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(dt),it}function dl(it,at,lt){var ut=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:ut==null?null:""+ut,children:it,containerInfo:at,implementation:lt}}function el(it){if(!it)return Vf;it=it._reactInternals;e:{if(Vb(it)!==it||it.tag!==1)throw Error(p$2(170));var at=it;do{switch(at.tag){case 3:at=at.stateNode.context;break e;case 1:if(Zf(at.type)){at=at.stateNode.__reactInternalMemoizedMergedChildContext;break e}}at=at.return}while(at!==null);throw Error(p$2(171))}if(it.tag===1){var lt=it.type;if(Zf(lt))return bg(it,lt,at)}return at}function fl(it,at,lt,ut,ct,dt,ft,mt,pt){return it=cl(lt,ut,!0,it,ct,dt,ft,mt,pt),it.context=el(null),lt=it.current,ut=L$3(),ct=lh(lt),dt=ch(ut,ct),dt.callback=at??null,dh(lt,dt,ct),it.current.lanes=ct,Ac(it,ct,ut),Ek(it,ut),it}function gl(it,at,lt,ut){var ct=at.current,dt=L$3(),ft=lh(ct);return lt=el(lt),at.context===null?at.context=lt:at.pendingContext=lt,at=ch(dt,ft),at.payload={element:it},ut=ut===void 0?null:ut,ut!==null&&(at.callback=ut),it=dh(ct,at,ft),it!==null&&(mh(it,ct,ft,dt),eh(it,ct,ft)),ft}function hl(it){if(it=it.current,!it.child)return null;switch(it.child.tag){case 5:return it.child.stateNode;default:return it.child.stateNode}}function il(it,at){if(it=it.memoizedState,it!==null&&it.dehydrated!==null){var lt=it.retryLane;it.retryLane=lt!==0&&lt<at?lt:at}}function jl(it,at){il(it,at),(it=it.alternate)&&il(it,at)}function kl(){return null}var ll=typeof reportError=="function"?reportError:function(it){console.error(it)};function ml(it){this._internalRoot=it}nl.prototype.render=ml.prototype.render=function(it){var at=this._internalRoot;if(at===null)throw Error(p$2(409));gl(it,at,null,null)};nl.prototype.unmount=ml.prototype.unmount=function(){var it=this._internalRoot;if(it!==null){this._internalRoot=null;var at=it.containerInfo;Sk(function(){gl(null,it,null,null)}),at[uf]=null}};function nl(it){this._internalRoot=it}nl.prototype.unstable_scheduleHydration=function(it){if(it){var at=Hc();it={blockedOn:null,target:it,priority:at};for(var lt=0;lt<Qc.length&&at!==0&&at<Qc[lt].priority;lt++);Qc.splice(lt,0,it),lt===0&&Vc(it)}};function ol(it){return!(!it||it.nodeType!==1&&it.nodeType!==9&&it.nodeType!==11)}function pl(it){return!(!it||it.nodeType!==1&&it.nodeType!==9&&it.nodeType!==11&&(it.nodeType!==8||it.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(it,at,lt,ut,ct){if(ct){if(typeof ut=="function"){var dt=ut;ut=function(){var gt=hl(ft);dt.call(gt)}}var ft=fl(at,ut,it,0,null,!1,!1,"",ql);return it._reactRootContainer=ft,it[uf]=ft.current,sf(it.nodeType===8?it.parentNode:it),Sk(),ft}for(;ct=it.lastChild;)it.removeChild(ct);if(typeof ut=="function"){var mt=ut;ut=function(){var gt=hl(pt);mt.call(gt)}}var pt=cl(it,0,!1,null,null,!1,!1,"",ql);return it._reactRootContainer=pt,it[uf]=pt.current,sf(it.nodeType===8?it.parentNode:it),Sk(function(){gl(at,pt,lt,ut)}),pt}function sl(it,at,lt,ut,ct){var dt=lt._reactRootContainer;if(dt){var ft=dt;if(typeof ct=="function"){var mt=ct;ct=function(){var pt=hl(ft);mt.call(pt)}}gl(at,ft,it,ct)}else ft=rl(lt,at,it,ct,ut);return hl(ft)}Ec=function(it){switch(it.tag){case 3:var at=it.stateNode;if(at.current.memoizedState.isDehydrated){var lt=tc(at.pendingLanes);lt!==0&&(Cc(at,lt|1),Ek(at,B$3()),!(K$2&6)&&(Hj=B$3()+500,jg()))}break;case 13:Sk(function(){var ut=Zg(it,1);if(ut!==null){var ct=L$3();mh(ut,it,1,ct)}}),jl(it,1)}};Fc=function(it){if(it.tag===13){var at=Zg(it,134217728);if(at!==null){var lt=L$3();mh(at,it,134217728,lt)}jl(it,134217728)}};Gc=function(it){if(it.tag===13){var at=lh(it),lt=Zg(it,at);if(lt!==null){var ut=L$3();mh(lt,it,at,ut)}jl(it,at)}};Hc=function(){return C$3};Ic=function(it,at){var lt=C$3;try{return C$3=it,at()}finally{C$3=lt}};yb=function(it,at,lt){switch(at){case"input":if(bb(it,lt),at=lt.name,lt.type==="radio"&&at!=null){for(lt=it;lt.parentNode;)lt=lt.parentNode;for(lt=lt.querySelectorAll("input[name="+JSON.stringify(""+at)+'][type="radio"]'),at=0;at<lt.length;at++){var ut=lt[at];if(ut!==it&&ut.form===it.form){var ct=Db(ut);if(!ct)throw Error(p$2(90));Wa(ut),bb(ut,ct)}}}break;case"textarea":ib(it,lt);break;case"select":at=lt.value,at!=null&&fb(it,!!lt.multiple,at,!1)}};Gb=Rk;Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$2,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(it){return it=Zb(it),it===null?null:it.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance||kl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl;reactDom_production_min.createPortal=function(it,at){var lt=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(at))throw Error(p$2(200));return dl(it,at,null,lt)};reactDom_production_min.createRoot=function(it,at){if(!ol(it))throw Error(p$2(299));var lt=!1,ut="",ct=ll;return at!=null&&(at.unstable_strictMode===!0&&(lt=!0),at.identifierPrefix!==void 0&&(ut=at.identifierPrefix),at.onRecoverableError!==void 0&&(ct=at.onRecoverableError)),at=cl(it,1,!1,null,null,lt,!1,ut,ct),it[uf]=at.current,sf(it.nodeType===8?it.parentNode:it),new ml(at)};reactDom_production_min.findDOMNode=function(it){if(it==null)return null;if(it.nodeType===1)return it;var at=it._reactInternals;if(at===void 0)throw typeof it.render=="function"?Error(p$2(188)):(it=Object.keys(it).join(","),Error(p$2(268,it)));return it=Zb(at),it=it===null?null:it.stateNode,it};reactDom_production_min.flushSync=function(it){return Sk(it)};reactDom_production_min.hydrate=function(it,at,lt){if(!pl(at))throw Error(p$2(200));return sl(null,it,at,!0,lt)};reactDom_production_min.hydrateRoot=function(it,at,lt){if(!ol(it))throw Error(p$2(405));var ut=lt!=null&&lt.hydratedSources||null,ct=!1,dt="",ft=ll;if(lt!=null&&(lt.unstable_strictMode===!0&&(ct=!0),lt.identifierPrefix!==void 0&&(dt=lt.identifierPrefix),lt.onRecoverableError!==void 0&&(ft=lt.onRecoverableError)),at=fl(at,null,it,1,lt??null,ct,!1,dt,ft),it[uf]=at.current,sf(it),ut)for(it=0;it<ut.length;it++)lt=ut[it],ct=lt._getVersion,ct=ct(lt._source),at.mutableSourceEagerHydrationData==null?at.mutableSourceEagerHydrationData=[lt,ct]:at.mutableSourceEagerHydrationData.push(lt,ct);return new nl(at)};reactDom_production_min.render=function(it,at,lt){if(!pl(at))throw Error(p$2(200));return sl(null,it,at,!1,lt)};reactDom_production_min.unmountComponentAtNode=function(it){if(!pl(it))throw Error(p$2(40));return it._reactRootContainer?(Sk(function(){sl(null,null,it,!1,function(){it._reactRootContainer=null,it[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Rk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(it,at,lt,ut){if(!pl(lt))throw Error(p$2(200));if(it==null||it._reactInternals===void 0)throw Error(p$2(38));return sl(it,at,lt,!1,ut)};reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(it){console.error(it)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var createRoot,m$2=reactDomExports;createRoot=m$2.createRoot,m$2.hydrateRoot;class LuxonError extends Error{}class InvalidDateTimeError extends LuxonError{constructor(at){super(`Invalid DateTime: ${at.toMessage()}`)}}class InvalidIntervalError extends LuxonError{constructor(at){super(`Invalid Interval: ${at.toMessage()}`)}}class InvalidDurationError extends LuxonError{constructor(at){super(`Invalid Duration: ${at.toMessage()}`)}}class ConflictingSpecificationError extends LuxonError{}class InvalidUnitError extends LuxonError{constructor(at){super(`Invalid unit ${at}`)}}class InvalidArgumentError extends LuxonError{}class ZoneIsAbstractError extends LuxonError{constructor(){super("Zone is an abstract class")}}const n$2="numeric",s$2="short",l$1="long",DATE_SHORT={year:n$2,month:n$2,day:n$2},DATE_MED={year:n$2,month:s$2,day:n$2},DATE_MED_WITH_WEEKDAY={year:n$2,month:s$2,day:n$2,weekday:s$2},DATE_FULL={year:n$2,month:l$1,day:n$2},DATE_HUGE={year:n$2,month:l$1,day:n$2,weekday:l$1},TIME_SIMPLE={hour:n$2,minute:n$2},TIME_WITH_SECONDS={hour:n$2,minute:n$2,second:n$2},TIME_WITH_SHORT_OFFSET={hour:n$2,minute:n$2,second:n$2,timeZoneName:s$2},TIME_WITH_LONG_OFFSET={hour:n$2,minute:n$2,second:n$2,timeZoneName:l$1},TIME_24_SIMPLE={hour:n$2,minute:n$2,hourCycle:"h23"},TIME_24_WITH_SECONDS={hour:n$2,minute:n$2,second:n$2,hourCycle:"h23"},TIME_24_WITH_SHORT_OFFSET={hour:n$2,minute:n$2,second:n$2,hourCycle:"h23",timeZoneName:s$2},TIME_24_WITH_LONG_OFFSET={hour:n$2,minute:n$2,second:n$2,hourCycle:"h23",timeZoneName:l$1},DATETIME_SHORT={year:n$2,month:n$2,day:n$2,hour:n$2,minute:n$2},DATETIME_SHORT_WITH_SECONDS={year:n$2,month:n$2,day:n$2,hour:n$2,minute:n$2,second:n$2},DATETIME_MED={year:n$2,month:s$2,day:n$2,hour:n$2,minute:n$2},DATETIME_MED_WITH_SECONDS={year:n$2,month:s$2,day:n$2,hour:n$2,minute:n$2,second:n$2},DATETIME_MED_WITH_WEEKDAY={year:n$2,month:s$2,day:n$2,weekday:s$2,hour:n$2,minute:n$2},DATETIME_FULL={year:n$2,month:l$1,day:n$2,hour:n$2,minute:n$2,timeZoneName:s$2},DATETIME_FULL_WITH_SECONDS={year:n$2,month:l$1,day:n$2,hour:n$2,minute:n$2,second:n$2,timeZoneName:s$2},DATETIME_HUGE={year:n$2,month:l$1,day:n$2,weekday:l$1,hour:n$2,minute:n$2,timeZoneName:l$1},DATETIME_HUGE_WITH_SECONDS={year:n$2,month:l$1,day:n$2,weekday:l$1,hour:n$2,minute:n$2,second:n$2,timeZoneName:l$1};class Zone{get type(){throw new ZoneIsAbstractError}get name(){throw new ZoneIsAbstractError}get ianaName(){return this.name}get isUniversal(){throw new ZoneIsAbstractError}offsetName(at,lt){throw new ZoneIsAbstractError}formatOffset(at,lt){throw new ZoneIsAbstractError}offset(at){throw new ZoneIsAbstractError}equals(at){throw new ZoneIsAbstractError}get isValid(){throw new ZoneIsAbstractError}}let singleton$1=null;class SystemZone extends Zone{static get instance(){return singleton$1===null&&(singleton$1=new SystemZone),singleton$1}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(at,{format:lt,locale:ut}){return parseZoneInfo(at,lt,ut)}formatOffset(at,lt){return formatOffset(this.offset(at),lt)}offset(at){return-new Date(at).getTimezoneOffset()}equals(at){return at.type==="system"}get isValid(){return!0}}let dtfCache={};function makeDTF(it){return dtfCache[it]||(dtfCache[it]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:it,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),dtfCache[it]}const typeToPos={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function hackyOffset(it,at){const lt=it.format(at).replace(/\u200E/g,""),ut=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(lt),[,ct,dt,ft,mt,pt,gt,vt]=ut;return[ft,ct,dt,mt,pt,gt,vt]}function partsOffset(it,at){const lt=it.formatToParts(at),ut=[];for(let ct=0;ct<lt.length;ct++){const{type:dt,value:ft}=lt[ct],mt=typeToPos[dt];dt==="era"?ut[mt]=ft:isUndefined(mt)||(ut[mt]=parseInt(ft,10))}return ut}let ianaZoneCache={};class IANAZone extends Zone{static create(at){return ianaZoneCache[at]||(ianaZoneCache[at]=new IANAZone(at)),ianaZoneCache[at]}static resetCache(){ianaZoneCache={},dtfCache={}}static isValidSpecifier(at){return this.isValidZone(at)}static isValidZone(at){if(!at)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:at}).format(),!0}catch{return!1}}constructor(at){super(),this.zoneName=at,this.valid=IANAZone.isValidZone(at)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(at,{format:lt,locale:ut}){return parseZoneInfo(at,lt,ut,this.name)}formatOffset(at,lt){return formatOffset(this.offset(at),lt)}offset(at){const lt=new Date(at);if(isNaN(lt))return NaN;const ut=makeDTF(this.name);let[ct,dt,ft,mt,pt,gt,vt]=ut.formatToParts?partsOffset(ut,lt):hackyOffset(ut,lt);mt==="BC"&&(ct=-Math.abs(ct)+1);const yt=objToLocalTS({year:ct,month:dt,day:ft,hour:pt===24?0:pt,minute:gt,second:vt,millisecond:0});let bt=+lt;const Ct=bt%1e3;return bt-=Ct>=0?Ct:1e3+Ct,(yt-bt)/(60*1e3)}equals(at){return at.type==="iana"&&at.name===this.name}get isValid(){return this.valid}}let intlLFCache={};function getCachedLF(it,at={}){const lt=JSON.stringify([it,at]);let ut=intlLFCache[lt];return ut||(ut=new Intl.ListFormat(it,at),intlLFCache[lt]=ut),ut}let intlDTCache={};function getCachedDTF(it,at={}){const lt=JSON.stringify([it,at]);let ut=intlDTCache[lt];return ut||(ut=new Intl.DateTimeFormat(it,at),intlDTCache[lt]=ut),ut}let intlNumCache={};function getCachedINF(it,at={}){const lt=JSON.stringify([it,at]);let ut=intlNumCache[lt];return ut||(ut=new Intl.NumberFormat(it,at),intlNumCache[lt]=ut),ut}let intlRelCache={};function getCachedRTF(it,at={}){const{base:lt,...ut}=at,ct=JSON.stringify([it,ut]);let dt=intlRelCache[ct];return dt||(dt=new Intl.RelativeTimeFormat(it,at),intlRelCache[ct]=dt),dt}let sysLocaleCache=null;function systemLocale(){return sysLocaleCache||(sysLocaleCache=new Intl.DateTimeFormat().resolvedOptions().locale,sysLocaleCache)}function parseLocaleString(it){const at=it.indexOf("-x-");at!==-1&&(it=it.substring(0,at));const lt=it.indexOf("-u-");if(lt===-1)return[it];{let ut,ct;try{ut=getCachedDTF(it).resolvedOptions(),ct=it}catch{const pt=it.substring(0,lt);ut=getCachedDTF(pt).resolvedOptions(),ct=pt}const{numberingSystem:dt,calendar:ft}=ut;return[ct,dt,ft]}}function intlConfigString(it,at,lt){return(lt||at)&&(it.includes("-u-")||(it+="-u"),lt&&(it+=`-ca-${lt}`),at&&(it+=`-nu-${at}`)),it}function mapMonths(it){const at=[];for(let lt=1;lt<=12;lt++){const ut=DateTime.utc(2009,lt,1);at.push(it(ut))}return at}function mapWeekdays(it){const at=[];for(let lt=1;lt<=7;lt++){const ut=DateTime.utc(2016,11,13+lt);at.push(it(ut))}return at}function listStuff(it,at,lt,ut){const ct=it.listingMode();return ct==="error"?null:ct==="en"?lt(at):ut(at)}function supportsFastNumbers(it){return it.numberingSystem&&it.numberingSystem!=="latn"?!1:it.numberingSystem==="latn"||!it.locale||it.locale.startsWith("en")||new Intl.DateTimeFormat(it.intl).resolvedOptions().numberingSystem==="latn"}class PolyNumberFormatter{constructor(at,lt,ut){this.padTo=ut.padTo||0,this.floor=ut.floor||!1;const{padTo:ct,floor:dt,...ft}=ut;if(!lt||Object.keys(ft).length>0){const mt={useGrouping:!1,...ut};ut.padTo>0&&(mt.minimumIntegerDigits=ut.padTo),this.inf=getCachedINF(at,mt)}}format(at){if(this.inf){const lt=this.floor?Math.floor(at):at;return this.inf.format(lt)}else{const lt=this.floor?Math.floor(at):roundTo(at,3);return padStart(lt,this.padTo)}}}class PolyDateFormatter{constructor(at,lt,ut){this.opts=ut,this.originalZone=void 0;let ct;if(this.opts.timeZone)this.dt=at;else if(at.zone.type==="fixed"){const ft=-1*(at.offset/60),mt=ft>=0?`Etc/GMT+${ft}`:`Etc/GMT${ft}`;at.offset!==0&&IANAZone.create(mt).valid?(ct=mt,this.dt=at):(ct="UTC",this.dt=at.offset===0?at:at.setZone("UTC").plus({minutes:at.offset}),this.originalZone=at.zone)}else at.zone.type==="system"?this.dt=at:at.zone.type==="iana"?(this.dt=at,ct=at.zone.name):(ct="UTC",this.dt=at.setZone("UTC").plus({minutes:at.offset}),this.originalZone=at.zone);const dt={...this.opts};dt.timeZone=dt.timeZone||ct,this.dtf=getCachedDTF(lt,dt)}format(){return this.originalZone?this.formatToParts().map(({value:at})=>at).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const at=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?at.map(lt=>{if(lt.type==="timeZoneName"){const ut=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...lt,value:ut}}else return lt}):at}resolvedOptions(){return this.dtf.resolvedOptions()}}class PolyRelFormatter{constructor(at,lt,ut){this.opts={style:"long",...ut},!lt&&hasRelative()&&(this.rtf=getCachedRTF(at,ut))}format(at,lt){return this.rtf?this.rtf.format(at,lt):formatRelativeTime(lt,at,this.opts.numeric,this.opts.style!=="long")}formatToParts(at,lt){return this.rtf?this.rtf.formatToParts(at,lt):[]}}class Locale{static fromOpts(at){return Locale.create(at.locale,at.numberingSystem,at.outputCalendar,at.defaultToEN)}static create(at,lt,ut,ct=!1){const dt=at||Settings.defaultLocale,ft=dt||(ct?"en-US":systemLocale()),mt=lt||Settings.defaultNumberingSystem,pt=ut||Settings.defaultOutputCalendar;return new Locale(ft,mt,pt,dt)}static resetCache(){sysLocaleCache=null,intlDTCache={},intlNumCache={},intlRelCache={}}static fromObject({locale:at,numberingSystem:lt,outputCalendar:ut}={}){return Locale.create(at,lt,ut)}constructor(at,lt,ut,ct){const[dt,ft,mt]=parseLocaleString(at);this.locale=dt,this.numberingSystem=lt||ft||null,this.outputCalendar=ut||mt||null,this.intl=intlConfigString(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=ct,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=supportsFastNumbers(this)),this.fastNumbersCached}listingMode(){const at=this.isEnglish(),lt=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return at&&lt?"en":"intl"}clone(at){return!at||Object.getOwnPropertyNames(at).length===0?this:Locale.create(at.locale||this.specifiedLocale,at.numberingSystem||this.numberingSystem,at.outputCalendar||this.outputCalendar,at.defaultToEN||!1)}redefaultToEN(at={}){return this.clone({...at,defaultToEN:!0})}redefaultToSystem(at={}){return this.clone({...at,defaultToEN:!1})}months(at,lt=!1){return listStuff(this,at,months,()=>{const ut=lt?{month:at,day:"numeric"}:{month:at},ct=lt?"format":"standalone";return this.monthsCache[ct][at]||(this.monthsCache[ct][at]=mapMonths(dt=>this.extract(dt,ut,"month"))),this.monthsCache[ct][at]})}weekdays(at,lt=!1){return listStuff(this,at,weekdays,()=>{const ut=lt?{weekday:at,year:"numeric",month:"long",day:"numeric"}:{weekday:at},ct=lt?"format":"standalone";return this.weekdaysCache[ct][at]||(this.weekdaysCache[ct][at]=mapWeekdays(dt=>this.extract(dt,ut,"weekday"))),this.weekdaysCache[ct][at]})}meridiems(){return listStuff(this,void 0,()=>meridiems,()=>{if(!this.meridiemCache){const at={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[DateTime.utc(2016,11,13,9),DateTime.utc(2016,11,13,19)].map(lt=>this.extract(lt,at,"dayperiod"))}return this.meridiemCache})}eras(at){return listStuff(this,at,eras,()=>{const lt={era:at};return this.eraCache[at]||(this.eraCache[at]=[DateTime.utc(-40,1,1),DateTime.utc(2017,1,1)].map(ut=>this.extract(ut,lt,"era"))),this.eraCache[at]})}extract(at,lt,ut){const ct=this.dtFormatter(at,lt),dt=ct.formatToParts(),ft=dt.find(mt=>mt.type.toLowerCase()===ut);return ft?ft.value:null}numberFormatter(at={}){return new PolyNumberFormatter(this.intl,at.forceSimple||this.fastNumbers,at)}dtFormatter(at,lt={}){return new PolyDateFormatter(at,this.intl,lt)}relFormatter(at={}){return new PolyRelFormatter(this.intl,this.isEnglish(),at)}listFormatter(at={}){return getCachedLF(this.intl,at)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(at){return this.locale===at.locale&&this.numberingSystem===at.numberingSystem&&this.outputCalendar===at.outputCalendar}}let singleton=null;class FixedOffsetZone extends Zone{static get utcInstance(){return singleton===null&&(singleton=new FixedOffsetZone(0)),singleton}static instance(at){return at===0?FixedOffsetZone.utcInstance:new FixedOffsetZone(at)}static parseSpecifier(at){if(at){const lt=at.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(lt)return new FixedOffsetZone(signedOffset(lt[1],lt[2]))}return null}constructor(at){super(),this.fixed=at}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${formatOffset(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${formatOffset(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(at,lt){return formatOffset(this.fixed,lt)}get isUniversal(){return!0}offset(){return this.fixed}equals(at){return at.type==="fixed"&&at.fixed===this.fixed}get isValid(){return!0}}class InvalidZone extends Zone{constructor(at){super(),this.zoneName=at}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function normalizeZone(it,at){if(isUndefined(it)||it===null)return at;if(it instanceof Zone)return it;if(isString$1(it)){const lt=it.toLowerCase();return lt==="default"?at:lt==="local"||lt==="system"?SystemZone.instance:lt==="utc"||lt==="gmt"?FixedOffsetZone.utcInstance:FixedOffsetZone.parseSpecifier(lt)||IANAZone.create(it)}else return isNumber(it)?FixedOffsetZone.instance(it):typeof it=="object"&&"offset"in it&&typeof it.offset=="function"?it:new InvalidZone(it)}let now=()=>Date.now(),defaultZone="system",defaultLocale=null,defaultNumberingSystem=null,defaultOutputCalendar=null,twoDigitCutoffYear=60,throwOnInvalid;class Settings{static get now(){return now}static set now(at){now=at}static set defaultZone(at){defaultZone=at}static get defaultZone(){return normalizeZone(defaultZone,SystemZone.instance)}static get defaultLocale(){return defaultLocale}static set defaultLocale(at){defaultLocale=at}static get defaultNumberingSystem(){return defaultNumberingSystem}static set defaultNumberingSystem(at){defaultNumberingSystem=at}static get defaultOutputCalendar(){return defaultOutputCalendar}static set defaultOutputCalendar(at){defaultOutputCalendar=at}static get twoDigitCutoffYear(){return twoDigitCutoffYear}static set twoDigitCutoffYear(at){twoDigitCutoffYear=at%100}static get throwOnInvalid(){return throwOnInvalid}static set throwOnInvalid(at){throwOnInvalid=at}static resetCaches(){Locale.resetCache(),IANAZone.resetCache()}}function isUndefined(it){return typeof it>"u"}function isNumber(it){return typeof it=="number"}function isInteger(it){return typeof it=="number"&&it%1===0}function isString$1(it){return typeof it=="string"}function isDate$1(it){return Object.prototype.toString.call(it)==="[object Date]"}function hasRelative(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function maybeArray(it){return Array.isArray(it)?it:[it]}function bestBy(it,at,lt){if(it.length!==0)return it.reduce((ut,ct)=>{const dt=[at(ct),ct];return ut&&lt(ut[0],dt[0])===ut[0]?ut:dt},null)[1]}function pick(it,at){return at.reduce((lt,ut)=>(lt[ut]=it[ut],lt),{})}function hasOwnProperty$9(it,at){return Object.prototype.hasOwnProperty.call(it,at)}function integerBetween(it,at,lt){return isInteger(it)&&it>=at&&it<=lt}function floorMod(it,at){return it-at*Math.floor(it/at)}function padStart(it,at=2){const lt=it<0;let ut;return lt?ut="-"+(""+-it).padStart(at,"0"):ut=(""+it).padStart(at,"0"),ut}function parseInteger(it){if(!(isUndefined(it)||it===null||it===""))return parseInt(it,10)}function parseFloating(it){if(!(isUndefined(it)||it===null||it===""))return parseFloat(it)}function parseMillis(it){if(!(isUndefined(it)||it===null||it==="")){const at=parseFloat("0."+it)*1e3;return Math.floor(at)}}function roundTo(it,at,lt=!1){const ut=10**at;return(lt?Math.trunc:Math.round)(it*ut)/ut}function isLeapYear(it){return it%4===0&&(it%100!==0||it%400===0)}function daysInYear(it){return isLeapYear(it)?366:365}function daysInMonth(it,at){const lt=floorMod(at-1,12)+1,ut=it+(at-lt)/12;return lt===2?isLeapYear(ut)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][lt-1]}function objToLocalTS(it){let at=Date.UTC(it.year,it.month-1,it.day,it.hour,it.minute,it.second,it.millisecond);return it.year<100&&it.year>=0&&(at=new Date(at),at.setUTCFullYear(it.year,it.month-1,it.day)),+at}function weeksInWeekYear(it){const at=(it+Math.floor(it/4)-Math.floor(it/100)+Math.floor(it/400))%7,lt=it-1,ut=(lt+Math.floor(lt/4)-Math.floor(lt/100)+Math.floor(lt/400))%7;return at===4||ut===3?53:52}function untruncateYear(it){return it>99?it:it>Settings.twoDigitCutoffYear?1900+it:2e3+it}function parseZoneInfo(it,at,lt,ut=null){const ct=new Date(it),dt={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};ut&&(dt.timeZone=ut);const ft={timeZoneName:at,...dt},mt=new Intl.DateTimeFormat(lt,ft).formatToParts(ct).find(pt=>pt.type.toLowerCase()==="timezonename");return mt?mt.value:null}function signedOffset(it,at){let lt=parseInt(it,10);Number.isNaN(lt)&&(lt=0);const ut=parseInt(at,10)||0,ct=lt<0||Object.is(lt,-0)?-ut:ut;return lt*60+ct}function asNumber(it){const at=Number(it);if(typeof it=="boolean"||it===""||Number.isNaN(at))throw new InvalidArgumentError(`Invalid unit value ${it}`);return at}function normalizeObject(it,at){const lt={};for(const ut in it)if(hasOwnProperty$9(it,ut)){const ct=it[ut];if(ct==null)continue;lt[at(ut)]=asNumber(ct)}return lt}function formatOffset(it,at){const lt=Math.trunc(Math.abs(it/60)),ut=Math.trunc(Math.abs(it%60)),ct=it>=0?"+":"-";switch(at){case"short":return`${ct}${padStart(lt,2)}:${padStart(ut,2)}`;case"narrow":return`${ct}${lt}${ut>0?`:${ut}`:""}`;case"techie":return`${ct}${padStart(lt,2)}${padStart(ut,2)}`;default:throw new RangeError(`Value format ${at} is out of range for property format`)}}function timeObject(it){return pick(it,["hour","minute","second","millisecond"])}const monthsLong=["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthsNarrow=["J","F","M","A","M","J","J","A","S","O","N","D"];function months(it){switch(it){case"narrow":return[...monthsNarrow];case"short":return[...monthsShort];case"long":return[...monthsLong];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const weekdaysLong=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],weekdaysShort=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],weekdaysNarrow=["M","T","W","T","F","S","S"];function weekdays(it){switch(it){case"narrow":return[...weekdaysNarrow];case"short":return[...weekdaysShort];case"long":return[...weekdaysLong];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const meridiems=["AM","PM"],erasLong=["Before Christ","Anno Domini"],erasShort=["BC","AD"],erasNarrow=["B","A"];function eras(it){switch(it){case"narrow":return[...erasNarrow];case"short":return[...erasShort];case"long":return[...erasLong];default:return null}}function meridiemForDateTime(it){return meridiems[it.hour<12?0:1]}function weekdayForDateTime(it,at){return weekdays(at)[it.weekday-1]}function monthForDateTime(it,at){return months(at)[it.month-1]}function eraForDateTime(it,at){return eras(at)[it.year<0?0:1]}function formatRelativeTime(it,at,lt="always",ut=!1){const ct={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},dt=["hours","minutes","seconds"].indexOf(it)===-1;if(lt==="auto"&&dt){const wt=it==="days";switch(at){case 1:return wt?"tomorrow":`next ${ct[it][0]}`;case-1:return wt?"yesterday":`last ${ct[it][0]}`;case 0:return wt?"today":`this ${ct[it][0]}`}}const ft=Object.is(at,-0)||at<0,mt=Math.abs(at),pt=mt===1,gt=ct[it],vt=ut?pt?gt[1]:gt[2]||gt[1]:pt?ct[it][0]:it;return ft?`${mt} ${vt} ago`:`in ${mt} ${vt}`}function stringifyTokens(it,at){let lt="";for(const ut of it)ut.literal?lt+=ut.val:lt+=at(ut.val);return lt}const macroTokenToFormatOpts={D:DATE_SHORT,DD:DATE_MED,DDD:DATE_FULL,DDDD:DATE_HUGE,t:TIME_SIMPLE,tt:TIME_WITH_SECONDS,ttt:TIME_WITH_SHORT_OFFSET,tttt:TIME_WITH_LONG_OFFSET,T:TIME_24_SIMPLE,TT:TIME_24_WITH_SECONDS,TTT:TIME_24_WITH_SHORT_OFFSET,TTTT:TIME_24_WITH_LONG_OFFSET,f:DATETIME_SHORT,ff:DATETIME_MED,fff:DATETIME_FULL,ffff:DATETIME_HUGE,F:DATETIME_SHORT_WITH_SECONDS,FF:DATETIME_MED_WITH_SECONDS,FFF:DATETIME_FULL_WITH_SECONDS,FFFF:DATETIME_HUGE_WITH_SECONDS};let Formatter$1=class Pu{static create(at,lt={}){return new Pu(at,lt)}static parseFormat(at){let lt=null,ut="",ct=!1;const dt=[];for(let ft=0;ft<at.length;ft++){const mt=at.charAt(ft);mt==="'"?(ut.length>0&&dt.push({literal:ct||/^\s+$/.test(ut),val:ut}),lt=null,ut="",ct=!ct):ct||mt===lt?ut+=mt:(ut.length>0&&dt.push({literal:/^\s+$/.test(ut),val:ut}),ut=mt,lt=mt)}return ut.length>0&&dt.push({literal:ct||/^\s+$/.test(ut),val:ut}),dt}static macroTokenToFormatOpts(at){return macroTokenToFormatOpts[at]}constructor(at,lt){this.opts=lt,this.loc=at,this.systemLoc=null}formatWithSystemDefault(at,lt){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(at,{...this.opts,...lt}).format()}dtFormatter(at,lt={}){return this.loc.dtFormatter(at,{...this.opts,...lt})}formatDateTime(at,lt){return this.dtFormatter(at,lt).format()}formatDateTimeParts(at,lt){return this.dtFormatter(at,lt).formatToParts()}formatInterval(at,lt){return this.dtFormatter(at.start,lt).dtf.formatRange(at.start.toJSDate(),at.end.toJSDate())}resolvedOptions(at,lt){return this.dtFormatter(at,lt).resolvedOptions()}num(at,lt=0){if(this.opts.forceSimple)return padStart(at,lt);const ut={...this.opts};return lt>0&&(ut.padTo=lt),this.loc.numberFormatter(ut).format(at)}formatDateTimeFromString(at,lt){const ut=this.loc.listingMode()==="en",ct=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",dt=(bt,Ct)=>this.loc.extract(at,bt,Ct),ft=bt=>at.isOffsetFixed&&at.offset===0&&bt.allowZ?"Z":at.isValid?at.zone.formatOffset(at.ts,bt.format):"",mt=()=>ut?meridiemForDateTime(at):dt({hour:"numeric",hourCycle:"h12"},"dayperiod"),pt=(bt,Ct)=>ut?monthForDateTime(at,bt):dt(Ct?{month:bt}:{month:bt,day:"numeric"},"month"),gt=(bt,Ct)=>ut?weekdayForDateTime(at,bt):dt(Ct?{weekday:bt}:{weekday:bt,month:"long",day:"numeric"},"weekday"),vt=bt=>{const Ct=Pu.macroTokenToFormatOpts(bt);return Ct?this.formatWithSystemDefault(at,Ct):bt},wt=bt=>ut?eraForDateTime(at,bt):dt({era:bt},"era"),yt=bt=>{switch(bt){case"S":return this.num(at.millisecond);case"u":case"SSS":return this.num(at.millisecond,3);case"s":return this.num(at.second);case"ss":return this.num(at.second,2);case"uu":return this.num(Math.floor(at.millisecond/10),2);case"uuu":return this.num(Math.floor(at.millisecond/100));case"m":return this.num(at.minute);case"mm":return this.num(at.minute,2);case"h":return this.num(at.hour%12===0?12:at.hour%12);case"hh":return this.num(at.hour%12===0?12:at.hour%12,2);case"H":return this.num(at.hour);case"HH":return this.num(at.hour,2);case"Z":return ft({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return ft({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return ft({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return at.zone.offsetName(at.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return at.zone.offsetName(at.ts,{format:"long",locale:this.loc.locale});case"z":return at.zoneName;case"a":return mt();case"d":return ct?dt({day:"numeric"},"day"):this.num(at.day);case"dd":return ct?dt({day:"2-digit"},"day"):this.num(at.day,2);case"c":return this.num(at.weekday);case"ccc":return gt("short",!0);case"cccc":return gt("long",!0);case"ccccc":return gt("narrow",!0);case"E":return this.num(at.weekday);case"EEE":return gt("short",!1);case"EEEE":return gt("long",!1);case"EEEEE":return gt("narrow",!1);case"L":return ct?dt({month:"numeric",day:"numeric"},"month"):this.num(at.month);case"LL":return ct?dt({month:"2-digit",day:"numeric"},"month"):this.num(at.month,2);case"LLL":return pt("short",!0);case"LLLL":return pt("long",!0);case"LLLLL":return pt("narrow",!0);case"M":return ct?dt({month:"numeric"},"month"):this.num(at.month);case"MM":return ct?dt({month:"2-digit"},"month"):this.num(at.month,2);case"MMM":return pt("short",!1);case"MMMM":return pt("long",!1);case"MMMMM":return pt("narrow",!1);case"y":return ct?dt({year:"numeric"},"year"):this.num(at.year);case"yy":return ct?dt({year:"2-digit"},"year"):this.num(at.year.toString().slice(-2),2);case"yyyy":return ct?dt({year:"numeric"},"year"):this.num(at.year,4);case"yyyyyy":return ct?dt({year:"numeric"},"year"):this.num(at.year,6);case"G":return wt("short");case"GG":return wt("long");case"GGGGG":return wt("narrow");case"kk":return this.num(at.weekYear.toString().slice(-2),2);case"kkkk":return this.num(at.weekYear,4);case"W":return this.num(at.weekNumber);case"WW":return this.num(at.weekNumber,2);case"o":return this.num(at.ordinal);case"ooo":return this.num(at.ordinal,3);case"q":return this.num(at.quarter);case"qq":return this.num(at.quarter,2);case"X":return this.num(Math.floor(at.ts/1e3));case"x":return this.num(at.ts);default:return vt(bt)}};return stringifyTokens(Pu.parseFormat(lt),yt)}formatDurationFromString(at,lt){const ut=pt=>{switch(pt[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},ct=pt=>gt=>{const vt=ut(gt);return vt?this.num(pt.get(vt),gt.length):gt},dt=Pu.parseFormat(lt),ft=dt.reduce((pt,{literal:gt,val:vt})=>gt?pt:pt.concat(vt),[]),mt=at.shiftTo(...ft.map(ut).filter(pt=>pt));return stringifyTokens(dt,ct(mt))}};class Invalid{constructor(at,lt){this.reason=at,this.explanation=lt}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ianaRegex=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function combineRegexes(...it){const at=it.reduce((lt,ut)=>lt+ut.source,"");return RegExp(`^${at}$`)}function combineExtractors(...it){return at=>it.reduce(([lt,ut,ct],dt)=>{const[ft,mt,pt]=dt(at,ct);return[{...lt,...ft},mt||ut,pt]},[{},null,1]).slice(0,2)}function parse$2(it,...at){if(it==null)return[null,null];for(const[lt,ut]of at){const ct=lt.exec(it);if(ct)return ut(ct)}return[null,null]}function simpleParse(...it){return(at,lt)=>{const ut={};let ct;for(ct=0;ct<it.length;ct++)ut[it[ct]]=parseInteger(at[lt+ct]);return[ut,null,lt+ct]}}const offsetRegex=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,isoExtendedZone=`(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`,isoTimeBaseRegex=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,isoTimeRegex=RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`),isoTimeExtensionRegex=RegExp(`(?:T${isoTimeRegex.source})?`),isoYmdRegex=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,isoWeekRegex=/(\d{4})-?W(\d\d)(?:-?(\d))?/,isoOrdinalRegex=/(\d{4})-?(\d{3})/,extractISOWeekData=simpleParse("weekYear","weekNumber","weekDay"),extractISOOrdinalData=simpleParse("year","ordinal"),sqlYmdRegex=/(\d{4})-(\d\d)-(\d\d)/,sqlTimeRegex=RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`),sqlTimeExtensionRegex=RegExp(`(?: ${sqlTimeRegex.source})?`);function int(it,at,lt){const ut=it[at];return isUndefined(ut)?lt:parseInteger(ut)}function extractISOYmd(it,at){return[{year:int(it,at),month:int(it,at+1,1),day:int(it,at+2,1)},null,at+3]}function extractISOTime(it,at){return[{hours:int(it,at,0),minutes:int(it,at+1,0),seconds:int(it,at+2,0),milliseconds:parseMillis(it[at+3])},null,at+4]}function extractISOOffset(it,at){const lt=!it[at]&&!it[at+1],ut=signedOffset(it[at+1],it[at+2]),ct=lt?null:FixedOffsetZone.instance(ut);return[{},ct,at+3]}function extractIANAZone(it,at){const lt=it[at]?IANAZone.create(it[at]):null;return[{},lt,at+1]}const isoTimeOnly=RegExp(`^T?${isoTimeBaseRegex.source}$`),isoDuration=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function extractISODuration(it){const[at,lt,ut,ct,dt,ft,mt,pt,gt]=it,vt=at[0]==="-",wt=pt&&pt[0]==="-",yt=(bt,Ct=!1)=>bt!==void 0&&(Ct||bt&&vt)?-bt:bt;return[{years:yt(parseFloating(lt)),months:yt(parseFloating(ut)),weeks:yt(parseFloating(ct)),days:yt(parseFloating(dt)),hours:yt(parseFloating(ft)),minutes:yt(parseFloating(mt)),seconds:yt(parseFloating(pt),pt==="-0"),milliseconds:yt(parseMillis(gt),wt)}]}const obsOffsets={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fromStrings(it,at,lt,ut,ct,dt,ft){const mt={year:at.length===2?untruncateYear(parseInteger(at)):parseInteger(at),month:monthsShort.indexOf(lt)+1,day:parseInteger(ut),hour:parseInteger(ct),minute:parseInteger(dt)};return ft&&(mt.second=parseInteger(ft)),it&&(mt.weekday=it.length>3?weekdaysLong.indexOf(it)+1:weekdaysShort.indexOf(it)+1),mt}const rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function extractRFC2822(it){const[,at,lt,ut,ct,dt,ft,mt,pt,gt,vt,wt]=it,yt=fromStrings(at,ct,ut,lt,dt,ft,mt);let bt;return pt?bt=obsOffsets[pt]:gt?bt=0:bt=signedOffset(vt,wt),[yt,new FixedOffsetZone(bt)]}function preprocessRFC2822(it){return it.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const rfc1123=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,rfc850=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ascii=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function extractRFC1123Or850(it){const[,at,lt,ut,ct,dt,ft,mt]=it;return[fromStrings(at,ct,ut,lt,dt,ft,mt),FixedOffsetZone.utcInstance]}function extractASCII(it){const[,at,lt,ut,ct,dt,ft,mt]=it;return[fromStrings(at,mt,lt,ut,ct,dt,ft),FixedOffsetZone.utcInstance]}const isoYmdWithTimeExtensionRegex=combineRegexes(isoYmdRegex,isoTimeExtensionRegex),isoWeekWithTimeExtensionRegex=combineRegexes(isoWeekRegex,isoTimeExtensionRegex),isoOrdinalWithTimeExtensionRegex=combineRegexes(isoOrdinalRegex,isoTimeExtensionRegex),isoTimeCombinedRegex=combineRegexes(isoTimeRegex),extractISOYmdTimeAndOffset=combineExtractors(extractISOYmd,extractISOTime,extractISOOffset,extractIANAZone),extractISOWeekTimeAndOffset=combineExtractors(extractISOWeekData,extractISOTime,extractISOOffset,extractIANAZone),extractISOOrdinalDateAndTime=combineExtractors(extractISOOrdinalData,extractISOTime,extractISOOffset,extractIANAZone),extractISOTimeAndOffset=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseISODate(it){return parse$2(it,[isoYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[isoWeekWithTimeExtensionRegex,extractISOWeekTimeAndOffset],[isoOrdinalWithTimeExtensionRegex,extractISOOrdinalDateAndTime],[isoTimeCombinedRegex,extractISOTimeAndOffset])}function parseRFC2822Date(it){return parse$2(preprocessRFC2822(it),[rfc2822,extractRFC2822])}function parseHTTPDate(it){return parse$2(it,[rfc1123,extractRFC1123Or850],[rfc850,extractRFC1123Or850],[ascii,extractASCII])}function parseISODuration(it){return parse$2(it,[isoDuration,extractISODuration])}const extractISOTimeOnly=combineExtractors(extractISOTime);function parseISOTimeOnly(it){return parse$2(it,[isoTimeOnly,extractISOTimeOnly])}const sqlYmdWithTimeExtensionRegex=combineRegexes(sqlYmdRegex,sqlTimeExtensionRegex),sqlTimeCombinedRegex=combineRegexes(sqlTimeRegex),extractISOTimeOffsetAndIANAZone=combineExtractors(extractISOTime,extractISOOffset,extractIANAZone);function parseSQL(it){return parse$2(it,[sqlYmdWithTimeExtensionRegex,extractISOYmdTimeAndOffset],[sqlTimeCombinedRegex,extractISOTimeOffsetAndIANAZone])}const INVALID$2="Invalid Duration",lowOrderMatrix={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},casualMatrix={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...lowOrderMatrix},daysInYearAccurate=146097/400,daysInMonthAccurate=146097/4800,accurateMatrix={years:{quarters:4,months:12,weeks:daysInYearAccurate/7,days:daysInYearAccurate,hours:daysInYearAccurate*24,minutes:daysInYearAccurate*24*60,seconds:daysInYearAccurate*24*60*60,milliseconds:daysInYearAccurate*24*60*60*1e3},quarters:{months:3,weeks:daysInYearAccurate/28,days:daysInYearAccurate/4,hours:daysInYearAccurate*24/4,minutes:daysInYearAccurate*24*60/4,seconds:daysInYearAccurate*24*60*60/4,milliseconds:daysInYearAccurate*24*60*60*1e3/4},months:{weeks:daysInMonthAccurate/7,days:daysInMonthAccurate,hours:daysInMonthAccurate*24,minutes:daysInMonthAccurate*24*60,seconds:daysInMonthAccurate*24*60*60,milliseconds:daysInMonthAccurate*24*60*60*1e3},...lowOrderMatrix},orderedUnits$1=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],reverseUnits=orderedUnits$1.slice(0).reverse();function clone$1(it,at,lt=!1){const ut={values:lt?at.values:{...it.values,...at.values||{}},loc:it.loc.clone(at.loc),conversionAccuracy:at.conversionAccuracy||it.conversionAccuracy,matrix:at.matrix||it.matrix};return new Duration(ut)}function durationToMillis(it,at){let lt=at.milliseconds??0;for(const ut of reverseUnits.slice(1))at[ut]&&(lt+=at[ut]*it[ut].milliseconds);return lt}function normalizeValues(it,at){const lt=durationToMillis(it,at)<0?-1:1;orderedUnits$1.reduceRight((ut,ct)=>{if(isUndefined(at[ct]))return ut;if(ut){const dt=at[ut]*lt,ft=it[ct][ut],mt=Math.floor(dt/ft);at[ct]+=mt*lt,at[ut]-=mt*ft*lt}return ct},null),orderedUnits$1.reduce((ut,ct)=>{if(isUndefined(at[ct]))return ut;if(ut){const dt=at[ut]%1;at[ut]-=dt,at[ct]+=dt*it[ut][ct]}return ct},null)}function removeZeroes(it){const at={};for(const[lt,ut]of Object.entries(it))ut!==0&&(at[lt]=ut);return at}class Duration{constructor(at){const lt=at.conversionAccuracy==="longterm"||!1;let ut=lt?accurateMatrix:casualMatrix;at.matrix&&(ut=at.matrix),this.values=at.values,this.loc=at.loc||Locale.create(),this.conversionAccuracy=lt?"longterm":"casual",this.invalid=at.invalid||null,this.matrix=ut,this.isLuxonDuration=!0}static fromMillis(at,lt){return Duration.fromObject({milliseconds:at},lt)}static fromObject(at,lt={}){if(at==null||typeof at!="object")throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${at===null?"null":typeof at}`);return new Duration({values:normalizeObject(at,Duration.normalizeUnit),loc:Locale.fromObject(lt),conversionAccuracy:lt.conversionAccuracy,matrix:lt.matrix})}static fromDurationLike(at){if(isNumber(at))return Duration.fromMillis(at);if(Duration.isDuration(at))return at;if(typeof at=="object")return Duration.fromObject(at);throw new InvalidArgumentError(`Unknown duration argument ${at} of type ${typeof at}`)}static fromISO(at,lt){const[ut]=parseISODuration(at);return ut?Duration.fromObject(ut,lt):Duration.invalid("unparsable",`the input "${at}" can't be parsed as ISO 8601`)}static fromISOTime(at,lt){const[ut]=parseISOTimeOnly(at);return ut?Duration.fromObject(ut,lt):Duration.invalid("unparsable",`the input "${at}" can't be parsed as ISO 8601`)}static invalid(at,lt=null){if(!at)throw new InvalidArgumentError("need to specify a reason the Duration is invalid");const ut=at instanceof Invalid?at:new Invalid(at,lt);if(Settings.throwOnInvalid)throw new InvalidDurationError(ut);return new Duration({invalid:ut})}static normalizeUnit(at){const lt={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[at&&at.toLowerCase()];if(!lt)throw new InvalidUnitError(at);return lt}static isDuration(at){return at&&at.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(at,lt={}){const ut={...lt,floor:lt.round!==!1&&lt.floor!==!1};return this.isValid?Formatter$1.create(this.loc,ut).formatDurationFromString(this,at):INVALID$2}toHuman(at={}){if(!this.isValid)return INVALID$2;const lt=orderedUnits$1.map(ut=>{const ct=this.values[ut];return isUndefined(ct)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...at,unit:ut.slice(0,-1)}).format(ct)}).filter(ut=>ut);return this.loc.listFormatter({type:"conjunction",style:at.listStyle||"narrow",...at}).format(lt)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let at="P";return this.years!==0&&(at+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(at+=this.months+this.quarters*3+"M"),this.weeks!==0&&(at+=this.weeks+"W"),this.days!==0&&(at+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(at+="T"),this.hours!==0&&(at+=this.hours+"H"),this.minutes!==0&&(at+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(at+=roundTo(this.seconds+this.milliseconds/1e3,3)+"S"),at==="P"&&(at+="T0S"),at}toISOTime(at={}){if(!this.isValid)return null;const lt=this.toMillis();return lt<0||lt>=864e5?null:(at={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...at,includeOffset:!1},DateTime.fromMillis(lt,{zone:"UTC"}).toISOTime(at))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?durationToMillis(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(at){if(!this.isValid)return this;const lt=Duration.fromDurationLike(at),ut={};for(const ct of orderedUnits$1)(hasOwnProperty$9(lt.values,ct)||hasOwnProperty$9(this.values,ct))&&(ut[ct]=lt.get(ct)+this.get(ct));return clone$1(this,{values:ut},!0)}minus(at){if(!this.isValid)return this;const lt=Duration.fromDurationLike(at);return this.plus(lt.negate())}mapUnits(at){if(!this.isValid)return this;const lt={};for(const ut of Object.keys(this.values))lt[ut]=asNumber(at(this.values[ut],ut));return clone$1(this,{values:lt},!0)}get(at){return this[Duration.normalizeUnit(at)]}set(at){if(!this.isValid)return this;const lt={...this.values,...normalizeObject(at,Duration.normalizeUnit)};return clone$1(this,{values:lt})}reconfigure({locale:at,numberingSystem:lt,conversionAccuracy:ut,matrix:ct}={}){const ft={loc:this.loc.clone({locale:at,numberingSystem:lt}),matrix:ct,conversionAccuracy:ut};return clone$1(this,ft)}as(at){return this.isValid?this.shiftTo(at).get(at):NaN}normalize(){if(!this.isValid)return this;const at=this.toObject();return normalizeValues(this.matrix,at),clone$1(this,{values:at},!0)}rescale(){if(!this.isValid)return this;const at=removeZeroes(this.normalize().shiftToAll().toObject());return clone$1(this,{values:at},!0)}shiftTo(...at){if(!this.isValid)return this;if(at.length===0)return this;at=at.map(ft=>Duration.normalizeUnit(ft));const lt={},ut={},ct=this.toObject();let dt;for(const ft of orderedUnits$1)if(at.indexOf(ft)>=0){dt=ft;let mt=0;for(const gt in ut)mt+=this.matrix[gt][ft]*ut[gt],ut[gt]=0;isNumber(ct[ft])&&(mt+=ct[ft]);const pt=Math.trunc(mt);lt[ft]=pt,ut[ft]=(mt*1e3-pt*1e3)/1e3}else isNumber(ct[ft])&&(ut[ft]=ct[ft]);for(const ft in ut)ut[ft]!==0&&(lt[dt]+=ft===dt?ut[ft]:ut[ft]/this.matrix[dt][ft]);return normalizeValues(this.matrix,lt),clone$1(this,{values:lt},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const at={};for(const lt of Object.keys(this.values))at[lt]=this.values[lt]===0?0:-this.values[lt];return clone$1(this,{values:at},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(at){if(!this.isValid||!at.isValid||!this.loc.equals(at.loc))return!1;function lt(ut,ct){return ut===void 0||ut===0?ct===void 0||ct===0:ut===ct}for(const ut of orderedUnits$1)if(!lt(this.values[ut],at.values[ut]))return!1;return!0}}const INVALID$1="Invalid Interval";function validateStartEnd(it,at){return!it||!it.isValid?Interval.invalid("missing or invalid start"):!at||!at.isValid?Interval.invalid("missing or invalid end"):at<it?Interval.invalid("end before start",`The end of an interval must be after its start, but you had start=${it.toISO()} and end=${at.toISO()}`):null}class Interval{constructor(at){this.s=at.start,this.e=at.end,this.invalid=at.invalid||null,this.isLuxonInterval=!0}static invalid(at,lt=null){if(!at)throw new InvalidArgumentError("need to specify a reason the Interval is invalid");const ut=at instanceof Invalid?at:new Invalid(at,lt);if(Settings.throwOnInvalid)throw new InvalidIntervalError(ut);return new Interval({invalid:ut})}static fromDateTimes(at,lt){const ut=friendlyDateTime(at),ct=friendlyDateTime(lt),dt=validateStartEnd(ut,ct);return dt??new Interval({start:ut,end:ct})}static after(at,lt){const ut=Duration.fromDurationLike(lt),ct=friendlyDateTime(at);return Interval.fromDateTimes(ct,ct.plus(ut))}static before(at,lt){const ut=Duration.fromDurationLike(lt),ct=friendlyDateTime(at);return Interval.fromDateTimes(ct.minus(ut),ct)}static fromISO(at,lt){const[ut,ct]=(at||"").split("/",2);if(ut&&ct){let dt,ft;try{dt=DateTime.fromISO(ut,lt),ft=dt.isValid}catch{ft=!1}let mt,pt;try{mt=DateTime.fromISO(ct,lt),pt=mt.isValid}catch{pt=!1}if(ft&&pt)return Interval.fromDateTimes(dt,mt);if(ft){const gt=Duration.fromISO(ct,lt);if(gt.isValid)return Interval.after(dt,gt)}else if(pt){const gt=Duration.fromISO(ut,lt);if(gt.isValid)return Interval.before(mt,gt)}}return Interval.invalid("unparsable",`the input "${at}" can't be parsed as ISO 8601`)}static isInterval(at){return at&&at.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(at="milliseconds"){return this.isValid?this.toDuration(at).get(at):NaN}count(at="milliseconds"){if(!this.isValid)return NaN;const lt=this.start.startOf(at),ut=this.end.startOf(at);return Math.floor(ut.diff(lt,at).get(at))+(ut.valueOf()!==this.end.valueOf())}hasSame(at){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,at):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(at){return this.isValid?this.s>at:!1}isBefore(at){return this.isValid?this.e<=at:!1}contains(at){return this.isValid?this.s<=at&&this.e>at:!1}set({start:at,end:lt}={}){return this.isValid?Interval.fromDateTimes(at||this.s,lt||this.e):this}splitAt(...at){if(!this.isValid)return[];const lt=at.map(friendlyDateTime).filter(ft=>this.contains(ft)).sort(),ut=[];let{s:ct}=this,dt=0;for(;ct<this.e;){const ft=lt[dt]||this.e,mt=+ft>+this.e?this.e:ft;ut.push(Interval.fromDateTimes(ct,mt)),ct=mt,dt+=1}return ut}splitBy(at){const lt=Duration.fromDurationLike(at);if(!this.isValid||!lt.isValid||lt.as("milliseconds")===0)return[];let{s:ut}=this,ct=1,dt;const ft=[];for(;ut<this.e;){const mt=this.start.plus(lt.mapUnits(pt=>pt*ct));dt=+mt>+this.e?this.e:mt,ft.push(Interval.fromDateTimes(ut,dt)),ut=dt,ct+=1}return ft}divideEqually(at){return this.isValid?this.splitBy(this.length()/at).slice(0,at):[]}overlaps(at){return this.e>at.s&&this.s<at.e}abutsStart(at){return this.isValid?+this.e==+at.s:!1}abutsEnd(at){return this.isValid?+at.e==+this.s:!1}engulfs(at){return this.isValid?this.s<=at.s&&this.e>=at.e:!1}equals(at){return!this.isValid||!at.isValid?!1:this.s.equals(at.s)&&this.e.equals(at.e)}intersection(at){if(!this.isValid)return this;const lt=this.s>at.s?this.s:at.s,ut=this.e<at.e?this.e:at.e;return lt>=ut?null:Interval.fromDateTimes(lt,ut)}union(at){if(!this.isValid)return this;const lt=this.s<at.s?this.s:at.s,ut=this.e>at.e?this.e:at.e;return Interval.fromDateTimes(lt,ut)}static merge(at){const[lt,ut]=at.sort((ct,dt)=>ct.s-dt.s).reduce(([ct,dt],ft)=>dt?dt.overlaps(ft)||dt.abutsStart(ft)?[ct,dt.union(ft)]:[ct.concat([dt]),ft]:[ct,ft],[[],null]);return ut&&lt.push(ut),lt}static xor(at){let lt=null,ut=0;const ct=[],dt=at.map(pt=>[{time:pt.s,type:"s"},{time:pt.e,type:"e"}]),ft=Array.prototype.concat(...dt),mt=ft.sort((pt,gt)=>pt.time-gt.time);for(const pt of mt)ut+=pt.type==="s"?1:-1,ut===1?lt=pt.time:(lt&&+lt!=+pt.time&&ct.push(Interval.fromDateTimes(lt,pt.time)),lt=null);return Interval.merge(ct)}difference(...at){return Interval.xor([this].concat(at)).map(lt=>this.intersection(lt)).filter(lt=>lt&&!lt.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:INVALID$1}toLocaleString(at=DATE_SHORT,lt={}){return this.isValid?Formatter$1.create(this.s.loc.clone(lt),at).formatInterval(this):INVALID$1}toISO(at){return this.isValid?`${this.s.toISO(at)}/${this.e.toISO(at)}`:INVALID$1}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:INVALID$1}toISOTime(at){return this.isValid?`${this.s.toISOTime(at)}/${this.e.toISOTime(at)}`:INVALID$1}toFormat(at,{separator:lt=" – "}={}){return this.isValid?`${this.s.toFormat(at)}${lt}${this.e.toFormat(at)}`:INVALID$1}toDuration(at,lt){return this.isValid?this.e.diff(this.s,at,lt):Duration.invalid(this.invalidReason)}mapEndpoints(at){return Interval.fromDateTimes(at(this.s),at(this.e))}}class Info{static hasDST(at=Settings.defaultZone){const lt=DateTime.now().setZone(at).set({month:12});return!at.isUniversal&&lt.offset!==lt.set({month:6}).offset}static isValidIANAZone(at){return IANAZone.isValidZone(at)}static normalizeZone(at){return normalizeZone(at,Settings.defaultZone)}static months(at="long",{locale:lt=null,numberingSystem:ut=null,locObj:ct=null,outputCalendar:dt="gregory"}={}){return(ct||Locale.create(lt,ut,dt)).months(at)}static monthsFormat(at="long",{locale:lt=null,numberingSystem:ut=null,locObj:ct=null,outputCalendar:dt="gregory"}={}){return(ct||Locale.create(lt,ut,dt)).months(at,!0)}static weekdays(at="long",{locale:lt=null,numberingSystem:ut=null,locObj:ct=null}={}){return(ct||Locale.create(lt,ut,null)).weekdays(at)}static weekdaysFormat(at="long",{locale:lt=null,numberingSystem:ut=null,locObj:ct=null}={}){return(ct||Locale.create(lt,ut,null)).weekdays(at,!0)}static meridiems({locale:at=null}={}){return Locale.create(at).meridiems()}static eras(at="short",{locale:lt=null}={}){return Locale.create(lt,null,"gregory").eras(at)}static features(){return{relative:hasRelative()}}}function dayDiff(it,at){const lt=ct=>ct.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),ut=lt(at)-lt(it);return Math.floor(Duration.fromMillis(ut).as("days"))}function highOrderDiffs(it,at,lt){const ut=[["years",(pt,gt)=>gt.year-pt.year],["quarters",(pt,gt)=>gt.quarter-pt.quarter+(gt.year-pt.year)*4],["months",(pt,gt)=>gt.month-pt.month+(gt.year-pt.year)*12],["weeks",(pt,gt)=>{const vt=dayDiff(pt,gt);return(vt-vt%7)/7}],["days",dayDiff]],ct={},dt=it;let ft,mt;for(const[pt,gt]of ut)lt.indexOf(pt)>=0&&(ft=pt,ct[pt]=gt(it,at),mt=dt.plus(ct),mt>at?(ct[pt]--,it=dt.plus(ct),it>at&&(mt=it,ct[pt]--,it=dt.plus(ct))):it=mt);return[it,ct,mt,ft]}function diff(it,at,lt,ut){let[ct,dt,ft,mt]=highOrderDiffs(it,at,lt);const pt=at-ct,gt=lt.filter(wt=>["hours","minutes","seconds","milliseconds"].indexOf(wt)>=0);gt.length===0&&(ft<at&&(ft=ct.plus({[mt]:1})),ft!==ct&&(dt[mt]=(dt[mt]||0)+pt/(ft-ct)));const vt=Duration.fromObject(dt,ut);return gt.length>0?Duration.fromMillis(pt,ut).shiftTo(...gt).plus(vt):vt}const numberingSystems={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},numberingSystemsUTF16={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hanidecChars=numberingSystems.hanidec.replace(/[\[|\]]/g,"").split("");function parseDigits(it){let at=parseInt(it,10);if(isNaN(at)){at="";for(let lt=0;lt<it.length;lt++){const ut=it.charCodeAt(lt);if(it[lt].search(numberingSystems.hanidec)!==-1)at+=hanidecChars.indexOf(it[lt]);else for(const ct in numberingSystemsUTF16){const[dt,ft]=numberingSystemsUTF16[ct];ut>=dt&&ut<=ft&&(at+=ut-dt)}}return parseInt(at,10)}else return at}function digitRegex({numberingSystem:it},at=""){return new RegExp(`${numberingSystems[it||"latn"]}${at}`)}const MISSING_FTP="missing Intl.DateTimeFormat.formatToParts support";function intUnit(it,at=lt=>lt){return{regex:it,deser:([lt])=>at(parseDigits(lt))}}const NBSP=String.fromCharCode(160),spaceOrNBSP=`[ ${NBSP}]`,spaceOrNBSPRegExp=new RegExp(spaceOrNBSP,"g");function fixListRegex(it){return it.replace(/\./g,"\\.?").replace(spaceOrNBSPRegExp,spaceOrNBSP)}function stripInsensitivities(it){return it.replace(/\./g,"").replace(spaceOrNBSPRegExp," ").toLowerCase()}function oneOf(it,at){return it===null?null:{regex:RegExp(it.map(fixListRegex).join("|")),deser:([lt])=>it.findIndex(ut=>stripInsensitivities(lt)===stripInsensitivities(ut))+at}}function offset$2(it,at){return{regex:it,deser:([,lt,ut])=>signedOffset(lt,ut),groups:at}}function simple(it){return{regex:it,deser:([at])=>at}}function escapeToken(it){return it.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function unitForToken(it,at){const lt=digitRegex(at),ut=digitRegex(at,"{2}"),ct=digitRegex(at,"{3}"),dt=digitRegex(at,"{4}"),ft=digitRegex(at,"{6}"),mt=digitRegex(at,"{1,2}"),pt=digitRegex(at,"{1,3}"),gt=digitRegex(at,"{1,6}"),vt=digitRegex(at,"{1,9}"),wt=digitRegex(at,"{2,4}"),yt=digitRegex(at,"{4,6}"),bt=kt=>({regex:RegExp(escapeToken(kt.val)),deser:([xt])=>xt,literal:!0}),Et=(kt=>{if(it.literal)return bt(kt);switch(kt.val){case"G":return oneOf(at.eras("short"),0);case"GG":return oneOf(at.eras("long"),0);case"y":return intUnit(gt);case"yy":return intUnit(wt,untruncateYear);case"yyyy":return intUnit(dt);case"yyyyy":return intUnit(yt);case"yyyyyy":return intUnit(ft);case"M":return intUnit(mt);case"MM":return intUnit(ut);case"MMM":return oneOf(at.months("short",!0),1);case"MMMM":return oneOf(at.months("long",!0),1);case"L":return intUnit(mt);case"LL":return intUnit(ut);case"LLL":return oneOf(at.months("short",!1),1);case"LLLL":return oneOf(at.months("long",!1),1);case"d":return intUnit(mt);case"dd":return intUnit(ut);case"o":return intUnit(pt);case"ooo":return intUnit(ct);case"HH":return intUnit(ut);case"H":return intUnit(mt);case"hh":return intUnit(ut);case"h":return intUnit(mt);case"mm":return intUnit(ut);case"m":return intUnit(mt);case"q":return intUnit(mt);case"qq":return intUnit(ut);case"s":return intUnit(mt);case"ss":return intUnit(ut);case"S":return intUnit(pt);case"SSS":return intUnit(ct);case"u":return simple(vt);case"uu":return simple(mt);case"uuu":return intUnit(lt);case"a":return oneOf(at.meridiems(),0);case"kkkk":return intUnit(dt);case"kk":return intUnit(wt,untruncateYear);case"W":return intUnit(mt);case"WW":return intUnit(ut);case"E":case"c":return intUnit(lt);case"EEE":return oneOf(at.weekdays("short",!1),1);case"EEEE":return oneOf(at.weekdays("long",!1),1);case"ccc":return oneOf(at.weekdays("short",!0),1);case"cccc":return oneOf(at.weekdays("long",!0),1);case"Z":case"ZZ":return offset$2(new RegExp(`([+-]${mt.source})(?::(${ut.source}))?`),2);case"ZZZ":return offset$2(new RegExp(`([+-]${mt.source})(${ut.source})?`),2);case"z":return simple(/[a-z_+-/]{1,256}?/i);case" ":return simple(/[^\S\n\r]/);default:return bt(kt)}})(it)||{invalidReason:MISSING_FTP};return Et.token=it,Et}const partTypeStyleToTokenVal={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function tokenForPart(it,at,lt){const{type:ut,value:ct}=it;if(ut==="literal"){const pt=/^\s+$/.test(ct);return{literal:!pt,val:pt?" ":ct}}const dt=at[ut];let ft=ut;ut==="hour"&&(at.hour12!=null?ft=at.hour12?"hour12":"hour24":at.hourCycle!=null?at.hourCycle==="h11"||at.hourCycle==="h12"?ft="hour12":ft="hour24":ft=lt.hour12?"hour12":"hour24");let mt=partTypeStyleToTokenVal[ft];if(typeof mt=="object"&&(mt=mt[dt]),mt)return{literal:!1,val:mt}}function buildRegex(it){return[`^${it.map(lt=>lt.regex).reduce((lt,ut)=>`${lt}(${ut.source})`,"")}$`,it]}function match$1(it,at,lt){const ut=it.match(at);if(ut){const ct={};let dt=1;for(const ft in lt)if(hasOwnProperty$9(lt,ft)){const mt=lt[ft],pt=mt.groups?mt.groups+1:1;!mt.literal&&mt.token&&(ct[mt.token.val[0]]=mt.deser(ut.slice(dt,dt+pt))),dt+=pt}return[ut,ct]}else return[ut,{}]}function dateTimeFromMatches(it){const at=dt=>{switch(dt){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let lt=null,ut;return isUndefined(it.z)||(lt=IANAZone.create(it.z)),isUndefined(it.Z)||(lt||(lt=new FixedOffsetZone(it.Z)),ut=it.Z),isUndefined(it.q)||(it.M=(it.q-1)*3+1),isUndefined(it.h)||(it.h<12&&it.a===1?it.h+=12:it.h===12&&it.a===0&&(it.h=0)),it.G===0&&it.y&&(it.y=-it.y),isUndefined(it.u)||(it.S=parseMillis(it.u)),[Object.keys(it).reduce((dt,ft)=>{const mt=at(ft);return mt&&(dt[mt]=it[ft]),dt},{}),lt,ut]}let dummyDateTimeCache=null;function getDummyDateTime(){return dummyDateTimeCache||(dummyDateTimeCache=DateTime.fromMillis(1555555555555)),dummyDateTimeCache}function maybeExpandMacroToken(it,at){if(it.literal)return it;const lt=Formatter$1.macroTokenToFormatOpts(it.val),ut=formatOptsToTokens(lt,at);return ut==null||ut.includes(void 0)?it:ut}function expandMacroTokens(it,at){return Array.prototype.concat(...it.map(lt=>maybeExpandMacroToken(lt,at)))}function explainFromTokens(it,at,lt){const ut=expandMacroTokens(Formatter$1.parseFormat(lt),it),ct=ut.map(ft=>unitForToken(ft,it)),dt=ct.find(ft=>ft.invalidReason);if(dt)return{input:at,tokens:ut,invalidReason:dt.invalidReason};{const[ft,mt]=buildRegex(ct),pt=RegExp(ft,"i"),[gt,vt]=match$1(at,pt,mt),[wt,yt,bt]=vt?dateTimeFromMatches(vt):[null,null,void 0];if(hasOwnProperty$9(vt,"a")&&hasOwnProperty$9(vt,"H"))throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");return{input:at,tokens:ut,regex:pt,rawMatches:gt,matches:vt,result:wt,zone:yt,specificOffset:bt}}}function parseFromTokens(it,at,lt){const{result:ut,zone:ct,specificOffset:dt,invalidReason:ft}=explainFromTokens(it,at,lt);return[ut,ct,dt,ft]}function formatOptsToTokens(it,at){if(!it)return null;const ut=Formatter$1.create(at,it).dtFormatter(getDummyDateTime()),ct=ut.formatToParts(),dt=ut.resolvedOptions();return ct.map(ft=>tokenForPart(ft,it,dt))}const nonLeapLadder=[0,31,59,90,120,151,181,212,243,273,304,334],leapLadder=[0,31,60,91,121,152,182,213,244,274,305,335];function unitOutOfRange(it,at){return new Invalid("unit out of range",`you specified ${at} (of type ${typeof at}) as a ${it}, which is invalid`)}function dayOfWeek(it,at,lt){const ut=new Date(Date.UTC(it,at-1,lt));it<100&&it>=0&&ut.setUTCFullYear(ut.getUTCFullYear()-1900);const ct=ut.getUTCDay();return ct===0?7:ct}function computeOrdinal(it,at,lt){return lt+(isLeapYear(it)?leapLadder:nonLeapLadder)[at-1]}function uncomputeOrdinal(it,at){const lt=isLeapYear(it)?leapLadder:nonLeapLadder,ut=lt.findIndex(dt=>dt<at),ct=at-lt[ut];return{month:ut+1,day:ct}}function gregorianToWeek(it){const{year:at,month:lt,day:ut}=it,ct=computeOrdinal(at,lt,ut),dt=dayOfWeek(at,lt,ut);let ft=Math.floor((ct-dt+10)/7),mt;return ft<1?(mt=at-1,ft=weeksInWeekYear(mt)):ft>weeksInWeekYear(at)?(mt=at+1,ft=1):mt=at,{weekYear:mt,weekNumber:ft,weekday:dt,...timeObject(it)}}function weekToGregorian(it){const{weekYear:at,weekNumber:lt,weekday:ut}=it,ct=dayOfWeek(at,1,4),dt=daysInYear(at);let ft=lt*7+ut-ct-3,mt;ft<1?(mt=at-1,ft+=daysInYear(mt)):ft>dt?(mt=at+1,ft-=daysInYear(at)):mt=at;const{month:pt,day:gt}=uncomputeOrdinal(mt,ft);return{year:mt,month:pt,day:gt,...timeObject(it)}}function gregorianToOrdinal(it){const{year:at,month:lt,day:ut}=it,ct=computeOrdinal(at,lt,ut);return{year:at,ordinal:ct,...timeObject(it)}}function ordinalToGregorian(it){const{year:at,ordinal:lt}=it,{month:ut,day:ct}=uncomputeOrdinal(at,lt);return{year:at,month:ut,day:ct,...timeObject(it)}}function hasInvalidWeekData(it){const at=isInteger(it.weekYear),lt=integerBetween(it.weekNumber,1,weeksInWeekYear(it.weekYear)),ut=integerBetween(it.weekday,1,7);return at?lt?ut?!1:unitOutOfRange("weekday",it.weekday):unitOutOfRange("week",it.week):unitOutOfRange("weekYear",it.weekYear)}function hasInvalidOrdinalData(it){const at=isInteger(it.year),lt=integerBetween(it.ordinal,1,daysInYear(it.year));return at?lt?!1:unitOutOfRange("ordinal",it.ordinal):unitOutOfRange("year",it.year)}function hasInvalidGregorianData(it){const at=isInteger(it.year),lt=integerBetween(it.month,1,12),ut=integerBetween(it.day,1,daysInMonth(it.year,it.month));return at?lt?ut?!1:unitOutOfRange("day",it.day):unitOutOfRange("month",it.month):unitOutOfRange("year",it.year)}function hasInvalidTimeData(it){const{hour:at,minute:lt,second:ut,millisecond:ct}=it,dt=integerBetween(at,0,23)||at===24&&lt===0&&ut===0&&ct===0,ft=integerBetween(lt,0,59),mt=integerBetween(ut,0,59),pt=integerBetween(ct,0,999);return dt?ft?mt?pt?!1:unitOutOfRange("millisecond",ct):unitOutOfRange("second",ut):unitOutOfRange("minute",lt):unitOutOfRange("hour",at)}const INVALID="Invalid DateTime",MAX_DATE=864e13;function unsupportedZone(it){return new Invalid("unsupported zone",`the zone "${it.name}" is not supported`)}function possiblyCachedWeekData(it){return it.weekData===null&&(it.weekData=gregorianToWeek(it.c)),it.weekData}function clone(it,at){const lt={ts:it.ts,zone:it.zone,c:it.c,o:it.o,loc:it.loc,invalid:it.invalid};return new DateTime({...lt,...at,old:lt})}function fixOffset(it,at,lt){let ut=it-at*60*1e3;const ct=lt.offset(ut);if(at===ct)return[ut,at];ut-=(ct-at)*60*1e3;const dt=lt.offset(ut);return ct===dt?[ut,ct]:[it-Math.min(ct,dt)*60*1e3,Math.max(ct,dt)]}function tsToObj(it,at){it+=at*60*1e3;const lt=new Date(it);return{year:lt.getUTCFullYear(),month:lt.getUTCMonth()+1,day:lt.getUTCDate(),hour:lt.getUTCHours(),minute:lt.getUTCMinutes(),second:lt.getUTCSeconds(),millisecond:lt.getUTCMilliseconds()}}function objToTS(it,at,lt){return fixOffset(objToLocalTS(it),at,lt)}function adjustTime(it,at){const lt=it.o,ut=it.c.year+Math.trunc(at.years),ct=it.c.month+Math.trunc(at.months)+Math.trunc(at.quarters)*3,dt={...it.c,year:ut,month:ct,day:Math.min(it.c.day,daysInMonth(ut,ct))+Math.trunc(at.days)+Math.trunc(at.weeks)*7},ft=Duration.fromObject({years:at.years-Math.trunc(at.years),quarters:at.quarters-Math.trunc(at.quarters),months:at.months-Math.trunc(at.months),weeks:at.weeks-Math.trunc(at.weeks),days:at.days-Math.trunc(at.days),hours:at.hours,minutes:at.minutes,seconds:at.seconds,milliseconds:at.milliseconds}).as("milliseconds"),mt=objToLocalTS(dt);let[pt,gt]=fixOffset(mt,lt,it.zone);return ft!==0&&(pt+=ft,gt=it.zone.offset(pt)),{ts:pt,o:gt}}function parseDataToDateTime(it,at,lt,ut,ct,dt){const{setZone:ft,zone:mt}=lt;if(it&&Object.keys(it).length!==0||at){const pt=at||mt,gt=DateTime.fromObject(it,{...lt,zone:pt,specificOffset:dt});return ft?gt:gt.setZone(mt)}else return DateTime.invalid(new Invalid("unparsable",`the input "${ct}" can't be parsed as ${ut}`))}function toTechFormat(it,at,lt=!0){return it.isValid?Formatter$1.create(Locale.create("en-US"),{allowZ:lt,forceSimple:!0}).formatDateTimeFromString(it,at):null}function toISODate(it,at){const lt=it.c.year>9999||it.c.year<0;let ut="";return lt&&it.c.year>=0&&(ut+="+"),ut+=padStart(it.c.year,lt?6:4),at?(ut+="-",ut+=padStart(it.c.month),ut+="-",ut+=padStart(it.c.day)):(ut+=padStart(it.c.month),ut+=padStart(it.c.day)),ut}function toISOTime(it,at,lt,ut,ct,dt){let ft=padStart(it.c.hour);return at?(ft+=":",ft+=padStart(it.c.minute),(it.c.millisecond!==0||it.c.second!==0||!lt)&&(ft+=":")):ft+=padStart(it.c.minute),(it.c.millisecond!==0||it.c.second!==0||!lt)&&(ft+=padStart(it.c.second),(it.c.millisecond!==0||!ut)&&(ft+=".",ft+=padStart(it.c.millisecond,3))),ct&&(it.isOffsetFixed&&it.offset===0&&!dt?ft+="Z":it.o<0?(ft+="-",ft+=padStart(Math.trunc(-it.o/60)),ft+=":",ft+=padStart(Math.trunc(-it.o%60))):(ft+="+",ft+=padStart(Math.trunc(it.o/60)),ft+=":",ft+=padStart(Math.trunc(it.o%60)))),dt&&(ft+="["+it.zone.ianaName+"]"),ft}const defaultUnitValues={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},defaultWeekUnitValues={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},defaultOrdinalUnitValues={ordinal:1,hour:0,minute:0,second:0,millisecond:0},orderedUnits=["year","month","day","hour","minute","second","millisecond"],orderedWeekUnits=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],orderedOrdinalUnits=["year","ordinal","hour","minute","second","millisecond"];function normalizeUnit(it){const at={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[it.toLowerCase()];if(!at)throw new InvalidUnitError(it);return at}function quickDT(it,at){const lt=normalizeZone(at.zone,Settings.defaultZone),ut=Locale.fromObject(at),ct=Settings.now();let dt,ft;if(isUndefined(it.year))dt=ct;else{for(const gt of orderedUnits)isUndefined(it[gt])&&(it[gt]=defaultUnitValues[gt]);const mt=hasInvalidGregorianData(it)||hasInvalidTimeData(it);if(mt)return DateTime.invalid(mt);const pt=lt.offset(ct);[dt,ft]=objToTS(it,pt,lt)}return new DateTime({ts:dt,zone:lt,loc:ut,o:ft})}function diffRelative(it,at,lt){const ut=isUndefined(lt.round)?!0:lt.round,ct=(ft,mt)=>(ft=roundTo(ft,ut||lt.calendary?0:2,!0),at.loc.clone(lt).relFormatter(lt).format(ft,mt)),dt=ft=>lt.calendary?at.hasSame(it,ft)?0:at.startOf(ft).diff(it.startOf(ft),ft).get(ft):at.diff(it,ft).get(ft);if(lt.unit)return ct(dt(lt.unit),lt.unit);for(const ft of lt.units){const mt=dt(ft);if(Math.abs(mt)>=1)return ct(mt,ft)}return ct(it>at?-0:0,lt.units[lt.units.length-1])}function lastOpts(it){let at={},lt;return it.length>0&&typeof it[it.length-1]=="object"?(at=it[it.length-1],lt=Array.from(it).slice(0,it.length-1)):lt=Array.from(it),[at,lt]}class DateTime{constructor(at){const lt=at.zone||Settings.defaultZone;let ut=at.invalid||(Number.isNaN(at.ts)?new Invalid("invalid input"):null)||(lt.isValid?null:unsupportedZone(lt));this.ts=isUndefined(at.ts)?Settings.now():at.ts;let ct=null,dt=null;if(!ut)if(at.old&&at.old.ts===this.ts&&at.old.zone.equals(lt))[ct,dt]=[at.old.c,at.old.o];else{const mt=lt.offset(this.ts);ct=tsToObj(this.ts,mt),ut=Number.isNaN(ct.year)?new Invalid("invalid input"):null,ct=ut?null:ct,dt=ut?null:mt}this._zone=lt,this.loc=at.loc||Locale.create(),this.invalid=ut,this.weekData=null,this.c=ct,this.o=dt,this.isLuxonDateTime=!0}static now(){return new DateTime({})}static local(){const[at,lt]=lastOpts(arguments),[ut,ct,dt,ft,mt,pt,gt]=lt;return quickDT({year:ut,month:ct,day:dt,hour:ft,minute:mt,second:pt,millisecond:gt},at)}static utc(){const[at,lt]=lastOpts(arguments),[ut,ct,dt,ft,mt,pt,gt]=lt;return at.zone=FixedOffsetZone.utcInstance,quickDT({year:ut,month:ct,day:dt,hour:ft,minute:mt,second:pt,millisecond:gt},at)}static fromJSDate(at,lt={}){const ut=isDate$1(at)?at.valueOf():NaN;if(Number.isNaN(ut))return DateTime.invalid("invalid input");const ct=normalizeZone(lt.zone,Settings.defaultZone);return ct.isValid?new DateTime({ts:ut,zone:ct,loc:Locale.fromObject(lt)}):DateTime.invalid(unsupportedZone(ct))}static fromMillis(at,lt={}){if(isNumber(at))return at<-MAX_DATE||at>MAX_DATE?DateTime.invalid("Timestamp out of range"):new DateTime({ts:at,zone:normalizeZone(lt.zone,Settings.defaultZone),loc:Locale.fromObject(lt)});throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof at} with value ${at}`)}static fromSeconds(at,lt={}){if(isNumber(at))return new DateTime({ts:at*1e3,zone:normalizeZone(lt.zone,Settings.defaultZone),loc:Locale.fromObject(lt)});throw new InvalidArgumentError("fromSeconds requires a numerical input")}static fromObject(at,lt={}){at=at||{};const ut=normalizeZone(lt.zone,Settings.defaultZone);if(!ut.isValid)return DateTime.invalid(unsupportedZone(ut));const ct=Settings.now(),dt=isUndefined(lt.specificOffset)?ut.offset(ct):lt.specificOffset,ft=normalizeObject(at,normalizeUnit),mt=!isUndefined(ft.ordinal),pt=!isUndefined(ft.year),gt=!isUndefined(ft.month)||!isUndefined(ft.day),vt=pt||gt,wt=ft.weekYear||ft.weekNumber,yt=Locale.fromObject(lt);if((vt||mt)&&wt)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(gt&&mt)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");const bt=wt||ft.weekday&&!vt;let Ct,Et,kt=tsToObj(ct,dt);bt?(Ct=orderedWeekUnits,Et=defaultWeekUnitValues,kt=gregorianToWeek(kt)):mt?(Ct=orderedOrdinalUnits,Et=defaultOrdinalUnitValues,kt=gregorianToOrdinal(kt)):(Ct=orderedUnits,Et=defaultUnitValues);let xt=!1;for(const Rt of Ct){const It=ft[Rt];isUndefined(It)?xt?ft[Rt]=Et[Rt]:ft[Rt]=kt[Rt]:xt=!0}const St=bt?hasInvalidWeekData(ft):mt?hasInvalidOrdinalData(ft):hasInvalidGregorianData(ft),Ot=St||hasInvalidTimeData(ft);if(Ot)return DateTime.invalid(Ot);const At=bt?weekToGregorian(ft):mt?ordinalToGregorian(ft):ft,[Tt,$t]=objToTS(At,dt,ut),Lt=new DateTime({ts:Tt,zone:ut,o:$t,loc:yt});return ft.weekday&&vt&&at.weekday!==Lt.weekday?DateTime.invalid("mismatched weekday",`you can't specify both a weekday of ${ft.weekday} and a date of ${Lt.toISO()}`):Lt}static fromISO(at,lt={}){const[ut,ct]=parseISODate(at);return parseDataToDateTime(ut,ct,lt,"ISO 8601",at)}static fromRFC2822(at,lt={}){const[ut,ct]=parseRFC2822Date(at);return parseDataToDateTime(ut,ct,lt,"RFC 2822",at)}static fromHTTP(at,lt={}){const[ut,ct]=parseHTTPDate(at);return parseDataToDateTime(ut,ct,lt,"HTTP",lt)}static fromFormat(at,lt,ut={}){if(isUndefined(at)||isUndefined(lt))throw new InvalidArgumentError("fromFormat requires an input string and a format");const{locale:ct=null,numberingSystem:dt=null}=ut,ft=Locale.fromOpts({locale:ct,numberingSystem:dt,defaultToEN:!0}),[mt,pt,gt,vt]=parseFromTokens(ft,at,lt);return vt?DateTime.invalid(vt):parseDataToDateTime(mt,pt,ut,`format ${lt}`,at,gt)}static fromString(at,lt,ut={}){return DateTime.fromFormat(at,lt,ut)}static fromSQL(at,lt={}){const[ut,ct]=parseSQL(at);return parseDataToDateTime(ut,ct,lt,"SQL",at)}static invalid(at,lt=null){if(!at)throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");const ut=at instanceof Invalid?at:new Invalid(at,lt);if(Settings.throwOnInvalid)throw new InvalidDateTimeError(ut);return new DateTime({invalid:ut})}static isDateTime(at){return at&&at.isLuxonDateTime||!1}static parseFormatForOpts(at,lt={}){const ut=formatOptsToTokens(at,Locale.fromObject(lt));return ut?ut.map(ct=>ct?ct.val:null).join(""):null}static expandFormat(at,lt={}){return expandMacroTokens(Formatter$1.parseFormat(at),Locale.fromObject(lt)).map(ct=>ct.val).join("")}get(at){return this[at]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?possiblyCachedWeekData(this).weekYear:NaN}get weekNumber(){return this.isValid?possiblyCachedWeekData(this).weekNumber:NaN}get weekday(){return this.isValid?possiblyCachedWeekData(this).weekday:NaN}get ordinal(){return this.isValid?gregorianToOrdinal(this.c).ordinal:NaN}get monthShort(){return this.isValid?Info.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Info.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Info.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Info.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const at=864e5,lt=6e4,ut=objToLocalTS(this.c),ct=this.zone.offset(ut-at),dt=this.zone.offset(ut+at),ft=this.zone.offset(ut-ct*lt),mt=this.zone.offset(ut-dt*lt);if(ft===mt)return[this];const pt=ut-ft*lt,gt=ut-mt*lt,vt=tsToObj(pt,ft),wt=tsToObj(gt,mt);return vt.hour===wt.hour&&vt.minute===wt.minute&&vt.second===wt.second&&vt.millisecond===wt.millisecond?[clone(this,{ts:pt}),clone(this,{ts:gt})]:[this]}get isInLeapYear(){return isLeapYear(this.year)}get daysInMonth(){return daysInMonth(this.year,this.month)}get daysInYear(){return this.isValid?daysInYear(this.year):NaN}get weeksInWeekYear(){return this.isValid?weeksInWeekYear(this.weekYear):NaN}resolvedLocaleOptions(at={}){const{locale:lt,numberingSystem:ut,calendar:ct}=Formatter$1.create(this.loc.clone(at),at).resolvedOptions(this);return{locale:lt,numberingSystem:ut,outputCalendar:ct}}toUTC(at=0,lt={}){return this.setZone(FixedOffsetZone.instance(at),lt)}toLocal(){return this.setZone(Settings.defaultZone)}setZone(at,{keepLocalTime:lt=!1,keepCalendarTime:ut=!1}={}){if(at=normalizeZone(at,Settings.defaultZone),at.equals(this.zone))return this;if(at.isValid){let ct=this.ts;if(lt||ut){const dt=at.offset(this.ts),ft=this.toObject();[ct]=objToTS(ft,dt,at)}return clone(this,{ts:ct,zone:at})}else return DateTime.invalid(unsupportedZone(at))}reconfigure({locale:at,numberingSystem:lt,outputCalendar:ut}={}){const ct=this.loc.clone({locale:at,numberingSystem:lt,outputCalendar:ut});return clone(this,{loc:ct})}setLocale(at){return this.reconfigure({locale:at})}set(at){if(!this.isValid)return this;const lt=normalizeObject(at,normalizeUnit),ut=!isUndefined(lt.weekYear)||!isUndefined(lt.weekNumber)||!isUndefined(lt.weekday),ct=!isUndefined(lt.ordinal),dt=!isUndefined(lt.year),ft=!isUndefined(lt.month)||!isUndefined(lt.day),mt=dt||ft,pt=lt.weekYear||lt.weekNumber;if((mt||ct)&&pt)throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(ft&&ct)throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");let gt;ut?gt=weekToGregorian({...gregorianToWeek(this.c),...lt}):isUndefined(lt.ordinal)?(gt={...this.toObject(),...lt},isUndefined(lt.day)&&(gt.day=Math.min(daysInMonth(gt.year,gt.month),gt.day))):gt=ordinalToGregorian({...gregorianToOrdinal(this.c),...lt});const[vt,wt]=objToTS(gt,this.o,this.zone);return clone(this,{ts:vt,o:wt})}plus(at){if(!this.isValid)return this;const lt=Duration.fromDurationLike(at);return clone(this,adjustTime(this,lt))}minus(at){if(!this.isValid)return this;const lt=Duration.fromDurationLike(at).negate();return clone(this,adjustTime(this,lt))}startOf(at){if(!this.isValid)return this;const lt={},ut=Duration.normalizeUnit(at);switch(ut){case"years":lt.month=1;case"quarters":case"months":lt.day=1;case"weeks":case"days":lt.hour=0;case"hours":lt.minute=0;case"minutes":lt.second=0;case"seconds":lt.millisecond=0;break}if(ut==="weeks"&&(lt.weekday=1),ut==="quarters"){const ct=Math.ceil(this.month/3);lt.month=(ct-1)*3+1}return this.set(lt)}endOf(at){return this.isValid?this.plus({[at]:1}).startOf(at).minus(1):this}toFormat(at,lt={}){return this.isValid?Formatter$1.create(this.loc.redefaultToEN(lt)).formatDateTimeFromString(this,at):INVALID}toLocaleString(at=DATE_SHORT,lt={}){return this.isValid?Formatter$1.create(this.loc.clone(lt),at).formatDateTime(this):INVALID}toLocaleParts(at={}){return this.isValid?Formatter$1.create(this.loc.clone(at),at).formatDateTimeParts(this):[]}toISO({format:at="extended",suppressSeconds:lt=!1,suppressMilliseconds:ut=!1,includeOffset:ct=!0,extendedZone:dt=!1}={}){if(!this.isValid)return null;const ft=at==="extended";let mt=toISODate(this,ft);return mt+="T",mt+=toISOTime(this,ft,lt,ut,ct,dt),mt}toISODate({format:at="extended"}={}){return this.isValid?toISODate(this,at==="extended"):null}toISOWeekDate(){return toTechFormat(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:at=!1,suppressSeconds:lt=!1,includeOffset:ut=!0,includePrefix:ct=!1,extendedZone:dt=!1,format:ft="extended"}={}){return this.isValid?(ct?"T":"")+toISOTime(this,ft==="extended",lt,at,ut,dt):null}toRFC2822(){return toTechFormat(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return toTechFormat(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?toISODate(this,!0):null}toSQLTime({includeOffset:at=!0,includeZone:lt=!1,includeOffsetSpace:ut=!0}={}){let ct="HH:mm:ss.SSS";return(lt||at)&&(ut&&(ct+=" "),lt?ct+="z":at&&(ct+="ZZ")),toTechFormat(this,ct,!0)}toSQL(at={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(at)}`:null}toString(){return this.isValid?this.toISO():INVALID}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(at={}){if(!this.isValid)return{};const lt={...this.c};return at.includeConfig&&(lt.outputCalendar=this.outputCalendar,lt.numberingSystem=this.loc.numberingSystem,lt.locale=this.loc.locale),lt}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(at,lt="milliseconds",ut={}){if(!this.isValid||!at.isValid)return Duration.invalid("created by diffing an invalid DateTime");const ct={locale:this.locale,numberingSystem:this.numberingSystem,...ut},dt=maybeArray(lt).map(Duration.normalizeUnit),ft=at.valueOf()>this.valueOf(),mt=ft?this:at,pt=ft?at:this,gt=diff(mt,pt,dt,ct);return ft?gt.negate():gt}diffNow(at="milliseconds",lt={}){return this.diff(DateTime.now(),at,lt)}until(at){return this.isValid?Interval.fromDateTimes(this,at):this}hasSame(at,lt){if(!this.isValid)return!1;const ut=at.valueOf(),ct=this.setZone(at.zone,{keepLocalTime:!0});return ct.startOf(lt)<=ut&&ut<=ct.endOf(lt)}equals(at){return this.isValid&&at.isValid&&this.valueOf()===at.valueOf()&&this.zone.equals(at.zone)&&this.loc.equals(at.loc)}toRelative(at={}){if(!this.isValid)return null;const lt=at.base||DateTime.fromObject({},{zone:this.zone}),ut=at.padding?this<lt?-at.padding:at.padding:0;let ct=["years","months","days","hours","minutes","seconds"],dt=at.unit;return Array.isArray(at.unit)&&(ct=at.unit,dt=void 0),diffRelative(lt,this.plus(ut),{...at,numeric:"always",units:ct,unit:dt})}toRelativeCalendar(at={}){return this.isValid?diffRelative(at.base||DateTime.fromObject({},{zone:this.zone}),this,{...at,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...at){if(!at.every(DateTime.isDateTime))throw new InvalidArgumentError("min requires all arguments be DateTimes");return bestBy(at,lt=>lt.valueOf(),Math.min)}static max(...at){if(!at.every(DateTime.isDateTime))throw new InvalidArgumentError("max requires all arguments be DateTimes");return bestBy(at,lt=>lt.valueOf(),Math.max)}static fromFormatExplain(at,lt,ut={}){const{locale:ct=null,numberingSystem:dt=null}=ut,ft=Locale.fromOpts({locale:ct,numberingSystem:dt,defaultToEN:!0});return explainFromTokens(ft,at,lt)}static fromStringExplain(at,lt,ut={}){return DateTime.fromFormatExplain(at,lt,ut)}static get DATE_SHORT(){return DATE_SHORT}static get DATE_MED(){return DATE_MED}static get DATE_MED_WITH_WEEKDAY(){return DATE_MED_WITH_WEEKDAY}static get DATE_FULL(){return DATE_FULL}static get DATE_HUGE(){return DATE_HUGE}static get TIME_SIMPLE(){return TIME_SIMPLE}static get TIME_WITH_SECONDS(){return TIME_WITH_SECONDS}static get TIME_WITH_SHORT_OFFSET(){return TIME_WITH_SHORT_OFFSET}static get TIME_WITH_LONG_OFFSET(){return TIME_WITH_LONG_OFFSET}static get TIME_24_SIMPLE(){return TIME_24_SIMPLE}static get TIME_24_WITH_SECONDS(){return TIME_24_WITH_SECONDS}static get TIME_24_WITH_SHORT_OFFSET(){return TIME_24_WITH_SHORT_OFFSET}static get TIME_24_WITH_LONG_OFFSET(){return TIME_24_WITH_LONG_OFFSET}static get DATETIME_SHORT(){return DATETIME_SHORT}static get DATETIME_SHORT_WITH_SECONDS(){return DATETIME_SHORT_WITH_SECONDS}static get DATETIME_MED(){return DATETIME_MED}static get DATETIME_MED_WITH_SECONDS(){return DATETIME_MED_WITH_SECONDS}static get DATETIME_MED_WITH_WEEKDAY(){return DATETIME_MED_WITH_WEEKDAY}static get DATETIME_FULL(){return DATETIME_FULL}static get DATETIME_FULL_WITH_SECONDS(){return DATETIME_FULL_WITH_SECONDS}static get DATETIME_HUGE(){return DATETIME_HUGE}static get DATETIME_HUGE_WITH_SECONDS(){return DATETIME_HUGE_WITH_SECONDS}}function friendlyDateTime(it){if(DateTime.isDateTime(it))return it;if(it&&it.valueOf&&isNumber(it.valueOf()))return DateTime.fromJSDate(it);if(it&&typeof it=="object")return DateTime.fromObject(it);throw new InvalidArgumentError(`Unknown datetime argument: ${it}, of type ${typeof it}`)}var propTypes$1={exports:{}},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret$1,ReactPropTypesSecret=ReactPropTypesSecret_1;function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function it(ut,ct,dt,ft,mt,pt){if(pt!==ReactPropTypesSecret){var gt=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw gt.name="Invariant Violation",gt}}it.isRequired=it;function at(){return it}var lt={array:it,bigint:it,bool:it,func:it,number:it,object:it,string:it,symbol:it,any:it,arrayOf:at,element:it,elementType:it,instanceOf:at,node:it,objectOf:at,oneOf:at,oneOfType:at,shape:at,exact:at,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return lt.PropTypes=lt,lt};propTypes$1.exports=factoryWithThrowingShims();var propTypesExports=propTypes$1.exports;const PropTypes=getDefaultExportFromCjs(propTypesExports);function _extends$3(){return _extends$3=Object.assign?Object.assign.bind():function(it){for(var at=1;at<arguments.length;at++){var lt=arguments[at];for(var ut in lt)Object.prototype.hasOwnProperty.call(lt,ut)&&(it[ut]=lt[ut])}return it},_extends$3.apply(this,arguments)}var voidElements={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const e$2=getDefaultExportFromCjs(voidElements);var t$2=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n$1(it){var at={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},lt=it.match(/<\/?([^\s]+?)[/\s>]/);if(lt&&(at.name=lt[1],(e$2[lt[1]]||it.charAt(it.length-2)==="/")&&(at.voidElement=!0),at.name.startsWith("!--"))){var ut=it.indexOf("-->");return{type:"comment",comment:ut!==-1?it.slice(4,ut):""}}for(var ct=new RegExp(t$2),dt=null;(dt=ct.exec(it))!==null;)if(dt[0].trim())if(dt[1]){var ft=dt[1].trim(),mt=[ft,""];ft.indexOf("=")>-1&&(mt=ft.split("=")),at.attrs[mt[0]]=mt[1],ct.lastIndex--}else dt[2]&&(at.attrs[dt[2]]=dt[3].trim().substring(1,dt[3].length-1));return at}var r$5=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$2=/^\s*$/,s$1=Object.create(null);function a(it,at){switch(at.type){case"text":return it+at.content;case"tag":return it+="<"+at.name+(at.attrs?function(lt){var ut=[];for(var ct in lt)ut.push(ct+'="'+lt[ct]+'"');return ut.length?" "+ut.join(" "):""}(at.attrs):"")+(at.voidElement?"/>":">"),at.voidElement?it:it+at.children.reduce(a,"")+"</"+at.name+">";case"comment":return it+"<!--"+at.comment+"-->"}}var c$1={parse:function(it,at){at||(at={}),at.components||(at.components=s$1);var lt,ut=[],ct=[],dt=-1,ft=!1;if(it.indexOf("<")!==0){var mt=it.indexOf("<");ut.push({type:"text",content:mt===-1?it:it.substring(0,mt)})}return it.replace(r$5,function(pt,gt){if(ft){if(pt!=="</"+lt.name+">")return;ft=!1}var vt,wt=pt.charAt(1)!=="/",yt=pt.startsWith("<!--"),bt=gt+pt.length,Ct=it.charAt(bt);if(yt){var Et=n$1(pt);return dt<0?(ut.push(Et),ut):((vt=ct[dt]).children.push(Et),ut)}if(wt&&(dt++,(lt=n$1(pt)).type==="tag"&&at.components[lt.name]&&(lt.type="component",ft=!0),lt.voidElement||ft||!Ct||Ct==="<"||lt.children.push({type:"text",content:it.slice(bt,it.indexOf("<",bt))}),dt===0&&ut.push(lt),(vt=ct[dt-1])&&vt.children.push(lt),ct[dt]=lt),(!wt||lt.voidElement)&&(dt>-1&&(lt.voidElement||lt.name===pt.slice(2,-1))&&(dt--,lt=dt===-1?ut:ct[dt]),!ft&&Ct!=="<"&&Ct)){vt=dt===-1?ut:ct[dt].children;var kt=it.indexOf("<",bt),xt=it.slice(bt,kt===-1?void 0:kt);i$2.test(xt)&&(xt=" "),(kt>-1&&dt+vt.length>=0||xt!==" ")&&vt.push({type:"text",content:xt})}}),ut},stringify:function(it){return it.reduce(function(at,lt){return at+a("",lt)},"")}};function warn(){if(console&&console.warn){for(var it=arguments.length,at=new Array(it),lt=0;lt<it;lt++)at[lt]=arguments[lt];typeof at[0]=="string"&&(at[0]=`react-i18next:: ${at[0]}`),console.warn(...at)}}const alreadyWarned={};function warnOnce(){for(var it=arguments.length,at=new Array(it),lt=0;lt<it;lt++)at[lt]=arguments[lt];typeof at[0]=="string"&&alreadyWarned[at[0]]||(typeof at[0]=="string"&&(alreadyWarned[at[0]]=new Date),warn(...at))}const loadedClb=(it,at)=>()=>{if(it.isInitialized)at();else{const lt=()=>{setTimeout(()=>{it.off("initialized",lt)},0),at()};it.on("initialized",lt)}};function loadNamespaces(it,at,lt){it.loadNamespaces(at,loadedClb(it,lt))}function loadLanguages(it,at,lt,ut){typeof lt=="string"&&(lt=[lt]),lt.forEach(ct=>{it.options.ns.indexOf(ct)<0&&it.options.ns.push(ct)}),it.loadLanguages(at,loadedClb(it,ut))}function oldI18nextHasLoadedNamespace(it,at){let lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const ut=at.languages[0],ct=at.options?at.options.fallbackLng:!1,dt=at.languages[at.languages.length-1];if(ut.toLowerCase()==="cimode")return!0;const ft=(mt,pt)=>{const gt=at.services.backendConnector.state[`${mt}|${pt}`];return gt===-1||gt===2};return lt.bindI18n&&lt.bindI18n.indexOf("languageChanging")>-1&&at.services.backendConnector.backend&&at.isLanguageChangingTo&&!ft(at.isLanguageChangingTo,it)?!1:!!(at.hasResourceBundle(ut,it)||!at.services.backendConnector.backend||at.options.resources&&!at.options.partialBundledLanguages||ft(ut,it)&&(!ct||ft(dt,it)))}function hasLoadedNamespace(it,at){let lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!at.languages||!at.languages.length?(warnOnce("i18n.languages were undefined or empty",at.languages),!0):at.options.ignoreJSONStructure!==void 0?at.hasLoadedNamespace(it,{lng:lt.lng,precheck:(ct,dt)=>{if(lt.bindI18n&&lt.bindI18n.indexOf("languageChanging")>-1&&ct.services.backendConnector.backend&&ct.isLanguageChangingTo&&!dt(ct.isLanguageChangingTo,it))return!1}}):oldI18nextHasLoadedNamespace(it,at,lt)}const matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},unescapeHtmlEntity=it=>htmlEntities[it],unescape$1=it=>it.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:unescape$1};function setDefaults(){let it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};defaultOptions={...defaultOptions,...it}}function getDefaults$2(){return defaultOptions}let i18nInstance;function setI18n(it){i18nInstance=it}function getI18n(){return i18nInstance}function hasChildren(it,at){if(!it)return!1;const lt=it.props?it.props.children:it.children;return at?lt.length>0:!!lt}function getChildren(it){if(!it)return[];const at=it.props?it.props.children:it.children;return it.props&&it.props.i18nIsDynamicList?getAsArray(at):at}function hasValidReactChildren(it){return Object.prototype.toString.call(it)!=="[object Array]"?!1:it.every(at=>reactExports.isValidElement(at))}function getAsArray(it){return Array.isArray(it)?it:[it]}function mergeProps(it,at){const lt={...at};return lt.props=Object.assign(it.props,at.props),lt}function nodesToString(it,at){if(!it)return"";let lt="";const ut=getAsArray(it),ct=at.transSupportBasicHtmlNodes&&at.transKeepBasicHtmlNodesFor?at.transKeepBasicHtmlNodesFor:[];return ut.forEach((dt,ft)=>{if(typeof dt=="string")lt+=`${dt}`;else if(reactExports.isValidElement(dt)){const mt=Object.keys(dt.props).length,pt=ct.indexOf(dt.type)>-1,gt=dt.props.children;if(!gt&&pt&&mt===0)lt+=`<${dt.type}/>`;else if(!gt&&(!pt||mt!==0))lt+=`<${ft}></${ft}>`;else if(dt.props.i18nIsDynamicList)lt+=`<${ft}></${ft}>`;else if(pt&&mt===1&&typeof gt=="string")lt+=`<${dt.type}>${gt}</${dt.type}>`;else{const vt=nodesToString(gt,at);lt+=`<${ft}>${vt}</${ft}>`}}else if(dt===null)warn("Trans: the passed in value is invalid - seems you passed in a null child.");else if(typeof dt=="object"){const{format:mt,...pt}=dt,gt=Object.keys(pt);if(gt.length===1){const vt=mt?`${gt[0]}, ${mt}`:gt[0];lt+=`{{${vt}}}`}else warn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",dt)}else warn("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",dt)}),lt}function renderNodes(it,at,lt,ut,ct,dt){if(at==="")return[];const ft=ut.transKeepBasicHtmlNodesFor||[],mt=at&&new RegExp(ft.map(kt=>`<${kt}`).join("|")).test(at);if(!it&&!mt&&!dt)return[at];const pt={};function gt(kt){getAsArray(kt).forEach(St=>{typeof St!="string"&&(hasChildren(St)?gt(getChildren(St)):typeof St=="object"&&!reactExports.isValidElement(St)&&Object.assign(pt,St))})}gt(it);const vt=c$1.parse(`<0>${at}</0>`),wt={...pt,...ct};function yt(kt,xt,St){const Ot=getChildren(kt),At=Ct(Ot,xt.children,St);return hasValidReactChildren(Ot)&&At.length===0||kt.props&&kt.props.i18nIsDynamicList?Ot:At}function bt(kt,xt,St,Ot,At){kt.dummy?(kt.children=xt,St.push(reactExports.cloneElement(kt,{key:Ot},At?void 0:xt))):St.push(...reactExports.Children.map([kt],Tt=>{const $t={...Tt.props};return delete $t.i18nIsDynamicList,b$2.createElement(Tt.type,_extends$3({},$t,{key:Ot,ref:Tt.ref},At?{}:{children:xt}))}))}function Ct(kt,xt,St){const Ot=getAsArray(kt);return getAsArray(xt).reduce((Tt,$t,Lt)=>{const Rt=$t.children&&$t.children[0]&&$t.children[0].content&&lt.services.interpolator.interpolate($t.children[0].content,wt,lt.language);if($t.type==="tag"){let It=Ot[parseInt($t.name,10)];St.length===1&&!It&&(It=St[0][$t.name]),It||(It={});const Ft=Object.keys($t.attrs).length!==0?mergeProps({props:$t.attrs},It):It,Mt=reactExports.isValidElement(Ft),Ht=Mt&&hasChildren($t,!0)&&!$t.voidElement,Vt=mt&&typeof Ft=="object"&&Ft.dummy&&!Mt,Nt=typeof it=="object"&&it!==null&&Object.hasOwnProperty.call(it,$t.name);if(typeof Ft=="string"){const Gt=lt.services.interpolator.interpolate(Ft,wt,lt.language);Tt.push(Gt)}else if(hasChildren(Ft)||Ht){const Gt=yt(Ft,$t,St);bt(Ft,Gt,Tt,Lt)}else if(Vt){const Gt=Ct(Ot,$t.children,St);bt(Ft,Gt,Tt,Lt)}else if(Number.isNaN(parseFloat($t.name)))if(Nt){const Gt=yt(Ft,$t,St);bt(Ft,Gt,Tt,Lt,$t.voidElement)}else if(ut.transSupportBasicHtmlNodes&&ft.indexOf($t.name)>-1)if($t.voidElement)Tt.push(reactExports.createElement($t.name,{key:`${$t.name}-${Lt}`}));else{const Gt=Ct(Ot,$t.children,St);Tt.push(reactExports.createElement($t.name,{key:`${$t.name}-${Lt}`},Gt))}else if($t.voidElement)Tt.push(`<${$t.name} />`);else{const Gt=Ct(Ot,$t.children,St);Tt.push(`<${$t.name}>${Gt}</${$t.name}>`)}else if(typeof Ft=="object"&&!Mt){const Gt=$t.children[0]?Rt:null;Gt&&Tt.push(Gt)}else bt(Ft,Rt,Tt,Lt,$t.children.length!==1||!Rt)}else if($t.type==="text"){const It=ut.transWrapTextNodes,Ft=dt?ut.unescape(lt.services.interpolator.interpolate($t.content,wt,lt.language)):lt.services.interpolator.interpolate($t.content,wt,lt.language);It?Tt.push(reactExports.createElement(It,{key:`${$t.name}-${Lt}`},Ft)):Tt.push(Ft)}return Tt},[])}const Et=Ct([{dummy:!0,children:it||[]}],vt,getAsArray(it||[]));return getChildren(Et[0])}function Trans$1(it){let{children:at,count:lt,parent:ut,i18nKey:ct,context:dt,tOptions:ft={},values:mt,defaults:pt,components:gt,ns:vt,i18n:wt,t:yt,shouldUnescape:bt,...Ct}=it;const Et=wt||getI18n();if(!Et)return warnOnce("You will need to pass in an i18next instance by using i18nextReactModule"),at;const kt=yt||Et.t.bind(Et)||(Ht=>Ht);dt&&(ft.context=dt);const xt={...getDefaults$2(),...Et.options&&Et.options.react};let St=vt||kt.ns||Et.options&&Et.options.defaultNS;St=typeof St=="string"?[St]:St||["translation"];const Ot=nodesToString(at,xt),At=pt||Ot||xt.transEmptyNodeValue||ct,{hashTransKey:Tt}=xt,$t=ct||(Tt?Tt(Ot||At):Ot||At),Lt=mt?ft.interpolation:{interpolation:{...ft.interpolation,prefix:"#$?",suffix:"?$#"}},Rt={...ft,count:lt,...mt,...Lt,defaultValue:At,ns:St},It=$t?kt($t,Rt):At,Ft=renderNodes(gt||at,It,Et,xt,Rt,bt),Mt=ut!==void 0?ut:xt.defaultTransParent;return Mt?reactExports.createElement(Mt,Ct,Ft):Ft}const initReactI18next={type:"3rdParty",init(it){setDefaults(it.options.react),setI18n(it)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(at){at.forEach(lt=>{this.usedNamespaces[lt]||(this.usedNamespaces[lt]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Trans(it){let{children:at,count:lt,parent:ut,i18nKey:ct,context:dt,tOptions:ft={},values:mt,defaults:pt,components:gt,ns:vt,i18n:wt,t:yt,shouldUnescape:bt,...Ct}=it;const{i18n:Et,defaultNS:kt}=reactExports.useContext(I18nContext)||{},xt=wt||Et||getI18n(),St=yt||xt&&xt.t.bind(xt);return Trans$1({children:at,count:lt,parent:ut,i18nKey:ct,context:dt,tOptions:ft,values:mt,defaults:pt,components:gt,ns:vt||St&&St.ns||kt||xt&&xt.options&&xt.options.defaultNS,i18n:xt,t:yt,shouldUnescape:bt,...Ct})}const usePrevious=(it,at)=>{const lt=reactExports.useRef();return reactExports.useEffect(()=>{lt.current=at?lt.current:it},[it,at]),lt.current};function useTranslation(it){let at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:lt}=at,{i18n:ut,defaultNS:ct}=reactExports.useContext(I18nContext)||{},dt=lt||ut||getI18n();if(dt&&!dt.reportNamespaces&&(dt.reportNamespaces=new ReportNamespaces),!dt){warnOnce("You will need to pass in an i18next instance by using initReactI18next");const Ot=(Tt,$t)=>typeof $t=="string"?$t:$t&&typeof $t=="object"&&typeof $t.defaultValue=="string"?$t.defaultValue:Array.isArray(Tt)?Tt[Tt.length-1]:Tt,At=[Ot,{},!1];return At.t=Ot,At.i18n={},At.ready=!1,At}dt.options.react&&dt.options.react.wait!==void 0&&warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const ft={...getDefaults$2(),...dt.options.react,...at},{useSuspense:mt,keyPrefix:pt}=ft;let gt=it||ct||dt.options&&dt.options.defaultNS;gt=typeof gt=="string"?[gt]:gt||["translation"],dt.reportNamespaces.addUsedNamespaces&&dt.reportNamespaces.addUsedNamespaces(gt);const vt=(dt.isInitialized||dt.initializedStoreOnce)&&gt.every(Ot=>hasLoadedNamespace(Ot,dt,ft));function wt(){return dt.getFixedT(at.lng||null,ft.nsMode==="fallback"?gt:gt[0],pt)}const[yt,bt]=reactExports.useState(wt);let Ct=gt.join();at.lng&&(Ct=`${at.lng}${Ct}`);const Et=usePrevious(Ct),kt=reactExports.useRef(!0);reactExports.useEffect(()=>{const{bindI18n:Ot,bindI18nStore:At}=ft;kt.current=!0,!vt&&!mt&&(at.lng?loadLanguages(dt,at.lng,gt,()=>{kt.current&&bt(wt)}):loadNamespaces(dt,gt,()=>{kt.current&&bt(wt)})),vt&&Et&&Et!==Ct&&kt.current&&bt(wt);function Tt(){kt.current&&bt(wt)}return Ot&&dt&&dt.on(Ot,Tt),At&&dt&&dt.store.on(At,Tt),()=>{kt.current=!1,Ot&&dt&&Ot.split(" ").forEach($t=>dt.off($t,Tt)),At&&dt&&At.split(" ").forEach($t=>dt.store.off($t,Tt))}},[dt,Ct]);const xt=reactExports.useRef(!0);reactExports.useEffect(()=>{kt.current&&!xt.current&&bt(wt),xt.current=!1},[dt,pt]);const St=[yt,dt,vt];if(St.t=yt,St.i18n=dt,St.ready=vt,vt||!vt&&!mt)return St;throw new Promise(Ot=>{at.lng?loadLanguages(dt,at.lng,gt,()=>Ot()):loadNamespaces(dt,gt,()=>Ot())})}/**
 * @remix-run/router v1.7.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(it){for(var at=1;at<arguments.length;at++){var lt=arguments[at];for(var ut in lt)Object.prototype.hasOwnProperty.call(lt,ut)&&(it[ut]=lt[ut])}return it},_extends$2.apply(this,arguments)}var Action;(function(it){it.Pop="POP",it.Push="PUSH",it.Replace="REPLACE"})(Action||(Action={}));const PopStateEventType="popstate";function createBrowserHistory(it){it===void 0&&(it={});function at(ut,ct){let{pathname:dt,search:ft,hash:mt}=ut.location;return createLocation("",{pathname:dt,search:ft,hash:mt},ct.state&&ct.state.usr||null,ct.state&&ct.state.key||"default")}function lt(ut,ct){return typeof ct=="string"?ct:createPath(ct)}return getUrlBasedHistory(at,lt,null,it)}function invariant$1(it,at){if(it===!1||it===null||typeof it>"u")throw new Error(at)}function warning$2(it,at){if(!it){typeof console<"u"&&console.warn(at);try{throw new Error(at)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(it,at){return{usr:it.state,key:it.key,idx:at}}function createLocation(it,at,lt,ut){return lt===void 0&&(lt=null),_extends$2({pathname:typeof it=="string"?it:it.pathname,search:"",hash:""},typeof at=="string"?parsePath(at):at,{state:lt,key:at&&at.key||ut||createKey()})}function createPath(it){let{pathname:at="/",search:lt="",hash:ut=""}=it;return lt&&lt!=="?"&&(at+=lt.charAt(0)==="?"?lt:"?"+lt),ut&&ut!=="#"&&(at+=ut.charAt(0)==="#"?ut:"#"+ut),at}function parsePath(it){let at={};if(it){let lt=it.indexOf("#");lt>=0&&(at.hash=it.substr(lt),it=it.substr(0,lt));let ut=it.indexOf("?");ut>=0&&(at.search=it.substr(ut),it=it.substr(0,ut)),it&&(at.pathname=it)}return at}function getUrlBasedHistory(it,at,lt,ut){ut===void 0&&(ut={});let{window:ct=document.defaultView,v5Compat:dt=!1}=ut,ft=ct.history,mt=Action.Pop,pt=null,gt=vt();gt==null&&(gt=0,ft.replaceState(_extends$2({},ft.state,{idx:gt}),""));function vt(){return(ft.state||{idx:null}).idx}function wt(){mt=Action.Pop;let kt=vt(),xt=kt==null?null:kt-gt;gt=kt,pt&&pt({action:mt,location:Et.location,delta:xt})}function yt(kt,xt){mt=Action.Push;let St=createLocation(Et.location,kt,xt);lt&&lt(St,kt),gt=vt()+1;let Ot=getHistoryState(St,gt),At=Et.createHref(St);try{ft.pushState(Ot,"",At)}catch(Tt){if(Tt instanceof DOMException&&Tt.name==="DataCloneError")throw Tt;ct.location.assign(At)}dt&&pt&&pt({action:mt,location:Et.location,delta:1})}function bt(kt,xt){mt=Action.Replace;let St=createLocation(Et.location,kt,xt);lt&&lt(St,kt),gt=vt();let Ot=getHistoryState(St,gt),At=Et.createHref(St);ft.replaceState(Ot,"",At),dt&&pt&&pt({action:mt,location:Et.location,delta:0})}function Ct(kt){let xt=ct.location.origin!=="null"?ct.location.origin:ct.location.href,St=typeof kt=="string"?kt:createPath(kt);return invariant$1(xt,"No window.location.(origin|href) available to create URL for href: "+St),new URL(St,xt)}let Et={get action(){return mt},get location(){return it(ct,ft)},listen(kt){if(pt)throw new Error("A history only accepts one active listener");return ct.addEventListener(PopStateEventType,wt),pt=kt,()=>{ct.removeEventListener(PopStateEventType,wt),pt=null}},createHref(kt){return at(ct,kt)},createURL:Ct,encodeLocation(kt){let xt=Ct(kt);return{pathname:xt.pathname,search:xt.search,hash:xt.hash}},push:yt,replace:bt,go(kt){return ft.go(kt)}};return Et}var ResultType;(function(it){it.data="data",it.deferred="deferred",it.redirect="redirect",it.error="error"})(ResultType||(ResultType={}));function matchRoutes(it,at,lt){lt===void 0&&(lt="/");let ut=typeof at=="string"?parsePath(at):at,ct=stripBasename(ut.pathname||"/",lt);if(ct==null)return null;let dt=flattenRoutes(it);rankRouteBranches(dt);let ft=null;for(let mt=0;ft==null&&mt<dt.length;++mt)ft=matchRouteBranch(dt[mt],safelyDecodeURI(ct));return ft}function flattenRoutes(it,at,lt,ut){at===void 0&&(at=[]),lt===void 0&&(lt=[]),ut===void 0&&(ut="");let ct=(dt,ft,mt)=>{let pt={relativePath:mt===void 0?dt.path||"":mt,caseSensitive:dt.caseSensitive===!0,childrenIndex:ft,route:dt};pt.relativePath.startsWith("/")&&(invariant$1(pt.relativePath.startsWith(ut),'Absolute route path "'+pt.relativePath+'" nested under path '+('"'+ut+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),pt.relativePath=pt.relativePath.slice(ut.length));let gt=joinPaths([ut,pt.relativePath]),vt=lt.concat(pt);dt.children&&dt.children.length>0&&(invariant$1(dt.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+gt+'".')),flattenRoutes(dt.children,at,vt,gt)),!(dt.path==null&&!dt.index)&&at.push({path:gt,score:computeScore(gt,dt.index),routesMeta:vt})};return it.forEach((dt,ft)=>{var mt;if(dt.path===""||!((mt=dt.path)!=null&&mt.includes("?")))ct(dt,ft);else for(let pt of explodeOptionalSegments(dt.path))ct(dt,ft,pt)}),at}function explodeOptionalSegments(it){let at=it.split("/");if(at.length===0)return[];let[lt,...ut]=at,ct=lt.endsWith("?"),dt=lt.replace(/\?$/,"");if(ut.length===0)return ct?[dt,""]:[dt];let ft=explodeOptionalSegments(ut.join("/")),mt=[];return mt.push(...ft.map(pt=>pt===""?dt:[dt,pt].join("/"))),ct&&mt.push(...ft),mt.map(pt=>it.startsWith("/")&&pt===""?"/":pt)}function rankRouteBranches(it){it.sort((at,lt)=>at.score!==lt.score?lt.score-at.score:compareIndexes(at.routesMeta.map(ut=>ut.childrenIndex),lt.routesMeta.map(ut=>ut.childrenIndex)))}const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=it=>it==="*";function computeScore(it,at){let lt=it.split("/"),ut=lt.length;return lt.some(isSplat)&&(ut+=splatPenalty),at&&(ut+=indexRouteValue),lt.filter(ct=>!isSplat(ct)).reduce((ct,dt)=>ct+(paramRe.test(dt)?dynamicSegmentValue:dt===""?emptySegmentValue:staticSegmentValue),ut)}function compareIndexes(it,at){return it.length===at.length&&it.slice(0,-1).every((ut,ct)=>ut===at[ct])?it[it.length-1]-at[at.length-1]:0}function matchRouteBranch(it,at){let{routesMeta:lt}=it,ut={},ct="/",dt=[];for(let ft=0;ft<lt.length;++ft){let mt=lt[ft],pt=ft===lt.length-1,gt=ct==="/"?at:at.slice(ct.length)||"/",vt=matchPath({path:mt.relativePath,caseSensitive:mt.caseSensitive,end:pt},gt);if(!vt)return null;Object.assign(ut,vt.params);let wt=mt.route;dt.push({params:ut,pathname:joinPaths([ct,vt.pathname]),pathnameBase:normalizePathname(joinPaths([ct,vt.pathnameBase])),route:wt}),vt.pathnameBase!=="/"&&(ct=joinPaths([ct,vt.pathnameBase]))}return dt}function matchPath(it,at){typeof it=="string"&&(it={path:it,caseSensitive:!1,end:!0});let[lt,ut]=compilePath(it.path,it.caseSensitive,it.end),ct=at.match(lt);if(!ct)return null;let dt=ct[0],ft=dt.replace(/(.)\/+$/,"$1"),mt=ct.slice(1);return{params:ut.reduce((gt,vt,wt)=>{if(vt==="*"){let yt=mt[wt]||"";ft=dt.slice(0,dt.length-yt.length).replace(/(.)\/+$/,"$1")}return gt[vt]=safelyDecodeURIComponent(mt[wt]||"",vt),gt},{}),pathname:dt,pathnameBase:ft,pattern:it}}function compilePath(it,at,lt){at===void 0&&(at=!1),lt===void 0&&(lt=!0),warning$2(it==="*"||!it.endsWith("*")||it.endsWith("/*"),'Route path "'+it+'" will be treated as if it were '+('"'+it.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+it.replace(/\*$/,"/*")+'".'));let ut=[],ct="^"+it.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(ft,mt)=>(ut.push(mt),"/([^\\/]+)"));return it.endsWith("*")?(ut.push("*"),ct+=it==="*"||it==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):lt?ct+="\\/*$":it!==""&&it!=="/"&&(ct+="(?:(?=\\/|$))"),[new RegExp(ct,at?void 0:"i"),ut]}function safelyDecodeURI(it){try{return decodeURI(it)}catch(at){return warning$2(!1,'The URL path "'+it+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+at+").")),it}}function safelyDecodeURIComponent(it,at){try{return decodeURIComponent(it)}catch(lt){return warning$2(!1,'The value for the URL param "'+at+'" will not be decoded because'+(' the string "'+it+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+lt+").")),it}}function stripBasename(it,at){if(at==="/")return it;if(!it.toLowerCase().startsWith(at.toLowerCase()))return null;let lt=at.endsWith("/")?at.length-1:at.length,ut=it.charAt(lt);return ut&&ut!=="/"?null:it.slice(lt)||"/"}function resolvePath(it,at){at===void 0&&(at="/");let{pathname:lt,search:ut="",hash:ct=""}=typeof it=="string"?parsePath(it):it;return{pathname:lt?lt.startsWith("/")?lt:resolvePathname(lt,at):at,search:normalizeSearch(ut),hash:normalizeHash(ct)}}function resolvePathname(it,at){let lt=at.replace(/\/+$/,"").split("/");return it.split("/").forEach(ct=>{ct===".."?lt.length>1&&lt.pop():ct!=="."&&lt.push(ct)}),lt.length>1?lt.join("/"):"/"}function getInvalidPathError(it,at,lt,ut){return"Cannot include a '"+it+"' character in a manually specified "+("`to."+at+"` field ["+JSON.stringify(ut)+"].  Please separate it out to the ")+("`to."+lt+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(it){return it.filter((at,lt)=>lt===0||at.route.path&&at.route.path.length>0)}function resolveTo(it,at,lt,ut){ut===void 0&&(ut=!1);let ct;typeof it=="string"?ct=parsePath(it):(ct=_extends$2({},it),invariant$1(!ct.pathname||!ct.pathname.includes("?"),getInvalidPathError("?","pathname","search",ct)),invariant$1(!ct.pathname||!ct.pathname.includes("#"),getInvalidPathError("#","pathname","hash",ct)),invariant$1(!ct.search||!ct.search.includes("#"),getInvalidPathError("#","search","hash",ct)));let dt=it===""||ct.pathname==="",ft=dt?"/":ct.pathname,mt;if(ut||ft==null)mt=lt;else{let wt=at.length-1;if(ft.startsWith("..")){let yt=ft.split("/");for(;yt[0]==="..";)yt.shift(),wt-=1;ct.pathname=yt.join("/")}mt=wt>=0?at[wt]:"/"}let pt=resolvePath(ct,mt),gt=ft&&ft!=="/"&&ft.endsWith("/"),vt=(dt||ft===".")&&lt.endsWith("/");return!pt.pathname.endsWith("/")&&(gt||vt)&&(pt.pathname+="/"),pt}const joinPaths=it=>it.join("/").replace(/\/\/+/g,"/"),normalizePathname=it=>it.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=it=>!it||it==="?"?"":it.startsWith("?")?it:"?"+it,normalizeHash=it=>!it||it==="#"?"":it.startsWith("#")?it:"#"+it;function isRouteErrorResponse(it){return it!=null&&typeof it.status=="number"&&typeof it.statusText=="string"&&typeof it.internal=="boolean"&&"data"in it}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/**
 * React Router v6.14.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(it){for(var at=1;at<arguments.length;at++){var lt=arguments[at];for(var ut in lt)Object.prototype.hasOwnProperty.call(lt,ut)&&(it[ut]=lt[ut])}return it},_extends$1.apply(this,arguments)}const DataRouterContext=reactExports.createContext(null),DataRouterStateContext=reactExports.createContext(null),NavigationContext=reactExports.createContext(null),LocationContext=reactExports.createContext(null),RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=reactExports.createContext(null);function useHref(it,at){let{relative:lt}=at===void 0?{}:at;useInRouterContext()||invariant$1(!1);let{basename:ut,navigator:ct}=reactExports.useContext(NavigationContext),{hash:dt,pathname:ft,search:mt}=useResolvedPath(it,{relative:lt}),pt=ft;return ut!=="/"&&(pt=ft==="/"?ut:joinPaths([ut,ft])),ct.createHref({pathname:pt,search:mt,hash:dt})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant$1(!1),reactExports.useContext(LocationContext).location}function useIsomorphicLayoutEffect(it){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(it)}function useNavigate(){let{isDataRoute:it}=reactExports.useContext(RouteContext);return it?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){useInRouterContext()||invariant$1(!1);let it=reactExports.useContext(DataRouterContext),{basename:at,navigator:lt}=reactExports.useContext(NavigationContext),{matches:ut}=reactExports.useContext(RouteContext),{pathname:ct}=useLocation(),dt=JSON.stringify(getPathContributingMatches(ut).map(pt=>pt.pathnameBase)),ft=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{ft.current=!0}),reactExports.useCallback(function(pt,gt){if(gt===void 0&&(gt={}),!ft.current)return;if(typeof pt=="number"){lt.go(pt);return}let vt=resolveTo(pt,JSON.parse(dt),ct,gt.relative==="path");it==null&&at!=="/"&&(vt.pathname=vt.pathname==="/"?at:joinPaths([at,vt.pathname])),(gt.replace?lt.replace:lt.push)(vt,gt.state,gt)},[at,lt,dt,ct,it])}const OutletContext=reactExports.createContext(null);function useOutlet(it){let at=reactExports.useContext(RouteContext).outlet;return at&&reactExports.createElement(OutletContext.Provider,{value:it},at)}function useParams(){let{matches:it}=reactExports.useContext(RouteContext),at=it[it.length-1];return at?at.params:{}}function useResolvedPath(it,at){let{relative:lt}=at===void 0?{}:at,{matches:ut}=reactExports.useContext(RouteContext),{pathname:ct}=useLocation(),dt=JSON.stringify(getPathContributingMatches(ut).map(ft=>ft.pathnameBase));return reactExports.useMemo(()=>resolveTo(it,JSON.parse(dt),ct,lt==="path"),[it,dt,ct,lt])}function useRoutes(it,at){return useRoutesImpl(it,at)}function useRoutesImpl(it,at,lt){useInRouterContext()||invariant$1(!1);let{navigator:ut}=reactExports.useContext(NavigationContext),{matches:ct}=reactExports.useContext(RouteContext),dt=ct[ct.length-1],ft=dt?dt.params:{};dt&&dt.pathname;let mt=dt?dt.pathnameBase:"/";dt&&dt.route;let pt=useLocation(),gt;if(at){var vt;let Et=typeof at=="string"?parsePath(at):at;mt==="/"||(vt=Et.pathname)!=null&&vt.startsWith(mt)||invariant$1(!1),gt=Et}else gt=pt;let wt=gt.pathname||"/",yt=mt==="/"?wt:wt.slice(mt.length)||"/",bt=matchRoutes(it,{pathname:yt}),Ct=_renderMatches(bt&&bt.map(Et=>Object.assign({},Et,{params:Object.assign({},ft,Et.params),pathname:joinPaths([mt,ut.encodeLocation?ut.encodeLocation(Et.pathname).pathname:Et.pathname]),pathnameBase:Et.pathnameBase==="/"?mt:joinPaths([mt,ut.encodeLocation?ut.encodeLocation(Et.pathnameBase).pathname:Et.pathnameBase])})),ct,lt);return at&&Ct?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$1({pathname:"/",search:"",hash:"",state:null,key:"default"},gt),navigationType:Action.Pop}},Ct):Ct}function DefaultErrorComponent(){let it=useRouteError(),at=isRouteErrorResponse(it)?it.status+" "+it.statusText:it instanceof Error?it.message:JSON.stringify(it),lt=it instanceof Error?it.stack:null,ct={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},dt=null;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},at),lt?reactExports.createElement("pre",{style:ct},lt):null,dt)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(at){super(at),this.state={location:at.location,revalidation:at.revalidation,error:at.error}}static getDerivedStateFromError(at){return{error:at}}static getDerivedStateFromProps(at,lt){return lt.location!==at.location||lt.revalidation!=="idle"&&at.revalidation==="idle"?{error:at.error,location:at.location,revalidation:at.revalidation}:{error:at.error||lt.error,location:lt.location,revalidation:at.revalidation||lt.revalidation}}componentDidCatch(at,lt){console.error("React Router caught the following error during render",at,lt)}render(){return this.state.error?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(it){let{routeContext:at,match:lt,children:ut}=it,ct=reactExports.useContext(DataRouterContext);return ct&&ct.static&&ct.staticContext&&(lt.route.errorElement||lt.route.ErrorBoundary)&&(ct.staticContext._deepestRenderedBoundaryId=lt.route.id),reactExports.createElement(RouteContext.Provider,{value:at},ut)}function _renderMatches(it,at,lt){var ut;if(at===void 0&&(at=[]),lt===void 0&&(lt=null),it==null){var ct;if((ct=lt)!=null&&ct.errors)it=lt.matches;else return null}let dt=it,ft=(ut=lt)==null?void 0:ut.errors;if(ft!=null){let mt=dt.findIndex(pt=>pt.route.id&&(ft==null?void 0:ft[pt.route.id]));mt>=0||invariant$1(!1),dt=dt.slice(0,Math.min(dt.length,mt+1))}return dt.reduceRight((mt,pt,gt)=>{let vt=pt.route.id?ft==null?void 0:ft[pt.route.id]:null,wt=null;lt&&(wt=pt.route.errorElement||defaultErrorElement);let yt=at.concat(dt.slice(0,gt+1)),bt=()=>{let Ct;return vt?Ct=wt:pt.route.Component?Ct=reactExports.createElement(pt.route.Component,null):pt.route.element?Ct=pt.route.element:Ct=mt,reactExports.createElement(RenderedRoute,{match:pt,routeContext:{outlet:mt,matches:yt,isDataRoute:lt!=null},children:Ct})};return lt&&(pt.route.ErrorBoundary||pt.route.errorElement||gt===0)?reactExports.createElement(RenderErrorBoundary,{location:lt.location,revalidation:lt.revalidation,component:wt,error:vt,children:bt(),routeContext:{outlet:null,matches:yt,isDataRoute:!0}}):bt()},null)}var DataRouterHook$1;(function(it){it.UseBlocker="useBlocker",it.UseRevalidator="useRevalidator",it.UseNavigateStable="useNavigate"})(DataRouterHook$1||(DataRouterHook$1={}));var DataRouterStateHook$1;(function(it){it.UseBlocker="useBlocker",it.UseLoaderData="useLoaderData",it.UseActionData="useActionData",it.UseRouteError="useRouteError",it.UseNavigation="useNavigation",it.UseRouteLoaderData="useRouteLoaderData",it.UseMatches="useMatches",it.UseRevalidator="useRevalidator",it.UseNavigateStable="useNavigate",it.UseRouteId="useRouteId"})(DataRouterStateHook$1||(DataRouterStateHook$1={}));function useDataRouterContext(it){let at=reactExports.useContext(DataRouterContext);return at||invariant$1(!1),at}function useDataRouterState(it){let at=reactExports.useContext(DataRouterStateContext);return at||invariant$1(!1),at}function useRouteContext(it){let at=reactExports.useContext(RouteContext);return at||invariant$1(!1),at}function useCurrentRouteId(it){let at=useRouteContext(),lt=at.matches[at.matches.length-1];return lt.route.id||invariant$1(!1),lt.route.id}function useRouteError(){var it;let at=reactExports.useContext(RouteErrorContext),lt=useDataRouterState(DataRouterStateHook$1.UseRouteError),ut=useCurrentRouteId(DataRouterStateHook$1.UseRouteError);return at||((it=lt.errors)==null?void 0:it[ut])}function useNavigateStable(){let{router:it}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),at=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),lt=reactExports.useRef(!1);return useIsomorphicLayoutEffect(()=>{lt.current=!0}),reactExports.useCallback(function(ct,dt){dt===void 0&&(dt={}),lt.current&&(typeof ct=="number"?it.navigate(ct):it.navigate(ct,_extends$1({fromRouteId:at},dt)))},[it,at])}function Navigate(it){let{to:at,replace:lt,state:ut,relative:ct}=it;useInRouterContext()||invariant$1(!1);let{matches:dt}=reactExports.useContext(RouteContext),{pathname:ft}=useLocation(),mt=useNavigate(),pt=resolveTo(at,getPathContributingMatches(dt).map(vt=>vt.pathnameBase),ft,ct==="path"),gt=JSON.stringify(pt);return reactExports.useEffect(()=>mt(JSON.parse(gt),{replace:lt,state:ut,relative:ct}),[mt,gt,ct,lt,ut]),null}function Outlet(it){return useOutlet(it.context)}function Route(it){invariant$1(!1)}function Router(it){let{basename:at="/",children:lt=null,location:ut,navigationType:ct=Action.Pop,navigator:dt,static:ft=!1}=it;useInRouterContext()&&invariant$1(!1);let mt=at.replace(/^\/*/,"/"),pt=reactExports.useMemo(()=>({basename:mt,navigator:dt,static:ft}),[mt,dt,ft]);typeof ut=="string"&&(ut=parsePath(ut));let{pathname:gt="/",search:vt="",hash:wt="",state:yt=null,key:bt="default"}=ut,Ct=reactExports.useMemo(()=>{let Et=stripBasename(gt,mt);return Et==null?null:{location:{pathname:Et,search:vt,hash:wt,state:yt,key:bt},navigationType:ct}},[mt,gt,vt,wt,yt,bt,ct]);return Ct==null?null:reactExports.createElement(NavigationContext.Provider,{value:pt},reactExports.createElement(LocationContext.Provider,{children:lt,value:Ct}))}function Routes(it){let{children:at,location:lt}=it;return useRoutes(createRoutesFromChildren(at),lt)}var AwaitRenderStatus;(function(it){it[it.pending=0]="pending",it[it.success=1]="success",it[it.error=2]="error"})(AwaitRenderStatus||(AwaitRenderStatus={}));new Promise(()=>{});function createRoutesFromChildren(it,at){at===void 0&&(at=[]);let lt=[];return reactExports.Children.forEach(it,(ut,ct)=>{if(!reactExports.isValidElement(ut))return;let dt=[...at,ct];if(ut.type===reactExports.Fragment){lt.push.apply(lt,createRoutesFromChildren(ut.props.children,dt));return}ut.type!==Route&&invariant$1(!1),!ut.props.index||!ut.props.children||invariant$1(!1);let ft={id:ut.props.id||dt.join("-"),caseSensitive:ut.props.caseSensitive,element:ut.props.element,Component:ut.props.Component,index:ut.props.index,path:ut.props.path,loader:ut.props.loader,action:ut.props.action,errorElement:ut.props.errorElement,ErrorBoundary:ut.props.ErrorBoundary,hasErrorBoundary:ut.props.ErrorBoundary!=null||ut.props.errorElement!=null,shouldRevalidate:ut.props.shouldRevalidate,handle:ut.props.handle,lazy:ut.props.lazy};ut.props.children&&(ft.children=createRoutesFromChildren(ut.props.children,dt)),lt.push(ft)}),lt}/**
 * React Router DOM v6.14.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */function _extends(){return _extends=Object.assign?Object.assign.bind():function(it){for(var at=1;at<arguments.length;at++){var lt=arguments[at];for(var ut in lt)Object.prototype.hasOwnProperty.call(lt,ut)&&(it[ut]=lt[ut])}return it},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose$4(it,at){if(it==null)return{};var lt={},ut=Object.keys(it),ct,dt;for(dt=0;dt<ut.length;dt++)ct=ut[dt],!(at.indexOf(ct)>=0)&&(lt[ct]=it[ct]);return lt}function isModifiedEvent$1(it){return!!(it.metaKey||it.altKey||it.ctrlKey||it.shiftKey)}function shouldProcessLinkClick(it,at){return it.button===0&&(!at||at==="_self")&&!isModifiedEvent$1(it)}function createSearchParams(it){return it===void 0&&(it=""),new URLSearchParams(typeof it=="string"||Array.isArray(it)||it instanceof URLSearchParams?it:Object.keys(it).reduce((at,lt)=>{let ut=it[lt];return at.concat(Array.isArray(ut)?ut.map(ct=>[lt,ct]):[[lt,ut]])},[]))}function getSearchParamsForLocation(it,at){let lt=createSearchParams(it);if(at)for(let ut of at.keys())lt.has(ut)||at.getAll(ut).forEach(ct=>{lt.append(ut,ct)});return lt}const _excluded$6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],START_TRANSITION="startTransition",startTransitionImpl=React[START_TRANSITION];function BrowserRouter(it){let{basename:at,children:lt,future:ut,window:ct}=it,dt=reactExports.useRef();dt.current==null&&(dt.current=createBrowserHistory({window:ct,v5Compat:!0}));let ft=dt.current,[mt,pt]=reactExports.useState({action:ft.action,location:ft.location}),{v7_startTransition:gt}=ut||{},vt=reactExports.useCallback(wt=>{gt&&startTransitionImpl?startTransitionImpl(()=>pt(wt)):pt(wt)},[pt,gt]);return reactExports.useLayoutEffect(()=>ft.listen(vt),[ft,vt]),reactExports.createElement(Router,{basename:at,children:lt,location:mt.location,navigationType:mt.action,navigator:ft})}const isBrowser$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(at,lt){let{onClick:ut,relative:ct,reloadDocument:dt,replace:ft,state:mt,target:pt,to:gt,preventScrollReset:vt}=at,wt=_objectWithoutPropertiesLoose$4(at,_excluded$6),{basename:yt}=reactExports.useContext(NavigationContext),bt,Ct=!1;if(typeof gt=="string"&&ABSOLUTE_URL_REGEX.test(gt)&&(bt=gt,isBrowser$1))try{let St=new URL(window.location.href),Ot=gt.startsWith("//")?new URL(St.protocol+gt):new URL(gt),At=stripBasename(Ot.pathname,yt);Ot.origin===St.origin&&At!=null?gt=At+Ot.search+Ot.hash:Ct=!0}catch{}let Et=useHref(gt,{relative:ct}),kt=useLinkClickHandler(gt,{replace:ft,state:mt,target:pt,preventScrollReset:vt,relative:ct});function xt(St){ut&&ut(St),St.defaultPrevented||kt(St)}return reactExports.createElement("a",_extends({},wt,{href:bt||Et,onClick:Ct||dt?ut:xt,ref:lt,target:pt}))});var DataRouterHook;(function(it){it.UseScrollRestoration="useScrollRestoration",it.UseSubmit="useSubmit",it.UseSubmitFetcher="useSubmitFetcher",it.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(it){it.UseFetchers="useFetchers",it.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(it,at){let{target:lt,replace:ut,state:ct,preventScrollReset:dt,relative:ft}=at===void 0?{}:at,mt=useNavigate(),pt=useLocation(),gt=useResolvedPath(it,{relative:ft});return reactExports.useCallback(vt=>{if(shouldProcessLinkClick(vt,lt)){vt.preventDefault();let wt=ut!==void 0?ut:createPath(pt)===createPath(gt);mt(it,{replace:wt,state:ct,preventScrollReset:dt,relative:ft})}},[pt,mt,gt,ut,ct,lt,it,dt,ft])}function useSearchParams(it){let at=reactExports.useRef(createSearchParams(it)),lt=reactExports.useRef(!1),ut=useLocation(),ct=reactExports.useMemo(()=>getSearchParamsForLocation(ut.search,lt.current?null:at.current),[ut.search]),dt=useNavigate(),ft=reactExports.useCallback((mt,pt)=>{const gt=createSearchParams(typeof mt=="function"?mt(ct):mt);lt.current=!0,dt("?"+gt,pt)},[dt,ct]);return[ct,ft]}const Config={mode:"production",baseUrl:"https://mijn.restomanager.net",apiBaseUrl:"https://api.restomanager.net/api",buildNumber:"451"};var Permissions=(it=>(it.clientList="clientList",it.clientManage="clientManage",it.clientSegmentList="clientSegmentList",it.clientSegmentManage="clientSegmentManage",it.voucherList="voucherList",it.voucherManage="voucherManage",it.voucherVerify="voucherVerify",it.digitalMenuManage="digitalMenuManage",it.digitalMenuQrRequest="digitalMenuQrRequest",it.newsletterList="newsletterList",it.newsletterSchedule="newsletterSchedule",it.reservationList="reservationList",it.reservationManage="reservationManage",it.floorManage="floorManage",it.businessManage="businessManage",it.userManage="userManage",it.userPermissionsManage="userPermissionsManage",it.templateManage="templateManage",it.paymentSetup="paymentSetup",it.paymentList="paymentList",it.reviewList="reviewList",it.reviewManage="reviewManage",it.callsList="callsList",it.callsManage="callsManage",it.menuManage="menuManage",it))(Permissions||{}),ModuleType=(it=>(it.Vouchers="VOUCHERS",it.Reservations="RESERVATIONS",it.Clients="CLIENTS",it.DigitalMenu="DIGITALMENU",it.Newsletters="NEWSLETTERS",it.Reviews="REVIEWS",it.Calls="CALLS",it))(ModuleType||{});const Modules=[{moduleType:"CLIENTS",key:"clients",icon:"fa-book",path:"/modules/clients",permission:Permissions.clientList},{moduleType:"VOUCHERS",key:"vouchers",icon:"fa-gift",path:"/modules/vouchers",permission:Permissions.voucherList},{moduleType:"RESERVATIONS",key:"reservations",icon:"fa-calendar-week",path:"/modules/reservations",permission:Permissions.reservationList},{moduleType:"NEWSLETTERS",key:"newsletters",icon:"fa-mail-bulk",path:"/modules/newsletters",permission:Permissions.newsletterList},{moduleType:"DIGITALMENU",key:"digitalmenu",icon:"fa-qrcode",path:"/modules/digitalmenu",permission:Permissions.digitalMenuManage},{moduleType:"REVIEWS",key:"reviews",icon:"fa-ranking-star",path:"/modules/reviews",permission:Permissions.reviewList},{moduleType:"CALLS",key:"calls",icon:"fa-phone-volume",path:"/modules/calls",permission:Permissions.callsList,isBeta:!0,betaInfoPath:"/modules/calls/info"}];var classnames={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(it){(function(){var at={}.hasOwnProperty;function lt(){for(var ut=[],ct=0;ct<arguments.length;ct++){var dt=arguments[ct];if(dt){var ft=typeof dt;if(ft==="string"||ft==="number")ut.push(dt);else if(Array.isArray(dt)){if(dt.length){var mt=lt.apply(null,dt);mt&&ut.push(mt)}}else if(ft==="object"){if(dt.toString!==Object.prototype.toString&&!dt.toString.toString().includes("[native code]")){ut.push(dt.toString());continue}for(var pt in dt)at.call(dt,pt)&&dt[pt]&&ut.push(pt)}}}return ut.join(" ")}it.exports?(lt.default=lt,it.exports=lt):window.classNames=lt})()})(classnames);var classnamesExports=classnames.exports;const classNames=getDefaultExportFromCjs(classnamesExports);function _objectWithoutPropertiesLoose$3(it,at){if(it==null)return{};var lt={},ut=Object.keys(it),ct,dt;for(dt=0;dt<ut.length;dt++)ct=ut[dt],!(at.indexOf(ct)>=0)&&(lt[ct]=it[ct]);return lt}function defaultKey(it){return"default"+it.charAt(0).toUpperCase()+it.substr(1)}function _toPropertyKey$3(it){var at=_toPrimitive$3(it,"string");return typeof at=="symbol"?at:String(at)}function _toPrimitive$3(it,at){if(typeof it!="object"||it===null)return it;var lt=it[Symbol.toPrimitive];if(lt!==void 0){var ut=lt.call(it,at||"default");if(typeof ut!="object")return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(at==="string"?String:Number)(it)}function useUncontrolledProp(it,at,lt){var ut=reactExports.useRef(it!==void 0),ct=reactExports.useState(at),dt=ct[0],ft=ct[1],mt=it!==void 0,pt=ut.current;return ut.current=mt,!mt&&pt&&dt!==at&&ft(at),[mt?it:dt,reactExports.useCallback(function(gt){for(var vt=arguments.length,wt=new Array(vt>1?vt-1:0),yt=1;yt<vt;yt++)wt[yt-1]=arguments[yt];lt&&lt.apply(void 0,[gt].concat(wt)),ft(gt)},[lt])]}function useUncontrolled(it,at){return Object.keys(at).reduce(function(lt,ut){var ct,dt=lt,ft=dt[defaultKey(ut)],mt=dt[ut],pt=_objectWithoutPropertiesLoose$3(dt,[defaultKey(ut),ut].map(_toPropertyKey$3)),gt=at[ut],vt=useUncontrolledProp(mt,ft,it[gt]),wt=vt[0],yt=vt[1];return _extends$3({},pt,(ct={},ct[ut]=wt,ct[gt]=yt,ct))},it)}function _setPrototypeOf(it,at){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ut,ct){return ut.__proto__=ct,ut},_setPrototypeOf(it,at)}function _inheritsLoose(it,at){it.prototype=Object.create(at.prototype),it.prototype.constructor=it,_setPrototypeOf(it,at)}const DEFAULT_BREAKPOINTS=["xxl","xl","lg","md","sm","xs"],DEFAULT_MIN_BREAKPOINT="xs",ThemeContext=reactExports.createContext({prefixes:{},breakpoints:DEFAULT_BREAKPOINTS,minBreakpoint:DEFAULT_MIN_BREAKPOINT});function useBootstrapPrefix(it,at){const{prefixes:lt}=reactExports.useContext(ThemeContext);return it||lt[at]||at}function useBootstrapBreakpoints(){const{breakpoints:it}=reactExports.useContext(ThemeContext);return it}function useBootstrapMinBreakpoint(){const{minBreakpoint:it}=reactExports.useContext(ThemeContext);return it}function useIsRTL(){const{dir:it}=reactExports.useContext(ThemeContext);return it==="rtl"}function ownerDocument(it){return it&&it.ownerDocument||document}function ownerWindow(it){var at=ownerDocument(it);return at&&at.defaultView||window}function getComputedStyle$2(it,at){return ownerWindow(it).getComputedStyle(it,at)}var rUpper=/([A-Z])/g;function hyphenate(it){return it.replace(rUpper,"-$1").toLowerCase()}var msPattern=/^ms-/;function hyphenateStyleName(it){return hyphenate(it).replace(msPattern,"-ms-")}var supportedTransforms=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function isTransform(it){return!!(it&&supportedTransforms.test(it))}function style$1(it,at){var lt="",ut="";if(typeof at=="string")return it.style.getPropertyValue(hyphenateStyleName(at))||getComputedStyle$2(it).getPropertyValue(hyphenateStyleName(at));Object.keys(at).forEach(function(ct){var dt=at[ct];!dt&&dt!==0?it.style.removeProperty(hyphenateStyleName(ct)):isTransform(ct)?ut+=ct+"("+dt+") ":lt+=hyphenateStyleName(ct)+": "+dt+";"}),ut&&(lt+="transform: "+ut+";"),it.style.cssText+=";"+lt}const config={disabled:!1},TransitionGroupContext=b$2.createContext(null);var forceReflow=function(at){return at.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=function(it){_inheritsLoose(at,it);function at(ut,ct){var dt;dt=it.call(this,ut,ct)||this;var ft=ct,mt=ft&&!ft.isMounting?ut.enter:ut.appear,pt;return dt.appearStatus=null,ut.in?mt?(pt=EXITED,dt.appearStatus=ENTERING):pt=ENTERED:ut.unmountOnExit||ut.mountOnEnter?pt=UNMOUNTED:pt=EXITED,dt.state={status:pt},dt.nextCallback=null,dt}at.getDerivedStateFromProps=function(ct,dt){var ft=ct.in;return ft&&dt.status===UNMOUNTED?{status:EXITED}:null};var lt=at.prototype;return lt.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},lt.componentDidUpdate=function(ct){var dt=null;if(ct!==this.props){var ft=this.state.status;this.props.in?ft!==ENTERING&&ft!==ENTERED&&(dt=ENTERING):(ft===ENTERING||ft===ENTERED)&&(dt=EXITING)}this.updateStatus(!1,dt)},lt.componentWillUnmount=function(){this.cancelNextCallback()},lt.getTimeouts=function(){var ct=this.props.timeout,dt,ft,mt;return dt=ft=mt=ct,ct!=null&&typeof ct!="number"&&(dt=ct.exit,ft=ct.enter,mt=ct.appear!==void 0?ct.appear:ft),{exit:dt,enter:ft,appear:mt}},lt.updateStatus=function(ct,dt){if(ct===void 0&&(ct=!1),dt!==null)if(this.cancelNextCallback(),dt===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var ft=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);ft&&forceReflow(ft)}this.performEnter(ct)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},lt.performEnter=function(ct){var dt=this,ft=this.props.enter,mt=this.context?this.context.isMounting:ct,pt=this.props.nodeRef?[mt]:[ReactDOM.findDOMNode(this),mt],gt=pt[0],vt=pt[1],wt=this.getTimeouts(),yt=mt?wt.appear:wt.enter;if(!ct&&!ft||config.disabled){this.safeSetState({status:ENTERED},function(){dt.props.onEntered(gt)});return}this.props.onEnter(gt,vt),this.safeSetState({status:ENTERING},function(){dt.props.onEntering(gt,vt),dt.onTransitionEnd(yt,function(){dt.safeSetState({status:ENTERED},function(){dt.props.onEntered(gt,vt)})})})},lt.performExit=function(){var ct=this,dt=this.props.exit,ft=this.getTimeouts(),mt=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!dt||config.disabled){this.safeSetState({status:EXITED},function(){ct.props.onExited(mt)});return}this.props.onExit(mt),this.safeSetState({status:EXITING},function(){ct.props.onExiting(mt),ct.onTransitionEnd(ft.exit,function(){ct.safeSetState({status:EXITED},function(){ct.props.onExited(mt)})})})},lt.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},lt.safeSetState=function(ct,dt){dt=this.setNextCallback(dt),this.setState(ct,dt)},lt.setNextCallback=function(ct){var dt=this,ft=!0;return this.nextCallback=function(mt){ft&&(ft=!1,dt.nextCallback=null,ct(mt))},this.nextCallback.cancel=function(){ft=!1},this.nextCallback},lt.onTransitionEnd=function(ct,dt){this.setNextCallback(dt);var ft=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),mt=ct==null&&!this.props.addEndListener;if(!ft||mt){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var pt=this.props.nodeRef?[this.nextCallback]:[ft,this.nextCallback],gt=pt[0],vt=pt[1];this.props.addEndListener(gt,vt)}ct!=null&&setTimeout(this.nextCallback,ct)},lt.render=function(){var ct=this.state.status;if(ct===UNMOUNTED)return null;var dt=this.props,ft=dt.children;dt.in,dt.mountOnEnter,dt.unmountOnExit,dt.appear,dt.enter,dt.exit,dt.timeout,dt.addEndListener,dt.onEnter,dt.onEntering,dt.onEntered,dt.onExit,dt.onExiting,dt.onExited,dt.nodeRef;var mt=_objectWithoutPropertiesLoose$3(dt,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b$2.createElement(TransitionGroupContext.Provider,{value:null},typeof ft=="function"?ft(ct,mt):b$2.cloneElement(b$2.Children.only(ft),mt))},at}(b$2.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes={};function noop$3(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop$3,onEntering:noop$3,onEntered:noop$3,onExit:noop$3,onExiting:noop$3,onExited:noop$3};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;const Transition$1=Transition,canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement);var optionsSupported=!1,onceSupported=!1;try{var options={get passive(){return optionsSupported=!0},get once(){return onceSupported=optionsSupported=!0}};canUseDOM&&(window.addEventListener("test",options,options),window.removeEventListener("test",options,!0))}catch{}function addEventListener(it,at,lt,ut){if(ut&&typeof ut!="boolean"&&!onceSupported){var ct=ut.once,dt=ut.capture,ft=lt;!onceSupported&&ct&&(ft=lt.__once||function mt(pt){this.removeEventListener(at,mt,dt),lt.call(this,pt)},lt.__once=ft),it.addEventListener(at,ft,optionsSupported?ut:dt)}it.addEventListener(at,lt,ut)}function removeEventListener(it,at,lt,ut){var ct=ut&&typeof ut!="boolean"?ut.capture:ut;it.removeEventListener(at,lt,ct),lt.__once&&it.removeEventListener(at,lt.__once,ct)}function listen(it,at,lt,ut){return addEventListener(it,at,lt,ut),function(){removeEventListener(it,at,lt,ut)}}function triggerEvent(it,at,lt,ut){if(lt===void 0&&(lt=!1),ut===void 0&&(ut=!0),it){var ct=document.createEvent("HTMLEvents");ct.initEvent(at,lt,ut),it.dispatchEvent(ct)}}function parseDuration$1(it){var at=style$1(it,"transitionDuration")||"",lt=at.indexOf("ms")===-1?1e3:1;return parseFloat(at)*lt}function emulateTransitionEnd(it,at,lt){lt===void 0&&(lt=5);var ut=!1,ct=setTimeout(function(){ut||triggerEvent(it,"transitionend",!0)},at+lt),dt=listen(it,"transitionend",function(){ut=!0},{once:!0});return function(){clearTimeout(ct),dt()}}function transitionEnd(it,at,lt,ut){lt==null&&(lt=parseDuration$1(it)||0);var ct=emulateTransitionEnd(it,lt,ut),dt=listen(it,"transitionend",at);return function(){ct(),dt()}}function parseDuration(it,at){const lt=style$1(it,at)||"",ut=lt.indexOf("ms")===-1?1e3:1;return parseFloat(lt)*ut}function transitionEndListener(it,at){const lt=parseDuration(it,"transitionDuration"),ut=parseDuration(it,"transitionDelay"),ct=transitionEnd(it,dt=>{dt.target===it&&(ct(),at(dt))},lt+ut)}function triggerBrowserReflow(it){it.offsetHeight}var toFnRef=function(at){return!at||typeof at=="function"?at:function(lt){at.current=lt}};function mergeRefs$1(it,at){var lt=toFnRef(it),ut=toFnRef(at);return function(ct){lt&&lt(ct),ut&&ut(ct)}}function useMergedRefs(it,at){return reactExports.useMemo(function(){return mergeRefs$1(it,at)},[it,at])}function safeFindDOMNode(it){return it&&"setState"in it?ReactDOM.findDOMNode(it):it??null}const TransitionWrapper=b$2.forwardRef(({onEnter:it,onEntering:at,onEntered:lt,onExit:ut,onExiting:ct,onExited:dt,addEndListener:ft,children:mt,childRef:pt,...gt},vt)=>{const wt=reactExports.useRef(null),yt=useMergedRefs(wt,pt),bt=$t=>{yt(safeFindDOMNode($t))},Ct=$t=>Lt=>{$t&&wt.current&&$t(wt.current,Lt)},Et=reactExports.useCallback(Ct(it),[it]),kt=reactExports.useCallback(Ct(at),[at]),xt=reactExports.useCallback(Ct(lt),[lt]),St=reactExports.useCallback(Ct(ut),[ut]),Ot=reactExports.useCallback(Ct(ct),[ct]),At=reactExports.useCallback(Ct(dt),[dt]),Tt=reactExports.useCallback(Ct(ft),[ft]);return jsxRuntimeExports.jsx(Transition$1,{ref:vt,...gt,onEnter:Et,onEntered:xt,onEntering:kt,onExit:St,onExited:At,onExiting:Ot,addEndListener:Tt,nodeRef:wt,children:typeof mt=="function"?($t,Lt)=>mt($t,{...Lt,ref:bt}):b$2.cloneElement(mt,{ref:bt})})}),TransitionWrapper$1=TransitionWrapper;function useCommittedRef(it){var at=reactExports.useRef(it);return reactExports.useEffect(function(){at.current=it},[it]),at}function useEventCallback(it){var at=useCommittedRef(it);return reactExports.useCallback(function(){return at.current&&at.current.apply(at,arguments)},[at])}const divWithClassName=it=>reactExports.forwardRef((at,lt)=>jsxRuntimeExports.jsx("div",{...at,ref:lt,className:classNames(at.className,it)})),DivStyledAsH4=divWithClassName("h4");DivStyledAsH4.displayName="DivStyledAsH4";const AlertHeading=reactExports.forwardRef(({className:it,bsPrefix:at,as:lt=DivStyledAsH4,...ut},ct)=>(at=useBootstrapPrefix(at,"alert-heading"),jsxRuntimeExports.jsx(lt,{ref:ct,className:classNames(it,at),...ut})));AlertHeading.displayName="AlertHeading";const AlertHeading$1=AlertHeading;function useCallbackRef(){return reactExports.useState(null)}function useMounted(){var it=reactExports.useRef(!0),at=reactExports.useRef(function(){return it.current});return reactExports.useEffect(function(){return it.current=!0,function(){it.current=!1}},[]),at.current}var isReactNative$1=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",isDOM=typeof document<"u";const useIsomorphicEffect=isDOM||isReactNative$1?reactExports.useLayoutEffect:reactExports.useEffect,_excluded$5=["as","disabled"];function _objectWithoutPropertiesLoose$2(it,at){if(it==null)return{};var lt={},ut=Object.keys(it),ct,dt;for(dt=0;dt<ut.length;dt++)ct=ut[dt],!(at.indexOf(ct)>=0)&&(lt[ct]=it[ct]);return lt}function isTrivialHref$1(it){return!it||it.trim()==="#"}function useButtonProps({tagName:it,disabled:at,href:lt,target:ut,rel:ct,role:dt,onClick:ft,tabIndex:mt=0,type:pt}){it||(lt!=null||ut!=null||ct!=null?it="a":it="button");const gt={tagName:it};if(it==="button")return[{type:pt||"button",disabled:at},gt];const vt=yt=>{if((at||it==="a"&&isTrivialHref$1(lt))&&yt.preventDefault(),at){yt.stopPropagation();return}ft==null||ft(yt)},wt=yt=>{yt.key===" "&&(yt.preventDefault(),vt(yt))};return it==="a"&&(lt||(lt="#"),at&&(lt=void 0)),[{role:dt??"button",disabled:void 0,tabIndex:at?void 0:mt,href:lt,target:it==="a"?ut:void 0,"aria-disabled":at||void 0,rel:it==="a"?ct:void 0,onClick:vt,onKeyDown:wt},gt]}const Button$1=reactExports.forwardRef((it,at)=>{let{as:lt,disabled:ut}=it,ct=_objectWithoutPropertiesLoose$2(it,_excluded$5);const[dt,{tagName:ft}]=useButtonProps(Object.assign({tagName:lt,disabled:ut},ct));return jsxRuntimeExports.jsx(ft,Object.assign({},ct,dt,{ref:at}))});Button$1.displayName="Button";const _excluded$4=["onKeyDown"];function _objectWithoutPropertiesLoose$1(it,at){if(it==null)return{};var lt={},ut=Object.keys(it),ct,dt;for(dt=0;dt<ut.length;dt++)ct=ut[dt],!(at.indexOf(ct)>=0)&&(lt[ct]=it[ct]);return lt}function isTrivialHref(it){return!it||it.trim()==="#"}const Anchor=reactExports.forwardRef((it,at)=>{let{onKeyDown:lt}=it,ut=_objectWithoutPropertiesLoose$1(it,_excluded$4);const[ct]=useButtonProps(Object.assign({tagName:"a"},ut)),dt=useEventCallback(ft=>{ct.onKeyDown(ft),lt==null||lt(ft)});return isTrivialHref(ut.href)||ut.role==="button"?jsxRuntimeExports.jsx("a",Object.assign({ref:at},ut,ct,{onKeyDown:dt})):jsxRuntimeExports.jsx("a",Object.assign({ref:at},ut,{onKeyDown:lt}))});Anchor.displayName="Anchor";const Anchor$1=Anchor,AlertLink=reactExports.forwardRef(({className:it,bsPrefix:at,as:lt=Anchor$1,...ut},ct)=>(at=useBootstrapPrefix(at,"alert-link"),jsxRuntimeExports.jsx(lt,{ref:ct,className:classNames(it,at),...ut})));AlertLink.displayName="AlertLink";const AlertLink$1=AlertLink,fadeStyles={[ENTERING]:"show",[ENTERED]:"show"},Fade=reactExports.forwardRef(({className:it,children:at,transitionClasses:lt={},onEnter:ut,...ct},dt)=>{const ft={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...ct},mt=reactExports.useCallback((pt,gt)=>{triggerBrowserReflow(pt),ut==null||ut(pt,gt)},[ut]);return jsxRuntimeExports.jsx(TransitionWrapper$1,{ref:dt,addEndListener:transitionEndListener,...ft,onEnter:mt,childRef:at.ref,children:(pt,gt)=>reactExports.cloneElement(at,{...gt,className:classNames("fade",it,at.props.className,fadeStyles[pt],lt[pt])})})});Fade.displayName="Fade";const Fade$1=Fade,propTypes={"aria-label":PropTypes.string,onClick:PropTypes.func,variant:PropTypes.oneOf(["white"])},CloseButton=reactExports.forwardRef(({className:it,variant:at,"aria-label":lt="Close",...ut},ct)=>jsxRuntimeExports.jsx("button",{ref:ct,type:"button",className:classNames("btn-close",at&&`btn-close-${at}`,it),"aria-label":lt,...ut}));CloseButton.displayName="CloseButton";CloseButton.propTypes=propTypes;const CloseButton$1=CloseButton,Alert=reactExports.forwardRef((it,at)=>{const{bsPrefix:lt,show:ut=!0,closeLabel:ct="Close alert",closeVariant:dt,className:ft,children:mt,variant:pt="primary",onClose:gt,dismissible:vt,transition:wt=Fade$1,...yt}=useUncontrolled(it,{show:"onClose"}),bt=useBootstrapPrefix(lt,"alert"),Ct=useEventCallback(xt=>{gt&&gt(!1,xt)}),Et=wt===!0?Fade$1:wt,kt=jsxRuntimeExports.jsxs("div",{role:"alert",...Et?void 0:yt,ref:at,className:classNames(ft,bt,pt&&`${bt}-${pt}`,vt&&`${bt}-dismissible`),children:[vt&&jsxRuntimeExports.jsx(CloseButton$1,{onClick:Ct,"aria-label":ct,variant:dt}),mt]});return Et?jsxRuntimeExports.jsx(Et,{unmountOnExit:!0,...yt,ref:void 0,in:ut,children:kt}):ut?kt:null});Alert.displayName="Alert";const Alert$1=Object.assign(Alert,{Link:AlertLink$1,Heading:AlertHeading$1});function useUpdatedRef(it){var at=reactExports.useRef(it);return at.current=it,at}function useWillUnmount(it){var at=useUpdatedRef(it);reactExports.useEffect(function(){return function(){return at.current()}},[])}var MAX_DELAY_MS=Math.pow(2,31)-1;function setChainedTimeout(it,at,lt){var ut=lt-Date.now();it.current=ut<=MAX_DELAY_MS?setTimeout(at,ut):setTimeout(function(){return setChainedTimeout(it,at,lt)},MAX_DELAY_MS)}function useTimeout(){var it=useMounted(),at=reactExports.useRef();return useWillUnmount(function(){return clearTimeout(at.current)}),reactExports.useMemo(function(){var lt=function(){return clearTimeout(at.current)};function ut(ct,dt){dt===void 0&&(dt=0),it()&&(lt(),dt<=MAX_DELAY_MS?at.current=setTimeout(ct,dt):setChainedTimeout(at,ct,Date.now()+dt))}return{set:ut,clear:lt}},[])}function useCol({as:it,bsPrefix:at,className:lt,...ut}){at=useBootstrapPrefix(at,"col");const ct=useBootstrapBreakpoints(),dt=useBootstrapMinBreakpoint(),ft=[],mt=[];return ct.forEach(pt=>{const gt=ut[pt];delete ut[pt];let vt,wt,yt;typeof gt=="object"&&gt!=null?{span:vt,offset:wt,order:yt}=gt:vt=gt;const bt=pt!==dt?`-${pt}`:"";vt&&ft.push(vt===!0?`${at}${bt}`:`${at}${bt}-${vt}`),yt!=null&&mt.push(`order${bt}-${yt}`),wt!=null&&mt.push(`offset${bt}-${wt}`)}),[{...ut,className:classNames(lt,...ft,...mt)},{as:it,bsPrefix:at,spans:ft}]}const Col=reactExports.forwardRef((it,at)=>{const[{className:lt,...ut},{as:ct="div",bsPrefix:dt,spans:ft}]=useCol(it);return jsxRuntimeExports.jsx(ct,{...ut,ref:at,className:classNames(lt,!ft.length&&dt)})});Col.displayName="Col";const Col$1=Col,Container$1=reactExports.forwardRef(({bsPrefix:it,fluid:at=!1,as:lt="div",className:ut,...ct},dt)=>{const ft=useBootstrapPrefix(it,"container"),mt=typeof at=="string"?`-${at}`:"-fluid";return jsxRuntimeExports.jsx(lt,{ref:dt,...ct,className:classNames(ut,at?`${ft}${mt}`:ft)})});Container$1.displayName="Container";const Container$2=Container$1;var has=Object.prototype.hasOwnProperty;function find(it,at,lt){for(lt of it.keys())if(dequal(lt,at))return lt}function dequal(it,at){var lt,ut,ct;if(it===at)return!0;if(it&&at&&(lt=it.constructor)===at.constructor){if(lt===Date)return it.getTime()===at.getTime();if(lt===RegExp)return it.toString()===at.toString();if(lt===Array){if((ut=it.length)===at.length)for(;ut--&&dequal(it[ut],at[ut]););return ut===-1}if(lt===Set){if(it.size!==at.size)return!1;for(ut of it)if(ct=ut,ct&&typeof ct=="object"&&(ct=find(at,ct),!ct)||!at.has(ct))return!1;return!0}if(lt===Map){if(it.size!==at.size)return!1;for(ut of it)if(ct=ut[0],ct&&typeof ct=="object"&&(ct=find(at,ct),!ct)||!dequal(ut[1],at.get(ct)))return!1;return!0}if(lt===ArrayBuffer)it=new Uint8Array(it),at=new Uint8Array(at);else if(lt===DataView){if((ut=it.byteLength)===at.byteLength)for(;ut--&&it.getInt8(ut)===at.getInt8(ut););return ut===-1}if(ArrayBuffer.isView(it)){if((ut=it.byteLength)===at.byteLength)for(;ut--&&it[ut]===at[ut];);return ut===-1}if(!lt||typeof it=="object"){ut=0;for(lt in it)if(has.call(it,lt)&&++ut&&!has.call(at,lt)||!(lt in at)||!dequal(it[lt],at[lt]))return!1;return Object.keys(at).length===ut}}return it!==it&&at!==at}function useSafeState(it){var at=useMounted();return[it[0],reactExports.useCallback(function(lt){if(at())return it[1](lt)},[at,it[1]])]}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(it,at){return it.concat([at+"-"+start,at+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(it,at){return it.concat([at,at+"-"+start,at+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getBasePlacement(it){return it.split("-")[0]}function getWindow(it){if(it==null)return window;if(it.toString()!=="[object Window]"){var at=it.ownerDocument;return at&&at.defaultView||window}return it}function isElement(it){var at=getWindow(it).Element;return it instanceof at||it instanceof Element}function isHTMLElement(it){var at=getWindow(it).HTMLElement;return it instanceof at||it instanceof HTMLElement}function isShadowRoot(it){if(typeof ShadowRoot>"u")return!1;var at=getWindow(it).ShadowRoot;return it instanceof at||it instanceof ShadowRoot}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var it=navigator.userAgentData;return it!=null&&it.brands&&Array.isArray(it.brands)?it.brands.map(function(at){return at.brand+"/"+at.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(it,at,lt){at===void 0&&(at=!1),lt===void 0&&(lt=!1);var ut=it.getBoundingClientRect(),ct=1,dt=1;at&&isHTMLElement(it)&&(ct=it.offsetWidth>0&&round(ut.width)/it.offsetWidth||1,dt=it.offsetHeight>0&&round(ut.height)/it.offsetHeight||1);var ft=isElement(it)?getWindow(it):window,mt=ft.visualViewport,pt=!isLayoutViewport()&&lt,gt=(ut.left+(pt&&mt?mt.offsetLeft:0))/ct,vt=(ut.top+(pt&&mt?mt.offsetTop:0))/dt,wt=ut.width/ct,yt=ut.height/dt;return{width:wt,height:yt,top:vt,right:gt+wt,bottom:vt+yt,left:gt,x:gt,y:vt}}function getLayoutRect(it){var at=getBoundingClientRect(it),lt=it.offsetWidth,ut=it.offsetHeight;return Math.abs(at.width-lt)<=1&&(lt=at.width),Math.abs(at.height-ut)<=1&&(ut=at.height),{x:it.offsetLeft,y:it.offsetTop,width:lt,height:ut}}function contains$1(it,at){var lt=at.getRootNode&&at.getRootNode();if(it.contains(at))return!0;if(lt&&isShadowRoot(lt)){var ut=at;do{if(ut&&it.isSameNode(ut))return!0;ut=ut.parentNode||ut.host}while(ut)}return!1}function getNodeName(it){return it?(it.nodeName||"").toLowerCase():null}function getComputedStyle$1(it){return getWindow(it).getComputedStyle(it)}function isTableElement(it){return["table","td","th"].indexOf(getNodeName(it))>=0}function getDocumentElement(it){return((isElement(it)?it.ownerDocument:it.document)||window.document).documentElement}function getParentNode(it){return getNodeName(it)==="html"?it:it.assignedSlot||it.parentNode||(isShadowRoot(it)?it.host:null)||getDocumentElement(it)}function getTrueOffsetParent(it){return!isHTMLElement(it)||getComputedStyle$1(it).position==="fixed"?null:it.offsetParent}function getContainingBlock(it){var at=/firefox/i.test(getUAString()),lt=/Trident/i.test(getUAString());if(lt&&isHTMLElement(it)){var ut=getComputedStyle$1(it);if(ut.position==="fixed")return null}var ct=getParentNode(it);for(isShadowRoot(ct)&&(ct=ct.host);isHTMLElement(ct)&&["html","body"].indexOf(getNodeName(ct))<0;){var dt=getComputedStyle$1(ct);if(dt.transform!=="none"||dt.perspective!=="none"||dt.contain==="paint"||["transform","perspective"].indexOf(dt.willChange)!==-1||at&&dt.willChange==="filter"||at&&dt.filter&&dt.filter!=="none")return ct;ct=ct.parentNode}return null}function getOffsetParent(it){for(var at=getWindow(it),lt=getTrueOffsetParent(it);lt&&isTableElement(lt)&&getComputedStyle$1(lt).position==="static";)lt=getTrueOffsetParent(lt);return lt&&(getNodeName(lt)==="html"||getNodeName(lt)==="body"&&getComputedStyle$1(lt).position==="static")?at:lt||getContainingBlock(it)||at}function getMainAxisFromPlacement(it){return["top","bottom"].indexOf(it)>=0?"x":"y"}function within(it,at,lt){return max(it,min(at,lt))}function withinMaxClamp(it,at,lt){var ut=within(it,at,lt);return ut>lt?lt:ut}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(it){return Object.assign({},getFreshSideObject(),it)}function expandToHashMap(it,at){return at.reduce(function(lt,ut){return lt[ut]=it,lt},{})}var toPaddingObject=function(at,lt){return at=typeof at=="function"?at(Object.assign({},lt.rects,{placement:lt.placement})):at,mergePaddingObject(typeof at!="number"?at:expandToHashMap(at,basePlacements))};function arrow(it){var at,lt=it.state,ut=it.name,ct=it.options,dt=lt.elements.arrow,ft=lt.modifiersData.popperOffsets,mt=getBasePlacement(lt.placement),pt=getMainAxisFromPlacement(mt),gt=[left,right].indexOf(mt)>=0,vt=gt?"height":"width";if(!(!dt||!ft)){var wt=toPaddingObject(ct.padding,lt),yt=getLayoutRect(dt),bt=pt==="y"?top:left,Ct=pt==="y"?bottom:right,Et=lt.rects.reference[vt]+lt.rects.reference[pt]-ft[pt]-lt.rects.popper[vt],kt=ft[pt]-lt.rects.reference[pt],xt=getOffsetParent(dt),St=xt?pt==="y"?xt.clientHeight||0:xt.clientWidth||0:0,Ot=Et/2-kt/2,At=wt[bt],Tt=St-yt[vt]-wt[Ct],$t=St/2-yt[vt]/2+Ot,Lt=within(At,$t,Tt),Rt=pt;lt.modifiersData[ut]=(at={},at[Rt]=Lt,at.centerOffset=Lt-$t,at)}}function effect$1(it){var at=it.state,lt=it.options,ut=lt.element,ct=ut===void 0?"[data-popper-arrow]":ut;ct!=null&&(typeof ct=="string"&&(ct=at.elements.popper.querySelector(ct),!ct)||contains$1(at.elements.popper,ct)&&(at.elements.arrow=ct))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(it){return it.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(it,at){var lt=it.x,ut=it.y,ct=at.devicePixelRatio||1;return{x:round(lt*ct)/ct||0,y:round(ut*ct)/ct||0}}function mapToStyles(it){var at,lt=it.popper,ut=it.popperRect,ct=it.placement,dt=it.variation,ft=it.offsets,mt=it.position,pt=it.gpuAcceleration,gt=it.adaptive,vt=it.roundOffsets,wt=it.isFixed,yt=ft.x,bt=yt===void 0?0:yt,Ct=ft.y,Et=Ct===void 0?0:Ct,kt=typeof vt=="function"?vt({x:bt,y:Et}):{x:bt,y:Et};bt=kt.x,Et=kt.y;var xt=ft.hasOwnProperty("x"),St=ft.hasOwnProperty("y"),Ot=left,At=top,Tt=window;if(gt){var $t=getOffsetParent(lt),Lt="clientHeight",Rt="clientWidth";if($t===getWindow(lt)&&($t=getDocumentElement(lt),getComputedStyle$1($t).position!=="static"&&mt==="absolute"&&(Lt="scrollHeight",Rt="scrollWidth")),$t=$t,ct===top||(ct===left||ct===right)&&dt===end){At=bottom;var It=wt&&$t===Tt&&Tt.visualViewport?Tt.visualViewport.height:$t[Lt];Et-=It-ut.height,Et*=pt?1:-1}if(ct===left||(ct===top||ct===bottom)&&dt===end){Ot=right;var Ft=wt&&$t===Tt&&Tt.visualViewport?Tt.visualViewport.width:$t[Rt];bt-=Ft-ut.width,bt*=pt?1:-1}}var Mt=Object.assign({position:mt},gt&&unsetSides),Ht=vt===!0?roundOffsetsByDPR({x:bt,y:Et},getWindow(lt)):{x:bt,y:Et};if(bt=Ht.x,Et=Ht.y,pt){var Vt;return Object.assign({},Mt,(Vt={},Vt[At]=St?"0":"",Vt[Ot]=xt?"0":"",Vt.transform=(Tt.devicePixelRatio||1)<=1?"translate("+bt+"px, "+Et+"px)":"translate3d("+bt+"px, "+Et+"px, 0)",Vt))}return Object.assign({},Mt,(at={},at[At]=St?Et+"px":"",at[Ot]=xt?bt+"px":"",at.transform="",at))}function computeStyles(it){var at=it.state,lt=it.options,ut=lt.gpuAcceleration,ct=ut===void 0?!0:ut,dt=lt.adaptive,ft=dt===void 0?!0:dt,mt=lt.roundOffsets,pt=mt===void 0?!0:mt,gt={placement:getBasePlacement(at.placement),variation:getVariation(at.placement),popper:at.elements.popper,popperRect:at.rects.popper,gpuAcceleration:ct,isFixed:at.options.strategy==="fixed"};at.modifiersData.popperOffsets!=null&&(at.styles.popper=Object.assign({},at.styles.popper,mapToStyles(Object.assign({},gt,{offsets:at.modifiersData.popperOffsets,position:at.options.strategy,adaptive:ft,roundOffsets:pt})))),at.modifiersData.arrow!=null&&(at.styles.arrow=Object.assign({},at.styles.arrow,mapToStyles(Object.assign({},gt,{offsets:at.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:pt})))),at.attributes.popper=Object.assign({},at.attributes.popper,{"data-popper-placement":at.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect(it){var at=it.state,lt=it.instance,ut=it.options,ct=ut.scroll,dt=ct===void 0?!0:ct,ft=ut.resize,mt=ft===void 0?!0:ft,pt=getWindow(at.elements.popper),gt=[].concat(at.scrollParents.reference,at.scrollParents.popper);return dt&&gt.forEach(function(vt){vt.addEventListener("scroll",lt.update,passive)}),mt&&pt.addEventListener("resize",lt.update,passive),function(){dt&&gt.forEach(function(vt){vt.removeEventListener("scroll",lt.update,passive)}),mt&&pt.removeEventListener("resize",lt.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}};var hash$2={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(it){return it.replace(/left|right|bottom|top/g,function(at){return hash$2[at]})}var hash$1={start:"end",end:"start"};function getOppositeVariationPlacement(it){return it.replace(/start|end/g,function(at){return hash$1[at]})}function getWindowScroll(it){var at=getWindow(it),lt=at.pageXOffset,ut=at.pageYOffset;return{scrollLeft:lt,scrollTop:ut}}function getWindowScrollBarX(it){return getBoundingClientRect(getDocumentElement(it)).left+getWindowScroll(it).scrollLeft}function getViewportRect(it,at){var lt=getWindow(it),ut=getDocumentElement(it),ct=lt.visualViewport,dt=ut.clientWidth,ft=ut.clientHeight,mt=0,pt=0;if(ct){dt=ct.width,ft=ct.height;var gt=isLayoutViewport();(gt||!gt&&at==="fixed")&&(mt=ct.offsetLeft,pt=ct.offsetTop)}return{width:dt,height:ft,x:mt+getWindowScrollBarX(it),y:pt}}function getDocumentRect(it){var at,lt=getDocumentElement(it),ut=getWindowScroll(it),ct=(at=it.ownerDocument)==null?void 0:at.body,dt=max(lt.scrollWidth,lt.clientWidth,ct?ct.scrollWidth:0,ct?ct.clientWidth:0),ft=max(lt.scrollHeight,lt.clientHeight,ct?ct.scrollHeight:0,ct?ct.clientHeight:0),mt=-ut.scrollLeft+getWindowScrollBarX(it),pt=-ut.scrollTop;return getComputedStyle$1(ct||lt).direction==="rtl"&&(mt+=max(lt.clientWidth,ct?ct.clientWidth:0)-dt),{width:dt,height:ft,x:mt,y:pt}}function isScrollParent(it){var at=getComputedStyle$1(it),lt=at.overflow,ut=at.overflowX,ct=at.overflowY;return/auto|scroll|overlay|hidden/.test(lt+ct+ut)}function getScrollParent(it){return["html","body","#document"].indexOf(getNodeName(it))>=0?it.ownerDocument.body:isHTMLElement(it)&&isScrollParent(it)?it:getScrollParent(getParentNode(it))}function listScrollParents(it,at){var lt;at===void 0&&(at=[]);var ut=getScrollParent(it),ct=ut===((lt=it.ownerDocument)==null?void 0:lt.body),dt=getWindow(ut),ft=ct?[dt].concat(dt.visualViewport||[],isScrollParent(ut)?ut:[]):ut,mt=at.concat(ft);return ct?mt:mt.concat(listScrollParents(getParentNode(ft)))}function rectToClientRect(it){return Object.assign({},it,{left:it.x,top:it.y,right:it.x+it.width,bottom:it.y+it.height})}function getInnerBoundingClientRect(it,at){var lt=getBoundingClientRect(it,!1,at==="fixed");return lt.top=lt.top+it.clientTop,lt.left=lt.left+it.clientLeft,lt.bottom=lt.top+it.clientHeight,lt.right=lt.left+it.clientWidth,lt.width=it.clientWidth,lt.height=it.clientHeight,lt.x=lt.left,lt.y=lt.top,lt}function getClientRectFromMixedType(it,at,lt){return at===viewport?rectToClientRect(getViewportRect(it,lt)):isElement(at)?getInnerBoundingClientRect(at,lt):rectToClientRect(getDocumentRect(getDocumentElement(it)))}function getClippingParents(it){var at=listScrollParents(getParentNode(it)),lt=["absolute","fixed"].indexOf(getComputedStyle$1(it).position)>=0,ut=lt&&isHTMLElement(it)?getOffsetParent(it):it;return isElement(ut)?at.filter(function(ct){return isElement(ct)&&contains$1(ct,ut)&&getNodeName(ct)!=="body"}):[]}function getClippingRect(it,at,lt,ut){var ct=at==="clippingParents"?getClippingParents(it):[].concat(at),dt=[].concat(ct,[lt]),ft=dt[0],mt=dt.reduce(function(pt,gt){var vt=getClientRectFromMixedType(it,gt,ut);return pt.top=max(vt.top,pt.top),pt.right=min(vt.right,pt.right),pt.bottom=min(vt.bottom,pt.bottom),pt.left=max(vt.left,pt.left),pt},getClientRectFromMixedType(it,ft,ut));return mt.width=mt.right-mt.left,mt.height=mt.bottom-mt.top,mt.x=mt.left,mt.y=mt.top,mt}function computeOffsets(it){var at=it.reference,lt=it.element,ut=it.placement,ct=ut?getBasePlacement(ut):null,dt=ut?getVariation(ut):null,ft=at.x+at.width/2-lt.width/2,mt=at.y+at.height/2-lt.height/2,pt;switch(ct){case top:pt={x:ft,y:at.y-lt.height};break;case bottom:pt={x:ft,y:at.y+at.height};break;case right:pt={x:at.x+at.width,y:mt};break;case left:pt={x:at.x-lt.width,y:mt};break;default:pt={x:at.x,y:at.y}}var gt=ct?getMainAxisFromPlacement(ct):null;if(gt!=null){var vt=gt==="y"?"height":"width";switch(dt){case start:pt[gt]=pt[gt]-(at[vt]/2-lt[vt]/2);break;case end:pt[gt]=pt[gt]+(at[vt]/2-lt[vt]/2);break}}return pt}function detectOverflow(it,at){at===void 0&&(at={});var lt=at,ut=lt.placement,ct=ut===void 0?it.placement:ut,dt=lt.strategy,ft=dt===void 0?it.strategy:dt,mt=lt.boundary,pt=mt===void 0?clippingParents:mt,gt=lt.rootBoundary,vt=gt===void 0?viewport:gt,wt=lt.elementContext,yt=wt===void 0?popper:wt,bt=lt.altBoundary,Ct=bt===void 0?!1:bt,Et=lt.padding,kt=Et===void 0?0:Et,xt=mergePaddingObject(typeof kt!="number"?kt:expandToHashMap(kt,basePlacements)),St=yt===popper?reference:popper,Ot=it.rects.popper,At=it.elements[Ct?St:yt],Tt=getClippingRect(isElement(At)?At:At.contextElement||getDocumentElement(it.elements.popper),pt,vt,ft),$t=getBoundingClientRect(it.elements.reference),Lt=computeOffsets({reference:$t,element:Ot,strategy:"absolute",placement:ct}),Rt=rectToClientRect(Object.assign({},Ot,Lt)),It=yt===popper?Rt:$t,Ft={top:Tt.top-It.top+xt.top,bottom:It.bottom-Tt.bottom+xt.bottom,left:Tt.left-It.left+xt.left,right:It.right-Tt.right+xt.right},Mt=it.modifiersData.offset;if(yt===popper&&Mt){var Ht=Mt[ct];Object.keys(Ft).forEach(function(Vt){var Nt=[right,bottom].indexOf(Vt)>=0?1:-1,Gt=[top,bottom].indexOf(Vt)>=0?"y":"x";Ft[Vt]+=Ht[Gt]*Nt})}return Ft}function computeAutoPlacement(it,at){at===void 0&&(at={});var lt=at,ut=lt.placement,ct=lt.boundary,dt=lt.rootBoundary,ft=lt.padding,mt=lt.flipVariations,pt=lt.allowedAutoPlacements,gt=pt===void 0?placements:pt,vt=getVariation(ut),wt=vt?mt?variationPlacements:variationPlacements.filter(function(Ct){return getVariation(Ct)===vt}):basePlacements,yt=wt.filter(function(Ct){return gt.indexOf(Ct)>=0});yt.length===0&&(yt=wt);var bt=yt.reduce(function(Ct,Et){return Ct[Et]=detectOverflow(it,{placement:Et,boundary:ct,rootBoundary:dt,padding:ft})[getBasePlacement(Et)],Ct},{});return Object.keys(bt).sort(function(Ct,Et){return bt[Ct]-bt[Et]})}function getExpandedFallbackPlacements(it){if(getBasePlacement(it)===auto)return[];var at=getOppositePlacement(it);return[getOppositeVariationPlacement(it),at,getOppositeVariationPlacement(at)]}function flip(it){var at=it.state,lt=it.options,ut=it.name;if(!at.modifiersData[ut]._skip){for(var ct=lt.mainAxis,dt=ct===void 0?!0:ct,ft=lt.altAxis,mt=ft===void 0?!0:ft,pt=lt.fallbackPlacements,gt=lt.padding,vt=lt.boundary,wt=lt.rootBoundary,yt=lt.altBoundary,bt=lt.flipVariations,Ct=bt===void 0?!0:bt,Et=lt.allowedAutoPlacements,kt=at.options.placement,xt=getBasePlacement(kt),St=xt===kt,Ot=pt||(St||!Ct?[getOppositePlacement(kt)]:getExpandedFallbackPlacements(kt)),At=[kt].concat(Ot).reduce(function(jt,Bt){return jt.concat(getBasePlacement(Bt)===auto?computeAutoPlacement(at,{placement:Bt,boundary:vt,rootBoundary:wt,padding:gt,flipVariations:Ct,allowedAutoPlacements:Et}):Bt)},[]),Tt=at.rects.reference,$t=at.rects.popper,Lt=new Map,Rt=!0,It=At[0],Ft=0;Ft<At.length;Ft++){var Mt=At[Ft],Ht=getBasePlacement(Mt),Vt=getVariation(Mt)===start,Nt=[top,bottom].indexOf(Ht)>=0,Gt=Nt?"width":"height",tn=detectOverflow(at,{placement:Mt,boundary:vt,rootBoundary:wt,altBoundary:yt,padding:gt}),ln=Nt?Vt?right:left:Vt?bottom:top;Tt[Gt]>$t[Gt]&&(ln=getOppositePlacement(ln));var nn=getOppositePlacement(ln),on=[];if(dt&&on.push(tn[Ht]<=0),mt&&on.push(tn[ln]<=0,tn[nn]<=0),on.every(function(jt){return jt})){It=Mt,Rt=!1;break}Lt.set(Mt,on)}if(Rt)for(var rn=Ct?3:1,Jt=function(Bt){var Dt=At.find(function(zt){var Kt=Lt.get(zt);if(Kt)return Kt.slice(0,Bt).every(function(en){return en})});if(Dt)return It=Dt,"break"},Zt=rn;Zt>0;Zt--){var Wt=Jt(Zt);if(Wt==="break")break}at.placement!==It&&(at.modifiersData[ut]._skip=!0,at.placement=It,at.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(it,at,lt){return lt===void 0&&(lt={x:0,y:0}),{top:it.top-at.height-lt.y,right:it.right-at.width+lt.x,bottom:it.bottom-at.height+lt.y,left:it.left-at.width-lt.x}}function isAnySideFullyClipped(it){return[top,right,bottom,left].some(function(at){return it[at]>=0})}function hide(it){var at=it.state,lt=it.name,ut=at.rects.reference,ct=at.rects.popper,dt=at.modifiersData.preventOverflow,ft=detectOverflow(at,{elementContext:"reference"}),mt=detectOverflow(at,{altBoundary:!0}),pt=getSideOffsets(ft,ut),gt=getSideOffsets(mt,ct,dt),vt=isAnySideFullyClipped(pt),wt=isAnySideFullyClipped(gt);at.modifiersData[lt]={referenceClippingOffsets:pt,popperEscapeOffsets:gt,isReferenceHidden:vt,hasPopperEscaped:wt},at.attributes.popper=Object.assign({},at.attributes.popper,{"data-popper-reference-hidden":vt,"data-popper-escaped":wt})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(it,at,lt){var ut=getBasePlacement(it),ct=[left,top].indexOf(ut)>=0?-1:1,dt=typeof lt=="function"?lt(Object.assign({},at,{placement:it})):lt,ft=dt[0],mt=dt[1];return ft=ft||0,mt=(mt||0)*ct,[left,right].indexOf(ut)>=0?{x:mt,y:ft}:{x:ft,y:mt}}function offset(it){var at=it.state,lt=it.options,ut=it.name,ct=lt.offset,dt=ct===void 0?[0,0]:ct,ft=placements.reduce(function(vt,wt){return vt[wt]=distanceAndSkiddingToXY(wt,at.rects,dt),vt},{}),mt=ft[at.placement],pt=mt.x,gt=mt.y;at.modifiersData.popperOffsets!=null&&(at.modifiersData.popperOffsets.x+=pt,at.modifiersData.popperOffsets.y+=gt),at.modifiersData[ut]=ft}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(it){var at=it.state,lt=it.name;at.modifiersData[lt]=computeOffsets({reference:at.rects.reference,element:at.rects.popper,strategy:"absolute",placement:at.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(it){return it==="x"?"y":"x"}function preventOverflow(it){var at=it.state,lt=it.options,ut=it.name,ct=lt.mainAxis,dt=ct===void 0?!0:ct,ft=lt.altAxis,mt=ft===void 0?!1:ft,pt=lt.boundary,gt=lt.rootBoundary,vt=lt.altBoundary,wt=lt.padding,yt=lt.tether,bt=yt===void 0?!0:yt,Ct=lt.tetherOffset,Et=Ct===void 0?0:Ct,kt=detectOverflow(at,{boundary:pt,rootBoundary:gt,padding:wt,altBoundary:vt}),xt=getBasePlacement(at.placement),St=getVariation(at.placement),Ot=!St,At=getMainAxisFromPlacement(xt),Tt=getAltAxis(At),$t=at.modifiersData.popperOffsets,Lt=at.rects.reference,Rt=at.rects.popper,It=typeof Et=="function"?Et(Object.assign({},at.rects,{placement:at.placement})):Et,Ft=typeof It=="number"?{mainAxis:It,altAxis:It}:Object.assign({mainAxis:0,altAxis:0},It),Mt=at.modifiersData.offset?at.modifiersData.offset[at.placement]:null,Ht={x:0,y:0};if($t){if(dt){var Vt,Nt=At==="y"?top:left,Gt=At==="y"?bottom:right,tn=At==="y"?"height":"width",ln=$t[At],nn=ln+kt[Nt],on=ln-kt[Gt],rn=bt?-Rt[tn]/2:0,Jt=St===start?Lt[tn]:Rt[tn],Zt=St===start?-Rt[tn]:-Lt[tn],Wt=at.elements.arrow,jt=bt&&Wt?getLayoutRect(Wt):{width:0,height:0},Bt=at.modifiersData["arrow#persistent"]?at.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Dt=Bt[Nt],zt=Bt[Gt],Kt=within(0,Lt[tn],jt[tn]),en=Ot?Lt[tn]/2-rn-Kt-Dt-Ft.mainAxis:Jt-Kt-Dt-Ft.mainAxis,sn=Ot?-Lt[tn]/2+rn+Kt+zt+Ft.mainAxis:Zt+Kt+zt+Ft.mainAxis,cn=at.elements.arrow&&getOffsetParent(at.elements.arrow),bn=cn?At==="y"?cn.clientTop||0:cn.clientLeft||0:0,Tn=(Vt=Mt==null?void 0:Mt[At])!=null?Vt:0,kn=ln+en-Tn-bn,In=ln+sn-Tn,Hn=within(bt?min(nn,kn):nn,ln,bt?max(on,In):on);$t[At]=Hn,Ht[At]=Hn-ln}if(mt){var Fn,wn=At==="x"?top:left,Mn=At==="x"?bottom:right,Dn=$t[Tt],Un=Tt==="y"?"height":"width",Sn=Dn+kt[wn],On=Dn-kt[Mn],Cn=[top,left].indexOf(xt)!==-1,Pn=(Fn=Mt==null?void 0:Mt[Tt])!=null?Fn:0,Xn=Cn?Sn:Dn-Lt[Un]-Rt[Un]-Pn+Ft.altAxis,Qn=Cn?Dn+Lt[Un]+Rt[Un]-Pn-Ft.altAxis:On,sr=bt&&Cn?withinMaxClamp(Xn,Dn,Qn):within(bt?Xn:Sn,Dn,bt?Qn:On);$t[Tt]=sr,Ht[Tt]=sr-Dn}at.modifiersData[ut]=Ht}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(it){return{scrollLeft:it.scrollLeft,scrollTop:it.scrollTop}}function getNodeScroll(it){return it===getWindow(it)||!isHTMLElement(it)?getWindowScroll(it):getHTMLElementScroll(it)}function isElementScaled(it){var at=it.getBoundingClientRect(),lt=round(at.width)/it.offsetWidth||1,ut=round(at.height)/it.offsetHeight||1;return lt!==1||ut!==1}function getCompositeRect(it,at,lt){lt===void 0&&(lt=!1);var ut=isHTMLElement(at),ct=isHTMLElement(at)&&isElementScaled(at),dt=getDocumentElement(at),ft=getBoundingClientRect(it,ct,lt),mt={scrollLeft:0,scrollTop:0},pt={x:0,y:0};return(ut||!ut&&!lt)&&((getNodeName(at)!=="body"||isScrollParent(dt))&&(mt=getNodeScroll(at)),isHTMLElement(at)?(pt=getBoundingClientRect(at,!0),pt.x+=at.clientLeft,pt.y+=at.clientTop):dt&&(pt.x=getWindowScrollBarX(dt))),{x:ft.left+mt.scrollLeft-pt.x,y:ft.top+mt.scrollTop-pt.y,width:ft.width,height:ft.height}}function order(it){var at=new Map,lt=new Set,ut=[];it.forEach(function(dt){at.set(dt.name,dt)});function ct(dt){lt.add(dt.name);var ft=[].concat(dt.requires||[],dt.requiresIfExists||[]);ft.forEach(function(mt){if(!lt.has(mt)){var pt=at.get(mt);pt&&ct(pt)}}),ut.push(dt)}return it.forEach(function(dt){lt.has(dt.name)||ct(dt)}),ut}function orderModifiers(it){var at=order(it);return modifierPhases.reduce(function(lt,ut){return lt.concat(at.filter(function(ct){return ct.phase===ut}))},[])}function debounce(it){var at;return function(){return at||(at=new Promise(function(lt){Promise.resolve().then(function(){at=void 0,lt(it())})})),at}}function mergeByName(it){var at=it.reduce(function(lt,ut){var ct=lt[ut.name];return lt[ut.name]=ct?Object.assign({},ct,ut,{options:Object.assign({},ct.options,ut.options),data:Object.assign({},ct.data,ut.data)}):ut,lt},{});return Object.keys(at).map(function(lt){return at[lt]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var it=arguments.length,at=new Array(it),lt=0;lt<it;lt++)at[lt]=arguments[lt];return!at.some(function(ut){return!(ut&&typeof ut.getBoundingClientRect=="function")})}function popperGenerator(it){it===void 0&&(it={});var at=it,lt=at.defaultModifiers,ut=lt===void 0?[]:lt,ct=at.defaultOptions,dt=ct===void 0?DEFAULT_OPTIONS:ct;return function(mt,pt,gt){gt===void 0&&(gt=dt);var vt={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,dt),modifiersData:{},elements:{reference:mt,popper:pt},attributes:{},styles:{}},wt=[],yt=!1,bt={state:vt,setOptions:function(xt){var St=typeof xt=="function"?xt(vt.options):xt;Et(),vt.options=Object.assign({},dt,vt.options,St),vt.scrollParents={reference:isElement(mt)?listScrollParents(mt):mt.contextElement?listScrollParents(mt.contextElement):[],popper:listScrollParents(pt)};var Ot=orderModifiers(mergeByName([].concat(ut,vt.options.modifiers)));return vt.orderedModifiers=Ot.filter(function(At){return At.enabled}),Ct(),bt.update()},forceUpdate:function(){if(!yt){var xt=vt.elements,St=xt.reference,Ot=xt.popper;if(areValidElements(St,Ot)){vt.rects={reference:getCompositeRect(St,getOffsetParent(Ot),vt.options.strategy==="fixed"),popper:getLayoutRect(Ot)},vt.reset=!1,vt.placement=vt.options.placement,vt.orderedModifiers.forEach(function(Ft){return vt.modifiersData[Ft.name]=Object.assign({},Ft.data)});for(var At=0;At<vt.orderedModifiers.length;At++){if(vt.reset===!0){vt.reset=!1,At=-1;continue}var Tt=vt.orderedModifiers[At],$t=Tt.fn,Lt=Tt.options,Rt=Lt===void 0?{}:Lt,It=Tt.name;typeof $t=="function"&&(vt=$t({state:vt,options:Rt,name:It,instance:bt})||vt)}}}},update:debounce(function(){return new Promise(function(kt){bt.forceUpdate(),kt(vt)})}),destroy:function(){Et(),yt=!0}};if(!areValidElements(mt,pt))return bt;bt.setOptions(gt).then(function(kt){!yt&&gt.onFirstUpdate&&gt.onFirstUpdate(kt)});function Ct(){vt.orderedModifiers.forEach(function(kt){var xt=kt.name,St=kt.options,Ot=St===void 0?{}:St,At=kt.effect;if(typeof At=="function"){var Tt=At({state:vt,name:xt,instance:bt,options:Ot}),$t=function(){};wt.push(Tt||$t)}})}function Et(){wt.forEach(function(kt){return kt()}),wt=[]}return bt}}const createPopper=popperGenerator({defaultModifiers:[hide$1,popperOffsets$1,computeStyles$1,eventListeners,offset$1,flip$1,preventOverflow$1,arrow$1]}),_excluded$1=["enabled","placement","strategy","modifiers"];function _objectWithoutPropertiesLoose(it,at){if(it==null)return{};var lt={},ut=Object.keys(it),ct,dt;for(dt=0;dt<ut.length;dt++)ct=ut[dt],!(at.indexOf(ct)>=0)&&(lt[ct]=it[ct]);return lt}const disabledApplyStylesModifier={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},ariaDescribedByModifier={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:it})=>()=>{const{reference:at,popper:lt}=it.elements;if("removeAttribute"in at){const ut=(at.getAttribute("aria-describedby")||"").split(",").filter(ct=>ct.trim()!==lt.id);ut.length?at.setAttribute("aria-describedby",ut.join(",")):at.removeAttribute("aria-describedby")}},fn:({state:it})=>{var at;const{popper:lt,reference:ut}=it.elements,ct=(at=lt.getAttribute("role"))==null?void 0:at.toLowerCase();if(lt.id&&ct==="tooltip"&&"setAttribute"in ut){const dt=ut.getAttribute("aria-describedby");if(dt&&dt.split(",").indexOf(lt.id)!==-1)return;ut.setAttribute("aria-describedby",dt?`${dt},${lt.id}`:lt.id)}}},EMPTY_MODIFIERS=[];function usePopper(it,at,lt={}){let{enabled:ut=!0,placement:ct="bottom",strategy:dt="absolute",modifiers:ft=EMPTY_MODIFIERS}=lt,mt=_objectWithoutPropertiesLoose(lt,_excluded$1);const pt=reactExports.useRef(ft),gt=reactExports.useRef(),vt=reactExports.useCallback(()=>{var kt;(kt=gt.current)==null||kt.update()},[]),wt=reactExports.useCallback(()=>{var kt;(kt=gt.current)==null||kt.forceUpdate()},[]),[yt,bt]=useSafeState(reactExports.useState({placement:ct,update:vt,forceUpdate:wt,attributes:{},styles:{popper:{},arrow:{}}})),Ct=reactExports.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:kt})=>{const xt={},St={};Object.keys(kt.elements).forEach(Ot=>{xt[Ot]=kt.styles[Ot],St[Ot]=kt.attributes[Ot]}),bt({state:kt,styles:xt,attributes:St,update:vt,forceUpdate:wt,placement:kt.placement})}}),[vt,wt,bt]),Et=reactExports.useMemo(()=>(dequal(pt.current,ft)||(pt.current=ft),pt.current),[ft]);return reactExports.useEffect(()=>{!gt.current||!ut||gt.current.setOptions({placement:ct,strategy:dt,modifiers:[...Et,Ct,disabledApplyStylesModifier]})},[dt,ct,Ct,ut,Et]),reactExports.useEffect(()=>{if(!(!ut||it==null||at==null))return gt.current=createPopper(it,at,Object.assign({},mt,{placement:ct,strategy:dt,modifiers:[...Et,ariaDescribedByModifier,Ct]})),()=>{gt.current!=null&&(gt.current.destroy(),gt.current=void 0,bt(kt=>Object.assign({},kt,{attributes:{},styles:{popper:{}}})))}},[ut,it,at]),yt}function contains(it,at){if(it.contains)return it.contains(at);if(it.compareDocumentPosition)return it===at||!!(it.compareDocumentPosition(at)&16)}var warning=function(){},warning_1=warning;const warning$1=getDefaultExportFromCjs(warning_1),noop$2=()=>{};function isLeftClickEvent(it){return it.button===0}function isModifiedEvent(it){return!!(it.metaKey||it.altKey||it.ctrlKey||it.shiftKey)}const getRefTarget=it=>it&&("current"in it?it.current:it),InitialTriggerEvents={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function useClickOutside(it,at=noop$2,{disabled:lt,clickTrigger:ut="click"}={}){const ct=reactExports.useRef(!1),dt=reactExports.useRef(!1),ft=reactExports.useCallback(gt=>{const vt=getRefTarget(it);warning$1(!!vt,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),ct.current=!vt||isModifiedEvent(gt)||!isLeftClickEvent(gt)||!!contains(vt,gt.target)||dt.current,dt.current=!1},[it]),mt=useEventCallback(gt=>{const vt=getRefTarget(it);vt&&contains(vt,gt.target)&&(dt.current=!0)}),pt=useEventCallback(gt=>{ct.current||at(gt)});reactExports.useEffect(()=>{var gt,vt;if(lt||it==null)return;const wt=ownerDocument(getRefTarget(it)),yt=wt.defaultView||window;let bt=(gt=yt.event)!=null?gt:(vt=yt.parent)==null?void 0:vt.event,Ct=null;InitialTriggerEvents[ut]&&(Ct=listen(wt,InitialTriggerEvents[ut],mt,!0));const Et=listen(wt,ut,ft,!0),kt=listen(wt,ut,St=>{if(St===bt){bt=void 0;return}pt(St)});let xt=[];return"ontouchstart"in wt.documentElement&&(xt=[].slice.call(wt.body.children).map(St=>listen(St,"mousemove",noop$2))),()=>{Ct==null||Ct(),Et(),kt(),xt.forEach(St=>St())}},[it,lt,ut,ft,mt,pt])}function toModifierMap(it){const at={};return Array.isArray(it)?(it==null||it.forEach(lt=>{at[lt.name]=lt}),at):it||at}function toModifierArray(it={}){return Array.isArray(it)?it:Object.keys(it).map(at=>(it[at].name=at,it[at]))}function mergeOptionsWithPopperConfig({enabled:it,enableEvents:at,placement:lt,flip:ut,offset:ct,fixed:dt,containerPadding:ft,arrowElement:mt,popperConfig:pt={}}){var gt,vt,wt,yt,bt;const Ct=toModifierMap(pt.modifiers);return Object.assign({},pt,{placement:lt,enabled:it,strategy:dt?"fixed":pt.strategy,modifiers:toModifierArray(Object.assign({},Ct,{eventListeners:{enabled:at,options:(gt=Ct.eventListeners)==null?void 0:gt.options},preventOverflow:Object.assign({},Ct.preventOverflow,{options:ft?Object.assign({padding:ft},(vt=Ct.preventOverflow)==null?void 0:vt.options):(wt=Ct.preventOverflow)==null?void 0:wt.options}),offset:{options:Object.assign({offset:ct},(yt=Ct.offset)==null?void 0:yt.options)},arrow:Object.assign({},Ct.arrow,{enabled:!!mt,options:Object.assign({},(bt=Ct.arrow)==null?void 0:bt.options,{element:mt})}),flip:Object.assign({enabled:!!ut},Ct.flip)}))})}const Context=reactExports.createContext(canUseDOM?window:void 0);Context.Provider;function useWindow(){return reactExports.useContext(Context)}const resolveContainerRef=(it,at)=>canUseDOM?it==null?(at||ownerDocument()).body:(typeof it=="function"&&(it=it()),it&&"current"in it&&(it=it.current),it&&("nodeType"in it||it.getBoundingClientRect)?it:null):null;function useWaitForDOMRef(it,at){const lt=useWindow(),[ut,ct]=reactExports.useState(()=>resolveContainerRef(it,lt==null?void 0:lt.document));if(!ut){const dt=resolveContainerRef(it);dt&&ct(dt)}return reactExports.useEffect(()=>{at&&ut&&at(ut)},[at,ut]),reactExports.useEffect(()=>{const dt=resolveContainerRef(it);dt!==ut&&ct(dt)},[it,ut]),ut}function NoopTransition({children:it,in:at,onExited:lt,mountOnEnter:ut,unmountOnExit:ct}){const dt=reactExports.useRef(null),ft=reactExports.useRef(at),mt=useEventCallback(lt);reactExports.useEffect(()=>{at?ft.current=!0:mt(dt.current)},[at,mt]);const pt=useMergedRefs(dt,it.ref),gt=reactExports.cloneElement(it,{ref:pt});return at?gt:ct||!ft.current&&ut?null:gt}function useTransition({in:it,onTransition:at}){const lt=reactExports.useRef(null),ut=reactExports.useRef(!0),ct=useEventCallback(at);return useIsomorphicEffect(()=>{if(!lt.current)return;let dt=!1;return ct({in:it,element:lt.current,initial:ut.current,isStale:()=>dt}),()=>{dt=!0}},[it,ct]),useIsomorphicEffect(()=>(ut.current=!1,()=>{ut.current=!0}),[]),lt}function ImperativeTransition({children:it,in:at,onExited:lt,onEntered:ut,transition:ct}){const[dt,ft]=reactExports.useState(!at);at&&dt&&ft(!1);const mt=useTransition({in:!!at,onTransition:gt=>{const vt=()=>{gt.isStale()||(gt.in?ut==null||ut(gt.element,gt.initial):(ft(!0),lt==null||lt(gt.element)))};Promise.resolve(ct(gt)).then(vt,wt=>{throw gt.in||ft(!0),wt})}}),pt=useMergedRefs(mt,it.ref);return dt&&!at?null:reactExports.cloneElement(it,{ref:pt})}function renderTransition(it,at,lt){return it?jsxRuntimeExports.jsx(it,Object.assign({},lt)):at?jsxRuntimeExports.jsx(ImperativeTransition,Object.assign({},lt,{transition:at})):jsxRuntimeExports.jsx(NoopTransition,Object.assign({},lt))}function isEscKey(it){return it.code==="Escape"||it.keyCode===27}function hasClass(it,at){return it.classList?!!at&&it.classList.contains(at):(" "+(it.className.baseVal||it.className)+" ").indexOf(" "+at+" ")!==-1}const noop$1=()=>{};function useRootClose(it,at,{disabled:lt,clickTrigger:ut}={}){const ct=at||noop$1;useClickOutside(it,ct,{disabled:lt,clickTrigger:ut});const dt=useEventCallback(ft=>{isEscKey(ft)&&ct(ft)});reactExports.useEffect(()=>{if(lt||it==null)return;const ft=ownerDocument(getRefTarget(it));let mt=(ft.defaultView||window).event;const pt=listen(ft,"keyup",gt=>{if(gt===mt){mt=void 0;return}dt(gt)});return()=>{pt()}},[it,lt,dt])}const Overlay$2=reactExports.forwardRef((it,at)=>{const{flip:lt,offset:ut,placement:ct,containerPadding:dt,popperConfig:ft={},transition:mt,runTransition:pt}=it,[gt,vt]=useCallbackRef(),[wt,yt]=useCallbackRef(),bt=useMergedRefs(vt,at),Ct=useWaitForDOMRef(it.container),Et=useWaitForDOMRef(it.target),[kt,xt]=reactExports.useState(!it.show),St=usePopper(Et,gt,mergeOptionsWithPopperConfig({placement:ct,enableEvents:!!it.show,containerPadding:dt||5,flip:lt,offset:ut,arrowElement:wt,popperConfig:ft}));it.show&&kt&&xt(!1);const Ot=(...Mt)=>{xt(!0),it.onExited&&it.onExited(...Mt)},At=it.show||!kt;if(useRootClose(gt,it.onHide,{disabled:!it.rootClose||it.rootCloseDisabled,clickTrigger:it.rootCloseEvent}),!At)return null;const{onExit:Tt,onExiting:$t,onEnter:Lt,onEntering:Rt,onEntered:It}=it;let Ft=it.children(Object.assign({},St.attributes.popper,{style:St.styles.popper,ref:bt}),{popper:St,placement:ct,show:!!it.show,arrowProps:Object.assign({},St.attributes.arrow,{style:St.styles.arrow,ref:yt})});return Ft=renderTransition(mt,pt,{in:!!it.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Ft,onExit:Tt,onExiting:$t,onExited:Ot,onEnter:Lt,onEntering:Rt,onEntered:It}),Ct?ReactDOM.createPortal(Ft,Ct):null});Overlay$2.displayName="Overlay";const BaseOverlay=Overlay$2,PopoverHeader=reactExports.forwardRef(({className:it,bsPrefix:at,as:lt="div",...ut},ct)=>(at=useBootstrapPrefix(at,"popover-header"),jsxRuntimeExports.jsx(lt,{ref:ct,className:classNames(it,at),...ut})));PopoverHeader.displayName="PopoverHeader";const PopoverHeader$1=PopoverHeader,PopoverBody=reactExports.forwardRef(({className:it,bsPrefix:at,as:lt="div",...ut},ct)=>(at=useBootstrapPrefix(at,"popover-body"),jsxRuntimeExports.jsx(lt,{ref:ct,className:classNames(it,at),...ut})));PopoverBody.displayName="PopoverBody";const PopoverBody$1=PopoverBody;function getOverlayDirection(it,at){let lt=it;return it==="left"?lt=at?"end":"start":it==="right"&&(lt=at?"start":"end"),lt}function getInitialPopperStyles(it="absolute"){return{position:it,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Popover=reactExports.forwardRef(({bsPrefix:it,placement:at="right",className:lt,style:ut,children:ct,body:dt,arrowProps:ft,hasDoneInitialMeasure:mt,popper:pt,show:gt,...vt},wt)=>{const yt=useBootstrapPrefix(it,"popover"),bt=useIsRTL(),[Ct]=(at==null?void 0:at.split("-"))||[],Et=getOverlayDirection(Ct,bt);let kt=ut;return gt&&!mt&&(kt={...ut,...getInitialPopperStyles(pt==null?void 0:pt.strategy)}),jsxRuntimeExports.jsxs("div",{ref:wt,role:"tooltip",style:kt,"x-placement":Ct,className:classNames(lt,yt,Ct&&`bs-popover-${Et}`),...vt,children:[jsxRuntimeExports.jsx("div",{className:"popover-arrow",...ft}),dt?jsxRuntimeExports.jsx(PopoverBody$1,{children:ct}):ct]})}),Popover$1=Object.assign(Popover,{Header:PopoverHeader$1,Body:PopoverBody$1,POPPER_OFFSET:[0,8]}),Tooltip$1=reactExports.forwardRef(({bsPrefix:it,placement:at="right",className:lt,style:ut,children:ct,arrowProps:dt,hasDoneInitialMeasure:ft,popper:mt,show:pt,...gt},vt)=>{it=useBootstrapPrefix(it,"tooltip");const wt=useIsRTL(),[yt]=(at==null?void 0:at.split("-"))||[],bt=getOverlayDirection(yt,wt);let Ct=ut;return pt&&!ft&&(Ct={...ut,...getInitialPopperStyles(mt==null?void 0:mt.strategy)}),jsxRuntimeExports.jsxs("div",{ref:vt,style:Ct,role:"tooltip","x-placement":yt,className:classNames(lt,it,`bs-tooltip-${bt}`),...gt,children:[jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...dt}),jsxRuntimeExports.jsx("div",{className:`${it}-inner`,children:ct})]})});Tooltip$1.displayName="Tooltip";const BootstrapTooltip=Object.assign(Tooltip$1,{TOOLTIP_OFFSET:[0,6]});function useOverlayOffset(it){const at=reactExports.useRef(null),lt=useBootstrapPrefix(void 0,"popover"),ut=useBootstrapPrefix(void 0,"tooltip"),ct=reactExports.useMemo(()=>({name:"offset",options:{offset:()=>{if(it)return it;if(at.current){if(hasClass(at.current,lt))return Popover$1.POPPER_OFFSET;if(hasClass(at.current,ut))return BootstrapTooltip.TOOLTIP_OFFSET}return[0,0]}}}),[it,lt,ut]);return[at,[ct]]}function wrapRefs(it,at){const{ref:lt}=it,{ref:ut}=at;it.ref=lt.__wrapped||(lt.__wrapped=ct=>lt(safeFindDOMNode(ct))),at.ref=ut.__wrapped||(ut.__wrapped=ct=>ut(safeFindDOMNode(ct)))}const Overlay=reactExports.forwardRef(({children:it,transition:at=Fade$1,popperConfig:lt={},rootClose:ut=!1,placement:ct="top",show:dt=!1,...ft},mt)=>{const pt=reactExports.useRef({}),[gt,vt]=reactExports.useState(null),[wt,yt]=useOverlayOffset(ft.offset),bt=useMergedRefs(mt,wt),Ct=at===!0?Fade$1:at||void 0,Et=useEventCallback(kt=>{vt(kt),lt==null||lt.onFirstUpdate==null||lt.onFirstUpdate(kt)});return useIsomorphicEffect(()=>{gt&&ft.target&&(pt.current.scheduleUpdate==null||pt.current.scheduleUpdate())},[gt,ft.target]),reactExports.useEffect(()=>{dt||vt(null)},[dt]),jsxRuntimeExports.jsx(BaseOverlay,{...ft,ref:bt,popperConfig:{...lt,modifiers:yt.concat(lt.modifiers||[]),onFirstUpdate:Et},transition:Ct,rootClose:ut,placement:ct,show:dt,children:(kt,{arrowProps:xt,popper:St,show:Ot})=>{var At,Tt;wrapRefs(kt,xt);const $t=St==null?void 0:St.placement,Lt=Object.assign(pt.current,{state:St==null?void 0:St.state,scheduleUpdate:St==null?void 0:St.update,placement:$t,outOfBoundaries:(St==null||(At=St.state)==null||(Tt=At.modifiersData.hide)==null?void 0:Tt.isReferenceHidden)||!1,strategy:lt.strategy}),Rt=!!gt;return typeof it=="function"?it({...kt,placement:$t,show:Ot,...!at&&Ot&&{className:"show"},popper:Lt,arrowProps:xt,hasDoneInitialMeasure:Rt}):reactExports.cloneElement(it,{...kt,placement:$t,arrowProps:xt,popper:Lt,hasDoneInitialMeasure:Rt,className:classNames(it.props.className,!at&&Ot&&"show"),style:{...it.props.style,...kt.style}})}})});Overlay.displayName="Overlay";const Overlay$1=Overlay;function normalizeDelay(it){return it&&typeof it=="object"?it:{show:it,hide:it}}function handleMouseOverOut(it,at,lt){const[ut]=at,ct=ut.currentTarget,dt=ut.relatedTarget||ut.nativeEvent[lt];(!dt||dt!==ct)&&!contains(ct,dt)&&it(...at)}PropTypes.oneOf(["click","hover","focus"]);const OverlayTrigger=({trigger:it=["hover","focus"],overlay:at,children:lt,popperConfig:ut={},show:ct,defaultShow:dt=!1,onToggle:ft,delay:mt,placement:pt,flip:gt=pt&&pt.indexOf("auto")!==-1,...vt})=>{const wt=reactExports.useRef(null),yt=useMergedRefs(wt,lt.ref),bt=useTimeout(),Ct=reactExports.useRef(""),[Et,kt]=useUncontrolledProp(ct,dt,ft),xt=normalizeDelay(mt),{onFocus:St,onBlur:Ot,onClick:At}=typeof lt!="function"?reactExports.Children.only(lt).props:{},Tt=Gt=>{yt(safeFindDOMNode(Gt))},$t=reactExports.useCallback(()=>{if(bt.clear(),Ct.current="show",!xt.show){kt(!0);return}bt.set(()=>{Ct.current==="show"&&kt(!0)},xt.show)},[xt.show,kt,bt]),Lt=reactExports.useCallback(()=>{if(bt.clear(),Ct.current="hide",!xt.hide){kt(!1);return}bt.set(()=>{Ct.current==="hide"&&kt(!1)},xt.hide)},[xt.hide,kt,bt]),Rt=reactExports.useCallback((...Gt)=>{$t(),St==null||St(...Gt)},[$t,St]),It=reactExports.useCallback((...Gt)=>{Lt(),Ot==null||Ot(...Gt)},[Lt,Ot]),Ft=reactExports.useCallback((...Gt)=>{kt(!Et),At==null||At(...Gt)},[At,kt,Et]),Mt=reactExports.useCallback((...Gt)=>{handleMouseOverOut($t,Gt,"fromElement")},[$t]),Ht=reactExports.useCallback((...Gt)=>{handleMouseOverOut(Lt,Gt,"toElement")},[Lt]),Vt=it==null?[]:[].concat(it),Nt={ref:Tt};return Vt.indexOf("click")!==-1&&(Nt.onClick=Ft),Vt.indexOf("focus")!==-1&&(Nt.onFocus=Rt,Nt.onBlur=It),Vt.indexOf("hover")!==-1&&(Nt.onMouseOver=Mt,Nt.onMouseOut=Ht),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[typeof lt=="function"?lt(Nt):reactExports.cloneElement(lt,Nt),jsxRuntimeExports.jsx(Overlay$1,{...vt,show:Et,onHide:Lt,flip:gt,placement:pt,popperConfig:ut,target:wt.current,children:at})]})},OverlayTrigger$1=OverlayTrigger,Row=reactExports.forwardRef(({bsPrefix:it,className:at,as:lt="div",...ut},ct)=>{const dt=useBootstrapPrefix(it,"row"),ft=useBootstrapBreakpoints(),mt=useBootstrapMinBreakpoint(),pt=`${dt}-cols`,gt=[];return ft.forEach(vt=>{const wt=ut[vt];delete ut[vt];let yt;wt!=null&&typeof wt=="object"?{cols:yt}=wt:yt=wt;const bt=vt!==mt?`-${vt}`:"";yt!=null&&gt.push(`${pt}${bt}-${yt}`)}),jsxRuntimeExports.jsx(lt,{ref:ct,...ut,className:classNames(at,dt,...gt)})});Row.displayName="Row";const Row$1=Row,Spinner=reactExports.forwardRef(({bsPrefix:it,variant:at,animation:lt="border",size:ut,as:ct="div",className:dt,...ft},mt)=>{it=useBootstrapPrefix(it,"spinner");const pt=`${it}-${lt}`;return jsxRuntimeExports.jsx(ct,{ref:mt,...ft,className:classNames(dt,pt,ut&&`${pt}-${ut}`,at&&`text-${at}`)})});Spinner.displayName="Spinner";const Spinner$1=Spinner,sidebar="_sidebar_1udmp_31",h6="_h6_1udmp_318",h5="_h5_1udmp_318",h4="_h4_1udmp_318",h3="_h3_1udmp_318",h2="_h2_1udmp_318",h1="_h1_1udmp_318",small="_small_1udmp_424",mark="_mark_1udmp_428",lead="_lead_1udmp_692",initialism="_initialism_1udmp_780",blockquote="_blockquote_1udmp_785",figure="_figure_1udmp_817",container$1="_container_1udmp_831",row="_row_1udmp_881",col="_col_1udmp_899",table="_table_1udmp_1952",btn="_btn_1udmp_2534",active="_active_1udmp_40",show="_show_1udmp_3051",disabled="_disabled_1udmp_3059",fade="_fade_1udmp_3375",collapse="_collapse_1udmp_3387",collapsing="_collapsing_1udmp_3391",dropup="_dropup_1udmp_3412",dropend="_dropend_1udmp_3413",dropdown="_dropdown_1udmp_2786",dropstart="_dropstart_1udmp_3415",nav="_nav_1udmp_3829",navbar="_navbar_1udmp_3964",offcanvas="_offcanvas_1udmp_4119",card="_card_1udmp_4391",accordion="_accordion_1udmp_4578",collapsed="_collapsed_1udmp_4623",breadcrumb="_breadcrumb_1udmp_4718",pagination="_pagination_1udmp_4750",badge="_badge_1udmp_4844",alert="_alert_1udmp_4871",progress="_progress_1udmp_4971",toast="_toast_1udmp_5414",showing="_showing_1udmp_5441",modal="_modal_1udmp_5481",tooltip="_tooltip_1udmp_5773",popover="_popover_1udmp_5875",carousel="_carousel_1udmp_6031",hiding="_hiding_1udmp_6376",placeholder="_placeholder_1udmp_6810",clearfix="_clearfix_1udmp_6855",bi="_bi_1udmp_6995",ratio="_ratio_1udmp_7012",hstack="_hstack_1udmp_7133",vstack="_vstack_1udmp_7140",vr="_vr_1udmp_7179",shadow="_shadow_1udmp_7356",border="_border_1udmp_7484",rounded="_rounded_1udmp_8916",visible="_visible_1udmp_9132",invisible="_invisible_1udmp_9136",dash="_dash_1udmp_1",slideInFromLeft="_slideInFromLeft_1udmp_1",styles$6={"linear-background":"_linear-background_1udmp_2",sidebar,"bg-custom":"_bg-custom_1udmp_36","active-custom":"_active-custom_1udmp_40","text-custom":"_text-custom_1udmp_45","swal-footer":"_swal-footer_1udmp_49","hover-delete":"_hover-delete_1udmp_53","first-letter-capital":"_first-letter-capital_1udmp_57","no-print":"_no-print_1udmp_72",h6,h5,h4,h3,h2,h1,small,mark,lead,"display-1":"_display-1_1udmp_697","display-2":"_display-2_1udmp_708","display-3":"_display-3_1udmp_719","display-4":"_display-4_1udmp_730","display-5":"_display-5_1udmp_741","display-6":"_display-6_1udmp_752","list-unstyled":"_list-unstyled_1udmp_763","list-inline":"_list-inline_1udmp_768","list-inline-item":"_list-inline-item_1udmp_773",initialism,blockquote,"blockquote-footer":"_blockquote-footer_1udmp_793","img-fluid":"_img-fluid_1udmp_803","img-thumbnail":"_img-thumbnail_1udmp_808",figure,"figure-img":"_figure-img_1udmp_821","figure-caption":"_figure-caption_1udmp_826",container:container$1,"container-fluid":"_container-fluid_1udmp_832","container-xxl":"_container-xxl_1udmp_833","container-xl":"_container-xl_1udmp_834","container-lg":"_container-lg_1udmp_835","container-md":"_container-md_1udmp_836","container-sm":"_container-sm_1udmp_837",row,col,"row-cols-auto":"_row-cols-auto_1udmp_903","row-cols-1":"_row-cols-1_1udmp_908","row-cols-2":"_row-cols-2_1udmp_913","row-cols-3":"_row-cols-3_1udmp_918","row-cols-4":"_row-cols-4_1udmp_923","row-cols-5":"_row-cols-5_1udmp_928","row-cols-6":"_row-cols-6_1udmp_933","col-auto":"_col-auto_1udmp_938","col-1":"_col-1_1udmp_943","col-2":"_col-2_1udmp_948","col-3":"_col-3_1udmp_953","col-4":"_col-4_1udmp_958","col-5":"_col-5_1udmp_963","col-6":"_col-6_1udmp_968","col-7":"_col-7_1udmp_973","col-8":"_col-8_1udmp_978","col-9":"_col-9_1udmp_983","col-10":"_col-10_1udmp_988","col-11":"_col-11_1udmp_993","col-12":"_col-12_1udmp_998","offset-1":"_offset-1_1udmp_1003","offset-2":"_offset-2_1udmp_1007","offset-3":"_offset-3_1udmp_1011","offset-4":"_offset-4_1udmp_1015","offset-5":"_offset-5_1udmp_1019","offset-6":"_offset-6_1udmp_1023","offset-7":"_offset-7_1udmp_1027","offset-8":"_offset-8_1udmp_1031","offset-9":"_offset-9_1udmp_1035","offset-10":"_offset-10_1udmp_1039","offset-11":"_offset-11_1udmp_1043","g-0":"_g-0_1udmp_1047","gx-0":"_gx-0_1udmp_1048","gy-0":"_gy-0_1udmp_1053","g-1":"_g-1_1udmp_1057","gx-1":"_gx-1_1udmp_1058","gy-1":"_gy-1_1udmp_1063","g-2":"_g-2_1udmp_1067","gx-2":"_gx-2_1udmp_1068","gy-2":"_gy-2_1udmp_1073","g-3":"_g-3_1udmp_1077","gx-3":"_gx-3_1udmp_1078","gy-3":"_gy-3_1udmp_1083","g-4":"_g-4_1udmp_1087","gx-4":"_gx-4_1udmp_1088","gy-4":"_gy-4_1udmp_1093","g-5":"_g-5_1udmp_1097","gx-5":"_gx-5_1udmp_1098","gy-5":"_gy-5_1udmp_1103","col-sm":"_col-sm_1udmp_1108","row-cols-sm-auto":"_row-cols-sm-auto_1udmp_1111","row-cols-sm-1":"_row-cols-sm-1_1udmp_1115","row-cols-sm-2":"_row-cols-sm-2_1udmp_1119","row-cols-sm-3":"_row-cols-sm-3_1udmp_1123","row-cols-sm-4":"_row-cols-sm-4_1udmp_1127","row-cols-sm-5":"_row-cols-sm-5_1udmp_1131","row-cols-sm-6":"_row-cols-sm-6_1udmp_1135","col-sm-auto":"_col-sm-auto_1udmp_1139","col-sm-1":"_col-sm-1_1udmp_1143","col-sm-2":"_col-sm-2_1udmp_1147","col-sm-3":"_col-sm-3_1udmp_1151","col-sm-4":"_col-sm-4_1udmp_1155","col-sm-5":"_col-sm-5_1udmp_1159","col-sm-6":"_col-sm-6_1udmp_1163","col-sm-7":"_col-sm-7_1udmp_1167","col-sm-8":"_col-sm-8_1udmp_1171","col-sm-9":"_col-sm-9_1udmp_1175","col-sm-10":"_col-sm-10_1udmp_1179","col-sm-11":"_col-sm-11_1udmp_1183","col-sm-12":"_col-sm-12_1udmp_1187","offset-sm-0":"_offset-sm-0_1udmp_1191","offset-sm-1":"_offset-sm-1_1udmp_1194","offset-sm-2":"_offset-sm-2_1udmp_1197","offset-sm-3":"_offset-sm-3_1udmp_1200","offset-sm-4":"_offset-sm-4_1udmp_1203","offset-sm-5":"_offset-sm-5_1udmp_1206","offset-sm-6":"_offset-sm-6_1udmp_1209","offset-sm-7":"_offset-sm-7_1udmp_1212","offset-sm-8":"_offset-sm-8_1udmp_1215","offset-sm-9":"_offset-sm-9_1udmp_1218","offset-sm-10":"_offset-sm-10_1udmp_1221","offset-sm-11":"_offset-sm-11_1udmp_1224","g-sm-0":"_g-sm-0_1udmp_1227","gx-sm-0":"_gx-sm-0_1udmp_1228","gy-sm-0":"_gy-sm-0_1udmp_1232","g-sm-1":"_g-sm-1_1udmp_1235","gx-sm-1":"_gx-sm-1_1udmp_1236","gy-sm-1":"_gy-sm-1_1udmp_1240","g-sm-2":"_g-sm-2_1udmp_1243","gx-sm-2":"_gx-sm-2_1udmp_1244","gy-sm-2":"_gy-sm-2_1udmp_1248","g-sm-3":"_g-sm-3_1udmp_1251","gx-sm-3":"_gx-sm-3_1udmp_1252","gy-sm-3":"_gy-sm-3_1udmp_1256","g-sm-4":"_g-sm-4_1udmp_1259","gx-sm-4":"_gx-sm-4_1udmp_1260","gy-sm-4":"_gy-sm-4_1udmp_1264","g-sm-5":"_g-sm-5_1udmp_1267","gx-sm-5":"_gx-sm-5_1udmp_1268","gy-sm-5":"_gy-sm-5_1udmp_1272","col-md":"_col-md_1udmp_1277","row-cols-md-auto":"_row-cols-md-auto_1udmp_1280","row-cols-md-1":"_row-cols-md-1_1udmp_1284","row-cols-md-2":"_row-cols-md-2_1udmp_1288","row-cols-md-3":"_row-cols-md-3_1udmp_1292","row-cols-md-4":"_row-cols-md-4_1udmp_1296","row-cols-md-5":"_row-cols-md-5_1udmp_1300","row-cols-md-6":"_row-cols-md-6_1udmp_1304","col-md-auto":"_col-md-auto_1udmp_1308","col-md-1":"_col-md-1_1udmp_1312","col-md-2":"_col-md-2_1udmp_1316","col-md-3":"_col-md-3_1udmp_1320","col-md-4":"_col-md-4_1udmp_1324","col-md-5":"_col-md-5_1udmp_1328","col-md-6":"_col-md-6_1udmp_1332","col-md-7":"_col-md-7_1udmp_1336","col-md-8":"_col-md-8_1udmp_1340","col-md-9":"_col-md-9_1udmp_1344","col-md-10":"_col-md-10_1udmp_1348","col-md-11":"_col-md-11_1udmp_1352","col-md-12":"_col-md-12_1udmp_1356","offset-md-0":"_offset-md-0_1udmp_1360","offset-md-1":"_offset-md-1_1udmp_1363","offset-md-2":"_offset-md-2_1udmp_1366","offset-md-3":"_offset-md-3_1udmp_1369","offset-md-4":"_offset-md-4_1udmp_1372","offset-md-5":"_offset-md-5_1udmp_1375","offset-md-6":"_offset-md-6_1udmp_1378","offset-md-7":"_offset-md-7_1udmp_1381","offset-md-8":"_offset-md-8_1udmp_1384","offset-md-9":"_offset-md-9_1udmp_1387","offset-md-10":"_offset-md-10_1udmp_1390","offset-md-11":"_offset-md-11_1udmp_1393","g-md-0":"_g-md-0_1udmp_1396","gx-md-0":"_gx-md-0_1udmp_1397","gy-md-0":"_gy-md-0_1udmp_1401","g-md-1":"_g-md-1_1udmp_1404","gx-md-1":"_gx-md-1_1udmp_1405","gy-md-1":"_gy-md-1_1udmp_1409","g-md-2":"_g-md-2_1udmp_1412","gx-md-2":"_gx-md-2_1udmp_1413","gy-md-2":"_gy-md-2_1udmp_1417","g-md-3":"_g-md-3_1udmp_1420","gx-md-3":"_gx-md-3_1udmp_1421","gy-md-3":"_gy-md-3_1udmp_1425","g-md-4":"_g-md-4_1udmp_1428","gx-md-4":"_gx-md-4_1udmp_1429","gy-md-4":"_gy-md-4_1udmp_1433","g-md-5":"_g-md-5_1udmp_1436","gx-md-5":"_gx-md-5_1udmp_1437","gy-md-5":"_gy-md-5_1udmp_1441","col-lg":"_col-lg_1udmp_1446","row-cols-lg-auto":"_row-cols-lg-auto_1udmp_1449","row-cols-lg-1":"_row-cols-lg-1_1udmp_1453","row-cols-lg-2":"_row-cols-lg-2_1udmp_1457","row-cols-lg-3":"_row-cols-lg-3_1udmp_1461","row-cols-lg-4":"_row-cols-lg-4_1udmp_1465","row-cols-lg-5":"_row-cols-lg-5_1udmp_1469","row-cols-lg-6":"_row-cols-lg-6_1udmp_1473","col-lg-auto":"_col-lg-auto_1udmp_1477","col-lg-1":"_col-lg-1_1udmp_1481","col-lg-2":"_col-lg-2_1udmp_1485","col-lg-3":"_col-lg-3_1udmp_1489","col-lg-4":"_col-lg-4_1udmp_1493","col-lg-5":"_col-lg-5_1udmp_1497","col-lg-6":"_col-lg-6_1udmp_1501","col-lg-7":"_col-lg-7_1udmp_1505","col-lg-8":"_col-lg-8_1udmp_1509","col-lg-9":"_col-lg-9_1udmp_1513","col-lg-10":"_col-lg-10_1udmp_1517","col-lg-11":"_col-lg-11_1udmp_1521","col-lg-12":"_col-lg-12_1udmp_1525","offset-lg-0":"_offset-lg-0_1udmp_1529","offset-lg-1":"_offset-lg-1_1udmp_1532","offset-lg-2":"_offset-lg-2_1udmp_1535","offset-lg-3":"_offset-lg-3_1udmp_1538","offset-lg-4":"_offset-lg-4_1udmp_1541","offset-lg-5":"_offset-lg-5_1udmp_1544","offset-lg-6":"_offset-lg-6_1udmp_1547","offset-lg-7":"_offset-lg-7_1udmp_1550","offset-lg-8":"_offset-lg-8_1udmp_1553","offset-lg-9":"_offset-lg-9_1udmp_1556","offset-lg-10":"_offset-lg-10_1udmp_1559","offset-lg-11":"_offset-lg-11_1udmp_1562","g-lg-0":"_g-lg-0_1udmp_1565","gx-lg-0":"_gx-lg-0_1udmp_1566","gy-lg-0":"_gy-lg-0_1udmp_1570","g-lg-1":"_g-lg-1_1udmp_1573","gx-lg-1":"_gx-lg-1_1udmp_1574","gy-lg-1":"_gy-lg-1_1udmp_1578","g-lg-2":"_g-lg-2_1udmp_1581","gx-lg-2":"_gx-lg-2_1udmp_1582","gy-lg-2":"_gy-lg-2_1udmp_1586","g-lg-3":"_g-lg-3_1udmp_1589","gx-lg-3":"_gx-lg-3_1udmp_1590","gy-lg-3":"_gy-lg-3_1udmp_1594","g-lg-4":"_g-lg-4_1udmp_1597","gx-lg-4":"_gx-lg-4_1udmp_1598","gy-lg-4":"_gy-lg-4_1udmp_1602","g-lg-5":"_g-lg-5_1udmp_1605","gx-lg-5":"_gx-lg-5_1udmp_1606","gy-lg-5":"_gy-lg-5_1udmp_1610","col-xl":"_col-xl_1udmp_1615","row-cols-xl-auto":"_row-cols-xl-auto_1udmp_1618","row-cols-xl-1":"_row-cols-xl-1_1udmp_1622","row-cols-xl-2":"_row-cols-xl-2_1udmp_1626","row-cols-xl-3":"_row-cols-xl-3_1udmp_1630","row-cols-xl-4":"_row-cols-xl-4_1udmp_1634","row-cols-xl-5":"_row-cols-xl-5_1udmp_1638","row-cols-xl-6":"_row-cols-xl-6_1udmp_1642","col-xl-auto":"_col-xl-auto_1udmp_1646","col-xl-1":"_col-xl-1_1udmp_1650","col-xl-2":"_col-xl-2_1udmp_1654","col-xl-3":"_col-xl-3_1udmp_1658","col-xl-4":"_col-xl-4_1udmp_1662","col-xl-5":"_col-xl-5_1udmp_1666","col-xl-6":"_col-xl-6_1udmp_1670","col-xl-7":"_col-xl-7_1udmp_1674","col-xl-8":"_col-xl-8_1udmp_1678","col-xl-9":"_col-xl-9_1udmp_1682","col-xl-10":"_col-xl-10_1udmp_1686","col-xl-11":"_col-xl-11_1udmp_1690","col-xl-12":"_col-xl-12_1udmp_1694","offset-xl-0":"_offset-xl-0_1udmp_1698","offset-xl-1":"_offset-xl-1_1udmp_1701","offset-xl-2":"_offset-xl-2_1udmp_1704","offset-xl-3":"_offset-xl-3_1udmp_1707","offset-xl-4":"_offset-xl-4_1udmp_1710","offset-xl-5":"_offset-xl-5_1udmp_1713","offset-xl-6":"_offset-xl-6_1udmp_1716","offset-xl-7":"_offset-xl-7_1udmp_1719","offset-xl-8":"_offset-xl-8_1udmp_1722","offset-xl-9":"_offset-xl-9_1udmp_1725","offset-xl-10":"_offset-xl-10_1udmp_1728","offset-xl-11":"_offset-xl-11_1udmp_1731","g-xl-0":"_g-xl-0_1udmp_1734","gx-xl-0":"_gx-xl-0_1udmp_1735","gy-xl-0":"_gy-xl-0_1udmp_1739","g-xl-1":"_g-xl-1_1udmp_1742","gx-xl-1":"_gx-xl-1_1udmp_1743","gy-xl-1":"_gy-xl-1_1udmp_1747","g-xl-2":"_g-xl-2_1udmp_1750","gx-xl-2":"_gx-xl-2_1udmp_1751","gy-xl-2":"_gy-xl-2_1udmp_1755","g-xl-3":"_g-xl-3_1udmp_1758","gx-xl-3":"_gx-xl-3_1udmp_1759","gy-xl-3":"_gy-xl-3_1udmp_1763","g-xl-4":"_g-xl-4_1udmp_1766","gx-xl-4":"_gx-xl-4_1udmp_1767","gy-xl-4":"_gy-xl-4_1udmp_1771","g-xl-5":"_g-xl-5_1udmp_1774","gx-xl-5":"_gx-xl-5_1udmp_1775","gy-xl-5":"_gy-xl-5_1udmp_1779","col-xxl":"_col-xxl_1udmp_1784","row-cols-xxl-auto":"_row-cols-xxl-auto_1udmp_1787","row-cols-xxl-1":"_row-cols-xxl-1_1udmp_1791","row-cols-xxl-2":"_row-cols-xxl-2_1udmp_1795","row-cols-xxl-3":"_row-cols-xxl-3_1udmp_1799","row-cols-xxl-4":"_row-cols-xxl-4_1udmp_1803","row-cols-xxl-5":"_row-cols-xxl-5_1udmp_1807","row-cols-xxl-6":"_row-cols-xxl-6_1udmp_1811","col-xxl-auto":"_col-xxl-auto_1udmp_1815","col-xxl-1":"_col-xxl-1_1udmp_1819","col-xxl-2":"_col-xxl-2_1udmp_1823","col-xxl-3":"_col-xxl-3_1udmp_1827","col-xxl-4":"_col-xxl-4_1udmp_1831","col-xxl-5":"_col-xxl-5_1udmp_1835","col-xxl-6":"_col-xxl-6_1udmp_1839","col-xxl-7":"_col-xxl-7_1udmp_1843","col-xxl-8":"_col-xxl-8_1udmp_1847","col-xxl-9":"_col-xxl-9_1udmp_1851","col-xxl-10":"_col-xxl-10_1udmp_1855","col-xxl-11":"_col-xxl-11_1udmp_1859","col-xxl-12":"_col-xxl-12_1udmp_1863","offset-xxl-0":"_offset-xxl-0_1udmp_1867","offset-xxl-1":"_offset-xxl-1_1udmp_1870","offset-xxl-2":"_offset-xxl-2_1udmp_1873","offset-xxl-3":"_offset-xxl-3_1udmp_1876","offset-xxl-4":"_offset-xxl-4_1udmp_1879","offset-xxl-5":"_offset-xxl-5_1udmp_1882","offset-xxl-6":"_offset-xxl-6_1udmp_1885","offset-xxl-7":"_offset-xxl-7_1udmp_1888","offset-xxl-8":"_offset-xxl-8_1udmp_1891","offset-xxl-9":"_offset-xxl-9_1udmp_1894","offset-xxl-10":"_offset-xxl-10_1udmp_1897","offset-xxl-11":"_offset-xxl-11_1udmp_1900","g-xxl-0":"_g-xxl-0_1udmp_1903","gx-xxl-0":"_gx-xxl-0_1udmp_1904","gy-xxl-0":"_gy-xxl-0_1udmp_1908","g-xxl-1":"_g-xxl-1_1udmp_1911","gx-xxl-1":"_gx-xxl-1_1udmp_1912","gy-xxl-1":"_gy-xxl-1_1udmp_1916","g-xxl-2":"_g-xxl-2_1udmp_1919","gx-xxl-2":"_gx-xxl-2_1udmp_1920","gy-xxl-2":"_gy-xxl-2_1udmp_1924","g-xxl-3":"_g-xxl-3_1udmp_1927","gx-xxl-3":"_gx-xxl-3_1udmp_1928","gy-xxl-3":"_gy-xxl-3_1udmp_1932","g-xxl-4":"_g-xxl-4_1udmp_1935","gx-xxl-4":"_gx-xxl-4_1udmp_1936","gy-xxl-4":"_gy-xxl-4_1udmp_1940","g-xxl-5":"_g-xxl-5_1udmp_1943","gx-xxl-5":"_gx-xxl-5_1udmp_1944","gy-xxl-5":"_gy-xxl-5_1udmp_1948",table,"table-group-divider":"_table-group-divider_1udmp_1986","caption-top":"_caption-top_1udmp_1990","table-sm":"_table-sm_1udmp_1994","table-bordered":"_table-bordered_1udmp_1998","table-borderless":"_table-borderless_1udmp_2005","table-striped":"_table-striped_1udmp_2012","table-striped-columns":"_table-striped-columns_1udmp_2017","table-active":"_table-active_1udmp_2022","table-hover":"_table-hover_1udmp_2027","table-primary":"_table-primary_1udmp_2032","table-secondary":"_table-secondary_1udmp_2046","table-success":"_table-success_1udmp_2060","table-info":"_table-info_1udmp_2074","table-warning":"_table-warning_1udmp_2088","table-danger":"_table-danger_1udmp_2102","table-light":"_table-light_1udmp_2116","table-dark":"_table-dark_1udmp_2130","table-responsive":"_table-responsive_1udmp_2144","table-responsive-sm":"_table-responsive-sm_1udmp_2150","table-responsive-md":"_table-responsive-md_1udmp_2156","table-responsive-lg":"_table-responsive-lg_1udmp_2162","table-responsive-xl":"_table-responsive-xl_1udmp_2168","table-responsive-xxl":"_table-responsive-xxl_1udmp_2174","form-label":"_form-label_1udmp_2179","col-form-label":"_col-form-label_1udmp_2183","col-form-label-lg":"_col-form-label-lg_1udmp_2191","col-form-label-sm":"_col-form-label-sm_1udmp_2197","form-text":"_form-text_1udmp_2203","form-control":"_form-control_1udmp_2209","form-control-plaintext":"_form-control-plaintext_1udmp_2282","form-control-sm":"_form-control-sm_1udmp_2296","form-control-lg":"_form-control-lg_1udmp_2296","form-control-color":"_form-control-color_1udmp_2335","form-select":"_form-select_1udmp_2358","form-select-sm":"_form-select-sm_1udmp_2399","form-select-lg":"_form-select-lg_1udmp_2407","form-check":"_form-check_1udmp_2419","form-check-input":"_form-check-input_1udmp_2425","form-check-reverse":"_form-check-reverse_1udmp_2430","form-check-label":"_form-check-label_1udmp_2491","form-switch":"_form-switch_1udmp_2496","form-check-inline":"_form-check-inline_1udmp_2529","btn-check":"_btn-check_1udmp_2534",btn,"form-range":"_form-range_1udmp_2549","form-floating":"_form-floating_1udmp_2631","input-group":"_input-group_1udmp_2720","input-group-text":"_input-group-text_1udmp_2748","input-group-lg":"_input-group-lg_1udmp_2763","input-group-sm":"_input-group-sm_1udmp_2772","has-validation":"_has-validation_1udmp_2786","dropdown-toggle":"_dropdown-toggle_1udmp_2786","dropdown-menu":"_dropdown-menu_1udmp_2786","valid-tooltip":"_valid-tooltip_1udmp_2800","valid-feedback":"_valid-feedback_1udmp_2800","invalid-tooltip":"_invalid-tooltip_1udmp_2800","invalid-feedback":"_invalid-feedback_1udmp_2800","was-validated":"_was-validated_1udmp_2833","is-valid":"_is-valid_1udmp_2835","is-invalid":"_is-invalid_1udmp_2925",active,show,disabled,"btn-primary":"_btn-primary_1udmp_3067","btn-secondary":"_btn-secondary_1udmp_3084","btn-success":"_btn-success_1udmp_3101","btn-info":"_btn-info_1udmp_3118","btn-warning":"_btn-warning_1udmp_3135","btn-danger":"_btn-danger_1udmp_3152","btn-light":"_btn-light_1udmp_3169","btn-dark":"_btn-dark_1udmp_3186","btn-outline-primary":"_btn-outline-primary_1udmp_3203","btn-outline-secondary":"_btn-outline-secondary_1udmp_3220","btn-outline-success":"_btn-outline-success_1udmp_3237","btn-outline-info":"_btn-outline-info_1udmp_3254","btn-outline-warning":"_btn-outline-warning_1udmp_3271","btn-outline-danger":"_btn-outline-danger_1udmp_3288","btn-outline-light":"_btn-outline-light_1udmp_3305","btn-outline-dark":"_btn-outline-dark_1udmp_3322","btn-link":"_btn-link_1udmp_3339","btn-lg":"_btn-lg_1udmp_3361","btn-group-lg":"_btn-group-lg_1udmp_3361","btn-sm":"_btn-sm_1udmp_3368","btn-group-sm":"_btn-group-sm_1udmp_3368",fade,collapse,collapsing,"collapse-horizontal":"_collapse-horizontal_1udmp_3401",dropup,dropend,dropdown,dropstart,"dropup-center":"_dropup-center_1udmp_3416","dropdown-center":"_dropdown-center_1udmp_3417","dropdown-menu-start":"_dropdown-menu-start_1udmp_3486","dropdown-menu-end":"_dropdown-menu-end_1udmp_3494","dropdown-menu-sm-start":"_dropdown-menu-sm-start_1udmp_3503","dropdown-menu-sm-end":"_dropdown-menu-sm-end_1udmp_3510","dropdown-menu-md-start":"_dropdown-menu-md-start_1udmp_3519","dropdown-menu-md-end":"_dropdown-menu-md-end_1udmp_3526","dropdown-menu-lg-start":"_dropdown-menu-lg-start_1udmp_3535","dropdown-menu-lg-end":"_dropdown-menu-lg-end_1udmp_3542","dropdown-menu-xl-start":"_dropdown-menu-xl-start_1udmp_3551","dropdown-menu-xl-end":"_dropdown-menu-xl-end_1udmp_3558","dropdown-menu-xxl-start":"_dropdown-menu-xxl-start_1udmp_3567","dropdown-menu-xxl-end":"_dropdown-menu-xxl-end_1udmp_3574","dropdown-divider":"_dropdown-divider_1udmp_3658","dropdown-item":"_dropdown-item_1udmp_3666","dropdown-header":"_dropdown-header_1udmp_3699","dropdown-item-text":"_dropdown-item-text_1udmp_3708","dropdown-menu-dark":"_dropdown-menu-dark_1udmp_3714","btn-group":"_btn-group_1udmp_3361","btn-group-vertical":"_btn-group-vertical_1udmp_3730","btn-toolbar":"_btn-toolbar_1udmp_3755","dropdown-toggle-split":"_dropdown-toggle-split_1udmp_3772",nav,"nav-link":"_nav-link_1udmp_3843","nav-tabs":"_nav-tabs_1udmp_3872","nav-item":"_nav-item_1udmp_3893","nav-pills":"_nav-pills_1udmp_3904","nav-underline":"_nav-underline_1udmp_3918","nav-fill":"_nav-fill_1udmp_3939","nav-justified":"_nav-justified_1udmp_3945","tab-content":"_tab-content_1udmp_3957","tab-pane":"_tab-pane_1udmp_3957",navbar,"navbar-brand":"_navbar-brand_1udmp_4004","navbar-nav":"_navbar-nav_1udmp_4017","navbar-text":"_navbar-text_1udmp_4037","navbar-collapse":"_navbar-collapse_1udmp_4048","navbar-toggler":"_navbar-toggler_1udmp_4054","navbar-toggler-icon":"_navbar-toggler-icon_1udmp_4078","navbar-nav-scroll":"_navbar-nav-scroll_1udmp_4089","navbar-expand-sm":"_navbar-expand-sm_1udmp_4095",offcanvas,"offcanvas-header":"_offcanvas-header_1udmp_4131","offcanvas-body":"_offcanvas-body_1udmp_4134","navbar-expand-md":"_navbar-expand-md_1udmp_4142","navbar-expand-lg":"_navbar-expand-lg_1udmp_4189","navbar-expand-xl":"_navbar-expand-xl_1udmp_4236","navbar-expand-xxl":"_navbar-expand-xxl_1udmp_4283","navbar-expand":"_navbar-expand_1udmp_4095","navbar-dark":"_navbar-dark_1udmp_4375",card,"list-group":"_list-group_1udmp_4427","card-header":"_card-header_1udmp_4441","card-footer":"_card-footer_1udmp_4442","card-body":"_card-body_1udmp_4446","card-title":"_card-title_1udmp_4452","card-subtitle":"_card-subtitle_1udmp_4457","card-text":"_card-text_1udmp_4463","card-link":"_card-link_1udmp_4467","card-header-tabs":"_card-header-tabs_1udmp_4492","card-header-pills":"_card-header-pills_1udmp_4503","card-img-overlay":"_card-img-overlay_1udmp_4508","card-img":"_card-img_1udmp_4508","card-img-top":"_card-img-top_1udmp_4519","card-img-bottom":"_card-img-bottom_1udmp_4520","card-group":"_card-group_1udmp_4536",accordion,"accordion-button":"_accordion-button_1udmp_4603",collapsed,"accordion-header":"_accordion-header_1udmp_4658","accordion-item":"_accordion-item_1udmp_4662","accordion-collapse":"_accordion-collapse_1udmp_4686","accordion-body":"_accordion-body_1udmp_4691","accordion-flush":"_accordion-flush_1udmp_4695",breadcrumb,"breadcrumb-item":"_breadcrumb-item_1udmp_4737",pagination,"page-link":"_page-link_1udmp_4776","page-item":"_page-item_1udmp_4818","pagination-lg":"_pagination-lg_1udmp_4830","pagination-sm":"_pagination-sm_1udmp_4837",badge,alert,"alert-heading":"_alert-heading_1udmp_4890","alert-link":"_alert-link_1udmp_4894","alert-dismissible":"_alert-dismissible_1udmp_4899","btn-close":"_btn-close_1udmp_4902","alert-primary":"_alert-primary_1udmp_4910","alert-secondary":"_alert-secondary_1udmp_4917","alert-success":"_alert-success_1udmp_4924","alert-info":"_alert-info_1udmp_4931","alert-warning":"_alert-warning_1udmp_4938","alert-danger":"_alert-danger_1udmp_4945","alert-light":"_alert-light_1udmp_4952","alert-dark":"_alert-dark_1udmp_4959",progress,"progress-stacked":"_progress-stacked_1udmp_4972","progress-bar":"_progress-bar_1udmp_4989","progress-bar-striped":"_progress-bar-striped_1udmp_5006","progress-bar-animated":"_progress-bar-animated_1udmp_5019","progress-bar-stripes":"_progress-bar-stripes_1udmp_1","list-group-numbered":"_list-group-numbered_1udmp_5053","list-group-item":"_list-group-item_1udmp_5057","list-group-item-action":"_list-group-item-action_1udmp_5062","list-group-horizontal":"_list-group-horizontal_1udmp_5114","list-group-horizontal-sm":"_list-group-horizontal-sm_1udmp_5138","list-group-horizontal-md":"_list-group-horizontal-md_1udmp_5162","list-group-horizontal-lg":"_list-group-horizontal-lg_1udmp_5186","list-group-horizontal-xl":"_list-group-horizontal-xl_1udmp_5210","list-group-horizontal-xxl":"_list-group-horizontal-xxl_1udmp_5234","list-group-flush":"_list-group-flush_1udmp_5257","list-group-item-primary":"_list-group-item-primary_1udmp_5267","list-group-item-secondary":"_list-group-item-secondary_1udmp_5280","list-group-item-success":"_list-group-item-success_1udmp_5293","list-group-item-info":"_list-group-item-info_1udmp_5306","list-group-item-warning":"_list-group-item-warning_1udmp_5319","list-group-item-danger":"_list-group-item-danger_1udmp_5332","list-group-item-light":"_list-group-item-light_1udmp_5345","list-group-item-dark":"_list-group-item-dark_1udmp_5358","btn-close-white":"_btn-close-white_1udmp_5406",toast,showing,"toast-container":"_toast-container_1udmp_5448","toast-header":"_toast-header_1udmp_5460","toast-body":"_toast-body_1udmp_5476",modal,"modal-dialog":"_modal-dialog_1udmp_5515","modal-static":"_modal-static_1udmp_5533","modal-dialog-scrollable":"_modal-dialog-scrollable_1udmp_5537","modal-content":"_modal-content_1udmp_5540","modal-body":"_modal-body_1udmp_5544","modal-dialog-centered":"_modal-dialog-centered_1udmp_5548","modal-backdrop":"_modal-backdrop_1udmp_5568","modal-header":"_modal-header_1udmp_5587","modal-title":"_modal-title_1udmp_5602","modal-footer":"_modal-footer_1udmp_5613","modal-sm":"_modal-sm_1udmp_5639","modal-lg":"_modal-lg_1udmp_5644","modal-xl":"_modal-xl_1udmp_5645","modal-fullscreen":"_modal-fullscreen_1udmp_5654","modal-fullscreen-sm-down":"_modal-fullscreen-sm-down_1udmp_5674","modal-fullscreen-md-down":"_modal-fullscreen-md-down_1udmp_5694","modal-fullscreen-lg-down":"_modal-fullscreen-lg-down_1udmp_5714","modal-fullscreen-xl-down":"_modal-fullscreen-xl-down_1udmp_5734","modal-fullscreen-xxl-down":"_modal-fullscreen-xxl-down_1udmp_5754",tooltip,"tooltip-arrow":"_tooltip-arrow_1udmp_5810","bs-tooltip-top":"_bs-tooltip-top_1udmp_5822","bs-tooltip-auto":"_bs-tooltip-auto_1udmp_5822","bs-tooltip-end":"_bs-tooltip-end_1udmp_5832","bs-tooltip-bottom":"_bs-tooltip-bottom_1udmp_5844","bs-tooltip-start":"_bs-tooltip-start_1udmp_5854","tooltip-inner":"_tooltip-inner_1udmp_5866",popover,"popover-arrow":"_popover-arrow_1udmp_5920","bs-popover-top":"_bs-popover-top_1udmp_5934","bs-popover-auto":"_bs-popover-auto_1udmp_5934","bs-popover-end":"_bs-popover-end_1udmp_5950","bs-popover-bottom":"_bs-popover-bottom_1udmp_5968","popover-header":"_popover-header_1udmp_5982","bs-popover-start":"_bs-popover-start_1udmp_5994","popover-body":"_popover-body_1udmp_6026",carousel,"pointer-event":"_pointer-event_1udmp_6035","carousel-inner":"_carousel-inner_1udmp_6039","carousel-item":"_carousel-item_1udmp_6050","carousel-item-next":"_carousel-item-next_1udmp_6066","carousel-item-prev":"_carousel-item-prev_1udmp_6067","carousel-item-start":"_carousel-item-start_1udmp_6071","carousel-item-end":"_carousel-item-end_1udmp_6072","carousel-fade":"_carousel-fade_1udmp_6081","carousel-control-prev":"_carousel-control-prev_1udmp_6105","carousel-control-next":"_carousel-control-next_1udmp_6106","carousel-control-prev-icon":"_carousel-control-prev-icon_1udmp_6146","carousel-control-next-icon":"_carousel-control-next-icon_1udmp_6147","carousel-indicators":"_carousel-indicators_1udmp_6172","carousel-caption":"_carousel-caption_1udmp_6212","carousel-dark":"_carousel-dark_1udmp_6223","spinner-grow":"_spinner-grow_1udmp_6246","spinner-border":"_spinner-border_1udmp_6247","spinner-border-sm":"_spinner-border-sm_1udmp_6272","spinner-grow-sm":"_spinner-grow-sm_1udmp_6297","offcanvas-xxl":"_offcanvas-xxl_1udmp_6308","offcanvas-xl":"_offcanvas-xl_1udmp_6308","offcanvas-lg":"_offcanvas-lg_1udmp_6308","offcanvas-md":"_offcanvas-md_1udmp_6308","offcanvas-sm":"_offcanvas-sm_1udmp_6308","offcanvas-start":"_offcanvas-start_1udmp_6345","offcanvas-end":"_offcanvas-end_1udmp_6352","offcanvas-top":"_offcanvas-top_1udmp_6359","offcanvas-bottom":"_offcanvas-bottom_1udmp_6368",hiding,"offcanvas-backdrop":"_offcanvas-backdrop_1udmp_6770","offcanvas-title":"_offcanvas-title_1udmp_6799",placeholder,"placeholder-xs":"_placeholder-xs_1udmp_6823","placeholder-sm":"_placeholder-sm_1udmp_6827","placeholder-lg":"_placeholder-lg_1udmp_6831","placeholder-glow":"_placeholder-glow_1udmp_6835","placeholder-wave":"_placeholder-wave_1udmp_6844",clearfix,"text-bg-primary":"_text-bg-primary_1udmp_6861","text-bg-secondary":"_text-bg-secondary_1udmp_6866","text-bg-success":"_text-bg-success_1udmp_6871","text-bg-info":"_text-bg-info_1udmp_6876","text-bg-warning":"_text-bg-warning_1udmp_6881","text-bg-danger":"_text-bg-danger_1udmp_6886","text-bg-light":"_text-bg-light_1udmp_6891","text-bg-dark":"_text-bg-dark_1udmp_6896","link-primary":"_link-primary_1udmp_6901","link-secondary":"_link-secondary_1udmp_6910","link-success":"_link-success_1udmp_6919","link-info":"_link-info_1udmp_6928","link-warning":"_link-warning_1udmp_6937","link-danger":"_link-danger_1udmp_6946","link-light":"_link-light_1udmp_6955","link-dark":"_link-dark_1udmp_6964","link-body-emphasis":"_link-body-emphasis_1udmp_6973","focus-ring":"_focus-ring_1udmp_6982","icon-link":"_icon-link_1udmp_6987",bi,"icon-link-hover":"_icon-link-hover_1udmp_7008",ratio,"ratio-1x1":"_ratio-1x1_1udmp_7029","ratio-4x3":"_ratio-4x3_1udmp_7033","ratio-16x9":"_ratio-16x9_1udmp_7037","ratio-21x9":"_ratio-21x9_1udmp_7041","fixed-top":"_fixed-top_1udmp_7045","fixed-bottom":"_fixed-bottom_1udmp_7053","sticky-top":"_sticky-top_1udmp_7061","sticky-bottom":"_sticky-bottom_1udmp_7067","sticky-sm-top":"_sticky-sm-top_1udmp_7074","sticky-sm-bottom":"_sticky-sm-bottom_1udmp_7079","sticky-md-top":"_sticky-md-top_1udmp_7086","sticky-md-bottom":"_sticky-md-bottom_1udmp_7091","sticky-lg-top":"_sticky-lg-top_1udmp_7098","sticky-lg-bottom":"_sticky-lg-bottom_1udmp_7103","sticky-xl-top":"_sticky-xl-top_1udmp_7110","sticky-xl-bottom":"_sticky-xl-bottom_1udmp_7115","sticky-xxl-top":"_sticky-xxl-top_1udmp_7122","sticky-xxl-bottom":"_sticky-xxl-bottom_1udmp_7127",hstack,vstack,"visually-hidden":"_visually-hidden_1udmp_7147","visually-hidden-focusable":"_visually-hidden-focusable_1udmp_7148","stretched-link":"_stretched-link_1udmp_7163","text-truncate":"_text-truncate_1udmp_7173",vr,"align-baseline":"_align-baseline_1udmp_7188","align-top":"_align-top_1udmp_7192","align-middle":"_align-middle_1udmp_7196","align-bottom":"_align-bottom_1udmp_7200","align-text-bottom":"_align-text-bottom_1udmp_7204","align-text-top":"_align-text-top_1udmp_7208","float-start":"_float-start_1udmp_7212","float-end":"_float-end_1udmp_7216","float-none":"_float-none_1udmp_7220","object-fit-contain":"_object-fit-contain_1udmp_7224","object-fit-cover":"_object-fit-cover_1udmp_7228","object-fit-fill":"_object-fit-fill_1udmp_7232","object-fit-scale":"_object-fit-scale_1udmp_7236","object-fit-none":"_object-fit-none_1udmp_7240","opacity-0":"_opacity-0_1udmp_7244","opacity-25":"_opacity-25_1udmp_7248","opacity-50":"_opacity-50_1udmp_7252","opacity-75":"_opacity-75_1udmp_7256","opacity-100":"_opacity-100_1udmp_7260","overflow-auto":"_overflow-auto_1udmp_7264","overflow-hidden":"_overflow-hidden_1udmp_7268","overflow-visible":"_overflow-visible_1udmp_7272","overflow-scroll":"_overflow-scroll_1udmp_7276","overflow-x-auto":"_overflow-x-auto_1udmp_7280","overflow-x-hidden":"_overflow-x-hidden_1udmp_7284","overflow-x-visible":"_overflow-x-visible_1udmp_7288","overflow-x-scroll":"_overflow-x-scroll_1udmp_7292","overflow-y-auto":"_overflow-y-auto_1udmp_7296","overflow-y-hidden":"_overflow-y-hidden_1udmp_7300","overflow-y-visible":"_overflow-y-visible_1udmp_7304","overflow-y-scroll":"_overflow-y-scroll_1udmp_7308","d-inline":"_d-inline_1udmp_7312","d-inline-block":"_d-inline-block_1udmp_7316","d-block":"_d-block_1udmp_7320","d-grid":"_d-grid_1udmp_7324","d-inline-grid":"_d-inline-grid_1udmp_7328","d-table":"_d-table_1udmp_7332","d-table-row":"_d-table-row_1udmp_7336","d-table-cell":"_d-table-cell_1udmp_7340","d-flex":"_d-flex_1udmp_7344","d-inline-flex":"_d-inline-flex_1udmp_7348","d-none":"_d-none_1udmp_7352",shadow,"shadow-sm":"_shadow-sm_1udmp_7360","shadow-lg":"_shadow-lg_1udmp_7364","shadow-none":"_shadow-none_1udmp_7368","focus-ring-primary":"_focus-ring-primary_1udmp_7372","focus-ring-secondary":"_focus-ring-secondary_1udmp_7376","focus-ring-success":"_focus-ring-success_1udmp_7380","focus-ring-info":"_focus-ring-info_1udmp_7384","focus-ring-warning":"_focus-ring-warning_1udmp_7388","focus-ring-danger":"_focus-ring-danger_1udmp_7392","focus-ring-light":"_focus-ring-light_1udmp_7396","focus-ring-dark":"_focus-ring-dark_1udmp_7400","position-static":"_position-static_1udmp_7404","position-relative":"_position-relative_1udmp_7408","position-absolute":"_position-absolute_1udmp_7412","position-fixed":"_position-fixed_1udmp_7416","position-sticky":"_position-sticky_1udmp_7420","top-0":"_top-0_1udmp_7424","top-50":"_top-50_1udmp_7428","top-100":"_top-100_1udmp_7432","bottom-0":"_bottom-0_1udmp_7436","bottom-50":"_bottom-50_1udmp_7440","bottom-100":"_bottom-100_1udmp_7444","start-0":"_start-0_1udmp_7448","start-50":"_start-50_1udmp_7452","start-100":"_start-100_1udmp_7456","end-0":"_end-0_1udmp_7460","end-50":"_end-50_1udmp_7464","end-100":"_end-100_1udmp_7468","translate-middle":"_translate-middle_1udmp_7472","translate-middle-x":"_translate-middle-x_1udmp_7476","translate-middle-y":"_translate-middle-y_1udmp_7480",border,"border-0":"_border-0_1udmp_7488","border-top":"_border-top_1udmp_7492","border-top-0":"_border-top-0_1udmp_7496","border-end":"_border-end_1udmp_7500","border-end-0":"_border-end-0_1udmp_7504","border-bottom":"_border-bottom_1udmp_7508","border-bottom-0":"_border-bottom-0_1udmp_7512","border-start":"_border-start_1udmp_7516","border-start-0":"_border-start-0_1udmp_7520","border-primary":"_border-primary_1udmp_7524","border-secondary":"_border-secondary_1udmp_7529","border-success":"_border-success_1udmp_7534","border-info":"_border-info_1udmp_7539","border-warning":"_border-warning_1udmp_7544","border-danger":"_border-danger_1udmp_7549","border-light":"_border-light_1udmp_7554","border-dark":"_border-dark_1udmp_7559","border-black":"_border-black_1udmp_7564","border-white":"_border-white_1udmp_7569","border-primary-subtle":"_border-primary-subtle_1udmp_7574","border-secondary-subtle":"_border-secondary-subtle_1udmp_7578","border-success-subtle":"_border-success-subtle_1udmp_7582","border-info-subtle":"_border-info-subtle_1udmp_7586","border-warning-subtle":"_border-warning-subtle_1udmp_7590","border-danger-subtle":"_border-danger-subtle_1udmp_7594","border-light-subtle":"_border-light-subtle_1udmp_7598","border-dark-subtle":"_border-dark-subtle_1udmp_7602","border-1":"_border-1_1udmp_7606","border-2":"_border-2_1udmp_7610","border-3":"_border-3_1udmp_7614","border-4":"_border-4_1udmp_7618","border-5":"_border-5_1udmp_7622","border-opacity-10":"_border-opacity-10_1udmp_7626","border-opacity-25":"_border-opacity-25_1udmp_7630","border-opacity-50":"_border-opacity-50_1udmp_7634","border-opacity-75":"_border-opacity-75_1udmp_7638","border-opacity-100":"_border-opacity-100_1udmp_7642","w-25":"_w-25_1udmp_7646","w-50":"_w-50_1udmp_7650","w-75":"_w-75_1udmp_7654","w-100":"_w-100_1udmp_7658","w-auto":"_w-auto_1udmp_7662","mw-100":"_mw-100_1udmp_7666","vw-100":"_vw-100_1udmp_7670","min-vw-100":"_min-vw-100_1udmp_7674","h-25":"_h-25_1udmp_7678","h-50":"_h-50_1udmp_7682","h-75":"_h-75_1udmp_7686","h-100":"_h-100_1udmp_7690","h-auto":"_h-auto_1udmp_7694","mh-100":"_mh-100_1udmp_7698","vh-100":"_vh-100_1udmp_7702","min-vh-100":"_min-vh-100_1udmp_7706","flex-fill":"_flex-fill_1udmp_7710","flex-row":"_flex-row_1udmp_7714","flex-column":"_flex-column_1udmp_7718","flex-row-reverse":"_flex-row-reverse_1udmp_7722","flex-column-reverse":"_flex-column-reverse_1udmp_7726","flex-grow-0":"_flex-grow-0_1udmp_7730","flex-grow-1":"_flex-grow-1_1udmp_7734","flex-shrink-0":"_flex-shrink-0_1udmp_7738","flex-shrink-1":"_flex-shrink-1_1udmp_7742","flex-wrap":"_flex-wrap_1udmp_7746","flex-nowrap":"_flex-nowrap_1udmp_7750","flex-wrap-reverse":"_flex-wrap-reverse_1udmp_7754","justify-content-start":"_justify-content-start_1udmp_7758","justify-content-end":"_justify-content-end_1udmp_7762","justify-content-center":"_justify-content-center_1udmp_7766","justify-content-between":"_justify-content-between_1udmp_7770","justify-content-around":"_justify-content-around_1udmp_7774","justify-content-evenly":"_justify-content-evenly_1udmp_7778","align-items-start":"_align-items-start_1udmp_7782","align-items-end":"_align-items-end_1udmp_7786","align-items-center":"_align-items-center_1udmp_7790","align-items-baseline":"_align-items-baseline_1udmp_7794","align-items-stretch":"_align-items-stretch_1udmp_7798","align-content-start":"_align-content-start_1udmp_7802","align-content-end":"_align-content-end_1udmp_7806","align-content-center":"_align-content-center_1udmp_7810","align-content-between":"_align-content-between_1udmp_7814","align-content-around":"_align-content-around_1udmp_7818","align-content-stretch":"_align-content-stretch_1udmp_7822","align-self-auto":"_align-self-auto_1udmp_7826","align-self-start":"_align-self-start_1udmp_7830","align-self-end":"_align-self-end_1udmp_7834","align-self-center":"_align-self-center_1udmp_7838","align-self-baseline":"_align-self-baseline_1udmp_7842","align-self-stretch":"_align-self-stretch_1udmp_7846","order-first":"_order-first_1udmp_7850","order-0":"_order-0_1udmp_7854","order-1":"_order-1_1udmp_7858","order-2":"_order-2_1udmp_7862","order-3":"_order-3_1udmp_7866","order-4":"_order-4_1udmp_7870","order-5":"_order-5_1udmp_7874","order-last":"_order-last_1udmp_7878","m-0":"_m-0_1udmp_7882","m-1":"_m-1_1udmp_7886","m-2":"_m-2_1udmp_7890","m-3":"_m-3_1udmp_7894","m-4":"_m-4_1udmp_7898","m-5":"_m-5_1udmp_7902","m-auto":"_m-auto_1udmp_7906","mx-0":"_mx-0_1udmp_7910","mx-1":"_mx-1_1udmp_7915","mx-2":"_mx-2_1udmp_7920","mx-3":"_mx-3_1udmp_7925","mx-4":"_mx-4_1udmp_7930","mx-5":"_mx-5_1udmp_7935","mx-auto":"_mx-auto_1udmp_7940","my-0":"_my-0_1udmp_7945","my-1":"_my-1_1udmp_7950","my-2":"_my-2_1udmp_7955","my-3":"_my-3_1udmp_7960","my-4":"_my-4_1udmp_7965","my-5":"_my-5_1udmp_7970","my-auto":"_my-auto_1udmp_7975","mt-0":"_mt-0_1udmp_7980","mt-1":"_mt-1_1udmp_7984","mt-2":"_mt-2_1udmp_7988","mt-3":"_mt-3_1udmp_7992","mt-4":"_mt-4_1udmp_7996","mt-5":"_mt-5_1udmp_8000","mt-auto":"_mt-auto_1udmp_8004","me-0":"_me-0_1udmp_8008","me-1":"_me-1_1udmp_8012","me-2":"_me-2_1udmp_8016","me-3":"_me-3_1udmp_8020","me-4":"_me-4_1udmp_8024","me-5":"_me-5_1udmp_8028","me-auto":"_me-auto_1udmp_8032","mb-0":"_mb-0_1udmp_8036","mb-1":"_mb-1_1udmp_8040","mb-2":"_mb-2_1udmp_8044","mb-3":"_mb-3_1udmp_8048","mb-4":"_mb-4_1udmp_8052","mb-5":"_mb-5_1udmp_8056","mb-auto":"_mb-auto_1udmp_8060","ms-0":"_ms-0_1udmp_8064","ms-1":"_ms-1_1udmp_8068","ms-2":"_ms-2_1udmp_8072","ms-3":"_ms-3_1udmp_8076","ms-4":"_ms-4_1udmp_8080","ms-5":"_ms-5_1udmp_8084","ms-auto":"_ms-auto_1udmp_8088","p-0":"_p-0_1udmp_8092","p-1":"_p-1_1udmp_8096","p-2":"_p-2_1udmp_8100","p-3":"_p-3_1udmp_8104","p-4":"_p-4_1udmp_8108","p-5":"_p-5_1udmp_8112","px-0":"_px-0_1udmp_8116","px-1":"_px-1_1udmp_8121","px-2":"_px-2_1udmp_8126","px-3":"_px-3_1udmp_8131","px-4":"_px-4_1udmp_8136","px-5":"_px-5_1udmp_8141","py-0":"_py-0_1udmp_8146","py-1":"_py-1_1udmp_8151","py-2":"_py-2_1udmp_8156","py-3":"_py-3_1udmp_8161","py-4":"_py-4_1udmp_8166","py-5":"_py-5_1udmp_8171","pt-0":"_pt-0_1udmp_8176","pt-1":"_pt-1_1udmp_8180","pt-2":"_pt-2_1udmp_8184","pt-3":"_pt-3_1udmp_8188","pt-4":"_pt-4_1udmp_8192","pt-5":"_pt-5_1udmp_8196","pe-0":"_pe-0_1udmp_8200","pe-1":"_pe-1_1udmp_8204","pe-2":"_pe-2_1udmp_8208","pe-3":"_pe-3_1udmp_8212","pe-4":"_pe-4_1udmp_8216","pe-5":"_pe-5_1udmp_8220","pb-0":"_pb-0_1udmp_8224","pb-1":"_pb-1_1udmp_8228","pb-2":"_pb-2_1udmp_8232","pb-3":"_pb-3_1udmp_8236","pb-4":"_pb-4_1udmp_8240","pb-5":"_pb-5_1udmp_8244","ps-0":"_ps-0_1udmp_8248","ps-1":"_ps-1_1udmp_8252","ps-2":"_ps-2_1udmp_8256","ps-3":"_ps-3_1udmp_8260","ps-4":"_ps-4_1udmp_8264","ps-5":"_ps-5_1udmp_8268","gap-0":"_gap-0_1udmp_8272","gap-1":"_gap-1_1udmp_8276","gap-2":"_gap-2_1udmp_8280","gap-3":"_gap-3_1udmp_8284","gap-4":"_gap-4_1udmp_8288","gap-5":"_gap-5_1udmp_8292","row-gap-0":"_row-gap-0_1udmp_8296","row-gap-1":"_row-gap-1_1udmp_8300","row-gap-2":"_row-gap-2_1udmp_8304","row-gap-3":"_row-gap-3_1udmp_8308","row-gap-4":"_row-gap-4_1udmp_8312","row-gap-5":"_row-gap-5_1udmp_8316","column-gap-0":"_column-gap-0_1udmp_8320","column-gap-1":"_column-gap-1_1udmp_8324","column-gap-2":"_column-gap-2_1udmp_8328","column-gap-3":"_column-gap-3_1udmp_8332","column-gap-4":"_column-gap-4_1udmp_8336","column-gap-5":"_column-gap-5_1udmp_8340","font-monospace":"_font-monospace_1udmp_8344","fs-1":"_fs-1_1udmp_8348","fs-2":"_fs-2_1udmp_8352","fs-3":"_fs-3_1udmp_8356","fs-4":"_fs-4_1udmp_8360","fs-5":"_fs-5_1udmp_8364","fs-6":"_fs-6_1udmp_8368","fst-italic":"_fst-italic_1udmp_8372","fst-normal":"_fst-normal_1udmp_8376","fw-lighter":"_fw-lighter_1udmp_8380","fw-light":"_fw-light_1udmp_8380","fw-normal":"_fw-normal_1udmp_8388","fw-medium":"_fw-medium_1udmp_8392","fw-semibold":"_fw-semibold_1udmp_8396","fw-bold":"_fw-bold_1udmp_8400","fw-bolder":"_fw-bolder_1udmp_8404","lh-1":"_lh-1_1udmp_8408","lh-sm":"_lh-sm_1udmp_8412","lh-base":"_lh-base_1udmp_8416","lh-lg":"_lh-lg_1udmp_8420","text-start":"_text-start_1udmp_8424","text-end":"_text-end_1udmp_8428","text-center":"_text-center_1udmp_8432","text-decoration-none":"_text-decoration-none_1udmp_8436","text-decoration-underline":"_text-decoration-underline_1udmp_8440","text-decoration-line-through":"_text-decoration-line-through_1udmp_8444","text-lowercase":"_text-lowercase_1udmp_8448","text-uppercase":"_text-uppercase_1udmp_8452","text-capitalize":"_text-capitalize_1udmp_8456","text-wrap":"_text-wrap_1udmp_8460","text-nowrap":"_text-nowrap_1udmp_8464","text-break":"_text-break_1udmp_8469","text-primary":"_text-primary_1udmp_8475","text-secondary":"_text-secondary_1udmp_8480","text-success":"_text-success_1udmp_8485","text-info":"_text-info_1udmp_8490","text-warning":"_text-warning_1udmp_8495","text-danger":"_text-danger_1udmp_8500","text-light":"_text-light_1udmp_8505","text-dark":"_text-dark_1udmp_8510","text-black":"_text-black_1udmp_8515","text-white":"_text-white_1udmp_8520","text-body":"_text-body_1udmp_8525","text-muted":"_text-muted_1udmp_8530","text-black-50":"_text-black-50_1udmp_8535","text-white-50":"_text-white-50_1udmp_8540","text-body-secondary":"_text-body-secondary_1udmp_8545","text-body-tertiary":"_text-body-tertiary_1udmp_8550","text-body-emphasis":"_text-body-emphasis_1udmp_8555","text-reset":"_text-reset_1udmp_8560","text-opacity-25":"_text-opacity-25_1udmp_8565","text-opacity-50":"_text-opacity-50_1udmp_8569","text-opacity-75":"_text-opacity-75_1udmp_8573","text-opacity-100":"_text-opacity-100_1udmp_8577","text-primary-emphasis":"_text-primary-emphasis_1udmp_8581","text-secondary-emphasis":"_text-secondary-emphasis_1udmp_8585","text-success-emphasis":"_text-success-emphasis_1udmp_8589","text-info-emphasis":"_text-info-emphasis_1udmp_8593","text-warning-emphasis":"_text-warning-emphasis_1udmp_8597","text-danger-emphasis":"_text-danger-emphasis_1udmp_8601","text-light-emphasis":"_text-light-emphasis_1udmp_8605","text-dark-emphasis":"_text-dark-emphasis_1udmp_8609","link-opacity-10":"_link-opacity-10_1udmp_8613","link-opacity-10-hover":"_link-opacity-10-hover_1udmp_8617","link-opacity-25":"_link-opacity-25_1udmp_8621","link-opacity-25-hover":"_link-opacity-25-hover_1udmp_8625","link-opacity-50":"_link-opacity-50_1udmp_8629","link-opacity-50-hover":"_link-opacity-50-hover_1udmp_8633","link-opacity-75":"_link-opacity-75_1udmp_8637","link-opacity-75-hover":"_link-opacity-75-hover_1udmp_8641","link-opacity-100":"_link-opacity-100_1udmp_8645","link-opacity-100-hover":"_link-opacity-100-hover_1udmp_8649","link-offset-1":"_link-offset-1_1udmp_8653","link-offset-1-hover":"_link-offset-1-hover_1udmp_8657","link-offset-2":"_link-offset-2_1udmp_8661","link-offset-2-hover":"_link-offset-2-hover_1udmp_8665","link-offset-3":"_link-offset-3_1udmp_8669","link-offset-3-hover":"_link-offset-3-hover_1udmp_8673","link-underline-primary":"_link-underline-primary_1udmp_8677","link-underline-secondary":"_link-underline-secondary_1udmp_8682","link-underline-success":"_link-underline-success_1udmp_8687","link-underline-info":"_link-underline-info_1udmp_8692","link-underline-warning":"_link-underline-warning_1udmp_8697","link-underline-danger":"_link-underline-danger_1udmp_8702","link-underline-light":"_link-underline-light_1udmp_8707","link-underline-dark":"_link-underline-dark_1udmp_8712","link-underline":"_link-underline_1udmp_8677","link-underline-opacity-0":"_link-underline-opacity-0_1udmp_8722","link-underline-opacity-0-hover":"_link-underline-opacity-0-hover_1udmp_8726","link-underline-opacity-10":"_link-underline-opacity-10_1udmp_8730","link-underline-opacity-10-hover":"_link-underline-opacity-10-hover_1udmp_8734","link-underline-opacity-25":"_link-underline-opacity-25_1udmp_8738","link-underline-opacity-25-hover":"_link-underline-opacity-25-hover_1udmp_8742","link-underline-opacity-50":"_link-underline-opacity-50_1udmp_8746","link-underline-opacity-50-hover":"_link-underline-opacity-50-hover_1udmp_8750","link-underline-opacity-75":"_link-underline-opacity-75_1udmp_8754","link-underline-opacity-75-hover":"_link-underline-opacity-75-hover_1udmp_8758","link-underline-opacity-100":"_link-underline-opacity-100_1udmp_8762","link-underline-opacity-100-hover":"_link-underline-opacity-100-hover_1udmp_8766","bg-primary":"_bg-primary_1udmp_8770","bg-secondary":"_bg-secondary_1udmp_8775","bg-success":"_bg-success_1udmp_8780","bg-info":"_bg-info_1udmp_8785","bg-warning":"_bg-warning_1udmp_8790","bg-danger":"_bg-danger_1udmp_8795","bg-light":"_bg-light_1udmp_8800","bg-dark":"_bg-dark_1udmp_8805","bg-black":"_bg-black_1udmp_8810","bg-white":"_bg-white_1udmp_8815","bg-body":"_bg-body_1udmp_8820","bg-transparent":"_bg-transparent_1udmp_8825","bg-body-secondary":"_bg-body-secondary_1udmp_8830","bg-body-tertiary":"_bg-body-tertiary_1udmp_8835","bg-opacity-10":"_bg-opacity-10_1udmp_8840","bg-opacity-25":"_bg-opacity-25_1udmp_8844","bg-opacity-50":"_bg-opacity-50_1udmp_8848","bg-opacity-75":"_bg-opacity-75_1udmp_8852","bg-opacity-100":"_bg-opacity-100_1udmp_8856","bg-primary-subtle":"_bg-primary-subtle_1udmp_8860","bg-secondary-subtle":"_bg-secondary-subtle_1udmp_8864","bg-success-subtle":"_bg-success-subtle_1udmp_8868","bg-info-subtle":"_bg-info-subtle_1udmp_8872","bg-warning-subtle":"_bg-warning-subtle_1udmp_8876","bg-danger-subtle":"_bg-danger-subtle_1udmp_8880","bg-light-subtle":"_bg-light-subtle_1udmp_8884","bg-dark-subtle":"_bg-dark-subtle_1udmp_8888","bg-gradient":"_bg-gradient_1udmp_8892","user-select-all":"_user-select-all_1udmp_8896","user-select-auto":"_user-select-auto_1udmp_8900","user-select-none":"_user-select-none_1udmp_8904","pe-none":"_pe-none_1udmp_8908","pe-auto":"_pe-auto_1udmp_8912",rounded,"rounded-0":"_rounded-0_1udmp_8920","rounded-1":"_rounded-1_1udmp_8924","rounded-2":"_rounded-2_1udmp_8928","rounded-3":"_rounded-3_1udmp_8932","rounded-4":"_rounded-4_1udmp_8936","rounded-5":"_rounded-5_1udmp_8940","rounded-circle":"_rounded-circle_1udmp_8944","rounded-pill":"_rounded-pill_1udmp_8948","rounded-top":"_rounded-top_1udmp_8952","rounded-top-0":"_rounded-top-0_1udmp_8957","rounded-top-1":"_rounded-top-1_1udmp_8962","rounded-top-2":"_rounded-top-2_1udmp_8967","rounded-top-3":"_rounded-top-3_1udmp_8972","rounded-top-4":"_rounded-top-4_1udmp_8977","rounded-top-5":"_rounded-top-5_1udmp_8982","rounded-top-circle":"_rounded-top-circle_1udmp_8987","rounded-top-pill":"_rounded-top-pill_1udmp_8992","rounded-end":"_rounded-end_1udmp_8997","rounded-end-0":"_rounded-end-0_1udmp_9002","rounded-end-1":"_rounded-end-1_1udmp_9007","rounded-end-2":"_rounded-end-2_1udmp_9012","rounded-end-3":"_rounded-end-3_1udmp_9017","rounded-end-4":"_rounded-end-4_1udmp_9022","rounded-end-5":"_rounded-end-5_1udmp_9027","rounded-end-circle":"_rounded-end-circle_1udmp_9032","rounded-end-pill":"_rounded-end-pill_1udmp_9037","rounded-bottom":"_rounded-bottom_1udmp_9042","rounded-bottom-0":"_rounded-bottom-0_1udmp_9047","rounded-bottom-1":"_rounded-bottom-1_1udmp_9052","rounded-bottom-2":"_rounded-bottom-2_1udmp_9057","rounded-bottom-3":"_rounded-bottom-3_1udmp_9062","rounded-bottom-4":"_rounded-bottom-4_1udmp_9067","rounded-bottom-5":"_rounded-bottom-5_1udmp_9072","rounded-bottom-circle":"_rounded-bottom-circle_1udmp_9077","rounded-bottom-pill":"_rounded-bottom-pill_1udmp_9082","rounded-start":"_rounded-start_1udmp_9087","rounded-start-0":"_rounded-start-0_1udmp_9092","rounded-start-1":"_rounded-start-1_1udmp_9097","rounded-start-2":"_rounded-start-2_1udmp_9102","rounded-start-3":"_rounded-start-3_1udmp_9107","rounded-start-4":"_rounded-start-4_1udmp_9112","rounded-start-5":"_rounded-start-5_1udmp_9117","rounded-start-circle":"_rounded-start-circle_1udmp_9122","rounded-start-pill":"_rounded-start-pill_1udmp_9127",visible,invisible,"z-n1":"_z-n1_1udmp_9140","z-0":"_z-0_1udmp_9144","z-1":"_z-1_1udmp_9148","z-2":"_z-2_1udmp_9152","z-3":"_z-3_1udmp_9156","float-sm-start":"_float-sm-start_1udmp_9161","float-sm-end":"_float-sm-end_1udmp_9164","float-sm-none":"_float-sm-none_1udmp_9167","object-fit-sm-contain":"_object-fit-sm-contain_1udmp_9170","object-fit-sm-cover":"_object-fit-sm-cover_1udmp_9173","object-fit-sm-fill":"_object-fit-sm-fill_1udmp_9176","object-fit-sm-scale":"_object-fit-sm-scale_1udmp_9179","object-fit-sm-none":"_object-fit-sm-none_1udmp_9182","d-sm-inline":"_d-sm-inline_1udmp_9185","d-sm-inline-block":"_d-sm-inline-block_1udmp_9188","d-sm-block":"_d-sm-block_1udmp_9191","d-sm-grid":"_d-sm-grid_1udmp_9194","d-sm-inline-grid":"_d-sm-inline-grid_1udmp_9197","d-sm-table":"_d-sm-table_1udmp_9200","d-sm-table-row":"_d-sm-table-row_1udmp_9203","d-sm-table-cell":"_d-sm-table-cell_1udmp_9206","d-sm-flex":"_d-sm-flex_1udmp_9209","d-sm-inline-flex":"_d-sm-inline-flex_1udmp_9212","d-sm-none":"_d-sm-none_1udmp_9215","flex-sm-fill":"_flex-sm-fill_1udmp_9218","flex-sm-row":"_flex-sm-row_1udmp_9221","flex-sm-column":"_flex-sm-column_1udmp_9224","flex-sm-row-reverse":"_flex-sm-row-reverse_1udmp_9227","flex-sm-column-reverse":"_flex-sm-column-reverse_1udmp_9230","flex-sm-grow-0":"_flex-sm-grow-0_1udmp_9233","flex-sm-grow-1":"_flex-sm-grow-1_1udmp_9236","flex-sm-shrink-0":"_flex-sm-shrink-0_1udmp_9239","flex-sm-shrink-1":"_flex-sm-shrink-1_1udmp_9242","flex-sm-wrap":"_flex-sm-wrap_1udmp_9245","flex-sm-nowrap":"_flex-sm-nowrap_1udmp_9248","flex-sm-wrap-reverse":"_flex-sm-wrap-reverse_1udmp_9251","justify-content-sm-start":"_justify-content-sm-start_1udmp_9254","justify-content-sm-end":"_justify-content-sm-end_1udmp_9257","justify-content-sm-center":"_justify-content-sm-center_1udmp_9260","justify-content-sm-between":"_justify-content-sm-between_1udmp_9263","justify-content-sm-around":"_justify-content-sm-around_1udmp_9266","justify-content-sm-evenly":"_justify-content-sm-evenly_1udmp_9269","align-items-sm-start":"_align-items-sm-start_1udmp_9272","align-items-sm-end":"_align-items-sm-end_1udmp_9275","align-items-sm-center":"_align-items-sm-center_1udmp_9278","align-items-sm-baseline":"_align-items-sm-baseline_1udmp_9281","align-items-sm-stretch":"_align-items-sm-stretch_1udmp_9284","align-content-sm-start":"_align-content-sm-start_1udmp_9287","align-content-sm-end":"_align-content-sm-end_1udmp_9290","align-content-sm-center":"_align-content-sm-center_1udmp_9293","align-content-sm-between":"_align-content-sm-between_1udmp_9296","align-content-sm-around":"_align-content-sm-around_1udmp_9299","align-content-sm-stretch":"_align-content-sm-stretch_1udmp_9302","align-self-sm-auto":"_align-self-sm-auto_1udmp_9305","align-self-sm-start":"_align-self-sm-start_1udmp_9308","align-self-sm-end":"_align-self-sm-end_1udmp_9311","align-self-sm-center":"_align-self-sm-center_1udmp_9314","align-self-sm-baseline":"_align-self-sm-baseline_1udmp_9317","align-self-sm-stretch":"_align-self-sm-stretch_1udmp_9320","order-sm-first":"_order-sm-first_1udmp_9323","order-sm-0":"_order-sm-0_1udmp_9326","order-sm-1":"_order-sm-1_1udmp_9329","order-sm-2":"_order-sm-2_1udmp_9332","order-sm-3":"_order-sm-3_1udmp_9335","order-sm-4":"_order-sm-4_1udmp_9338","order-sm-5":"_order-sm-5_1udmp_9341","order-sm-last":"_order-sm-last_1udmp_9344","m-sm-0":"_m-sm-0_1udmp_9347","m-sm-1":"_m-sm-1_1udmp_9350","m-sm-2":"_m-sm-2_1udmp_9353","m-sm-3":"_m-sm-3_1udmp_9356","m-sm-4":"_m-sm-4_1udmp_9359","m-sm-5":"_m-sm-5_1udmp_9362","m-sm-auto":"_m-sm-auto_1udmp_9365","mx-sm-0":"_mx-sm-0_1udmp_9368","mx-sm-1":"_mx-sm-1_1udmp_9372","mx-sm-2":"_mx-sm-2_1udmp_9376","mx-sm-3":"_mx-sm-3_1udmp_9380","mx-sm-4":"_mx-sm-4_1udmp_9384","mx-sm-5":"_mx-sm-5_1udmp_9388","mx-sm-auto":"_mx-sm-auto_1udmp_9392","my-sm-0":"_my-sm-0_1udmp_9396","my-sm-1":"_my-sm-1_1udmp_9400","my-sm-2":"_my-sm-2_1udmp_9404","my-sm-3":"_my-sm-3_1udmp_9408","my-sm-4":"_my-sm-4_1udmp_9412","my-sm-5":"_my-sm-5_1udmp_9416","my-sm-auto":"_my-sm-auto_1udmp_9420","mt-sm-0":"_mt-sm-0_1udmp_9424","mt-sm-1":"_mt-sm-1_1udmp_9427","mt-sm-2":"_mt-sm-2_1udmp_9430","mt-sm-3":"_mt-sm-3_1udmp_9433","mt-sm-4":"_mt-sm-4_1udmp_9436","mt-sm-5":"_mt-sm-5_1udmp_9439","mt-sm-auto":"_mt-sm-auto_1udmp_9442","me-sm-0":"_me-sm-0_1udmp_9445","me-sm-1":"_me-sm-1_1udmp_9448","me-sm-2":"_me-sm-2_1udmp_9451","me-sm-3":"_me-sm-3_1udmp_9454","me-sm-4":"_me-sm-4_1udmp_9457","me-sm-5":"_me-sm-5_1udmp_9460","me-sm-auto":"_me-sm-auto_1udmp_9463","mb-sm-0":"_mb-sm-0_1udmp_9466","mb-sm-1":"_mb-sm-1_1udmp_9469","mb-sm-2":"_mb-sm-2_1udmp_9472","mb-sm-3":"_mb-sm-3_1udmp_9475","mb-sm-4":"_mb-sm-4_1udmp_9478","mb-sm-5":"_mb-sm-5_1udmp_9481","mb-sm-auto":"_mb-sm-auto_1udmp_9484","ms-sm-0":"_ms-sm-0_1udmp_9487","ms-sm-1":"_ms-sm-1_1udmp_9490","ms-sm-2":"_ms-sm-2_1udmp_9493","ms-sm-3":"_ms-sm-3_1udmp_9496","ms-sm-4":"_ms-sm-4_1udmp_9499","ms-sm-5":"_ms-sm-5_1udmp_9502","ms-sm-auto":"_ms-sm-auto_1udmp_9505","p-sm-0":"_p-sm-0_1udmp_9508","p-sm-1":"_p-sm-1_1udmp_9511","p-sm-2":"_p-sm-2_1udmp_9514","p-sm-3":"_p-sm-3_1udmp_9517","p-sm-4":"_p-sm-4_1udmp_9520","p-sm-5":"_p-sm-5_1udmp_9523","px-sm-0":"_px-sm-0_1udmp_9526","px-sm-1":"_px-sm-1_1udmp_9530","px-sm-2":"_px-sm-2_1udmp_9534","px-sm-3":"_px-sm-3_1udmp_9538","px-sm-4":"_px-sm-4_1udmp_9542","px-sm-5":"_px-sm-5_1udmp_9546","py-sm-0":"_py-sm-0_1udmp_9550","py-sm-1":"_py-sm-1_1udmp_9554","py-sm-2":"_py-sm-2_1udmp_9558","py-sm-3":"_py-sm-3_1udmp_9562","py-sm-4":"_py-sm-4_1udmp_9566","py-sm-5":"_py-sm-5_1udmp_9570","pt-sm-0":"_pt-sm-0_1udmp_9574","pt-sm-1":"_pt-sm-1_1udmp_9577","pt-sm-2":"_pt-sm-2_1udmp_9580","pt-sm-3":"_pt-sm-3_1udmp_9583","pt-sm-4":"_pt-sm-4_1udmp_9586","pt-sm-5":"_pt-sm-5_1udmp_9589","pe-sm-0":"_pe-sm-0_1udmp_9592","pe-sm-1":"_pe-sm-1_1udmp_9595","pe-sm-2":"_pe-sm-2_1udmp_9598","pe-sm-3":"_pe-sm-3_1udmp_9601","pe-sm-4":"_pe-sm-4_1udmp_9604","pe-sm-5":"_pe-sm-5_1udmp_9607","pb-sm-0":"_pb-sm-0_1udmp_9610","pb-sm-1":"_pb-sm-1_1udmp_9613","pb-sm-2":"_pb-sm-2_1udmp_9616","pb-sm-3":"_pb-sm-3_1udmp_9619","pb-sm-4":"_pb-sm-4_1udmp_9622","pb-sm-5":"_pb-sm-5_1udmp_9625","ps-sm-0":"_ps-sm-0_1udmp_9628","ps-sm-1":"_ps-sm-1_1udmp_9631","ps-sm-2":"_ps-sm-2_1udmp_9634","ps-sm-3":"_ps-sm-3_1udmp_9637","ps-sm-4":"_ps-sm-4_1udmp_9640","ps-sm-5":"_ps-sm-5_1udmp_9643","gap-sm-0":"_gap-sm-0_1udmp_9646","gap-sm-1":"_gap-sm-1_1udmp_9649","gap-sm-2":"_gap-sm-2_1udmp_9652","gap-sm-3":"_gap-sm-3_1udmp_9655","gap-sm-4":"_gap-sm-4_1udmp_9658","gap-sm-5":"_gap-sm-5_1udmp_9661","row-gap-sm-0":"_row-gap-sm-0_1udmp_9664","row-gap-sm-1":"_row-gap-sm-1_1udmp_9667","row-gap-sm-2":"_row-gap-sm-2_1udmp_9670","row-gap-sm-3":"_row-gap-sm-3_1udmp_9673","row-gap-sm-4":"_row-gap-sm-4_1udmp_9676","row-gap-sm-5":"_row-gap-sm-5_1udmp_9679","column-gap-sm-0":"_column-gap-sm-0_1udmp_9682","column-gap-sm-1":"_column-gap-sm-1_1udmp_9685","column-gap-sm-2":"_column-gap-sm-2_1udmp_9688","column-gap-sm-3":"_column-gap-sm-3_1udmp_9691","column-gap-sm-4":"_column-gap-sm-4_1udmp_9694","column-gap-sm-5":"_column-gap-sm-5_1udmp_9697","text-sm-start":"_text-sm-start_1udmp_9700","text-sm-end":"_text-sm-end_1udmp_9703","text-sm-center":"_text-sm-center_1udmp_9706","float-md-start":"_float-md-start_1udmp_9711","float-md-end":"_float-md-end_1udmp_9714","float-md-none":"_float-md-none_1udmp_9717","object-fit-md-contain":"_object-fit-md-contain_1udmp_9720","object-fit-md-cover":"_object-fit-md-cover_1udmp_9723","object-fit-md-fill":"_object-fit-md-fill_1udmp_9726","object-fit-md-scale":"_object-fit-md-scale_1udmp_9729","object-fit-md-none":"_object-fit-md-none_1udmp_9732","d-md-inline":"_d-md-inline_1udmp_9735","d-md-inline-block":"_d-md-inline-block_1udmp_9738","d-md-block":"_d-md-block_1udmp_9741","d-md-grid":"_d-md-grid_1udmp_9744","d-md-inline-grid":"_d-md-inline-grid_1udmp_9747","d-md-table":"_d-md-table_1udmp_9750","d-md-table-row":"_d-md-table-row_1udmp_9753","d-md-table-cell":"_d-md-table-cell_1udmp_9756","d-md-flex":"_d-md-flex_1udmp_9759","d-md-inline-flex":"_d-md-inline-flex_1udmp_9762","d-md-none":"_d-md-none_1udmp_9765","flex-md-fill":"_flex-md-fill_1udmp_9768","flex-md-row":"_flex-md-row_1udmp_9771","flex-md-column":"_flex-md-column_1udmp_9774","flex-md-row-reverse":"_flex-md-row-reverse_1udmp_9777","flex-md-column-reverse":"_flex-md-column-reverse_1udmp_9780","flex-md-grow-0":"_flex-md-grow-0_1udmp_9783","flex-md-grow-1":"_flex-md-grow-1_1udmp_9786","flex-md-shrink-0":"_flex-md-shrink-0_1udmp_9789","flex-md-shrink-1":"_flex-md-shrink-1_1udmp_9792","flex-md-wrap":"_flex-md-wrap_1udmp_9795","flex-md-nowrap":"_flex-md-nowrap_1udmp_9798","flex-md-wrap-reverse":"_flex-md-wrap-reverse_1udmp_9801","justify-content-md-start":"_justify-content-md-start_1udmp_9804","justify-content-md-end":"_justify-content-md-end_1udmp_9807","justify-content-md-center":"_justify-content-md-center_1udmp_9810","justify-content-md-between":"_justify-content-md-between_1udmp_9813","justify-content-md-around":"_justify-content-md-around_1udmp_9816","justify-content-md-evenly":"_justify-content-md-evenly_1udmp_9819","align-items-md-start":"_align-items-md-start_1udmp_9822","align-items-md-end":"_align-items-md-end_1udmp_9825","align-items-md-center":"_align-items-md-center_1udmp_9828","align-items-md-baseline":"_align-items-md-baseline_1udmp_9831","align-items-md-stretch":"_align-items-md-stretch_1udmp_9834","align-content-md-start":"_align-content-md-start_1udmp_9837","align-content-md-end":"_align-content-md-end_1udmp_9840","align-content-md-center":"_align-content-md-center_1udmp_9843","align-content-md-between":"_align-content-md-between_1udmp_9846","align-content-md-around":"_align-content-md-around_1udmp_9849","align-content-md-stretch":"_align-content-md-stretch_1udmp_9852","align-self-md-auto":"_align-self-md-auto_1udmp_9855","align-self-md-start":"_align-self-md-start_1udmp_9858","align-self-md-end":"_align-self-md-end_1udmp_9861","align-self-md-center":"_align-self-md-center_1udmp_9864","align-self-md-baseline":"_align-self-md-baseline_1udmp_9867","align-self-md-stretch":"_align-self-md-stretch_1udmp_9870","order-md-first":"_order-md-first_1udmp_9873","order-md-0":"_order-md-0_1udmp_9876","order-md-1":"_order-md-1_1udmp_9879","order-md-2":"_order-md-2_1udmp_9882","order-md-3":"_order-md-3_1udmp_9885","order-md-4":"_order-md-4_1udmp_9888","order-md-5":"_order-md-5_1udmp_9891","order-md-last":"_order-md-last_1udmp_9894","m-md-0":"_m-md-0_1udmp_9897","m-md-1":"_m-md-1_1udmp_9900","m-md-2":"_m-md-2_1udmp_9903","m-md-3":"_m-md-3_1udmp_9906","m-md-4":"_m-md-4_1udmp_9909","m-md-5":"_m-md-5_1udmp_9912","m-md-auto":"_m-md-auto_1udmp_9915","mx-md-0":"_mx-md-0_1udmp_9918","mx-md-1":"_mx-md-1_1udmp_9922","mx-md-2":"_mx-md-2_1udmp_9926","mx-md-3":"_mx-md-3_1udmp_9930","mx-md-4":"_mx-md-4_1udmp_9934","mx-md-5":"_mx-md-5_1udmp_9938","mx-md-auto":"_mx-md-auto_1udmp_9942","my-md-0":"_my-md-0_1udmp_9946","my-md-1":"_my-md-1_1udmp_9950","my-md-2":"_my-md-2_1udmp_9954","my-md-3":"_my-md-3_1udmp_9958","my-md-4":"_my-md-4_1udmp_9962","my-md-5":"_my-md-5_1udmp_9966","my-md-auto":"_my-md-auto_1udmp_9970","mt-md-0":"_mt-md-0_1udmp_9974","mt-md-1":"_mt-md-1_1udmp_9977","mt-md-2":"_mt-md-2_1udmp_9980","mt-md-3":"_mt-md-3_1udmp_9983","mt-md-4":"_mt-md-4_1udmp_9986","mt-md-5":"_mt-md-5_1udmp_9989","mt-md-auto":"_mt-md-auto_1udmp_9992","me-md-0":"_me-md-0_1udmp_9995","me-md-1":"_me-md-1_1udmp_9998","me-md-2":"_me-md-2_1udmp_10001","me-md-3":"_me-md-3_1udmp_10004","me-md-4":"_me-md-4_1udmp_10007","me-md-5":"_me-md-5_1udmp_10010","me-md-auto":"_me-md-auto_1udmp_10013","mb-md-0":"_mb-md-0_1udmp_10016","mb-md-1":"_mb-md-1_1udmp_10019","mb-md-2":"_mb-md-2_1udmp_10022","mb-md-3":"_mb-md-3_1udmp_10025","mb-md-4":"_mb-md-4_1udmp_10028","mb-md-5":"_mb-md-5_1udmp_10031","mb-md-auto":"_mb-md-auto_1udmp_10034","ms-md-0":"_ms-md-0_1udmp_10037","ms-md-1":"_ms-md-1_1udmp_10040","ms-md-2":"_ms-md-2_1udmp_10043","ms-md-3":"_ms-md-3_1udmp_10046","ms-md-4":"_ms-md-4_1udmp_10049","ms-md-5":"_ms-md-5_1udmp_10052","ms-md-auto":"_ms-md-auto_1udmp_10055","p-md-0":"_p-md-0_1udmp_10058","p-md-1":"_p-md-1_1udmp_10061","p-md-2":"_p-md-2_1udmp_10064","p-md-3":"_p-md-3_1udmp_10067","p-md-4":"_p-md-4_1udmp_10070","p-md-5":"_p-md-5_1udmp_10073","px-md-0":"_px-md-0_1udmp_10076","px-md-1":"_px-md-1_1udmp_10080","px-md-2":"_px-md-2_1udmp_10084","px-md-3":"_px-md-3_1udmp_10088","px-md-4":"_px-md-4_1udmp_10092","px-md-5":"_px-md-5_1udmp_10096","py-md-0":"_py-md-0_1udmp_10100","py-md-1":"_py-md-1_1udmp_10104","py-md-2":"_py-md-2_1udmp_10108","py-md-3":"_py-md-3_1udmp_10112","py-md-4":"_py-md-4_1udmp_10116","py-md-5":"_py-md-5_1udmp_10120","pt-md-0":"_pt-md-0_1udmp_10124","pt-md-1":"_pt-md-1_1udmp_10127","pt-md-2":"_pt-md-2_1udmp_10130","pt-md-3":"_pt-md-3_1udmp_10133","pt-md-4":"_pt-md-4_1udmp_10136","pt-md-5":"_pt-md-5_1udmp_10139","pe-md-0":"_pe-md-0_1udmp_10142","pe-md-1":"_pe-md-1_1udmp_10145","pe-md-2":"_pe-md-2_1udmp_10148","pe-md-3":"_pe-md-3_1udmp_10151","pe-md-4":"_pe-md-4_1udmp_10154","pe-md-5":"_pe-md-5_1udmp_10157","pb-md-0":"_pb-md-0_1udmp_10160","pb-md-1":"_pb-md-1_1udmp_10163","pb-md-2":"_pb-md-2_1udmp_10166","pb-md-3":"_pb-md-3_1udmp_10169","pb-md-4":"_pb-md-4_1udmp_10172","pb-md-5":"_pb-md-5_1udmp_10175","ps-md-0":"_ps-md-0_1udmp_10178","ps-md-1":"_ps-md-1_1udmp_10181","ps-md-2":"_ps-md-2_1udmp_10184","ps-md-3":"_ps-md-3_1udmp_10187","ps-md-4":"_ps-md-4_1udmp_10190","ps-md-5":"_ps-md-5_1udmp_10193","gap-md-0":"_gap-md-0_1udmp_10196","gap-md-1":"_gap-md-1_1udmp_10199","gap-md-2":"_gap-md-2_1udmp_10202","gap-md-3":"_gap-md-3_1udmp_10205","gap-md-4":"_gap-md-4_1udmp_10208","gap-md-5":"_gap-md-5_1udmp_10211","row-gap-md-0":"_row-gap-md-0_1udmp_10214","row-gap-md-1":"_row-gap-md-1_1udmp_10217","row-gap-md-2":"_row-gap-md-2_1udmp_10220","row-gap-md-3":"_row-gap-md-3_1udmp_10223","row-gap-md-4":"_row-gap-md-4_1udmp_10226","row-gap-md-5":"_row-gap-md-5_1udmp_10229","column-gap-md-0":"_column-gap-md-0_1udmp_10232","column-gap-md-1":"_column-gap-md-1_1udmp_10235","column-gap-md-2":"_column-gap-md-2_1udmp_10238","column-gap-md-3":"_column-gap-md-3_1udmp_10241","column-gap-md-4":"_column-gap-md-4_1udmp_10244","column-gap-md-5":"_column-gap-md-5_1udmp_10247","text-md-start":"_text-md-start_1udmp_10250","text-md-end":"_text-md-end_1udmp_10253","text-md-center":"_text-md-center_1udmp_10256","float-lg-start":"_float-lg-start_1udmp_10261","float-lg-end":"_float-lg-end_1udmp_10264","float-lg-none":"_float-lg-none_1udmp_10267","object-fit-lg-contain":"_object-fit-lg-contain_1udmp_10270","object-fit-lg-cover":"_object-fit-lg-cover_1udmp_10273","object-fit-lg-fill":"_object-fit-lg-fill_1udmp_10276","object-fit-lg-scale":"_object-fit-lg-scale_1udmp_10279","object-fit-lg-none":"_object-fit-lg-none_1udmp_10282","d-lg-inline":"_d-lg-inline_1udmp_10285","d-lg-inline-block":"_d-lg-inline-block_1udmp_10288","d-lg-block":"_d-lg-block_1udmp_10291","d-lg-grid":"_d-lg-grid_1udmp_10294","d-lg-inline-grid":"_d-lg-inline-grid_1udmp_10297","d-lg-table":"_d-lg-table_1udmp_10300","d-lg-table-row":"_d-lg-table-row_1udmp_10303","d-lg-table-cell":"_d-lg-table-cell_1udmp_10306","d-lg-flex":"_d-lg-flex_1udmp_10309","d-lg-inline-flex":"_d-lg-inline-flex_1udmp_10312","d-lg-none":"_d-lg-none_1udmp_10315","flex-lg-fill":"_flex-lg-fill_1udmp_10318","flex-lg-row":"_flex-lg-row_1udmp_10321","flex-lg-column":"_flex-lg-column_1udmp_10324","flex-lg-row-reverse":"_flex-lg-row-reverse_1udmp_10327","flex-lg-column-reverse":"_flex-lg-column-reverse_1udmp_10330","flex-lg-grow-0":"_flex-lg-grow-0_1udmp_10333","flex-lg-grow-1":"_flex-lg-grow-1_1udmp_10336","flex-lg-shrink-0":"_flex-lg-shrink-0_1udmp_10339","flex-lg-shrink-1":"_flex-lg-shrink-1_1udmp_10342","flex-lg-wrap":"_flex-lg-wrap_1udmp_10345","flex-lg-nowrap":"_flex-lg-nowrap_1udmp_10348","flex-lg-wrap-reverse":"_flex-lg-wrap-reverse_1udmp_10351","justify-content-lg-start":"_justify-content-lg-start_1udmp_10354","justify-content-lg-end":"_justify-content-lg-end_1udmp_10357","justify-content-lg-center":"_justify-content-lg-center_1udmp_10360","justify-content-lg-between":"_justify-content-lg-between_1udmp_10363","justify-content-lg-around":"_justify-content-lg-around_1udmp_10366","justify-content-lg-evenly":"_justify-content-lg-evenly_1udmp_10369","align-items-lg-start":"_align-items-lg-start_1udmp_10372","align-items-lg-end":"_align-items-lg-end_1udmp_10375","align-items-lg-center":"_align-items-lg-center_1udmp_10378","align-items-lg-baseline":"_align-items-lg-baseline_1udmp_10381","align-items-lg-stretch":"_align-items-lg-stretch_1udmp_10384","align-content-lg-start":"_align-content-lg-start_1udmp_10387","align-content-lg-end":"_align-content-lg-end_1udmp_10390","align-content-lg-center":"_align-content-lg-center_1udmp_10393","align-content-lg-between":"_align-content-lg-between_1udmp_10396","align-content-lg-around":"_align-content-lg-around_1udmp_10399","align-content-lg-stretch":"_align-content-lg-stretch_1udmp_10402","align-self-lg-auto":"_align-self-lg-auto_1udmp_10405","align-self-lg-start":"_align-self-lg-start_1udmp_10408","align-self-lg-end":"_align-self-lg-end_1udmp_10411","align-self-lg-center":"_align-self-lg-center_1udmp_10414","align-self-lg-baseline":"_align-self-lg-baseline_1udmp_10417","align-self-lg-stretch":"_align-self-lg-stretch_1udmp_10420","order-lg-first":"_order-lg-first_1udmp_10423","order-lg-0":"_order-lg-0_1udmp_10426","order-lg-1":"_order-lg-1_1udmp_10429","order-lg-2":"_order-lg-2_1udmp_10432","order-lg-3":"_order-lg-3_1udmp_10435","order-lg-4":"_order-lg-4_1udmp_10438","order-lg-5":"_order-lg-5_1udmp_10441","order-lg-last":"_order-lg-last_1udmp_10444","m-lg-0":"_m-lg-0_1udmp_10447","m-lg-1":"_m-lg-1_1udmp_10450","m-lg-2":"_m-lg-2_1udmp_10453","m-lg-3":"_m-lg-3_1udmp_10456","m-lg-4":"_m-lg-4_1udmp_10459","m-lg-5":"_m-lg-5_1udmp_10462","m-lg-auto":"_m-lg-auto_1udmp_10465","mx-lg-0":"_mx-lg-0_1udmp_10468","mx-lg-1":"_mx-lg-1_1udmp_10472","mx-lg-2":"_mx-lg-2_1udmp_10476","mx-lg-3":"_mx-lg-3_1udmp_10480","mx-lg-4":"_mx-lg-4_1udmp_10484","mx-lg-5":"_mx-lg-5_1udmp_10488","mx-lg-auto":"_mx-lg-auto_1udmp_10492","my-lg-0":"_my-lg-0_1udmp_10496","my-lg-1":"_my-lg-1_1udmp_10500","my-lg-2":"_my-lg-2_1udmp_10504","my-lg-3":"_my-lg-3_1udmp_10508","my-lg-4":"_my-lg-4_1udmp_10512","my-lg-5":"_my-lg-5_1udmp_10516","my-lg-auto":"_my-lg-auto_1udmp_10520","mt-lg-0":"_mt-lg-0_1udmp_10524","mt-lg-1":"_mt-lg-1_1udmp_10527","mt-lg-2":"_mt-lg-2_1udmp_10530","mt-lg-3":"_mt-lg-3_1udmp_10533","mt-lg-4":"_mt-lg-4_1udmp_10536","mt-lg-5":"_mt-lg-5_1udmp_10539","mt-lg-auto":"_mt-lg-auto_1udmp_10542","me-lg-0":"_me-lg-0_1udmp_10545","me-lg-1":"_me-lg-1_1udmp_10548","me-lg-2":"_me-lg-2_1udmp_10551","me-lg-3":"_me-lg-3_1udmp_10554","me-lg-4":"_me-lg-4_1udmp_10557","me-lg-5":"_me-lg-5_1udmp_10560","me-lg-auto":"_me-lg-auto_1udmp_10563","mb-lg-0":"_mb-lg-0_1udmp_10566","mb-lg-1":"_mb-lg-1_1udmp_10569","mb-lg-2":"_mb-lg-2_1udmp_10572","mb-lg-3":"_mb-lg-3_1udmp_10575","mb-lg-4":"_mb-lg-4_1udmp_10578","mb-lg-5":"_mb-lg-5_1udmp_10581","mb-lg-auto":"_mb-lg-auto_1udmp_10584","ms-lg-0":"_ms-lg-0_1udmp_10587","ms-lg-1":"_ms-lg-1_1udmp_10590","ms-lg-2":"_ms-lg-2_1udmp_10593","ms-lg-3":"_ms-lg-3_1udmp_10596","ms-lg-4":"_ms-lg-4_1udmp_10599","ms-lg-5":"_ms-lg-5_1udmp_10602","ms-lg-auto":"_ms-lg-auto_1udmp_10605","p-lg-0":"_p-lg-0_1udmp_10608","p-lg-1":"_p-lg-1_1udmp_10611","p-lg-2":"_p-lg-2_1udmp_10614","p-lg-3":"_p-lg-3_1udmp_10617","p-lg-4":"_p-lg-4_1udmp_10620","p-lg-5":"_p-lg-5_1udmp_10623","px-lg-0":"_px-lg-0_1udmp_10626","px-lg-1":"_px-lg-1_1udmp_10630","px-lg-2":"_px-lg-2_1udmp_10634","px-lg-3":"_px-lg-3_1udmp_10638","px-lg-4":"_px-lg-4_1udmp_10642","px-lg-5":"_px-lg-5_1udmp_10646","py-lg-0":"_py-lg-0_1udmp_10650","py-lg-1":"_py-lg-1_1udmp_10654","py-lg-2":"_py-lg-2_1udmp_10658","py-lg-3":"_py-lg-3_1udmp_10662","py-lg-4":"_py-lg-4_1udmp_10666","py-lg-5":"_py-lg-5_1udmp_10670","pt-lg-0":"_pt-lg-0_1udmp_10674","pt-lg-1":"_pt-lg-1_1udmp_10677","pt-lg-2":"_pt-lg-2_1udmp_10680","pt-lg-3":"_pt-lg-3_1udmp_10683","pt-lg-4":"_pt-lg-4_1udmp_10686","pt-lg-5":"_pt-lg-5_1udmp_10689","pe-lg-0":"_pe-lg-0_1udmp_10692","pe-lg-1":"_pe-lg-1_1udmp_10695","pe-lg-2":"_pe-lg-2_1udmp_10698","pe-lg-3":"_pe-lg-3_1udmp_10701","pe-lg-4":"_pe-lg-4_1udmp_10704","pe-lg-5":"_pe-lg-5_1udmp_10707","pb-lg-0":"_pb-lg-0_1udmp_10710","pb-lg-1":"_pb-lg-1_1udmp_10713","pb-lg-2":"_pb-lg-2_1udmp_10716","pb-lg-3":"_pb-lg-3_1udmp_10719","pb-lg-4":"_pb-lg-4_1udmp_10722","pb-lg-5":"_pb-lg-5_1udmp_10725","ps-lg-0":"_ps-lg-0_1udmp_10728","ps-lg-1":"_ps-lg-1_1udmp_10731","ps-lg-2":"_ps-lg-2_1udmp_10734","ps-lg-3":"_ps-lg-3_1udmp_10737","ps-lg-4":"_ps-lg-4_1udmp_10740","ps-lg-5":"_ps-lg-5_1udmp_10743","gap-lg-0":"_gap-lg-0_1udmp_10746","gap-lg-1":"_gap-lg-1_1udmp_10749","gap-lg-2":"_gap-lg-2_1udmp_10752","gap-lg-3":"_gap-lg-3_1udmp_10755","gap-lg-4":"_gap-lg-4_1udmp_10758","gap-lg-5":"_gap-lg-5_1udmp_10761","row-gap-lg-0":"_row-gap-lg-0_1udmp_10764","row-gap-lg-1":"_row-gap-lg-1_1udmp_10767","row-gap-lg-2":"_row-gap-lg-2_1udmp_10770","row-gap-lg-3":"_row-gap-lg-3_1udmp_10773","row-gap-lg-4":"_row-gap-lg-4_1udmp_10776","row-gap-lg-5":"_row-gap-lg-5_1udmp_10779","column-gap-lg-0":"_column-gap-lg-0_1udmp_10782","column-gap-lg-1":"_column-gap-lg-1_1udmp_10785","column-gap-lg-2":"_column-gap-lg-2_1udmp_10788","column-gap-lg-3":"_column-gap-lg-3_1udmp_10791","column-gap-lg-4":"_column-gap-lg-4_1udmp_10794","column-gap-lg-5":"_column-gap-lg-5_1udmp_10797","text-lg-start":"_text-lg-start_1udmp_10800","text-lg-end":"_text-lg-end_1udmp_10803","text-lg-center":"_text-lg-center_1udmp_10806","float-xl-start":"_float-xl-start_1udmp_10811","float-xl-end":"_float-xl-end_1udmp_10814","float-xl-none":"_float-xl-none_1udmp_10817","object-fit-xl-contain":"_object-fit-xl-contain_1udmp_10820","object-fit-xl-cover":"_object-fit-xl-cover_1udmp_10823","object-fit-xl-fill":"_object-fit-xl-fill_1udmp_10826","object-fit-xl-scale":"_object-fit-xl-scale_1udmp_10829","object-fit-xl-none":"_object-fit-xl-none_1udmp_10832","d-xl-inline":"_d-xl-inline_1udmp_10835","d-xl-inline-block":"_d-xl-inline-block_1udmp_10838","d-xl-block":"_d-xl-block_1udmp_10841","d-xl-grid":"_d-xl-grid_1udmp_10844","d-xl-inline-grid":"_d-xl-inline-grid_1udmp_10847","d-xl-table":"_d-xl-table_1udmp_10850","d-xl-table-row":"_d-xl-table-row_1udmp_10853","d-xl-table-cell":"_d-xl-table-cell_1udmp_10856","d-xl-flex":"_d-xl-flex_1udmp_10859","d-xl-inline-flex":"_d-xl-inline-flex_1udmp_10862","d-xl-none":"_d-xl-none_1udmp_10865","flex-xl-fill":"_flex-xl-fill_1udmp_10868","flex-xl-row":"_flex-xl-row_1udmp_10871","flex-xl-column":"_flex-xl-column_1udmp_10874","flex-xl-row-reverse":"_flex-xl-row-reverse_1udmp_10877","flex-xl-column-reverse":"_flex-xl-column-reverse_1udmp_10880","flex-xl-grow-0":"_flex-xl-grow-0_1udmp_10883","flex-xl-grow-1":"_flex-xl-grow-1_1udmp_10886","flex-xl-shrink-0":"_flex-xl-shrink-0_1udmp_10889","flex-xl-shrink-1":"_flex-xl-shrink-1_1udmp_10892","flex-xl-wrap":"_flex-xl-wrap_1udmp_10895","flex-xl-nowrap":"_flex-xl-nowrap_1udmp_10898","flex-xl-wrap-reverse":"_flex-xl-wrap-reverse_1udmp_10901","justify-content-xl-start":"_justify-content-xl-start_1udmp_10904","justify-content-xl-end":"_justify-content-xl-end_1udmp_10907","justify-content-xl-center":"_justify-content-xl-center_1udmp_10910","justify-content-xl-between":"_justify-content-xl-between_1udmp_10913","justify-content-xl-around":"_justify-content-xl-around_1udmp_10916","justify-content-xl-evenly":"_justify-content-xl-evenly_1udmp_10919","align-items-xl-start":"_align-items-xl-start_1udmp_10922","align-items-xl-end":"_align-items-xl-end_1udmp_10925","align-items-xl-center":"_align-items-xl-center_1udmp_10928","align-items-xl-baseline":"_align-items-xl-baseline_1udmp_10931","align-items-xl-stretch":"_align-items-xl-stretch_1udmp_10934","align-content-xl-start":"_align-content-xl-start_1udmp_10937","align-content-xl-end":"_align-content-xl-end_1udmp_10940","align-content-xl-center":"_align-content-xl-center_1udmp_10943","align-content-xl-between":"_align-content-xl-between_1udmp_10946","align-content-xl-around":"_align-content-xl-around_1udmp_10949","align-content-xl-stretch":"_align-content-xl-stretch_1udmp_10952","align-self-xl-auto":"_align-self-xl-auto_1udmp_10955","align-self-xl-start":"_align-self-xl-start_1udmp_10958","align-self-xl-end":"_align-self-xl-end_1udmp_10961","align-self-xl-center":"_align-self-xl-center_1udmp_10964","align-self-xl-baseline":"_align-self-xl-baseline_1udmp_10967","align-self-xl-stretch":"_align-self-xl-stretch_1udmp_10970","order-xl-first":"_order-xl-first_1udmp_10973","order-xl-0":"_order-xl-0_1udmp_10976","order-xl-1":"_order-xl-1_1udmp_10979","order-xl-2":"_order-xl-2_1udmp_10982","order-xl-3":"_order-xl-3_1udmp_10985","order-xl-4":"_order-xl-4_1udmp_10988","order-xl-5":"_order-xl-5_1udmp_10991","order-xl-last":"_order-xl-last_1udmp_10994","m-xl-0":"_m-xl-0_1udmp_10997","m-xl-1":"_m-xl-1_1udmp_11000","m-xl-2":"_m-xl-2_1udmp_11003","m-xl-3":"_m-xl-3_1udmp_11006","m-xl-4":"_m-xl-4_1udmp_11009","m-xl-5":"_m-xl-5_1udmp_11012","m-xl-auto":"_m-xl-auto_1udmp_11015","mx-xl-0":"_mx-xl-0_1udmp_11018","mx-xl-1":"_mx-xl-1_1udmp_11022","mx-xl-2":"_mx-xl-2_1udmp_11026","mx-xl-3":"_mx-xl-3_1udmp_11030","mx-xl-4":"_mx-xl-4_1udmp_11034","mx-xl-5":"_mx-xl-5_1udmp_11038","mx-xl-auto":"_mx-xl-auto_1udmp_11042","my-xl-0":"_my-xl-0_1udmp_11046","my-xl-1":"_my-xl-1_1udmp_11050","my-xl-2":"_my-xl-2_1udmp_11054","my-xl-3":"_my-xl-3_1udmp_11058","my-xl-4":"_my-xl-4_1udmp_11062","my-xl-5":"_my-xl-5_1udmp_11066","my-xl-auto":"_my-xl-auto_1udmp_11070","mt-xl-0":"_mt-xl-0_1udmp_11074","mt-xl-1":"_mt-xl-1_1udmp_11077","mt-xl-2":"_mt-xl-2_1udmp_11080","mt-xl-3":"_mt-xl-3_1udmp_11083","mt-xl-4":"_mt-xl-4_1udmp_11086","mt-xl-5":"_mt-xl-5_1udmp_11089","mt-xl-auto":"_mt-xl-auto_1udmp_11092","me-xl-0":"_me-xl-0_1udmp_11095","me-xl-1":"_me-xl-1_1udmp_11098","me-xl-2":"_me-xl-2_1udmp_11101","me-xl-3":"_me-xl-3_1udmp_11104","me-xl-4":"_me-xl-4_1udmp_11107","me-xl-5":"_me-xl-5_1udmp_11110","me-xl-auto":"_me-xl-auto_1udmp_11113","mb-xl-0":"_mb-xl-0_1udmp_11116","mb-xl-1":"_mb-xl-1_1udmp_11119","mb-xl-2":"_mb-xl-2_1udmp_11122","mb-xl-3":"_mb-xl-3_1udmp_11125","mb-xl-4":"_mb-xl-4_1udmp_11128","mb-xl-5":"_mb-xl-5_1udmp_11131","mb-xl-auto":"_mb-xl-auto_1udmp_11134","ms-xl-0":"_ms-xl-0_1udmp_11137","ms-xl-1":"_ms-xl-1_1udmp_11140","ms-xl-2":"_ms-xl-2_1udmp_11143","ms-xl-3":"_ms-xl-3_1udmp_11146","ms-xl-4":"_ms-xl-4_1udmp_11149","ms-xl-5":"_ms-xl-5_1udmp_11152","ms-xl-auto":"_ms-xl-auto_1udmp_11155","p-xl-0":"_p-xl-0_1udmp_11158","p-xl-1":"_p-xl-1_1udmp_11161","p-xl-2":"_p-xl-2_1udmp_11164","p-xl-3":"_p-xl-3_1udmp_11167","p-xl-4":"_p-xl-4_1udmp_11170","p-xl-5":"_p-xl-5_1udmp_11173","px-xl-0":"_px-xl-0_1udmp_11176","px-xl-1":"_px-xl-1_1udmp_11180","px-xl-2":"_px-xl-2_1udmp_11184","px-xl-3":"_px-xl-3_1udmp_11188","px-xl-4":"_px-xl-4_1udmp_11192","px-xl-5":"_px-xl-5_1udmp_11196","py-xl-0":"_py-xl-0_1udmp_11200","py-xl-1":"_py-xl-1_1udmp_11204","py-xl-2":"_py-xl-2_1udmp_11208","py-xl-3":"_py-xl-3_1udmp_11212","py-xl-4":"_py-xl-4_1udmp_11216","py-xl-5":"_py-xl-5_1udmp_11220","pt-xl-0":"_pt-xl-0_1udmp_11224","pt-xl-1":"_pt-xl-1_1udmp_11227","pt-xl-2":"_pt-xl-2_1udmp_11230","pt-xl-3":"_pt-xl-3_1udmp_11233","pt-xl-4":"_pt-xl-4_1udmp_11236","pt-xl-5":"_pt-xl-5_1udmp_11239","pe-xl-0":"_pe-xl-0_1udmp_11242","pe-xl-1":"_pe-xl-1_1udmp_11245","pe-xl-2":"_pe-xl-2_1udmp_11248","pe-xl-3":"_pe-xl-3_1udmp_11251","pe-xl-4":"_pe-xl-4_1udmp_11254","pe-xl-5":"_pe-xl-5_1udmp_11257","pb-xl-0":"_pb-xl-0_1udmp_11260","pb-xl-1":"_pb-xl-1_1udmp_11263","pb-xl-2":"_pb-xl-2_1udmp_11266","pb-xl-3":"_pb-xl-3_1udmp_11269","pb-xl-4":"_pb-xl-4_1udmp_11272","pb-xl-5":"_pb-xl-5_1udmp_11275","ps-xl-0":"_ps-xl-0_1udmp_11278","ps-xl-1":"_ps-xl-1_1udmp_11281","ps-xl-2":"_ps-xl-2_1udmp_11284","ps-xl-3":"_ps-xl-3_1udmp_11287","ps-xl-4":"_ps-xl-4_1udmp_11290","ps-xl-5":"_ps-xl-5_1udmp_11293","gap-xl-0":"_gap-xl-0_1udmp_11296","gap-xl-1":"_gap-xl-1_1udmp_11299","gap-xl-2":"_gap-xl-2_1udmp_11302","gap-xl-3":"_gap-xl-3_1udmp_11305","gap-xl-4":"_gap-xl-4_1udmp_11308","gap-xl-5":"_gap-xl-5_1udmp_11311","row-gap-xl-0":"_row-gap-xl-0_1udmp_11314","row-gap-xl-1":"_row-gap-xl-1_1udmp_11317","row-gap-xl-2":"_row-gap-xl-2_1udmp_11320","row-gap-xl-3":"_row-gap-xl-3_1udmp_11323","row-gap-xl-4":"_row-gap-xl-4_1udmp_11326","row-gap-xl-5":"_row-gap-xl-5_1udmp_11329","column-gap-xl-0":"_column-gap-xl-0_1udmp_11332","column-gap-xl-1":"_column-gap-xl-1_1udmp_11335","column-gap-xl-2":"_column-gap-xl-2_1udmp_11338","column-gap-xl-3":"_column-gap-xl-3_1udmp_11341","column-gap-xl-4":"_column-gap-xl-4_1udmp_11344","column-gap-xl-5":"_column-gap-xl-5_1udmp_11347","text-xl-start":"_text-xl-start_1udmp_11350","text-xl-end":"_text-xl-end_1udmp_11353","text-xl-center":"_text-xl-center_1udmp_11356","float-xxl-start":"_float-xxl-start_1udmp_11361","float-xxl-end":"_float-xxl-end_1udmp_11364","float-xxl-none":"_float-xxl-none_1udmp_11367","object-fit-xxl-contain":"_object-fit-xxl-contain_1udmp_11370","object-fit-xxl-cover":"_object-fit-xxl-cover_1udmp_11373","object-fit-xxl-fill":"_object-fit-xxl-fill_1udmp_11376","object-fit-xxl-scale":"_object-fit-xxl-scale_1udmp_11379","object-fit-xxl-none":"_object-fit-xxl-none_1udmp_11382","d-xxl-inline":"_d-xxl-inline_1udmp_11385","d-xxl-inline-block":"_d-xxl-inline-block_1udmp_11388","d-xxl-block":"_d-xxl-block_1udmp_11391","d-xxl-grid":"_d-xxl-grid_1udmp_11394","d-xxl-inline-grid":"_d-xxl-inline-grid_1udmp_11397","d-xxl-table":"_d-xxl-table_1udmp_11400","d-xxl-table-row":"_d-xxl-table-row_1udmp_11403","d-xxl-table-cell":"_d-xxl-table-cell_1udmp_11406","d-xxl-flex":"_d-xxl-flex_1udmp_11409","d-xxl-inline-flex":"_d-xxl-inline-flex_1udmp_11412","d-xxl-none":"_d-xxl-none_1udmp_11415","flex-xxl-fill":"_flex-xxl-fill_1udmp_11418","flex-xxl-row":"_flex-xxl-row_1udmp_11421","flex-xxl-column":"_flex-xxl-column_1udmp_11424","flex-xxl-row-reverse":"_flex-xxl-row-reverse_1udmp_11427","flex-xxl-column-reverse":"_flex-xxl-column-reverse_1udmp_11430","flex-xxl-grow-0":"_flex-xxl-grow-0_1udmp_11433","flex-xxl-grow-1":"_flex-xxl-grow-1_1udmp_11436","flex-xxl-shrink-0":"_flex-xxl-shrink-0_1udmp_11439","flex-xxl-shrink-1":"_flex-xxl-shrink-1_1udmp_11442","flex-xxl-wrap":"_flex-xxl-wrap_1udmp_11445","flex-xxl-nowrap":"_flex-xxl-nowrap_1udmp_11448","flex-xxl-wrap-reverse":"_flex-xxl-wrap-reverse_1udmp_11451","justify-content-xxl-start":"_justify-content-xxl-start_1udmp_11454","justify-content-xxl-end":"_justify-content-xxl-end_1udmp_11457","justify-content-xxl-center":"_justify-content-xxl-center_1udmp_11460","justify-content-xxl-between":"_justify-content-xxl-between_1udmp_11463","justify-content-xxl-around":"_justify-content-xxl-around_1udmp_11466","justify-content-xxl-evenly":"_justify-content-xxl-evenly_1udmp_11469","align-items-xxl-start":"_align-items-xxl-start_1udmp_11472","align-items-xxl-end":"_align-items-xxl-end_1udmp_11475","align-items-xxl-center":"_align-items-xxl-center_1udmp_11478","align-items-xxl-baseline":"_align-items-xxl-baseline_1udmp_11481","align-items-xxl-stretch":"_align-items-xxl-stretch_1udmp_11484","align-content-xxl-start":"_align-content-xxl-start_1udmp_11487","align-content-xxl-end":"_align-content-xxl-end_1udmp_11490","align-content-xxl-center":"_align-content-xxl-center_1udmp_11493","align-content-xxl-between":"_align-content-xxl-between_1udmp_11496","align-content-xxl-around":"_align-content-xxl-around_1udmp_11499","align-content-xxl-stretch":"_align-content-xxl-stretch_1udmp_11502","align-self-xxl-auto":"_align-self-xxl-auto_1udmp_11505","align-self-xxl-start":"_align-self-xxl-start_1udmp_11508","align-self-xxl-end":"_align-self-xxl-end_1udmp_11511","align-self-xxl-center":"_align-self-xxl-center_1udmp_11514","align-self-xxl-baseline":"_align-self-xxl-baseline_1udmp_11517","align-self-xxl-stretch":"_align-self-xxl-stretch_1udmp_11520","order-xxl-first":"_order-xxl-first_1udmp_11523","order-xxl-0":"_order-xxl-0_1udmp_11526","order-xxl-1":"_order-xxl-1_1udmp_11529","order-xxl-2":"_order-xxl-2_1udmp_11532","order-xxl-3":"_order-xxl-3_1udmp_11535","order-xxl-4":"_order-xxl-4_1udmp_11538","order-xxl-5":"_order-xxl-5_1udmp_11541","order-xxl-last":"_order-xxl-last_1udmp_11544","m-xxl-0":"_m-xxl-0_1udmp_11547","m-xxl-1":"_m-xxl-1_1udmp_11550","m-xxl-2":"_m-xxl-2_1udmp_11553","m-xxl-3":"_m-xxl-3_1udmp_11556","m-xxl-4":"_m-xxl-4_1udmp_11559","m-xxl-5":"_m-xxl-5_1udmp_11562","m-xxl-auto":"_m-xxl-auto_1udmp_11565","mx-xxl-0":"_mx-xxl-0_1udmp_11568","mx-xxl-1":"_mx-xxl-1_1udmp_11572","mx-xxl-2":"_mx-xxl-2_1udmp_11576","mx-xxl-3":"_mx-xxl-3_1udmp_11580","mx-xxl-4":"_mx-xxl-4_1udmp_11584","mx-xxl-5":"_mx-xxl-5_1udmp_11588","mx-xxl-auto":"_mx-xxl-auto_1udmp_11592","my-xxl-0":"_my-xxl-0_1udmp_11596","my-xxl-1":"_my-xxl-1_1udmp_11600","my-xxl-2":"_my-xxl-2_1udmp_11604","my-xxl-3":"_my-xxl-3_1udmp_11608","my-xxl-4":"_my-xxl-4_1udmp_11612","my-xxl-5":"_my-xxl-5_1udmp_11616","my-xxl-auto":"_my-xxl-auto_1udmp_11620","mt-xxl-0":"_mt-xxl-0_1udmp_11624","mt-xxl-1":"_mt-xxl-1_1udmp_11627","mt-xxl-2":"_mt-xxl-2_1udmp_11630","mt-xxl-3":"_mt-xxl-3_1udmp_11633","mt-xxl-4":"_mt-xxl-4_1udmp_11636","mt-xxl-5":"_mt-xxl-5_1udmp_11639","mt-xxl-auto":"_mt-xxl-auto_1udmp_11642","me-xxl-0":"_me-xxl-0_1udmp_11645","me-xxl-1":"_me-xxl-1_1udmp_11648","me-xxl-2":"_me-xxl-2_1udmp_11651","me-xxl-3":"_me-xxl-3_1udmp_11654","me-xxl-4":"_me-xxl-4_1udmp_11657","me-xxl-5":"_me-xxl-5_1udmp_11660","me-xxl-auto":"_me-xxl-auto_1udmp_11663","mb-xxl-0":"_mb-xxl-0_1udmp_11666","mb-xxl-1":"_mb-xxl-1_1udmp_11669","mb-xxl-2":"_mb-xxl-2_1udmp_11672","mb-xxl-3":"_mb-xxl-3_1udmp_11675","mb-xxl-4":"_mb-xxl-4_1udmp_11678","mb-xxl-5":"_mb-xxl-5_1udmp_11681","mb-xxl-auto":"_mb-xxl-auto_1udmp_11684","ms-xxl-0":"_ms-xxl-0_1udmp_11687","ms-xxl-1":"_ms-xxl-1_1udmp_11690","ms-xxl-2":"_ms-xxl-2_1udmp_11693","ms-xxl-3":"_ms-xxl-3_1udmp_11696","ms-xxl-4":"_ms-xxl-4_1udmp_11699","ms-xxl-5":"_ms-xxl-5_1udmp_11702","ms-xxl-auto":"_ms-xxl-auto_1udmp_11705","p-xxl-0":"_p-xxl-0_1udmp_11708","p-xxl-1":"_p-xxl-1_1udmp_11711","p-xxl-2":"_p-xxl-2_1udmp_11714","p-xxl-3":"_p-xxl-3_1udmp_11717","p-xxl-4":"_p-xxl-4_1udmp_11720","p-xxl-5":"_p-xxl-5_1udmp_11723","px-xxl-0":"_px-xxl-0_1udmp_11726","px-xxl-1":"_px-xxl-1_1udmp_11730","px-xxl-2":"_px-xxl-2_1udmp_11734","px-xxl-3":"_px-xxl-3_1udmp_11738","px-xxl-4":"_px-xxl-4_1udmp_11742","px-xxl-5":"_px-xxl-5_1udmp_11746","py-xxl-0":"_py-xxl-0_1udmp_11750","py-xxl-1":"_py-xxl-1_1udmp_11754","py-xxl-2":"_py-xxl-2_1udmp_11758","py-xxl-3":"_py-xxl-3_1udmp_11762","py-xxl-4":"_py-xxl-4_1udmp_11766","py-xxl-5":"_py-xxl-5_1udmp_11770","pt-xxl-0":"_pt-xxl-0_1udmp_11774","pt-xxl-1":"_pt-xxl-1_1udmp_11777","pt-xxl-2":"_pt-xxl-2_1udmp_11780","pt-xxl-3":"_pt-xxl-3_1udmp_11783","pt-xxl-4":"_pt-xxl-4_1udmp_11786","pt-xxl-5":"_pt-xxl-5_1udmp_11789","pe-xxl-0":"_pe-xxl-0_1udmp_11792","pe-xxl-1":"_pe-xxl-1_1udmp_11795","pe-xxl-2":"_pe-xxl-2_1udmp_11798","pe-xxl-3":"_pe-xxl-3_1udmp_11801","pe-xxl-4":"_pe-xxl-4_1udmp_11804","pe-xxl-5":"_pe-xxl-5_1udmp_11807","pb-xxl-0":"_pb-xxl-0_1udmp_11810","pb-xxl-1":"_pb-xxl-1_1udmp_11813","pb-xxl-2":"_pb-xxl-2_1udmp_11816","pb-xxl-3":"_pb-xxl-3_1udmp_11819","pb-xxl-4":"_pb-xxl-4_1udmp_11822","pb-xxl-5":"_pb-xxl-5_1udmp_11825","ps-xxl-0":"_ps-xxl-0_1udmp_11828","ps-xxl-1":"_ps-xxl-1_1udmp_11831","ps-xxl-2":"_ps-xxl-2_1udmp_11834","ps-xxl-3":"_ps-xxl-3_1udmp_11837","ps-xxl-4":"_ps-xxl-4_1udmp_11840","ps-xxl-5":"_ps-xxl-5_1udmp_11843","gap-xxl-0":"_gap-xxl-0_1udmp_11846","gap-xxl-1":"_gap-xxl-1_1udmp_11849","gap-xxl-2":"_gap-xxl-2_1udmp_11852","gap-xxl-3":"_gap-xxl-3_1udmp_11855","gap-xxl-4":"_gap-xxl-4_1udmp_11858","gap-xxl-5":"_gap-xxl-5_1udmp_11861","row-gap-xxl-0":"_row-gap-xxl-0_1udmp_11864","row-gap-xxl-1":"_row-gap-xxl-1_1udmp_11867","row-gap-xxl-2":"_row-gap-xxl-2_1udmp_11870","row-gap-xxl-3":"_row-gap-xxl-3_1udmp_11873","row-gap-xxl-4":"_row-gap-xxl-4_1udmp_11876","row-gap-xxl-5":"_row-gap-xxl-5_1udmp_11879","column-gap-xxl-0":"_column-gap-xxl-0_1udmp_11882","column-gap-xxl-1":"_column-gap-xxl-1_1udmp_11885","column-gap-xxl-2":"_column-gap-xxl-2_1udmp_11888","column-gap-xxl-3":"_column-gap-xxl-3_1udmp_11891","column-gap-xxl-4":"_column-gap-xxl-4_1udmp_11894","column-gap-xxl-5":"_column-gap-xxl-5_1udmp_11897","text-xxl-start":"_text-xxl-start_1udmp_11900","text-xxl-end":"_text-xxl-end_1udmp_11903","text-xxl-center":"_text-xxl-center_1udmp_11906","d-print-inline":"_d-print-inline_1udmp_11925","d-print-inline-block":"_d-print-inline-block_1udmp_11928","d-print-block":"_d-print-block_1udmp_11931","d-print-grid":"_d-print-grid_1udmp_11934","d-print-inline-grid":"_d-print-inline-grid_1udmp_11937","d-print-table":"_d-print-table_1udmp_11940","d-print-table-row":"_d-print-table-row_1udmp_11943","d-print-table-cell":"_d-print-table-cell_1udmp_11946","d-print-flex":"_d-print-flex_1udmp_11949","d-print-inline-flex":"_d-print-inline-flex_1udmp_11952","d-print-none":"_d-print-none_1udmp_11955","button-main":"_button-main_1udmp_11959","button-default":"_button-default_1udmp_11979","button-default-outline":"_button-default-outline_1udmp_11990","button-custom-color":"_button-custom-color_1udmp_12001",dash,slideInFromLeft,"pulse-animation":"_pulse-animation_1udmp_1"},Button=({type:it,color:at,isOutline:lt,isBlock:ut,children:ct,className:dt,isLoading:ft,style:mt,disabled:pt,...gt})=>{const vt=jsxRuntimeExports.jsx("button",{type:it,className:`${styles$6["button-main"]} ${lt?styles$6["button-default-outline"]:styles$6["button-default"]} ${dt||""}`,style:{...at&&!pt?{backgroundColor:lt?"#fff":at,color:lt?at:"#fff",border:`1px solid ${at}`}:{},...mt??{}},onMouseEnter:wt=>{at&&!pt&&(lt?(wt.currentTarget.style.backgroundColor=at,wt.currentTarget.style.color="#fff"):(wt.currentTarget.style.backgroundColor="#fff",wt.currentTarget.style.color=at))},onMouseLeave:wt=>{at&&!pt&&(lt?(wt.currentTarget.style.backgroundColor="#fff",wt.currentTarget.style.color=at):(wt.currentTarget.style.backgroundColor=at,wt.currentTarget.style.color="#fff"))},disabled:pt,...gt,children:ft?jsxRuntimeExports.jsx(Spinner$1,{animation:"border",size:"sm"}):ct});return ut?jsxRuntimeExports.jsx("div",{className:"d-grid gap-2",children:vt}):vt},Card=({title:it,subtitle:at,icon:lt,action:ut,forAdmin:ct,forSetup:dt,forDemo:ft,forCurrent:mt,dangerous:pt,children:gt,style:vt,innerStyle:wt,className:yt,disablePadding:bt,disableBackground:Ct,colorSubtitle:Et,...kt})=>{const{t:xt}=useTranslation(["general"]);return jsxRuntimeExports.jsxs("div",{className:`${Ct?"":"bg-white"} shadow ${yt??""}`,style:{borderRadius:"6px",position:"relative",...vt},...kt,children:[ct&&jsxRuntimeExports.jsx("div",{style:{position:"absolute",right:"15px",top:"10px"},children:jsxRuntimeExports.jsx("span",{className:"badge bg-danger",children:xt("general:tags.admin")})}),dt&&jsxRuntimeExports.jsx("div",{style:{position:"absolute",right:"15px",top:"10px"},children:jsxRuntimeExports.jsx("span",{className:"badge bg-warning text-dark",children:xt("general:tags.setup")})}),ft&&jsxRuntimeExports.jsx("div",{style:{position:"absolute",right:"15px",top:"10px"},children:jsxRuntimeExports.jsx("span",{className:"badge text-secondary",style:{backgroundColor:"#b2e3ed"},children:xt("general:tags.demo")})}),mt&&jsxRuntimeExports.jsx("div",{style:{position:"absolute",right:"15px",top:"10px"},children:jsxRuntimeExports.jsx("span",{className:"badge text-dark",style:{backgroundColor:"#b2e3ed"},children:xt("general:tags.current")})}),pt&&jsxRuntimeExports.jsx("div",{style:{position:"absolute",right:"15px",top:"10px"},children:jsxRuntimeExports.jsx("span",{className:"badge bg-danger",children:xt("general:tags.dangerous")})}),it&&jsxRuntimeExports.jsxs("div",{className:"border-bottom px-4 py-2 d-flex justify-content-between",children:[jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center",children:[lt&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center align-items-center",style:{marginRight:"20px",color:"#a6aaad"},children:jsxRuntimeExports.jsx("i",{className:lt,style:{fontSize:"1.4rem"}})}),jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column justify-content-center",children:[jsxRuntimeExports.jsx("h5",{style:{fontWeight:600,marginTop:"7px"},children:it}),at&&jsxRuntimeExports.jsx("div",{style:{marginTop:"-10px",marginLeft:"1px"},className:Et?"":"text-muted",children:jsxRuntimeExports.jsx("small",{style:Et?{color:Et}:{},children:at})})]})]}),ut&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-end align-items-center",children:ut})]}),!it&&ut&&jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"5px",right:"10px"},children:ut}),jsxRuntimeExports.jsx("div",{className:`${bt?"":"p-3 ps-4 pe-4"}`,style:wt,children:gt})]})};var __assign$2=function(){return __assign$2=Object.assign||function(at){for(var lt,ut=1,ct=arguments.length;ut<ct;ut++){lt=arguments[ut];for(var dt in lt)Object.prototype.hasOwnProperty.call(lt,dt)&&(at[dt]=lt[dt])}return at},__assign$2.apply(this,arguments)};function __awaiter$1(it,at,lt,ut){function ct(dt){return dt instanceof lt?dt:new lt(function(ft){ft(dt)})}return new(lt||(lt=Promise))(function(dt,ft){function mt(vt){try{gt(ut.next(vt))}catch(wt){ft(wt)}}function pt(vt){try{gt(ut.throw(vt))}catch(wt){ft(wt)}}function gt(vt){vt.done?dt(vt.value):ct(vt.value).then(mt,pt)}gt((ut=ut.apply(it,at||[])).next())})}function __generator(it,at){var lt={label:0,sent:function(){if(dt[0]&1)throw dt[1];return dt[1]},trys:[],ops:[]},ut,ct,dt,ft;return ft={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(ft[Symbol.iterator]=function(){return this}),ft;function mt(gt){return function(vt){return pt([gt,vt])}}function pt(gt){if(ut)throw new TypeError("Generator is already executing.");for(;ft&&(ft=0,gt[0]&&(lt=0)),lt;)try{if(ut=1,ct&&(dt=gt[0]&2?ct.return:gt[0]?ct.throw||((dt=ct.return)&&dt.call(ct),0):ct.next)&&!(dt=dt.call(ct,gt[1])).done)return dt;switch(ct=0,dt&&(gt=[gt[0]&2,dt.value]),gt[0]){case 0:case 1:dt=gt;break;case 4:return lt.label++,{value:gt[1],done:!1};case 5:lt.label++,ct=gt[1],gt=[0];continue;case 7:gt=lt.ops.pop(),lt.trys.pop();continue;default:if(dt=lt.trys,!(dt=dt.length>0&&dt[dt.length-1])&&(gt[0]===6||gt[0]===2)){lt=0;continue}if(gt[0]===3&&(!dt||gt[1]>dt[0]&&gt[1]<dt[3])){lt.label=gt[1];break}if(gt[0]===6&&lt.label<dt[1]){lt.label=dt[1],dt=gt;break}if(dt&&lt.label<dt[2]){lt.label=dt[2],lt.ops.push(gt);break}dt[2]&&lt.ops.pop(),lt.trys.pop();continue}gt=at.call(it,lt)}catch(vt){gt=[6,vt],ct=0}finally{ut=dt=0}if(gt[0]&5)throw gt[1];return{value:gt[0]?gt[1]:void 0,done:!0}}}function __read(it,at){var lt=typeof Symbol=="function"&&it[Symbol.iterator];if(!lt)return it;var ut=lt.call(it),ct,dt=[],ft;try{for(;(at===void 0||at-- >0)&&!(ct=ut.next()).done;)dt.push(ct.value)}catch(mt){ft={error:mt}}finally{try{ct&&!ct.done&&(lt=ut.return)&&lt.call(ut)}finally{if(ft)throw ft.error}}return dt}function __spreadArray$1(it,at,lt){if(lt||arguments.length===2)for(var ut=0,ct=at.length,dt;ut<ct;ut++)(dt||!(ut in at))&&(dt||(dt=Array.prototype.slice.call(at,0,ut)),dt[ut]=at[ut]);return it.concat(dt||Array.prototype.slice.call(at))}typeof SuppressedError=="function"&&SuppressedError;function memoize$1(it){var at=Object.create(null);return function(lt){return at[lt]===void 0&&(at[lt]=it(lt)),at[lt]}}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(it){return reactPropsRegex.test(it)||it.charCodeAt(0)===111&&it.charCodeAt(1)===110&&it.charCodeAt(2)<91}),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign=Object.assign;function hash(it,at){return charat(it,0)^45?(((at<<2^charat(it,0))<<2^charat(it,1))<<2^charat(it,2))<<2^charat(it,3):0}function trim(it){return it.trim()}function match(it,at){return(it=at.exec(it))?it[0]:it}function replace(it,at,lt){return it.replace(at,lt)}function indexof(it,at){return it.indexOf(at)}function charat(it,at){return it.charCodeAt(at)|0}function substr(it,at,lt){return it.slice(at,lt)}function strlen(it){return it.length}function sizeof(it){return it.length}function append(it,at){return at.push(it),it}function combine(it,at){return it.map(at).join("")}function filter(it,at){return it.filter(function(lt){return!match(lt,at)})}var line=1,column=1,length=0,position=0,character=0,characters="";function node(it,at,lt,ut,ct,dt,ft,mt){return{value:it,root:at,parent:lt,type:ut,props:ct,children:dt,line,column,length:ft,return:"",siblings:mt}}function copy$1(it,at){return assign(node("",null,null,"",null,null,0,it.siblings),it,{length:-it.length},at)}function lift(it){for(;it.root;)it=copy$1(it.root,{children:[it]});append(it,it.siblings)}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position<length?charat(characters,position++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position)}function caret(){return position}function slice$2(it,at){return substr(characters,it,at)}function token(it){switch(it){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(it){return line=column=1,length=strlen(characters=it),position=0,[]}function dealloc(it){return characters="",it}function delimit(it){return trim(slice$2(position-1,delimiter(it===91?it+2:it===40?it+1:it)))}function whitespace(it){for(;(character=peek())&&character<33;)next();return token(it)>2||token(character)>3?"":" "}function escaping(it,at){for(;--at&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$2(it,caret()+(at<6&&peek()==32&&next()==32))}function delimiter(it){for(;next();)switch(character){case it:return position;case 34:case 39:it!==34&&it!==39&&delimiter(character);break;case 40:it===41&&delimiter(it);break;case 92:next();break}return position}function commenter(it,at){for(;next()&&it+character!==47+10;)if(it+character===42+42&&peek()===47)break;return"/*"+slice$2(at,position-1)+"*"+from(it===47?it:next())}function identifier(it){for(;!token(peek());)next();return slice$2(it,position)}function compile(it){return dealloc(parse$1("",null,null,null,[""],it=alloc(it),0,[0],it))}function parse$1(it,at,lt,ut,ct,dt,ft,mt,pt){for(var gt=0,vt=0,wt=ft,yt=0,bt=0,Ct=0,Et=1,kt=1,xt=1,St=0,Ot="",At=ct,Tt=dt,$t=ut,Lt=Ot;kt;)switch(Ct=St,St=next()){case 40:if(Ct!=108&&charat(Lt,wt-1)==58){indexof(Lt+=replace(delimit(St),"&","&\f"),"&\f")!=-1&&(xt=-1);break}case 34:case 39:case 91:Lt+=delimit(St);break;case 9:case 10:case 13:case 32:Lt+=whitespace(Ct);break;case 92:Lt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),at,lt,pt),pt);break;default:Lt+="/"}break;case 123*Et:mt[gt++]=strlen(Lt)*xt;case 125*Et:case 59:case 0:switch(St){case 0:case 125:kt=0;case 59+vt:xt==-1&&(Lt=replace(Lt,/\f/g,"")),bt>0&&strlen(Lt)-wt&&append(bt>32?declaration(Lt+";",ut,lt,wt-1,pt):declaration(replace(Lt," ","")+";",ut,lt,wt-2,pt),pt);break;case 59:Lt+=";";default:if(append($t=ruleset(Lt,at,lt,gt,vt,ct,mt,Ot,At=[],Tt=[],wt,dt),dt),St===123)if(vt===0)parse$1(Lt,at,$t,$t,At,dt,wt,mt,Tt);else switch(yt===99&&charat(Lt,3)===110?100:yt){case 100:case 108:case 109:case 115:parse$1(it,$t,$t,ut&&append(ruleset(it,$t,$t,0,0,ct,mt,Ot,ct,At=[],wt,Tt),Tt),ct,Tt,wt,mt,ut?At:Tt);break;default:parse$1(Lt,$t,$t,$t,[""],Tt,0,mt,Tt)}}gt=vt=bt=0,Et=xt=1,Ot=Lt="",wt=ft;break;case 58:wt=1+strlen(Lt),bt=Ct;default:if(Et<1){if(St==123)--Et;else if(St==125&&Et++==0&&prev()==125)continue}switch(Lt+=from(St),St*Et){case 38:xt=vt>0?1:(Lt+="\f",-1);break;case 44:mt[gt++]=(strlen(Lt)-1)*xt,xt=1;break;case 64:peek()===45&&(Lt+=delimit(next())),yt=peek(),vt=wt=strlen(Ot=Lt+=identifier(caret())),St++;break;case 45:Ct===45&&strlen(Lt)==2&&(Et=0)}}return dt}function ruleset(it,at,lt,ut,ct,dt,ft,mt,pt,gt,vt,wt){for(var yt=ct-1,bt=ct===0?dt:[""],Ct=sizeof(bt),Et=0,kt=0,xt=0;Et<ut;++Et)for(var St=0,Ot=substr(it,yt+1,yt=abs(kt=ft[Et])),At=it;St<Ct;++St)(At=trim(kt>0?bt[St]+" "+Ot:replace(Ot,/&\f/g,bt[St])))&&(pt[xt++]=At);return node(it,at,lt,ct===0?RULESET:mt,pt,gt,vt,wt)}function comment(it,at,lt,ut){return node(it,at,lt,COMMENT,from(char()),substr(it,2,-2),0,ut)}function declaration(it,at,lt,ut,ct){return node(it,at,lt,DECLARATION,substr(it,0,ut),substr(it,ut+1,-1),ut,ct)}function prefix$1(it,at,lt){switch(hash(it,at)){case 5103:return WEBKIT+"print-"+it+it;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+it+it;case 4789:return MOZ+it+it;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+it+MOZ+it+MS+it+it;case 5936:switch(charat(it,at+11)){case 114:return WEBKIT+it+MS+replace(it,/[svh]\w+-[tblr]{2}/,"tb")+it;case 108:return WEBKIT+it+MS+replace(it,/[svh]\w+-[tblr]{2}/,"tb-rl")+it;case 45:return WEBKIT+it+MS+replace(it,/[svh]\w+-[tblr]{2}/,"lr")+it}case 6828:case 4268:case 2903:return WEBKIT+it+MS+it+it;case 6165:return WEBKIT+it+MS+"flex-"+it+it;case 5187:return WEBKIT+it+replace(it,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+it;case 5443:return WEBKIT+it+MS+"flex-item-"+replace(it,/flex-|-self/g,"")+(match(it,/flex-|baseline/)?"":MS+"grid-row-"+replace(it,/flex-|-self/g,""))+it;case 4675:return WEBKIT+it+MS+"flex-line-pack"+replace(it,/align-content|flex-|-self/g,"")+it;case 5548:return WEBKIT+it+MS+replace(it,"shrink","negative")+it;case 5292:return WEBKIT+it+MS+replace(it,"basis","preferred-size")+it;case 6060:return WEBKIT+"box-"+replace(it,"-grow","")+WEBKIT+it+MS+replace(it,"grow","positive")+it;case 4554:return WEBKIT+replace(it,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+it;case 6187:return replace(replace(replace(it,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),it,"")+it;case 5495:case 3959:return replace(it,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(it,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+it+it;case 4200:if(!match(it,/flex-|baseline/))return MS+"grid-column-align"+substr(it,at)+it;break;case 2592:case 3360:return MS+replace(it,"template-","")+it;case 4384:case 3616:return lt&&lt.some(function(ut,ct){return at=ct,match(ut.props,/grid-\w+-end/)})?~indexof(it+(lt=lt[at].value),"span")?it:MS+replace(it,"-start","")+it+MS+"grid-row-span:"+(~indexof(lt,"span")?match(lt,/\d+/):+match(lt,/\d+/)-+match(it,/\d+/))+";":MS+replace(it,"-start","")+it;case 4896:case 4128:return lt&&lt.some(function(ut){return match(ut.props,/grid-\w+-start/)})?it:MS+replace(replace(it,"-end","-span"),"span ","")+it;case 4095:case 3583:case 4068:case 2532:return replace(it,/(.+)-inline(.+)/,WEBKIT+"$1$2")+it;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(it)-1-at>6)switch(charat(it,at+1)){case 109:if(charat(it,at+4)!==45)break;case 102:return replace(it,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(it,at+3)==108?"$3":"$2-$3"))+it;case 115:return~indexof(it,"stretch")?prefix$1(replace(it,"stretch","fill-available"),at,lt)+it:it}break;case 5152:case 5920:return replace(it,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(ut,ct,dt,ft,mt,pt,gt){return MS+ct+":"+dt+gt+(ft?MS+ct+"-span:"+(mt?pt:+pt-+dt)+gt:"")+it});case 4949:if(charat(it,at+6)===121)return replace(it,":",":"+WEBKIT)+it;break;case 6444:switch(charat(it,charat(it,14)===45?18:11)){case 120:return replace(it,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+WEBKIT+(charat(it,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+it;case 100:return replace(it,":",":"+MS)+it}break;case 5719:case 2647:case 2135:case 3927:case 2391:return replace(it,"scroll-","scroll-snap-")+it}return it}function serialize$1(it,at){for(var lt="",ut=0;ut<it.length;ut++)lt+=at(it[ut],ut,it,at)||"";return lt}function stringify(it,at,lt,ut){switch(it.type){case LAYER:if(it.children.length)break;case IMPORT:case DECLARATION:return it.return=it.return||it.value;case COMMENT:return"";case KEYFRAMES:return it.return=it.value+"{"+serialize$1(it.children,ut)+"}";case RULESET:if(!strlen(it.value=it.props.join(",")))return""}return strlen(lt=serialize$1(it.children,ut))?it.return=it.value+"{"+lt+"}":""}function middleware(it){var at=sizeof(it);return function(lt,ut,ct,dt){for(var ft="",mt=0;mt<at;mt++)ft+=it[mt](lt,ut,ct,dt)||"";return ft}}function rulesheet(it){return function(at){at.root||(at=at.return)&&it(at)}}function prefixer(it,at,lt,ut){if(it.length>-1&&!it.return)switch(it.type){case DECLARATION:it.return=prefix$1(it.value,it.length,lt);return;case KEYFRAMES:return serialize$1([copy$1(it,{value:replace(it.value,"@","@"+WEBKIT)})],ut);case RULESET:if(it.length)return combine(lt=it.props,function(ct){switch(match(ct,ut=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":lift(copy$1(it,{props:[replace(ct,/:(read-\w+)/,":"+MOZ+"$1")]})),lift(copy$1(it,{props:[ct]})),assign(it,{props:filter(lt,ut)});break;case"::placeholder":lift(copy$1(it,{props:[replace(ct,/:(plac\w+)/,":"+WEBKIT+"input-$1")]})),lift(copy$1(it,{props:[replace(ct,/:(plac\w+)/,":"+MOZ+"$1")]})),lift(copy$1(it,{props:[replace(ct,/:(plac\w+)/,MS+"input-$1")]})),lift(copy$1(it,{props:[ct]})),assign(it,{props:filter(lt,ut)});break}return""})}}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},f$2=typeof process<"u"&&process.env!==void 0&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",y$2=typeof window<"u"&&"HTMLElement"in window,v$2=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&{}.REACT_APP_SC_DISABLE_SPEEDY!==""?{}.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&{}.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&{}.SC_DISABLE_SPEEDY!==void 0&&{}.SC_DISABLE_SPEEDY!==""&&{}.SC_DISABLE_SPEEDY!=="false"&&{}.SC_DISABLE_SPEEDY),E$2=Object.freeze([]),N$2=Object.freeze({});function P$2(it,at,lt){return lt===void 0&&(lt=N$2),it.theme!==lt.theme&&it.theme||at||lt.theme}var _$2=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),C$2=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I$2=/(^-|-$)/g;function A$2(it){return it.replace(C$2,"-").replace(I$2,"")}var O$2=/(a)(d)/gi,D$2=function(it){return String.fromCharCode(it+(it>25?39:97))};function R$2(it){var at,lt="";for(at=Math.abs(it);at>52;at=at/52|0)lt=D$2(at%52)+lt;return(D$2(at%52)+lt).replace(O$2,"$1-$2")}var T$2,k$2=function(it,at){for(var lt=at.length;lt;)it=33*it^at.charCodeAt(--lt);return it},j$1=function(it){return k$2(5381,it)};function x$1(it){return R$2(j$1(it)>>>0)}function V$1(it){return it.displayName||it.name||"Component"}function M$2(it){return typeof it=="string"&&!0}var F$2=typeof Symbol=="function"&&Symbol.for,$$1=F$2?Symbol.for("react.memo"):60115,z$2=F$2?Symbol.for("react.forward_ref"):60112,B$2={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L$2={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G$1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y$1=((T$2={})[z$2]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},T$2[$$1]=G$1,T$2);function W(it){return("type"in(at=it)&&at.type.$$typeof)===$$1?G$1:"$$typeof"in it?Y$1[it.$$typeof]:B$2;var at}var q$2=Object.defineProperty,H$2=Object.getOwnPropertyNames,U$1=Object.getOwnPropertySymbols,J$1=Object.getOwnPropertyDescriptor,X$1=Object.getPrototypeOf,Z$1=Object.prototype;function K$1(it,at,lt){if(typeof at!="string"){if(Z$1){var ut=X$1(at);ut&&ut!==Z$1&&K$1(it,ut,lt)}var ct=H$2(at);U$1&&(ct=ct.concat(U$1(at)));for(var dt=W(it),ft=W(at),mt=0;mt<ct.length;++mt){var pt=ct[mt];if(!(pt in L$2||lt&&lt[pt]||ft&&pt in ft||dt&&pt in dt)){var gt=J$1(at,pt);try{q$2(it,pt,gt)}catch{}}}}return it}function Q$2(it){return typeof it=="function"}function ee$1(it){return typeof it=="object"&&"styledComponentId"in it}function te$1(it,at){return it&&at?"".concat(it," ").concat(at):it||at||""}function ne$1(it,at){if(it.length===0)return"";for(var lt=it[0],ut=1;ut<it.length;ut++)lt+=at?at+it[ut]:it[ut];return lt}function oe$1(it){return it!==null&&typeof it=="object"&&it.constructor.name===Object.name&&!("props"in it&&it.$$typeof)}function re$1(it,at,lt){if(lt===void 0&&(lt=!1),!lt&&!oe$1(it)&&!Array.isArray(it))return at;if(Array.isArray(at))for(var ut=0;ut<at.length;ut++)it[ut]=re$1(it[ut],at[ut]);else if(oe$1(at))for(var ut in at)it[ut]=re$1(it[ut],at[ut]);return it}function se$1(it,at){Object.defineProperty(it,"toString",{value:at})}function ce$1(it){for(var at=[],lt=1;lt<arguments.length;lt++)at[lt-1]=arguments[lt];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(it," for more information.").concat(at.length>0?" Args: ".concat(at.join(", ")):""))}var le$1=function(){function it(at){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=at}return it.prototype.indexOfGroup=function(at){for(var lt=0,ut=0;ut<at;ut++)lt+=this.groupSizes[ut];return lt},it.prototype.insertRules=function(at,lt){if(at>=this.groupSizes.length){for(var ut=this.groupSizes,ct=ut.length,dt=ct;at>=dt;)if((dt<<=1)<0)throw ce$1(16,"".concat(at));this.groupSizes=new Uint32Array(dt),this.groupSizes.set(ut),this.length=dt;for(var ft=ct;ft<dt;ft++)this.groupSizes[ft]=0}for(var mt=this.indexOfGroup(at+1),pt=(ft=0,lt.length);ft<pt;ft++)this.tag.insertRule(mt,lt[ft])&&(this.groupSizes[at]++,mt++)},it.prototype.clearGroup=function(at){if(at<this.length){var lt=this.groupSizes[at],ut=this.indexOfGroup(at),ct=ut+lt;this.groupSizes[at]=0;for(var dt=ut;dt<ct;dt++)this.tag.deleteRule(ut)}},it.prototype.getGroup=function(at){var lt="";if(at>=this.length||this.groupSizes[at]===0)return lt;for(var ut=this.groupSizes[at],ct=this.indexOfGroup(at),dt=ct+ut,ft=ct;ft<dt;ft++)lt+="".concat(this.tag.getRule(ft)).concat(`/*!sc*/
`);return lt},it}(),ue$1=new Map,pe$1=new Map,de$1=1,he$1=function(it){if(ue$1.has(it))return ue$1.get(it);for(;pe$1.has(de$1);)de$1++;var at=de$1++;return ue$1.set(it,at),pe$1.set(at,it),at},fe$1=function(it,at){ue$1.set(it,at),pe$1.set(at,it)},me$1="style[".concat(f$2,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),ye$1=new RegExp("^".concat(f$2,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ve$1=function(it,at,lt){for(var ut,ct=lt.split(","),dt=0,ft=ct.length;dt<ft;dt++)(ut=ct[dt])&&it.registerName(at,ut)},ge$1=function(it,at){for(var lt,ut=((lt=at.textContent)!==null&&lt!==void 0?lt:"").split(`/*!sc*/
`),ct=[],dt=0,ft=ut.length;dt<ft;dt++){var mt=ut[dt].trim();if(mt){var pt=mt.match(ye$1);if(pt){var gt=0|parseInt(pt[1],10),vt=pt[2];gt!==0&&(fe$1(vt,gt),ve$1(it,vt,pt[3]),it.getTag().insertRules(gt,ct)),ct.length=0}else ct.push(mt)}}};function Se$1(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var we$1=function(it){var at=document.head,lt=it||at,ut=document.createElement("style"),ct=function(mt){var pt=Array.from(mt.querySelectorAll("style[".concat(f$2,"]")));return pt[pt.length-1]}(lt),dt=ct!==void 0?ct.nextSibling:null;ut.setAttribute(f$2,"active"),ut.setAttribute("data-styled-version","6.0.7");var ft=Se$1();return ft&&ut.setAttribute("nonce",ft),lt.insertBefore(ut,dt),ut},be$1=function(){function it(at){this.element=we$1(at),this.element.appendChild(document.createTextNode("")),this.sheet=function(lt){if(lt.sheet)return lt.sheet;for(var ut=document.styleSheets,ct=0,dt=ut.length;ct<dt;ct++){var ft=ut[ct];if(ft.ownerNode===lt)return ft}throw ce$1(17)}(this.element),this.length=0}return it.prototype.insertRule=function(at,lt){try{return this.sheet.insertRule(lt,at),this.length++,!0}catch{return!1}},it.prototype.deleteRule=function(at){this.sheet.deleteRule(at),this.length--},it.prototype.getRule=function(at){var lt=this.sheet.cssRules[at];return lt&&lt.cssText?lt.cssText:""},it}(),Ee$1=function(){function it(at){this.element=we$1(at),this.nodes=this.element.childNodes,this.length=0}return it.prototype.insertRule=function(at,lt){if(at<=this.length&&at>=0){var ut=document.createTextNode(lt);return this.element.insertBefore(ut,this.nodes[at]||null),this.length++,!0}return!1},it.prototype.deleteRule=function(at){this.element.removeChild(this.nodes[at]),this.length--},it.prototype.getRule=function(at){return at<this.length?this.nodes[at].textContent:""},it}(),Ne$1=function(){function it(at){this.rules=[],this.length=0}return it.prototype.insertRule=function(at,lt){return at<=this.length&&(this.rules.splice(at,0,lt),this.length++,!0)},it.prototype.deleteRule=function(at){this.rules.splice(at,1),this.length--},it.prototype.getRule=function(at){return at<this.length?this.rules[at]:""},it}(),Pe$1=y$2,_e$1={isServer:!y$2,useCSSOMInjection:!v$2},Ce$1=function(){function it(at,lt,ut){at===void 0&&(at=N$2),lt===void 0&&(lt={});var ct=this;this.options=__assign$2(__assign$2({},_e$1),at),this.gs=lt,this.names=new Map(ut),this.server=!!at.isServer,!this.server&&y$2&&Pe$1&&(Pe$1=!1,function(dt){for(var ft=document.querySelectorAll(me$1),mt=0,pt=ft.length;mt<pt;mt++){var gt=ft[mt];gt&&gt.getAttribute(f$2)!=="active"&&(ge$1(dt,gt),gt.parentNode&&gt.parentNode.removeChild(gt))}}(this)),se$1(this,function(){return function(dt){for(var ft=dt.getTag(),mt=ft.length,pt="",gt=function(wt){var yt=function(xt){return pe$1.get(xt)}(wt);if(yt===void 0)return"continue";var bt=dt.names.get(yt),Ct=ft.getGroup(wt);if(bt===void 0||Ct.length===0)return"continue";var Et="".concat(f$2,".g").concat(wt,'[id="').concat(yt,'"]'),kt="";bt!==void 0&&bt.forEach(function(xt){xt.length>0&&(kt+="".concat(xt,","))}),pt+="".concat(Ct).concat(Et,'{content:"').concat(kt,'"}').concat(`/*!sc*/
`)},vt=0;vt<mt;vt++)gt(vt);return pt}(ct)})}return it.registerId=function(at){return he$1(at)},it.prototype.reconstructWithOptions=function(at,lt){return lt===void 0&&(lt=!0),new it(__assign$2(__assign$2({},this.options),at),this.gs,lt&&this.names||void 0)},it.prototype.allocateGSInstance=function(at){return this.gs[at]=(this.gs[at]||0)+1},it.prototype.getTag=function(){return this.tag||(this.tag=(at=function(lt){var ut=lt.useCSSOMInjection,ct=lt.target;return lt.isServer?new Ne$1(ct):ut?new be$1(ct):new Ee$1(ct)}(this.options),new le$1(at)));var at},it.prototype.hasNameForId=function(at,lt){return this.names.has(at)&&this.names.get(at).has(lt)},it.prototype.registerName=function(at,lt){if(he$1(at),this.names.has(at))this.names.get(at).add(lt);else{var ut=new Set;ut.add(lt),this.names.set(at,ut)}},it.prototype.insertRules=function(at,lt,ut){this.registerName(at,lt),this.getTag().insertRules(he$1(at),ut)},it.prototype.clearNames=function(at){this.names.has(at)&&this.names.get(at).clear()},it.prototype.clearRules=function(at){this.getTag().clearGroup(he$1(at)),this.clearNames(at)},it.prototype.clearTag=function(){this.tag=void 0},it}(),Ie$1=/&/g,Ae$1=/^\s*\/\/.*$/gm;function Oe$1(it,at){return it.map(function(lt){return lt.type==="rule"&&(lt.value="".concat(at," ").concat(lt.value),lt.value=lt.value.replaceAll(",",",".concat(at," ")),lt.props=lt.props.map(function(ut){return"".concat(at," ").concat(ut)})),Array.isArray(lt.children)&&lt.type!=="@keyframes"&&(lt.children=Oe$1(lt.children,at)),lt})}function De$1(it){var at,lt,ut,ct=it===void 0?N$2:it,dt=ct.options,ft=dt===void 0?N$2:dt,mt=ct.plugins,pt=mt===void 0?E$2:mt,gt=function(yt,bt,Ct){return Ct===lt||Ct.startsWith(lt)&&Ct.endsWith(lt)&&Ct.replaceAll(lt,"").length>0?".".concat(at):yt},vt=pt.slice();vt.push(function(yt){yt.type===RULESET&&yt.value.includes("&")&&(yt.props[0]=yt.props[0].replace(Ie$1,lt).replace(ut,gt))}),ft.prefix&&vt.push(prefixer),vt.push(stringify);var wt=function(yt,bt,Ct,Et){bt===void 0&&(bt=""),Ct===void 0&&(Ct=""),Et===void 0&&(Et="&"),at=Et,lt=bt,ut=new RegExp("\\".concat(lt,"\\b"),"g");var kt=yt.replace(Ae$1,""),xt=compile(Ct||bt?"".concat(Ct," ").concat(bt," { ").concat(kt," }"):kt);ft.namespace&&(xt=Oe$1(xt,ft.namespace));var St=[];return serialize$1(xt,middleware(vt.concat(rulesheet(function(Ot){return St.push(Ot)})))),St};return wt.hash=pt.length?pt.reduce(function(yt,bt){return bt.name||ce$1(15),k$2(yt,bt.name)},5381).toString():"",wt}var Re$1=new Ce$1,Te$1=De$1(),ke$1=b$2.createContext({shouldForwardProp:void 0,styleSheet:Re$1,stylis:Te$1});ke$1.Consumer;b$2.createContext(void 0);function Ve$1(){return reactExports.useContext(ke$1)}var Fe$1=function(){function it(at,lt){var ut=this;this.inject=function(ct,dt){dt===void 0&&(dt=Te$1);var ft=ut.name+dt.hash;ct.hasNameForId(ut.id,ft)||ct.insertRules(ut.id,ft,dt(ut.rules,ft,"@keyframes"))},this.name=at,this.id="sc-keyframes-".concat(at),this.rules=lt,se$1(this,function(){throw ce$1(12,String(ut.name))})}return it.prototype.getName=function(at){return at===void 0&&(at=Te$1),this.name+at.hash},it}(),$e$1=function(it){return it>="A"&&it<="Z"};function ze$1(it){for(var at="",lt=0;lt<it.length;lt++){var ut=it[lt];if(lt===1&&ut==="-"&&it[0]==="-")return it;$e$1(ut)?at+="-"+ut.toLowerCase():at+=ut}return at.startsWith("ms-")?"-"+at:at}var Be$1=function(it){return it==null||it===!1||it===""},Le$1=function(it){var at,lt,ut=[];for(var ct in it){var dt=it[ct];it.hasOwnProperty(ct)&&!Be$1(dt)&&(Array.isArray(dt)&&dt.isCss||Q$2(dt)?ut.push("".concat(ze$1(ct),":"),dt,";"):oe$1(dt)?ut.push.apply(ut,__spreadArray$1(__spreadArray$1(["".concat(ct," {")],Le$1(dt),!1),["}"],!1)):ut.push("".concat(ze$1(ct),": ").concat((at=ct,(lt=dt)==null||typeof lt=="boolean"||lt===""?"":typeof lt!="number"||lt===0||at in unitlessKeys||at.startsWith("--")?String(lt).trim():"".concat(lt,"px")),";")))}return ut};function Ge$1(it,at,lt,ut){if(Be$1(it))return[];if(ee$1(it))return[".".concat(it.styledComponentId)];if(Q$2(it)){if(!Q$2(dt=it)||dt.prototype&&dt.prototype.isReactComponent||!at)return[it];var ct=it(at);return Ge$1(ct,at,lt,ut)}var dt;return it instanceof Fe$1?lt?(it.inject(lt,ut),[it.getName(ut)]):[it]:oe$1(it)?Le$1(it):Array.isArray(it)?Array.prototype.concat.apply(E$2,it.map(function(ft){return Ge$1(ft,at,lt,ut)})):[it.toString()]}function Ye$1(it){for(var at=0;at<it.length;at+=1){var lt=it[at];if(Q$2(lt)&&!ee$1(lt))return!1}return!0}var We$1=j$1("6.0.7"),qe=function(){function it(at,lt,ut){this.rules=at,this.staticRulesId="",this.isStatic=(ut===void 0||ut.isStatic)&&Ye$1(at),this.componentId=lt,this.baseHash=k$2(We$1,lt),this.baseStyle=ut,Ce$1.registerId(lt)}return it.prototype.generateAndInjectStyles=function(at,lt,ut){var ct=this.baseStyle?this.baseStyle.generateAndInjectStyles(at,lt,ut):"";if(this.isStatic&&!ut.hash)if(this.staticRulesId&&lt.hasNameForId(this.componentId,this.staticRulesId))ct=te$1(ct,this.staticRulesId);else{var dt=ne$1(Ge$1(this.rules,at,lt,ut)),ft=R$2(k$2(this.baseHash,dt)>>>0);if(!lt.hasNameForId(this.componentId,ft)){var mt=ut(dt,".".concat(ft),void 0,this.componentId);lt.insertRules(this.componentId,ft,mt)}ct=te$1(ct,ft),this.staticRulesId=ft}else{for(var pt=k$2(this.baseHash,ut.hash),gt="",vt=0;vt<this.rules.length;vt++){var wt=this.rules[vt];if(typeof wt=="string")gt+=wt;else if(wt){var yt=ne$1(Ge$1(wt,at,lt,ut));pt=k$2(pt,yt),gt+=yt}}if(gt){var bt=R$2(pt>>>0);lt.hasNameForId(this.componentId,bt)||lt.insertRules(this.componentId,bt,ut(gt,".".concat(bt),void 0,this.componentId)),ct=te$1(ct,bt)}}return ct},it}(),He$1=b$2.createContext(void 0);He$1.Consumer;function Xe(it){var at=b$2.useContext(He$1),lt=reactExports.useMemo(function(){return function(ut,ct){if(!ut)throw ce$1(14);if(Q$2(ut)){var dt=ut(ct);return dt}if(Array.isArray(ut)||typeof ut!="object")throw ce$1(8);return ct?__assign$2(__assign$2({},ct),ut):ut}(it.theme,at)},[it.theme,at]);return it.children?b$2.createElement(He$1.Provider,{value:lt},it.children):null}var Ze={},Ke$1=new Set;function Qe$1(it,at,lt){var ut=ee$1(it),ct=it,dt=!M$2(it),ft=at.attrs,mt=ft===void 0?E$2:ft,pt=at.componentId,gt=pt===void 0?function(Ot,At){var Tt=typeof Ot!="string"?"sc":A$2(Ot);Ze[Tt]=(Ze[Tt]||0)+1;var $t="".concat(Tt,"-").concat(x$1("6.0.7"+Tt+Ze[Tt]));return At?"".concat(At,"-").concat($t):$t}(at.displayName,at.parentComponentId):pt,vt=at.displayName;vt===void 0&&function(Ot){return M$2(Ot)?"styled.".concat(Ot):"Styled(".concat(V$1(Ot),")")}(it);var wt=at.displayName&&at.componentId?"".concat(A$2(at.displayName),"-").concat(at.componentId):at.componentId||gt,yt=ut&&ct.attrs?ct.attrs.concat(mt).filter(Boolean):mt,bt=at.shouldForwardProp;if(ut&&ct.shouldForwardProp){var Ct=ct.shouldForwardProp;if(at.shouldForwardProp){var Et=at.shouldForwardProp;bt=function(Ot,At){return Ct(Ot,At)&&Et(Ot,At)}}else bt=Ct}var kt=new qe(lt,wt,ut?ct.componentStyle:void 0);function xt(Ot,At){return function(Tt,$t,Lt){var Rt=Tt.attrs,It=Tt.componentStyle,Ft=Tt.defaultProps,Mt=Tt.foldedComponentIds,Ht=Tt.styledComponentId,Vt=Tt.target,Nt=b$2.useContext(He$1),Gt=Ve$1(),tn=Tt.shouldForwardProp||Gt.shouldForwardProp,ln=function(Wt,jt,Bt){for(var Dt,zt=__assign$2(__assign$2({},jt),{className:void 0,theme:Bt}),Kt=0;Kt<Wt.length;Kt+=1){var en=Q$2(Dt=Wt[Kt])?Dt(zt):Dt;for(var sn in en)zt[sn]=sn==="className"?te$1(zt[sn],en[sn]):sn==="style"?__assign$2(__assign$2({},zt[sn]),en[sn]):en[sn]}return jt.className&&(zt.className=te$1(zt.className,jt.className)),zt}(Rt,$t,P$2($t,Nt,Ft)||N$2),nn=ln.as||Vt,on={};for(var rn in ln)ln[rn]===void 0||rn[0]==="$"||rn==="as"||rn==="theme"||(rn==="forwardedAs"?on.as=ln.forwardedAs:tn&&!tn(rn,nn)||(on[rn]=ln[rn]));var Jt=function(Wt,jt){var Bt=Ve$1(),Dt=Wt.generateAndInjectStyles(jt,Bt.styleSheet,Bt.stylis);return Dt}(It,ln),Zt=te$1(Mt,Ht);return Jt&&(Zt+=" "+Jt),ln.className&&(Zt+=" "+ln.className),on[M$2(nn)&&!_$2.has(nn)?"class":"className"]=Zt,on.ref=Lt,reactExports.createElement(nn,on)}(St,Ot,At)}var St=b$2.forwardRef(xt);return St.attrs=yt,St.componentStyle=kt,St.shouldForwardProp=bt,St.foldedComponentIds=ut?te$1(ct.foldedComponentIds,ct.styledComponentId):"",St.styledComponentId=wt,St.target=ut?ct.target:it,Object.defineProperty(St,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(Ot){this._foldedDefaultProps=ut?function(At){for(var Tt=[],$t=1;$t<arguments.length;$t++)Tt[$t-1]=arguments[$t];for(var Lt=0,Rt=Tt;Lt<Rt.length;Lt++)re$1(At,Rt[Lt],!0);return At}({},ct.defaultProps,Ot):Ot}}),se$1(St,function(){return".".concat(St.styledComponentId)}),dt&&K$1(St,it,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),St}function et(it,at){for(var lt=[it[0]],ut=0,ct=at.length;ut<ct;ut+=1)lt.push(at[ut],it[ut+1]);return lt}var tt=function(it){return Object.assign(it,{isCss:!0})};function nt(it){for(var at=[],lt=1;lt<arguments.length;lt++)at[lt-1]=arguments[lt];if(Q$2(it)||oe$1(it)){var ut=it;return tt(Ge$1(et(E$2,__spreadArray$1([ut],at,!0))))}var ct=it;return at.length===0&&ct.length===1&&typeof ct[0]=="string"?Ge$1(ct):tt(Ge$1(et(ct,at)))}function ot(it,at,lt){if(lt===void 0&&(lt=N$2),!at)throw ce$1(1,at);var ut=function(ct){for(var dt=[],ft=1;ft<arguments.length;ft++)dt[ft-1]=arguments[ft];return it(at,lt,nt.apply(void 0,__spreadArray$1([ct],dt,!1)))};return ut.attrs=function(ct){return ot(it,at,__assign$2(__assign$2({},lt),{attrs:Array.prototype.concat(lt.attrs,ct).filter(Boolean)}))},ut.withConfig=function(ct){return ot(it,at,__assign$2(__assign$2({},lt),ct))},ut}var rt=function(it){return ot(Qe$1,it)},st=rt;_$2.forEach(function(it){st[it]=rt(it)});var l;function r$4(it,at){return it[at]}function i$1(it,at){return at.split(".").reduce((lt,ut)=>{const ct=ut.match(/[^\]\\[.]+/g);if(ct&&ct.length>1)for(let dt=0;dt<ct.length;dt++)return lt[ct[dt]][ct[dt+1]];return lt[ut]},it)}function s(it=[],at,lt=0){return[...it.slice(0,lt),at,...it.slice(lt)]}function d$1(it=[],at,lt="id"){const ut=it.slice(),ct=r$4(at,lt);return ct?ut.splice(ut.findIndex(dt=>r$4(dt,lt)===ct),1):ut.splice(ut.findIndex(dt=>dt===at),1),ut}function c(it){return it.map((at,lt)=>{const ut=Object.assign(Object.assign({},at),{sortable:at.sortable||!!at.sortFunction||void 0});return at.id||(ut.id=lt+1),ut})}function g$1(it,at){return Math.ceil(it/at)}function u$1(it,at){return Math.min(it,at)}(function(it){it.ASC="asc",it.DESC="desc"})(l||(l={}));const p$1=()=>null;function b$1(it,at=[],lt=[]){let ut={},ct=[...lt];return at.length&&at.forEach(dt=>{if(!dt.when||typeof dt.when!="function")throw new Error('"when" must be defined in the conditional style object and must be function');dt.when(it)&&(ut=dt.style||{},dt.classNames&&(ct=[...ct,...dt.classNames]),typeof dt.style=="function"&&(ut=dt.style(it)||{}))}),{style:ut,classNames:ct.join(" ")}}function m$1(it,at=[],lt="id"){const ut=r$4(it,lt);return ut?at.some(ct=>r$4(ct,lt)===ut):at.some(ct=>ct===it)}function h$1(it,at){return at?it.findIndex(lt=>w(lt.id,at)):-1}function w(it,at){return it==at}function f$1(it,at){const lt=!it.toggleOnSelectedRowsChange;switch(at.type){case"SELECT_ALL_ROWS":{const{keyField:ut,rows:ct,rowCount:dt,mergeSelections:ft}=at,mt=!it.allSelected,pt=!it.toggleOnSelectedRowsChange;if(ft){const gt=mt?[...it.selectedRows,...ct.filter(vt=>!m$1(vt,it.selectedRows,ut))]:it.selectedRows.filter(vt=>!m$1(vt,ct,ut));return Object.assign(Object.assign({},it),{allSelected:mt,selectedCount:gt.length,selectedRows:gt,toggleOnSelectedRowsChange:pt})}return Object.assign(Object.assign({},it),{allSelected:mt,selectedCount:mt?dt:0,selectedRows:mt?ct:[],toggleOnSelectedRowsChange:pt})}case"SELECT_SINGLE_ROW":{const{keyField:ut,row:ct,isSelected:dt,rowCount:ft,singleSelect:mt}=at;return mt?dt?Object.assign(Object.assign({},it),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:lt}):Object.assign(Object.assign({},it),{selectedCount:1,allSelected:!1,selectedRows:[ct],toggleOnSelectedRowsChange:lt}):dt?Object.assign(Object.assign({},it),{selectedCount:it.selectedRows.length>0?it.selectedRows.length-1:0,allSelected:!1,selectedRows:d$1(it.selectedRows,ct,ut),toggleOnSelectedRowsChange:lt}):Object.assign(Object.assign({},it),{selectedCount:it.selectedRows.length+1,allSelected:it.selectedRows.length+1===ft,selectedRows:s(it.selectedRows,ct),toggleOnSelectedRowsChange:lt})}case"SELECT_MULTIPLE_ROWS":{const{keyField:ut,selectedRows:ct,totalRows:dt,mergeSelections:ft}=at;if(ft){const mt=[...it.selectedRows,...ct.filter(pt=>!m$1(pt,it.selectedRows,ut))];return Object.assign(Object.assign({},it),{selectedCount:mt.length,allSelected:!1,selectedRows:mt,toggleOnSelectedRowsChange:lt})}return Object.assign(Object.assign({},it),{selectedCount:ct.length,allSelected:ct.length===dt,selectedRows:ct,toggleOnSelectedRowsChange:lt})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:ut}=at;return Object.assign(Object.assign({},it),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:ut})}case"SORT_CHANGE":{const{sortDirection:ut,selectedColumn:ct,clearSelectedOnSort:dt}=at;return Object.assign(Object.assign(Object.assign({},it),{selectedColumn:ct,sortDirection:ut,currentPage:1}),dt&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:lt})}case"CHANGE_PAGE":{const{page:ut,paginationServer:ct,visibleOnly:dt,persistSelectedOnPageChange:ft}=at,mt=ct&&ft,pt=ct&&!ft||dt;return Object.assign(Object.assign(Object.assign(Object.assign({},it),{currentPage:ut}),mt&&{allSelected:!1}),pt&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:lt})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:ut,page:ct}=at;return Object.assign(Object.assign({},it),{currentPage:ct,rowsPerPage:ut})}}}const x=nt`
	pointer-events: none;
	opacity: 0.4;
`,C$1=st.div`
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-width: 100%;
	${({disabled:it})=>it&&x};
	${({theme:it})=>it.table.style};
`,y$1=nt`
	position: sticky;
	position: -webkit-sticky; /* Safari */
	top: 0;
	z-index: 1;
`,R$1=st.div`
	display: flex;
	width: 100%;
	${({$fixedHeader:it})=>it&&y$1};
	${({theme:it})=>it.head.style};
`,v$1=st.div`
	display: flex;
	align-items: stretch;
	width: 100%;
	${({theme:it})=>it.headRow.style};
	${({$dense:it,theme:at})=>it&&at.headRow.denseStyle};
`,S$1=(it,...at)=>nt`
		@media screen and (max-width: ${599}px) {
			${nt(it,...at)}
		}
	`,E$1=(it,...at)=>nt`
		@media screen and (max-width: ${959}px) {
			${nt(it,...at)}
		}
	`,O$1=(it,...at)=>nt`
		@media screen and (max-width: ${1280}px) {
			${nt(it,...at)}
		}
	`,$=it=>(at,...lt)=>nt`
				@media screen and (max-width: ${it}px) {
					${nt(at,...lt)}
				}
			`,k$1=st.div`
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	line-height: normal;
	${({theme:it,$headCell:at})=>it[at?"headCells":"cells"].style};
	${({$noPadding:it})=>it&&"padding: 0"};
`,P$1=st(k$1)`
	flex-grow: ${({button:it,grow:at})=>at===0||it?0:at||1};
	flex-shrink: 0;
	flex-basis: 0;
	max-width: ${({maxWidth:it})=>it||"100%"};
	min-width: ${({minWidth:it})=>it||"100px"};
	${({width:it})=>it&&nt`
			min-width: ${it};
			max-width: ${it};
		`};
	${({right:it})=>it&&"justify-content: flex-end"};
	${({button:it,center:at})=>(at||it)&&"justify-content: center"};
	${({compact:it,button:at})=>(it||at)&&"padding: 0"};

	/* handle hiding cells */
	${({hide:it})=>it&&it==="sm"&&S$1`
    display: none;
  `};
	${({hide:it})=>it&&it==="md"&&E$1`
    display: none;
  `};
	${({hide:it})=>it&&it==="lg"&&O$1`
    display: none;
  `};
	${({hide:it})=>it&&Number.isInteger(it)&&$(it)`
    display: none;
  `};
`,D$1=nt`
	div:first-child {
		white-space: ${({$wrapCell:it})=>it?"normal":"nowrap"};
		overflow: ${({$allowOverflow:it})=>it?"visible":"hidden"};
		text-overflow: ellipsis;
	}
`,H$1=st(P$1).attrs(it=>({style:it.style}))`
	${({$renderAsCell:it})=>!it&&D$1};
	${({theme:it,$isDragging:at})=>at&&it.cells.draggingStyle};
	${({$cellStyle:it})=>it};
`;var F$1=reactExports.memo(function({id:it,column:at,row:lt,rowIndex:ut,dataTag:ct,isDragging:dt,onDragStart:ft,onDragOver:mt,onDragEnd:pt,onDragEnter:gt,onDragLeave:vt}){const{style:wt,classNames:yt}=b$1(lt,at.conditionalCellStyles,["rdt_TableCell"]);return reactExports.createElement(H$1,{id:it,"data-column-id":at.id,role:"cell",className:yt,"data-tag":ct,$cellStyle:at.style,$renderAsCell:!!at.cell,$allowOverflow:at.allowOverflow,button:at.button,center:at.center,compact:at.compact,grow:at.grow,hide:at.hide,maxWidth:at.maxWidth,minWidth:at.minWidth,right:at.right,width:at.width,$wrapCell:at.wrap,style:wt,$isDragging:dt,onDragStart:ft,onDragOver:mt,onDragEnd:pt,onDragEnter:gt,onDragLeave:vt},!at.cell&&reactExports.createElement("div",{"data-tag":ct},function(bt,Ct,Et,kt){if(!Ct)return null;if(typeof Ct!="string"&&typeof Ct!="function")throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return Et&&typeof Et=="function"?Et(bt,kt):Ct&&typeof Ct=="function"?Ct(bt,kt):i$1(bt,Ct)}(lt,at.selector,at.format,ut)),at.cell&&at.cell(lt,ut,at,it))}),j=reactExports.memo(function({name:it,component:at="input",componentOptions:lt={style:{}},indeterminate:ut=!1,checked:ct=!1,disabled:dt=!1,onClick:ft=p$1}){const mt=at,pt=mt!=="input"?lt.style:(vt=>Object.assign(Object.assign({fontSize:"18px"},!vt&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(dt),gt=reactExports.useMemo(()=>function(vt,...wt){let yt;return Object.keys(vt).map(bt=>vt[bt]).forEach((bt,Ct)=>{typeof bt=="function"&&(yt=Object.assign(Object.assign({},vt),{[Object.keys(vt)[Ct]]:bt(...wt)}))}),yt||vt}(lt,ut),[lt,ut]);return reactExports.createElement(mt,Object.assign({type:"checkbox",ref:vt=>{vt&&(vt.indeterminate=ut)},style:pt,onClick:dt?p$1:ft,name:it,"aria-label":it,checked:ct,disabled:dt},gt,{onChange:p$1}))});const I$1=st(k$1)`
	flex: 0 0 48px;
	min-width: 48px;
	justify-content: center;
	align-items: center;
	user-select: none;
	white-space: nowrap;
`;function T$1({name:it,keyField:at,row:lt,rowCount:ut,selected:ct,selectableRowsComponent:dt,selectableRowsComponentProps:ft,selectableRowsSingle:mt,selectableRowDisabled:pt,onSelectedRow:gt}){const vt=!(!pt||!pt(lt));return reactExports.createElement(I$1,{onClick:wt=>wt.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},reactExports.createElement(j,{name:it,component:dt,componentOptions:ft,checked:ct,"aria-checked":ct,onClick:()=>{gt({type:"SELECT_SINGLE_ROW",row:lt,isSelected:ct,keyField:at,rowCount:ut,singleSelect:mt})},disabled:vt}))}const L$1=st.button`
	display: inline-flex;
	align-items: center;
	user-select: none;
	white-space: nowrap;
	border: none;
	background-color: transparent;
	${({theme:it})=>it.expanderButton.style};
`;function M$1({disabled:it=!1,expanded:at=!1,expandableIcon:lt,id:ut,row:ct,onToggled:dt}){const ft=at?lt.expanded:lt.collapsed;return reactExports.createElement(L$1,{"aria-disabled":it,onClick:()=>dt&&dt(ct),"data-testid":`expander-button-${ut}`,disabled:it,"aria-label":at?"Collapse Row":"Expand Row",role:"button",type:"button"},ft)}const A$1=st(k$1)`
	white-space: nowrap;
	font-weight: 400;
	min-width: 48px;
	${({theme:it})=>it.expanderCell.style};
`;function _$1({row:it,expanded:at=!1,expandableIcon:lt,id:ut,onToggled:ct,disabled:dt=!1}){return reactExports.createElement(A$1,{onClick:ft=>ft.stopPropagation(),$noPadding:!0},reactExports.createElement(M$1,{id:ut,row:it,expanded:at,expandableIcon:lt,disabled:dt,onToggled:ct}))}const N$1=st.div`
	width: 100%;
	box-sizing: border-box;
	${({theme:it})=>it.expanderRow.style};
	${({$extendedRowStyle:it})=>it};
`;var z$1=reactExports.memo(function({data:it,ExpanderComponent:at,expanderComponentProps:lt,extendedRowStyle:ut,extendedClassNames:ct}){const dt=["rdt_ExpanderRow",...ct.split(" ").filter(ft=>ft!=="rdt_TableRow")].join(" ");return reactExports.createElement(N$1,{className:dt,$extendedRowStyle:ut},reactExports.createElement(at,Object.assign({data:it},lt)))}),B$1,G,V;(function(it){it.LTR="ltr",it.RTL="rtl",it.AUTO="auto"})(B$1||(B$1={})),function(it){it.LEFT="left",it.RIGHT="right",it.CENTER="center"}(G||(G={})),function(it){it.SM="sm",it.MD="md",it.LG="lg"}(V||(V={}));const U=nt`
	&:hover {
		${({$highlightOnHover:it,theme:at})=>it&&at.rows.highlightOnHoverStyle};
	}
`,Y=nt`
	&:hover {
		cursor: pointer;
	}
`,K=st.div.attrs(it=>({style:it.style}))`
	display: flex;
	align-items: stretch;
	align-content: stretch;
	width: 100%;
	box-sizing: border-box;
	${({theme:it})=>it.rows.style};
	${({$dense:it,theme:at})=>it&&at.rows.denseStyle};
	${({$striped:it,theme:at})=>it&&at.rows.stripedStyle};
	${({$highlightOnHover:it})=>it&&U};
	${({$pointerOnHover:it})=>it&&Y};
	${({$selected:it,theme:at})=>it&&at.rows.selectedHighlightStyle};
`;function q$1({columns:it=[],conditionalRowStyles:at=[],defaultExpanded:lt=!1,defaultExpanderDisabled:ut=!1,dense:ct=!1,expandableIcon:dt,expandableRows:ft=!1,expandableRowsComponent:mt,expandableRowsComponentProps:pt,expandableRowsHideExpander:gt,expandOnRowClicked:vt=!1,expandOnRowDoubleClicked:wt=!1,highlightOnHover:yt=!1,id:bt,expandableInheritConditionalStyles:Ct,keyField:Et,onRowClicked:kt=p$1,onRowDoubleClicked:xt=p$1,onRowMouseEnter:St=p$1,onRowMouseLeave:Ot=p$1,onRowExpandToggled:At=p$1,onSelectedRow:Tt=p$1,pointerOnHover:$t=!1,row:Lt,rowCount:Rt,rowIndex:It,selectableRowDisabled:Ft=null,selectableRows:Mt=!1,selectableRowsComponent:Ht,selectableRowsComponentProps:Vt,selectableRowsHighlight:Nt=!1,selectableRowsSingle:Gt=!1,selected:tn,striped:ln=!1,draggingColumnId:nn,onDragStart:on,onDragOver:rn,onDragEnd:Jt,onDragEnter:Zt,onDragLeave:Wt}){const[jt,Bt]=reactExports.useState(lt);reactExports.useEffect(()=>{Bt(lt)},[lt]);const Dt=reactExports.useCallback(()=>{Bt(!jt),At(!jt,Lt)},[jt,At,Lt]),zt=$t||ft&&(vt||wt),Kt=reactExports.useCallback(wn=>{wn.target&&wn.target.getAttribute("data-tag")==="allowRowEvents"&&(kt(Lt,wn),!ut&&ft&&vt&&Dt())},[ut,vt,ft,Dt,kt,Lt]),en=reactExports.useCallback(wn=>{wn.target&&wn.target.getAttribute("data-tag")==="allowRowEvents"&&(xt(Lt,wn),!ut&&ft&&wt&&Dt())},[ut,wt,ft,Dt,xt,Lt]),sn=reactExports.useCallback(wn=>{St(Lt,wn)},[St,Lt]),cn=reactExports.useCallback(wn=>{Ot(Lt,wn)},[Ot,Lt]),bn=r$4(Lt,Et),{style:Tn,classNames:kn}=b$1(Lt,at,["rdt_TableRow"]),In=Nt&&tn,Hn=Ct?Tn:{},Fn=ln&&It%2==0;return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(K,{id:`row-${bt}`,role:"row",$striped:Fn,$highlightOnHover:yt,$pointerOnHover:!ut&&zt,$dense:ct,onClick:Kt,onDoubleClick:en,onMouseEnter:sn,onMouseLeave:cn,className:kn,$selected:In,style:Tn},Mt&&reactExports.createElement(T$1,{name:`select-row-${bn}`,keyField:Et,row:Lt,rowCount:Rt,selected:tn,selectableRowsComponent:Ht,selectableRowsComponentProps:Vt,selectableRowDisabled:Ft,selectableRowsSingle:Gt,onSelectedRow:Tt}),ft&&!gt&&reactExports.createElement(_$1,{id:bn,expandableIcon:dt,expanded:jt,row:Lt,onToggled:Dt,disabled:ut}),it.map(wn=>wn.omit?null:reactExports.createElement(F$1,{id:`cell-${wn.id}-${bn}`,key:`cell-${wn.id}-${bn}`,dataTag:wn.ignoreRowClick||wn.button?null:"allowRowEvents",column:wn,row:Lt,rowIndex:It,isDragging:w(nn,wn.id),onDragStart:on,onDragOver:rn,onDragEnd:Jt,onDragEnter:Zt,onDragLeave:Wt}))),ft&&jt&&reactExports.createElement(z$1,{key:`expander-${bn}`,data:Lt,extendedRowStyle:Hn,extendedClassNames:kn,ExpanderComponent:mt,expanderComponentProps:pt}))}const J=st.span`
	padding: 2px;
	color: inherit;
	flex-grow: 0;
	flex-shrink: 0;
	${({$sortActive:it})=>it?"opacity: 1":"opacity: 0"};
	${({$sortDirection:it})=>it==="desc"&&"transform: rotate(180deg)"};
`,Q$1=({sortActive:it,sortDirection:at})=>b$2.createElement(J,{$sortActive:it,$sortDirection:at},"▲"),X=st(P$1)`
	${({button:it})=>it&&"text-align: center"};
	${({theme:it,$isDragging:at})=>at&&it.headCells.draggingStyle};
`,Z=nt`
	cursor: pointer;
	span.__rdt_custom_sort_icon__ {
		i,
		svg {
			transform: 'translate3d(0, 0, 0)';
			${({sortActive:it})=>it?"opacity: 1":"opacity: 0"};
			color: inherit;
			font-size: 18px;
			height: 18px;
			width: 18px;
			backface-visibility: hidden;
			transform-style: preserve-3d;
			transition-duration: 95ms;
			transition-property: transform;
		}

		&.asc i,
		&.asc svg {
			transform: rotate(180deg);
		}
	}

	${({sortActive:it})=>!it&&nt`
			&:hover,
			&:focus {
				opacity: 0.7;

				span,
				span.__rdt_custom_sort_icon__ * {
					opacity: 0.7;
				}
			}
		`};
`,ee=st.div`
	display: inline-flex;
	align-items: center;
	justify-content: inherit;
	height: 100%;
	width: 100%;
	outline: none;
	user-select: none;
	overflow: hidden;
	${({disabled:it})=>!it&&Z};
`,te=st.div`
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
`;var ne=reactExports.memo(function({column:it,disabled:at,draggingColumnId:lt,selectedColumn:ut={},sortDirection:ct,sortIcon:dt,sortServer:ft,pagination:mt,paginationServer:pt,persistSelectedOnSort:gt,selectableRowsVisibleOnly:vt,onSort:wt,onDragStart:yt,onDragOver:bt,onDragEnd:Ct,onDragEnter:Et,onDragLeave:kt}){reactExports.useEffect(()=>{typeof it.selector=="string"&&console.error(`Warning: ${it.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)},[]);const[xt,St]=reactExports.useState(!1),Ot=reactExports.useRef(null);if(reactExports.useEffect(()=>{Ot.current&&St(Ot.current.scrollWidth>Ot.current.clientWidth)},[xt]),it.omit)return null;const At=()=>{if(!it.sortable&&!it.selector)return;let Vt=ct;w(ut.id,it.id)&&(Vt=ct===l.ASC?l.DESC:l.ASC),wt({type:"SORT_CHANGE",sortDirection:Vt,selectedColumn:it,clearSelectedOnSort:mt&&pt&&!gt||ft||vt})},Tt=Vt=>reactExports.createElement(Q$1,{sortActive:Vt,sortDirection:ct}),$t=()=>reactExports.createElement("span",{className:[ct,"__rdt_custom_sort_icon__"].join(" ")},dt),Lt=!(!it.sortable||!w(ut.id,it.id)),Rt=!it.sortable||at,It=it.sortable&&!dt&&!it.right,Ft=it.sortable&&!dt&&it.right,Mt=it.sortable&&dt&&!it.right,Ht=it.sortable&&dt&&it.right;return reactExports.createElement(X,{"data-column-id":it.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:it.allowOverflow,button:it.button,compact:it.compact,grow:it.grow,hide:it.hide,maxWidth:it.maxWidth,minWidth:it.minWidth,right:it.right,center:it.center,width:it.width,draggable:it.reorder,$isDragging:w(it.id,lt),onDragStart:yt,onDragOver:bt,onDragEnd:Ct,onDragEnter:Et,onDragLeave:kt},it.name&&reactExports.createElement(ee,{"data-column-id":it.id,"data-sort-id":it.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:Rt?void 0:At,onKeyPress:Rt?void 0:Vt=>{Vt.key==="Enter"&&At()},sortActive:!Rt&&Lt,disabled:Rt},!Rt&&Ht&&$t(),!Rt&&Ft&&Tt(Lt),typeof it.name=="string"?reactExports.createElement(te,{title:xt?it.name:void 0,ref:Ot,"data-column-id":it.id},it.name):it.name,!Rt&&Mt&&$t(),!Rt&&It&&Tt(Lt)))});const oe=st(k$1)`
	flex: 0 0 48px;
	justify-content: center;
	align-items: center;
	user-select: none;
	white-space: nowrap;
	font-size: unset;
`;function ae({headCell:it=!0,rowData:at,keyField:lt,allSelected:ut,mergeSelections:ct,selectedRows:dt,selectableRowsComponent:ft,selectableRowsComponentProps:mt,selectableRowDisabled:pt,onSelectAllRows:gt}){const vt=dt.length>0&&!ut,wt=pt?at.filter(Ct=>!pt(Ct)):at,yt=wt.length===0,bt=Math.min(at.length,wt.length);return reactExports.createElement(oe,{className:"rdt_TableCol",$headCell:it,$noPadding:!0},reactExports.createElement(j,{name:"select-all-rows",component:ft,componentOptions:mt,onClick:()=>{gt({type:"SELECT_ALL_ROWS",rows:wt,rowCount:bt,mergeSelections:ct,keyField:lt})},checked:ut,indeterminate:vt,disabled:yt}))}function le(it=B$1.AUTO){const at=typeof window=="object",[lt,ut]=reactExports.useState(!1);return reactExports.useEffect(()=>{if(at)if(it!=="auto")ut(it==="rtl");else{const ct=!(!window.document||!window.document.createElement),dt=document.getElementsByTagName("BODY")[0],ft=document.getElementsByTagName("HTML")[0],mt=dt.dir==="rtl"||ft.dir==="rtl";ut(ct&&mt)}},[it,at]),lt}const re=st.div`
	display: flex;
	align-items: center;
	flex: 1 0 auto;
	height: 100%;
	color: ${({theme:it})=>it.contextMenu.fontColor};
	font-size: ${({theme:it})=>it.contextMenu.fontSize};
	font-weight: 400;
`,ie=st.div`
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
`,se=st.div`
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-sizing: inherit;
	z-index: 1;
	align-items: center;
	justify-content: space-between;
	display: flex;
	${({$rtl:it})=>it&&"direction: rtl"};
	${({theme:it})=>it.contextMenu.style};
	${({theme:it,$visible:at})=>at&&it.contextMenu.activeStyle};
`;function de({contextMessage:it,contextActions:at,contextComponent:lt,selectedCount:ut,direction:ct}){const dt=le(ct),ft=ut>0;return lt?reactExports.createElement(se,{$visible:ft},reactExports.cloneElement(lt,{selectedCount:ut})):reactExports.createElement(se,{$visible:ft,$rtl:dt},reactExports.createElement(re,null,((mt,pt,gt)=>{if(pt===0)return null;const vt=pt===1?mt.singular:mt.plural;return gt?`${pt} ${mt.message||""} ${vt}`:`${pt} ${vt} ${mt.message||""}`})(it,ut,dt)),reactExports.createElement(ie,null,at))}const ce=st.div`
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	flex-wrap: wrap;
	${({theme:it})=>it.header.style}
`,ge=st.div`
	flex: 1 0 auto;
	color: ${({theme:it})=>it.header.fontColor};
	font-size: ${({theme:it})=>it.header.fontSize};
	font-weight: 400;
`,ue=st.div`
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;

	> * {
		margin-left: 5px;
	}
`,pe=({title:it,actions:at=null,contextMessage:lt,contextActions:ut,contextComponent:ct,selectedCount:dt,direction:ft,showMenu:mt=!0})=>reactExports.createElement(ce,{className:"rdt_TableHeader",role:"heading","aria-level":1},reactExports.createElement(ge,null,it),at&&reactExports.createElement(ue,null,at),mt&&reactExports.createElement(de,{contextMessage:lt,contextActions:ut,contextComponent:ct,direction:ft,selectedCount:dt}));function be(it,at){var lt={};for(var ut in it)Object.prototype.hasOwnProperty.call(it,ut)&&at.indexOf(ut)<0&&(lt[ut]=it[ut]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function"){var ct=0;for(ut=Object.getOwnPropertySymbols(it);ct<ut.length;ct++)at.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(it,ut[ct])&&(lt[ut[ct]]=it[ut[ct]])}return lt}const me={left:"flex-start",right:"flex-end",center:"center"},he=st.header`
	position: relative;
	display: flex;
	flex: 1 1 auto;
	box-sizing: border-box;
	align-items: center;
	padding: 4px 16px 4px 24px;
	width: 100%;
	justify-content: ${({align:it})=>me[it]};
	flex-wrap: ${({$wrapContent:it})=>it?"wrap":"nowrap"};
	${({theme:it})=>it.subHeader.style}
`,we=it=>{var{align:at="right",wrapContent:lt=!0}=it,ut=be(it,["align","wrapContent"]);return reactExports.createElement(he,Object.assign({align:at,$wrapContent:lt},ut))},fe=st.div`
	display: flex;
	flex-direction: column;
`,xe=st.div`
	position: relative;
	width: 100%;
	border-radius: inherit;
	${({$responsive:it,$fixedHeader:at})=>it&&nt`
			overflow-x: auto;

			// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
			overflow-y: ${at?"auto":"hidden"};
			min-height: 0;
		`};

	${({$fixedHeader:it=!1,$fixedHeaderScrollHeight:at="100vh"})=>it&&nt`
			max-height: ${at};
			-webkit-overflow-scrolling: touch;
		`};

	${({theme:it})=>it.responsiveWrapper.style};
`,Ce=st.div`
	position: relative;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	${it=>it.theme.progress.style};
`,ye=st.div`
	position: relative;
	width: 100%;
	${({theme:it})=>it.tableWrapper.style};
`,Re=st(k$1)`
	white-space: nowrap;
	${({theme:it})=>it.expanderCell.style};
`,ve=st.div`
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	${({theme:it})=>it.noData.style};
`,Se=()=>b$2.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},b$2.createElement("path",{d:"M7 10l5 5 5-5z"}),b$2.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Ee=st.select`
	cursor: pointer;
	height: 24px;
	max-width: 100%;
	user-select: none;
	padding-left: 8px;
	padding-right: 24px;
	box-sizing: content-box;
	font-size: inherit;
	color: inherit;
	border: none;
	background-color: transparent;
	appearance: none;
	direction: ltr;
	flex-shrink: 0;

	&::-ms-expand {
		display: none;
	}

	&:disabled::-ms-expand {
		background: #f60;
	}

	option {
		color: initial;
	}
`,Oe=st.div`
	position: relative;
	flex-shrink: 0;
	font-size: inherit;
	color: inherit;
	margin-top: 1px;

	svg {
		top: 0;
		right: 0;
		color: inherit;
		position: absolute;
		fill: currentColor;
		width: 24px;
		height: 24px;
		display: inline-block;
		user-select: none;
		pointer-events: none;
	}
`,$e=it=>{var{defaultValue:at,onChange:lt}=it,ut=be(it,["defaultValue","onChange"]);return reactExports.createElement(Oe,null,reactExports.createElement(Ee,Object.assign({onChange:lt,defaultValue:at},ut)),reactExports.createElement(Se,null))},ke={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return b$2.createElement("div",null,"To add an expander pass in a component instance via ",b$2.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:b$2.createElement(()=>b$2.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},b$2.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),b$2.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"})),null),expanded:b$2.createElement(()=>b$2.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},b$2.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),b$2.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"})),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:b$2.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:b$2.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:G.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:b$2.createElement(()=>b$2.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},b$2.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),b$2.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"})),null),paginationIconLastPage:b$2.createElement(()=>b$2.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},b$2.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),b$2.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"})),null),paginationIconNext:b$2.createElement(()=>b$2.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},b$2.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),b$2.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),null),paginationIconPrevious:b$2.createElement(()=>b$2.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},b$2.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),b$2.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:B$1.AUTO,onChangePage:p$1,onChangeRowsPerPage:p$1,onRowClicked:p$1,onRowDoubleClicked:p$1,onRowMouseEnter:p$1,onRowMouseLeave:p$1,onRowExpandToggled:p$1,onSelectedRowsChange:p$1,onSort:p$1,onColumnOrderChange:p$1},Pe={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},De=st.nav`
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-end;
	align-items: center;
	box-sizing: border-box;
	padding-right: 8px;
	padding-left: 8px;
	width: 100%;
	${({theme:it})=>it.pagination.style};
`,He=st.button`
	position: relative;
	display: block;
	user-select: none;
	border: none;
	${({theme:it})=>it.pagination.pageButtonsStyle};
	${({$isRTL:it})=>it&&"transform: scale(-1, -1)"};
`,Fe=st.div`
	display: flex;
	align-items: center;
	border-radius: 4px;
	white-space: nowrap;
	${S$1`
    width: 100%;
    justify-content: space-around;
  `};
`,je=st.span`
	flex-shrink: 1;
	user-select: none;
`,Ie=st(je)`
	margin: 0 24px;
`,Te=st(je)`
	margin: 0 4px;
`;var Le=reactExports.memo(function({rowsPerPage:it,rowCount:at,currentPage:lt,direction:ut=ke.direction,paginationRowsPerPageOptions:ct=ke.paginationRowsPerPageOptions,paginationIconLastPage:dt=ke.paginationIconLastPage,paginationIconFirstPage:ft=ke.paginationIconFirstPage,paginationIconNext:mt=ke.paginationIconNext,paginationIconPrevious:pt=ke.paginationIconPrevious,paginationComponentOptions:gt=ke.paginationComponentOptions,onChangeRowsPerPage:vt=ke.onChangeRowsPerPage,onChangePage:wt=ke.onChangePage}){const yt=(()=>{const Vt=typeof window=="object";function Nt(){return{width:Vt?window.innerWidth:void 0,height:Vt?window.innerHeight:void 0}}const[Gt,tn]=reactExports.useState(Nt);return reactExports.useEffect(()=>{if(!Vt)return()=>null;function ln(){tn(Nt())}return window.addEventListener("resize",ln),()=>window.removeEventListener("resize",ln)},[]),Gt})(),bt=le(ut),Ct=yt.width&&yt.width>599,Et=g$1(at,it),kt=lt*it,xt=kt-it+1,St=lt===1,Ot=lt===Et,At=Object.assign(Object.assign({},Pe),gt),Tt=lt===Et?`${xt}-${at} ${At.rangeSeparatorText} ${at}`:`${xt}-${kt} ${At.rangeSeparatorText} ${at}`,$t=reactExports.useCallback(()=>wt(lt-1),[lt,wt]),Lt=reactExports.useCallback(()=>wt(lt+1),[lt,wt]),Rt=reactExports.useCallback(()=>wt(1),[wt]),It=reactExports.useCallback(()=>wt(g$1(at,it)),[wt,at,it]),Ft=reactExports.useCallback(Vt=>vt(Number(Vt.target.value),lt),[lt,vt]),Mt=ct.map(Vt=>reactExports.createElement("option",{key:Vt,value:Vt},Vt));At.selectAllRowsItem&&Mt.push(reactExports.createElement("option",{key:-1,value:at},At.selectAllRowsItemText));const Ht=reactExports.createElement($e,{onChange:Ft,defaultValue:it,"aria-label":At.rowsPerPageText},Mt);return reactExports.createElement(De,{className:"rdt_Pagination"},!At.noRowsPerPage&&Ct&&reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Te,null,At.rowsPerPageText),Ht),Ct&&reactExports.createElement(Ie,null,Tt),reactExports.createElement(Fe,null,reactExports.createElement(He,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":St,onClick:Rt,disabled:St,$isRTL:bt},ft),reactExports.createElement(He,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":St,onClick:$t,disabled:St,$isRTL:bt},pt),!At.noRowsPerPage&&!Ct&&Ht,reactExports.createElement(He,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":Ot,onClick:Lt,disabled:Ot,$isRTL:bt},mt),reactExports.createElement(He,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":Ot,onClick:It,disabled:Ot,$isRTL:bt},dt)))});const Me=(it,at)=>{const lt=reactExports.useRef(!0);reactExports.useEffect(()=>{lt.current?lt.current=!1:it()},at)};var Ae=function(it){return function(at){return!!at&&typeof at=="object"}(it)&&!function(at){var lt=Object.prototype.toString.call(at);return lt==="[object RegExp]"||lt==="[object Date]"||function(ut){return ut.$$typeof===_e}(at)}(it)},_e=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Ne(it,at){return at.clone!==!1&&at.isMergeableObject(it)?Ve((lt=it,Array.isArray(lt)?[]:{}),it,at):it;var lt}function ze(it,at,lt){return it.concat(at).map(function(ut){return Ne(ut,lt)})}function We(it){return Object.keys(it).concat(function(at){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(at).filter(function(lt){return at.propertyIsEnumerable(lt)}):[]}(it))}function Be(it,at){try{return at in it}catch{return!1}}function Ge(it,at,lt){var ut={};return lt.isMergeableObject(it)&&We(it).forEach(function(ct){ut[ct]=Ne(it[ct],lt)}),We(at).forEach(function(ct){(function(dt,ft){return Be(dt,ft)&&!(Object.hasOwnProperty.call(dt,ft)&&Object.propertyIsEnumerable.call(dt,ft))})(it,ct)||(Be(it,ct)&&lt.isMergeableObject(at[ct])?ut[ct]=function(dt,ft){if(!ft.customMerge)return Ve;var mt=ft.customMerge(dt);return typeof mt=="function"?mt:Ve}(ct,lt)(it[ct],at[ct],lt):ut[ct]=Ne(at[ct],lt))}),ut}function Ve(it,at,lt){(lt=lt||{}).arrayMerge=lt.arrayMerge||ze,lt.isMergeableObject=lt.isMergeableObject||Ae,lt.cloneUnlessOtherwiseSpecified=Ne;var ut=Array.isArray(at);return ut===Array.isArray(it)?ut?lt.arrayMerge(it,at,lt):Ge(it,at,lt):Ne(at,lt)}Ve.all=function(it,at){if(!Array.isArray(it))throw new Error("first argument should be an array");return it.reduce(function(lt,ut){return Ve(lt,ut,at)},{})};var Ue=Ve;const Ye={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},Ke={default:Ye,light:Ye,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Je(it,at,lt,ut){const[ct,dt]=reactExports.useState(()=>c(it)),[ft,mt]=reactExports.useState(""),pt=reactExports.useRef("");Me(()=>{dt(c(it))},[it]);const gt=reactExports.useCallback(kt=>{var xt,St,Ot;const{attributes:At}=kt.target,Tt=(xt=At.getNamedItem("data-column-id"))===null||xt===void 0?void 0:xt.value;Tt&&(pt.current=((Ot=(St=ct[h$1(ct,Tt)])===null||St===void 0?void 0:St.id)===null||Ot===void 0?void 0:Ot.toString())||"",mt(pt.current))},[ct]),vt=reactExports.useCallback(kt=>{var xt;const{attributes:St}=kt.target,Ot=(xt=St.getNamedItem("data-column-id"))===null||xt===void 0?void 0:xt.value;if(Ot&&pt.current&&Ot!==pt.current){const At=h$1(ct,pt.current),Tt=h$1(ct,Ot),$t=[...ct];$t[At]=ct[Tt],$t[Tt]=ct[At],dt($t),at($t)}},[at,ct]),wt=reactExports.useCallback(kt=>{kt.preventDefault()},[]),yt=reactExports.useCallback(kt=>{kt.preventDefault()},[]),bt=reactExports.useCallback(kt=>{kt.preventDefault(),pt.current="",mt("")},[]),Ct=function(kt=!1){return kt?l.ASC:l.DESC}(ut),Et=reactExports.useMemo(()=>ct[h$1(ct,lt==null?void 0:lt.toString())]||{},[lt,ct]);return{tableColumns:ct,draggingColumnId:ft,handleDragStart:gt,handleDragEnter:vt,handleDragOver:wt,handleDragLeave:yt,handleDragEnd:bt,defaultSortDirection:Ct,defaultSortColumn:Et}}var Qe=reactExports.memo(function(it){const{data:at=ke.data,columns:lt=ke.columns,title:ut=ke.title,actions:ct=ke.actions,keyField:dt=ke.keyField,striped:ft=ke.striped,highlightOnHover:mt=ke.highlightOnHover,pointerOnHover:pt=ke.pointerOnHover,dense:gt=ke.dense,selectableRows:vt=ke.selectableRows,selectableRowsSingle:wt=ke.selectableRowsSingle,selectableRowsHighlight:yt=ke.selectableRowsHighlight,selectableRowsNoSelectAll:bt=ke.selectableRowsNoSelectAll,selectableRowsVisibleOnly:Ct=ke.selectableRowsVisibleOnly,selectableRowSelected:Et=ke.selectableRowSelected,selectableRowDisabled:kt=ke.selectableRowDisabled,selectableRowsComponent:xt=ke.selectableRowsComponent,selectableRowsComponentProps:St=ke.selectableRowsComponentProps,onRowExpandToggled:Ot=ke.onRowExpandToggled,onSelectedRowsChange:At=ke.onSelectedRowsChange,expandableIcon:Tt=ke.expandableIcon,onChangeRowsPerPage:$t=ke.onChangeRowsPerPage,onChangePage:Lt=ke.onChangePage,paginationServer:Rt=ke.paginationServer,paginationServerOptions:It=ke.paginationServerOptions,paginationTotalRows:Ft=ke.paginationTotalRows,paginationDefaultPage:Mt=ke.paginationDefaultPage,paginationResetDefaultPage:Ht=ke.paginationResetDefaultPage,paginationPerPage:Vt=ke.paginationPerPage,paginationRowsPerPageOptions:Nt=ke.paginationRowsPerPageOptions,paginationIconLastPage:Gt=ke.paginationIconLastPage,paginationIconFirstPage:tn=ke.paginationIconFirstPage,paginationIconNext:ln=ke.paginationIconNext,paginationIconPrevious:nn=ke.paginationIconPrevious,paginationComponent:on=ke.paginationComponent,paginationComponentOptions:rn=ke.paginationComponentOptions,responsive:Jt=ke.responsive,progressPending:Zt=ke.progressPending,progressComponent:Wt=ke.progressComponent,persistTableHead:jt=ke.persistTableHead,noDataComponent:Bt=ke.noDataComponent,disabled:Dt=ke.disabled,noTableHead:zt=ke.noTableHead,noHeader:Kt=ke.noHeader,fixedHeader:en=ke.fixedHeader,fixedHeaderScrollHeight:sn=ke.fixedHeaderScrollHeight,pagination:cn=ke.pagination,subHeader:bn=ke.subHeader,subHeaderAlign:Tn=ke.subHeaderAlign,subHeaderWrap:kn=ke.subHeaderWrap,subHeaderComponent:In=ke.subHeaderComponent,noContextMenu:Hn=ke.noContextMenu,contextMessage:Fn=ke.contextMessage,contextActions:wn=ke.contextActions,contextComponent:Mn=ke.contextComponent,expandableRows:Dn=ke.expandableRows,onRowClicked:Un=ke.onRowClicked,onRowDoubleClicked:Sn=ke.onRowDoubleClicked,onRowMouseEnter:On=ke.onRowMouseEnter,onRowMouseLeave:Cn=ke.onRowMouseLeave,sortIcon:Pn=ke.sortIcon,onSort:Xn=ke.onSort,sortFunction:Qn=ke.sortFunction,sortServer:sr=ke.sortServer,expandableRowsComponent:pr=ke.expandableRowsComponent,expandableRowsComponentProps:or=ke.expandableRowsComponentProps,expandableRowDisabled:br=ke.expandableRowDisabled,expandableRowsHideExpander:fn=ke.expandableRowsHideExpander,expandOnRowClicked:xn=ke.expandOnRowClicked,expandOnRowDoubleClicked:Kn=ke.expandOnRowDoubleClicked,expandableRowExpanded:_n=ke.expandableRowExpanded,expandableInheritConditionalStyles:gn=ke.expandableInheritConditionalStyles,defaultSortFieldId:vn=ke.defaultSortFieldId,defaultSortAsc:qn=ke.defaultSortAsc,clearSelectedRows:Yn=ke.clearSelectedRows,conditionalRowStyles:Sr=ke.conditionalRowStyles,theme:Tr=ke.theme,customStyles:Ln=ke.customStyles,direction:er=ke.direction,onColumnOrderChange:hr=ke.onColumnOrderChange,className:ur}=it,{tableColumns:_r,draggingColumnId:yr,handleDragStart:Rr,handleDragEnter:rr,handleDragOver:$r,handleDragLeave:mr,handleDragEnd:yn,defaultSortDirection:Qt,defaultSortColumn:dn}=Je(lt,hr,vn,qn),[{rowsPerPage:mn,currentPage:Rn,selectedRows:jn,allSelected:Vn,selectedCount:nr,selectedColumn:cr,sortDirection:Jn,toggleOnSelectedRowsChange:Ar},fr]=reactExports.useReducer(f$1,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:dn,toggleOnSelectedRowsChange:!1,sortDirection:Qt,currentPage:Mt,rowsPerPage:Vt,selectedRowsFlag:!1,contextMessage:ke.contextMessage}),{persistSelectedOnSort:gr=!1,persistSelectedOnPageChange:wr=!1}=It,kr=!(!Rt||!wr&&!gr),Nr=cn&&!Zt&&at.length>0,jr=on||Le,Zr=reactExports.useMemo(()=>((Lr={},zr="default",vo="default")=>{const xo=Ke[zr]?zr:vo;return Ue({table:{style:{color:(Pr=Ke[xo]).text.primary,backgroundColor:Pr.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:Pr.text.primary,backgroundColor:Pr.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:Pr.background.default,minHeight:"52px"}},head:{style:{color:Pr.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:Pr.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:Pr.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:Pr.context.background,fontSize:"18px",fontWeight:400,color:Pr.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:Pr.text.primary,backgroundColor:Pr.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:Pr.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:Pr.selected.text,backgroundColor:Pr.selected.default,borderBottomColor:Pr.background.default}},highlightOnHoverStyle:{color:Pr.highlightOnHover.text,backgroundColor:Pr.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:Pr.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:Pr.background.default},stripedStyle:{color:Pr.striped.text,backgroundColor:Pr.striped.default}},expanderRow:{style:{color:Pr.text.primary,backgroundColor:Pr.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:Pr.button.default,fill:Pr.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:Pr.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:Pr.button.hover},"&:focus":{outline:"none",backgroundColor:Pr.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:Pr.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:Pr.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:Pr.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:Pr.button.default,fill:Pr.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:Pr.button.disabled,fill:Pr.button.disabled},"&:hover:not(:disabled)":{backgroundColor:Pr.button.hover},"&:focus":{outline:"none",backgroundColor:Pr.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:Pr.text.primary,backgroundColor:Pr.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:Pr.text.primary,backgroundColor:Pr.background.default}}},Lr);var Pr})(Ln,Tr),[Ln,Tr]),Qr=reactExports.useMemo(()=>Object.assign({},er!=="auto"&&{dir:er}),[er]),qr=reactExports.useMemo(()=>{if(sr)return at;if(cr!=null&&cr.sortFunction&&typeof cr.sortFunction=="function"){const Lr=cr.sortFunction,zr=Jn===l.ASC?Lr:(vo,xo)=>-1*Lr(vo,xo);return[...at].sort(zr)}return function(Lr,zr,vo,xo){return zr?xo&&typeof xo=="function"?xo(Lr.slice(0),zr,vo):Lr.slice(0).sort((Pr,ds)=>{let Fo,So;if(typeof zr=="string"?(Fo=i$1(Pr,zr),So=i$1(ds,zr)):(Fo=zr(Pr),So=zr(ds)),vo==="asc"){if(Fo<So)return-1;if(Fo>So)return 1}if(vo==="desc"){if(Fo>So)return-1;if(Fo<So)return 1}return 0}):Lr}(at,cr==null?void 0:cr.selector,Jn,Qn)},[sr,cr,Jn,at,Qn]),_i=reactExports.useMemo(()=>{if(cn&&!Rt){const Lr=Rn*mn,zr=Lr-mn;return qr.slice(zr,Lr)}return qr},[Rn,cn,Rt,mn,qr]),$o=reactExports.useCallback(Lr=>{fr(Lr)},[]),ks=reactExports.useCallback(Lr=>{fr(Lr)},[]),ba=reactExports.useCallback(Lr=>{fr(Lr)},[]),Bs=reactExports.useCallback((Lr,zr)=>Un(Lr,zr),[Un]),xa=reactExports.useCallback((Lr,zr)=>Sn(Lr,zr),[Sn]),Yl=reactExports.useCallback((Lr,zr)=>On(Lr,zr),[On]),Xl=reactExports.useCallback((Lr,zr)=>Cn(Lr,zr),[Cn]),Qo=reactExports.useCallback(Lr=>fr({type:"CHANGE_PAGE",page:Lr,paginationServer:Rt,visibleOnly:Ct,persistSelectedOnPageChange:wr}),[Rt,wr,Ct]),Zl=reactExports.useCallback(Lr=>{const zr=g$1(Ft||_i.length,Lr),vo=u$1(Rn,zr);Rt||Qo(vo),fr({type:"CHANGE_ROWS_PER_PAGE",page:vo,rowsPerPage:Lr})},[Rn,Qo,Rt,Ft,_i.length]);if(cn&&!Rt&&qr.length>0&&_i.length===0){const Lr=g$1(qr.length,mn),zr=u$1(Rn,Lr);Qo(zr)}Me(()=>{At({allSelected:Vn,selectedCount:nr,selectedRows:jn.slice(0)})},[Ar]),Me(()=>{Xn(cr,Jn,qr.slice(0))},[cr,Jn]),Me(()=>{Lt(Rn,Ft||qr.length)},[Rn]),Me(()=>{$t(mn,Rn)},[mn]),Me(()=>{Qo(Mt)},[Mt,Ht]),Me(()=>{if(cn&&Rt&&Ft>0){const Lr=g$1(Ft,mn),zr=u$1(Rn,Lr);Rn!==zr&&Qo(zr)}},[Ft]),reactExports.useEffect(()=>{fr({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Yn})},[wt,Yn]),reactExports.useEffect(()=>{if(!Et)return;const Lr=qr.filter(vo=>Et(vo)),zr=wt?Lr.slice(0,1):Lr;fr({type:"SELECT_MULTIPLE_ROWS",keyField:dt,selectedRows:zr,totalRows:qr.length,mergeSelections:kr})},[at,Et]);const Us=Ct?_i:qr,$a=wr||wt||bt;return reactExports.createElement(Xe,{theme:Zr},!Kt&&(!!ut||!!ct)&&reactExports.createElement(pe,{title:ut,actions:ct,showMenu:!Hn,selectedCount:nr,direction:er,contextActions:wn,contextComponent:Mn,contextMessage:Fn}),bn&&reactExports.createElement(we,{align:Tn,wrapContent:kn},In),reactExports.createElement(xe,Object.assign({$responsive:Jt,$fixedHeader:en,$fixedHeaderScrollHeight:sn,className:ur},Qr),reactExports.createElement(ye,null,Zt&&!jt&&reactExports.createElement(Ce,null,Wt),reactExports.createElement(C$1,{disabled:Dt,className:"rdt_Table",role:"table"},!zt&&(!!jt||qr.length>0&&!Zt)&&reactExports.createElement(R$1,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:en},reactExports.createElement(v$1,{className:"rdt_TableHeadRow",role:"row",$dense:gt},vt&&($a?reactExports.createElement(k$1,{style:{flex:"0 0 48px"}}):reactExports.createElement(ae,{allSelected:Vn,selectedRows:jn,selectableRowsComponent:xt,selectableRowsComponentProps:St,selectableRowDisabled:kt,rowData:Us,keyField:dt,mergeSelections:kr,onSelectAllRows:ks})),Dn&&!fn&&reactExports.createElement(Re,null),_r.map(Lr=>reactExports.createElement(ne,{key:Lr.id,column:Lr,selectedColumn:cr,disabled:Zt||qr.length===0,pagination:cn,paginationServer:Rt,persistSelectedOnSort:gr,selectableRowsVisibleOnly:Ct,sortDirection:Jn,sortIcon:Pn,sortServer:sr,onSort:$o,onDragStart:Rr,onDragOver:$r,onDragEnd:yn,onDragEnter:rr,onDragLeave:mr,draggingColumnId:yr})))),!qr.length&&!Zt&&reactExports.createElement(ve,null,Bt),Zt&&jt&&reactExports.createElement(Ce,null,Wt),!Zt&&qr.length>0&&reactExports.createElement(fe,{className:"rdt_TableBody",role:"rowgroup"},_i.map((Lr,zr)=>{const vo=r$4(Lr,dt),xo=function(So=""){return typeof So!="number"&&(!So||So.length===0)}(vo)?zr:vo,Pr=m$1(Lr,jn,dt),ds=!!(Dn&&_n&&_n(Lr)),Fo=!!(Dn&&br&&br(Lr));return reactExports.createElement(q$1,{id:xo,key:xo,keyField:dt,"data-row-id":xo,columns:_r,row:Lr,rowCount:qr.length,rowIndex:zr,selectableRows:vt,expandableRows:Dn,expandableIcon:Tt,highlightOnHover:mt,pointerOnHover:pt,dense:gt,expandOnRowClicked:xn,expandOnRowDoubleClicked:Kn,expandableRowsComponent:pr,expandableRowsComponentProps:or,expandableRowsHideExpander:fn,defaultExpanderDisabled:Fo,defaultExpanded:ds,expandableInheritConditionalStyles:gn,conditionalRowStyles:Sr,selected:Pr,selectableRowsHighlight:yt,selectableRowsComponent:xt,selectableRowsComponentProps:St,selectableRowDisabled:kt,selectableRowsSingle:wt,striped:ft,onRowExpandToggled:Ot,onRowClicked:Bs,onRowDoubleClicked:xa,onRowMouseEnter:Yl,onRowMouseLeave:Xl,onSelectedRow:ba,draggingColumnId:yr,onDragStart:Rr,onDragOver:$r,onDragEnd:yn,onDragEnter:rr,onDragLeave:mr})}))))),Nr&&reactExports.createElement("div",null,reactExports.createElement(jr,{onChangePage:Qo,onChangeRowsPerPage:Zl,rowCount:Ft||qr.length,currentPage:Rn,rowsPerPage:mn,direction:er,paginationRowsPerPageOptions:Nt,paginationIconLastPage:Gt,paginationIconFirstPage:tn,paginationIconNext:ln,paginationIconPrevious:nn,paginationComponentOptions:rn})))});function o$2(it){return o$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(at){return typeof at}:function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at},o$2(it)}function t$1(it,at,lt,ut){if(o$2(lt)!==ut)throw new TypeError("Invalid prop '".concat(at,"' of type '").concat(o$2(lt),"' supplied to '").concat(it,"', expected '").concat(ut,"'."))}function e$1(it,at){at===void 0&&(at={});var lt=at.insertAt;if(it&&typeof document<"u"){var ut=document.head||document.getElementsByTagName("head")[0],ct=document.createElement("style");ct.type="text/css",lt==="top"&&ut.firstChild?ut.insertBefore(ct,ut.firstChild):ut.appendChild(ct),ct.styleSheet?ct.styleSheet.cssText=it:ct.appendChild(document.createTextNode(it))}}var r$3="LeapFrog-module_container__XNG48",o$1="LeapFrog-module_dot__Jkx1u";function i(it){var at=it.size,lt=at===void 0?40:at,ut=it.color,ct=ut===void 0?"black":ut,dt=it.speed,ft=dt===void 0?2.5:dt;return t$1("LeapFrog","size",lt,"number"),t$1("LeapFrog","color",ct,"string"),t$1("LeapFrog","speed",ft,"number"),b$2.createElement("div",{className:r$3,style:{"--uib-size":lt+"px","--uib-color":ct,"--uib-speed":ft+"s"}},b$2.createElement("div",{className:o$1}),b$2.createElement("div",{className:o$1}),b$2.createElement("div",{className:o$1}))}e$1('.LeapFrog-module_container__XNG48{align-items:center;display:flex;height:var(--uib-size);justify-content:space-between;position:relative;width:var(--uib-size)}.LeapFrog-module_dot__Jkx1u{align-items:center;display:flex;height:100%;justify-content:flex-start;left:0;position:absolute;top:0;width:100%}.LeapFrog-module_dot__Jkx1u:before{background-color:var(--uib-color);border-radius:50%;content:"";display:block;height:calc(var(--uib-size)*.22);width:calc(var(--uib-size)*.22)}.LeapFrog-module_dot__Jkx1u:first-child{animation:LeapFrog-module_leapFrog__umJ9T var(--uib-speed) ease infinite}.LeapFrog-module_dot__Jkx1u:nth-child(2){animation:LeapFrog-module_leapFrog__umJ9T var(--uib-speed) ease calc(var(--uib-speed)/-1.5) infinite;transform:translateX(calc(var(--uib-size)*.4))}.LeapFrog-module_dot__Jkx1u:nth-child(3){animation:LeapFrog-module_leapFrog__umJ9T var(--uib-speed) ease calc(var(--uib-speed)/-3) infinite;transform:translateX(calc(var(--uib-size)*.8)) rotate(0deg)}@keyframes LeapFrog-module_leapFrog__umJ9T{0%{transform:translateX(0) rotate(0deg)}33.333%{transform:translateX(0) rotate(180deg)}66.666%{transform:translateX(calc(var(--uib-size)*-.4)) rotate(180deg)}99.999%{transform:translateX(calc(var(--uib-size)*-.8)) rotate(180deg)}to{transform:translateX(0) rotate(0deg)}}');const Loading=()=>jsxRuntimeExports.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:jsxRuntimeExports.jsx(i,{size:40,speed:2.5,color:"black"})}),ErrorText=({children:it,...at})=>jsxRuntimeExports.jsx("small",{className:"text-danger",...at,children:it}),input="_input_12err_1",styles$5={input},Input=({meta:it,isTextArea:at,disableSpacing:lt,disableErrorText:ut,...ct})=>{const{t:dt}=useTranslation(["general"]),ft=it&&it.error&&it.error[0]&&it.touched,mt=()=>at?jsxRuntimeExports.jsx("textarea",{className:`form-control ${ft?"is-invalid":""} ${styles$5.input}`,...ct}):jsxRuntimeExports.jsx("input",{className:`form-control ${ft?"is-invalid":""} ${styles$5.input}`,...ct});return jsxRuntimeExports.jsxs("div",{className:lt?"":"my-1",children:[mt(),ft&&!ut&&jsxRuntimeExports.jsx(ErrorText,{children:dt(`general:fields.validators.${it.error[0]}`,{value:it.error[1]})})]})},Select=({options:it,meta:at,...lt})=>{const{t:ut}=useTranslation(["general"]),ct=at&&at.error&&at.error[0]&&at.touched;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("select",{className:`form-select mb-2 my-1 ${ct?"is-invalid":""}`,...lt,children:it&&it.map(dt=>jsxRuntimeExports.jsx("option",{value:dt.value,children:dt.title},dt.title))}),ct&&jsxRuntimeExports.jsx(ErrorText,{children:ut(`general:fields.validators.${at.error[0]}`,{value:at.error[1]})})]})},styles$4={"icon-button":"_icon-button_oawjo_1"},IconButton=({icon:it,className:at,onClick:lt,...ut})=>jsxRuntimeExports.jsx("i",{className:`${styles$4["icon-button"]} ${it} ${at}`,onClick:lt,...ut});var lodash={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */lodash.exports;(function(it,at){(function(){var lt,ut="4.17.21",ct=200,dt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ft="Expected a function",mt="Invalid `variable` option passed into `_.template`",pt="__lodash_hash_undefined__",gt=500,vt="__lodash_placeholder__",wt=1,yt=2,bt=4,Ct=1,Et=2,kt=1,xt=2,St=4,Ot=8,At=16,Tt=32,$t=64,Lt=128,Rt=256,It=512,Ft=30,Mt="...",Ht=800,Vt=16,Nt=1,Gt=2,tn=3,ln=1/0,nn=9007199254740991,on=17976931348623157e292,rn=0/0,Jt=4294967295,Zt=Jt-1,Wt=Jt>>>1,jt=[["ary",Lt],["bind",kt],["bindKey",xt],["curry",Ot],["curryRight",At],["flip",It],["partial",Tt],["partialRight",$t],["rearg",Rt]],Bt="[object Arguments]",Dt="[object Array]",zt="[object AsyncFunction]",Kt="[object Boolean]",en="[object Date]",sn="[object DOMException]",cn="[object Error]",bn="[object Function]",Tn="[object GeneratorFunction]",kn="[object Map]",In="[object Number]",Hn="[object Null]",Fn="[object Object]",wn="[object Promise]",Mn="[object Proxy]",Dn="[object RegExp]",Un="[object Set]",Sn="[object String]",On="[object Symbol]",Cn="[object Undefined]",Pn="[object WeakMap]",Xn="[object WeakSet]",Qn="[object ArrayBuffer]",sr="[object DataView]",pr="[object Float32Array]",or="[object Float64Array]",br="[object Int8Array]",fn="[object Int16Array]",xn="[object Int32Array]",Kn="[object Uint8Array]",_n="[object Uint8ClampedArray]",gn="[object Uint16Array]",vn="[object Uint32Array]",qn=/\b__p \+= '';/g,Yn=/\b(__p \+=) '' \+/g,Sr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tr=/&(?:amp|lt|gt|quot|#39);/g,Ln=/[&<>"']/g,er=RegExp(Tr.source),hr=RegExp(Ln.source),ur=/<%-([\s\S]+?)%>/g,_r=/<%([\s\S]+?)%>/g,yr=/<%=([\s\S]+?)%>/g,Rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rr=/^\w*$/,$r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mr=/[\\^$.*+?()[\]{}|]/g,yn=RegExp(mr.source),Qt=/^\s+/,dn=/\s/,mn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rn=/\{\n\/\* \[wrapped with (.+)\] \*/,jn=/,? & /,Vn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nr=/[()=,{}\[\]\/\s]/,cr=/\\(\\)?/g,Jn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ar=/\w*$/,fr=/^[-+]0x[0-9a-f]+$/i,gr=/^0b[01]+$/i,wr=/^\[object .+?Constructor\]$/,kr=/^0o[0-7]+$/i,Nr=/^(?:0|[1-9]\d*)$/,jr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zr=/($^)/,Qr=/['\n\r\u2028\u2029\\]/g,qr="\\ud800-\\udfff",_i="\\u0300-\\u036f",$o="\\ufe20-\\ufe2f",ks="\\u20d0-\\u20ff",ba=_i+$o+ks,Bs="\\u2700-\\u27bf",xa="a-z\\xdf-\\xf6\\xf8-\\xff",Yl="\\xac\\xb1\\xd7\\xf7",Xl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qo="\\u2000-\\u206f",Zl=" \\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",Us="A-Z\\xc0-\\xd6\\xd8-\\xde",$a="\\ufe0e\\ufe0f",Lr=Yl+Xl+Qo+Zl,zr="['’]",vo="["+qr+"]",xo="["+Lr+"]",Pr="["+ba+"]",ds="\\d+",Fo="["+Bs+"]",So="["+xa+"]",Ql="[^"+qr+Lr+ds+Bs+xa+Us+"]",Jl="\\ud83c[\\udffb-\\udfff]",em="(?:"+Pr+"|"+Jl+")",fs="[^"+qr+"]",_l="(?:\\ud83c[\\udde6-\\uddff]){2}",eu="[\\ud800-\\udbff][\\udc00-\\udfff]",ns="["+Us+"]",tu="\\u200d",ju="(?:"+So+"|"+Ql+")",tm="(?:"+ns+"|"+Ql+")",Bu="(?:"+zr+"(?:d|ll|m|re|s|t|ve))?",Uu="(?:"+zr+"(?:D|LL|M|RE|S|T|VE))?",Hu=em+"?",zu="["+$a+"]?",Hs="(?:"+tu+"(?:"+[fs,_l,eu].join("|")+")"+zu+Hu+")*",nm="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nu=zu+Hu+Hs,rm="(?:"+[Fo,_l,eu].join("|")+")"+nu,im="(?:"+[fs+Pr+"?",Pr,_l,eu,vo].join("|")+")",om=RegExp(zr,"g"),sm=RegExp(Pr,"g"),ru=RegExp(Jl+"(?="+Jl+")|"+im+nu,"g"),am=RegExp([ns+"?"+So+"+"+Bu+"(?="+[xo,ns,"$"].join("|")+")",tm+"+"+Uu+"(?="+[xo,ns+ju,"$"].join("|")+")",ns+"?"+ju+"+"+Bu,ns+"+"+Uu,Wu,nm,ds,rm].join("|"),"g"),lm=RegExp("["+tu+qr+ba+$a+"]"),Cs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,um=["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"],cm=-1,ro={};ro[pr]=ro[or]=ro[br]=ro[fn]=ro[xn]=ro[Kn]=ro[_n]=ro[gn]=ro[vn]=!0,ro[Bt]=ro[Dt]=ro[Qn]=ro[Kt]=ro[sr]=ro[en]=ro[cn]=ro[bn]=ro[kn]=ro[In]=ro[Fn]=ro[Dn]=ro[Un]=ro[Sn]=ro[Pn]=!1;var io={};io[Bt]=io[Dt]=io[Qn]=io[sr]=io[Kt]=io[en]=io[pr]=io[or]=io[br]=io[fn]=io[xn]=io[kn]=io[In]=io[Fn]=io[Dn]=io[Un]=io[Sn]=io[On]=io[Kn]=io[_n]=io[gn]=io[vn]=!0,io[cn]=io[bn]=io[Pn]=!1;var rs={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},dm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},zs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},fm=parseFloat,hm=parseInt,Vu=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Gu=typeof self=="object"&&self&&self.Object===Object&&self,co=Vu||Gu||Function("return this")(),iu=at&&!at.nodeType&&at,hs=iu&&!0&&it&&!it.nodeType&&it,Ku=hs&&hs.exports===iu,ou=Ku&&Vu.process,Po=function(){try{var zn=hs&&hs.require&&hs.require("util").types;return zn||ou&&ou.binding&&ou.binding("util")}catch{}}(),Yu=Po&&Po.isArrayBuffer,Xu=Po&&Po.isDate,Zu=Po&&Po.isMap,Qu=Po&&Po.isRegExp,Ju=Po&&Po.isSet,Ws=Po&&Po.isTypedArray;function wo(zn,ir,Zn){switch(Zn.length){case 0:return zn.call(ir);case 1:return zn.call(ir,Zn[0]);case 2:return zn.call(ir,Zn[0],Zn[1]);case 3:return zn.call(ir,Zn[0],Zn[1],Zn[2])}return zn.apply(ir,Zn)}function pm(zn,ir,Zn,Er){for(var Fr=-1,Jr=zn==null?0:zn.length;++Fr<Jr;){var po=zn[Fr];ir(Er,po,Zn(po),zn)}return Er}function Ro(zn,ir){for(var Zn=-1,Er=zn==null?0:zn.length;++Zn<Er&&ir(zn[Zn],Zn,zn)!==!1;);return zn}function mm(zn,ir){for(var Zn=zn==null?0:zn.length;Zn--&&ir(zn[Zn],Zn,zn)!==!1;);return zn}function su(zn,ir){for(var Zn=-1,Er=zn==null?0:zn.length;++Zn<Er;)if(!ir(zn[Zn],Zn,zn))return!1;return!0}function is(zn,ir){for(var Zn=-1,Er=zn==null?0:zn.length,Fr=0,Jr=[];++Zn<Er;){var po=zn[Zn];ir(po,Zn,zn)&&(Jr[Fr++]=po)}return Jr}function Os(zn,ir){var Zn=zn==null?0:zn.length;return!!Zn&&ps(zn,ir,0)>-1}function yl(zn,ir,Zn){for(var Er=-1,Fr=zn==null?0:zn.length;++Er<Fr;)if(Zn(ir,zn[Er]))return!0;return!1}function oo(zn,ir){for(var Zn=-1,Er=zn==null?0:zn.length,Fr=Array(Er);++Zn<Er;)Fr[Zn]=ir(zn[Zn],Zn,zn);return Fr}function Wo(zn,ir){for(var Zn=-1,Er=ir.length,Fr=zn.length;++Zn<Er;)zn[Fr+Zn]=ir[Zn];return zn}function $s(zn,ir,Zn,Er){var Fr=-1,Jr=zn==null?0:zn.length;for(Er&&Jr&&(Zn=zn[++Fr]);++Fr<Jr;)Zn=ir(Zn,zn[Fr],Fr,zn);return Zn}function gm(zn,ir,Zn,Er){var Fr=zn==null?0:zn.length;for(Er&&Fr&&(Zn=zn[--Fr]);Fr--;)Zn=ir(Zn,zn[Fr],Fr,zn);return Zn}function xl(zn,ir){for(var Zn=-1,Er=zn==null?0:zn.length;++Zn<Er;)if(ir(zn[Zn],Zn,zn))return!0;return!1}var _c=uu("length");function _d(zn){return zn.split("")}function _f(zn){return zn.match(Vn)||[]}function au(zn,ir,Zn){var Er;return Zn(zn,function(Fr,Jr,po){if(ir(Fr,Jr,po))return Er=Jr,!1}),Er}function qs(zn,ir,Zn,Er){for(var Fr=zn.length,Jr=Zn+(Er?1:-1);Er?Jr--:++Jr<Fr;)if(ir(zn[Jr],Jr,zn))return Jr;return-1}function ps(zn,ir,Zn){return ir===ir?wm(zn,ir,Zn):qs(zn,lu,Zn)}function _h(zn,ir,Zn,Er){for(var Fr=Zn-1,Jr=zn.length;++Fr<Jr;)if(Er(zn[Fr],ir))return Fr;return-1}function lu(zn){return zn!==zn}function ms(zn,ir){var Zn=zn==null?0:zn.length;return Zn?El(zn,ir)/Zn:rn}function uu(zn){return function(ir){return ir==null?lt:ir[zn]}}function cu(zn){return function(ir){return zn==null?lt:zn[ir]}}function ep(zn,ir,Zn,Er,Fr){return Fr(zn,function(Jr,po,no){Zn=Er?(Er=!1,Jr):ir(Zn,Jr,po,no)}),Zn}function tp(zn,ir){var Zn=zn.length;for(zn.sort(ir);Zn--;)zn[Zn]=zn[Zn].value;return zn}function El(zn,ir){for(var Zn,Er=-1,Fr=zn.length;++Er<Fr;){var Jr=ir(zn[Er]);Jr!==lt&&(Zn=Zn===lt?Jr:Zn+Jr)}return Zn}function Sl(zn,ir){for(var Zn=-1,Er=Array(zn);++Zn<zn;)Er[Zn]=ir(Zn);return Er}function _m(zn,ir){return oo(ir,function(Zn){return[Zn,zn[Zn]]})}function np(zn){return zn&&zn.slice(0,mu(zn)+1).replace(Qt,"")}function Ao(zn){return function(ir){return zn(ir)}}function du(zn,ir){return oo(ir,function(Zn){return zn[Zn]})}function Ps(zn,ir){return zn.has(ir)}function rp(zn,ir){for(var Zn=-1,Er=zn.length;++Zn<Er&&ps(ir,zn[Zn],0)>-1;);return Zn}function fu(zn,ir){for(var Zn=zn.length;Zn--&&ps(ir,zn[Zn],0)>-1;);return Zn}function vm(zn,ir){for(var Zn=zn.length,Er=0;Zn--;)zn[Zn]===ir&&++Er;return Er}var ip=cu(rs),hu=cu(dm);function ym(zn){return"\\"+zs[zn]}function bm(zn,ir){return zn==null?lt:zn[ir]}function Rs(zn){return lm.test(zn)}function xm(zn){return Cs.test(zn)}function Al(zn){for(var ir,Zn=[];!(ir=zn.next()).done;)Zn.push(ir.value);return Zn}function pu(zn){var ir=-1,Zn=Array(zn.size);return zn.forEach(function(Er,Fr){Zn[++ir]=[Fr,Er]}),Zn}function op(zn,ir){return function(Zn){return zn(ir(Zn))}}function os(zn,ir){for(var Zn=-1,Er=zn.length,Fr=0,Jr=[];++Zn<Er;){var po=zn[Zn];(po===ir||po===vt)&&(zn[Zn]=vt,Jr[Fr++]=Zn)}return Jr}function Tl(zn){var ir=-1,Zn=Array(zn.size);return zn.forEach(function(Er){Zn[++ir]=Er}),Zn}function sp(zn){var ir=-1,Zn=Array(zn.size);return zn.forEach(function(Er){Zn[++ir]=[Er,Er]}),Zn}function wm(zn,ir,Zn){for(var Er=Zn-1,Fr=zn.length;++Er<Fr;)if(zn[Er]===ir)return Er;return-1}function Em(zn,ir,Zn){for(var Er=Zn+1;Er--;)if(zn[Er]===ir)return Er;return Er}function Ls(zn){return Rs(zn)?Sm(zn):_c(zn)}function jo(zn){return Rs(zn)?Am(zn):_d(zn)}function mu(zn){for(var ir=zn.length;ir--&&dn.test(zn.charAt(ir)););return ir}var ap=cu(qu);function Sm(zn){for(var ir=ru.lastIndex=0;ru.test(zn);)++ir;return ir}function Am(zn){return zn.match(ru)||[]}function Tm(zn){return zn.match(am)||[]}var lp=function zn(ir){ir=ir==null?co:ss.defaults(co.Object(),ir,ss.pick(co,um));var Zn=ir.Array,Er=ir.Date,Fr=ir.Error,Jr=ir.Function,po=ir.Math,no=ir.Object,gu=ir.RegExp,km=ir.String,Lo=ir.TypeError,Cl=Zn.prototype,Cm=Jr.prototype,Is=no.prototype,qo=ir["__core-js_shared__"],Vs=Cm.toString,eo=Is.hasOwnProperty,up=0,cp=function(){var ht=/[^.]+$/.exec(qo&&qo.keys&&qo.keys.IE_PROTO||"");return ht?"Symbol(src)_1."+ht:""}(),Ol=Is.toString,Om=Vs.call(no),dp=co._,$m=gu("^"+Vs.call(eo).replace(mr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$l=Ku?ir.Buffer:lt,as=ir.Symbol,To=ir.Uint8Array,Gs=$l?$l.allocUnsafe:lt,ao=op(no.getPrototypeOf,no),fp=no.create,hp=Is.propertyIsEnumerable,Pl=Cl.splice,pp=as?as.isConcatSpreadable:lt,Ks=as?as.iterator:lt,gs=as?as.toStringTag:lt,Rl=function(){try{var ht=Js(no,"defineProperty");return ht({},"",{}),ht}catch{}}(),Ll=ir.clearTimeout!==co.clearTimeout&&ir.clearTimeout,Ut=Er&&Er.now!==co.Date.now&&Er.now,qt=ir.setTimeout!==co.setTimeout&&ir.setTimeout,an=po.ceil,En=po.floor,tr=no.getOwnPropertySymbols,Cr=$l?$l.isBuffer:lt,Xr=ir.isFinite,so=Cl.join,uo=op(no.keys,no),lo=po.max,_o=po.min,xy=Er.now,wy=ir.parseInt,i_=po.random,Ey=Cl.reverse,Pm=Js(ir,"DataView"),_u=Js(ir,"Map"),Rm=Js(ir,"Promise"),Il=Js(ir,"Set"),vu=Js(ir,"WeakMap"),yu=Js(no,"create"),mp=vu&&new vu,Dl={},Sy=na(Pm),Ay=na(_u),Ty=na(Rm),ky=na(Il),Cy=na(vu),gp=as?as.prototype:lt,bu=gp?gp.valueOf:lt,o_=gp?gp.toString:lt;function hn(ht){if(ho(ht)&&!Br(ht)&&!(ht instanceof Kr)){if(ht instanceof Vo)return ht;if(eo.call(ht,"__wrapped__"))return sv(ht)}return new Vo(ht)}var Ml=function(){function ht(){}return function(_t){if(!fo(_t))return{};if(fp)return fp(_t);ht.prototype=_t;var Pt=new ht;return ht.prototype=lt,Pt}}();function _p(){}function Vo(ht,_t){this.__wrapped__=ht,this.__actions__=[],this.__chain__=!!_t,this.__index__=0,this.__values__=lt}hn.templateSettings={escape:ur,evaluate:_r,interpolate:yr,variable:"",imports:{_:hn}},hn.prototype=_p.prototype,hn.prototype.constructor=hn,Vo.prototype=Ml(_p.prototype),Vo.prototype.constructor=Vo;function Kr(ht){this.__wrapped__=ht,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Jt,this.__views__=[]}function Oy(){var ht=new Kr(this.__wrapped__);return ht.__actions__=Io(this.__actions__),ht.__dir__=this.__dir__,ht.__filtered__=this.__filtered__,ht.__iteratees__=Io(this.__iteratees__),ht.__takeCount__=this.__takeCount__,ht.__views__=Io(this.__views__),ht}function $y(){if(this.__filtered__){var ht=new Kr(this);ht.__dir__=-1,ht.__filtered__=!0}else ht=this.clone(),ht.__dir__*=-1;return ht}function Py(){var ht=this.__wrapped__.value(),_t=this.__dir__,Pt=Br(ht),Xt=_t<0,un=Pt?ht.length:0,pn=z0(0,un,this.__views__),$n=pn.start,Bn=pn.end,Gn=Bn-$n,ar=Xt?Bn:$n-1,lr=this.__iteratees__,dr=lr.length,xr=0,Or=_o(Gn,this.__takeCount__);if(!Pt||!Xt&&un==Gn&&Or==Gn)return O_(ht,this.__actions__);var Dr=[];e:for(;Gn--&&xr<Or;){ar+=_t;for(var Wr=-1,Mr=ht[ar];++Wr<dr;){var Gr=lr[Wr],Yr=Gr.iteratee,Ho=Gr.type,Oo=Yr(Mr);if(Ho==Gt)Mr=Oo;else if(!Oo){if(Ho==Nt)continue e;break e}}Dr[xr++]=Mr}return Dr}Kr.prototype=Ml(_p.prototype),Kr.prototype.constructor=Kr;function Ys(ht){var _t=-1,Pt=ht==null?0:ht.length;for(this.clear();++_t<Pt;){var Xt=ht[_t];this.set(Xt[0],Xt[1])}}function Ry(){this.__data__=yu?yu(null):{},this.size=0}function Ly(ht){var _t=this.has(ht)&&delete this.__data__[ht];return this.size-=_t?1:0,_t}function Iy(ht){var _t=this.__data__;if(yu){var Pt=_t[ht];return Pt===pt?lt:Pt}return eo.call(_t,ht)?_t[ht]:lt}function Dy(ht){var _t=this.__data__;return yu?_t[ht]!==lt:eo.call(_t,ht)}function My(ht,_t){var Pt=this.__data__;return this.size+=this.has(ht)?0:1,Pt[ht]=yu&&_t===lt?pt:_t,this}Ys.prototype.clear=Ry,Ys.prototype.delete=Ly,Ys.prototype.get=Iy,Ys.prototype.has=Dy,Ys.prototype.set=My;function _s(ht){var _t=-1,Pt=ht==null?0:ht.length;for(this.clear();++_t<Pt;){var Xt=ht[_t];this.set(Xt[0],Xt[1])}}function Ny(){this.__data__=[],this.size=0}function Fy(ht){var _t=this.__data__,Pt=vp(_t,ht);if(Pt<0)return!1;var Xt=_t.length-1;return Pt==Xt?_t.pop():Pl.call(_t,Pt,1),--this.size,!0}function jy(ht){var _t=this.__data__,Pt=vp(_t,ht);return Pt<0?lt:_t[Pt][1]}function By(ht){return vp(this.__data__,ht)>-1}function Uy(ht,_t){var Pt=this.__data__,Xt=vp(Pt,ht);return Xt<0?(++this.size,Pt.push([ht,_t])):Pt[Xt][1]=_t,this}_s.prototype.clear=Ny,_s.prototype.delete=Fy,_s.prototype.get=jy,_s.prototype.has=By,_s.prototype.set=Uy;function vs(ht){var _t=-1,Pt=ht==null?0:ht.length;for(this.clear();++_t<Pt;){var Xt=ht[_t];this.set(Xt[0],Xt[1])}}function Hy(){this.size=0,this.__data__={hash:new Ys,map:new(_u||_s),string:new Ys}}function zy(ht){var _t=$p(this,ht).delete(ht);return this.size-=_t?1:0,_t}function Wy(ht){return $p(this,ht).get(ht)}function qy(ht){return $p(this,ht).has(ht)}function Vy(ht,_t){var Pt=$p(this,ht),Xt=Pt.size;return Pt.set(ht,_t),this.size+=Pt.size==Xt?0:1,this}vs.prototype.clear=Hy,vs.prototype.delete=zy,vs.prototype.get=Wy,vs.prototype.has=qy,vs.prototype.set=Vy;function Xs(ht){var _t=-1,Pt=ht==null?0:ht.length;for(this.__data__=new vs;++_t<Pt;)this.add(ht[_t])}function Gy(ht){return this.__data__.set(ht,pt),this}function Ky(ht){return this.__data__.has(ht)}Xs.prototype.add=Xs.prototype.push=Gy,Xs.prototype.has=Ky;function Jo(ht){var _t=this.__data__=new _s(ht);this.size=_t.size}function Yy(){this.__data__=new _s,this.size=0}function Xy(ht){var _t=this.__data__,Pt=_t.delete(ht);return this.size=_t.size,Pt}function Zy(ht){return this.__data__.get(ht)}function Qy(ht){return this.__data__.has(ht)}function Jy(ht,_t){var Pt=this.__data__;if(Pt instanceof _s){var Xt=Pt.__data__;if(!_u||Xt.length<ct-1)return Xt.push([ht,_t]),this.size=++Pt.size,this;Pt=this.__data__=new vs(Xt)}return Pt.set(ht,_t),this.size=Pt.size,this}Jo.prototype.clear=Yy,Jo.prototype.delete=Xy,Jo.prototype.get=Zy,Jo.prototype.has=Qy,Jo.prototype.set=Jy;function s_(ht,_t){var Pt=Br(ht),Xt=!Pt&&ga(ht),un=!Pt&&!Xt&&js(ht),pn=!Pt&&!Xt&&!un&&Ul(ht),$n=Pt||Xt||un||pn,Bn=$n?Sl(ht.length,km):[],Gn=Bn.length;for(var ar in ht)(_t||eo.call(ht,ar))&&!($n&&(ar=="length"||un&&(ar=="offset"||ar=="parent")||pn&&(ar=="buffer"||ar=="byteLength"||ar=="byteOffset")||ws(ar,Gn)))&&Bn.push(ar);return Bn}function a_(ht){var _t=ht.length;return _t?ht[zm(0,_t-1)]:lt}function e0(ht,_t){return Pp(Io(ht),Zs(_t,0,ht.length))}function t0(ht){return Pp(Io(ht))}function Lm(ht,_t,Pt){(Pt!==lt&&!es(ht[_t],Pt)||Pt===lt&&!(_t in ht))&&ys(ht,_t,Pt)}function xu(ht,_t,Pt){var Xt=ht[_t];(!(eo.call(ht,_t)&&es(Xt,Pt))||Pt===lt&&!(_t in ht))&&ys(ht,_t,Pt)}function vp(ht,_t){for(var Pt=ht.length;Pt--;)if(es(ht[Pt][0],_t))return Pt;return-1}function n0(ht,_t,Pt,Xt){return Ds(ht,function(un,pn,$n){_t(Xt,un,Pt(un),$n)}),Xt}function l_(ht,_t){return ht&&us(_t,yo(_t),ht)}function r0(ht,_t){return ht&&us(_t,Mo(_t),ht)}function ys(ht,_t,Pt){_t=="__proto__"&&Rl?Rl(ht,_t,{configurable:!0,enumerable:!0,value:Pt,writable:!0}):ht[_t]=Pt}function Im(ht,_t){for(var Pt=-1,Xt=_t.length,un=Zn(Xt),pn=ht==null;++Pt<Xt;)un[Pt]=pn?lt:p1(ht,_t[Pt]);return un}function Zs(ht,_t,Pt){return ht===ht&&(Pt!==lt&&(ht=ht<=Pt?ht:Pt),_t!==lt&&(ht=ht>=_t?ht:_t)),ht}function Go(ht,_t,Pt,Xt,un,pn){var $n,Bn=_t&wt,Gn=_t&yt,ar=_t&bt;if(Pt&&($n=un?Pt(ht,Xt,un,pn):Pt(ht)),$n!==lt)return $n;if(!fo(ht))return ht;var lr=Br(ht);if(lr){if($n=q0(ht),!Bn)return Io(ht,$n)}else{var dr=Eo(ht),xr=dr==bn||dr==Tn;if(js(ht))return R_(ht,Bn);if(dr==Fn||dr==Bt||xr&&!un){if($n=Gn||xr?{}:Z_(ht),!Bn)return Gn?I0(ht,r0($n,ht)):L0(ht,l_($n,ht))}else{if(!io[dr])return un?ht:{};$n=V0(ht,dr,Bn)}}pn||(pn=new Jo);var Or=pn.get(ht);if(Or)return Or;pn.set(ht,$n),Tv(ht)?ht.forEach(function(Mr){$n.add(Go(Mr,_t,Pt,Mr,ht,pn))}):Sv(ht)&&ht.forEach(function(Mr,Gr){$n.set(Gr,Go(Mr,_t,Pt,Gr,ht,pn))});var Dr=ar?Gn?_g:Jm:Gn?Mo:yo,Wr=lr?lt:Dr(ht);return Ro(Wr||ht,function(Mr,Gr){Wr&&(Gr=Mr,Mr=ht[Gr]),xu($n,Gr,Go(Mr,_t,Pt,Gr,ht,pn))}),$n}function i0(ht){var _t=yo(ht);return function(Pt){return u_(Pt,ht,_t)}}function u_(ht,_t,Pt){var Xt=Pt.length;if(ht==null)return!Xt;for(ht=no(ht);Xt--;){var un=Pt[Xt],pn=_t[un],$n=ht[un];if($n===lt&&!(un in ht)||!pn($n))return!1}return!0}function c_(ht,_t,Pt){if(typeof ht!="function")throw new Lo(ft);return Cu(function(){ht.apply(lt,Pt)},_t)}function wu(ht,_t,Pt,Xt){var un=-1,pn=Os,$n=!0,Bn=ht.length,Gn=[],ar=_t.length;if(!Bn)return Gn;Pt&&(_t=oo(_t,Ao(Pt))),Xt?(pn=yl,$n=!1):_t.length>=ct&&(pn=Ps,$n=!1,_t=new Xs(_t));e:for(;++un<Bn;){var lr=ht[un],dr=Pt==null?lr:Pt(lr);if(lr=Xt||lr!==0?lr:0,$n&&dr===dr){for(var xr=ar;xr--;)if(_t[xr]===dr)continue e;Gn.push(lr)}else pn(_t,dr,Xt)||Gn.push(lr)}return Gn}var Ds=N_(ls),d_=N_(Mm,!0);function o0(ht,_t){var Pt=!0;return Ds(ht,function(Xt,un,pn){return Pt=!!_t(Xt,un,pn),Pt}),Pt}function yp(ht,_t,Pt){for(var Xt=-1,un=ht.length;++Xt<un;){var pn=ht[Xt],$n=_t(pn);if($n!=null&&(Bn===lt?$n===$n&&!Uo($n):Pt($n,Bn)))var Bn=$n,Gn=pn}return Gn}function s0(ht,_t,Pt,Xt){var un=ht.length;for(Pt=Ur(Pt),Pt<0&&(Pt=-Pt>un?0:un+Pt),Xt=Xt===lt||Xt>un?un:Ur(Xt),Xt<0&&(Xt+=un),Xt=Pt>Xt?0:Cv(Xt);Pt<Xt;)ht[Pt++]=_t;return ht}function f_(ht,_t){var Pt=[];return Ds(ht,function(Xt,un,pn){_t(Xt,un,pn)&&Pt.push(Xt)}),Pt}function bo(ht,_t,Pt,Xt,un){var pn=-1,$n=ht.length;for(Pt||(Pt=K0),un||(un=[]);++pn<$n;){var Bn=ht[pn];_t>0&&Pt(Bn)?_t>1?bo(Bn,_t-1,Pt,Xt,un):Wo(un,Bn):Xt||(un[un.length]=Bn)}return un}var Dm=F_(),h_=F_(!0);function ls(ht,_t){return ht&&Dm(ht,_t,yo)}function Mm(ht,_t){return ht&&h_(ht,_t,yo)}function bp(ht,_t){return is(_t,function(Pt){return Es(ht[Pt])})}function Qs(ht,_t){_t=Ns(_t,ht);for(var Pt=0,Xt=_t.length;ht!=null&&Pt<Xt;)ht=ht[cs(_t[Pt++])];return Pt&&Pt==Xt?ht:lt}function p_(ht,_t,Pt){var Xt=_t(ht);return Br(ht)?Xt:Wo(Xt,Pt(ht))}function ko(ht){return ht==null?ht===lt?Cn:Hn:gs&&gs in no(ht)?H0(ht):ex(ht)}function Nm(ht,_t){return ht>_t}function a0(ht,_t){return ht!=null&&eo.call(ht,_t)}function l0(ht,_t){return ht!=null&&_t in no(ht)}function u0(ht,_t,Pt){return ht>=_o(_t,Pt)&&ht<lo(_t,Pt)}function Fm(ht,_t,Pt){for(var Xt=Pt?yl:Os,un=ht[0].length,pn=ht.length,$n=pn,Bn=Zn(pn),Gn=1/0,ar=[];$n--;){var lr=ht[$n];$n&&_t&&(lr=oo(lr,Ao(_t))),Gn=_o(lr.length,Gn),Bn[$n]=!Pt&&(_t||un>=120&&lr.length>=120)?new Xs($n&&lr):lt}lr=ht[0];var dr=-1,xr=Bn[0];e:for(;++dr<un&&ar.length<Gn;){var Or=lr[dr],Dr=_t?_t(Or):Or;if(Or=Pt||Or!==0?Or:0,!(xr?Ps(xr,Dr):Xt(ar,Dr,Pt))){for($n=pn;--$n;){var Wr=Bn[$n];if(!(Wr?Ps(Wr,Dr):Xt(ht[$n],Dr,Pt)))continue e}xr&&xr.push(Dr),ar.push(Or)}}return ar}function c0(ht,_t,Pt,Xt){return ls(ht,function(un,pn,$n){_t(Xt,Pt(un),pn,$n)}),Xt}function Eu(ht,_t,Pt){_t=Ns(_t,ht),ht=tv(ht,_t);var Xt=ht==null?ht:ht[cs(Yo(_t))];return Xt==null?lt:wo(Xt,ht,Pt)}function m_(ht){return ho(ht)&&ko(ht)==Bt}function d0(ht){return ho(ht)&&ko(ht)==Qn}function f0(ht){return ho(ht)&&ko(ht)==en}function Su(ht,_t,Pt,Xt,un){return ht===_t?!0:ht==null||_t==null||!ho(ht)&&!ho(_t)?ht!==ht&&_t!==_t:h0(ht,_t,Pt,Xt,Su,un)}function h0(ht,_t,Pt,Xt,un,pn){var $n=Br(ht),Bn=Br(_t),Gn=$n?Dt:Eo(ht),ar=Bn?Dt:Eo(_t);Gn=Gn==Bt?Fn:Gn,ar=ar==Bt?Fn:ar;var lr=Gn==Fn,dr=ar==Fn,xr=Gn==ar;if(xr&&js(ht)){if(!js(_t))return!1;$n=!0,lr=!1}if(xr&&!lr)return pn||(pn=new Jo),$n||Ul(ht)?K_(ht,_t,Pt,Xt,un,pn):B0(ht,_t,Gn,Pt,Xt,un,pn);if(!(Pt&Ct)){var Or=lr&&eo.call(ht,"__wrapped__"),Dr=dr&&eo.call(_t,"__wrapped__");if(Or||Dr){var Wr=Or?ht.value():ht,Mr=Dr?_t.value():_t;return pn||(pn=new Jo),un(Wr,Mr,Pt,Xt,pn)}}return xr?(pn||(pn=new Jo),U0(ht,_t,Pt,Xt,un,pn)):!1}function p0(ht){return ho(ht)&&Eo(ht)==kn}function jm(ht,_t,Pt,Xt){var un=Pt.length,pn=un,$n=!Xt;if(ht==null)return!pn;for(ht=no(ht);un--;){var Bn=Pt[un];if($n&&Bn[2]?Bn[1]!==ht[Bn[0]]:!(Bn[0]in ht))return!1}for(;++un<pn;){Bn=Pt[un];var Gn=Bn[0],ar=ht[Gn],lr=Bn[1];if($n&&Bn[2]){if(ar===lt&&!(Gn in ht))return!1}else{var dr=new Jo;if(Xt)var xr=Xt(ar,lr,Gn,ht,_t,dr);if(!(xr===lt?Su(lr,ar,Ct|Et,Xt,dr):xr))return!1}}return!0}function g_(ht){if(!fo(ht)||X0(ht))return!1;var _t=Es(ht)?$m:wr;return _t.test(na(ht))}function m0(ht){return ho(ht)&&ko(ht)==Dn}function g0(ht){return ho(ht)&&Eo(ht)==Un}function _0(ht){return ho(ht)&&Np(ht.length)&&!!ro[ko(ht)]}function __(ht){return typeof ht=="function"?ht:ht==null?No:typeof ht=="object"?Br(ht)?b_(ht[0],ht[1]):y_(ht):jv(ht)}function Bm(ht){if(!ku(ht))return uo(ht);var _t=[];for(var Pt in no(ht))eo.call(ht,Pt)&&Pt!="constructor"&&_t.push(Pt);return _t}function v0(ht){if(!fo(ht))return _b(ht);var _t=ku(ht),Pt=[];for(var Xt in ht)Xt=="constructor"&&(_t||!eo.call(ht,Xt))||Pt.push(Xt);return Pt}function Um(ht,_t){return ht<_t}function v_(ht,_t){var Pt=-1,Xt=Do(ht)?Zn(ht.length):[];return Ds(ht,function(un,pn,$n){Xt[++Pt]=_t(un,pn,$n)}),Xt}function y_(ht){var _t=t1(ht);return _t.length==1&&_t[0][2]?J_(_t[0][0],_t[0][1]):function(Pt){return Pt===ht||jm(Pt,ht,_t)}}function b_(ht,_t){return r1(ht)&&Q_(_t)?J_(cs(ht),_t):function(Pt){var Xt=p1(Pt,ht);return Xt===lt&&Xt===_t?m1(Pt,ht):Su(_t,Xt,Ct|Et)}}function xp(ht,_t,Pt,Xt,un){ht!==_t&&Dm(_t,function(pn,$n){if(un||(un=new Jo),fo(pn))y0(ht,_t,$n,Pt,xp,Xt,un);else{var Bn=Xt?Xt(o1(ht,$n),pn,$n+"",ht,_t,un):lt;Bn===lt&&(Bn=pn),Lm(ht,$n,Bn)}},Mo)}function y0(ht,_t,Pt,Xt,un,pn,$n){var Bn=o1(ht,Pt),Gn=o1(_t,Pt),ar=$n.get(Gn);if(ar){Lm(ht,Pt,ar);return}var lr=pn?pn(Bn,Gn,Pt+"",ht,_t,$n):lt,dr=lr===lt;if(dr){var xr=Br(Gn),Or=!xr&&js(Gn),Dr=!xr&&!Or&&Ul(Gn);lr=Gn,xr||Or||Dr?Br(Bn)?lr=Bn:mo(Bn)?lr=Io(Bn):Or?(dr=!1,lr=R_(Gn,!0)):Dr?(dr=!1,lr=L_(Gn,!0)):lr=[]:Ou(Gn)||ga(Gn)?(lr=Bn,ga(Bn)?lr=Ov(Bn):(!fo(Bn)||Es(Bn))&&(lr=Z_(Gn))):dr=!1}dr&&($n.set(Gn,lr),un(lr,Gn,Xt,pn,$n),$n.delete(Gn)),Lm(ht,Pt,lr)}function x_(ht,_t){var Pt=ht.length;if(Pt)return _t+=_t<0?Pt:0,ws(_t,Pt)?ht[_t]:lt}function w_(ht,_t,Pt){_t.length?_t=oo(_t,function(pn){return Br(pn)?function($n){return Qs($n,pn.length===1?pn[0]:pn)}:pn}):_t=[No];var Xt=-1;_t=oo(_t,Ao(Ir()));var un=v_(ht,function(pn,$n,Bn){var Gn=oo(_t,function(ar){return ar(pn)});return{criteria:Gn,index:++Xt,value:pn}});return tp(un,function(pn,$n){return R0(pn,$n,Pt)})}function b0(ht,_t){return E_(ht,_t,function(Pt,Xt){return m1(ht,Xt)})}function E_(ht,_t,Pt){for(var Xt=-1,un=_t.length,pn={};++Xt<un;){var $n=_t[Xt],Bn=Qs(ht,$n);Pt(Bn,$n)&&Au(pn,Ns($n,ht),Bn)}return pn}function x0(ht){return function(_t){return Qs(_t,ht)}}function Hm(ht,_t,Pt,Xt){var un=Xt?_h:ps,pn=-1,$n=_t.length,Bn=ht;for(ht===_t&&(_t=Io(_t)),Pt&&(Bn=oo(ht,Ao(Pt)));++pn<$n;)for(var Gn=0,ar=_t[pn],lr=Pt?Pt(ar):ar;(Gn=un(Bn,lr,Gn,Xt))>-1;)Bn!==ht&&Pl.call(Bn,Gn,1),Pl.call(ht,Gn,1);return ht}function S_(ht,_t){for(var Pt=ht?_t.length:0,Xt=Pt-1;Pt--;){var un=_t[Pt];if(Pt==Xt||un!==pn){var pn=un;ws(un)?Pl.call(ht,un,1):Vm(ht,un)}}return ht}function zm(ht,_t){return ht+En(i_()*(_t-ht+1))}function w0(ht,_t,Pt,Xt){for(var un=-1,pn=lo(an((_t-ht)/(Pt||1)),0),$n=Zn(pn);pn--;)$n[Xt?pn:++un]=ht,ht+=Pt;return $n}function Wm(ht,_t){var Pt="";if(!ht||_t<1||_t>nn)return Pt;do _t%2&&(Pt+=ht),_t=En(_t/2),_t&&(ht+=ht);while(_t);return Pt}function Vr(ht,_t){return s1(ev(ht,_t,No),ht+"")}function E0(ht){return a_(Hl(ht))}function S0(ht,_t){var Pt=Hl(ht);return Pp(Pt,Zs(_t,0,Pt.length))}function Au(ht,_t,Pt,Xt){if(!fo(ht))return ht;_t=Ns(_t,ht);for(var un=-1,pn=_t.length,$n=pn-1,Bn=ht;Bn!=null&&++un<pn;){var Gn=cs(_t[un]),ar=Pt;if(Gn==="__proto__"||Gn==="constructor"||Gn==="prototype")return ht;if(un!=$n){var lr=Bn[Gn];ar=Xt?Xt(lr,Gn,Bn):lt,ar===lt&&(ar=fo(lr)?lr:ws(_t[un+1])?[]:{})}xu(Bn,Gn,ar),Bn=Bn[Gn]}return ht}var A_=mp?function(ht,_t){return mp.set(ht,_t),ht}:No,A0=Rl?function(ht,_t){return Rl(ht,"toString",{configurable:!0,enumerable:!1,value:_1(_t),writable:!0})}:No;function T0(ht){return Pp(Hl(ht))}function Ko(ht,_t,Pt){var Xt=-1,un=ht.length;_t<0&&(_t=-_t>un?0:un+_t),Pt=Pt>un?un:Pt,Pt<0&&(Pt+=un),un=_t>Pt?0:Pt-_t>>>0,_t>>>=0;for(var pn=Zn(un);++Xt<un;)pn[Xt]=ht[Xt+_t];return pn}function k0(ht,_t){var Pt;return Ds(ht,function(Xt,un,pn){return Pt=_t(Xt,un,pn),!Pt}),!!Pt}function wp(ht,_t,Pt){var Xt=0,un=ht==null?Xt:ht.length;if(typeof _t=="number"&&_t===_t&&un<=Wt){for(;Xt<un;){var pn=Xt+un>>>1,$n=ht[pn];$n!==null&&!Uo($n)&&(Pt?$n<=_t:$n<_t)?Xt=pn+1:un=pn}return un}return qm(ht,_t,No,Pt)}function qm(ht,_t,Pt,Xt){var un=0,pn=ht==null?0:ht.length;if(pn===0)return 0;_t=Pt(_t);for(var $n=_t!==_t,Bn=_t===null,Gn=Uo(_t),ar=_t===lt;un<pn;){var lr=En((un+pn)/2),dr=Pt(ht[lr]),xr=dr!==lt,Or=dr===null,Dr=dr===dr,Wr=Uo(dr);if($n)var Mr=Xt||Dr;else ar?Mr=Dr&&(Xt||xr):Bn?Mr=Dr&&xr&&(Xt||!Or):Gn?Mr=Dr&&xr&&!Or&&(Xt||!Wr):Or||Wr?Mr=!1:Mr=Xt?dr<=_t:dr<_t;Mr?un=lr+1:pn=lr}return _o(pn,Zt)}function T_(ht,_t){for(var Pt=-1,Xt=ht.length,un=0,pn=[];++Pt<Xt;){var $n=ht[Pt],Bn=_t?_t($n):$n;if(!Pt||!es(Bn,Gn)){var Gn=Bn;pn[un++]=$n===0?0:$n}}return pn}function k_(ht){return typeof ht=="number"?ht:Uo(ht)?rn:+ht}function Bo(ht){if(typeof ht=="string")return ht;if(Br(ht))return oo(ht,Bo)+"";if(Uo(ht))return o_?o_.call(ht):"";var _t=ht+"";return _t=="0"&&1/ht==-ln?"-0":_t}function Ms(ht,_t,Pt){var Xt=-1,un=Os,pn=ht.length,$n=!0,Bn=[],Gn=Bn;if(Pt)$n=!1,un=yl;else if(pn>=ct){var ar=_t?null:F0(ht);if(ar)return Tl(ar);$n=!1,un=Ps,Gn=new Xs}else Gn=_t?[]:Bn;e:for(;++Xt<pn;){var lr=ht[Xt],dr=_t?_t(lr):lr;if(lr=Pt||lr!==0?lr:0,$n&&dr===dr){for(var xr=Gn.length;xr--;)if(Gn[xr]===dr)continue e;_t&&Gn.push(dr),Bn.push(lr)}else un(Gn,dr,Pt)||(Gn!==Bn&&Gn.push(dr),Bn.push(lr))}return Bn}function Vm(ht,_t){return _t=Ns(_t,ht),ht=tv(ht,_t),ht==null||delete ht[cs(Yo(_t))]}function C_(ht,_t,Pt,Xt){return Au(ht,_t,Pt(Qs(ht,_t)),Xt)}function Ep(ht,_t,Pt,Xt){for(var un=ht.length,pn=Xt?un:-1;(Xt?pn--:++pn<un)&&_t(ht[pn],pn,ht););return Pt?Ko(ht,Xt?0:pn,Xt?pn+1:un):Ko(ht,Xt?pn+1:0,Xt?un:pn)}function O_(ht,_t){var Pt=ht;return Pt instanceof Kr&&(Pt=Pt.value()),$s(_t,function(Xt,un){return un.func.apply(un.thisArg,Wo([Xt],un.args))},Pt)}function Gm(ht,_t,Pt){var Xt=ht.length;if(Xt<2)return Xt?Ms(ht[0]):[];for(var un=-1,pn=Zn(Xt);++un<Xt;)for(var $n=ht[un],Bn=-1;++Bn<Xt;)Bn!=un&&(pn[un]=wu(pn[un]||$n,ht[Bn],_t,Pt));return Ms(bo(pn,1),_t,Pt)}function $_(ht,_t,Pt){for(var Xt=-1,un=ht.length,pn=_t.length,$n={};++Xt<un;){var Bn=Xt<pn?_t[Xt]:lt;Pt($n,ht[Xt],Bn)}return $n}function Km(ht){return mo(ht)?ht:[]}function Ym(ht){return typeof ht=="function"?ht:No}function Ns(ht,_t){return Br(ht)?ht:r1(ht,_t)?[ht]:ov(to(ht))}var C0=Vr;function Fs(ht,_t,Pt){var Xt=ht.length;return Pt=Pt===lt?Xt:Pt,!_t&&Pt>=Xt?ht:Ko(ht,_t,Pt)}var P_=Ll||function(ht){return co.clearTimeout(ht)};function R_(ht,_t){if(_t)return ht.slice();var Pt=ht.length,Xt=Gs?Gs(Pt):new ht.constructor(Pt);return ht.copy(Xt),Xt}function Xm(ht){var _t=new ht.constructor(ht.byteLength);return new To(_t).set(new To(ht)),_t}function O0(ht,_t){var Pt=_t?Xm(ht.buffer):ht.buffer;return new ht.constructor(Pt,ht.byteOffset,ht.byteLength)}function $0(ht){var _t=new ht.constructor(ht.source,Ar.exec(ht));return _t.lastIndex=ht.lastIndex,_t}function P0(ht){return bu?no(bu.call(ht)):{}}function L_(ht,_t){var Pt=_t?Xm(ht.buffer):ht.buffer;return new ht.constructor(Pt,ht.byteOffset,ht.length)}function I_(ht,_t){if(ht!==_t){var Pt=ht!==lt,Xt=ht===null,un=ht===ht,pn=Uo(ht),$n=_t!==lt,Bn=_t===null,Gn=_t===_t,ar=Uo(_t);if(!Bn&&!ar&&!pn&&ht>_t||pn&&$n&&Gn&&!Bn&&!ar||Xt&&$n&&Gn||!Pt&&Gn||!un)return 1;if(!Xt&&!pn&&!ar&&ht<_t||ar&&Pt&&un&&!Xt&&!pn||Bn&&Pt&&un||!$n&&un||!Gn)return-1}return 0}function R0(ht,_t,Pt){for(var Xt=-1,un=ht.criteria,pn=_t.criteria,$n=un.length,Bn=Pt.length;++Xt<$n;){var Gn=I_(un[Xt],pn[Xt]);if(Gn){if(Xt>=Bn)return Gn;var ar=Pt[Xt];return Gn*(ar=="desc"?-1:1)}}return ht.index-_t.index}function D_(ht,_t,Pt,Xt){for(var un=-1,pn=ht.length,$n=Pt.length,Bn=-1,Gn=_t.length,ar=lo(pn-$n,0),lr=Zn(Gn+ar),dr=!Xt;++Bn<Gn;)lr[Bn]=_t[Bn];for(;++un<$n;)(dr||un<pn)&&(lr[Pt[un]]=ht[un]);for(;ar--;)lr[Bn++]=ht[un++];return lr}function M_(ht,_t,Pt,Xt){for(var un=-1,pn=ht.length,$n=-1,Bn=Pt.length,Gn=-1,ar=_t.length,lr=lo(pn-Bn,0),dr=Zn(lr+ar),xr=!Xt;++un<lr;)dr[un]=ht[un];for(var Or=un;++Gn<ar;)dr[Or+Gn]=_t[Gn];for(;++$n<Bn;)(xr||un<pn)&&(dr[Or+Pt[$n]]=ht[un++]);return dr}function Io(ht,_t){var Pt=-1,Xt=ht.length;for(_t||(_t=Zn(Xt));++Pt<Xt;)_t[Pt]=ht[Pt];return _t}function us(ht,_t,Pt,Xt){var un=!Pt;Pt||(Pt={});for(var pn=-1,$n=_t.length;++pn<$n;){var Bn=_t[pn],Gn=Xt?Xt(Pt[Bn],ht[Bn],Bn,Pt,ht):lt;Gn===lt&&(Gn=ht[Bn]),un?ys(Pt,Bn,Gn):xu(Pt,Bn,Gn)}return Pt}function L0(ht,_t){return us(ht,n1(ht),_t)}function I0(ht,_t){return us(ht,Y_(ht),_t)}function Sp(ht,_t){return function(Pt,Xt){var un=Br(Pt)?pm:n0,pn=_t?_t():{};return un(Pt,ht,Ir(Xt,2),pn)}}function Nl(ht){return Vr(function(_t,Pt){var Xt=-1,un=Pt.length,pn=un>1?Pt[un-1]:lt,$n=un>2?Pt[2]:lt;for(pn=ht.length>3&&typeof pn=="function"?(un--,pn):lt,$n&&Co(Pt[0],Pt[1],$n)&&(pn=un<3?lt:pn,un=1),_t=no(_t);++Xt<un;){var Bn=Pt[Xt];Bn&&ht(_t,Bn,Xt,pn)}return _t})}function N_(ht,_t){return function(Pt,Xt){if(Pt==null)return Pt;if(!Do(Pt))return ht(Pt,Xt);for(var un=Pt.length,pn=_t?un:-1,$n=no(Pt);(_t?pn--:++pn<un)&&Xt($n[pn],pn,$n)!==!1;);return Pt}}function F_(ht){return function(_t,Pt,Xt){for(var un=-1,pn=no(_t),$n=Xt(_t),Bn=$n.length;Bn--;){var Gn=$n[ht?Bn:++un];if(Pt(pn[Gn],Gn,pn)===!1)break}return _t}}function D0(ht,_t,Pt){var Xt=_t&kt,un=Tu(ht);function pn(){var $n=this&&this!==co&&this instanceof pn?un:ht;return $n.apply(Xt?Pt:this,arguments)}return pn}function j_(ht){return function(_t){_t=to(_t);var Pt=Rs(_t)?jo(_t):lt,Xt=Pt?Pt[0]:_t.charAt(0),un=Pt?Fs(Pt,1).join(""):_t.slice(1);return Xt[ht]()+un}}function Fl(ht){return function(_t){return $s(Nv(Mv(_t).replace(om,"")),ht,"")}}function Tu(ht){return function(){var _t=arguments;switch(_t.length){case 0:return new ht;case 1:return new ht(_t[0]);case 2:return new ht(_t[0],_t[1]);case 3:return new ht(_t[0],_t[1],_t[2]);case 4:return new ht(_t[0],_t[1],_t[2],_t[3]);case 5:return new ht(_t[0],_t[1],_t[2],_t[3],_t[4]);case 6:return new ht(_t[0],_t[1],_t[2],_t[3],_t[4],_t[5]);case 7:return new ht(_t[0],_t[1],_t[2],_t[3],_t[4],_t[5],_t[6])}var Pt=Ml(ht.prototype),Xt=ht.apply(Pt,_t);return fo(Xt)?Xt:Pt}}function M0(ht,_t,Pt){var Xt=Tu(ht);function un(){for(var pn=arguments.length,$n=Zn(pn),Bn=pn,Gn=Bl(un);Bn--;)$n[Bn]=arguments[Bn];var ar=pn<3&&$n[0]!==Gn&&$n[pn-1]!==Gn?[]:os($n,Gn);if(pn-=ar.length,pn<Pt)return W_(ht,_t,Ap,un.placeholder,lt,$n,ar,lt,lt,Pt-pn);var lr=this&&this!==co&&this instanceof un?Xt:ht;return wo(lr,this,$n)}return un}function B_(ht){return function(_t,Pt,Xt){var un=no(_t);if(!Do(_t)){var pn=Ir(Pt,3);_t=yo(_t),Pt=function(Bn){return pn(un[Bn],Bn,un)}}var $n=ht(_t,Pt,Xt);return $n>-1?un[pn?_t[$n]:$n]:lt}}function U_(ht){return xs(function(_t){var Pt=_t.length,Xt=Pt,un=Vo.prototype.thru;for(ht&&_t.reverse();Xt--;){var pn=_t[Xt];if(typeof pn!="function")throw new Lo(ft);if(un&&!$n&&Op(pn)=="wrapper")var $n=new Vo([],!0)}for(Xt=$n?Xt:Pt;++Xt<Pt;){pn=_t[Xt];var Bn=Op(pn),Gn=Bn=="wrapper"?e1(pn):lt;Gn&&i1(Gn[0])&&Gn[1]==(Lt|Ot|Tt|Rt)&&!Gn[4].length&&Gn[9]==1?$n=$n[Op(Gn[0])].apply($n,Gn[3]):$n=pn.length==1&&i1(pn)?$n[Bn]():$n.thru(pn)}return function(){var ar=arguments,lr=ar[0];if($n&&ar.length==1&&Br(lr))return $n.plant(lr).value();for(var dr=0,xr=Pt?_t[dr].apply(this,ar):lr;++dr<Pt;)xr=_t[dr].call(this,xr);return xr}})}function Ap(ht,_t,Pt,Xt,un,pn,$n,Bn,Gn,ar){var lr=_t&Lt,dr=_t&kt,xr=_t&xt,Or=_t&(Ot|At),Dr=_t&It,Wr=xr?lt:Tu(ht);function Mr(){for(var Gr=arguments.length,Yr=Zn(Gr),Ho=Gr;Ho--;)Yr[Ho]=arguments[Ho];if(Or)var Oo=Bl(Mr),zo=vm(Yr,Oo);if(Xt&&(Yr=D_(Yr,Xt,un,Or)),pn&&(Yr=M_(Yr,pn,$n,Or)),Gr-=zo,Or&&Gr<ar){var go=os(Yr,Oo);return W_(ht,_t,Ap,Mr.placeholder,Pt,Yr,go,Bn,Gn,ar-Gr)}var ts=dr?Pt:this,As=xr?ts[ht]:ht;return Gr=Yr.length,Bn?Yr=tx(Yr,Bn):Dr&&Gr>1&&Yr.reverse(),lr&&Gn<Gr&&(Yr.length=Gn),this&&this!==co&&this instanceof Mr&&(As=Wr||Tu(As)),As.apply(ts,Yr)}return Mr}function H_(ht,_t){return function(Pt,Xt){return c0(Pt,ht,_t(Xt),{})}}function Tp(ht,_t){return function(Pt,Xt){var un;if(Pt===lt&&Xt===lt)return _t;if(Pt!==lt&&(un=Pt),Xt!==lt){if(un===lt)return Xt;typeof Pt=="string"||typeof Xt=="string"?(Pt=Bo(Pt),Xt=Bo(Xt)):(Pt=k_(Pt),Xt=k_(Xt)),un=ht(Pt,Xt)}return un}}function Zm(ht){return xs(function(_t){return _t=oo(_t,Ao(Ir())),Vr(function(Pt){var Xt=this;return ht(_t,function(un){return wo(un,Xt,Pt)})})})}function kp(ht,_t){_t=_t===lt?" ":Bo(_t);var Pt=_t.length;if(Pt<2)return Pt?Wm(_t,ht):_t;var Xt=Wm(_t,an(ht/Ls(_t)));return Rs(_t)?Fs(jo(Xt),0,ht).join(""):Xt.slice(0,ht)}function N0(ht,_t,Pt,Xt){var un=_t&kt,pn=Tu(ht);function $n(){for(var Bn=-1,Gn=arguments.length,ar=-1,lr=Xt.length,dr=Zn(lr+Gn),xr=this&&this!==co&&this instanceof $n?pn:ht;++ar<lr;)dr[ar]=Xt[ar];for(;Gn--;)dr[ar++]=arguments[++Bn];return wo(xr,un?Pt:this,dr)}return $n}function z_(ht){return function(_t,Pt,Xt){return Xt&&typeof Xt!="number"&&Co(_t,Pt,Xt)&&(Pt=Xt=lt),_t=Ss(_t),Pt===lt?(Pt=_t,_t=0):Pt=Ss(Pt),Xt=Xt===lt?_t<Pt?1:-1:Ss(Xt),w0(_t,Pt,Xt,ht)}}function Cp(ht){return function(_t,Pt){return typeof _t=="string"&&typeof Pt=="string"||(_t=Xo(_t),Pt=Xo(Pt)),ht(_t,Pt)}}function W_(ht,_t,Pt,Xt,un,pn,$n,Bn,Gn,ar){var lr=_t&Ot,dr=lr?$n:lt,xr=lr?lt:$n,Or=lr?pn:lt,Dr=lr?lt:pn;_t|=lr?Tt:$t,_t&=~(lr?$t:Tt),_t&St||(_t&=~(kt|xt));var Wr=[ht,_t,un,Or,dr,Dr,xr,Bn,Gn,ar],Mr=Pt.apply(lt,Wr);return i1(ht)&&nv(Mr,Wr),Mr.placeholder=Xt,rv(Mr,ht,_t)}function Qm(ht){var _t=po[ht];return function(Pt,Xt){if(Pt=Xo(Pt),Xt=Xt==null?0:_o(Ur(Xt),292),Xt&&Xr(Pt)){var un=(to(Pt)+"e").split("e"),pn=_t(un[0]+"e"+(+un[1]+Xt));return un=(to(pn)+"e").split("e"),+(un[0]+"e"+(+un[1]-Xt))}return _t(Pt)}}var F0=Il&&1/Tl(new Il([,-0]))[1]==ln?function(ht){return new Il(ht)}:b1;function q_(ht){return function(_t){var Pt=Eo(_t);return Pt==kn?pu(_t):Pt==Un?sp(_t):_m(_t,ht(_t))}}function bs(ht,_t,Pt,Xt,un,pn,$n,Bn){var Gn=_t&xt;if(!Gn&&typeof ht!="function")throw new Lo(ft);var ar=Xt?Xt.length:0;if(ar||(_t&=~(Tt|$t),Xt=un=lt),$n=$n===lt?$n:lo(Ur($n),0),Bn=Bn===lt?Bn:Ur(Bn),ar-=un?un.length:0,_t&$t){var lr=Xt,dr=un;Xt=un=lt}var xr=Gn?lt:e1(ht),Or=[ht,_t,Pt,Xt,un,lr,dr,pn,$n,Bn];if(xr&&J0(Or,xr),ht=Or[0],_t=Or[1],Pt=Or[2],Xt=Or[3],un=Or[4],Bn=Or[9]=Or[9]===lt?Gn?0:ht.length:lo(Or[9]-ar,0),!Bn&&_t&(Ot|At)&&(_t&=~(Ot|At)),!_t||_t==kt)var Dr=D0(ht,_t,Pt);else _t==Ot||_t==At?Dr=M0(ht,_t,Bn):(_t==Tt||_t==(kt|Tt))&&!un.length?Dr=N0(ht,_t,Pt,Xt):Dr=Ap.apply(lt,Or);var Wr=xr?A_:nv;return rv(Wr(Dr,Or),ht,_t)}function V_(ht,_t,Pt,Xt){return ht===lt||es(ht,Is[Pt])&&!eo.call(Xt,Pt)?_t:ht}function G_(ht,_t,Pt,Xt,un,pn){return fo(ht)&&fo(_t)&&(pn.set(_t,ht),xp(ht,_t,lt,G_,pn),pn.delete(_t)),ht}function j0(ht){return Ou(ht)?lt:ht}function K_(ht,_t,Pt,Xt,un,pn){var $n=Pt&Ct,Bn=ht.length,Gn=_t.length;if(Bn!=Gn&&!($n&&Gn>Bn))return!1;var ar=pn.get(ht),lr=pn.get(_t);if(ar&&lr)return ar==_t&&lr==ht;var dr=-1,xr=!0,Or=Pt&Et?new Xs:lt;for(pn.set(ht,_t),pn.set(_t,ht);++dr<Bn;){var Dr=ht[dr],Wr=_t[dr];if(Xt)var Mr=$n?Xt(Wr,Dr,dr,_t,ht,pn):Xt(Dr,Wr,dr,ht,_t,pn);if(Mr!==lt){if(Mr)continue;xr=!1;break}if(Or){if(!xl(_t,function(Gr,Yr){if(!Ps(Or,Yr)&&(Dr===Gr||un(Dr,Gr,Pt,Xt,pn)))return Or.push(Yr)})){xr=!1;break}}else if(!(Dr===Wr||un(Dr,Wr,Pt,Xt,pn))){xr=!1;break}}return pn.delete(ht),pn.delete(_t),xr}function B0(ht,_t,Pt,Xt,un,pn,$n){switch(Pt){case sr:if(ht.byteLength!=_t.byteLength||ht.byteOffset!=_t.byteOffset)return!1;ht=ht.buffer,_t=_t.buffer;case Qn:return!(ht.byteLength!=_t.byteLength||!pn(new To(ht),new To(_t)));case Kt:case en:case In:return es(+ht,+_t);case cn:return ht.name==_t.name&&ht.message==_t.message;case Dn:case Sn:return ht==_t+"";case kn:var Bn=pu;case Un:var Gn=Xt&Ct;if(Bn||(Bn=Tl),ht.size!=_t.size&&!Gn)return!1;var ar=$n.get(ht);if(ar)return ar==_t;Xt|=Et,$n.set(ht,_t);var lr=K_(Bn(ht),Bn(_t),Xt,un,pn,$n);return $n.delete(ht),lr;case On:if(bu)return bu.call(ht)==bu.call(_t)}return!1}function U0(ht,_t,Pt,Xt,un,pn){var $n=Pt&Ct,Bn=Jm(ht),Gn=Bn.length,ar=Jm(_t),lr=ar.length;if(Gn!=lr&&!$n)return!1;for(var dr=Gn;dr--;){var xr=Bn[dr];if(!($n?xr in _t:eo.call(_t,xr)))return!1}var Or=pn.get(ht),Dr=pn.get(_t);if(Or&&Dr)return Or==_t&&Dr==ht;var Wr=!0;pn.set(ht,_t),pn.set(_t,ht);for(var Mr=$n;++dr<Gn;){xr=Bn[dr];var Gr=ht[xr],Yr=_t[xr];if(Xt)var Ho=$n?Xt(Yr,Gr,xr,_t,ht,pn):Xt(Gr,Yr,xr,ht,_t,pn);if(!(Ho===lt?Gr===Yr||un(Gr,Yr,Pt,Xt,pn):Ho)){Wr=!1;break}Mr||(Mr=xr=="constructor")}if(Wr&&!Mr){var Oo=ht.constructor,zo=_t.constructor;Oo!=zo&&"constructor"in ht&&"constructor"in _t&&!(typeof Oo=="function"&&Oo instanceof Oo&&typeof zo=="function"&&zo instanceof zo)&&(Wr=!1)}return pn.delete(ht),pn.delete(_t),Wr}function xs(ht){return s1(ev(ht,lt,uv),ht+"")}function Jm(ht){return p_(ht,yo,n1)}function _g(ht){return p_(ht,Mo,Y_)}var e1=mp?function(ht){return mp.get(ht)}:b1;function Op(ht){for(var _t=ht.name+"",Pt=Dl[_t],Xt=eo.call(Dl,_t)?Pt.length:0;Xt--;){var un=Pt[Xt],pn=un.func;if(pn==null||pn==ht)return un.name}return _t}function Bl(ht){var _t=eo.call(hn,"placeholder")?hn:ht;return _t.placeholder}function Ir(){var ht=hn.iteratee||v1;return ht=ht===v1?__:ht,arguments.length?ht(arguments[0],arguments[1]):ht}function $p(ht,_t){var Pt=ht.__data__;return Y0(_t)?Pt[typeof _t=="string"?"string":"hash"]:Pt.map}function t1(ht){for(var _t=yo(ht),Pt=_t.length;Pt--;){var Xt=_t[Pt],un=ht[Xt];_t[Pt]=[Xt,un,Q_(un)]}return _t}function Js(ht,_t){var Pt=bm(ht,_t);return g_(Pt)?Pt:lt}function H0(ht){var _t=eo.call(ht,gs),Pt=ht[gs];try{ht[gs]=lt;var Xt=!0}catch{}var un=Ol.call(ht);return Xt&&(_t?ht[gs]=Pt:delete ht[gs]),un}var n1=tr?function(ht){return ht==null?[]:(ht=no(ht),is(tr(ht),function(_t){return hp.call(ht,_t)}))}:x1,Y_=tr?function(ht){for(var _t=[];ht;)Wo(_t,n1(ht)),ht=ao(ht);return _t}:x1,Eo=ko;(Pm&&Eo(new Pm(new ArrayBuffer(1)))!=sr||_u&&Eo(new _u)!=kn||Rm&&Eo(Rm.resolve())!=wn||Il&&Eo(new Il)!=Un||vu&&Eo(new vu)!=Pn)&&(Eo=function(ht){var _t=ko(ht),Pt=_t==Fn?ht.constructor:lt,Xt=Pt?na(Pt):"";if(Xt)switch(Xt){case Sy:return sr;case Ay:return kn;case Ty:return wn;case ky:return Un;case Cy:return Pn}return _t});function z0(ht,_t,Pt){for(var Xt=-1,un=Pt.length;++Xt<un;){var pn=Pt[Xt],$n=pn.size;switch(pn.type){case"drop":ht+=$n;break;case"dropRight":_t-=$n;break;case"take":_t=_o(_t,ht+$n);break;case"takeRight":ht=lo(ht,_t-$n);break}}return{start:ht,end:_t}}function W0(ht){var _t=ht.match(Rn);return _t?_t[1].split(jn):[]}function X_(ht,_t,Pt){_t=Ns(_t,ht);for(var Xt=-1,un=_t.length,pn=!1;++Xt<un;){var $n=cs(_t[Xt]);if(!(pn=ht!=null&&Pt(ht,$n)))break;ht=ht[$n]}return pn||++Xt!=un?pn:(un=ht==null?0:ht.length,!!un&&Np(un)&&ws($n,un)&&(Br(ht)||ga(ht)))}function q0(ht){var _t=ht.length,Pt=new ht.constructor(_t);return _t&&typeof ht[0]=="string"&&eo.call(ht,"index")&&(Pt.index=ht.index,Pt.input=ht.input),Pt}function Z_(ht){return typeof ht.constructor=="function"&&!ku(ht)?Ml(ao(ht)):{}}function V0(ht,_t,Pt){var Xt=ht.constructor;switch(_t){case Qn:return Xm(ht);case Kt:case en:return new Xt(+ht);case sr:return O0(ht,Pt);case pr:case or:case br:case fn:case xn:case Kn:case _n:case gn:case vn:return L_(ht,Pt);case kn:return new Xt;case In:case Sn:return new Xt(ht);case Dn:return $0(ht);case Un:return new Xt;case On:return P0(ht)}}function G0(ht,_t){var Pt=_t.length;if(!Pt)return ht;var Xt=Pt-1;return _t[Xt]=(Pt>1?"& ":"")+_t[Xt],_t=_t.join(Pt>2?", ":" "),ht.replace(mn,`{
/* [wrapped with `+_t+`] */
`)}function K0(ht){return Br(ht)||ga(ht)||!!(pp&&ht&&ht[pp])}function ws(ht,_t){var Pt=typeof ht;return _t=_t??nn,!!_t&&(Pt=="number"||Pt!="symbol"&&Nr.test(ht))&&ht>-1&&ht%1==0&&ht<_t}function Co(ht,_t,Pt){if(!fo(Pt))return!1;var Xt=typeof _t;return(Xt=="number"?Do(Pt)&&ws(_t,Pt.length):Xt=="string"&&_t in Pt)?es(Pt[_t],ht):!1}function r1(ht,_t){if(Br(ht))return!1;var Pt=typeof ht;return Pt=="number"||Pt=="symbol"||Pt=="boolean"||ht==null||Uo(ht)?!0:rr.test(ht)||!Rr.test(ht)||_t!=null&&ht in no(_t)}function Y0(ht){var _t=typeof ht;return _t=="string"||_t=="number"||_t=="symbol"||_t=="boolean"?ht!=="__proto__":ht===null}function i1(ht){var _t=Op(ht),Pt=hn[_t];if(typeof Pt!="function"||!(_t in Kr.prototype))return!1;if(ht===Pt)return!0;var Xt=e1(Pt);return!!Xt&&ht===Xt[0]}function X0(ht){return!!cp&&cp in ht}var Z0=qo?Es:w1;function ku(ht){var _t=ht&&ht.constructor,Pt=typeof _t=="function"&&_t.prototype||Is;return ht===Pt}function Q_(ht){return ht===ht&&!fo(ht)}function J_(ht,_t){return function(Pt){return Pt==null?!1:Pt[ht]===_t&&(_t!==lt||ht in no(Pt))}}function Q0(ht){var _t=Dp(ht,function(Xt){return Pt.size===gt&&Pt.clear(),Xt}),Pt=_t.cache;return _t}function J0(ht,_t){var Pt=ht[1],Xt=_t[1],un=Pt|Xt,pn=un<(kt|xt|Lt),$n=Xt==Lt&&Pt==Ot||Xt==Lt&&Pt==Rt&&ht[7].length<=_t[8]||Xt==(Lt|Rt)&&_t[7].length<=_t[8]&&Pt==Ot;if(!(pn||$n))return ht;Xt&kt&&(ht[2]=_t[2],un|=Pt&kt?0:St);var Bn=_t[3];if(Bn){var Gn=ht[3];ht[3]=Gn?D_(Gn,Bn,_t[4]):Bn,ht[4]=Gn?os(ht[3],vt):_t[4]}return Bn=_t[5],Bn&&(Gn=ht[5],ht[5]=Gn?M_(Gn,Bn,_t[6]):Bn,ht[6]=Gn?os(ht[5],vt):_t[6]),Bn=_t[7],Bn&&(ht[7]=Bn),Xt&Lt&&(ht[8]=ht[8]==null?_t[8]:_o(ht[8],_t[8])),ht[9]==null&&(ht[9]=_t[9]),ht[0]=_t[0],ht[1]=un,ht}function _b(ht){var _t=[];if(ht!=null)for(var Pt in no(ht))_t.push(Pt);return _t}function ex(ht){return Ol.call(ht)}function ev(ht,_t,Pt){return _t=lo(_t===lt?ht.length-1:_t,0),function(){for(var Xt=arguments,un=-1,pn=lo(Xt.length-_t,0),$n=Zn(pn);++un<pn;)$n[un]=Xt[_t+un];un=-1;for(var Bn=Zn(_t+1);++un<_t;)Bn[un]=Xt[un];return Bn[_t]=Pt($n),wo(ht,this,Bn)}}function tv(ht,_t){return _t.length<2?ht:Qs(ht,Ko(_t,0,-1))}function tx(ht,_t){for(var Pt=ht.length,Xt=_o(_t.length,Pt),un=Io(ht);Xt--;){var pn=_t[Xt];ht[Xt]=ws(pn,Pt)?un[pn]:lt}return ht}function o1(ht,_t){if(!(_t==="constructor"&&typeof ht[_t]=="function")&&_t!="__proto__")return ht[_t]}var nv=iv(A_),Cu=qt||function(ht,_t){return co.setTimeout(ht,_t)},s1=iv(A0);function rv(ht,_t,Pt){var Xt=_t+"";return s1(ht,G0(Xt,nx(W0(Xt),Pt)))}function iv(ht){var _t=0,Pt=0;return function(){var Xt=xy(),un=Vt-(Xt-Pt);if(Pt=Xt,un>0){if(++_t>=Ht)return arguments[0]}else _t=0;return ht.apply(lt,arguments)}}function Pp(ht,_t){var Pt=-1,Xt=ht.length,un=Xt-1;for(_t=_t===lt?Xt:_t;++Pt<_t;){var pn=zm(Pt,un),$n=ht[pn];ht[pn]=ht[Pt],ht[Pt]=$n}return ht.length=_t,ht}var ov=Q0(function(ht){var _t=[];return ht.charCodeAt(0)===46&&_t.push(""),ht.replace($r,function(Pt,Xt,un,pn){_t.push(un?pn.replace(cr,"$1"):Xt||Pt)}),_t});function cs(ht){if(typeof ht=="string"||Uo(ht))return ht;var _t=ht+"";return _t=="0"&&1/ht==-ln?"-0":_t}function na(ht){if(ht!=null){try{return Vs.call(ht)}catch{}try{return ht+""}catch{}}return""}function nx(ht,_t){return Ro(jt,function(Pt){var Xt="_."+Pt[0];_t&Pt[1]&&!Os(ht,Xt)&&ht.push(Xt)}),ht.sort()}function sv(ht){if(ht instanceof Kr)return ht.clone();var _t=new Vo(ht.__wrapped__,ht.__chain__);return _t.__actions__=Io(ht.__actions__),_t.__index__=ht.__index__,_t.__values__=ht.__values__,_t}function rx(ht,_t,Pt){(Pt?Co(ht,_t,Pt):_t===lt)?_t=1:_t=lo(Ur(_t),0);var Xt=ht==null?0:ht.length;if(!Xt||_t<1)return[];for(var un=0,pn=0,$n=Zn(an(Xt/_t));un<Xt;)$n[pn++]=Ko(ht,un,un+=_t);return $n}function ix(ht){for(var _t=-1,Pt=ht==null?0:ht.length,Xt=0,un=[];++_t<Pt;){var pn=ht[_t];pn&&(un[Xt++]=pn)}return un}function ox(){var ht=arguments.length;if(!ht)return[];for(var _t=Zn(ht-1),Pt=arguments[0],Xt=ht;Xt--;)_t[Xt-1]=arguments[Xt];return Wo(Br(Pt)?Io(Pt):[Pt],bo(_t,1))}var sx=Vr(function(ht,_t){return mo(ht)?wu(ht,bo(_t,1,mo,!0)):[]}),ax=Vr(function(ht,_t){var Pt=Yo(_t);return mo(Pt)&&(Pt=lt),mo(ht)?wu(ht,bo(_t,1,mo,!0),Ir(Pt,2)):[]}),lx=Vr(function(ht,_t){var Pt=Yo(_t);return mo(Pt)&&(Pt=lt),mo(ht)?wu(ht,bo(_t,1,mo,!0),lt,Pt):[]});function ux(ht,_t,Pt){var Xt=ht==null?0:ht.length;return Xt?(_t=Pt||_t===lt?1:Ur(_t),Ko(ht,_t<0?0:_t,Xt)):[]}function cx(ht,_t,Pt){var Xt=ht==null?0:ht.length;return Xt?(_t=Pt||_t===lt?1:Ur(_t),_t=Xt-_t,Ko(ht,0,_t<0?0:_t)):[]}function dx(ht,_t){return ht&&ht.length?Ep(ht,Ir(_t,3),!0,!0):[]}function fx(ht,_t){return ht&&ht.length?Ep(ht,Ir(_t,3),!0):[]}function hx(ht,_t,Pt,Xt){var un=ht==null?0:ht.length;return un?(Pt&&typeof Pt!="number"&&Co(ht,_t,Pt)&&(Pt=0,Xt=un),s0(ht,_t,Pt,Xt)):[]}function av(ht,_t,Pt){var Xt=ht==null?0:ht.length;if(!Xt)return-1;var un=Pt==null?0:Ur(Pt);return un<0&&(un=lo(Xt+un,0)),qs(ht,Ir(_t,3),un)}function lv(ht,_t,Pt){var Xt=ht==null?0:ht.length;if(!Xt)return-1;var un=Xt-1;return Pt!==lt&&(un=Ur(Pt),un=Pt<0?lo(Xt+un,0):_o(un,Xt-1)),qs(ht,Ir(_t,3),un,!0)}function uv(ht){var _t=ht==null?0:ht.length;return _t?bo(ht,1):[]}function px(ht){var _t=ht==null?0:ht.length;return _t?bo(ht,ln):[]}function mx(ht,_t){var Pt=ht==null?0:ht.length;return Pt?(_t=_t===lt?1:Ur(_t),bo(ht,_t)):[]}function gx(ht){for(var _t=-1,Pt=ht==null?0:ht.length,Xt={};++_t<Pt;){var un=ht[_t];Xt[un[0]]=un[1]}return Xt}function cv(ht){return ht&&ht.length?ht[0]:lt}function _x(ht,_t,Pt){var Xt=ht==null?0:ht.length;if(!Xt)return-1;var un=Pt==null?0:Ur(Pt);return un<0&&(un=lo(Xt+un,0)),ps(ht,_t,un)}function vx(ht){var _t=ht==null?0:ht.length;return _t?Ko(ht,0,-1):[]}var yx=Vr(function(ht){var _t=oo(ht,Km);return _t.length&&_t[0]===ht[0]?Fm(_t):[]}),bx=Vr(function(ht){var _t=Yo(ht),Pt=oo(ht,Km);return _t===Yo(Pt)?_t=lt:Pt.pop(),Pt.length&&Pt[0]===ht[0]?Fm(Pt,Ir(_t,2)):[]}),xx=Vr(function(ht){var _t=Yo(ht),Pt=oo(ht,Km);return _t=typeof _t=="function"?_t:lt,_t&&Pt.pop(),Pt.length&&Pt[0]===ht[0]?Fm(Pt,lt,_t):[]});function wx(ht,_t){return ht==null?"":so.call(ht,_t)}function Yo(ht){var _t=ht==null?0:ht.length;return _t?ht[_t-1]:lt}function Ex(ht,_t,Pt){var Xt=ht==null?0:ht.length;if(!Xt)return-1;var un=Xt;return Pt!==lt&&(un=Ur(Pt),un=un<0?lo(Xt+un,0):_o(un,Xt-1)),_t===_t?Em(ht,_t,un):qs(ht,lu,un,!0)}function Sx(ht,_t){return ht&&ht.length?x_(ht,Ur(_t)):lt}var Ax=Vr(dv);function dv(ht,_t){return ht&&ht.length&&_t&&_t.length?Hm(ht,_t):ht}function Tx(ht,_t,Pt){return ht&&ht.length&&_t&&_t.length?Hm(ht,_t,Ir(Pt,2)):ht}function kx(ht,_t,Pt){return ht&&ht.length&&_t&&_t.length?Hm(ht,_t,lt,Pt):ht}var Cx=xs(function(ht,_t){var Pt=ht==null?0:ht.length,Xt=Im(ht,_t);return S_(ht,oo(_t,function(un){return ws(un,Pt)?+un:un}).sort(I_)),Xt});function Ox(ht,_t){var Pt=[];if(!(ht&&ht.length))return Pt;var Xt=-1,un=[],pn=ht.length;for(_t=Ir(_t,3);++Xt<pn;){var $n=ht[Xt];_t($n,Xt,ht)&&(Pt.push($n),un.push(Xt))}return S_(ht,un),Pt}function a1(ht){return ht==null?ht:Ey.call(ht)}function $x(ht,_t,Pt){var Xt=ht==null?0:ht.length;return Xt?(Pt&&typeof Pt!="number"&&Co(ht,_t,Pt)?(_t=0,Pt=Xt):(_t=_t==null?0:Ur(_t),Pt=Pt===lt?Xt:Ur(Pt)),Ko(ht,_t,Pt)):[]}function Px(ht,_t){return wp(ht,_t)}function Rx(ht,_t,Pt){return qm(ht,_t,Ir(Pt,2))}function Lx(ht,_t){var Pt=ht==null?0:ht.length;if(Pt){var Xt=wp(ht,_t);if(Xt<Pt&&es(ht[Xt],_t))return Xt}return-1}function Ix(ht,_t){return wp(ht,_t,!0)}function Dx(ht,_t,Pt){return qm(ht,_t,Ir(Pt,2),!0)}function Mx(ht,_t){var Pt=ht==null?0:ht.length;if(Pt){var Xt=wp(ht,_t,!0)-1;if(es(ht[Xt],_t))return Xt}return-1}function Nx(ht){return ht&&ht.length?T_(ht):[]}function Fx(ht,_t){return ht&&ht.length?T_(ht,Ir(_t,2)):[]}function jx(ht){var _t=ht==null?0:ht.length;return _t?Ko(ht,1,_t):[]}function Bx(ht,_t,Pt){return ht&&ht.length?(_t=Pt||_t===lt?1:Ur(_t),Ko(ht,0,_t<0?0:_t)):[]}function Ux(ht,_t,Pt){var Xt=ht==null?0:ht.length;return Xt?(_t=Pt||_t===lt?1:Ur(_t),_t=Xt-_t,Ko(ht,_t<0?0:_t,Xt)):[]}function Hx(ht,_t){return ht&&ht.length?Ep(ht,Ir(_t,3),!1,!0):[]}function zx(ht,_t){return ht&&ht.length?Ep(ht,Ir(_t,3)):[]}var Wx=Vr(function(ht){return Ms(bo(ht,1,mo,!0))}),qx=Vr(function(ht){var _t=Yo(ht);return mo(_t)&&(_t=lt),Ms(bo(ht,1,mo,!0),Ir(_t,2))}),Vx=Vr(function(ht){var _t=Yo(ht);return _t=typeof _t=="function"?_t:lt,Ms(bo(ht,1,mo,!0),lt,_t)});function Gx(ht){return ht&&ht.length?Ms(ht):[]}function Kx(ht,_t){return ht&&ht.length?Ms(ht,Ir(_t,2)):[]}function Yx(ht,_t){return _t=typeof _t=="function"?_t:lt,ht&&ht.length?Ms(ht,lt,_t):[]}function l1(ht){if(!(ht&&ht.length))return[];var _t=0;return ht=is(ht,function(Pt){if(mo(Pt))return _t=lo(Pt.length,_t),!0}),Sl(_t,function(Pt){return oo(ht,uu(Pt))})}function fv(ht,_t){if(!(ht&&ht.length))return[];var Pt=l1(ht);return _t==null?Pt:oo(Pt,function(Xt){return wo(_t,lt,Xt)})}var Xx=Vr(function(ht,_t){return mo(ht)?wu(ht,_t):[]}),Zx=Vr(function(ht){return Gm(is(ht,mo))}),Qx=Vr(function(ht){var _t=Yo(ht);return mo(_t)&&(_t=lt),Gm(is(ht,mo),Ir(_t,2))}),Jx=Vr(function(ht){var _t=Yo(ht);return _t=typeof _t=="function"?_t:lt,Gm(is(ht,mo),lt,_t)}),ew=Vr(l1);function tw(ht,_t){return $_(ht||[],_t||[],xu)}function nw(ht,_t){return $_(ht||[],_t||[],Au)}var rw=Vr(function(ht){var _t=ht.length,Pt=_t>1?ht[_t-1]:lt;return Pt=typeof Pt=="function"?(ht.pop(),Pt):lt,fv(ht,Pt)});function hv(ht){var _t=hn(ht);return _t.__chain__=!0,_t}function iw(ht,_t){return _t(ht),ht}function Rp(ht,_t){return _t(ht)}var ow=xs(function(ht){var _t=ht.length,Pt=_t?ht[0]:0,Xt=this.__wrapped__,un=function(pn){return Im(pn,ht)};return _t>1||this.__actions__.length||!(Xt instanceof Kr)||!ws(Pt)?this.thru(un):(Xt=Xt.slice(Pt,+Pt+(_t?1:0)),Xt.__actions__.push({func:Rp,args:[un],thisArg:lt}),new Vo(Xt,this.__chain__).thru(function(pn){return _t&&!pn.length&&pn.push(lt),pn}))});function sw(){return hv(this)}function aw(){return new Vo(this.value(),this.__chain__)}function lw(){this.__values__===lt&&(this.__values__=kv(this.value()));var ht=this.__index__>=this.__values__.length,_t=ht?lt:this.__values__[this.__index__++];return{done:ht,value:_t}}function uw(){return this}function cw(ht){for(var _t,Pt=this;Pt instanceof _p;){var Xt=sv(Pt);Xt.__index__=0,Xt.__values__=lt,_t?un.__wrapped__=Xt:_t=Xt;var un=Xt;Pt=Pt.__wrapped__}return un.__wrapped__=ht,_t}function dw(){var ht=this.__wrapped__;if(ht instanceof Kr){var _t=ht;return this.__actions__.length&&(_t=new Kr(this)),_t=_t.reverse(),_t.__actions__.push({func:Rp,args:[a1],thisArg:lt}),new Vo(_t,this.__chain__)}return this.thru(a1)}function fw(){return O_(this.__wrapped__,this.__actions__)}var hw=Sp(function(ht,_t,Pt){eo.call(ht,Pt)?++ht[Pt]:ys(ht,Pt,1)});function pw(ht,_t,Pt){var Xt=Br(ht)?su:o0;return Pt&&Co(ht,_t,Pt)&&(_t=lt),Xt(ht,Ir(_t,3))}function mw(ht,_t){var Pt=Br(ht)?is:f_;return Pt(ht,Ir(_t,3))}var gw=B_(av),_w=B_(lv);function vw(ht,_t){return bo(Lp(ht,_t),1)}function yw(ht,_t){return bo(Lp(ht,_t),ln)}function bw(ht,_t,Pt){return Pt=Pt===lt?1:Ur(Pt),bo(Lp(ht,_t),Pt)}function pv(ht,_t){var Pt=Br(ht)?Ro:Ds;return Pt(ht,Ir(_t,3))}function mv(ht,_t){var Pt=Br(ht)?mm:d_;return Pt(ht,Ir(_t,3))}var xw=Sp(function(ht,_t,Pt){eo.call(ht,Pt)?ht[Pt].push(_t):ys(ht,Pt,[_t])});function ww(ht,_t,Pt,Xt){ht=Do(ht)?ht:Hl(ht),Pt=Pt&&!Xt?Ur(Pt):0;var un=ht.length;return Pt<0&&(Pt=lo(un+Pt,0)),Fp(ht)?Pt<=un&&ht.indexOf(_t,Pt)>-1:!!un&&ps(ht,_t,Pt)>-1}var Ew=Vr(function(ht,_t,Pt){var Xt=-1,un=typeof _t=="function",pn=Do(ht)?Zn(ht.length):[];return Ds(ht,function($n){pn[++Xt]=un?wo(_t,$n,Pt):Eu($n,_t,Pt)}),pn}),Sw=Sp(function(ht,_t,Pt){ys(ht,Pt,_t)});function Lp(ht,_t){var Pt=Br(ht)?oo:v_;return Pt(ht,Ir(_t,3))}function Aw(ht,_t,Pt,Xt){return ht==null?[]:(Br(_t)||(_t=_t==null?[]:[_t]),Pt=Xt?lt:Pt,Br(Pt)||(Pt=Pt==null?[]:[Pt]),w_(ht,_t,Pt))}var Tw=Sp(function(ht,_t,Pt){ht[Pt?0:1].push(_t)},function(){return[[],[]]});function kw(ht,_t,Pt){var Xt=Br(ht)?$s:ep,un=arguments.length<3;return Xt(ht,Ir(_t,4),Pt,un,Ds)}function Cw(ht,_t,Pt){var Xt=Br(ht)?gm:ep,un=arguments.length<3;return Xt(ht,Ir(_t,4),Pt,un,d_)}function Ow(ht,_t){var Pt=Br(ht)?is:f_;return Pt(ht,Mp(Ir(_t,3)))}function $w(ht){var _t=Br(ht)?a_:E0;return _t(ht)}function Pw(ht,_t,Pt){(Pt?Co(ht,_t,Pt):_t===lt)?_t=1:_t=Ur(_t);var Xt=Br(ht)?e0:S0;return Xt(ht,_t)}function Rw(ht){var _t=Br(ht)?t0:T0;return _t(ht)}function Lw(ht){if(ht==null)return 0;if(Do(ht))return Fp(ht)?Ls(ht):ht.length;var _t=Eo(ht);return _t==kn||_t==Un?ht.size:Bm(ht).length}function Iw(ht,_t,Pt){var Xt=Br(ht)?xl:k0;return Pt&&Co(ht,_t,Pt)&&(_t=lt),Xt(ht,Ir(_t,3))}var Dw=Vr(function(ht,_t){if(ht==null)return[];var Pt=_t.length;return Pt>1&&Co(ht,_t[0],_t[1])?_t=[]:Pt>2&&Co(_t[0],_t[1],_t[2])&&(_t=[_t[0]]),w_(ht,bo(_t,1),[])}),Ip=Ut||function(){return co.Date.now()};function Mw(ht,_t){if(typeof _t!="function")throw new Lo(ft);return ht=Ur(ht),function(){if(--ht<1)return _t.apply(this,arguments)}}function gv(ht,_t,Pt){return _t=Pt?lt:_t,_t=ht&&_t==null?ht.length:_t,bs(ht,Lt,lt,lt,lt,lt,_t)}function _v(ht,_t){var Pt;if(typeof _t!="function")throw new Lo(ft);return ht=Ur(ht),function(){return--ht>0&&(Pt=_t.apply(this,arguments)),ht<=1&&(_t=lt),Pt}}var u1=Vr(function(ht,_t,Pt){var Xt=kt;if(Pt.length){var un=os(Pt,Bl(u1));Xt|=Tt}return bs(ht,Xt,_t,Pt,un)}),vv=Vr(function(ht,_t,Pt){var Xt=kt|xt;if(Pt.length){var un=os(Pt,Bl(vv));Xt|=Tt}return bs(_t,Xt,ht,Pt,un)});function yv(ht,_t,Pt){_t=Pt?lt:_t;var Xt=bs(ht,Ot,lt,lt,lt,lt,lt,_t);return Xt.placeholder=yv.placeholder,Xt}function bv(ht,_t,Pt){_t=Pt?lt:_t;var Xt=bs(ht,At,lt,lt,lt,lt,lt,_t);return Xt.placeholder=bv.placeholder,Xt}function xv(ht,_t,Pt){var Xt,un,pn,$n,Bn,Gn,ar=0,lr=!1,dr=!1,xr=!0;if(typeof ht!="function")throw new Lo(ft);_t=Xo(_t)||0,fo(Pt)&&(lr=!!Pt.leading,dr="maxWait"in Pt,pn=dr?lo(Xo(Pt.maxWait)||0,_t):pn,xr="trailing"in Pt?!!Pt.trailing:xr);function Or(go){var ts=Xt,As=un;return Xt=un=lt,ar=go,$n=ht.apply(As,ts),$n}function Dr(go){return ar=go,Bn=Cu(Gr,_t),lr?Or(go):$n}function Wr(go){var ts=go-Gn,As=go-ar,Bv=_t-ts;return dr?_o(Bv,pn-As):Bv}function Mr(go){var ts=go-Gn,As=go-ar;return Gn===lt||ts>=_t||ts<0||dr&&As>=pn}function Gr(){var go=Ip();if(Mr(go))return Yr(go);Bn=Cu(Gr,Wr(go))}function Yr(go){return Bn=lt,xr&&Xt?Or(go):(Xt=un=lt,$n)}function Ho(){Bn!==lt&&P_(Bn),ar=0,Xt=Gn=un=Bn=lt}function Oo(){return Bn===lt?$n:Yr(Ip())}function zo(){var go=Ip(),ts=Mr(go);if(Xt=arguments,un=this,Gn=go,ts){if(Bn===lt)return Dr(Gn);if(dr)return P_(Bn),Bn=Cu(Gr,_t),Or(Gn)}return Bn===lt&&(Bn=Cu(Gr,_t)),$n}return zo.cancel=Ho,zo.flush=Oo,zo}var Nw=Vr(function(ht,_t){return c_(ht,1,_t)}),Fw=Vr(function(ht,_t,Pt){return c_(ht,Xo(_t)||0,Pt)});function jw(ht){return bs(ht,It)}function Dp(ht,_t){if(typeof ht!="function"||_t!=null&&typeof _t!="function")throw new Lo(ft);var Pt=function(){var Xt=arguments,un=_t?_t.apply(this,Xt):Xt[0],pn=Pt.cache;if(pn.has(un))return pn.get(un);var $n=ht.apply(this,Xt);return Pt.cache=pn.set(un,$n)||pn,$n};return Pt.cache=new(Dp.Cache||vs),Pt}Dp.Cache=vs;function Mp(ht){if(typeof ht!="function")throw new Lo(ft);return function(){var _t=arguments;switch(_t.length){case 0:return!ht.call(this);case 1:return!ht.call(this,_t[0]);case 2:return!ht.call(this,_t[0],_t[1]);case 3:return!ht.call(this,_t[0],_t[1],_t[2])}return!ht.apply(this,_t)}}function Bw(ht){return _v(2,ht)}var Uw=C0(function(ht,_t){_t=_t.length==1&&Br(_t[0])?oo(_t[0],Ao(Ir())):oo(bo(_t,1),Ao(Ir()));var Pt=_t.length;return Vr(function(Xt){for(var un=-1,pn=_o(Xt.length,Pt);++un<pn;)Xt[un]=_t[un].call(this,Xt[un]);return wo(ht,this,Xt)})}),c1=Vr(function(ht,_t){var Pt=os(_t,Bl(c1));return bs(ht,Tt,lt,_t,Pt)}),wv=Vr(function(ht,_t){var Pt=os(_t,Bl(wv));return bs(ht,$t,lt,_t,Pt)}),Hw=xs(function(ht,_t){return bs(ht,Rt,lt,lt,lt,_t)});function zw(ht,_t){if(typeof ht!="function")throw new Lo(ft);return _t=_t===lt?_t:Ur(_t),Vr(ht,_t)}function Ww(ht,_t){if(typeof ht!="function")throw new Lo(ft);return _t=_t==null?0:lo(Ur(_t),0),Vr(function(Pt){var Xt=Pt[_t],un=Fs(Pt,0,_t);return Xt&&Wo(un,Xt),wo(ht,this,un)})}function qw(ht,_t,Pt){var Xt=!0,un=!0;if(typeof ht!="function")throw new Lo(ft);return fo(Pt)&&(Xt="leading"in Pt?!!Pt.leading:Xt,un="trailing"in Pt?!!Pt.trailing:un),xv(ht,_t,{leading:Xt,maxWait:_t,trailing:un})}function Vw(ht){return gv(ht,1)}function Gw(ht,_t){return c1(Ym(_t),ht)}function Kw(){if(!arguments.length)return[];var ht=arguments[0];return Br(ht)?ht:[ht]}function Yw(ht){return Go(ht,bt)}function Xw(ht,_t){return _t=typeof _t=="function"?_t:lt,Go(ht,bt,_t)}function Zw(ht){return Go(ht,wt|bt)}function Qw(ht,_t){return _t=typeof _t=="function"?_t:lt,Go(ht,wt|bt,_t)}function Jw(ht,_t){return _t==null||u_(ht,_t,yo(_t))}function es(ht,_t){return ht===_t||ht!==ht&&_t!==_t}var e2=Cp(Nm),t2=Cp(function(ht,_t){return ht>=_t}),ga=m_(function(){return arguments}())?m_:function(ht){return ho(ht)&&eo.call(ht,"callee")&&!hp.call(ht,"callee")},Br=Zn.isArray,n2=Yu?Ao(Yu):d0;function Do(ht){return ht!=null&&Np(ht.length)&&!Es(ht)}function mo(ht){return ho(ht)&&Do(ht)}function r2(ht){return ht===!0||ht===!1||ho(ht)&&ko(ht)==Kt}var js=Cr||w1,i2=Xu?Ao(Xu):f0;function o2(ht){return ho(ht)&&ht.nodeType===1&&!Ou(ht)}function s2(ht){if(ht==null)return!0;if(Do(ht)&&(Br(ht)||typeof ht=="string"||typeof ht.splice=="function"||js(ht)||Ul(ht)||ga(ht)))return!ht.length;var _t=Eo(ht);if(_t==kn||_t==Un)return!ht.size;if(ku(ht))return!Bm(ht).length;for(var Pt in ht)if(eo.call(ht,Pt))return!1;return!0}function a2(ht,_t){return Su(ht,_t)}function l2(ht,_t,Pt){Pt=typeof Pt=="function"?Pt:lt;var Xt=Pt?Pt(ht,_t):lt;return Xt===lt?Su(ht,_t,lt,Pt):!!Xt}function d1(ht){if(!ho(ht))return!1;var _t=ko(ht);return _t==cn||_t==sn||typeof ht.message=="string"&&typeof ht.name=="string"&&!Ou(ht)}function u2(ht){return typeof ht=="number"&&Xr(ht)}function Es(ht){if(!fo(ht))return!1;var _t=ko(ht);return _t==bn||_t==Tn||_t==zt||_t==Mn}function Ev(ht){return typeof ht=="number"&&ht==Ur(ht)}function Np(ht){return typeof ht=="number"&&ht>-1&&ht%1==0&&ht<=nn}function fo(ht){var _t=typeof ht;return ht!=null&&(_t=="object"||_t=="function")}function ho(ht){return ht!=null&&typeof ht=="object"}var Sv=Zu?Ao(Zu):p0;function c2(ht,_t){return ht===_t||jm(ht,_t,t1(_t))}function d2(ht,_t,Pt){return Pt=typeof Pt=="function"?Pt:lt,jm(ht,_t,t1(_t),Pt)}function f2(ht){return Av(ht)&&ht!=+ht}function p2(ht){if(Z0(ht))throw new Fr(dt);return g_(ht)}function m2(ht){return ht===null}function g2(ht){return ht==null}function Av(ht){return typeof ht=="number"||ho(ht)&&ko(ht)==In}function Ou(ht){if(!ho(ht)||ko(ht)!=Fn)return!1;var _t=ao(ht);if(_t===null)return!0;var Pt=eo.call(_t,"constructor")&&_t.constructor;return typeof Pt=="function"&&Pt instanceof Pt&&Vs.call(Pt)==Om}var f1=Qu?Ao(Qu):m0;function _2(ht){return Ev(ht)&&ht>=-nn&&ht<=nn}var Tv=Ju?Ao(Ju):g0;function Fp(ht){return typeof ht=="string"||!Br(ht)&&ho(ht)&&ko(ht)==Sn}function Uo(ht){return typeof ht=="symbol"||ho(ht)&&ko(ht)==On}var Ul=Ws?Ao(Ws):_0;function v2(ht){return ht===lt}function y2(ht){return ho(ht)&&Eo(ht)==Pn}function b2(ht){return ho(ht)&&ko(ht)==Xn}var x2=Cp(Um),w2=Cp(function(ht,_t){return ht<=_t});function kv(ht){if(!ht)return[];if(Do(ht))return Fp(ht)?jo(ht):Io(ht);if(Ks&&ht[Ks])return Al(ht[Ks]());var _t=Eo(ht),Pt=_t==kn?pu:_t==Un?Tl:Hl;return Pt(ht)}function Ss(ht){if(!ht)return ht===0?ht:0;if(ht=Xo(ht),ht===ln||ht===-ln){var _t=ht<0?-1:1;return _t*on}return ht===ht?ht:0}function Ur(ht){var _t=Ss(ht),Pt=_t%1;return _t===_t?Pt?_t-Pt:_t:0}function Cv(ht){return ht?Zs(Ur(ht),0,Jt):0}function Xo(ht){if(typeof ht=="number")return ht;if(Uo(ht))return rn;if(fo(ht)){var _t=typeof ht.valueOf=="function"?ht.valueOf():ht;ht=fo(_t)?_t+"":_t}if(typeof ht!="string")return ht===0?ht:+ht;ht=np(ht);var Pt=gr.test(ht);return Pt||kr.test(ht)?hm(ht.slice(2),Pt?2:8):fr.test(ht)?rn:+ht}function Ov(ht){return us(ht,Mo(ht))}function E2(ht){return ht?Zs(Ur(ht),-nn,nn):ht===0?ht:0}function to(ht){return ht==null?"":Bo(ht)}var S2=Nl(function(ht,_t){if(ku(_t)||Do(_t)){us(_t,yo(_t),ht);return}for(var Pt in _t)eo.call(_t,Pt)&&xu(ht,Pt,_t[Pt])}),$v=Nl(function(ht,_t){us(_t,Mo(_t),ht)}),jp=Nl(function(ht,_t,Pt,Xt){us(_t,Mo(_t),ht,Xt)}),A2=Nl(function(ht,_t,Pt,Xt){us(_t,yo(_t),ht,Xt)}),T2=xs(Im);function k2(ht,_t){var Pt=Ml(ht);return _t==null?Pt:l_(Pt,_t)}var C2=Vr(function(ht,_t){ht=no(ht);var Pt=-1,Xt=_t.length,un=Xt>2?_t[2]:lt;for(un&&Co(_t[0],_t[1],un)&&(Xt=1);++Pt<Xt;)for(var pn=_t[Pt],$n=Mo(pn),Bn=-1,Gn=$n.length;++Bn<Gn;){var ar=$n[Bn],lr=ht[ar];(lr===lt||es(lr,Is[ar])&&!eo.call(ht,ar))&&(ht[ar]=pn[ar])}return ht}),O2=Vr(function(ht){return ht.push(lt,G_),wo(Pv,lt,ht)});function $2(ht,_t){return au(ht,Ir(_t,3),ls)}function P2(ht,_t){return au(ht,Ir(_t,3),Mm)}function R2(ht,_t){return ht==null?ht:Dm(ht,Ir(_t,3),Mo)}function L2(ht,_t){return ht==null?ht:h_(ht,Ir(_t,3),Mo)}function I2(ht,_t){return ht&&ls(ht,Ir(_t,3))}function D2(ht,_t){return ht&&Mm(ht,Ir(_t,3))}function M2(ht){return ht==null?[]:bp(ht,yo(ht))}function N2(ht){return ht==null?[]:bp(ht,Mo(ht))}function p1(ht,_t,Pt){var Xt=ht==null?lt:Qs(ht,_t);return Xt===lt?Pt:Xt}function F2(ht,_t){return ht!=null&&X_(ht,_t,a0)}function m1(ht,_t){return ht!=null&&X_(ht,_t,l0)}var j2=H_(function(ht,_t,Pt){_t!=null&&typeof _t.toString!="function"&&(_t=Ol.call(_t)),ht[_t]=Pt},_1(No)),B2=H_(function(ht,_t,Pt){_t!=null&&typeof _t.toString!="function"&&(_t=Ol.call(_t)),eo.call(ht,_t)?ht[_t].push(Pt):ht[_t]=[Pt]},Ir),U2=Vr(Eu);function yo(ht){return Do(ht)?s_(ht):Bm(ht)}function Mo(ht){return Do(ht)?s_(ht,!0):v0(ht)}function H2(ht,_t){var Pt={};return _t=Ir(_t,3),ls(ht,function(Xt,un,pn){ys(Pt,_t(Xt,un,pn),Xt)}),Pt}function z2(ht,_t){var Pt={};return _t=Ir(_t,3),ls(ht,function(Xt,un,pn){ys(Pt,un,_t(Xt,un,pn))}),Pt}var W2=Nl(function(ht,_t,Pt){xp(ht,_t,Pt)}),Pv=Nl(function(ht,_t,Pt,Xt){xp(ht,_t,Pt,Xt)}),q2=xs(function(ht,_t){var Pt={};if(ht==null)return Pt;var Xt=!1;_t=oo(_t,function(pn){return pn=Ns(pn,ht),Xt||(Xt=pn.length>1),pn}),us(ht,_g(ht),Pt),Xt&&(Pt=Go(Pt,wt|yt|bt,j0));for(var un=_t.length;un--;)Vm(Pt,_t[un]);return Pt});function V2(ht,_t){return Rv(ht,Mp(Ir(_t)))}var G2=xs(function(ht,_t){return ht==null?{}:b0(ht,_t)});function Rv(ht,_t){if(ht==null)return{};var Pt=oo(_g(ht),function(Xt){return[Xt]});return _t=Ir(_t),E_(ht,Pt,function(Xt,un){return _t(Xt,un[0])})}function K2(ht,_t,Pt){_t=Ns(_t,ht);var Xt=-1,un=_t.length;for(un||(un=1,ht=lt);++Xt<un;){var pn=ht==null?lt:ht[cs(_t[Xt])];pn===lt&&(Xt=un,pn=Pt),ht=Es(pn)?pn.call(ht):pn}return ht}function Y2(ht,_t,Pt){return ht==null?ht:Au(ht,_t,Pt)}function X2(ht,_t,Pt,Xt){return Xt=typeof Xt=="function"?Xt:lt,ht==null?ht:Au(ht,_t,Pt,Xt)}var Lv=q_(yo),Iv=q_(Mo);function Z2(ht,_t,Pt){var Xt=Br(ht),un=Xt||js(ht)||Ul(ht);if(_t=Ir(_t,4),Pt==null){var pn=ht&&ht.constructor;un?Pt=Xt?new pn:[]:fo(ht)?Pt=Es(pn)?Ml(ao(ht)):{}:Pt={}}return(un?Ro:ls)(ht,function($n,Bn,Gn){return _t(Pt,$n,Bn,Gn)}),Pt}function Q2(ht,_t){return ht==null?!0:Vm(ht,_t)}function J2(ht,_t,Pt){return ht==null?ht:C_(ht,_t,Ym(Pt))}function eE(ht,_t,Pt,Xt){return Xt=typeof Xt=="function"?Xt:lt,ht==null?ht:C_(ht,_t,Ym(Pt),Xt)}function Hl(ht){return ht==null?[]:du(ht,yo(ht))}function tE(ht){return ht==null?[]:du(ht,Mo(ht))}function nE(ht,_t,Pt){return Pt===lt&&(Pt=_t,_t=lt),Pt!==lt&&(Pt=Xo(Pt),Pt=Pt===Pt?Pt:0),_t!==lt&&(_t=Xo(_t),_t=_t===_t?_t:0),Zs(Xo(ht),_t,Pt)}function rE(ht,_t,Pt){return _t=Ss(_t),Pt===lt?(Pt=_t,_t=0):Pt=Ss(Pt),ht=Xo(ht),u0(ht,_t,Pt)}function iE(ht,_t,Pt){if(Pt&&typeof Pt!="boolean"&&Co(ht,_t,Pt)&&(_t=Pt=lt),Pt===lt&&(typeof _t=="boolean"?(Pt=_t,_t=lt):typeof ht=="boolean"&&(Pt=ht,ht=lt)),ht===lt&&_t===lt?(ht=0,_t=1):(ht=Ss(ht),_t===lt?(_t=ht,ht=0):_t=Ss(_t)),ht>_t){var Xt=ht;ht=_t,_t=Xt}if(Pt||ht%1||_t%1){var un=i_();return _o(ht+un*(_t-ht+fm("1e-"+((un+"").length-1))),_t)}return zm(ht,_t)}var oE=Fl(function(ht,_t,Pt){return _t=_t.toLowerCase(),ht+(Pt?Dv(_t):_t)});function Dv(ht){return g1(to(ht).toLowerCase())}function Mv(ht){return ht=to(ht),ht&&ht.replace(jr,ip).replace(sm,"")}function sE(ht,_t,Pt){ht=to(ht),_t=Bo(_t);var Xt=ht.length;Pt=Pt===lt?Xt:Zs(Ur(Pt),0,Xt);var un=Pt;return Pt-=_t.length,Pt>=0&&ht.slice(Pt,un)==_t}function aE(ht){return ht=to(ht),ht&&hr.test(ht)?ht.replace(Ln,hu):ht}function lE(ht){return ht=to(ht),ht&&yn.test(ht)?ht.replace(mr,"\\$&"):ht}var uE=Fl(function(ht,_t,Pt){return ht+(Pt?"-":"")+_t.toLowerCase()}),cE=Fl(function(ht,_t,Pt){return ht+(Pt?" ":"")+_t.toLowerCase()}),dE=j_("toLowerCase");function fE(ht,_t,Pt){ht=to(ht),_t=Ur(_t);var Xt=_t?Ls(ht):0;if(!_t||Xt>=_t)return ht;var un=(_t-Xt)/2;return kp(En(un),Pt)+ht+kp(an(un),Pt)}function hE(ht,_t,Pt){ht=to(ht),_t=Ur(_t);var Xt=_t?Ls(ht):0;return _t&&Xt<_t?ht+kp(_t-Xt,Pt):ht}function pE(ht,_t,Pt){ht=to(ht),_t=Ur(_t);var Xt=_t?Ls(ht):0;return _t&&Xt<_t?kp(_t-Xt,Pt)+ht:ht}function mE(ht,_t,Pt){return Pt||_t==null?_t=0:_t&&(_t=+_t),wy(to(ht).replace(Qt,""),_t||0)}function gE(ht,_t,Pt){return(Pt?Co(ht,_t,Pt):_t===lt)?_t=1:_t=Ur(_t),Wm(to(ht),_t)}function _E(){var ht=arguments,_t=to(ht[0]);return ht.length<3?_t:_t.replace(ht[1],ht[2])}var vE=Fl(function(ht,_t,Pt){return ht+(Pt?"_":"")+_t.toLowerCase()});function yE(ht,_t,Pt){return Pt&&typeof Pt!="number"&&Co(ht,_t,Pt)&&(_t=Pt=lt),Pt=Pt===lt?Jt:Pt>>>0,Pt?(ht=to(ht),ht&&(typeof _t=="string"||_t!=null&&!f1(_t))&&(_t=Bo(_t),!_t&&Rs(ht))?Fs(jo(ht),0,Pt):ht.split(_t,Pt)):[]}var bE=Fl(function(ht,_t,Pt){return ht+(Pt?" ":"")+g1(_t)});function xE(ht,_t,Pt){return ht=to(ht),Pt=Pt==null?0:Zs(Ur(Pt),0,ht.length),_t=Bo(_t),ht.slice(Pt,Pt+_t.length)==_t}function wE(ht,_t,Pt){var Xt=hn.templateSettings;Pt&&Co(ht,_t,Pt)&&(_t=lt),ht=to(ht),_t=jp({},_t,Xt,V_);var un=jp({},_t.imports,Xt.imports,V_),pn=yo(un),$n=du(un,pn),Bn,Gn,ar=0,lr=_t.interpolate||Zr,dr="__p += '",xr=gu((_t.escape||Zr).source+"|"+lr.source+"|"+(lr===yr?Jn:Zr).source+"|"+(_t.evaluate||Zr).source+"|$","g"),Or="//# sourceURL="+(eo.call(_t,"sourceURL")?(_t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cm+"]")+`
`;ht.replace(xr,function(Mr,Gr,Yr,Ho,Oo,zo){return Yr||(Yr=Ho),dr+=ht.slice(ar,zo).replace(Qr,ym),Gr&&(Bn=!0,dr+=`' +
__e(`+Gr+`) +
'`),Oo&&(Gn=!0,dr+=`';
`+Oo+`;
__p += '`),Yr&&(dr+=`' +
((__t = (`+Yr+`)) == null ? '' : __t) +
'`),ar=zo+Mr.length,Mr}),dr+=`';
`;var Dr=eo.call(_t,"variable")&&_t.variable;if(!Dr)dr=`with (obj) {
`+dr+`
}
`;else if(nr.test(Dr))throw new Fr(mt);dr=(Gn?dr.replace(qn,""):dr).replace(Yn,"$1").replace(Sr,"$1;"),dr="function("+(Dr||"obj")+`) {
`+(Dr?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Bn?", __e = _.escape":"")+(Gn?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+dr+`return __p
}`;var Wr=Fv(function(){return Jr(pn,Or+"return "+dr).apply(lt,$n)});if(Wr.source=dr,d1(Wr))throw Wr;return Wr}function EE(ht){return to(ht).toLowerCase()}function SE(ht){return to(ht).toUpperCase()}function AE(ht,_t,Pt){if(ht=to(ht),ht&&(Pt||_t===lt))return np(ht);if(!ht||!(_t=Bo(_t)))return ht;var Xt=jo(ht),un=jo(_t),pn=rp(Xt,un),$n=fu(Xt,un)+1;return Fs(Xt,pn,$n).join("")}function TE(ht,_t,Pt){if(ht=to(ht),ht&&(Pt||_t===lt))return ht.slice(0,mu(ht)+1);if(!ht||!(_t=Bo(_t)))return ht;var Xt=jo(ht),un=fu(Xt,jo(_t))+1;return Fs(Xt,0,un).join("")}function kE(ht,_t,Pt){if(ht=to(ht),ht&&(Pt||_t===lt))return ht.replace(Qt,"");if(!ht||!(_t=Bo(_t)))return ht;var Xt=jo(ht),un=rp(Xt,jo(_t));return Fs(Xt,un).join("")}function CE(ht,_t){var Pt=Ft,Xt=Mt;if(fo(_t)){var un="separator"in _t?_t.separator:un;Pt="length"in _t?Ur(_t.length):Pt,Xt="omission"in _t?Bo(_t.omission):Xt}ht=to(ht);var pn=ht.length;if(Rs(ht)){var $n=jo(ht);pn=$n.length}if(Pt>=pn)return ht;var Bn=Pt-Ls(Xt);if(Bn<1)return Xt;var Gn=$n?Fs($n,0,Bn).join(""):ht.slice(0,Bn);if(un===lt)return Gn+Xt;if($n&&(Bn+=Gn.length-Bn),f1(un)){if(ht.slice(Bn).search(un)){var ar,lr=Gn;for(un.global||(un=gu(un.source,to(Ar.exec(un))+"g")),un.lastIndex=0;ar=un.exec(lr);)var dr=ar.index;Gn=Gn.slice(0,dr===lt?Bn:dr)}}else if(ht.indexOf(Bo(un),Bn)!=Bn){var xr=Gn.lastIndexOf(un);xr>-1&&(Gn=Gn.slice(0,xr))}return Gn+Xt}function OE(ht){return ht=to(ht),ht&&er.test(ht)?ht.replace(Tr,ap):ht}var $E=Fl(function(ht,_t,Pt){return ht+(Pt?" ":"")+_t.toUpperCase()}),g1=j_("toUpperCase");function Nv(ht,_t,Pt){return ht=to(ht),_t=Pt?lt:_t,_t===lt?xm(ht)?Tm(ht):_f(ht):ht.match(_t)||[]}var Fv=Vr(function(ht,_t){try{return wo(ht,lt,_t)}catch(Pt){return d1(Pt)?Pt:new Fr(Pt)}}),PE=xs(function(ht,_t){return Ro(_t,function(Pt){Pt=cs(Pt),ys(ht,Pt,u1(ht[Pt],ht))}),ht});function RE(ht){var _t=ht==null?0:ht.length,Pt=Ir();return ht=_t?oo(ht,function(Xt){if(typeof Xt[1]!="function")throw new Lo(ft);return[Pt(Xt[0]),Xt[1]]}):[],Vr(function(Xt){for(var un=-1;++un<_t;){var pn=ht[un];if(wo(pn[0],this,Xt))return wo(pn[1],this,Xt)}})}function LE(ht){return i0(Go(ht,wt))}function _1(ht){return function(){return ht}}function IE(ht,_t){return ht==null||ht!==ht?_t:ht}var DE=U_(),ME=U_(!0);function No(ht){return ht}function v1(ht){return __(typeof ht=="function"?ht:Go(ht,wt))}function NE(ht){return y_(Go(ht,wt))}function FE(ht,_t){return b_(ht,Go(_t,wt))}var jE=Vr(function(ht,_t){return function(Pt){return Eu(Pt,ht,_t)}}),BE=Vr(function(ht,_t){return function(Pt){return Eu(ht,Pt,_t)}});function y1(ht,_t,Pt){var Xt=yo(_t),un=bp(_t,Xt);Pt==null&&!(fo(_t)&&(un.length||!Xt.length))&&(Pt=_t,_t=ht,ht=this,un=bp(_t,yo(_t)));var pn=!(fo(Pt)&&"chain"in Pt)||!!Pt.chain,$n=Es(ht);return Ro(un,function(Bn){var Gn=_t[Bn];ht[Bn]=Gn,$n&&(ht.prototype[Bn]=function(){var ar=this.__chain__;if(pn||ar){var lr=ht(this.__wrapped__),dr=lr.__actions__=Io(this.__actions__);return dr.push({func:Gn,args:arguments,thisArg:ht}),lr.__chain__=ar,lr}return Gn.apply(ht,Wo([this.value()],arguments))})}),ht}function UE(){return co._===this&&(co._=dp),this}function b1(){}function HE(ht){return ht=Ur(ht),Vr(function(_t){return x_(_t,ht)})}var zE=Zm(oo),WE=Zm(su),qE=Zm(xl);function jv(ht){return r1(ht)?uu(cs(ht)):x0(ht)}function VE(ht){return function(_t){return ht==null?lt:Qs(ht,_t)}}var GE=z_(),KE=z_(!0);function x1(){return[]}function w1(){return!1}function YE(){return{}}function XE(){return""}function ZE(){return!0}function QE(ht,_t){if(ht=Ur(ht),ht<1||ht>nn)return[];var Pt=Jt,Xt=_o(ht,Jt);_t=Ir(_t),ht-=Jt;for(var un=Sl(Xt,_t);++Pt<ht;)_t(Pt);return un}function JE(ht){return Br(ht)?oo(ht,cs):Uo(ht)?[ht]:Io(ov(to(ht)))}function eS(ht){var _t=++up;return to(ht)+_t}var tS=Tp(function(ht,_t){return ht+_t},0),nS=Qm("ceil"),rS=Tp(function(ht,_t){return ht/_t},1),iS=Qm("floor");function oS(ht){return ht&&ht.length?yp(ht,No,Nm):lt}function sS(ht,_t){return ht&&ht.length?yp(ht,Ir(_t,2),Nm):lt}function aS(ht){return ms(ht,No)}function lS(ht,_t){return ms(ht,Ir(_t,2))}function uS(ht){return ht&&ht.length?yp(ht,No,Um):lt}function cS(ht,_t){return ht&&ht.length?yp(ht,Ir(_t,2),Um):lt}var dS=Tp(function(ht,_t){return ht*_t},1),fS=Qm("round"),hS=Tp(function(ht,_t){return ht-_t},0);function pS(ht){return ht&&ht.length?El(ht,No):0}function mS(ht,_t){return ht&&ht.length?El(ht,Ir(_t,2)):0}return hn.after=Mw,hn.ary=gv,hn.assign=S2,hn.assignIn=$v,hn.assignInWith=jp,hn.assignWith=A2,hn.at=T2,hn.before=_v,hn.bind=u1,hn.bindAll=PE,hn.bindKey=vv,hn.castArray=Kw,hn.chain=hv,hn.chunk=rx,hn.compact=ix,hn.concat=ox,hn.cond=RE,hn.conforms=LE,hn.constant=_1,hn.countBy=hw,hn.create=k2,hn.curry=yv,hn.curryRight=bv,hn.debounce=xv,hn.defaults=C2,hn.defaultsDeep=O2,hn.defer=Nw,hn.delay=Fw,hn.difference=sx,hn.differenceBy=ax,hn.differenceWith=lx,hn.drop=ux,hn.dropRight=cx,hn.dropRightWhile=dx,hn.dropWhile=fx,hn.fill=hx,hn.filter=mw,hn.flatMap=vw,hn.flatMapDeep=yw,hn.flatMapDepth=bw,hn.flatten=uv,hn.flattenDeep=px,hn.flattenDepth=mx,hn.flip=jw,hn.flow=DE,hn.flowRight=ME,hn.fromPairs=gx,hn.functions=M2,hn.functionsIn=N2,hn.groupBy=xw,hn.initial=vx,hn.intersection=yx,hn.intersectionBy=bx,hn.intersectionWith=xx,hn.invert=j2,hn.invertBy=B2,hn.invokeMap=Ew,hn.iteratee=v1,hn.keyBy=Sw,hn.keys=yo,hn.keysIn=Mo,hn.map=Lp,hn.mapKeys=H2,hn.mapValues=z2,hn.matches=NE,hn.matchesProperty=FE,hn.memoize=Dp,hn.merge=W2,hn.mergeWith=Pv,hn.method=jE,hn.methodOf=BE,hn.mixin=y1,hn.negate=Mp,hn.nthArg=HE,hn.omit=q2,hn.omitBy=V2,hn.once=Bw,hn.orderBy=Aw,hn.over=zE,hn.overArgs=Uw,hn.overEvery=WE,hn.overSome=qE,hn.partial=c1,hn.partialRight=wv,hn.partition=Tw,hn.pick=G2,hn.pickBy=Rv,hn.property=jv,hn.propertyOf=VE,hn.pull=Ax,hn.pullAll=dv,hn.pullAllBy=Tx,hn.pullAllWith=kx,hn.pullAt=Cx,hn.range=GE,hn.rangeRight=KE,hn.rearg=Hw,hn.reject=Ow,hn.remove=Ox,hn.rest=zw,hn.reverse=a1,hn.sampleSize=Pw,hn.set=Y2,hn.setWith=X2,hn.shuffle=Rw,hn.slice=$x,hn.sortBy=Dw,hn.sortedUniq=Nx,hn.sortedUniqBy=Fx,hn.split=yE,hn.spread=Ww,hn.tail=jx,hn.take=Bx,hn.takeRight=Ux,hn.takeRightWhile=Hx,hn.takeWhile=zx,hn.tap=iw,hn.throttle=qw,hn.thru=Rp,hn.toArray=kv,hn.toPairs=Lv,hn.toPairsIn=Iv,hn.toPath=JE,hn.toPlainObject=Ov,hn.transform=Z2,hn.unary=Vw,hn.union=Wx,hn.unionBy=qx,hn.unionWith=Vx,hn.uniq=Gx,hn.uniqBy=Kx,hn.uniqWith=Yx,hn.unset=Q2,hn.unzip=l1,hn.unzipWith=fv,hn.update=J2,hn.updateWith=eE,hn.values=Hl,hn.valuesIn=tE,hn.without=Xx,hn.words=Nv,hn.wrap=Gw,hn.xor=Zx,hn.xorBy=Qx,hn.xorWith=Jx,hn.zip=ew,hn.zipObject=tw,hn.zipObjectDeep=nw,hn.zipWith=rw,hn.entries=Lv,hn.entriesIn=Iv,hn.extend=$v,hn.extendWith=jp,y1(hn,hn),hn.add=tS,hn.attempt=Fv,hn.camelCase=oE,hn.capitalize=Dv,hn.ceil=nS,hn.clamp=nE,hn.clone=Yw,hn.cloneDeep=Zw,hn.cloneDeepWith=Qw,hn.cloneWith=Xw,hn.conformsTo=Jw,hn.deburr=Mv,hn.defaultTo=IE,hn.divide=rS,hn.endsWith=sE,hn.eq=es,hn.escape=aE,hn.escapeRegExp=lE,hn.every=pw,hn.find=gw,hn.findIndex=av,hn.findKey=$2,hn.findLast=_w,hn.findLastIndex=lv,hn.findLastKey=P2,hn.floor=iS,hn.forEach=pv,hn.forEachRight=mv,hn.forIn=R2,hn.forInRight=L2,hn.forOwn=I2,hn.forOwnRight=D2,hn.get=p1,hn.gt=e2,hn.gte=t2,hn.has=F2,hn.hasIn=m1,hn.head=cv,hn.identity=No,hn.includes=ww,hn.indexOf=_x,hn.inRange=rE,hn.invoke=U2,hn.isArguments=ga,hn.isArray=Br,hn.isArrayBuffer=n2,hn.isArrayLike=Do,hn.isArrayLikeObject=mo,hn.isBoolean=r2,hn.isBuffer=js,hn.isDate=i2,hn.isElement=o2,hn.isEmpty=s2,hn.isEqual=a2,hn.isEqualWith=l2,hn.isError=d1,hn.isFinite=u2,hn.isFunction=Es,hn.isInteger=Ev,hn.isLength=Np,hn.isMap=Sv,hn.isMatch=c2,hn.isMatchWith=d2,hn.isNaN=f2,hn.isNative=p2,hn.isNil=g2,hn.isNull=m2,hn.isNumber=Av,hn.isObject=fo,hn.isObjectLike=ho,hn.isPlainObject=Ou,hn.isRegExp=f1,hn.isSafeInteger=_2,hn.isSet=Tv,hn.isString=Fp,hn.isSymbol=Uo,hn.isTypedArray=Ul,hn.isUndefined=v2,hn.isWeakMap=y2,hn.isWeakSet=b2,hn.join=wx,hn.kebabCase=uE,hn.last=Yo,hn.lastIndexOf=Ex,hn.lowerCase=cE,hn.lowerFirst=dE,hn.lt=x2,hn.lte=w2,hn.max=oS,hn.maxBy=sS,hn.mean=aS,hn.meanBy=lS,hn.min=uS,hn.minBy=cS,hn.stubArray=x1,hn.stubFalse=w1,hn.stubObject=YE,hn.stubString=XE,hn.stubTrue=ZE,hn.multiply=dS,hn.nth=Sx,hn.noConflict=UE,hn.noop=b1,hn.now=Ip,hn.pad=fE,hn.padEnd=hE,hn.padStart=pE,hn.parseInt=mE,hn.random=iE,hn.reduce=kw,hn.reduceRight=Cw,hn.repeat=gE,hn.replace=_E,hn.result=K2,hn.round=fS,hn.runInContext=zn,hn.sample=$w,hn.size=Lw,hn.snakeCase=vE,hn.some=Iw,hn.sortedIndex=Px,hn.sortedIndexBy=Rx,hn.sortedIndexOf=Lx,hn.sortedLastIndex=Ix,hn.sortedLastIndexBy=Dx,hn.sortedLastIndexOf=Mx,hn.startCase=bE,hn.startsWith=xE,hn.subtract=hS,hn.sum=pS,hn.sumBy=mS,hn.template=wE,hn.times=QE,hn.toFinite=Ss,hn.toInteger=Ur,hn.toLength=Cv,hn.toLower=EE,hn.toNumber=Xo,hn.toSafeInteger=E2,hn.toString=to,hn.toUpper=SE,hn.trim=AE,hn.trimEnd=TE,hn.trimStart=kE,hn.truncate=CE,hn.unescape=OE,hn.uniqueId=eS,hn.upperCase=$E,hn.upperFirst=g1,hn.each=pv,hn.eachRight=mv,hn.first=cv,y1(hn,function(){var ht={};return ls(hn,function(_t,Pt){eo.call(hn.prototype,Pt)||(ht[Pt]=_t)}),ht}(),{chain:!1}),hn.VERSION=ut,Ro(["bind","bindKey","curry","curryRight","partial","partialRight"],function(ht){hn[ht].placeholder=hn}),Ro(["drop","take"],function(ht,_t){Kr.prototype[ht]=function(Pt){Pt=Pt===lt?1:lo(Ur(Pt),0);var Xt=this.__filtered__&&!_t?new Kr(this):this.clone();return Xt.__filtered__?Xt.__takeCount__=_o(Pt,Xt.__takeCount__):Xt.__views__.push({size:_o(Pt,Jt),type:ht+(Xt.__dir__<0?"Right":"")}),Xt},Kr.prototype[ht+"Right"]=function(Pt){return this.reverse()[ht](Pt).reverse()}}),Ro(["filter","map","takeWhile"],function(ht,_t){var Pt=_t+1,Xt=Pt==Nt||Pt==tn;Kr.prototype[ht]=function(un){var pn=this.clone();return pn.__iteratees__.push({iteratee:Ir(un,3),type:Pt}),pn.__filtered__=pn.__filtered__||Xt,pn}}),Ro(["head","last"],function(ht,_t){var Pt="take"+(_t?"Right":"");Kr.prototype[ht]=function(){return this[Pt](1).value()[0]}}),Ro(["initial","tail"],function(ht,_t){var Pt="drop"+(_t?"":"Right");Kr.prototype[ht]=function(){return this.__filtered__?new Kr(this):this[Pt](1)}}),Kr.prototype.compact=function(){return this.filter(No)},Kr.prototype.find=function(ht){return this.filter(ht).head()},Kr.prototype.findLast=function(ht){return this.reverse().find(ht)},Kr.prototype.invokeMap=Vr(function(ht,_t){return typeof ht=="function"?new Kr(this):this.map(function(Pt){return Eu(Pt,ht,_t)})}),Kr.prototype.reject=function(ht){return this.filter(Mp(Ir(ht)))},Kr.prototype.slice=function(ht,_t){ht=Ur(ht);var Pt=this;return Pt.__filtered__&&(ht>0||_t<0)?new Kr(Pt):(ht<0?Pt=Pt.takeRight(-ht):ht&&(Pt=Pt.drop(ht)),_t!==lt&&(_t=Ur(_t),Pt=_t<0?Pt.dropRight(-_t):Pt.take(_t-ht)),Pt)},Kr.prototype.takeRightWhile=function(ht){return this.reverse().takeWhile(ht).reverse()},Kr.prototype.toArray=function(){return this.take(Jt)},ls(Kr.prototype,function(ht,_t){var Pt=/^(?:filter|find|map|reject)|While$/.test(_t),Xt=/^(?:head|last)$/.test(_t),un=hn[Xt?"take"+(_t=="last"?"Right":""):_t],pn=Xt||/^find/.test(_t);un&&(hn.prototype[_t]=function(){var $n=this.__wrapped__,Bn=Xt?[1]:arguments,Gn=$n instanceof Kr,ar=Bn[0],lr=Gn||Br($n),dr=function(Gr){var Yr=un.apply(hn,Wo([Gr],Bn));return Xt&&xr?Yr[0]:Yr};lr&&Pt&&typeof ar=="function"&&ar.length!=1&&(Gn=lr=!1);var xr=this.__chain__,Or=!!this.__actions__.length,Dr=pn&&!xr,Wr=Gn&&!Or;if(!pn&&lr){$n=Wr?$n:new Kr(this);var Mr=ht.apply($n,Bn);return Mr.__actions__.push({func:Rp,args:[dr],thisArg:lt}),new Vo(Mr,xr)}return Dr&&Wr?ht.apply(this,Bn):(Mr=this.thru(dr),Dr?Xt?Mr.value()[0]:Mr.value():Mr)})}),Ro(["pop","push","shift","sort","splice","unshift"],function(ht){var _t=Cl[ht],Pt=/^(?:push|sort|unshift)$/.test(ht)?"tap":"thru",Xt=/^(?:pop|shift)$/.test(ht);hn.prototype[ht]=function(){var un=arguments;if(Xt&&!this.__chain__){var pn=this.value();return _t.apply(Br(pn)?pn:[],un)}return this[Pt](function($n){return _t.apply(Br($n)?$n:[],un)})}}),ls(Kr.prototype,function(ht,_t){var Pt=hn[_t];if(Pt){var Xt=Pt.name+"";eo.call(Dl,Xt)||(Dl[Xt]=[]),Dl[Xt].push({name:_t,func:Pt})}}),Dl[Ap(lt,xt).name]=[{name:"wrapper",func:lt}],Kr.prototype.clone=Oy,Kr.prototype.reverse=$y,Kr.prototype.value=Py,hn.prototype.at=ow,hn.prototype.chain=sw,hn.prototype.commit=aw,hn.prototype.next=lw,hn.prototype.plant=cw,hn.prototype.reverse=dw,hn.prototype.toJSON=hn.prototype.valueOf=hn.prototype.value=fw,hn.prototype.first=hn.prototype.head,Ks&&(hn.prototype[Ks]=uw),hn},ss=lp();hs?((hs.exports=ss)._=ss,iu._=ss):co._=ss}).call(commonjsGlobal)})(lodash,lodash.exports);var lodashExports=lodash.exports,charCodeOfDot=".".charCodeAt(0),reEscapeChar=/\\(\\)?/g,rePropName=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g"),stringToPath=function(at){var lt=[];return at.charCodeAt(0)===charCodeOfDot&&lt.push(""),at.replace(rePropName,function(ut,ct,dt,ft){var mt=ut;dt?mt=ft.replace(reEscapeChar,"$1"):ct&&(mt=ct.trim()),lt.push(mt)}),lt},keysCache={},keysRegex=/[.[\]]+/,toPath=function(at){if(at==null||!at.length)return[];if(typeof at!="string")throw new Error("toPath() expects a string");return keysCache[at]==null&&(at.endsWith("[]")?keysCache[at]=at.split(keysRegex).filter(Boolean):keysCache[at]=stringToPath(at)),keysCache[at]},getIn=function(at,lt){for(var ut=toPath(lt),ct=at,dt=0;dt<ut.length;dt++){var ft=ut[dt];if(ct==null||typeof ct!="object"||Array.isArray(ct)&&isNaN(ft))return;ct=ct[ft]}return ct};function _toPropertyKey$2(it){var at=_toPrimitive$2(it,"string");return typeof at=="symbol"?at:String(at)}function _toPrimitive$2(it,at){if(typeof it!="object"||it===null)return it;var lt=it[Symbol.toPrimitive];if(lt!==void 0){var ut=lt.call(it,at||"default");if(typeof ut!="object")return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(at==="string"?String:Number)(it)}var setInRecursor=function it(at,lt,ut,ct,dt){if(lt>=ut.length)return ct;var ft=ut[lt];if(isNaN(ft)){var mt;if(at==null){var pt,gt=it(void 0,lt+1,ut,ct,dt);return gt===void 0?void 0:(pt={},pt[ft]=gt,pt)}if(Array.isArray(at))throw new Error("Cannot set a non-numeric property on an array");var vt=it(at[ft],lt+1,ut,ct,dt);if(vt===void 0){var wt=Object.keys(at).length;if(at[ft]===void 0&&wt===0)return;if(at[ft]!==void 0&&wt<=1)return!isNaN(ut[lt-1])&&!dt?{}:void 0;at[ft];var yt=_objectWithoutPropertiesLoose$3(at,[ft].map(_toPropertyKey$2));return yt}return _extends$3({},at,(mt={},mt[ft]=vt,mt))}var bt=Number(ft);if(at==null){var Ct=it(void 0,lt+1,ut,ct,dt);if(Ct===void 0)return;var Et=[];return Et[bt]=Ct,Et}if(!Array.isArray(at))throw new Error("Cannot set a numeric property on an object");var kt=at[bt],xt=it(kt,lt+1,ut,ct,dt),St=[].concat(at);if(dt&&xt===void 0){if(St.splice(bt,1),St.length===0)return}else St[bt]=xt;return St},setIn=function(at,lt,ut,ct){if(ct===void 0&&(ct=!1),at==null)throw new Error("Cannot call setIn() with "+String(at)+" state");if(lt==null)throw new Error("Cannot call setIn() with "+String(lt)+" key");return setInRecursor(at,0,toPath(lt),ut,ct)},FORM_ERROR="FINAL_FORM/form-error",ARRAY_ERROR="FINAL_FORM/array-error";function publishFieldState(it,at){var lt=it.errors,ut=it.initialValues,ct=it.lastSubmittedValues,dt=it.submitErrors,ft=it.submitFailed,mt=it.submitSucceeded,pt=it.submitting,gt=it.values,vt=at.active,wt=at.blur,yt=at.change,bt=at.data,Ct=at.focus,Et=at.modified,kt=at.modifiedSinceLastSubmit,xt=at.name,St=at.touched,Ot=at.validating,At=at.visited,Tt=getIn(gt,xt),$t=getIn(lt,xt);$t&&$t[ARRAY_ERROR]&&($t=$t[ARRAY_ERROR]);var Lt=dt&&getIn(dt,xt),Rt=ut&&getIn(ut,xt),It=at.isEqual(Rt,Tt),Ft=!!(ct&&!at.isEqual(getIn(ct,xt),Tt)),Mt=!$t&&!Lt;return{active:vt,blur:wt,change:yt,data:bt,dirty:!It,dirtySinceLastSubmit:Ft,error:$t,focus:Ct,initial:Rt,invalid:!Mt,length:Array.isArray(Tt)?Tt.length:void 0,modified:Et,modifiedSinceLastSubmit:kt,name:xt,pristine:It,submitError:Lt,submitFailed:ft,submitSucceeded:mt,submitting:pt,touched:St,valid:Mt,value:Tt,visited:At,validating:Ot}}var fieldSubscriptionItems=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"],shallowEqual$1=function(at,lt){if(at===lt)return!0;if(typeof at!="object"||!at||typeof lt!="object"||!lt)return!1;var ut=Object.keys(at),ct=Object.keys(lt);if(ut.length!==ct.length)return!1;for(var dt=Object.prototype.hasOwnProperty.bind(lt),ft=0;ft<ut.length;ft++){var mt=ut[ft];if(!dt(mt)||at[mt]!==lt[mt])return!1}return!0};function subscriptionFilter(it,at,lt,ut,ct,dt){var ft=!1;return ct.forEach(function(mt){ut[mt]&&(it[mt]=at[mt],(!lt||(~dt.indexOf(mt)?!shallowEqual$1(at[mt],lt[mt]):at[mt]!==lt[mt]))&&(ft=!0))}),ft}var shallowEqualKeys$1=["data"],filterFieldState=function(at,lt,ut,ct){var dt={blur:at.blur,change:at.change,focus:at.focus,name:at.name},ft=subscriptionFilter(dt,at,lt,ut,fieldSubscriptionItems,shallowEqualKeys$1)||!lt;return ft||ct?dt:void 0},formSubscriptionItems=["active","dirty","dirtyFields","dirtyFieldsSinceLastSubmit","dirtySinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitting","submitError","submitErrors","submitFailed","submitSucceeded","touched","valid","validating","values","visited"],shallowEqualKeys=["touched","visited"];function filterFormState(it,at,lt,ut){var ct={},dt=subscriptionFilter(ct,it,at,lt,formSubscriptionItems,shallowEqualKeys)||!at;return dt||ut?ct:void 0}var memoize=function(at){var lt,ut;return function(){for(var ct=arguments.length,dt=new Array(ct),ft=0;ft<ct;ft++)dt[ft]=arguments[ft];return(!lt||dt.length!==lt.length||dt.some(function(mt,pt){return!shallowEqual$1(lt[pt],mt)}))&&(lt=dt,ut=at.apply(void 0,dt)),ut}},isPromise$1=function(it){return!!it&&(typeof it=="object"||typeof it=="function")&&typeof it.then=="function"},version$1="4.20.10",tripleEquals=function(at,lt){return at===lt},hasAnyError=function it(at){return Object.keys(at).some(function(lt){var ut=at[lt];return ut&&typeof ut=="object"&&!(ut instanceof Error)?it(ut):typeof ut<"u"})};function convertToExternalFormState(it){var at=it.active,lt=it.dirtySinceLastSubmit,ut=it.modifiedSinceLastSubmit,ct=it.error,dt=it.errors,ft=it.initialValues,mt=it.pristine,pt=it.submitting,gt=it.submitFailed,vt=it.submitSucceeded,wt=it.submitError,yt=it.submitErrors,bt=it.valid,Ct=it.validating,Et=it.values;return{active:at,dirty:!mt,dirtySinceLastSubmit:lt,modifiedSinceLastSubmit:ut,error:ct,errors:dt,hasSubmitErrors:!!(wt||yt&&hasAnyError(yt)),hasValidationErrors:!!(ct||hasAnyError(dt)),invalid:!bt,initialValues:ft,pristine:mt,submitting:pt,submitFailed:gt,submitSucceeded:vt,submitError:wt,submitErrors:yt,valid:bt,validating:Ct>0,values:Et}}function notifySubscriber(it,at,lt,ut,ct,dt){var ft=ct(lt,ut,at,dt);return ft?(it(ft),!0):!1}function notify(it,at,lt,ut,ct){var dt=it.entries;Object.keys(dt).forEach(function(ft){var mt=dt[Number(ft)];if(mt){var pt=mt.subscription,gt=mt.subscriber,vt=mt.notified;notifySubscriber(gt,pt,at,lt,ut,ct||!vt)&&(mt.notified=!0)}})}function createForm(it){if(!it)throw new Error("No config specified");var at=it.debug,lt=it.destroyOnUnregister,ut=it.keepDirtyOnReinitialize,ct=it.initialValues,dt=it.mutators,ft=it.onSubmit,mt=it.validate,pt=it.validateOnBlur;if(!ft)throw new Error("No onSubmit function specified");var gt={subscribers:{index:0,entries:{}},fieldSubscribers:{},fields:{},formState:{asyncErrors:{},dirtySinceLastSubmit:!1,modifiedSinceLastSubmit:!1,errors:{},initialValues:ct&&_extends$3({},ct),invalid:!1,pristine:!0,submitting:!1,submitFailed:!1,submitSucceeded:!1,resetWhileSubmitting:!1,valid:!0,validating:0,values:ct?_extends$3({},ct):{}},lastFormState:void 0},vt=0,wt=!1,yt=!1,bt=!1,Ct=0,Et={},kt=function(Zt){return function(Wt){return delete Et[Zt],Wt}},xt=function(Zt,Wt,jt){var Bt=getIn(Zt.formState.values,Wt),Dt=jt(Bt);Zt.formState.values=setIn(Zt.formState.values,Wt,Dt)||{}},St=function(Zt,Wt,jt){if(Zt.fields[Wt]){var Bt,Dt;Zt.fields=_extends$3({},Zt.fields,(Bt={},Bt[jt]=_extends$3({},Zt.fields[Wt],{name:jt,blur:function(){return rn.blur(jt)},change:function(en){return rn.change(jt,en)},focus:function(){return rn.focus(jt)},lastFieldState:void 0}),Bt)),delete Zt.fields[Wt],Zt.fieldSubscribers=_extends$3({},Zt.fieldSubscribers,(Dt={},Dt[jt]=Zt.fieldSubscribers[Wt],Dt)),delete Zt.fieldSubscribers[Wt];var zt=getIn(Zt.formState.values,Wt);Zt.formState.values=setIn(Zt.formState.values,Wt,void 0)||{},Zt.formState.values=setIn(Zt.formState.values,jt,zt),delete Zt.lastFormState}},Ot=function(Zt){return function(){if(dt){for(var Wt={formState:gt.formState,fields:gt.fields,fieldSubscribers:gt.fieldSubscribers,lastFormState:gt.lastFormState},jt=arguments.length,Bt=new Array(jt),Dt=0;Dt<jt;Dt++)Bt[Dt]=arguments[Dt];var zt=dt[Zt](Bt,Wt,{changeValue:xt,getIn,renameField:St,resetFieldState:rn.resetFieldState,setIn,shallowEqual:shallowEqual$1});return gt.formState=Wt.formState,gt.fields=Wt.fields,gt.fieldSubscribers=Wt.fieldSubscribers,gt.lastFormState=Wt.lastFormState,Rt(void 0,function(){It(),tn()}),zt}}},At=dt?Object.keys(dt).reduce(function(Jt,Zt){return Jt[Zt]=Ot(Zt),Jt},{}):{},Tt=function(Zt){var Wt=[];if(mt){var jt=mt(_extends$3({},gt.formState.values));isPromise$1(jt)?Wt.push(jt.then(function(Bt){return Zt(Bt,!0)})):Zt(jt,!1)}return Wt},$t=function(Zt){return Object.keys(Zt.validators).reduce(function(Wt,jt){var Bt=Zt.validators[Number(jt)]();return Bt&&Wt.push(Bt),Wt},[])},Lt=function(Zt,Wt){var jt=[],Bt=$t(Zt);if(Bt.length){var Dt;Bt.forEach(function(zt){var Kt=zt(getIn(gt.formState.values,Zt.name),gt.formState.values,zt.length===0||zt.length===3?publishFieldState(gt.formState,gt.fields[Zt.name]):void 0);if(Kt&&isPromise$1(Kt)){Zt.validating=!0;var en=Kt.then(function(sn){gt.fields[Zt.name]&&(gt.fields[Zt.name].validating=!1,Wt(sn))});jt.push(en)}else Dt||(Dt=Kt)}),Wt(Dt)}return jt},Rt=function(Zt,Wt){if(wt){yt=!0,Wt();return}var jt=gt.fields,Bt=gt.formState,Dt=_extends$3({},jt),zt=Object.keys(Dt);if(!mt&&!zt.some(function(Dn){return $t(Dt[Dn]).length})){Wt();return}var Kt=!1;if(Zt){var en=Dt[Zt];if(en){var sn=en.validateFields;sn&&(Kt=!0,zt=sn.length?sn.concat(Zt):[Zt])}}var cn={},bn={},Tn={},kn=[].concat(Tt(function(Dn,Un){Un?bn=Dn||{}:cn=Dn||{}}),zt.reduce(function(Dn,Un){return Dn.concat(Lt(jt[Un],function(Sn){Tn[Un]=Sn}))},[])),In=kn.length>0,Hn=++Ct,Fn=Promise.all(kn).then(kt(Hn));In&&(Et[Hn]=Fn);var wn=function(Un){var Sn=_extends$3({},Kt?Bt.errors:{},cn,Un?bn:Bt.asyncErrors),On=function(Pn){zt.forEach(function(Xn){if(jt[Xn]){var Qn=getIn(cn,Xn),sr=getIn(Sn,Xn),pr=$t(Dt[Xn]).length,or=Tn[Xn];Pn(Xn,pr&&or||mt&&Qn||(!Qn&&!Kt?sr:void 0))}})};On(function(Cn,Pn){Sn=setIn(Sn,Cn,Pn)||{}}),On(function(Cn,Pn){if(Pn&&Pn[ARRAY_ERROR]){var Xn=getIn(Sn,Cn),Qn=[].concat(Xn);Qn[ARRAY_ERROR]=Pn[ARRAY_ERROR],Sn=setIn(Sn,Cn,Qn)}}),shallowEqual$1(Bt.errors,Sn)||(Bt.errors=Sn),Un&&(Bt.asyncErrors=bn),Bt.error=cn[FORM_ERROR]};if(In&&(gt.formState.validating++,Wt()),wn(!1),Wt(),In){var Mn=function(){gt.formState.validating--,Wt(),gt.formState.validating===0&&gt.lastFormState.validating&&tn()};Fn.then(function(){Ct>Hn||wn(!0)}).then(Mn,Mn)}},It=function(Zt){if(!vt){var Wt=gt.fields,jt=gt.fieldSubscribers,Bt=gt.formState,Dt=_extends$3({},Wt),zt=function(en){var sn=Dt[en],cn=publishFieldState(Bt,sn),bn=sn.lastFieldState;sn.lastFieldState=cn;var Tn=jt[en];Tn&&notify(Tn,cn,bn,filterFieldState,bn===void 0)};Zt?zt(Zt):Object.keys(Dt).forEach(zt)}},Ft=function(){Object.keys(gt.fields).forEach(function(Zt){gt.fields[Zt].touched=!0})},Mt=function(){return!!(gt.formState.error||hasAnyError(gt.formState.errors))},Ht=function(){var Zt=gt.fields,Wt=gt.formState,jt=gt.lastFormState,Bt=_extends$3({},Zt),Dt=Object.keys(Bt),zt=!1,Kt=Dt.reduce(function(In,Hn){var Fn=!Bt[Hn].isEqual(getIn(Wt.values,Hn),getIn(Wt.initialValues||{},Hn));return Fn&&(zt=!0,In[Hn]=!0),In},{}),en=Dt.reduce(function(In,Hn){var Fn=Wt.lastSubmittedValues||{};return Bt[Hn].isEqual(getIn(Wt.values,Hn),getIn(Fn,Hn))||(In[Hn]=!0),In},{});Wt.pristine=!zt,Wt.dirtySinceLastSubmit=!!(Wt.lastSubmittedValues&&Object.values(en).some(function(In){return In})),Wt.modifiedSinceLastSubmit=!!(Wt.lastSubmittedValues&&Object.keys(Bt).some(function(In){return Bt[In].modifiedSinceLastSubmit})),Wt.valid=!Wt.error&&!Wt.submitError&&!hasAnyError(Wt.errors)&&!(Wt.submitErrors&&hasAnyError(Wt.submitErrors));var sn=convertToExternalFormState(Wt),cn=Dt.reduce(function(In,Hn){return In.modified[Hn]=Bt[Hn].modified,In.touched[Hn]=Bt[Hn].touched,In.visited[Hn]=Bt[Hn].visited,In},{modified:{},touched:{},visited:{}}),bn=cn.modified,Tn=cn.touched,kn=cn.visited;return sn.dirtyFields=jt&&shallowEqual$1(jt.dirtyFields,Kt)?jt.dirtyFields:Kt,sn.dirtyFieldsSinceLastSubmit=jt&&shallowEqual$1(jt.dirtyFieldsSinceLastSubmit,en)?jt.dirtyFieldsSinceLastSubmit:en,sn.modified=jt&&shallowEqual$1(jt.modified,bn)?jt.modified:bn,sn.touched=jt&&shallowEqual$1(jt.touched,Tn)?jt.touched:Tn,sn.visited=jt&&shallowEqual$1(jt.visited,kn)?jt.visited:kn,jt&&shallowEqual$1(jt,sn)?jt:sn},Vt=function(){return at&&!0&&at(Ht(),Object.keys(gt.fields).reduce(function(Zt,Wt){return Zt[Wt]=gt.fields[Wt],Zt},{}))},Nt=!1,Gt=!1,tn=function Jt(){if(Nt)Gt=!0;else{if(Nt=!0,Vt(),!vt&&!(wt&&bt)){var Zt=gt.lastFormState,Wt=Ht();Wt!==Zt&&(gt.lastFormState=Wt,notify(gt.subscribers,Wt,Zt,filterFormState))}Nt=!1,Gt&&(Gt=!1,Jt())}},ln=function(){return Object.keys(gt.fields).some(function(Zt){return gt.fields[Zt].beforeSubmit&&gt.fields[Zt].beforeSubmit()===!1})},nn=function(){return Object.keys(gt.fields).forEach(function(Zt){return gt.fields[Zt].afterSubmit&&gt.fields[Zt].afterSubmit()})},on=function(){return Object.keys(gt.fields).forEach(function(Zt){return gt.fields[Zt].modifiedSinceLastSubmit=!1})};Rt(void 0,function(){tn()});var rn={batch:function(Zt){vt++,Zt(),vt--,It(),tn()},blur:function(Zt){var Wt=gt.fields,jt=gt.formState,Bt=Wt[Zt];Bt&&(delete jt.active,Wt[Zt]=_extends$3({},Bt,{active:!1,touched:!0}),pt?Rt(Zt,function(){It(),tn()}):(It(),tn()))},change:function(Zt,Wt){var jt=gt.fields,Bt=gt.formState;if(getIn(Bt.values,Zt)!==Wt){xt(gt,Zt,function(){return Wt});var Dt=jt[Zt];Dt&&(jt[Zt]=_extends$3({},Dt,{modified:!0,modifiedSinceLastSubmit:!!Bt.lastSubmittedValues})),pt?(It(),tn()):Rt(Zt,function(){It(),tn()})}},get destroyOnUnregister(){return!!lt},set destroyOnUnregister(Jt){lt=Jt},focus:function(Zt){var Wt=gt.fields[Zt];Wt&&!Wt.active&&(gt.formState.active=Zt,Wt.active=!0,Wt.visited=!0,It(),tn())},mutators:At,getFieldState:function(Zt){var Wt=gt.fields[Zt];return Wt&&Wt.lastFieldState},getRegisteredFields:function(){return Object.keys(gt.fields)},getState:function(){return Ht()},initialize:function(Zt){var Wt=gt.fields,jt=gt.formState,Bt=_extends$3({},Wt),Dt=typeof Zt=="function"?Zt(jt.values):Zt;ut||(jt.values=Dt);var zt=ut?Object.keys(Bt).reduce(function(Kt,en){var sn=Bt[en],cn=sn.isEqual(getIn(jt.values,en),getIn(jt.initialValues||{},en));return cn||(Kt[en]=getIn(jt.values,en)),Kt},{}):{};jt.initialValues=Dt,jt.values=Dt,Object.keys(zt).forEach(function(Kt){jt.values=setIn(jt.values,Kt,zt[Kt])||{}}),Rt(void 0,function(){It(),tn()})},isValidationPaused:function(){return wt},pauseValidation:function(Zt){Zt===void 0&&(Zt=!0),wt=!0,bt=Zt},registerField:function(Zt,Wt,jt,Bt){jt===void 0&&(jt={}),gt.fieldSubscribers[Zt]||(gt.fieldSubscribers[Zt]={index:0,entries:{}});var Dt=gt.fieldSubscribers[Zt].index++;gt.fieldSubscribers[Zt].entries[Dt]={subscriber:memoize(Wt),subscription:jt,notified:!1};var zt=gt.fields[Zt]||{active:!1,afterSubmit:Bt&&Bt.afterSubmit,beforeSubmit:Bt&&Bt.beforeSubmit,data:Bt&&Bt.data||{},isEqual:Bt&&Bt.isEqual||tripleEquals,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,name:Zt,touched:!1,valid:!0,validateFields:Bt&&Bt.validateFields,validators:{},validating:!1,visited:!1};zt.blur=zt.blur||function(){return rn.blur(Zt)},zt.change=zt.change||function(bn){return rn.change(Zt,bn)},zt.focus=zt.focus||function(){return rn.focus(Zt)},gt.fields[Zt]=zt;var Kt=!1,en=Bt&&Bt.silent,sn=function(){en&&gt.fields[Zt]?It(Zt):(tn(),It())};if(Bt){Kt=!!(Bt.getValidator&&Bt.getValidator()),Bt.getValidator&&(gt.fields[Zt].validators[Dt]=Bt.getValidator);var cn=getIn(gt.formState.values,Zt)===void 0;Bt.initialValue!==void 0&&(cn||getIn(gt.formState.values,Zt)===getIn(gt.formState.initialValues,Zt))&&(gt.formState.initialValues=setIn(gt.formState.initialValues||{},Zt,Bt.initialValue),gt.formState.values=setIn(gt.formState.values,Zt,Bt.initialValue),Rt(void 0,sn)),Bt.defaultValue!==void 0&&Bt.initialValue===void 0&&getIn(gt.formState.initialValues,Zt)===void 0&&cn&&(gt.formState.values=setIn(gt.formState.values,Zt,Bt.defaultValue))}return Kt?Rt(void 0,sn):sn(),function(){var bn=!1;gt.fields[Zt]&&(bn=!!(gt.fields[Zt].validators[Dt]&&gt.fields[Zt].validators[Dt]()),delete gt.fields[Zt].validators[Dt]);var Tn=!!gt.fieldSubscribers[Zt];Tn&&delete gt.fieldSubscribers[Zt].entries[Dt];var kn=Tn&&!Object.keys(gt.fieldSubscribers[Zt].entries).length;kn&&(delete gt.fieldSubscribers[Zt],delete gt.fields[Zt],bn&&(gt.formState.errors=setIn(gt.formState.errors,Zt,void 0)||{}),lt&&(gt.formState.values=setIn(gt.formState.values,Zt,void 0,!0)||{})),en||(bn?Rt(void 0,function(){tn(),It()}):kn&&tn())}},reset:function(Zt){Zt===void 0&&(Zt=gt.formState.initialValues),gt.formState.submitting&&(gt.formState.resetWhileSubmitting=!0),gt.formState.submitFailed=!1,gt.formState.submitSucceeded=!1,delete gt.formState.submitError,delete gt.formState.submitErrors,delete gt.formState.lastSubmittedValues,rn.initialize(Zt||{})},resetFieldState:function(Zt){gt.fields[Zt]=_extends$3({},gt.fields[Zt],{active:!1,lastFieldState:void 0,modified:!1,touched:!1,valid:!0,validating:!1,visited:!1}),Rt(void 0,function(){It(),tn()})},restart:function(Zt){Zt===void 0&&(Zt=gt.formState.initialValues),rn.batch(function(){for(var Wt in gt.fields)rn.resetFieldState(Wt),gt.fields[Wt]=_extends$3({},gt.fields[Wt],{active:!1,lastFieldState:void 0,modified:!1,modifiedSinceLastSubmit:!1,touched:!1,valid:!0,validating:!1,visited:!1});rn.reset(Zt)})},resumeValidation:function(){wt=!1,bt=!1,yt&&Rt(void 0,function(){It(),tn()}),yt=!1},setConfig:function(Zt,Wt){switch(Zt){case"debug":at=Wt;break;case"destroyOnUnregister":lt=Wt;break;case"initialValues":rn.initialize(Wt);break;case"keepDirtyOnReinitialize":ut=Wt;break;case"mutators":dt=Wt,Wt?(Object.keys(At).forEach(function(jt){jt in Wt||delete At[jt]}),Object.keys(Wt).forEach(function(jt){At[jt]=Ot(jt)})):Object.keys(At).forEach(function(jt){delete At[jt]});break;case"onSubmit":ft=Wt;break;case"validate":mt=Wt,Rt(void 0,function(){It(),tn()});break;case"validateOnBlur":pt=Wt;break;default:throw new Error("Unrecognised option "+Zt)}},submit:function(){var Zt=gt.formState;if(!Zt.submitting){if(delete Zt.submitErrors,delete Zt.submitError,Zt.lastSubmittedValues=_extends$3({},Zt.values),Mt()){Ft(),on(),gt.formState.submitFailed=!0,tn(),It();return}var Wt=Object.keys(Et);if(Wt.length){Promise.all(Wt.map(function(en){return Et[Number(en)]})).then(rn.submit,console.error);return}var jt=ln();if(!jt){var Bt,Dt=!1,zt=function(sn){Zt.submitting=!1;var cn=Zt.resetWhileSubmitting;return cn&&(Zt.resetWhileSubmitting=!1),sn&&hasAnyError(sn)?(Zt.submitFailed=!0,Zt.submitSucceeded=!1,Zt.submitErrors=sn,Zt.submitError=sn[FORM_ERROR],Ft()):(cn||(Zt.submitFailed=!1,Zt.submitSucceeded=!0),nn()),tn(),It(),Dt=!0,Bt&&Bt(sn),sn};Zt.submitting=!0,Zt.submitFailed=!1,Zt.submitSucceeded=!1,Zt.lastSubmittedValues=_extends$3({},Zt.values),on();var Kt=ft(Zt.values,rn,zt);if(!Dt){if(Kt&&isPromise$1(Kt))return tn(),It(),Kt.then(zt,function(en){throw zt(),en});if(ft.length>=3)return tn(),It(),new Promise(function(en){Bt=en});zt(Kt)}}}},subscribe:function(Zt,Wt){if(!Zt)throw new Error("No callback given.");if(!Wt)throw new Error("No subscription provided. What values do you want to listen to?");var jt=memoize(Zt),Bt=gt.subscribers,Dt=Bt.index++;Bt.entries[Dt]={subscriber:jt,subscription:Wt,notified:!1};var zt=Ht();return notifySubscriber(jt,Wt,zt,zt,filterFormState,!0),function(){delete Bt.entries[Dt]}}};return rn}var _excluded$3=["render","children","component"];function renderComponent(it,at,lt){var ut=it.render,ct=it.children,dt=it.component,ft=_objectWithoutPropertiesLoose$3(it,_excluded$3);if(dt)return reactExports.createElement(dt,Object.assign(at,ft,{children:ct,render:ut}));if(ut)return ut(ct===void 0?Object.assign(at,ft):Object.assign(at,ft,{children:ct}));if(typeof ct!="function")throw new Error("Must specify either a render prop, a render function as children, or a component prop to "+lt);return ct(Object.assign(at,ft))}function useWhenValueChanges(it,at,lt){lt===void 0&&(lt=function(dt,ft){return dt===ft});var ut=b$2.useRef(it);b$2.useEffect(function(){lt(it,ut.current)||(at(),ut.current=it)})}function useConstant(it){var at=b$2.useRef();return at.current||(at.current=it()),at.current}var shallowEqual=function(at,lt){if(at===lt)return!0;if(typeof at!="object"||!at||typeof lt!="object"||!lt)return!1;var ut=Object.keys(at),ct=Object.keys(lt);if(ut.length!==ct.length)return!1;for(var dt=Object.prototype.hasOwnProperty.bind(lt),ft=0;ft<ut.length;ft++){var mt=ut[ft];if(!dt(mt)||at[mt]!==lt[mt])return!1}return!0},isSyntheticEvent=function(at){return!!(at&&typeof at.stopPropagation=="function")},ReactFinalFormContext=reactExports.createContext();function useLatest(it){var at=b$2.useRef(it);return b$2.useEffect(function(){at.current=it}),at}var version="6.5.8",addLazyState=function(at,lt,ut){ut.forEach(function(ct){Object.defineProperty(at,ct,{get:function(){return lt[ct]},enumerable:!0})})},addLazyFormState=function(at,lt){return addLazyState(at,lt,["active","dirty","dirtyFields","dirtySinceLastSubmit","dirtyFieldsSinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitError","submitErrors","submitFailed","submitSucceeded","submitting","touched","valid","validating","values","visited"])},addLazyFieldMetaState=function(at,lt){return addLazyState(at,lt,["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","validating","visited"])},_excluded$2=["debug","decorators","destroyOnUnregister","form","initialValues","initialValuesEqual","keepDirtyOnReinitialize","mutators","onSubmit","subscription","validate","validateOnBlur"],versions={"final-form":version$1,"react-final-form":version},all$1=formSubscriptionItems.reduce(function(it,at){return it[at]=!0,it},{});function ReactFinalForm(it){var at=it.debug,lt=it.decorators,ut=lt===void 0?[]:lt,ct=it.destroyOnUnregister,dt=it.form,ft=it.initialValues,mt=it.initialValuesEqual,pt=it.keepDirtyOnReinitialize,gt=it.mutators,vt=it.onSubmit,wt=it.subscription,yt=wt===void 0?all$1:wt,bt=it.validate,Ct=it.validateOnBlur,Et=_objectWithoutPropertiesLoose$3(it,_excluded$2),kt={debug:at,destroyOnUnregister:ct,initialValues:ft,keepDirtyOnReinitialize:pt,mutators:gt,onSubmit:vt,validate:bt,validateOnBlur:Ct},xt=useConstant(function(){var Rt=dt||createForm(kt);return Rt.pauseValidation(),Rt}),St=reactExports.useState(function(){var Rt={};return xt.subscribe(function(It){Rt=It},yt)(),Rt}),Ot=St[0],At=St[1],Tt=useLatest(Ot);reactExports.useEffect(function(){xt.isValidationPaused()&&xt.resumeValidation();var Rt=[xt.subscribe(function(It){shallowEqual(It,Tt.current)||At(It)},yt)].concat(ut?ut.map(function(It){return It(xt)}):[]);return function(){xt.pauseValidation(),Rt.reverse().forEach(function(It){return It()})}},ut),useWhenValueChanges(at,function(){xt.setConfig("debug",at)}),useWhenValueChanges(ct,function(){xt.destroyOnUnregister=!!ct}),useWhenValueChanges(pt,function(){xt.setConfig("keepDirtyOnReinitialize",pt)}),useWhenValueChanges(ft,function(){xt.setConfig("initialValues",ft)},mt||shallowEqual),useWhenValueChanges(gt,function(){xt.setConfig("mutators",gt)}),useWhenValueChanges(vt,function(){xt.setConfig("onSubmit",vt)}),useWhenValueChanges(bt,function(){xt.setConfig("validate",bt)}),useWhenValueChanges(Ct,function(){xt.setConfig("validateOnBlur",Ct)});var $t=function(It){return It&&(typeof It.preventDefault=="function"&&It.preventDefault(),typeof It.stopPropagation=="function"&&It.stopPropagation()),xt.submit()},Lt={form:_extends$3({},xt,{reset:function(It){isSyntheticEvent(It)?xt.reset():xt.reset(It)}}),handleSubmit:$t};return addLazyFormState(Lt,Ot),reactExports.createElement(ReactFinalFormContext.Provider,{value:xt},renderComponent(_extends$3({},Et,{__versions:versions}),Lt,"ReactFinalForm"))}function useForm(it){var at=reactExports.useContext(ReactFinalFormContext);if(!at)throw new Error((it||"useForm")+" must be used inside of a <Form> component");return at}var isReactNative=typeof window<"u"&&window.navigator&&window.navigator.product&&window.navigator.product==="ReactNative",getSelectedValues=function(at){var lt=[];if(at)for(var ut=0;ut<at.length;ut++){var ct=at[ut];ct.selected&&lt.push(ct.value)}return lt},getValue$2=function(at,lt,ut,ct){if(!ct&&at.nativeEvent&&at.nativeEvent.text!==void 0||ct&&at.nativeEvent)return at.nativeEvent.text;var dt=at,ft=dt.target,mt=ft.type,pt=ft.value,gt=ft.checked;switch(mt){case"checkbox":if(ut!==void 0){if(gt)return Array.isArray(lt)?lt.concat(ut):[ut];if(!Array.isArray(lt))return lt;var vt=lt.indexOf(ut);return vt<0?lt:lt.slice(0,vt).concat(lt.slice(vt+1))}else return!!gt;case"select-multiple":return getSelectedValues(at.target.options);default:return pt}};function useConstantCallback(it){var at=reactExports.useRef(it);return reactExports.useEffect(function(){at.current=it}),reactExports.useCallback(function(){for(var lt=arguments.length,ut=new Array(lt),ct=0;ct<lt;ct++)ut[ct]=arguments[ct];return at.current.apply(null,ut)},[])}var all=fieldSubscriptionItems.reduce(function(it,at){return it[at]=!0,it},{}),defaultFormat=function(at,lt){return at===void 0?"":at},defaultParse=function(at,lt){return at===""?void 0:at},defaultIsEqual=function(at,lt){return at===lt};function useField(it,at){at===void 0&&(at={});var lt=at,ut=lt.afterSubmit,ct=lt.allowNull,dt=lt.component,ft=lt.data,mt=lt.defaultValue,pt=lt.format,gt=pt===void 0?defaultFormat:pt,vt=lt.formatOnBlur,wt=lt.initialValue,yt=lt.multiple,bt=lt.parse,Ct=bt===void 0?defaultParse:bt,Et=lt.subscription,kt=Et===void 0?all:Et,xt=lt.type,St=lt.validateFields,Ot=lt.value,At=useForm("useField"),Tt=useLatest(at),$t=function(Gt,tn){return At.registerField(it,Gt,kt,{afterSubmit:ut,beforeSubmit:function(){var nn=Tt.current,on=nn.beforeSubmit,rn=nn.formatOnBlur,Jt=nn.format,Zt=Jt===void 0?defaultFormat:Jt;if(rn){var Wt=At.getFieldState(it),jt=Wt.value,Bt=Zt(jt,it);Bt!==jt&&At.change(it,Bt)}return on&&on()},data:ft,defaultValue:mt,getValidator:function(){return Tt.current.validate},initialValue:wt,isEqual:function(nn,on){return(Tt.current.isEqual||defaultIsEqual)(nn,on)},silent:tn,validateFields:St})},Lt=reactExports.useRef(!0),Rt=reactExports.useState(function(){var Nt={},Gt=At.destroyOnUnregister;return At.destroyOnUnregister=!1,$t(function(tn){Nt=tn},!0)(),At.destroyOnUnregister=Gt,Nt}),It=Rt[0],Ft=Rt[1];reactExports.useEffect(function(){return $t(function(Nt){Lt.current?Lt.current=!1:Ft(Nt)},!1)},[it,ft,mt,wt]);var Mt={};addLazyFieldMetaState(Mt,It);var Ht={name:it,get value(){var Nt=It.value;return vt?dt==="input"&&(Nt=defaultFormat(Nt)):Nt=gt(Nt,it),Nt===null&&!ct&&(Nt=""),xt==="checkbox"||xt==="radio"?Ot:dt==="select"&&yt?Nt||[]:Nt},get checked(){var Nt=It.value;if(xt==="checkbox")return Nt=gt(Nt,it),Ot===void 0?!!Nt:!!(Array.isArray(Nt)&&~Nt.indexOf(Ot));if(xt==="radio")return gt(Nt,it)===Ot},onBlur:useConstantCallback(function(Nt){if(It.blur(),vt){var Gt=At.getFieldState(It.name);It.change(gt(Gt.value,It.name))}}),onChange:useConstantCallback(function(Nt){var Gt=Nt&&Nt.target?getValue$2(Nt,It.value,Ot,isReactNative):Nt;It.change(Ct(Gt,it))}),onFocus:useConstantCallback(function(Nt){return It.focus()})};yt&&(Ht.multiple=yt),xt!==void 0&&(Ht.type=xt);var Vt={input:Ht,meta:Mt};return Vt}var _excluded=["afterSubmit","allowNull","beforeSubmit","children","component","data","defaultValue","format","formatOnBlur","initialValue","isEqual","multiple","name","parse","subscription","type","validate","validateFields","value"],Field=reactExports.forwardRef(function(at,lt){var ut=at.afterSubmit,ct=at.allowNull,dt=at.beforeSubmit,ft=at.children,mt=at.component,pt=at.data,gt=at.defaultValue,vt=at.format,wt=at.formatOnBlur,yt=at.initialValue,bt=at.isEqual,Ct=at.multiple,Et=at.name,kt=at.parse,xt=at.subscription,St=at.type,Ot=at.validate,At=at.validateFields,Tt=at.value,$t=_objectWithoutPropertiesLoose$3(at,_excluded),Lt=useField(Et,{afterSubmit:ut,allowNull:ct,beforeSubmit:dt,children:ft,component:mt,data:pt,defaultValue:gt,format:vt,formatOnBlur:wt,initialValue:yt,isEqual:bt,multiple:Ct,parse:kt,subscription:xt,type:St,validate:Ot,validateFields:At,value:Tt});if(typeof ft=="function")return ft(_extends$3({},Lt,$t));if(typeof mt=="string")return reactExports.createElement(mt,_extends$3({},Lt.input,{children:ft,ref:lt},$t));if(!Et)throw new Error("prop name cannot be undefined in <Field> component");return renderComponent(_extends$3({children:ft,component:mt,ref:lt},$t),Lt,"Field("+Et+")")});function _typeof$3(it){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(at){return typeof at}:function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at},_typeof$3(it)}function _toPrimitive$1(it,at){if(_typeof$3(it)!=="object"||it===null)return it;var lt=it[Symbol.toPrimitive];if(lt!==void 0){var ut=lt.call(it,at||"default");if(_typeof$3(ut)!=="object")return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(at==="string"?String:Number)(it)}function _toPropertyKey$1(it){var at=_toPrimitive$1(it,"string");return _typeof$3(at)==="symbol"?at:String(at)}function _classCallCheck$1(it,at){if(!(it instanceof at))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(it,at){for(var lt=0;lt<at.length;lt++){var ut=at[lt];ut.enumerable=ut.enumerable||!1,ut.configurable=!0,"value"in ut&&(ut.writable=!0),Object.defineProperty(it,_toPropertyKey$1(ut.key),ut)}}function _createClass$1(it,at,lt){return at&&_defineProperties$1(it.prototype,at),lt&&_defineProperties$1(it,lt),Object.defineProperty(it,"prototype",{writable:!1}),it}function e(it){this.message=it}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r$2=typeof window<"u"&&window.atob&&window.atob.bind(window)||function(it){var at=String(it).replace(/=+$/,"");if(at.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var lt,ut,ct=0,dt=0,ft="";ut=at.charAt(dt++);~ut&&(lt=ct%4?64*lt+ut:ut,ct++%4)?ft+=String.fromCharCode(255&lt>>(-2*ct&6)):0)ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(ut);return ft};function t(it){var at=it.replace(/-/g,"+").replace(/_/g,"/");switch(at.length%4){case 0:break;case 2:at+="==";break;case 3:at+="=";break;default:throw"Illegal base64url string!"}try{return function(lt){return decodeURIComponent(r$2(lt).replace(/(.)/g,function(ut,ct){var dt=ct.charCodeAt(0).toString(16).toUpperCase();return dt.length<2&&(dt="0"+dt),"%"+dt}))}(at)}catch{return r$2(at)}}function n(it){this.message=it}function o(it,at){if(typeof it!="string")throw new n("Invalid token specified");var lt=(at=at||{}).header===!0?0:1;try{return JSON.parse(t(it.split(".")[lt]))}catch(ut){throw new n("Invalid token specified: "+ut.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";/*!
 * cookie
 * Copyright(c) 2012-2014 Roman Shtylman
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */var parse_1=parse,serialize_1=serialize,__toString=Object.prototype.toString,fieldContentRegExp$1=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function parse(it,at){if(typeof it!="string")throw new TypeError("argument str must be a string");for(var lt={},ut=at||{},ct=ut.decode||decode,dt=0;dt<it.length;){var ft=it.indexOf("=",dt);if(ft===-1)break;var mt=it.indexOf(";",dt);if(mt===-1)mt=it.length;else if(mt<ft){dt=it.lastIndexOf(";",ft-1)+1;continue}var pt=it.slice(dt,ft).trim();if(lt[pt]===void 0){var gt=it.slice(ft+1,mt).trim();gt.charCodeAt(0)===34&&(gt=gt.slice(1,-1)),lt[pt]=tryDecode(gt,ct)}dt=mt+1}return lt}function serialize(it,at,lt){var ut=lt||{},ct=ut.encode||encode;if(typeof ct!="function")throw new TypeError("option encode is invalid");if(!fieldContentRegExp$1.test(it))throw new TypeError("argument name is invalid");var dt=ct(at);if(dt&&!fieldContentRegExp$1.test(dt))throw new TypeError("argument val is invalid");var ft=it+"="+dt;if(ut.maxAge!=null){var mt=ut.maxAge-0;if(isNaN(mt)||!isFinite(mt))throw new TypeError("option maxAge is invalid");ft+="; Max-Age="+Math.floor(mt)}if(ut.domain){if(!fieldContentRegExp$1.test(ut.domain))throw new TypeError("option domain is invalid");ft+="; Domain="+ut.domain}if(ut.path){if(!fieldContentRegExp$1.test(ut.path))throw new TypeError("option path is invalid");ft+="; Path="+ut.path}if(ut.expires){var pt=ut.expires;if(!isDate(pt)||isNaN(pt.valueOf()))throw new TypeError("option expires is invalid");ft+="; Expires="+pt.toUTCString()}if(ut.httpOnly&&(ft+="; HttpOnly"),ut.secure&&(ft+="; Secure"),ut.partitioned&&(ft+="; Partitioned"),ut.priority){var gt=typeof ut.priority=="string"?ut.priority.toLowerCase():ut.priority;switch(gt){case"low":ft+="; Priority=Low";break;case"medium":ft+="; Priority=Medium";break;case"high":ft+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ut.sameSite){var vt=typeof ut.sameSite=="string"?ut.sameSite.toLowerCase():ut.sameSite;switch(vt){case!0:ft+="; SameSite=Strict";break;case"lax":ft+="; SameSite=Lax";break;case"strict":ft+="; SameSite=Strict";break;case"none":ft+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return ft}function decode(it){return it.indexOf("%")!==-1?decodeURIComponent(it):it}function encode(it){return encodeURIComponent(it)}function isDate(it){return __toString.call(it)==="[object Date]"||it instanceof Date}function tryDecode(it,at){try{return at(it)}catch{return it}}function hasDocumentCookie(){const it=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof it=="boolean"?it:typeof document=="object"&&typeof document.cookie=="string"}function parseCookies(it){return typeof it=="string"?parse_1(it):typeof it=="object"&&it!==null?it:{}}function readCookie(it,at={}){const lt=cleanupCookieValue(it);if(!at.doNotParse)try{return JSON.parse(lt)}catch{}return it}function cleanupCookieValue(it){return it&&it[0]==="j"&&it[1]===":"?it.substr(2):it}class Cookies{constructor(at,lt={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const ct=this.cookies;this.cookies=parse_1(document.cookie),this._checkChanges(ct)};const ut=typeof document>"u"?"":document.cookie;this.cookies=parseCookies(at||ut),this.defaultSetOptions=lt,this.HAS_DOCUMENT_COOKIE=hasDocumentCookie()}_emitChange(at){for(let lt=0;lt<this.changeListeners.length;++lt)this.changeListeners[lt](at)}_checkChanges(at){new Set(Object.keys(at).concat(Object.keys(this.cookies))).forEach(ut=>{at[ut]!==this.cookies[ut]&&this._emitChange({name:ut,value:readCookie(this.cookies[ut])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(at,lt={}){return lt.doNotUpdate||this.update(),readCookie(this.cookies[at],lt)}getAll(at={}){at.doNotUpdate||this.update();const lt={};for(let ut in this.cookies)lt[ut]=readCookie(this.cookies[ut],at);return lt}set(at,lt,ut){ut?ut=Object.assign(Object.assign({},this.defaultSetOptions),ut):ut=this.defaultSetOptions;const ct=typeof lt=="string"?lt:JSON.stringify(lt);this.cookies=Object.assign(Object.assign({},this.cookies),{[at]:ct}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=serialize_1(at,ct,ut)),this._emitChange({name:at,value:lt,options:ut})}remove(at,lt){const ut=lt=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),lt),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[at],this.HAS_DOCUMENT_COOKIE&&(document.cookie=serialize_1(at,"",ut)),this._emitChange({name:at,value:void 0,options:lt})}addChangeListener(at){this.changeListeners.push(at),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(at){const lt=this.changeListeners.indexOf(at);lt>=0&&this.changeListeners.splice(lt,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const CookiesContext=reactExports.createContext(new Cookies),{Provider,Consumer}=CookiesContext;class CookiesProvider extends reactExports.Component{constructor(at){super(at),at.cookies?this.cookies=at.cookies:this.cookies=new Cookies(void 0,at.defaultSetOptions)}render(){return reactExports.createElement(Provider,{value:this.cookies},this.props.children)}}typeof SuppressedError=="function"&&SuppressedError;var reactIs$1={exports:{}},reactIs_production_min={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var it=typeof Symbol=="function"&&Symbol.for,at=it?Symbol.for("react.element"):60103,lt=it?Symbol.for("react.portal"):60106,ut=it?Symbol.for("react.fragment"):60107,ct=it?Symbol.for("react.strict_mode"):60108,dt=it?Symbol.for("react.profiler"):60114,ft=it?Symbol.for("react.provider"):60109,mt=it?Symbol.for("react.context"):60110,pt=it?Symbol.for("react.async_mode"):60111,gt=it?Symbol.for("react.concurrent_mode"):60111,vt=it?Symbol.for("react.forward_ref"):60112,wt=it?Symbol.for("react.suspense"):60113,yt=it?Symbol.for("react.suspense_list"):60120,bt=it?Symbol.for("react.memo"):60115,Ct=it?Symbol.for("react.lazy"):60116,Et=it?Symbol.for("react.block"):60121,kt=it?Symbol.for("react.fundamental"):60117,xt=it?Symbol.for("react.responder"):60118,St=it?Symbol.for("react.scope"):60119;function Ot(Tt){if(typeof Tt=="object"&&Tt!==null){var $t=Tt.$$typeof;switch($t){case at:switch(Tt=Tt.type,Tt){case pt:case gt:case ut:case dt:case ct:case wt:return Tt;default:switch(Tt=Tt&&Tt.$$typeof,Tt){case mt:case vt:case Ct:case bt:case ft:return Tt;default:return $t}}case lt:return $t}}}function At(Tt){return Ot(Tt)===gt}return reactIs_production_min.AsyncMode=pt,reactIs_production_min.ConcurrentMode=gt,reactIs_production_min.ContextConsumer=mt,reactIs_production_min.ContextProvider=ft,reactIs_production_min.Element=at,reactIs_production_min.ForwardRef=vt,reactIs_production_min.Fragment=ut,reactIs_production_min.Lazy=Ct,reactIs_production_min.Memo=bt,reactIs_production_min.Portal=lt,reactIs_production_min.Profiler=dt,reactIs_production_min.StrictMode=ct,reactIs_production_min.Suspense=wt,reactIs_production_min.isAsyncMode=function(Tt){return At(Tt)||Ot(Tt)===pt},reactIs_production_min.isConcurrentMode=At,reactIs_production_min.isContextConsumer=function(Tt){return Ot(Tt)===mt},reactIs_production_min.isContextProvider=function(Tt){return Ot(Tt)===ft},reactIs_production_min.isElement=function(Tt){return typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===at},reactIs_production_min.isForwardRef=function(Tt){return Ot(Tt)===vt},reactIs_production_min.isFragment=function(Tt){return Ot(Tt)===ut},reactIs_production_min.isLazy=function(Tt){return Ot(Tt)===Ct},reactIs_production_min.isMemo=function(Tt){return Ot(Tt)===bt},reactIs_production_min.isPortal=function(Tt){return Ot(Tt)===lt},reactIs_production_min.isProfiler=function(Tt){return Ot(Tt)===dt},reactIs_production_min.isStrictMode=function(Tt){return Ot(Tt)===ct},reactIs_production_min.isSuspense=function(Tt){return Ot(Tt)===wt},reactIs_production_min.isValidElementType=function(Tt){return typeof Tt=="string"||typeof Tt=="function"||Tt===ut||Tt===gt||Tt===dt||Tt===ct||Tt===wt||Tt===yt||typeof Tt=="object"&&Tt!==null&&(Tt.$$typeof===Ct||Tt.$$typeof===bt||Tt.$$typeof===ft||Tt.$$typeof===mt||Tt.$$typeof===vt||Tt.$$typeof===kt||Tt.$$typeof===xt||Tt.$$typeof===St||Tt.$$typeof===Et)},reactIs_production_min.typeOf=Ot,reactIs_production_min}reactIs$1.exports=requireReactIs_production_min();var reactIsExports=reactIs$1.exports,reactIs=reactIsExports,FORWARD_REF_STATICS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MEMO_STATICS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function isInBrowser(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function useCookies(it){const at=reactExports.useContext(CookiesContext);if(!at)throw new Error("Missing <CookiesProvider>");const[lt,ut]=reactExports.useState(()=>at.getAll());isInBrowser()&&reactExports.useLayoutEffect(()=>{function mt(){const pt=at.getAll({doNotUpdate:!0});shouldUpdate(it||null,pt,lt)&&ut(pt)}return at.addChangeListener(mt),()=>{at.removeChangeListener(mt)}},[at,lt]);const ct=reactExports.useMemo(()=>at.set.bind(at),[at]),dt=reactExports.useMemo(()=>at.remove.bind(at),[at]),ft=reactExports.useMemo(()=>at.update.bind(at),[at]);return[lt,ct,dt,ft]}function shouldUpdate(it,at,lt){if(!it)return!0;for(let ut of it)if(at[ut]!==lt[ut])return!0;return!1}const getLocalstorageItem=it=>{try{return window&&window.localStorage&&window.localStorage.getItem(it)}catch{return null}},setLocalstorageItem=(it,at)=>{try{return window&&window.localStorage&&window.localStorage.setItem(it,at)}catch{return null}},removeLocalstorageItem=it=>{try{return window&&window.localStorage&&window.localStorage.removeItem(it)}catch{return null}},AuthContext=b$2.createContext(null),AuthContextProvider=({children:it})=>{const[at,lt,ut]=useCookies(["auth_token"]),{fetchData:ct}=useFetch("GET",["business"],!1),[dt,ft]=reactExports.useState(at.auth_token??getLocalstorageItem("token")),[mt,pt]=reactExports.useState(JSON.parse(getLocalstorageItem("business"))),[gt,vt]=reactExports.useState(mt?[mt]:[]);reactExports.useEffect(()=>{dt&&ct({},{},dt).then(At=>At.json()).then(At=>{const Tt=At==null?void 0:At.filter($t=>$t&&$t.isEnabled);if(Tt&&Tt.length>0){vt(Tt),!mt&&kt(Tt[0]);const $t=Tt.find(Lt=>Lt.id===(mt==null?void 0:mt.id));$t&&kt($t)}})},[]);const wt=()=>dt&&o(dt).Id,yt=()=>dt?o(dt).Role:null,bt=()=>!!dt&&!!mt&&new Date(o(dt).exp*1e3)>new Date,Ct=(At,Tt)=>{ft(At),pt(Tt),lt("auth_token",At,{secure:!0,sameSite:"strict",expires:new Date(o(At).exp*1e3)})},Et=()=>{ft(null),pt(null),ut("auth_token"),removeLocalstorageItem("token"),removeLocalstorageItem("business")},kt=At=>{pt(At),setLocalstorageItem("business",JSON.stringify(At))},xt=At=>{const Tt=mt==null?void 0:mt.users.find($t=>$t.userId===wt());return!!(Tt&&Tt[At])},St=At=>!!(mt&&mt.enabledModules.includes(At)),Ot={token:dt,id:wt(),role:yt(),isLoggedIn:bt(),login:Ct,logout:Et,business:mt,setBusiness:kt,businessList:gt,setBusinessList:vt,hasPermission:xt,hasModule:St};return jsxRuntimeExports.jsx(AuthContext.Provider,{value:Ot,children:it})},useFetch=(it,at,lt=!0)=>{const ut=reactExports.useContext(AuthContext),[ct,dt]=reactExports.useState(!1);return{fetchData:async(mt,pt,gt=null,vt=!0)=>{var bt;dt(!0);const wt=mt||pt,yt=`${Config.apiBaseUrl}/${at.join("/")}?${new URLSearchParams(lt?{businessId:(bt=ut==null?void 0:ut.business)==null?void 0:bt.id,...wt}:wt).toString()}`;try{const Ct=await fetch(yt,{method:it||"GET",headers:{accept:"application/json",...vt&&{"Content-Type":"application/json"},...lt&&{Authorization:`Bearer ${ut==null?void 0:ut.token}`},...gt?{Authorization:`Bearer ${gt}`}:{}},...it!=="GET"&&it!=="DELETE"&&pt&&{body:vt?JSON.stringify(pt):pt}});return dt(!1),Ct}catch(Ct){return dt(!1),new Promise(()=>({status:500,statusText:Ct.message}))}},loading:ct}};class Validators{}Hr(Validators,"compose",(...at)=>lt=>at.reduce((ut,ct)=>ut||ct(lt),void 0)),Hr(Validators,"required",()=>at=>at&&at.length>0?void 0:["required",null]),Hr(Validators,"maxLength",at=>lt=>!lt||lt&&lt.length<=at?void 0:["maxLength",at]),Hr(Validators,"minLength",at=>lt=>lt&&lt.length>=at?void 0:["minLength",at]),Hr(Validators,"maxValue",at=>lt=>lt!==void 0&&lt<=at?void 0:["maxValue",at]),Hr(Validators,"minValue",at=>lt=>lt!==void 0&&lt>=at?void 0:["minValue",at]),Hr(Validators,"number",()=>at=>!at||at&&/^[0-9]*$/.test(at)?void 0:["number",null]),Hr(Validators,"email",()=>at=>!at||at&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(at)?void 0:["email",null]),Hr(Validators,"telephone",()=>at=>!at||at&&/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s./0-9]*$/.test(at)?void 0:["telephone",null]),Hr(Validators,"emailNoPublicDomain",()=>at=>at&&!at.toLowerCase().includes("gmail")&&!at.toLowerCase().includes("hotmail")&&!at.toLowerCase().includes("yahoo")?void 0:["emailNoPublicDomain",null]),Hr(Validators,"date",()=>at=>!at||at&&/^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$/g.test(at)?void 0:["date",null]),Hr(Validators,"colorCode",()=>at=>!at||at&&/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(at)?void 0:["colorCode",null]);var Colors=(it=>(it.Default="#7367f0",it.Default_Dark="#130C60",it.Danger="#DC3545",it.Warning="#FFC107",it.Success="#198754",it.Info="#6C757D",it.White="#FFFFFF",it.Black="#141923",it.Green="#28A745",it.Gray="#C9C9C9",it.DarkBlue="#434BB1",it.DarkCyan="#049588",it.DarkOrange="#FF6B00",it.DarkMint="#00766B",it.DarkGray="#6C757D",it.LightBlue="#E8E6F4",it.LightRed="#fae3e5",it.LightGray="#F8F9FA",it.LightGreen="#7ae6b2",it.LightMint="#E6F5F4",it.LightOrange="#FFECDE",it.LightYellow="#FFD166",it))(Colors||{});const Badge=({text:it="white",children:at,color:lt=Colors.Default,isClickable:ut,style:ct,...dt})=>jsxRuntimeExports.jsx("b",{style:{color:it,...ct||{}},children:jsxRuntimeExports.jsx("span",{...dt,style:{fontSize:"12px",backgroundColor:lt,border:"1px solid",borderColor:lt,borderRadius:"4px",paddingLeft:"5px",paddingRight:"5px",...ut?{cursor:"pointer"}:{}},children:at})});function r$1(it){var at,lt,ut="";if(typeof it=="string"||typeof it=="number")ut+=it;else if(typeof it=="object")if(Array.isArray(it))for(at=0;at<it.length;at++)it[at]&&(lt=r$1(it[at]))&&(ut&&(ut+=" "),ut+=lt);else for(at in it)it[at]&&(ut&&(ut+=" "),ut+=at);return ut}function clsx$1(){for(var it,at,lt=0,ut="";lt<arguments.length;)(it=arguments[lt++])&&(at=r$1(it))&&(ut&&(ut+=" "),ut+=at);return ut}const u=it=>typeof it=="number"&&!isNaN(it),d=it=>typeof it=="string",p=it=>typeof it=="function",m=it=>d(it)||p(it)?it:null,f=it=>reactExports.isValidElement(it)||d(it)||p(it)||u(it);function g(it,at,lt){lt===void 0&&(lt=300);const{scrollHeight:ut,style:ct}=it;requestAnimationFrame(()=>{ct.minHeight="initial",ct.height=ut+"px",ct.transition=`all ${lt}ms`,requestAnimationFrame(()=>{ct.height="0",ct.padding="0",ct.margin="0",setTimeout(at,lt)})})}function h(it){let{enter:at,exit:lt,appendPosition:ut=!1,collapse:ct=!0,collapseDuration:dt=300}=it;return function(ft){let{children:mt,position:pt,preventExitTransition:gt,done:vt,nodeRef:wt,isIn:yt}=ft;const bt=ut?`${at}--${pt}`:at,Ct=ut?`${lt}--${pt}`:lt,Et=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const kt=wt.current,xt=bt.split(" "),St=Ot=>{Ot.target===wt.current&&(kt.dispatchEvent(new Event("d")),kt.removeEventListener("animationend",St),kt.removeEventListener("animationcancel",St),Et.current===0&&Ot.type!=="animationcancel"&&kt.classList.remove(...xt))};kt.classList.add(...xt),kt.addEventListener("animationend",St),kt.addEventListener("animationcancel",St)},[]),reactExports.useEffect(()=>{const kt=wt.current,xt=()=>{kt.removeEventListener("animationend",xt),ct?g(kt,vt,dt):vt()};yt||(gt?xt():(Et.current=1,kt.className+=` ${Ct}`,kt.addEventListener("animationend",xt)))},[yt]),b$2.createElement(b$2.Fragment,null,mt)}}function y(it,at){return it!=null?{content:it.content,containerId:it.props.containerId,id:it.props.toastId,theme:it.props.theme,type:it.props.type,data:it.props.data||{},isLoading:it.props.isLoading,icon:it.props.icon,status:at}:{}}const v={list:new Map,emitQueue:new Map,on(it,at){return this.list.has(it)||this.list.set(it,[]),this.list.get(it).push(at),this},off(it,at){if(at){const lt=this.list.get(it).filter(ut=>ut!==at);return this.list.set(it,lt),this}return this.list.delete(it),this},cancelEmit(it){const at=this.emitQueue.get(it);return at&&(at.forEach(clearTimeout),this.emitQueue.delete(it)),this},emit(it){this.list.has(it)&&this.list.get(it).forEach(at=>{const lt=setTimeout(()=>{at(...[].slice.call(arguments,1))},0);this.emitQueue.has(it)||this.emitQueue.set(it,[]),this.emitQueue.get(it).push(lt)})}},T=it=>{let{theme:at,type:lt,...ut}=it;return b$2.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:at==="colored"?"currentColor":`var(--toastify-icon-color-${lt})`,...ut})},E={info:function(it){return b$2.createElement(T,{...it},b$2.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(it){return b$2.createElement(T,{...it},b$2.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(it){return b$2.createElement(T,{...it},b$2.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(it){return b$2.createElement(T,{...it},b$2.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return b$2.createElement("div",{className:"Toastify__spinner"})}};function C(it){const[,at]=reactExports.useReducer(bt=>bt+1,0),[lt,ut]=reactExports.useState([]),ct=reactExports.useRef(null),dt=reactExports.useRef(new Map).current,ft=bt=>lt.indexOf(bt)!==-1,mt=reactExports.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:it,containerId:null,isToastActive:ft,getToast:bt=>dt.get(bt)}).current;function pt(bt){let{containerId:Ct}=bt;const{limit:Et}=mt.props;!Et||Ct&&mt.containerId!==Ct||(mt.count-=mt.queue.length,mt.queue=[])}function gt(bt){ut(Ct=>bt==null?[]:Ct.filter(Et=>Et!==bt))}function vt(){const{toastContent:bt,toastProps:Ct,staleId:Et}=mt.queue.shift();yt(bt,Ct,Et)}function wt(bt,Ct){let{delay:Et,staleId:kt,...xt}=Ct;if(!f(bt)||function(Ht){return!ct.current||mt.props.enableMultiContainer&&Ht.containerId!==mt.props.containerId||dt.has(Ht.toastId)&&Ht.updateId==null}(xt))return;const{toastId:St,updateId:Ot,data:At}=xt,{props:Tt}=mt,$t=()=>gt(St),Lt=Ot==null;Lt&&mt.count++;const Rt={...Tt,style:Tt.toastStyle,key:mt.toastKey++,...Object.fromEntries(Object.entries(xt).filter(Ht=>{let[Vt,Nt]=Ht;return Nt!=null})),toastId:St,updateId:Ot,data:At,closeToast:$t,isIn:!1,className:m(xt.className||Tt.toastClassName),bodyClassName:m(xt.bodyClassName||Tt.bodyClassName),progressClassName:m(xt.progressClassName||Tt.progressClassName),autoClose:!xt.isLoading&&(It=xt.autoClose,Ft=Tt.autoClose,It===!1||u(It)&&It>0?It:Ft),deleteToast(){const Ht=y(dt.get(St),"removed");dt.delete(St),v.emit(4,Ht);const Vt=mt.queue.length;if(mt.count=St==null?mt.count-mt.displayedToast:mt.count-1,mt.count<0&&(mt.count=0),Vt>0){const Nt=St==null?mt.props.limit:1;if(Vt===1||Nt===1)mt.displayedToast++,vt();else{const Gt=Nt>Vt?Vt:Nt;mt.displayedToast=Gt;for(let tn=0;tn<Gt;tn++)vt()}}else at()}};var It,Ft;Rt.iconOut=function(Ht){let{theme:Vt,type:Nt,isLoading:Gt,icon:tn}=Ht,ln=null;const nn={theme:Vt,type:Nt};return tn===!1||(p(tn)?ln=tn(nn):reactExports.isValidElement(tn)?ln=reactExports.cloneElement(tn,nn):d(tn)||u(tn)?ln=tn:Gt?ln=E.spinner():(on=>on in E)(Nt)&&(ln=E[Nt](nn))),ln}(Rt),p(xt.onOpen)&&(Rt.onOpen=xt.onOpen),p(xt.onClose)&&(Rt.onClose=xt.onClose),Rt.closeButton=Tt.closeButton,xt.closeButton===!1||f(xt.closeButton)?Rt.closeButton=xt.closeButton:xt.closeButton===!0&&(Rt.closeButton=!f(Tt.closeButton)||Tt.closeButton);let Mt=bt;reactExports.isValidElement(bt)&&!d(bt.type)?Mt=reactExports.cloneElement(bt,{closeToast:$t,toastProps:Rt,data:At}):p(bt)&&(Mt=bt({closeToast:$t,toastProps:Rt,data:At})),Tt.limit&&Tt.limit>0&&mt.count>Tt.limit&&Lt?mt.queue.push({toastContent:Mt,toastProps:Rt,staleId:kt}):u(Et)?setTimeout(()=>{yt(Mt,Rt,kt)},Et):yt(Mt,Rt,kt)}function yt(bt,Ct,Et){const{toastId:kt}=Ct;Et&&dt.delete(Et);const xt={content:bt,props:Ct};dt.set(kt,xt),ut(St=>[...St,kt].filter(Ot=>Ot!==Et)),v.emit(4,y(xt,xt.props.updateId==null?"added":"updated"))}return reactExports.useEffect(()=>(mt.containerId=it.containerId,v.cancelEmit(3).on(0,wt).on(1,bt=>ct.current&&gt(bt)).on(5,pt).emit(2,mt),()=>{dt.clear(),v.emit(3,mt)}),[]),reactExports.useEffect(()=>{mt.props=it,mt.isToastActive=ft,mt.displayedToast=lt.length}),{getToastToRender:function(bt){const Ct=new Map,Et=Array.from(dt.values());return it.newestOnTop&&Et.reverse(),Et.forEach(kt=>{const{position:xt}=kt.props;Ct.has(xt)||Ct.set(xt,[]),Ct.get(xt).push(kt)}),Array.from(Ct,kt=>bt(kt[0],kt[1]))},containerRef:ct,isToastActive:ft}}function b(it){return it.targetTouches&&it.targetTouches.length>=1?it.targetTouches[0].clientX:it.clientX}function I(it){return it.targetTouches&&it.targetTouches.length>=1?it.targetTouches[0].clientY:it.clientY}function _(it){const[at,lt]=reactExports.useState(!1),[ut,ct]=reactExports.useState(!1),dt=reactExports.useRef(null),ft=reactExports.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,mt=reactExports.useRef(it),{autoClose:pt,pauseOnHover:gt,closeToast:vt,onClick:wt,closeOnClick:yt}=it;function bt(At){if(it.draggable){At.nativeEvent.type==="touchstart"&&At.nativeEvent.preventDefault(),ft.didMove=!1,document.addEventListener("mousemove",xt),document.addEventListener("mouseup",St),document.addEventListener("touchmove",xt),document.addEventListener("touchend",St);const Tt=dt.current;ft.canCloseOnClick=!0,ft.canDrag=!0,ft.boundingRect=Tt.getBoundingClientRect(),Tt.style.transition="",ft.x=b(At.nativeEvent),ft.y=I(At.nativeEvent),it.draggableDirection==="x"?(ft.start=ft.x,ft.removalDistance=Tt.offsetWidth*(it.draggablePercent/100)):(ft.start=ft.y,ft.removalDistance=Tt.offsetHeight*(it.draggablePercent===80?1.5*it.draggablePercent:it.draggablePercent/100))}}function Ct(At){if(ft.boundingRect){const{top:Tt,bottom:$t,left:Lt,right:Rt}=ft.boundingRect;At.nativeEvent.type!=="touchend"&&it.pauseOnHover&&ft.x>=Lt&&ft.x<=Rt&&ft.y>=Tt&&ft.y<=$t?kt():Et()}}function Et(){lt(!0)}function kt(){lt(!1)}function xt(At){const Tt=dt.current;ft.canDrag&&Tt&&(ft.didMove=!0,at&&kt(),ft.x=b(At),ft.y=I(At),ft.delta=it.draggableDirection==="x"?ft.x-ft.start:ft.y-ft.start,ft.start!==ft.x&&(ft.canCloseOnClick=!1),Tt.style.transform=`translate${it.draggableDirection}(${ft.delta}px)`,Tt.style.opacity=""+(1-Math.abs(ft.delta/ft.removalDistance)))}function St(){document.removeEventListener("mousemove",xt),document.removeEventListener("mouseup",St),document.removeEventListener("touchmove",xt),document.removeEventListener("touchend",St);const At=dt.current;if(ft.canDrag&&ft.didMove&&At){if(ft.canDrag=!1,Math.abs(ft.delta)>ft.removalDistance)return ct(!0),void it.closeToast();At.style.transition="transform 0.2s, opacity 0.2s",At.style.transform=`translate${it.draggableDirection}(0)`,At.style.opacity="1"}}reactExports.useEffect(()=>{mt.current=it}),reactExports.useEffect(()=>(dt.current&&dt.current.addEventListener("d",Et,{once:!0}),p(it.onOpen)&&it.onOpen(reactExports.isValidElement(it.children)&&it.children.props),()=>{const At=mt.current;p(At.onClose)&&At.onClose(reactExports.isValidElement(At.children)&&At.children.props)}),[]),reactExports.useEffect(()=>(it.pauseOnFocusLoss&&(document.hasFocus()||kt(),window.addEventListener("focus",Et),window.addEventListener("blur",kt)),()=>{it.pauseOnFocusLoss&&(window.removeEventListener("focus",Et),window.removeEventListener("blur",kt))}),[it.pauseOnFocusLoss]);const Ot={onMouseDown:bt,onTouchStart:bt,onMouseUp:Ct,onTouchEnd:Ct};return pt&&gt&&(Ot.onMouseEnter=kt,Ot.onMouseLeave=Et),yt&&(Ot.onClick=At=>{wt&&wt(At),ft.canCloseOnClick&&vt()}),{playToast:Et,pauseToast:kt,isRunning:at,preventExitTransition:ut,toastRef:dt,eventHandlers:Ot}}function L(it){let{closeToast:at,theme:lt,ariaLabel:ut="close"}=it;return b$2.createElement("button",{className:`Toastify__close-button Toastify__close-button--${lt}`,type:"button",onClick:ct=>{ct.stopPropagation(),at(ct)},"aria-label":ut},b$2.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},b$2.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function O(it){let{delay:at,isRunning:lt,closeToast:ut,type:ct="default",hide:dt,className:ft,style:mt,controlledProgress:pt,progress:gt,rtl:vt,isIn:wt,theme:yt}=it;const bt=dt||pt&&gt===0,Ct={...mt,animationDuration:`${at}ms`,animationPlayState:lt?"running":"paused",opacity:bt?0:1};pt&&(Ct.transform=`scaleX(${gt})`);const Et=clsx$1("Toastify__progress-bar",pt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${yt}`,`Toastify__progress-bar--${ct}`,{"Toastify__progress-bar--rtl":vt}),kt=p(ft)?ft({rtl:vt,type:ct,defaultClassName:Et}):clsx$1(Et,ft);return b$2.createElement("div",{role:"progressbar","aria-hidden":bt?"true":"false","aria-label":"notification timer",className:kt,style:Ct,[pt&&gt>=1?"onTransitionEnd":"onAnimationEnd"]:pt&&gt<1?null:()=>{wt&&ut()}})}const N=it=>{const{isRunning:at,preventExitTransition:lt,toastRef:ut,eventHandlers:ct}=_(it),{closeButton:dt,children:ft,autoClose:mt,onClick:pt,type:gt,hideProgressBar:vt,closeToast:wt,transition:yt,position:bt,className:Ct,style:Et,bodyClassName:kt,bodyStyle:xt,progressClassName:St,progressStyle:Ot,updateId:At,role:Tt,progress:$t,rtl:Lt,toastId:Rt,deleteToast:It,isIn:Ft,isLoading:Mt,iconOut:Ht,closeOnClick:Vt,theme:Nt}=it,Gt=clsx$1("Toastify__toast",`Toastify__toast-theme--${Nt}`,`Toastify__toast--${gt}`,{"Toastify__toast--rtl":Lt},{"Toastify__toast--close-on-click":Vt}),tn=p(Ct)?Ct({rtl:Lt,position:bt,type:gt,defaultClassName:Gt}):clsx$1(Gt,Ct),ln=!!$t||!mt,nn={closeToast:wt,type:gt,theme:Nt};let on=null;return dt===!1||(on=p(dt)?dt(nn):reactExports.isValidElement(dt)?reactExports.cloneElement(dt,nn):L(nn)),b$2.createElement(yt,{isIn:Ft,done:It,position:bt,preventExitTransition:lt,nodeRef:ut},b$2.createElement("div",{id:Rt,onClick:pt,className:tn,...ct,style:Et,ref:ut},b$2.createElement("div",{...Ft&&{role:Tt},className:p(kt)?kt({type:gt}):clsx$1("Toastify__toast-body",kt),style:xt},Ht!=null&&b$2.createElement("div",{className:clsx$1("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Mt})},Ht),b$2.createElement("div",null,ft)),on,b$2.createElement(O,{...At&&!ln?{key:`pb-${At}`}:{},rtl:Lt,theme:Nt,delay:mt,isRunning:at,isIn:Ft,closeToast:wt,hide:vt,type:gt,style:Ot,className:St,controlledProgress:ln,progress:$t||0})))},M=function(it,at){return at===void 0&&(at=!1),{enter:`Toastify--animate Toastify__${it}-enter`,exit:`Toastify--animate Toastify__${it}-exit`,appendPosition:at}},R=h(M("bounce",!0));h(M("slide",!0));h(M("zoom"));h(M("flip"));const k=reactExports.forwardRef((it,at)=>{const{getToastToRender:lt,containerRef:ut,isToastActive:ct}=C(it),{className:dt,style:ft,rtl:mt,containerId:pt}=it;function gt(vt){const wt=clsx$1("Toastify__toast-container",`Toastify__toast-container--${vt}`,{"Toastify__toast-container--rtl":mt});return p(dt)?dt({position:vt,rtl:mt,defaultClassName:wt}):clsx$1(wt,m(dt))}return reactExports.useEffect(()=>{at&&(at.current=ut.current)},[]),b$2.createElement("div",{ref:ut,className:"Toastify",id:pt},lt((vt,wt)=>{const yt=wt.length?{...ft}:{...ft,pointerEvents:"none"};return b$2.createElement("div",{className:gt(vt),style:yt,key:`container-${vt}`},wt.map((bt,Ct)=>{let{content:Et,props:kt}=bt;return b$2.createElement(N,{...kt,isIn:ct(kt.toastId),style:{...kt.style,"--nth":Ct+1,"--len":wt.length},key:`toast-${kt.key}`},Et)}))}))});k.displayName="ToastContainer",k.defaultProps={position:"top-right",transition:R,autoClose:5e3,closeButton:L,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let P,B=new Map,D=[],A=1;function z(){return""+A++}function F(it){return it&&(d(it.toastId)||u(it.toastId))?it.toastId:z()}function H(it,at){return B.size>0?v.emit(0,it,at):D.push({content:it,options:at}),at.toastId}function S(it,at){return{...at,type:at&&at.type||it,toastId:F(at)}}function q(it){return(at,lt)=>H(at,S(it,lt))}function Q(it,at){return H(it,S("default",at))}Q.loading=(it,at)=>H(it,S("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...at})),Q.promise=function(it,at,lt){let ut,{pending:ct,error:dt,success:ft}=at;ct&&(ut=d(ct)?Q.loading(ct,lt):Q.loading(ct.render,{...lt,...ct}));const mt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},pt=(vt,wt,yt)=>{if(wt==null)return void Q.dismiss(ut);const bt={type:vt,...mt,...lt,data:yt},Ct=d(wt)?{render:wt}:wt;return ut?Q.update(ut,{...bt,...Ct}):Q(Ct.render,{...bt,...Ct}),yt},gt=p(it)?it():it;return gt.then(vt=>pt("success",ft,vt)).catch(vt=>pt("error",dt,vt)),gt},Q.success=q("success"),Q.info=q("info"),Q.error=q("error"),Q.warning=q("warning"),Q.warn=Q.warning,Q.dark=(it,at)=>H(it,S("default",{theme:"dark",...at})),Q.dismiss=it=>{B.size>0?v.emit(1,it):D=D.filter(at=>it!=null&&at.options.toastId!==it)},Q.clearWaitingQueue=function(it){return it===void 0&&(it={}),v.emit(5,it)},Q.isActive=it=>{let at=!1;return B.forEach(lt=>{lt.isToastActive&&lt.isToastActive(it)&&(at=!0)}),at},Q.update=function(it,at){at===void 0&&(at={}),setTimeout(()=>{const lt=function(ut,ct){let{containerId:dt}=ct;const ft=B.get(dt||P);return ft&&ft.getToast(ut)}(it,at);if(lt){const{props:ut,content:ct}=lt,dt={delay:100,...ut,...at,toastId:at.toastId||it,updateId:z()};dt.toastId!==it&&(dt.staleId=it);const ft=dt.render||ct;delete dt.render,H(ft,dt)}},0)},Q.done=it=>{Q.update(it,{progress:1})},Q.onChange=it=>(v.on(4,it),()=>{v.off(4,it)}),Q.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Q.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},v.on(2,it=>{P=it.containerId||it,B.set(P,it),D.forEach(at=>{v.emit(0,at.content,at.options)}),D=[]}).on(3,it=>{B.delete(it.containerId||it),B.size===0&&v.off(0).off(1).off(5)});const container="_container_1jng9_1",image="_image_1jng9_4",overlay="_overlay_1jng9_11",text="_text_1jng9_22",styles$3={container,image,overlay,text},ReactToastify_min="",ToastContainer=()=>jsxRuntimeExports.jsx(k,{position:"bottom-right",autoClose:3e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),formatMoney=(it,at="EUR",lt=!0)=>new Intl.NumberFormat("nl-BE",{style:"currency",currency:at,minimumFractionDigits:lt?2:0}).format(it),MoneyFormat=({value:it,currency:at="EUR",useDecimals:lt=!0})=>{const ut=new Intl.NumberFormat("nl-BE",{style:"currency",currency:at,minimumFractionDigits:lt?2:0});return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ut.format(it)})},Tooltip=({children:it,placement:at="top",content:lt,...ut})=>jsxRuntimeExports.jsx(OverlayTrigger$1,{placement:at,overlay:jsxRuntimeExports.jsx(BootstrapTooltip,{children:lt}),...ut,children:it}),required="_required_1kmm8_5",styles$2={required},Label=({text:it,required:at,children:lt,tooltip:ut,lockedTooltip:ct,className:dt,style:ft,...mt})=>jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("label",{className:`${dt??""} ${at?styles$2.required:""}`,style:ft,...mt,children:[it,ut&&jsxRuntimeExports.jsx(Tooltip,{content:ut,children:jsxRuntimeExports.jsx("i",{className:"fas fa-info-circle ms-1 text-muted",style:{fontSize:"14px",width:"14px",height:"14px"}})}),ct&&jsxRuntimeExports.jsx(Tooltip,{content:ct,children:jsxRuntimeExports.jsx("i",{className:"fas fa-lock ms-2",style:{fontSize:"14px",width:"14px",height:"14px"}})})]}),lt]});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(it,at){return it===at||it!==it&&at!==at}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(it,at){for(var lt=it.length;lt--;)if(eq$1(it[lt][0],at))return lt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(it){var at=this.__data__,lt=assocIndexOf$3(at,it);if(lt<0)return!1;var ut=at.length-1;return lt==ut?at.pop():splice.call(at,lt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(it){var at=this.__data__,lt=assocIndexOf$2(at,it);return lt<0?void 0:at[lt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(it){return assocIndexOf$1(this.__data__,it)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(it,at){var lt=this.__data__,ut=assocIndexOf(lt,it);return ut<0?(++this.size,lt.push([it,at])):lt[ut][1]=at,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(it){var at=-1,lt=it==null?0:it.length;for(this.clear();++at<lt;){var ut=it[at];this.set(ut[0],ut[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(it){var at=this.__data__,lt=at.delete(it);return this.size=at.size,lt}var _stackDelete=stackDelete$1;function stackGet$1(it){return this.__data__.get(it)}var _stackGet=stackGet$1;function stackHas$1(it){return this.__data__.has(it)}var _stackHas=stackHas$1,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root=root$8,root$7=_root,Symbol$4=root$7.Symbol,_Symbol=Symbol$4,Symbol$3=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$8=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag$1(it){var at=hasOwnProperty$8.call(it,symToStringTag$1),lt=it[symToStringTag$1];try{it[symToStringTag$1]=void 0;var ut=!0}catch{}var ct=nativeObjectToString$1.call(it);return ut&&(at?it[symToStringTag$1]=lt:delete it[symToStringTag$1]),ct}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(it){return nativeObjectToString.call(it)}var _objectToString=objectToString$1,Symbol$2=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag$4(it){return it==null?it===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(it)?getRawTag(it):objectToString(it)}var _baseGetTag=baseGetTag$4;function isObject$2(it){var at=typeof it;return it!=null&&(at=="object"||at=="function")}var isObject_1=isObject$2;const _isObject=getDefaultExportFromCjs(isObject_1);var baseGetTag$3=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(it){if(!isObject$1(it))return!1;var at=baseGetTag$3(it);return at==funcTag$1||at==genTag||at==asyncTag||at==proxyTag}var isFunction_1=isFunction$2;const _isFunction=getDefaultExportFromCjs(isFunction_1);var root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var it=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return it?"Symbol(src)_1."+it:""}();function isMasked$1(it){return!!maskSrcKey&&maskSrcKey in it}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(it){if(it!=null){try{return funcToString$1.call(it)}catch{}try{return it+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(it){if(!isObject(it)||isMasked(it))return!1;var at=isFunction$1(it)?reIsNative:reIsHostCtor;return at.test(toSource$1(it))}var _baseIsNative=baseIsNative$1;function getValue$1(it,at){return it==null?void 0:it[at]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(it,at){var lt=getValue(it,at);return baseIsNative(lt)?lt:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(it){var at=this.has(it)&&delete this.__data__[it];return this.size-=at?1:0,at}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function hashGet$1(it){var at=this.__data__;if(nativeCreate$2){var lt=at[it];return lt===HASH_UNDEFINED$2?void 0:lt}return hasOwnProperty$6.call(at,it)?at[it]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty;function hashHas$1(it){var at=this.__data__;return nativeCreate$1?at[it]!==void 0:hasOwnProperty$5.call(at,it)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(it,at){var lt=this.__data__;return this.size+=this.has(it)?0:1,lt[it]=nativeCreate&&at===void 0?HASH_UNDEFINED$1:at,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(it){var at=-1,lt=it==null?0:it.length;for(this.clear();++at<lt;){var ut=it[at];this.set(ut[0],ut[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(it){var at=typeof it;return at=="string"||at=="number"||at=="symbol"||at=="boolean"?it!=="__proto__":it===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(it,at){var lt=it.__data__;return isKeyable(at)?lt[typeof at=="string"?"string":"hash"]:lt.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(it){var at=getMapData$3(this,it).delete(it);return this.size-=at?1:0,at}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(it){return getMapData$2(this,it).get(it)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(it){return getMapData$1(this,it).has(it)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(it,at){var lt=getMapData(this,it),ut=lt.size;return lt.set(it,at),this.size+=lt.size==ut?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(it){var at=-1,lt=it==null?0:it.length;for(this.clear();++at<lt;){var ut=it[at];this.set(ut[0],ut[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(it,at){var lt=this.__data__;if(lt instanceof ListCache$1){var ut=lt.__data__;if(!Map$2||ut.length<LARGE_ARRAY_SIZE-1)return ut.push([it,at]),this.size=++lt.size,this;lt=this.__data__=new MapCache$1(ut)}return lt.set(it,at),this.size=lt.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(it){var at=this.__data__=new ListCache(it);this.size=at.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(it){return this.__data__.set(it,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(it){return this.__data__.has(it)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(it){var at=-1,lt=it==null?0:it.length;for(this.__data__=new MapCache;++at<lt;)this.add(it[at])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(it,at){for(var lt=-1,ut=it==null?0:it.length;++lt<ut;)if(at(it[lt],lt,it))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(it,at){return it.has(at)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(it,at,lt,ut,ct,dt){var ft=lt&COMPARE_PARTIAL_FLAG$3,mt=it.length,pt=at.length;if(mt!=pt&&!(ft&&pt>mt))return!1;var gt=dt.get(it),vt=dt.get(at);if(gt&&vt)return gt==at&&vt==it;var wt=-1,yt=!0,bt=lt&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for(dt.set(it,at),dt.set(at,it);++wt<mt;){var Ct=it[wt],Et=at[wt];if(ut)var kt=ft?ut(Et,Ct,wt,at,it,dt):ut(Ct,Et,wt,it,at,dt);if(kt!==void 0){if(kt)continue;yt=!1;break}if(bt){if(!arraySome(at,function(xt,St){if(!cacheHas(bt,St)&&(Ct===xt||ct(Ct,xt,lt,ut,dt)))return bt.push(St)})){yt=!1;break}}else if(!(Ct===Et||ct(Ct,Et,lt,ut,dt))){yt=!1;break}}return dt.delete(it),dt.delete(at),yt}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(it){var at=-1,lt=Array(it.size);return it.forEach(function(ut,ct){lt[++at]=[ct,ut]}),lt}var _mapToArray=mapToArray$1;function setToArray$1(it){var at=-1,lt=Array(it.size);return it.forEach(function(ut){lt[++at]=ut}),lt}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(it,at,lt,ut,ct,dt,ft){switch(lt){case dataViewTag$2:if(it.byteLength!=at.byteLength||it.byteOffset!=at.byteOffset)return!1;it=it.buffer,at=at.buffer;case arrayBufferTag$1:return!(it.byteLength!=at.byteLength||!dt(new Uint8Array$1(it),new Uint8Array$1(at)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+it,+at);case errorTag$1:return it.name==at.name&&it.message==at.message;case regexpTag$1:case stringTag$1:return it==at+"";case mapTag$2:var mt=mapToArray;case setTag$2:var pt=ut&COMPARE_PARTIAL_FLAG$2;if(mt||(mt=setToArray),it.size!=at.size&&!pt)return!1;var gt=ft.get(it);if(gt)return gt==at;ut|=COMPARE_UNORDERED_FLAG,ft.set(it,at);var vt=equalArrays$1(mt(it),mt(at),ut,ct,dt,ft);return ft.delete(it),vt;case symbolTag:if(symbolValueOf)return symbolValueOf.call(it)==symbolValueOf.call(at)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(it,at){for(var lt=-1,ut=at.length,ct=it.length;++lt<ut;)it[ct+lt]=at[lt];return it}var _arrayPush=arrayPush$1,isArray$3=Array.isArray,isArray_1=isArray$3;const _isArray=getDefaultExportFromCjs(isArray_1);var arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(it,at,lt){var ut=at(it);return isArray$2(it)?ut:arrayPush(ut,lt(it))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(it,at){for(var lt=-1,ut=it==null?0:it.length,ct=0,dt=[];++lt<ut;){var ft=it[lt];at(ft,lt,it)&&(dt[ct++]=ft)}return dt}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(it){return it==null?[]:(it=Object(it),arrayFilter(nativeGetSymbols(it),function(at){return propertyIsEnumerable$1.call(it,at)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(it,at){for(var lt=-1,ut=Array(it);++lt<it;)ut[lt]=at(lt);return ut}var _baseTimes=baseTimes$1;function isObjectLike$4(it){return it!=null&&typeof it=="object"}var isObjectLike_1=isObjectLike$4,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(it){return isObjectLike$3(it)&&baseGetTag$2(it)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(it){return isObjectLike$2(it)&&hasOwnProperty$4.call(it,"callee")&&!propertyIsEnumerable.call(it,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(it,at){var lt=_root,ut=stubFalse_1,ct=at&&!at.nodeType&&at,dt=ct&&!0&&it&&!it.nodeType&&it,ft=dt&&dt.exports===ct,mt=ft?lt.Buffer:void 0,pt=mt?mt.isBuffer:void 0,gt=pt||ut;it.exports=gt})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(it,at){var lt=typeof it;return at=at??MAX_SAFE_INTEGER$1,!!at&&(lt=="number"||lt!="symbol"&&reIsUint.test(it))&&it>-1&&it%1==0&&it<at}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(it){return typeof it=="number"&&it>-1&&it%1==0&&it<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(it){return isObjectLike$1(it)&&isLength$1(it.length)&&!!typedArrayTags[baseGetTag$1(it)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(it){return function(at){return it(at)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(it,at){var lt=_freeGlobal,ut=at&&!at.nodeType&&at,ct=ut&&!0&&it&&!it.nodeType&&it,dt=ct&&ct.exports===ut,ft=dt&&lt.process,mt=function(){try{var pt=ct&&ct.require&&ct.require("util").types;return pt||ft&&ft.binding&&ft.binding("util")}catch{}}();it.exports=mt})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$3=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$3,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$2=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(it,at){var lt=isArray$1(it),ut=!lt&&isArguments(it),ct=!lt&&!ut&&isBuffer$1(it),dt=!lt&&!ut&&!ct&&isTypedArray$2(it),ft=lt||ut||ct||dt,mt=ft?baseTimes(it.length,String):[],pt=mt.length;for(var gt in it)(at||hasOwnProperty$3.call(it,gt))&&!(ft&&(gt=="length"||ct&&(gt=="offset"||gt=="parent")||dt&&(gt=="buffer"||gt=="byteLength"||gt=="byteOffset")||isIndex(gt,pt)))&&mt.push(gt);return mt}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(it){var at=it&&it.constructor,lt=typeof at=="function"&&at.prototype||objectProto$3;return it===lt}var _isPrototype=isPrototype$1;function overArg$1(it,at){return function(lt){return it(at(lt))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function baseKeys$1(it){if(!isPrototype(it))return nativeKeys(it);var at=[];for(var lt in Object(it))hasOwnProperty$2.call(it,lt)&&lt!="constructor"&&at.push(lt);return at}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(it){return it!=null&&isLength(it.length)&&!isFunction(it)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(it){return isArrayLike(it)?arrayLikeKeys(it):baseKeys(it)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(it){return baseGetAllKeys(it,keys,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects$1(it,at,lt,ut,ct,dt){var ft=lt&COMPARE_PARTIAL_FLAG$1,mt=getAllKeys(it),pt=mt.length,gt=getAllKeys(at),vt=gt.length;if(pt!=vt&&!ft)return!1;for(var wt=pt;wt--;){var yt=mt[wt];if(!(ft?yt in at:hasOwnProperty$1.call(at,yt)))return!1}var bt=dt.get(it),Ct=dt.get(at);if(bt&&Ct)return bt==at&&Ct==it;var Et=!0;dt.set(it,at),dt.set(at,it);for(var kt=ft;++wt<pt;){yt=mt[wt];var xt=it[yt],St=at[yt];if(ut)var Ot=ft?ut(St,xt,yt,at,it,dt):ut(xt,St,yt,it,at,dt);if(!(Ot===void 0?xt===St||ct(xt,St,lt,ut,dt):Ot)){Et=!1;break}kt||(kt=yt=="constructor")}if(Et&&!kt){var At=it.constructor,Tt=at.constructor;At!=Tt&&"constructor"in it&&"constructor"in at&&!(typeof At=="function"&&At instanceof At&&typeof Tt=="function"&&Tt instanceof Tt)&&(Et=!1)}return dt.delete(it),dt.delete(at),Et}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$2=getNative$3(root$3,"DataView"),_DataView=DataView$2,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView$1&&getTag$1(new DataView$1(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(it){var at=baseGetTag(it),lt=at==objectTag$1?it.constructor:void 0,ut=lt?toSource(lt):"";if(ut)switch(ut){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return at});var _getTag=getTag$1,Stack=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray=isArray_1,isBuffer=isBufferExports,isTypedArray$1=isTypedArray_1,COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep$1(it,at,lt,ut,ct,dt){var ft=isArray(it),mt=isArray(at),pt=ft?arrayTag:getTag(it),gt=mt?arrayTag:getTag(at);pt=pt==argsTag?objectTag:pt,gt=gt==argsTag?objectTag:gt;var vt=pt==objectTag,wt=gt==objectTag,yt=pt==gt;if(yt&&isBuffer(it)){if(!isBuffer(at))return!1;ft=!0,vt=!1}if(yt&&!vt)return dt||(dt=new Stack),ft||isTypedArray$1(it)?equalArrays(it,at,lt,ut,ct,dt):equalByTag(it,at,pt,lt,ut,ct,dt);if(!(lt&COMPARE_PARTIAL_FLAG)){var bt=vt&&hasOwnProperty.call(it,"__wrapped__"),Ct=wt&&hasOwnProperty.call(at,"__wrapped__");if(bt||Ct){var Et=bt?it.value():it,kt=Ct?at.value():at;return dt||(dt=new Stack),ct(Et,kt,lt,ut,dt)}}return yt?(dt||(dt=new Stack),equalObjects(it,at,lt,ut,ct,dt)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(it,at,lt,ut,ct){return it===at?!0:it==null||at==null||!isObjectLike(it)&&!isObjectLike(at)?it!==it&&at!==at:baseIsEqualDeep(it,at,lt,ut,baseIsEqual$1,ct)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(it,at){return baseIsEqual(it,at)}var isEqual_1$1=isEqual;const _isEqual=getDefaultExportFromCjs(isEqual_1$1);var quill={exports:{}};/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */(function(it,at){(function(ut,ct){it.exports=ct()})(typeof self<"u"?self:commonjsGlobal,function(){return function(lt){var ut={};function ct(dt){if(ut[dt])return ut[dt].exports;var ft=ut[dt]={i:dt,l:!1,exports:{}};return lt[dt].call(ft.exports,ft,ft.exports,ct),ft.l=!0,ft.exports}return ct.m=lt,ct.c=ut,ct.d=function(dt,ft,mt){ct.o(dt,ft)||Object.defineProperty(dt,ft,{configurable:!1,enumerable:!0,get:mt})},ct.n=function(dt){var ft=dt&&dt.__esModule?function(){return dt.default}:function(){return dt};return ct.d(ft,"a",ft),ft},ct.o=function(dt,ft){return Object.prototype.hasOwnProperty.call(dt,ft)},ct.p="",ct(ct.s=109)}([function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(17),ft=ct(18),mt=ct(19),pt=ct(45),gt=ct(46),vt=ct(47),wt=ct(48),yt=ct(49),bt=ct(12),Ct=ct(32),Et=ct(33),kt=ct(31),xt=ct(1),St={Scope:xt.Scope,create:xt.create,find:xt.find,query:xt.query,register:xt.register,Container:dt.default,Format:ft.default,Leaf:mt.default,Embed:wt.default,Scroll:pt.default,Block:vt.default,Inline:gt.default,Text:yt.default,Attributor:{Attribute:bt.default,Class:Ct.default,Style:Et.default,Store:kt.default}};ut.default=St},function(lt,ut,ct){var dt=this&&this.__extends||function(){var kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,St){xt.__proto__=St}||function(xt,St){for(var Ot in St)St.hasOwnProperty(Ot)&&(xt[Ot]=St[Ot])};return function(xt,St){kt(xt,St);function Ot(){this.constructor=xt}xt.prototype=St===null?Object.create(St):(Ot.prototype=St.prototype,new Ot)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=function(kt){dt(xt,kt);function xt(St){var Ot=this;return St="[Parchment] "+St,Ot=kt.call(this,St)||this,Ot.message=St,Ot.name=Ot.constructor.name,Ot}return xt}(Error);ut.ParchmentError=ft;var mt={},pt={},gt={},vt={};ut.DATA_KEY="__blot";var wt;(function(kt){kt[kt.TYPE=3]="TYPE",kt[kt.LEVEL=12]="LEVEL",kt[kt.ATTRIBUTE=13]="ATTRIBUTE",kt[kt.BLOT=14]="BLOT",kt[kt.INLINE=7]="INLINE",kt[kt.BLOCK=11]="BLOCK",kt[kt.BLOCK_BLOT=10]="BLOCK_BLOT",kt[kt.INLINE_BLOT=6]="INLINE_BLOT",kt[kt.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",kt[kt.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",kt[kt.ANY=15]="ANY"})(wt=ut.Scope||(ut.Scope={}));function yt(kt,xt){var St=Ct(kt);if(St==null)throw new ft("Unable to create "+kt+" blot");var Ot=St,At=kt instanceof Node||kt.nodeType===Node.TEXT_NODE?kt:Ot.create(xt);return new Ot(At,xt)}ut.create=yt;function bt(kt,xt){return xt===void 0&&(xt=!1),kt==null?null:kt[ut.DATA_KEY]!=null?kt[ut.DATA_KEY].blot:xt?bt(kt.parentNode,xt):null}ut.find=bt;function Ct(kt,xt){xt===void 0&&(xt=wt.ANY);var St;if(typeof kt=="string")St=vt[kt]||mt[kt];else if(kt instanceof Text||kt.nodeType===Node.TEXT_NODE)St=vt.text;else if(typeof kt=="number")kt&wt.LEVEL&wt.BLOCK?St=vt.block:kt&wt.LEVEL&wt.INLINE&&(St=vt.inline);else if(kt instanceof HTMLElement){var Ot=(kt.getAttribute("class")||"").split(/\s+/);for(var At in Ot)if(St=pt[Ot[At]],St)break;St=St||gt[kt.tagName]}return St==null?null:xt&wt.LEVEL&St.scope&&xt&wt.TYPE&St.scope?St:null}ut.query=Ct;function Et(){for(var kt=[],xt=0;xt<arguments.length;xt++)kt[xt]=arguments[xt];if(kt.length>1)return kt.map(function(At){return Et(At)});var St=kt[0];if(typeof St.blotName!="string"&&typeof St.attrName!="string")throw new ft("Invalid definition");if(St.blotName==="abstract")throw new ft("Cannot register abstract class");if(vt[St.blotName||St.attrName]=St,typeof St.keyName=="string")mt[St.keyName]=St;else if(St.className!=null&&(pt[St.className]=St),St.tagName!=null){Array.isArray(St.tagName)?St.tagName=St.tagName.map(function(At){return At.toUpperCase()}):St.tagName=St.tagName.toUpperCase();var Ot=Array.isArray(St.tagName)?St.tagName:[St.tagName];Ot.forEach(function(At){(gt[At]==null||St.className==null)&&(gt[At]=St)})}return St}ut.register=Et},function(lt,ut,ct){var dt=ct(51),ft=ct(11),mt=ct(3),pt=ct(20),gt=String.fromCharCode(0),vt=function(wt){Array.isArray(wt)?this.ops=wt:wt!=null&&Array.isArray(wt.ops)?this.ops=wt.ops:this.ops=[]};vt.prototype.insert=function(wt,yt){var bt={};return wt.length===0?this:(bt.insert=wt,yt!=null&&typeof yt=="object"&&Object.keys(yt).length>0&&(bt.attributes=yt),this.push(bt))},vt.prototype.delete=function(wt){return wt<=0?this:this.push({delete:wt})},vt.prototype.retain=function(wt,yt){if(wt<=0)return this;var bt={retain:wt};return yt!=null&&typeof yt=="object"&&Object.keys(yt).length>0&&(bt.attributes=yt),this.push(bt)},vt.prototype.push=function(wt){var yt=this.ops.length,bt=this.ops[yt-1];if(wt=mt(!0,{},wt),typeof bt=="object"){if(typeof wt.delete=="number"&&typeof bt.delete=="number")return this.ops[yt-1]={delete:bt.delete+wt.delete},this;if(typeof bt.delete=="number"&&wt.insert!=null&&(yt-=1,bt=this.ops[yt-1],typeof bt!="object"))return this.ops.unshift(wt),this;if(ft(wt.attributes,bt.attributes)){if(typeof wt.insert=="string"&&typeof bt.insert=="string")return this.ops[yt-1]={insert:bt.insert+wt.insert},typeof wt.attributes=="object"&&(this.ops[yt-1].attributes=wt.attributes),this;if(typeof wt.retain=="number"&&typeof bt.retain=="number")return this.ops[yt-1]={retain:bt.retain+wt.retain},typeof wt.attributes=="object"&&(this.ops[yt-1].attributes=wt.attributes),this}}return yt===this.ops.length?this.ops.push(wt):this.ops.splice(yt,0,wt),this},vt.prototype.chop=function(){var wt=this.ops[this.ops.length-1];return wt&&wt.retain&&!wt.attributes&&this.ops.pop(),this},vt.prototype.filter=function(wt){return this.ops.filter(wt)},vt.prototype.forEach=function(wt){this.ops.forEach(wt)},vt.prototype.map=function(wt){return this.ops.map(wt)},vt.prototype.partition=function(wt){var yt=[],bt=[];return this.forEach(function(Ct){var Et=wt(Ct)?yt:bt;Et.push(Ct)}),[yt,bt]},vt.prototype.reduce=function(wt,yt){return this.ops.reduce(wt,yt)},vt.prototype.changeLength=function(){return this.reduce(function(wt,yt){return yt.insert?wt+pt.length(yt):yt.delete?wt-yt.delete:wt},0)},vt.prototype.length=function(){return this.reduce(function(wt,yt){return wt+pt.length(yt)},0)},vt.prototype.slice=function(wt,yt){wt=wt||0,typeof yt!="number"&&(yt=1/0);for(var bt=[],Ct=pt.iterator(this.ops),Et=0;Et<yt&&Ct.hasNext();){var kt;Et<wt?kt=Ct.next(wt-Et):(kt=Ct.next(yt-Et),bt.push(kt)),Et+=pt.length(kt)}return new vt(bt)},vt.prototype.compose=function(wt){var yt=pt.iterator(this.ops),bt=pt.iterator(wt.ops),Ct=[],Et=bt.peek();if(Et!=null&&typeof Et.retain=="number"&&Et.attributes==null){for(var kt=Et.retain;yt.peekType()==="insert"&&yt.peekLength()<=kt;)kt-=yt.peekLength(),Ct.push(yt.next());Et.retain-kt>0&&bt.next(Et.retain-kt)}for(var xt=new vt(Ct);yt.hasNext()||bt.hasNext();)if(bt.peekType()==="insert")xt.push(bt.next());else if(yt.peekType()==="delete")xt.push(yt.next());else{var St=Math.min(yt.peekLength(),bt.peekLength()),Ot=yt.next(St),At=bt.next(St);if(typeof At.retain=="number"){var Tt={};typeof Ot.retain=="number"?Tt.retain=St:Tt.insert=Ot.insert;var $t=pt.attributes.compose(Ot.attributes,At.attributes,typeof Ot.retain=="number");if($t&&(Tt.attributes=$t),xt.push(Tt),!bt.hasNext()&&ft(xt.ops[xt.ops.length-1],Tt)){var Lt=new vt(yt.rest());return xt.concat(Lt).chop()}}else typeof At.delete=="number"&&typeof Ot.retain=="number"&&xt.push(At)}return xt.chop()},vt.prototype.concat=function(wt){var yt=new vt(this.ops.slice());return wt.ops.length>0&&(yt.push(wt.ops[0]),yt.ops=yt.ops.concat(wt.ops.slice(1))),yt},vt.prototype.diff=function(wt,yt){if(this.ops===wt.ops)return new vt;var bt=[this,wt].map(function(St){return St.map(function(Ot){if(Ot.insert!=null)return typeof Ot.insert=="string"?Ot.insert:gt;var At=St===wt?"on":"with";throw new Error("diff() called "+At+" non-document")}).join("")}),Ct=new vt,Et=dt(bt[0],bt[1],yt),kt=pt.iterator(this.ops),xt=pt.iterator(wt.ops);return Et.forEach(function(St){for(var Ot=St[1].length;Ot>0;){var At=0;switch(St[0]){case dt.INSERT:At=Math.min(xt.peekLength(),Ot),Ct.push(xt.next(At));break;case dt.DELETE:At=Math.min(Ot,kt.peekLength()),kt.next(At),Ct.delete(At);break;case dt.EQUAL:At=Math.min(kt.peekLength(),xt.peekLength(),Ot);var Tt=kt.next(At),$t=xt.next(At);ft(Tt.insert,$t.insert)?Ct.retain(At,pt.attributes.diff(Tt.attributes,$t.attributes)):Ct.push($t).delete(At);break}Ot-=At}}),Ct.chop()},vt.prototype.eachLine=function(wt,yt){yt=yt||`
`;for(var bt=pt.iterator(this.ops),Ct=new vt,Et=0;bt.hasNext();){if(bt.peekType()!=="insert")return;var kt=bt.peek(),xt=pt.length(kt)-bt.peekLength(),St=typeof kt.insert=="string"?kt.insert.indexOf(yt,xt)-xt:-1;if(St<0)Ct.push(bt.next());else if(St>0)Ct.push(bt.next(St));else{if(wt(Ct,bt.next(1).attributes||{},Et)===!1)return;Et+=1,Ct=new vt}}Ct.length()>0&&wt(Ct,{},Et)},vt.prototype.transform=function(wt,yt){if(yt=!!yt,typeof wt=="number")return this.transformPosition(wt,yt);for(var bt=pt.iterator(this.ops),Ct=pt.iterator(wt.ops),Et=new vt;bt.hasNext()||Ct.hasNext();)if(bt.peekType()==="insert"&&(yt||Ct.peekType()!=="insert"))Et.retain(pt.length(bt.next()));else if(Ct.peekType()==="insert")Et.push(Ct.next());else{var kt=Math.min(bt.peekLength(),Ct.peekLength()),xt=bt.next(kt),St=Ct.next(kt);if(xt.delete)continue;St.delete?Et.push(St):Et.retain(kt,pt.attributes.transform(xt.attributes,St.attributes,yt))}return Et.chop()},vt.prototype.transformPosition=function(wt,yt){yt=!!yt;for(var bt=pt.iterator(this.ops),Ct=0;bt.hasNext()&&Ct<=wt;){var Et=bt.peekLength(),kt=bt.peekType();if(bt.next(),kt==="delete"){wt-=Math.min(Et,wt-Ct);continue}else kt==="insert"&&(Ct<wt||!yt)&&(wt+=Et);Ct+=Et}return wt},lt.exports=vt},function(lt,ut){var ct=Object.prototype.hasOwnProperty,dt=Object.prototype.toString,ft=Object.defineProperty,mt=Object.getOwnPropertyDescriptor,pt=function(bt){return typeof Array.isArray=="function"?Array.isArray(bt):dt.call(bt)==="[object Array]"},gt=function(bt){if(!bt||dt.call(bt)!=="[object Object]")return!1;var Ct=ct.call(bt,"constructor"),Et=bt.constructor&&bt.constructor.prototype&&ct.call(bt.constructor.prototype,"isPrototypeOf");if(bt.constructor&&!Ct&&!Et)return!1;var kt;for(kt in bt);return typeof kt>"u"||ct.call(bt,kt)},vt=function(bt,Ct){ft&&Ct.name==="__proto__"?ft(bt,Ct.name,{enumerable:!0,configurable:!0,value:Ct.newValue,writable:!0}):bt[Ct.name]=Ct.newValue},wt=function(bt,Ct){if(Ct==="__proto__")if(ct.call(bt,Ct)){if(mt)return mt(bt,Ct).value}else return;return bt[Ct]};lt.exports=function yt(){var bt,Ct,Et,kt,xt,St,Ot=arguments[0],At=1,Tt=arguments.length,$t=!1;for(typeof Ot=="boolean"&&($t=Ot,Ot=arguments[1]||{},At=2),(Ot==null||typeof Ot!="object"&&typeof Ot!="function")&&(Ot={});At<Tt;++At)if(bt=arguments[At],bt!=null)for(Ct in bt)Et=wt(Ot,Ct),kt=wt(bt,Ct),Ot!==kt&&($t&&kt&&(gt(kt)||(xt=pt(kt)))?(xt?(xt=!1,St=Et&&pt(Et)?Et:[]):St=Et&&gt(Et)?Et:{},vt(Ot,{name:Ct,newValue:yt($t,St,kt)})):typeof kt<"u"&&vt(Ot,{name:Ct,newValue:kt}));return Ot}},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.BlockEmbed=ut.bubbleFormats=void 0;var dt=function(){function Mt(Ht,Vt){for(var Nt=0;Nt<Vt.length;Nt++){var Gt=Vt[Nt];Gt.enumerable=Gt.enumerable||!1,Gt.configurable=!0,"value"in Gt&&(Gt.writable=!0),Object.defineProperty(Ht,Gt.key,Gt)}}return function(Ht,Vt,Nt){return Vt&&Mt(Ht.prototype,Vt),Nt&&Mt(Ht,Nt),Ht}}(),ft=function Mt(Ht,Vt,Nt){Ht===null&&(Ht=Function.prototype);var Gt=Object.getOwnPropertyDescriptor(Ht,Vt);if(Gt===void 0){var tn=Object.getPrototypeOf(Ht);return tn===null?void 0:Mt(tn,Vt,Nt)}else{if("value"in Gt)return Gt.value;var ln=Gt.get;return ln===void 0?void 0:ln.call(Nt)}},mt=ct(3),pt=Ot(mt),gt=ct(2),vt=Ot(gt),wt=ct(0),yt=Ot(wt),bt=ct(16),Ct=Ot(bt),Et=ct(6),kt=Ot(Et),xt=ct(7),St=Ot(xt);function Ot(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}function At(Mt,Ht){if(!(Mt instanceof Ht))throw new TypeError("Cannot call a class as a function")}function Tt(Mt,Ht){if(!Mt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht&&(typeof Ht=="object"||typeof Ht=="function")?Ht:Mt}function $t(Mt,Ht){if(typeof Ht!="function"&&Ht!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ht);Mt.prototype=Object.create(Ht&&Ht.prototype,{constructor:{value:Mt,enumerable:!1,writable:!0,configurable:!0}}),Ht&&(Object.setPrototypeOf?Object.setPrototypeOf(Mt,Ht):Mt.__proto__=Ht)}var Lt=1,Rt=function(Mt){$t(Ht,Mt);function Ht(){return At(this,Ht),Tt(this,(Ht.__proto__||Object.getPrototypeOf(Ht)).apply(this,arguments))}return dt(Ht,[{key:"attach",value:function(){ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"attach",this).call(this),this.attributes=new yt.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new vt.default().insert(this.value(),(0,pt.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(Nt,Gt){var tn=yt.default.query(Nt,yt.default.Scope.BLOCK_ATTRIBUTE);tn!=null&&this.attributes.attribute(tn,Gt)}},{key:"formatAt",value:function(Nt,Gt,tn,ln){this.format(tn,ln)}},{key:"insertAt",value:function(Nt,Gt,tn){if(typeof Gt=="string"&&Gt.endsWith(`
`)){var ln=yt.default.create(It.blotName);this.parent.insertBefore(ln,Nt===0?this:this.next),ln.insertAt(0,Gt.slice(0,-1))}else ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"insertAt",this).call(this,Nt,Gt,tn)}}]),Ht}(yt.default.Embed);Rt.scope=yt.default.Scope.BLOCK_BLOT;var It=function(Mt){$t(Ht,Mt);function Ht(Vt){At(this,Ht);var Nt=Tt(this,(Ht.__proto__||Object.getPrototypeOf(Ht)).call(this,Vt));return Nt.cache={},Nt}return dt(Ht,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(yt.default.Leaf).reduce(function(Nt,Gt){return Gt.length()===0?Nt:Nt.insert(Gt.value(),Ft(Gt))},new vt.default).insert(`
`,Ft(this))),this.cache.delta}},{key:"deleteAt",value:function(Nt,Gt){ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"deleteAt",this).call(this,Nt,Gt),this.cache={}}},{key:"formatAt",value:function(Nt,Gt,tn,ln){Gt<=0||(yt.default.query(tn,yt.default.Scope.BLOCK)?Nt+Gt===this.length()&&this.format(tn,ln):ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"formatAt",this).call(this,Nt,Math.min(Gt,this.length()-Nt-1),tn,ln),this.cache={})}},{key:"insertAt",value:function(Nt,Gt,tn){if(tn!=null)return ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"insertAt",this).call(this,Nt,Gt,tn);if(Gt.length!==0){var ln=Gt.split(`
`),nn=ln.shift();nn.length>0&&(Nt<this.length()-1||this.children.tail==null?ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"insertAt",this).call(this,Math.min(Nt,this.length()-1),nn):this.children.tail.insertAt(this.children.tail.length(),nn),this.cache={});var on=this;ln.reduce(function(rn,Jt){return on=on.split(rn,!0),on.insertAt(0,Jt),Jt.length},Nt+nn.length)}}},{key:"insertBefore",value:function(Nt,Gt){var tn=this.children.head;ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"insertBefore",this).call(this,Nt,Gt),tn instanceof Ct.default&&tn.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"length",this).call(this)+Lt),this.cache.length}},{key:"moveChildren",value:function(Nt,Gt){ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"moveChildren",this).call(this,Nt,Gt),this.cache={}}},{key:"optimize",value:function(Nt){ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"optimize",this).call(this,Nt),this.cache={}}},{key:"path",value:function(Nt){return ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"path",this).call(this,Nt,!0)}},{key:"removeChild",value:function(Nt){ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"removeChild",this).call(this,Nt),this.cache={}}},{key:"split",value:function(Nt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Gt&&(Nt===0||Nt>=this.length()-Lt)){var tn=this.clone();return Nt===0?(this.parent.insertBefore(tn,this),this):(this.parent.insertBefore(tn,this.next),tn)}else{var ln=ft(Ht.prototype.__proto__||Object.getPrototypeOf(Ht.prototype),"split",this).call(this,Nt,Gt);return this.cache={},ln}}}]),Ht}(yt.default.Block);It.blotName="block",It.tagName="P",It.defaultChild="break",It.allowedChildren=[kt.default,yt.default.Embed,St.default];function Ft(Mt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Mt==null||(typeof Mt.formats=="function"&&(Ht=(0,pt.default)(Ht,Mt.formats())),Mt.parent==null||Mt.parent.blotName=="scroll"||Mt.parent.statics.scope!==Mt.statics.scope)?Ht:Ft(Mt.parent,Ht)}ut.bubbleFormats=Ft,ut.BlockEmbed=Rt,ut.default=It},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.overload=ut.expandConfig=void 0;var dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(on){return typeof on}:function(on){return on&&typeof Symbol=="function"&&on.constructor===Symbol&&on!==Symbol.prototype?"symbol":typeof on},ft=function(){function on(rn,Jt){var Zt=[],Wt=!0,jt=!1,Bt=void 0;try{for(var Dt=rn[Symbol.iterator](),zt;!(Wt=(zt=Dt.next()).done)&&(Zt.push(zt.value),!(Jt&&Zt.length===Jt));Wt=!0);}catch(Kt){jt=!0,Bt=Kt}finally{try{!Wt&&Dt.return&&Dt.return()}finally{if(jt)throw Bt}}return Zt}return function(rn,Jt){if(Array.isArray(rn))return rn;if(Symbol.iterator in Object(rn))return on(rn,Jt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),mt=function(){function on(rn,Jt){for(var Zt=0;Zt<Jt.length;Zt++){var Wt=Jt[Zt];Wt.enumerable=Wt.enumerable||!1,Wt.configurable=!0,"value"in Wt&&(Wt.writable=!0),Object.defineProperty(rn,Wt.key,Wt)}}return function(rn,Jt,Zt){return Jt&&on(rn.prototype,Jt),Zt&&on(rn,Zt),rn}}();ct(50);var pt=ct(2),gt=Ft(pt),vt=ct(14),wt=Ft(vt),yt=ct(8),bt=Ft(yt),Ct=ct(9),Et=Ft(Ct),kt=ct(0),xt=Ft(kt),St=ct(15),Ot=Ft(St),At=ct(3),Tt=Ft(At),$t=ct(10),Lt=Ft($t),Rt=ct(34),It=Ft(Rt);function Ft(on){return on&&on.__esModule?on:{default:on}}function Mt(on,rn,Jt){return rn in on?Object.defineProperty(on,rn,{value:Jt,enumerable:!0,configurable:!0,writable:!0}):on[rn]=Jt,on}function Ht(on,rn){if(!(on instanceof rn))throw new TypeError("Cannot call a class as a function")}var Vt=(0,Lt.default)("quill"),Nt=function(){mt(on,null,[{key:"debug",value:function(Jt){Jt===!0&&(Jt="log"),Lt.default.level(Jt)}},{key:"find",value:function(Jt){return Jt.__quill||xt.default.find(Jt)}},{key:"import",value:function(Jt){return this.imports[Jt]==null&&Vt.error("Cannot import "+Jt+". Are you sure it was registered?"),this.imports[Jt]}},{key:"register",value:function(Jt,Zt){var Wt=this,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof Jt!="string"){var Bt=Jt.attrName||Jt.blotName;typeof Bt=="string"?this.register("formats/"+Bt,Jt,Zt):Object.keys(Jt).forEach(function(Dt){Wt.register(Dt,Jt[Dt],Zt)})}else this.imports[Jt]!=null&&!jt&&Vt.warn("Overwriting "+Jt+" with",Zt),this.imports[Jt]=Zt,(Jt.startsWith("blots/")||Jt.startsWith("formats/"))&&Zt.blotName!=="abstract"?xt.default.register(Zt):Jt.startsWith("modules")&&typeof Zt.register=="function"&&Zt.register()}}]);function on(rn){var Jt=this,Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(Ht(this,on),this.options=Gt(rn,Zt),this.container=this.options.container,this.container==null)return Vt.error("Invalid Quill container",rn);this.options.debug&&on.debug(this.options.debug);var Wt=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new bt.default,this.scroll=xt.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new wt.default(this.scroll),this.selection=new Ot.default(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.theme.init(),this.emitter.on(bt.default.events.EDITOR_CHANGE,function(Bt){Bt===bt.default.events.TEXT_CHANGE&&Jt.root.classList.toggle("ql-blank",Jt.editor.isBlank())}),this.emitter.on(bt.default.events.SCROLL_UPDATE,function(Bt,Dt){var zt=Jt.selection.lastRange,Kt=zt&&zt.length===0?zt.index:void 0;tn.call(Jt,function(){return Jt.editor.update(null,Dt,Kt)},Bt)});var jt=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+Wt+"<p><br></p></div>");this.setContents(jt),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return mt(on,[{key:"addContainer",value:function(Jt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof Jt=="string"){var Wt=Jt;Jt=document.createElement("div"),Jt.classList.add(Wt)}return this.container.insertBefore(Jt,Zt),Jt}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(Jt,Zt,Wt){var jt=this,Bt=ln(Jt,Zt,Wt),Dt=ft(Bt,4);return Jt=Dt[0],Zt=Dt[1],Wt=Dt[3],tn.call(this,function(){return jt.editor.deleteText(Jt,Zt)},Wt,Jt,-1*Zt)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(Jt),this.container.classList.toggle("ql-disabled",!Jt)}},{key:"focus",value:function(){var Jt=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=Jt,this.scrollIntoView()}},{key:"format",value:function(Jt,Zt){var Wt=this,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:bt.default.sources.API;return tn.call(this,function(){var Bt=Wt.getSelection(!0),Dt=new gt.default;if(Bt==null)return Dt;if(xt.default.query(Jt,xt.default.Scope.BLOCK))Dt=Wt.editor.formatLine(Bt.index,Bt.length,Mt({},Jt,Zt));else{if(Bt.length===0)return Wt.selection.format(Jt,Zt),Dt;Dt=Wt.editor.formatText(Bt.index,Bt.length,Mt({},Jt,Zt))}return Wt.setSelection(Bt,bt.default.sources.SILENT),Dt},jt)}},{key:"formatLine",value:function(Jt,Zt,Wt,jt,Bt){var Dt=this,zt=void 0,Kt=ln(Jt,Zt,Wt,jt,Bt),en=ft(Kt,4);return Jt=en[0],Zt=en[1],zt=en[2],Bt=en[3],tn.call(this,function(){return Dt.editor.formatLine(Jt,Zt,zt)},Bt,Jt,0)}},{key:"formatText",value:function(Jt,Zt,Wt,jt,Bt){var Dt=this,zt=void 0,Kt=ln(Jt,Zt,Wt,jt,Bt),en=ft(Kt,4);return Jt=en[0],Zt=en[1],zt=en[2],Bt=en[3],tn.call(this,function(){return Dt.editor.formatText(Jt,Zt,zt)},Bt,Jt,0)}},{key:"getBounds",value:function(Jt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Wt=void 0;typeof Jt=="number"?Wt=this.selection.getBounds(Jt,Zt):Wt=this.selection.getBounds(Jt.index,Jt.length);var jt=this.container.getBoundingClientRect();return{bottom:Wt.bottom-jt.top,height:Wt.height,left:Wt.left-jt.left,right:Wt.right-jt.left,top:Wt.top-jt.top,width:Wt.width}}},{key:"getContents",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Jt,Wt=ln(Jt,Zt),jt=ft(Wt,2);return Jt=jt[0],Zt=jt[1],this.editor.getContents(Jt,Zt)}},{key:"getFormat",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof Jt=="number"?this.editor.getFormat(Jt,Zt):this.editor.getFormat(Jt.index,Jt.length)}},{key:"getIndex",value:function(Jt){return Jt.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(Jt){return this.scroll.leaf(Jt)}},{key:"getLine",value:function(Jt){return this.scroll.line(Jt)}},{key:"getLines",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof Jt!="number"?this.scroll.lines(Jt.index,Jt.length):this.scroll.lines(Jt,Zt)}},{key:"getModule",value:function(Jt){return this.theme.modules[Jt]}},{key:"getSelection",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Jt&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-Jt,Wt=ln(Jt,Zt),jt=ft(Wt,2);return Jt=jt[0],Zt=jt[1],this.editor.getText(Jt,Zt)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(Jt,Zt,Wt){var jt=this,Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:on.sources.API;return tn.call(this,function(){return jt.editor.insertEmbed(Jt,Zt,Wt)},Bt,Jt)}},{key:"insertText",value:function(Jt,Zt,Wt,jt,Bt){var Dt=this,zt=void 0,Kt=ln(Jt,0,Wt,jt,Bt),en=ft(Kt,4);return Jt=en[0],zt=en[2],Bt=en[3],tn.call(this,function(){return Dt.editor.insertText(Jt,Zt,zt)},Bt,Jt,Zt.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(Jt,Zt,Wt){this.clipboard.dangerouslyPasteHTML(Jt,Zt,Wt)}},{key:"removeFormat",value:function(Jt,Zt,Wt){var jt=this,Bt=ln(Jt,Zt,Wt),Dt=ft(Bt,4);return Jt=Dt[0],Zt=Dt[1],Wt=Dt[3],tn.call(this,function(){return jt.editor.removeFormat(Jt,Zt)},Wt,Jt)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(Jt){var Zt=this,Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt.default.sources.API;return tn.call(this,function(){Jt=new gt.default(Jt);var jt=Zt.getLength(),Bt=Zt.editor.deleteText(0,jt),Dt=Zt.editor.applyDelta(Jt),zt=Dt.ops[Dt.ops.length-1];zt!=null&&typeof zt.insert=="string"&&zt.insert[zt.insert.length-1]===`
`&&(Zt.editor.deleteText(Zt.getLength()-1,1),Dt.delete(1));var Kt=Bt.compose(Dt);return Kt},Wt)}},{key:"setSelection",value:function(Jt,Zt,Wt){if(Jt==null)this.selection.setRange(null,Zt||on.sources.API);else{var jt=ln(Jt,Zt,Wt),Bt=ft(jt,4);Jt=Bt[0],Zt=Bt[1],Wt=Bt[3],this.selection.setRange(new St.Range(Jt,Zt),Wt),Wt!==bt.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(Jt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt.default.sources.API,Wt=new gt.default().insert(Jt);return this.setContents(Wt,Zt)}},{key:"update",value:function(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bt.default.sources.USER,Zt=this.scroll.update(Jt);return this.selection.update(Jt),Zt}},{key:"updateContents",value:function(Jt){var Zt=this,Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bt.default.sources.API;return tn.call(this,function(){return Jt=new gt.default(Jt),Zt.editor.applyDelta(Jt,Wt)},Wt,!0)}}]),on}();Nt.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},Nt.events=bt.default.events,Nt.sources=bt.default.sources,Nt.version="1.3.7",Nt.imports={delta:gt.default,parchment:xt.default,"core/module":Et.default,"core/theme":It.default};function Gt(on,rn){if(rn=(0,Tt.default)(!0,{container:on,modules:{clipboard:!0,keyboard:!0,history:!0}},rn),!rn.theme||rn.theme===Nt.DEFAULTS.theme)rn.theme=It.default;else if(rn.theme=Nt.import("themes/"+rn.theme),rn.theme==null)throw new Error("Invalid theme "+rn.theme+". Did you register it?");var Jt=(0,Tt.default)(!0,{},rn.theme.DEFAULTS);[Jt,rn].forEach(function(jt){jt.modules=jt.modules||{},Object.keys(jt.modules).forEach(function(Bt){jt.modules[Bt]===!0&&(jt.modules[Bt]={})})});var Zt=Object.keys(Jt.modules).concat(Object.keys(rn.modules)),Wt=Zt.reduce(function(jt,Bt){var Dt=Nt.import("modules/"+Bt);return Dt==null?Vt.error("Cannot load "+Bt+" module. Are you sure you registered it?"):jt[Bt]=Dt.DEFAULTS||{},jt},{});return rn.modules!=null&&rn.modules.toolbar&&rn.modules.toolbar.constructor!==Object&&(rn.modules.toolbar={container:rn.modules.toolbar}),rn=(0,Tt.default)(!0,{},Nt.DEFAULTS,{modules:Wt},Jt,rn),["bounds","container","scrollingContainer"].forEach(function(jt){typeof rn[jt]=="string"&&(rn[jt]=document.querySelector(rn[jt]))}),rn.modules=Object.keys(rn.modules).reduce(function(jt,Bt){return rn.modules[Bt]&&(jt[Bt]=rn.modules[Bt]),jt},{}),rn}function tn(on,rn,Jt,Zt){if(this.options.strict&&!this.isEnabled()&&rn===bt.default.sources.USER)return new gt.default;var Wt=Jt==null?null:this.getSelection(),jt=this.editor.delta,Bt=on();if(Wt!=null&&(Jt===!0&&(Jt=Wt.index),Zt==null?Wt=nn(Wt,Bt,rn):Zt!==0&&(Wt=nn(Wt,Jt,Zt,rn)),this.setSelection(Wt,bt.default.sources.SILENT)),Bt.length()>0){var Dt,zt=[bt.default.events.TEXT_CHANGE,Bt,jt,rn];if((Dt=this.emitter).emit.apply(Dt,[bt.default.events.EDITOR_CHANGE].concat(zt)),rn!==bt.default.sources.SILENT){var Kt;(Kt=this.emitter).emit.apply(Kt,zt)}}return Bt}function ln(on,rn,Jt,Zt,Wt){var jt={};return typeof on.index=="number"&&typeof on.length=="number"?typeof rn!="number"?(Wt=Zt,Zt=Jt,Jt=rn,rn=on.length,on=on.index):(rn=on.length,on=on.index):typeof rn!="number"&&(Wt=Zt,Zt=Jt,Jt=rn,rn=0),(typeof Jt>"u"?"undefined":dt(Jt))==="object"?(jt=Jt,Wt=Zt):typeof Jt=="string"&&(Zt!=null?jt[Jt]=Zt:Wt=Jt),Wt=Wt||bt.default.sources.API,[on,rn,jt,Wt]}function nn(on,rn,Jt,Zt){if(on==null)return null;var Wt=void 0,jt=void 0;if(rn instanceof gt.default){var Bt=[on.index,on.index+on.length].map(function(en){return rn.transformPosition(en,Zt!==bt.default.sources.USER)}),Dt=ft(Bt,2);Wt=Dt[0],jt=Dt[1]}else{var zt=[on.index,on.index+on.length].map(function(en){return en<rn||en===rn&&Zt===bt.default.sources.USER?en:Jt>=0?en+Jt:Math.max(rn,en+Jt)}),Kt=ft(zt,2);Wt=Kt[0],jt=Kt[1]}return new St.Range(Wt,jt-Wt)}ut.expandConfig=Gt,ut.overload=ln,ut.default=Nt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function kt(xt,St){for(var Ot=0;Ot<St.length;Ot++){var At=St[Ot];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(xt,At.key,At)}}return function(xt,St,Ot){return St&&kt(xt.prototype,St),Ot&&kt(xt,Ot),xt}}(),ft=function kt(xt,St,Ot){xt===null&&(xt=Function.prototype);var At=Object.getOwnPropertyDescriptor(xt,St);if(At===void 0){var Tt=Object.getPrototypeOf(xt);return Tt===null?void 0:kt(Tt,St,Ot)}else{if("value"in At)return At.value;var $t=At.get;return $t===void 0?void 0:$t.call(Ot)}},mt=ct(7),pt=wt(mt),gt=ct(0),vt=wt(gt);function wt(kt){return kt&&kt.__esModule?kt:{default:kt}}function yt(kt,xt){if(!(kt instanceof xt))throw new TypeError("Cannot call a class as a function")}function bt(kt,xt){if(!kt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xt&&(typeof xt=="object"||typeof xt=="function")?xt:kt}function Ct(kt,xt){if(typeof xt!="function"&&xt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xt);kt.prototype=Object.create(xt&&xt.prototype,{constructor:{value:kt,enumerable:!1,writable:!0,configurable:!0}}),xt&&(Object.setPrototypeOf?Object.setPrototypeOf(kt,xt):kt.__proto__=xt)}var Et=function(kt){Ct(xt,kt);function xt(){return yt(this,xt),bt(this,(xt.__proto__||Object.getPrototypeOf(xt)).apply(this,arguments))}return dt(xt,[{key:"formatAt",value:function(Ot,At,Tt,$t){if(xt.compare(this.statics.blotName,Tt)<0&&vt.default.query(Tt,vt.default.Scope.BLOT)){var Lt=this.isolate(Ot,At);$t&&Lt.wrap(Tt,$t)}else ft(xt.prototype.__proto__||Object.getPrototypeOf(xt.prototype),"formatAt",this).call(this,Ot,At,Tt,$t)}},{key:"optimize",value:function(Ot){if(ft(xt.prototype.__proto__||Object.getPrototypeOf(xt.prototype),"optimize",this).call(this,Ot),this.parent instanceof xt&&xt.compare(this.statics.blotName,this.parent.statics.blotName)>0){var At=this.parent.isolate(this.offset(),this.length());this.moveChildren(At),At.wrap(this)}}}],[{key:"compare",value:function(Ot,At){var Tt=xt.order.indexOf(Ot),$t=xt.order.indexOf(At);return Tt>=0||$t>=0?Tt-$t:Ot===At?0:Ot<At?-1:1}}]),xt}(vt.default.Inline);Et.allowedChildren=[Et,vt.default.Embed,pt.default],Et.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],ut.default=Et},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(0),ft=mt(dt);function mt(yt){return yt&&yt.__esModule?yt:{default:yt}}function pt(yt,bt){if(!(yt instanceof bt))throw new TypeError("Cannot call a class as a function")}function gt(yt,bt){if(!yt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt&&(typeof bt=="object"||typeof bt=="function")?bt:yt}function vt(yt,bt){if(typeof bt!="function"&&bt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof bt);yt.prototype=Object.create(bt&&bt.prototype,{constructor:{value:yt,enumerable:!1,writable:!0,configurable:!0}}),bt&&(Object.setPrototypeOf?Object.setPrototypeOf(yt,bt):yt.__proto__=bt)}var wt=function(yt){vt(bt,yt);function bt(){return pt(this,bt),gt(this,(bt.__proto__||Object.getPrototypeOf(bt)).apply(this,arguments))}return bt}(ft.default.Text);ut.default=wt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function St(Ot,At){for(var Tt=0;Tt<At.length;Tt++){var $t=At[Tt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(Ot,$t.key,$t)}}return function(Ot,At,Tt){return At&&St(Ot.prototype,At),Tt&&St(Ot,Tt),Ot}}(),ft=function St(Ot,At,Tt){Ot===null&&(Ot=Function.prototype);var $t=Object.getOwnPropertyDescriptor(Ot,At);if($t===void 0){var Lt=Object.getPrototypeOf(Ot);return Lt===null?void 0:St(Lt,At,Tt)}else{if("value"in $t)return $t.value;var Rt=$t.get;return Rt===void 0?void 0:Rt.call(Tt)}},mt=ct(54),pt=wt(mt),gt=ct(10),vt=wt(gt);function wt(St){return St&&St.__esModule?St:{default:St}}function yt(St,Ot){if(!(St instanceof Ot))throw new TypeError("Cannot call a class as a function")}function bt(St,Ot){if(!St)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ot&&(typeof Ot=="object"||typeof Ot=="function")?Ot:St}function Ct(St,Ot){if(typeof Ot!="function"&&Ot!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ot);St.prototype=Object.create(Ot&&Ot.prototype,{constructor:{value:St,enumerable:!1,writable:!0,configurable:!0}}),Ot&&(Object.setPrototypeOf?Object.setPrototypeOf(St,Ot):St.__proto__=Ot)}var Et=(0,vt.default)("quill:events"),kt=["selectionchange","mousedown","mouseup","click"];kt.forEach(function(St){document.addEventListener(St,function(){for(var Ot=arguments.length,At=Array(Ot),Tt=0;Tt<Ot;Tt++)At[Tt]=arguments[Tt];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function($t){if($t.__quill&&$t.__quill.emitter){var Lt;(Lt=$t.__quill.emitter).handleDOM.apply(Lt,At)}})})});var xt=function(St){Ct(Ot,St);function Ot(){yt(this,Ot);var At=bt(this,(Ot.__proto__||Object.getPrototypeOf(Ot)).call(this));return At.listeners={},At.on("error",Et.error),At}return dt(Ot,[{key:"emit",value:function(){Et.log.apply(Et,arguments),ft(Ot.prototype.__proto__||Object.getPrototypeOf(Ot.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(Tt){for(var $t=arguments.length,Lt=Array($t>1?$t-1:0),Rt=1;Rt<$t;Rt++)Lt[Rt-1]=arguments[Rt];(this.listeners[Tt.type]||[]).forEach(function(It){var Ft=It.node,Mt=It.handler;(Tt.target===Ft||Ft.contains(Tt.target))&&Mt.apply(void 0,[Tt].concat(Lt))})}},{key:"listenDOM",value:function(Tt,$t,Lt){this.listeners[Tt]||(this.listeners[Tt]=[]),this.listeners[Tt].push({node:$t,handler:Lt})}}]),Ot}(pt.default);xt.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},xt.sources={API:"api",SILENT:"silent",USER:"user"},ut.default=xt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});function dt(mt,pt){if(!(mt instanceof pt))throw new TypeError("Cannot call a class as a function")}var ft=function mt(pt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};dt(this,mt),this.quill=pt,this.options=gt};ft.DEFAULTS={},ut.default=ft},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=["error","warn","log","info"],ft="warn";function mt(gt){if(dt.indexOf(gt)<=dt.indexOf(ft)){for(var vt,wt=arguments.length,yt=Array(wt>1?wt-1:0),bt=1;bt<wt;bt++)yt[bt-1]=arguments[bt];(vt=console)[gt].apply(vt,yt)}}function pt(gt){return dt.reduce(function(vt,wt){return vt[wt]=mt.bind(console,wt,gt),vt},{})}mt.level=pt.level=function(gt){ft=gt},ut.default=pt},function(lt,ut,ct){var dt=Array.prototype.slice,ft=ct(52),mt=ct(53),pt=lt.exports=function(yt,bt,Ct){return Ct||(Ct={}),yt===bt?!0:yt instanceof Date&&bt instanceof Date?yt.getTime()===bt.getTime():!yt||!bt||typeof yt!="object"&&typeof bt!="object"?Ct.strict?yt===bt:yt==bt:wt(yt,bt,Ct)};function gt(yt){return yt==null}function vt(yt){return!(!yt||typeof yt!="object"||typeof yt.length!="number"||typeof yt.copy!="function"||typeof yt.slice!="function"||yt.length>0&&typeof yt[0]!="number")}function wt(yt,bt,Ct){var Et,kt;if(gt(yt)||gt(bt)||yt.prototype!==bt.prototype)return!1;if(mt(yt))return mt(bt)?(yt=dt.call(yt),bt=dt.call(bt),pt(yt,bt,Ct)):!1;if(vt(yt)){if(!vt(bt)||yt.length!==bt.length)return!1;for(Et=0;Et<yt.length;Et++)if(yt[Et]!==bt[Et])return!1;return!0}try{var xt=ft(yt),St=ft(bt)}catch{return!1}if(xt.length!=St.length)return!1;for(xt.sort(),St.sort(),Et=xt.length-1;Et>=0;Et--)if(xt[Et]!=St[Et])return!1;for(Et=xt.length-1;Et>=0;Et--)if(kt=xt[Et],!pt(yt[kt],bt[kt],Ct))return!1;return typeof yt==typeof bt}},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(1),ft=function(){function mt(pt,gt,vt){vt===void 0&&(vt={}),this.attrName=pt,this.keyName=gt;var wt=dt.Scope.TYPE&dt.Scope.ATTRIBUTE;vt.scope!=null?this.scope=vt.scope&dt.Scope.LEVEL|wt:this.scope=dt.Scope.ATTRIBUTE,vt.whitelist!=null&&(this.whitelist=vt.whitelist)}return mt.keys=function(pt){return[].map.call(pt.attributes,function(gt){return gt.name})},mt.prototype.add=function(pt,gt){return this.canAdd(pt,gt)?(pt.setAttribute(this.keyName,gt),!0):!1},mt.prototype.canAdd=function(pt,gt){var vt=dt.query(pt,dt.Scope.BLOT&(this.scope|dt.Scope.TYPE));return vt==null?!1:this.whitelist==null?!0:typeof gt=="string"?this.whitelist.indexOf(gt.replace(/["']/g,""))>-1:this.whitelist.indexOf(gt)>-1},mt.prototype.remove=function(pt){pt.removeAttribute(this.keyName)},mt.prototype.value=function(pt){var gt=pt.getAttribute(this.keyName);return this.canAdd(pt,gt)&&gt?gt:""},mt}();ut.default=ft},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.Code=void 0;var dt=function(){function Rt(It,Ft){var Mt=[],Ht=!0,Vt=!1,Nt=void 0;try{for(var Gt=It[Symbol.iterator](),tn;!(Ht=(tn=Gt.next()).done)&&(Mt.push(tn.value),!(Ft&&Mt.length===Ft));Ht=!0);}catch(ln){Vt=!0,Nt=ln}finally{try{!Ht&&Gt.return&&Gt.return()}finally{if(Vt)throw Nt}}return Mt}return function(It,Ft){if(Array.isArray(It))return It;if(Symbol.iterator in Object(It))return Rt(It,Ft);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ft=function(){function Rt(It,Ft){for(var Mt=0;Mt<Ft.length;Mt++){var Ht=Ft[Mt];Ht.enumerable=Ht.enumerable||!1,Ht.configurable=!0,"value"in Ht&&(Ht.writable=!0),Object.defineProperty(It,Ht.key,Ht)}}return function(It,Ft,Mt){return Ft&&Rt(It.prototype,Ft),Mt&&Rt(It,Mt),It}}(),mt=function Rt(It,Ft,Mt){It===null&&(It=Function.prototype);var Ht=Object.getOwnPropertyDescriptor(It,Ft);if(Ht===void 0){var Vt=Object.getPrototypeOf(It);return Vt===null?void 0:Rt(Vt,Ft,Mt)}else{if("value"in Ht)return Ht.value;var Nt=Ht.get;return Nt===void 0?void 0:Nt.call(Mt)}},pt=ct(2),gt=St(pt),vt=ct(0),wt=St(vt),yt=ct(4),bt=St(yt),Ct=ct(6),Et=St(Ct),kt=ct(7),xt=St(kt);function St(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}}function Ot(Rt,It){if(!(Rt instanceof It))throw new TypeError("Cannot call a class as a function")}function At(Rt,It){if(!Rt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return It&&(typeof It=="object"||typeof It=="function")?It:Rt}function Tt(Rt,It){if(typeof It!="function"&&It!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof It);Rt.prototype=Object.create(It&&It.prototype,{constructor:{value:Rt,enumerable:!1,writable:!0,configurable:!0}}),It&&(Object.setPrototypeOf?Object.setPrototypeOf(Rt,It):Rt.__proto__=It)}var $t=function(Rt){Tt(It,Rt);function It(){return Ot(this,It),At(this,(It.__proto__||Object.getPrototypeOf(It)).apply(this,arguments))}return It}(Et.default);$t.blotName="code",$t.tagName="CODE";var Lt=function(Rt){Tt(It,Rt);function It(){return Ot(this,It),At(this,(It.__proto__||Object.getPrototypeOf(It)).apply(this,arguments))}return ft(It,[{key:"delta",value:function(){var Mt=this,Ht=this.domNode.textContent;return Ht.endsWith(`
`)&&(Ht=Ht.slice(0,-1)),Ht.split(`
`).reduce(function(Vt,Nt){return Vt.insert(Nt).insert(`
`,Mt.formats())},new gt.default)}},{key:"format",value:function(Mt,Ht){if(!(Mt===this.statics.blotName&&Ht)){var Vt=this.descendant(xt.default,this.length()-1),Nt=dt(Vt,1),Gt=Nt[0];Gt!=null&&Gt.deleteAt(Gt.length()-1,1),mt(It.prototype.__proto__||Object.getPrototypeOf(It.prototype),"format",this).call(this,Mt,Ht)}}},{key:"formatAt",value:function(Mt,Ht,Vt,Nt){if(Ht!==0&&!(wt.default.query(Vt,wt.default.Scope.BLOCK)==null||Vt===this.statics.blotName&&Nt===this.statics.formats(this.domNode))){var Gt=this.newlineIndex(Mt);if(!(Gt<0||Gt>=Mt+Ht)){var tn=this.newlineIndex(Mt,!0)+1,ln=Gt-tn+1,nn=this.isolate(tn,ln),on=nn.next;nn.format(Vt,Nt),on instanceof It&&on.formatAt(0,Mt-tn+Ht-ln,Vt,Nt)}}}},{key:"insertAt",value:function(Mt,Ht,Vt){if(Vt==null){var Nt=this.descendant(xt.default,Mt),Gt=dt(Nt,2),tn=Gt[0],ln=Gt[1];tn.insertAt(ln,Ht)}}},{key:"length",value:function(){var Mt=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
`)?Mt:Mt+1}},{key:"newlineIndex",value:function(Mt){var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ht)return this.domNode.textContent.slice(0,Mt).lastIndexOf(`
`);var Vt=this.domNode.textContent.slice(Mt).indexOf(`
`);return Vt>-1?Mt+Vt:-1}},{key:"optimize",value:function(Mt){this.domNode.textContent.endsWith(`
`)||this.appendChild(wt.default.create("text",`
`)),mt(It.prototype.__proto__||Object.getPrototypeOf(It.prototype),"optimize",this).call(this,Mt);var Ht=this.next;Ht!=null&&Ht.prev===this&&Ht.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===Ht.statics.formats(Ht.domNode)&&(Ht.optimize(Mt),Ht.moveChildren(this),Ht.remove())}},{key:"replace",value:function(Mt){mt(It.prototype.__proto__||Object.getPrototypeOf(It.prototype),"replace",this).call(this,Mt),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(Ht){var Vt=wt.default.find(Ht);Vt==null?Ht.parentNode.removeChild(Ht):Vt instanceof wt.default.Embed?Vt.remove():Vt.unwrap()})}}],[{key:"create",value:function(Mt){var Ht=mt(It.__proto__||Object.getPrototypeOf(It),"create",this).call(this,Mt);return Ht.setAttribute("spellcheck",!1),Ht}},{key:"formats",value:function(){return!0}}]),It}(bt.default);Lt.blotName="code-block",Lt.tagName="PRE",Lt.TAB="  ",ut.Code=$t,ut.default=Lt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(on){return typeof on}:function(on){return on&&typeof Symbol=="function"&&on.constructor===Symbol&&on!==Symbol.prototype?"symbol":typeof on},ft=function(){function on(rn,Jt){var Zt=[],Wt=!0,jt=!1,Bt=void 0;try{for(var Dt=rn[Symbol.iterator](),zt;!(Wt=(zt=Dt.next()).done)&&(Zt.push(zt.value),!(Jt&&Zt.length===Jt));Wt=!0);}catch(Kt){jt=!0,Bt=Kt}finally{try{!Wt&&Dt.return&&Dt.return()}finally{if(jt)throw Bt}}return Zt}return function(rn,Jt){if(Array.isArray(rn))return rn;if(Symbol.iterator in Object(rn))return on(rn,Jt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),mt=function(){function on(rn,Jt){for(var Zt=0;Zt<Jt.length;Zt++){var Wt=Jt[Zt];Wt.enumerable=Wt.enumerable||!1,Wt.configurable=!0,"value"in Wt&&(Wt.writable=!0),Object.defineProperty(rn,Wt.key,Wt)}}return function(rn,Jt,Zt){return Jt&&on(rn.prototype,Jt),Zt&&on(rn,Zt),rn}}(),pt=ct(2),gt=Ht(pt),vt=ct(20),wt=Ht(vt),yt=ct(0),bt=Ht(yt),Ct=ct(13),Et=Ht(Ct),kt=ct(24),xt=Ht(kt),St=ct(4),Ot=Ht(St),At=ct(16),Tt=Ht(At),$t=ct(21),Lt=Ht($t),Rt=ct(11),It=Ht(Rt),Ft=ct(3),Mt=Ht(Ft);function Ht(on){return on&&on.__esModule?on:{default:on}}function Vt(on,rn,Jt){return rn in on?Object.defineProperty(on,rn,{value:Jt,enumerable:!0,configurable:!0,writable:!0}):on[rn]=Jt,on}function Nt(on,rn){if(!(on instanceof rn))throw new TypeError("Cannot call a class as a function")}var Gt=/^[ -~]*$/,tn=function(){function on(rn){Nt(this,on),this.scroll=rn,this.delta=this.getDelta()}return mt(on,[{key:"applyDelta",value:function(Jt){var Zt=this,Wt=!1;this.scroll.update();var jt=this.scroll.length();return this.scroll.batchStart(),Jt=nn(Jt),Jt.reduce(function(Bt,Dt){var zt=Dt.retain||Dt.delete||Dt.insert.length||1,Kt=Dt.attributes||{};if(Dt.insert!=null){if(typeof Dt.insert=="string"){var en=Dt.insert;en.endsWith(`
`)&&Wt&&(Wt=!1,en=en.slice(0,-1)),Bt>=jt&&!en.endsWith(`
`)&&(Wt=!0),Zt.scroll.insertAt(Bt,en);var sn=Zt.scroll.line(Bt),cn=ft(sn,2),bn=cn[0],Tn=cn[1],kn=(0,Mt.default)({},(0,St.bubbleFormats)(bn));if(bn instanceof Ot.default){var In=bn.descendant(bt.default.Leaf,Tn),Hn=ft(In,1),Fn=Hn[0];kn=(0,Mt.default)(kn,(0,St.bubbleFormats)(Fn))}Kt=wt.default.attributes.diff(kn,Kt)||{}}else if(dt(Dt.insert)==="object"){var wn=Object.keys(Dt.insert)[0];if(wn==null)return Bt;Zt.scroll.insertAt(Bt,wn,Dt.insert[wn])}jt+=zt}return Object.keys(Kt).forEach(function(Mn){Zt.scroll.formatAt(Bt,zt,Mn,Kt[Mn])}),Bt+zt},0),Jt.reduce(function(Bt,Dt){return typeof Dt.delete=="number"?(Zt.scroll.deleteAt(Bt,Dt.delete),Bt):Bt+(Dt.retain||Dt.insert.length||1)},0),this.scroll.batchEnd(),this.update(Jt)}},{key:"deleteText",value:function(Jt,Zt){return this.scroll.deleteAt(Jt,Zt),this.update(new gt.default().retain(Jt).delete(Zt))}},{key:"formatLine",value:function(Jt,Zt){var Wt=this,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(jt).forEach(function(Bt){if(!(Wt.scroll.whitelist!=null&&!Wt.scroll.whitelist[Bt])){var Dt=Wt.scroll.lines(Jt,Math.max(Zt,1)),zt=Zt;Dt.forEach(function(Kt){var en=Kt.length();if(!(Kt instanceof Et.default))Kt.format(Bt,jt[Bt]);else{var sn=Jt-Kt.offset(Wt.scroll),cn=Kt.newlineIndex(sn+zt)-sn+1;Kt.formatAt(sn,cn,Bt,jt[Bt])}zt-=en})}}),this.scroll.optimize(),this.update(new gt.default().retain(Jt).retain(Zt,(0,Lt.default)(jt)))}},{key:"formatText",value:function(Jt,Zt){var Wt=this,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(jt).forEach(function(Bt){Wt.scroll.formatAt(Jt,Zt,Bt,jt[Bt])}),this.update(new gt.default().retain(Jt).retain(Zt,(0,Lt.default)(jt)))}},{key:"getContents",value:function(Jt,Zt){return this.delta.slice(Jt,Jt+Zt)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(Jt,Zt){return Jt.concat(Zt.delta())},new gt.default)}},{key:"getFormat",value:function(Jt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Wt=[],jt=[];Zt===0?this.scroll.path(Jt).forEach(function(Dt){var zt=ft(Dt,1),Kt=zt[0];Kt instanceof Ot.default?Wt.push(Kt):Kt instanceof bt.default.Leaf&&jt.push(Kt)}):(Wt=this.scroll.lines(Jt,Zt),jt=this.scroll.descendants(bt.default.Leaf,Jt,Zt));var Bt=[Wt,jt].map(function(Dt){if(Dt.length===0)return{};for(var zt=(0,St.bubbleFormats)(Dt.shift());Object.keys(zt).length>0;){var Kt=Dt.shift();if(Kt==null)return zt;zt=ln((0,St.bubbleFormats)(Kt),zt)}return zt});return Mt.default.apply(Mt.default,Bt)}},{key:"getText",value:function(Jt,Zt){return this.getContents(Jt,Zt).filter(function(Wt){return typeof Wt.insert=="string"}).map(function(Wt){return Wt.insert}).join("")}},{key:"insertEmbed",value:function(Jt,Zt,Wt){return this.scroll.insertAt(Jt,Zt,Wt),this.update(new gt.default().retain(Jt).insert(Vt({},Zt,Wt)))}},{key:"insertText",value:function(Jt,Zt){var Wt=this,jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Zt=Zt.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(Jt,Zt),Object.keys(jt).forEach(function(Bt){Wt.scroll.formatAt(Jt,Zt.length,Bt,jt[Bt])}),this.update(new gt.default().retain(Jt).insert(Zt,(0,Lt.default)(jt)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var Jt=this.scroll.children.head;return Jt.statics.blotName!==Ot.default.blotName||Jt.children.length>1?!1:Jt.children.head instanceof Tt.default}},{key:"removeFormat",value:function(Jt,Zt){var Wt=this.getText(Jt,Zt),jt=this.scroll.line(Jt+Zt),Bt=ft(jt,2),Dt=Bt[0],zt=Bt[1],Kt=0,en=new gt.default;Dt!=null&&(Dt instanceof Et.default?Kt=Dt.newlineIndex(zt)-zt+1:Kt=Dt.length()-zt,en=Dt.delta().slice(zt,zt+Kt-1).insert(`
`));var sn=this.getContents(Jt,Zt+Kt),cn=sn.diff(new gt.default().insert(Wt).concat(en)),bn=new gt.default().retain(Jt).concat(cn);return this.applyDelta(bn)}},{key:"update",value:function(Jt){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,jt=this.delta;if(Zt.length===1&&Zt[0].type==="characterData"&&Zt[0].target.data.match(Gt)&&bt.default.find(Zt[0].target)){var Bt=bt.default.find(Zt[0].target),Dt=(0,St.bubbleFormats)(Bt),zt=Bt.offset(this.scroll),Kt=Zt[0].oldValue.replace(xt.default.CONTENTS,""),en=new gt.default().insert(Kt),sn=new gt.default().insert(Bt.value()),cn=new gt.default().retain(zt).concat(en.diff(sn,Wt));Jt=cn.reduce(function(bn,Tn){return Tn.insert?bn.insert(Tn.insert,Dt):bn.push(Tn)},new gt.default),this.delta=jt.compose(Jt)}else this.delta=this.getDelta(),(!Jt||!(0,It.default)(jt.compose(Jt),this.delta))&&(Jt=jt.diff(this.delta,Wt));return Jt}}]),on}();function ln(on,rn){return Object.keys(rn).reduce(function(Jt,Zt){return on[Zt]==null||(rn[Zt]===on[Zt]?Jt[Zt]=rn[Zt]:Array.isArray(rn[Zt])?rn[Zt].indexOf(on[Zt])<0&&(Jt[Zt]=rn[Zt].concat([on[Zt]])):Jt[Zt]=[rn[Zt],on[Zt]]),Jt},{})}function nn(on){return on.reduce(function(rn,Jt){if(Jt.insert===1){var Zt=(0,Lt.default)(Jt.attributes);return delete Zt.image,rn.insert({image:Jt.attributes.image},Zt)}if(Jt.attributes!=null&&(Jt.attributes.list===!0||Jt.attributes.bullet===!0)&&(Jt=(0,Lt.default)(Jt),Jt.attributes.list?Jt.attributes.list="ordered":(Jt.attributes.list="bullet",delete Jt.attributes.bullet)),typeof Jt.insert=="string"){var Wt=Jt.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return rn.insert(Wt,Jt.attributes)}return rn.push(Jt)},new gt.default)}ut.default=tn},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.Range=void 0;var dt=function(){function Rt(It,Ft){var Mt=[],Ht=!0,Vt=!1,Nt=void 0;try{for(var Gt=It[Symbol.iterator](),tn;!(Ht=(tn=Gt.next()).done)&&(Mt.push(tn.value),!(Ft&&Mt.length===Ft));Ht=!0);}catch(ln){Vt=!0,Nt=ln}finally{try{!Ht&&Gt.return&&Gt.return()}finally{if(Vt)throw Nt}}return Mt}return function(It,Ft){if(Array.isArray(It))return It;if(Symbol.iterator in Object(It))return Rt(It,Ft);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ft=function(){function Rt(It,Ft){for(var Mt=0;Mt<Ft.length;Mt++){var Ht=Ft[Mt];Ht.enumerable=Ht.enumerable||!1,Ht.configurable=!0,"value"in Ht&&(Ht.writable=!0),Object.defineProperty(It,Ht.key,Ht)}}return function(It,Ft,Mt){return Ft&&Rt(It.prototype,Ft),Mt&&Rt(It,Mt),It}}(),mt=ct(0),pt=xt(mt),gt=ct(21),vt=xt(gt),wt=ct(11),yt=xt(wt),bt=ct(8),Ct=xt(bt),Et=ct(10),kt=xt(Et);function xt(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}}function St(Rt){if(Array.isArray(Rt)){for(var It=0,Ft=Array(Rt.length);It<Rt.length;It++)Ft[It]=Rt[It];return Ft}else return Array.from(Rt)}function Ot(Rt,It){if(!(Rt instanceof It))throw new TypeError("Cannot call a class as a function")}var At=(0,kt.default)("quill:selection"),Tt=function Rt(It){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ot(this,Rt),this.index=It,this.length=Ft},$t=function(){function Rt(It,Ft){var Mt=this;Ot(this,Rt),this.emitter=Ft,this.scroll=It,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=pt.default.create("cursor",this),this.lastRange=this.savedRange=new Tt(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){Mt.mouseDown||setTimeout(Mt.update.bind(Mt,Ct.default.sources.USER),1)}),this.emitter.on(Ct.default.events.EDITOR_CHANGE,function(Ht,Vt){Ht===Ct.default.events.TEXT_CHANGE&&Vt.length()>0&&Mt.update(Ct.default.sources.SILENT)}),this.emitter.on(Ct.default.events.SCROLL_BEFORE_UPDATE,function(){if(Mt.hasFocus()){var Ht=Mt.getNativeRange();Ht!=null&&Ht.start.node!==Mt.cursor.textNode&&Mt.emitter.once(Ct.default.events.SCROLL_UPDATE,function(){try{Mt.setNativeRange(Ht.start.node,Ht.start.offset,Ht.end.node,Ht.end.offset)}catch{}})}}),this.emitter.on(Ct.default.events.SCROLL_OPTIMIZE,function(Ht,Vt){if(Vt.range){var Nt=Vt.range,Gt=Nt.startNode,tn=Nt.startOffset,ln=Nt.endNode,nn=Nt.endOffset;Mt.setNativeRange(Gt,tn,ln,nn)}}),this.update(Ct.default.sources.SILENT)}return ft(Rt,[{key:"handleComposition",value:function(){var Ft=this;this.root.addEventListener("compositionstart",function(){Ft.composing=!0}),this.root.addEventListener("compositionend",function(){if(Ft.composing=!1,Ft.cursor.parent){var Mt=Ft.cursor.restore();if(!Mt)return;setTimeout(function(){Ft.setNativeRange(Mt.startNode,Mt.startOffset,Mt.endNode,Mt.endOffset)},1)}})}},{key:"handleDragging",value:function(){var Ft=this;this.emitter.listenDOM("mousedown",document.body,function(){Ft.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){Ft.mouseDown=!1,Ft.update(Ct.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(Ft,Mt){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[Ft])){this.scroll.update();var Ht=this.getNativeRange();if(!(Ht==null||!Ht.native.collapsed||pt.default.query(Ft,pt.default.Scope.BLOCK))){if(Ht.start.node!==this.cursor.textNode){var Vt=pt.default.find(Ht.start.node,!1);if(Vt==null)return;if(Vt instanceof pt.default.Leaf){var Nt=Vt.split(Ht.start.offset);Vt.parent.insertBefore(this.cursor,Nt)}else Vt.insertBefore(this.cursor,Ht.start.node);this.cursor.attach()}this.cursor.format(Ft,Mt),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(Ft){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ht=this.scroll.length();Ft=Math.min(Ft,Ht-1),Mt=Math.min(Ft+Mt,Ht-1)-Ft;var Vt=void 0,Nt=this.scroll.leaf(Ft),Gt=dt(Nt,2),tn=Gt[0],ln=Gt[1];if(tn==null)return null;var nn=tn.position(ln,!0),on=dt(nn,2);Vt=on[0],ln=on[1];var rn=document.createRange();if(Mt>0){rn.setStart(Vt,ln);var Jt=this.scroll.leaf(Ft+Mt),Zt=dt(Jt,2);if(tn=Zt[0],ln=Zt[1],tn==null)return null;var Wt=tn.position(ln,!0),jt=dt(Wt,2);return Vt=jt[0],ln=jt[1],rn.setEnd(Vt,ln),rn.getBoundingClientRect()}else{var Bt="left",Dt=void 0;return Vt instanceof Text?(ln<Vt.data.length?(rn.setStart(Vt,ln),rn.setEnd(Vt,ln+1)):(rn.setStart(Vt,ln-1),rn.setEnd(Vt,ln),Bt="right"),Dt=rn.getBoundingClientRect()):(Dt=tn.domNode.getBoundingClientRect(),ln>0&&(Bt="right")),{bottom:Dt.top+Dt.height,height:Dt.height,left:Dt[Bt],right:Dt[Bt],top:Dt.top,width:0}}}},{key:"getNativeRange",value:function(){var Ft=document.getSelection();if(Ft==null||Ft.rangeCount<=0)return null;var Mt=Ft.getRangeAt(0);if(Mt==null)return null;var Ht=this.normalizeNative(Mt);return At.info("getNativeRange",Ht),Ht}},{key:"getRange",value:function(){var Ft=this.getNativeRange();if(Ft==null)return[null,null];var Mt=this.normalizedToRange(Ft);return[Mt,Ft]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(Ft){var Mt=this,Ht=[[Ft.start.node,Ft.start.offset]];Ft.native.collapsed||Ht.push([Ft.end.node,Ft.end.offset]);var Vt=Ht.map(function(tn){var ln=dt(tn,2),nn=ln[0],on=ln[1],rn=pt.default.find(nn,!0),Jt=rn.offset(Mt.scroll);return on===0?Jt:rn instanceof pt.default.Container?Jt+rn.length():Jt+rn.index(nn,on)}),Nt=Math.min(Math.max.apply(Math,St(Vt)),this.scroll.length()-1),Gt=Math.min.apply(Math,[Nt].concat(St(Vt)));return new Tt(Gt,Nt-Gt)}},{key:"normalizeNative",value:function(Ft){if(!Lt(this.root,Ft.startContainer)||!Ft.collapsed&&!Lt(this.root,Ft.endContainer))return null;var Mt={start:{node:Ft.startContainer,offset:Ft.startOffset},end:{node:Ft.endContainer,offset:Ft.endOffset},native:Ft};return[Mt.start,Mt.end].forEach(function(Ht){for(var Vt=Ht.node,Nt=Ht.offset;!(Vt instanceof Text)&&Vt.childNodes.length>0;)if(Vt.childNodes.length>Nt)Vt=Vt.childNodes[Nt],Nt=0;else if(Vt.childNodes.length===Nt)Vt=Vt.lastChild,Nt=Vt instanceof Text?Vt.data.length:Vt.childNodes.length+1;else break;Ht.node=Vt,Ht.offset=Nt}),Mt}},{key:"rangeToNative",value:function(Ft){var Mt=this,Ht=Ft.collapsed?[Ft.index]:[Ft.index,Ft.index+Ft.length],Vt=[],Nt=this.scroll.length();return Ht.forEach(function(Gt,tn){Gt=Math.min(Nt-1,Gt);var ln=void 0,nn=Mt.scroll.leaf(Gt),on=dt(nn,2),rn=on[0],Jt=on[1],Zt=rn.position(Jt,tn!==0),Wt=dt(Zt,2);ln=Wt[0],Jt=Wt[1],Vt.push(ln,Jt)}),Vt.length<2&&(Vt=Vt.concat(Vt)),Vt}},{key:"scrollIntoView",value:function(Ft){var Mt=this.lastRange;if(Mt!=null){var Ht=this.getBounds(Mt.index,Mt.length);if(Ht!=null){var Vt=this.scroll.length()-1,Nt=this.scroll.line(Math.min(Mt.index,Vt)),Gt=dt(Nt,1),tn=Gt[0],ln=tn;if(Mt.length>0){var nn=this.scroll.line(Math.min(Mt.index+Mt.length,Vt)),on=dt(nn,1);ln=on[0]}if(!(tn==null||ln==null)){var rn=Ft.getBoundingClientRect();Ht.top<rn.top?Ft.scrollTop-=rn.top-Ht.top:Ht.bottom>rn.bottom&&(Ft.scrollTop+=Ht.bottom-rn.bottom)}}}}},{key:"setNativeRange",value:function(Ft,Mt){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ft,Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Mt,Nt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(At.info("setNativeRange",Ft,Mt,Ht,Vt),!(Ft!=null&&(this.root.parentNode==null||Ft.parentNode==null||Ht.parentNode==null))){var Gt=document.getSelection();if(Gt!=null)if(Ft!=null){this.hasFocus()||this.root.focus();var tn=(this.getNativeRange()||{}).native;if(tn==null||Nt||Ft!==tn.startContainer||Mt!==tn.startOffset||Ht!==tn.endContainer||Vt!==tn.endOffset){Ft.tagName=="BR"&&(Mt=[].indexOf.call(Ft.parentNode.childNodes,Ft),Ft=Ft.parentNode),Ht.tagName=="BR"&&(Vt=[].indexOf.call(Ht.parentNode.childNodes,Ht),Ht=Ht.parentNode);var ln=document.createRange();ln.setStart(Ft,Mt),ln.setEnd(Ht,Vt),Gt.removeAllRanges(),Gt.addRange(ln)}}else Gt.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(Ft){var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ct.default.sources.API;if(typeof Mt=="string"&&(Ht=Mt,Mt=!1),At.info("setRange",Ft),Ft!=null){var Vt=this.rangeToNative(Ft);this.setNativeRange.apply(this,St(Vt).concat([Mt]))}else this.setNativeRange(null);this.update(Ht)}},{key:"update",value:function(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ct.default.sources.USER,Mt=this.lastRange,Ht=this.getRange(),Vt=dt(Ht,2),Nt=Vt[0],Gt=Vt[1];if(this.lastRange=Nt,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,yt.default)(Mt,this.lastRange)){var tn;!this.composing&&Gt!=null&&Gt.native.collapsed&&Gt.start.node!==this.cursor.textNode&&this.cursor.restore();var ln=[Ct.default.events.SELECTION_CHANGE,(0,vt.default)(this.lastRange),(0,vt.default)(Mt),Ft];if((tn=this.emitter).emit.apply(tn,[Ct.default.events.EDITOR_CHANGE].concat(ln)),Ft!==Ct.default.sources.SILENT){var nn;(nn=this.emitter).emit.apply(nn,ln)}}}}]),Rt}();function Lt(Rt,It){try{It.parentNode}catch{return!1}return It instanceof Text&&(It=It.parentNode),Rt.contains(It)}ut.Range=Tt,ut.default=$t},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function Ct(Et,kt){for(var xt=0;xt<kt.length;xt++){var St=kt[xt];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Et,St.key,St)}}return function(Et,kt,xt){return kt&&Ct(Et.prototype,kt),xt&&Ct(Et,xt),Et}}(),ft=function Ct(Et,kt,xt){Et===null&&(Et=Function.prototype);var St=Object.getOwnPropertyDescriptor(Et,kt);if(St===void 0){var Ot=Object.getPrototypeOf(Et);return Ot===null?void 0:Ct(Ot,kt,xt)}else{if("value"in St)return St.value;var At=St.get;return At===void 0?void 0:At.call(xt)}},mt=ct(0),pt=gt(mt);function gt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function vt(Ct,Et){if(!(Ct instanceof Et))throw new TypeError("Cannot call a class as a function")}function wt(Ct,Et){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et&&(typeof Et=="object"||typeof Et=="function")?Et:Ct}function yt(Ct,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Et);Ct.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Et&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Et):Ct.__proto__=Et)}var bt=function(Ct){yt(Et,Ct);function Et(){return vt(this,Et),wt(this,(Et.__proto__||Object.getPrototypeOf(Et)).apply(this,arguments))}return dt(Et,[{key:"insertInto",value:function(xt,St){xt.children.length===0?ft(Et.prototype.__proto__||Object.getPrototypeOf(Et.prototype),"insertInto",this).call(this,xt,St):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),Et}(pt.default.Embed);bt.blotName="break",bt.tagName="BR",ut.default=bt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,bt){yt.__proto__=bt}||function(yt,bt){for(var Ct in bt)bt.hasOwnProperty(Ct)&&(yt[Ct]=bt[Ct])};return function(yt,bt){wt(yt,bt);function Ct(){this.constructor=yt}yt.prototype=bt===null?Object.create(bt):(Ct.prototype=bt.prototype,new Ct)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(44),mt=ct(30),pt=ct(1),gt=function(wt){dt(yt,wt);function yt(bt){var Ct=wt.call(this,bt)||this;return Ct.build(),Ct}return yt.prototype.appendChild=function(bt){this.insertBefore(bt)},yt.prototype.attach=function(){wt.prototype.attach.call(this),this.children.forEach(function(bt){bt.attach()})},yt.prototype.build=function(){var bt=this;this.children=new ft.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(Ct){try{var Et=vt(Ct);bt.insertBefore(Et,bt.children.head||void 0)}catch(kt){if(kt instanceof pt.ParchmentError)return;throw kt}})},yt.prototype.deleteAt=function(bt,Ct){if(bt===0&&Ct===this.length())return this.remove();this.children.forEachAt(bt,Ct,function(Et,kt,xt){Et.deleteAt(kt,xt)})},yt.prototype.descendant=function(bt,Ct){var Et=this.children.find(Ct),kt=Et[0],xt=Et[1];return bt.blotName==null&&bt(kt)||bt.blotName!=null&&kt instanceof bt?[kt,xt]:kt instanceof yt?kt.descendant(bt,xt):[null,-1]},yt.prototype.descendants=function(bt,Ct,Et){Ct===void 0&&(Ct=0),Et===void 0&&(Et=Number.MAX_VALUE);var kt=[],xt=Et;return this.children.forEachAt(Ct,Et,function(St,Ot,At){(bt.blotName==null&&bt(St)||bt.blotName!=null&&St instanceof bt)&&kt.push(St),St instanceof yt&&(kt=kt.concat(St.descendants(bt,Ot,xt))),xt-=At}),kt},yt.prototype.detach=function(){this.children.forEach(function(bt){bt.detach()}),wt.prototype.detach.call(this)},yt.prototype.formatAt=function(bt,Ct,Et,kt){this.children.forEachAt(bt,Ct,function(xt,St,Ot){xt.formatAt(St,Ot,Et,kt)})},yt.prototype.insertAt=function(bt,Ct,Et){var kt=this.children.find(bt),xt=kt[0],St=kt[1];if(xt)xt.insertAt(St,Ct,Et);else{var Ot=Et==null?pt.create("text",Ct):pt.create(Ct,Et);this.appendChild(Ot)}},yt.prototype.insertBefore=function(bt,Ct){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(Et){return bt instanceof Et}))throw new pt.ParchmentError("Cannot insert "+bt.statics.blotName+" into "+this.statics.blotName);bt.insertInto(this,Ct)},yt.prototype.length=function(){return this.children.reduce(function(bt,Ct){return bt+Ct.length()},0)},yt.prototype.moveChildren=function(bt,Ct){this.children.forEach(function(Et){bt.insertBefore(Et,Ct)})},yt.prototype.optimize=function(bt){if(wt.prototype.optimize.call(this,bt),this.children.length===0)if(this.statics.defaultChild!=null){var Ct=pt.create(this.statics.defaultChild);this.appendChild(Ct),Ct.optimize(bt)}else this.remove()},yt.prototype.path=function(bt,Ct){Ct===void 0&&(Ct=!1);var Et=this.children.find(bt,Ct),kt=Et[0],xt=Et[1],St=[[this,bt]];return kt instanceof yt?St.concat(kt.path(xt,Ct)):(kt!=null&&St.push([kt,xt]),St)},yt.prototype.removeChild=function(bt){this.children.remove(bt)},yt.prototype.replace=function(bt){bt instanceof yt&&bt.moveChildren(this),wt.prototype.replace.call(this,bt)},yt.prototype.split=function(bt,Ct){if(Ct===void 0&&(Ct=!1),!Ct){if(bt===0)return this;if(bt===this.length())return this.next}var Et=this.clone();return this.parent.insertBefore(Et,this.next),this.children.forEachAt(bt,this.length(),function(kt,xt,St){kt=kt.split(xt,Ct),Et.appendChild(kt)}),Et},yt.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},yt.prototype.update=function(bt,Ct){var Et=this,kt=[],xt=[];bt.forEach(function(St){St.target===Et.domNode&&St.type==="childList"&&(kt.push.apply(kt,St.addedNodes),xt.push.apply(xt,St.removedNodes))}),xt.forEach(function(St){if(!(St.parentNode!=null&&St.tagName!=="IFRAME"&&document.body.compareDocumentPosition(St)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var Ot=pt.find(St);Ot!=null&&(Ot.domNode.parentNode==null||Ot.domNode.parentNode===Et.domNode)&&Ot.detach()}}),kt.filter(function(St){return St.parentNode==Et.domNode}).sort(function(St,Ot){return St===Ot?0:St.compareDocumentPosition(Ot)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(St){var Ot=null;St.nextSibling!=null&&(Ot=pt.find(St.nextSibling));var At=vt(St);(At.next!=Ot||At.next==null)&&(At.parent!=null&&At.parent.removeChild(Et),Et.insertBefore(At,Ot||void 0))})},yt}(mt.default);function vt(wt){var yt=pt.find(wt);if(yt==null)try{yt=pt.create(wt)}catch{yt=pt.create(pt.Scope.INLINE),[].slice.call(wt.childNodes).forEach(function(Ct){yt.domNode.appendChild(Ct)}),wt.parentNode&&wt.parentNode.replaceChild(yt.domNode,wt),yt.attach()}return yt}ut.default=gt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,bt){yt.__proto__=bt}||function(yt,bt){for(var Ct in bt)bt.hasOwnProperty(Ct)&&(yt[Ct]=bt[Ct])};return function(yt,bt){wt(yt,bt);function Ct(){this.constructor=yt}yt.prototype=bt===null?Object.create(bt):(Ct.prototype=bt.prototype,new Ct)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(12),mt=ct(31),pt=ct(17),gt=ct(1),vt=function(wt){dt(yt,wt);function yt(bt){var Ct=wt.call(this,bt)||this;return Ct.attributes=new mt.default(Ct.domNode),Ct}return yt.formats=function(bt){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return bt.tagName.toLowerCase()},yt.prototype.format=function(bt,Ct){var Et=gt.query(bt);Et instanceof ft.default?this.attributes.attribute(Et,Ct):Ct&&Et!=null&&(bt!==this.statics.blotName||this.formats()[bt]!==Ct)&&this.replaceWith(bt,Ct)},yt.prototype.formats=function(){var bt=this.attributes.values(),Ct=this.statics.formats(this.domNode);return Ct!=null&&(bt[this.statics.blotName]=Ct),bt},yt.prototype.replaceWith=function(bt,Ct){var Et=wt.prototype.replaceWith.call(this,bt,Ct);return this.attributes.copy(Et),Et},yt.prototype.update=function(bt,Ct){var Et=this;wt.prototype.update.call(this,bt,Ct),bt.some(function(kt){return kt.target===Et.domNode&&kt.type==="attributes"})&&this.attributes.build()},yt.prototype.wrap=function(bt,Ct){var Et=wt.prototype.wrap.call(this,bt,Ct);return Et instanceof yt&&Et.statics.scope===this.statics.scope&&this.attributes.move(Et),Et},yt}(pt.default);ut.default=vt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,wt){vt.__proto__=wt}||function(vt,wt){for(var yt in wt)wt.hasOwnProperty(yt)&&(vt[yt]=wt[yt])};return function(vt,wt){gt(vt,wt);function yt(){this.constructor=vt}vt.prototype=wt===null?Object.create(wt):(yt.prototype=wt.prototype,new yt)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(30),mt=ct(1),pt=function(gt){dt(vt,gt);function vt(){return gt!==null&&gt.apply(this,arguments)||this}return vt.value=function(wt){return!0},vt.prototype.index=function(wt,yt){return this.domNode===wt||this.domNode.compareDocumentPosition(wt)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(yt,1):-1},vt.prototype.position=function(wt,yt){var bt=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return wt>0&&(bt+=1),[this.parent.domNode,bt]},vt.prototype.value=function(){var wt;return wt={},wt[this.statics.blotName]=this.statics.value(this.domNode)||!0,wt},vt.scope=mt.Scope.INLINE_BLOT,vt}(ft.default);ut.default=pt},function(lt,ut,ct){var dt=ct(11),ft=ct(3),mt={attributes:{compose:function(gt,vt,wt){typeof gt!="object"&&(gt={}),typeof vt!="object"&&(vt={});var yt=ft(!0,{},vt);wt||(yt=Object.keys(yt).reduce(function(Ct,Et){return yt[Et]!=null&&(Ct[Et]=yt[Et]),Ct},{}));for(var bt in gt)gt[bt]!==void 0&&vt[bt]===void 0&&(yt[bt]=gt[bt]);return Object.keys(yt).length>0?yt:void 0},diff:function(gt,vt){typeof gt!="object"&&(gt={}),typeof vt!="object"&&(vt={});var wt=Object.keys(gt).concat(Object.keys(vt)).reduce(function(yt,bt){return dt(gt[bt],vt[bt])||(yt[bt]=vt[bt]===void 0?null:vt[bt]),yt},{});return Object.keys(wt).length>0?wt:void 0},transform:function(gt,vt,wt){if(typeof gt!="object")return vt;if(typeof vt=="object"){if(!wt)return vt;var yt=Object.keys(vt).reduce(function(bt,Ct){return gt[Ct]===void 0&&(bt[Ct]=vt[Ct]),bt},{});return Object.keys(yt).length>0?yt:void 0}}},iterator:function(gt){return new pt(gt)},length:function(gt){return typeof gt.delete=="number"?gt.delete:typeof gt.retain=="number"?gt.retain:typeof gt.insert=="string"?gt.insert.length:1}};function pt(gt){this.ops=gt,this.index=0,this.offset=0}pt.prototype.hasNext=function(){return this.peekLength()<1/0},pt.prototype.next=function(gt){gt||(gt=1/0);var vt=this.ops[this.index];if(vt){var wt=this.offset,yt=mt.length(vt);if(gt>=yt-wt?(gt=yt-wt,this.index+=1,this.offset=0):this.offset+=gt,typeof vt.delete=="number")return{delete:gt};var bt={};return vt.attributes&&(bt.attributes=vt.attributes),typeof vt.retain=="number"?bt.retain=gt:typeof vt.insert=="string"?bt.insert=vt.insert.substr(wt,gt):bt.insert=vt.insert,bt}else return{retain:1/0}},pt.prototype.peek=function(){return this.ops[this.index]},pt.prototype.peekLength=function(){return this.ops[this.index]?mt.length(this.ops[this.index])-this.offset:1/0},pt.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},pt.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var gt=this.offset,vt=this.index,wt=this.next(),yt=this.ops.slice(this.index);return this.offset=gt,this.index=vt,[wt].concat(yt)}else return[]},lt.exports=mt},function(lt,ut){var ct=function(){function dt(Et,kt){return kt!=null&&Et instanceof kt}var ft;try{ft=Map}catch{ft=function(){}}var mt;try{mt=Set}catch{mt=function(){}}var pt;try{pt=Promise}catch{pt=function(){}}function gt(Et,kt,xt,St,Ot){typeof kt=="object"&&(xt=kt.depth,St=kt.prototype,Ot=kt.includeNonEnumerable,kt=kt.circular);var At=[],Tt=[],$t=typeof Buffer<"u";typeof kt>"u"&&(kt=!0),typeof xt>"u"&&(xt=1/0);function Lt(Rt,It){if(Rt===null)return null;if(It===0)return Rt;var Ft,Mt;if(typeof Rt!="object")return Rt;if(dt(Rt,ft))Ft=new ft;else if(dt(Rt,mt))Ft=new mt;else if(dt(Rt,pt))Ft=new pt(function(rn,Jt){Rt.then(function(Zt){rn(Lt(Zt,It-1))},function(Zt){Jt(Lt(Zt,It-1))})});else if(gt.__isArray(Rt))Ft=[];else if(gt.__isRegExp(Rt))Ft=new RegExp(Rt.source,Ct(Rt)),Rt.lastIndex&&(Ft.lastIndex=Rt.lastIndex);else if(gt.__isDate(Rt))Ft=new Date(Rt.getTime());else{if($t&&Buffer.isBuffer(Rt))return Buffer.allocUnsafe?Ft=Buffer.allocUnsafe(Rt.length):Ft=new Buffer(Rt.length),Rt.copy(Ft),Ft;dt(Rt,Error)?Ft=Object.create(Rt):typeof St>"u"?(Mt=Object.getPrototypeOf(Rt),Ft=Object.create(Mt)):(Ft=Object.create(St),Mt=St)}if(kt){var Ht=At.indexOf(Rt);if(Ht!=-1)return Tt[Ht];At.push(Rt),Tt.push(Ft)}dt(Rt,ft)&&Rt.forEach(function(rn,Jt){var Zt=Lt(Jt,It-1),Wt=Lt(rn,It-1);Ft.set(Zt,Wt)}),dt(Rt,mt)&&Rt.forEach(function(rn){var Jt=Lt(rn,It-1);Ft.add(Jt)});for(var Vt in Rt){var Nt;Mt&&(Nt=Object.getOwnPropertyDescriptor(Mt,Vt)),!(Nt&&Nt.set==null)&&(Ft[Vt]=Lt(Rt[Vt],It-1))}if(Object.getOwnPropertySymbols)for(var Gt=Object.getOwnPropertySymbols(Rt),Vt=0;Vt<Gt.length;Vt++){var tn=Gt[Vt],ln=Object.getOwnPropertyDescriptor(Rt,tn);ln&&!ln.enumerable&&!Ot||(Ft[tn]=Lt(Rt[tn],It-1),ln.enumerable||Object.defineProperty(Ft,tn,{enumerable:!1}))}if(Ot)for(var nn=Object.getOwnPropertyNames(Rt),Vt=0;Vt<nn.length;Vt++){var on=nn[Vt],ln=Object.getOwnPropertyDescriptor(Rt,on);ln&&ln.enumerable||(Ft[on]=Lt(Rt[on],It-1),Object.defineProperty(Ft,on,{enumerable:!1}))}return Ft}return Lt(Et,xt)}gt.clonePrototype=function(kt){if(kt===null)return null;var xt=function(){};return xt.prototype=kt,new xt};function vt(Et){return Object.prototype.toString.call(Et)}gt.__objToStr=vt;function wt(Et){return typeof Et=="object"&&vt(Et)==="[object Date]"}gt.__isDate=wt;function yt(Et){return typeof Et=="object"&&vt(Et)==="[object Array]"}gt.__isArray=yt;function bt(Et){return typeof Et=="object"&&vt(Et)==="[object RegExp]"}gt.__isRegExp=bt;function Ct(Et){var kt="";return Et.global&&(kt+="g"),Et.ignoreCase&&(kt+="i"),Et.multiline&&(kt+="m"),kt}return gt.__getRegExpFlags=Ct,gt}();typeof lt=="object"&&lt.exports&&(lt.exports=ct)},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function Ft(Mt,Ht){var Vt=[],Nt=!0,Gt=!1,tn=void 0;try{for(var ln=Mt[Symbol.iterator](),nn;!(Nt=(nn=ln.next()).done)&&(Vt.push(nn.value),!(Ht&&Vt.length===Ht));Nt=!0);}catch(on){Gt=!0,tn=on}finally{try{!Nt&&ln.return&&ln.return()}finally{if(Gt)throw tn}}return Vt}return function(Mt,Ht){if(Array.isArray(Mt))return Mt;if(Symbol.iterator in Object(Mt))return Ft(Mt,Ht);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ft=function(){function Ft(Mt,Ht){for(var Vt=0;Vt<Ht.length;Vt++){var Nt=Ht[Vt];Nt.enumerable=Nt.enumerable||!1,Nt.configurable=!0,"value"in Nt&&(Nt.writable=!0),Object.defineProperty(Mt,Nt.key,Nt)}}return function(Mt,Ht,Vt){return Ht&&Ft(Mt.prototype,Ht),Vt&&Ft(Mt,Vt),Mt}}(),mt=function Ft(Mt,Ht,Vt){Mt===null&&(Mt=Function.prototype);var Nt=Object.getOwnPropertyDescriptor(Mt,Ht);if(Nt===void 0){var Gt=Object.getPrototypeOf(Mt);return Gt===null?void 0:Ft(Gt,Ht,Vt)}else{if("value"in Nt)return Nt.value;var tn=Nt.get;return tn===void 0?void 0:tn.call(Vt)}},pt=ct(0),gt=At(pt),vt=ct(8),wt=At(vt),yt=ct(4),bt=At(yt),Ct=ct(16),Et=At(Ct),kt=ct(13),xt=At(kt),St=ct(25),Ot=At(St);function At(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}function Tt(Ft,Mt){if(!(Ft instanceof Mt))throw new TypeError("Cannot call a class as a function")}function $t(Ft,Mt){if(!Ft)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mt&&(typeof Mt=="object"||typeof Mt=="function")?Mt:Ft}function Lt(Ft,Mt){if(typeof Mt!="function"&&Mt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Mt);Ft.prototype=Object.create(Mt&&Mt.prototype,{constructor:{value:Ft,enumerable:!1,writable:!0,configurable:!0}}),Mt&&(Object.setPrototypeOf?Object.setPrototypeOf(Ft,Mt):Ft.__proto__=Mt)}function Rt(Ft){return Ft instanceof bt.default||Ft instanceof yt.BlockEmbed}var It=function(Ft){Lt(Mt,Ft);function Mt(Ht,Vt){Tt(this,Mt);var Nt=$t(this,(Mt.__proto__||Object.getPrototypeOf(Mt)).call(this,Ht));return Nt.emitter=Vt.emitter,Array.isArray(Vt.whitelist)&&(Nt.whitelist=Vt.whitelist.reduce(function(Gt,tn){return Gt[tn]=!0,Gt},{})),Nt.domNode.addEventListener("DOMNodeInserted",function(){}),Nt.optimize(),Nt.enable(),Nt}return ft(Mt,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(Vt,Nt){var Gt=this.line(Vt),tn=dt(Gt,2),ln=tn[0],nn=tn[1],on=this.line(Vt+Nt),rn=dt(on,1),Jt=rn[0];if(mt(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"deleteAt",this).call(this,Vt,Nt),Jt!=null&&ln!==Jt&&nn>0){if(ln instanceof yt.BlockEmbed||Jt instanceof yt.BlockEmbed){this.optimize();return}if(ln instanceof xt.default){var Zt=ln.newlineIndex(ln.length(),!0);if(Zt>-1&&(ln=ln.split(Zt+1),ln===Jt)){this.optimize();return}}else if(Jt instanceof xt.default){var Wt=Jt.newlineIndex(0);Wt>-1&&Jt.split(Wt+1)}var jt=Jt.children.head instanceof Et.default?null:Jt.children.head;ln.moveChildren(Jt,jt),ln.remove()}this.optimize()}},{key:"enable",value:function(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",Vt)}},{key:"formatAt",value:function(Vt,Nt,Gt,tn){this.whitelist!=null&&!this.whitelist[Gt]||(mt(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"formatAt",this).call(this,Vt,Nt,Gt,tn),this.optimize())}},{key:"insertAt",value:function(Vt,Nt,Gt){if(!(Gt!=null&&this.whitelist!=null&&!this.whitelist[Nt])){if(Vt>=this.length())if(Gt==null||gt.default.query(Nt,gt.default.Scope.BLOCK)==null){var tn=gt.default.create(this.statics.defaultChild);this.appendChild(tn),Gt==null&&Nt.endsWith(`
`)&&(Nt=Nt.slice(0,-1)),tn.insertAt(0,Nt,Gt)}else{var ln=gt.default.create(Nt,Gt);this.appendChild(ln)}else mt(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"insertAt",this).call(this,Vt,Nt,Gt);this.optimize()}}},{key:"insertBefore",value:function(Vt,Nt){if(Vt.statics.scope===gt.default.Scope.INLINE_BLOT){var Gt=gt.default.create(this.statics.defaultChild);Gt.appendChild(Vt),Vt=Gt}mt(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"insertBefore",this).call(this,Vt,Nt)}},{key:"leaf",value:function(Vt){return this.path(Vt).pop()||[null,-1]}},{key:"line",value:function(Vt){return Vt===this.length()?this.line(Vt-1):this.descendant(Rt,Vt)}},{key:"lines",value:function(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,Gt=function tn(ln,nn,on){var rn=[],Jt=on;return ln.children.forEachAt(nn,on,function(Zt,Wt,jt){Rt(Zt)?rn.push(Zt):Zt instanceof gt.default.Container&&(rn=rn.concat(tn(Zt,Wt,Jt))),Jt-=jt}),rn};return Gt(this,Vt,Nt)}},{key:"optimize",value:function(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(mt(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"optimize",this).call(this,Vt,Nt),Vt.length>0&&this.emitter.emit(wt.default.events.SCROLL_OPTIMIZE,Vt,Nt))}},{key:"path",value:function(Vt){return mt(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"path",this).call(this,Vt).slice(1)}},{key:"update",value:function(Vt){if(this.batch!==!0){var Nt=wt.default.sources.USER;typeof Vt=="string"&&(Nt=Vt),Array.isArray(Vt)||(Vt=this.observer.takeRecords()),Vt.length>0&&this.emitter.emit(wt.default.events.SCROLL_BEFORE_UPDATE,Nt,Vt),mt(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"update",this).call(this,Vt.concat([])),Vt.length>0&&this.emitter.emit(wt.default.events.SCROLL_UPDATE,Nt,Vt)}}}]),Mt}(gt.default.Scroll);It.blotName="scroll",It.className="ql-editor",It.tagName="DIV",It.defaultChild="block",It.allowedChildren=[bt.default,yt.BlockEmbed,Ot.default],ut.default=It},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.SHORTKEY=ut.default=void 0;var dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Dt){return typeof Dt}:function(Dt){return Dt&&typeof Symbol=="function"&&Dt.constructor===Symbol&&Dt!==Symbol.prototype?"symbol":typeof Dt},ft=function(){function Dt(zt,Kt){var en=[],sn=!0,cn=!1,bn=void 0;try{for(var Tn=zt[Symbol.iterator](),kn;!(sn=(kn=Tn.next()).done)&&(en.push(kn.value),!(Kt&&en.length===Kt));sn=!0);}catch(In){cn=!0,bn=In}finally{try{!sn&&Tn.return&&Tn.return()}finally{if(cn)throw bn}}return en}return function(zt,Kt){if(Array.isArray(zt))return zt;if(Symbol.iterator in Object(zt))return Dt(zt,Kt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),mt=function(){function Dt(zt,Kt){for(var en=0;en<Kt.length;en++){var sn=Kt[en];sn.enumerable=sn.enumerable||!1,sn.configurable=!0,"value"in sn&&(sn.writable=!0),Object.defineProperty(zt,sn.key,sn)}}return function(zt,Kt,en){return Kt&&Dt(zt.prototype,Kt),en&&Dt(zt,en),zt}}(),pt=ct(21),gt=Ft(pt),vt=ct(11),wt=Ft(vt),yt=ct(3),bt=Ft(yt),Ct=ct(2),Et=Ft(Ct),kt=ct(20),xt=Ft(kt),St=ct(0),Ot=Ft(St),At=ct(5),Tt=Ft(At),$t=ct(10),Lt=Ft($t),Rt=ct(9),It=Ft(Rt);function Ft(Dt){return Dt&&Dt.__esModule?Dt:{default:Dt}}function Mt(Dt,zt,Kt){return zt in Dt?Object.defineProperty(Dt,zt,{value:Kt,enumerable:!0,configurable:!0,writable:!0}):Dt[zt]=Kt,Dt}function Ht(Dt,zt){if(!(Dt instanceof zt))throw new TypeError("Cannot call a class as a function")}function Vt(Dt,zt){if(!Dt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt&&(typeof zt=="object"||typeof zt=="function")?zt:Dt}function Nt(Dt,zt){if(typeof zt!="function"&&zt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof zt);Dt.prototype=Object.create(zt&&zt.prototype,{constructor:{value:Dt,enumerable:!1,writable:!0,configurable:!0}}),zt&&(Object.setPrototypeOf?Object.setPrototypeOf(Dt,zt):Dt.__proto__=zt)}var Gt=(0,Lt.default)("quill:keyboard"),tn=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ln=function(Dt){Nt(zt,Dt),mt(zt,null,[{key:"match",value:function(en,sn){return sn=Bt(sn),["altKey","ctrlKey","metaKey","shiftKey"].some(function(cn){return!!sn[cn]!==en[cn]&&sn[cn]!==null})?!1:sn.key===(en.which||en.keyCode)}}]);function zt(Kt,en){Ht(this,zt);var sn=Vt(this,(zt.__proto__||Object.getPrototypeOf(zt)).call(this,Kt,en));return sn.bindings={},Object.keys(sn.options.bindings).forEach(function(cn){cn==="list autofill"&&Kt.scroll.whitelist!=null&&!Kt.scroll.whitelist.list||sn.options.bindings[cn]&&sn.addBinding(sn.options.bindings[cn])}),sn.addBinding({key:zt.keys.ENTER,shiftKey:null},Zt),sn.addBinding({key:zt.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(sn.addBinding({key:zt.keys.BACKSPACE},{collapsed:!0},on),sn.addBinding({key:zt.keys.DELETE},{collapsed:!0},rn)):(sn.addBinding({key:zt.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},on),sn.addBinding({key:zt.keys.DELETE},{collapsed:!0,suffix:/^.?$/},rn)),sn.addBinding({key:zt.keys.BACKSPACE},{collapsed:!1},Jt),sn.addBinding({key:zt.keys.DELETE},{collapsed:!1},Jt),sn.addBinding({key:zt.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},on),sn.listen(),sn}return mt(zt,[{key:"addBinding",value:function(en){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},bn=Bt(en);if(bn==null||bn.key==null)return Gt.warn("Attempted to add invalid keyboard binding",bn);typeof sn=="function"&&(sn={handler:sn}),typeof cn=="function"&&(cn={handler:cn}),bn=(0,bt.default)(bn,sn,cn),this.bindings[bn.key]=this.bindings[bn.key]||[],this.bindings[bn.key].push(bn)}},{key:"listen",value:function(){var en=this;this.quill.root.addEventListener("keydown",function(sn){if(!sn.defaultPrevented){var cn=sn.which||sn.keyCode,bn=(en.bindings[cn]||[]).filter(function(or){return zt.match(sn,or)});if(bn.length!==0){var Tn=en.quill.getSelection();if(!(Tn==null||!en.quill.hasFocus())){var kn=en.quill.getLine(Tn.index),In=ft(kn,2),Hn=In[0],Fn=In[1],wn=en.quill.getLeaf(Tn.index),Mn=ft(wn,2),Dn=Mn[0],Un=Mn[1],Sn=Tn.length===0?[Dn,Un]:en.quill.getLeaf(Tn.index+Tn.length),On=ft(Sn,2),Cn=On[0],Pn=On[1],Xn=Dn instanceof Ot.default.Text?Dn.value().slice(0,Un):"",Qn=Cn instanceof Ot.default.Text?Cn.value().slice(Pn):"",sr={collapsed:Tn.length===0,empty:Tn.length===0&&Hn.length()<=1,format:en.quill.getFormat(Tn),offset:Fn,prefix:Xn,suffix:Qn},pr=bn.some(function(or){if(or.collapsed!=null&&or.collapsed!==sr.collapsed||or.empty!=null&&or.empty!==sr.empty||or.offset!=null&&or.offset!==sr.offset)return!1;if(Array.isArray(or.format)){if(or.format.every(function(br){return sr.format[br]==null}))return!1}else if(dt(or.format)==="object"&&!Object.keys(or.format).every(function(br){return or.format[br]===!0?sr.format[br]!=null:or.format[br]===!1?sr.format[br]==null:(0,wt.default)(or.format[br],sr.format[br])}))return!1;return or.prefix!=null&&!or.prefix.test(sr.prefix)||or.suffix!=null&&!or.suffix.test(sr.suffix)?!1:or.handler.call(en,Tn,sr)!==!0});pr&&sn.preventDefault()}}}})}}]),zt}(It.default);ln.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},ln.DEFAULTS={bindings:{bold:jt("bold"),italic:jt("italic"),underline:jt("underline"),indent:{key:ln.keys.TAB,format:["blockquote","indent","list"],handler:function(zt,Kt){if(Kt.collapsed&&Kt.offset!==0)return!0;this.quill.format("indent","+1",Tt.default.sources.USER)}},outdent:{key:ln.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(zt,Kt){if(Kt.collapsed&&Kt.offset!==0)return!0;this.quill.format("indent","-1",Tt.default.sources.USER)}},"outdent backspace":{key:ln.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(zt,Kt){Kt.format.indent!=null?this.quill.format("indent","-1",Tt.default.sources.USER):Kt.format.list!=null&&this.quill.format("list",!1,Tt.default.sources.USER)}},"indent code-block":Wt(!0),"outdent code-block":Wt(!1),"remove tab":{key:ln.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(zt){this.quill.deleteText(zt.index-1,1,Tt.default.sources.USER)}},tab:{key:ln.keys.TAB,handler:function(zt){this.quill.history.cutoff();var Kt=new Et.default().retain(zt.index).delete(zt.length).insert("	");this.quill.updateContents(Kt,Tt.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(zt.index+1,Tt.default.sources.SILENT)}},"list empty enter":{key:ln.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(zt,Kt){this.quill.format("list",!1,Tt.default.sources.USER),Kt.format.indent&&this.quill.format("indent",!1,Tt.default.sources.USER)}},"checklist enter":{key:ln.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(zt){var Kt=this.quill.getLine(zt.index),en=ft(Kt,2),sn=en[0],cn=en[1],bn=(0,bt.default)({},sn.formats(),{list:"checked"}),Tn=new Et.default().retain(zt.index).insert(`
`,bn).retain(sn.length()-cn-1).retain(1,{list:"unchecked"});this.quill.updateContents(Tn,Tt.default.sources.USER),this.quill.setSelection(zt.index+1,Tt.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:ln.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(zt,Kt){var en=this.quill.getLine(zt.index),sn=ft(en,2),cn=sn[0],bn=sn[1],Tn=new Et.default().retain(zt.index).insert(`
`,Kt.format).retain(cn.length()-bn-1).retain(1,{header:null});this.quill.updateContents(Tn,Tt.default.sources.USER),this.quill.setSelection(zt.index+1,Tt.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(zt,Kt){var en=Kt.prefix.length,sn=this.quill.getLine(zt.index),cn=ft(sn,2),bn=cn[0],Tn=cn[1];if(Tn>en)return!0;var kn=void 0;switch(Kt.prefix.trim()){case"[]":case"[ ]":kn="unchecked";break;case"[x]":kn="checked";break;case"-":case"*":kn="bullet";break;default:kn="ordered"}this.quill.insertText(zt.index," ",Tt.default.sources.USER),this.quill.history.cutoff();var In=new Et.default().retain(zt.index-Tn).delete(en+1).retain(bn.length()-2-Tn).retain(1,{list:kn});this.quill.updateContents(In,Tt.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(zt.index-en,Tt.default.sources.SILENT)}},"code exit":{key:ln.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(zt){var Kt=this.quill.getLine(zt.index),en=ft(Kt,2),sn=en[0],cn=en[1],bn=new Et.default().retain(zt.index+sn.length()-cn-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(bn,Tt.default.sources.USER)}},"embed left":nn(ln.keys.LEFT,!1),"embed left shift":nn(ln.keys.LEFT,!0),"embed right":nn(ln.keys.RIGHT,!1),"embed right shift":nn(ln.keys.RIGHT,!0)}};function nn(Dt,zt){var Kt,en=Dt===ln.keys.LEFT?"prefix":"suffix";return Kt={key:Dt,shiftKey:zt,altKey:null},Mt(Kt,en,/^$/),Mt(Kt,"handler",function(cn){var bn=cn.index;Dt===ln.keys.RIGHT&&(bn+=cn.length+1);var Tn=this.quill.getLeaf(bn),kn=ft(Tn,1),In=kn[0];return In instanceof Ot.default.Embed?(Dt===ln.keys.LEFT?zt?this.quill.setSelection(cn.index-1,cn.length+1,Tt.default.sources.USER):this.quill.setSelection(cn.index-1,Tt.default.sources.USER):zt?this.quill.setSelection(cn.index,cn.length+1,Tt.default.sources.USER):this.quill.setSelection(cn.index+cn.length+1,Tt.default.sources.USER),!1):!0}),Kt}function on(Dt,zt){if(!(Dt.index===0||this.quill.getLength()<=1)){var Kt=this.quill.getLine(Dt.index),en=ft(Kt,1),sn=en[0],cn={};if(zt.offset===0){var bn=this.quill.getLine(Dt.index-1),Tn=ft(bn,1),kn=Tn[0];if(kn!=null&&kn.length()>1){var In=sn.formats(),Hn=this.quill.getFormat(Dt.index-1,1);cn=xt.default.attributes.diff(In,Hn)||{}}}var Fn=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(zt.prefix)?2:1;this.quill.deleteText(Dt.index-Fn,Fn,Tt.default.sources.USER),Object.keys(cn).length>0&&this.quill.formatLine(Dt.index-Fn,Fn,cn,Tt.default.sources.USER),this.quill.focus()}}function rn(Dt,zt){var Kt=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(zt.suffix)?2:1;if(!(Dt.index>=this.quill.getLength()-Kt)){var en={},sn=0,cn=this.quill.getLine(Dt.index),bn=ft(cn,1),Tn=bn[0];if(zt.offset>=Tn.length()-1){var kn=this.quill.getLine(Dt.index+1),In=ft(kn,1),Hn=In[0];if(Hn){var Fn=Tn.formats(),wn=this.quill.getFormat(Dt.index,1);en=xt.default.attributes.diff(Fn,wn)||{},sn=Hn.length()}}this.quill.deleteText(Dt.index,Kt,Tt.default.sources.USER),Object.keys(en).length>0&&this.quill.formatLine(Dt.index+sn-1,Kt,en,Tt.default.sources.USER)}}function Jt(Dt){var zt=this.quill.getLines(Dt),Kt={};if(zt.length>1){var en=zt[0].formats(),sn=zt[zt.length-1].formats();Kt=xt.default.attributes.diff(sn,en)||{}}this.quill.deleteText(Dt,Tt.default.sources.USER),Object.keys(Kt).length>0&&this.quill.formatLine(Dt.index,1,Kt,Tt.default.sources.USER),this.quill.setSelection(Dt.index,Tt.default.sources.SILENT),this.quill.focus()}function Zt(Dt,zt){var Kt=this;Dt.length>0&&this.quill.scroll.deleteAt(Dt.index,Dt.length);var en=Object.keys(zt.format).reduce(function(sn,cn){return Ot.default.query(cn,Ot.default.Scope.BLOCK)&&!Array.isArray(zt.format[cn])&&(sn[cn]=zt.format[cn]),sn},{});this.quill.insertText(Dt.index,`
`,en,Tt.default.sources.USER),this.quill.setSelection(Dt.index+1,Tt.default.sources.SILENT),this.quill.focus(),Object.keys(zt.format).forEach(function(sn){en[sn]==null&&(Array.isArray(zt.format[sn])||sn!=="link"&&Kt.quill.format(sn,zt.format[sn],Tt.default.sources.USER))})}function Wt(Dt){return{key:ln.keys.TAB,shiftKey:!Dt,format:{"code-block":!0},handler:function(Kt){var en=Ot.default.query("code-block"),sn=Kt.index,cn=Kt.length,bn=this.quill.scroll.descendant(en,sn),Tn=ft(bn,2),kn=Tn[0],In=Tn[1];if(kn!=null){var Hn=this.quill.getIndex(kn),Fn=kn.newlineIndex(In,!0)+1,wn=kn.newlineIndex(Hn+In+cn),Mn=kn.domNode.textContent.slice(Fn,wn).split(`
`);In=0,Mn.forEach(function(Dn,Un){Dt?(kn.insertAt(Fn+In,en.TAB),In+=en.TAB.length,Un===0?sn+=en.TAB.length:cn+=en.TAB.length):Dn.startsWith(en.TAB)&&(kn.deleteAt(Fn+In,en.TAB.length),In-=en.TAB.length,Un===0?sn-=en.TAB.length:cn-=en.TAB.length),In+=Dn.length+1}),this.quill.update(Tt.default.sources.USER),this.quill.setSelection(sn,cn,Tt.default.sources.SILENT)}}}}function jt(Dt){return{key:Dt[0].toUpperCase(),shortKey:!0,handler:function(Kt,en){this.quill.format(Dt,!en.format[Dt],Tt.default.sources.USER)}}}function Bt(Dt){if(typeof Dt=="string"||typeof Dt=="number")return Bt({key:Dt});if((typeof Dt>"u"?"undefined":dt(Dt))==="object"&&(Dt=(0,gt.default)(Dt,!1)),typeof Dt.key=="string")if(ln.keys[Dt.key.toUpperCase()]!=null)Dt.key=ln.keys[Dt.key.toUpperCase()];else if(Dt.key.length===1)Dt.key=Dt.key.toUpperCase().charCodeAt(0);else return null;return Dt.shortKey&&(Dt[tn]=Dt.shortKey,delete Dt.shortKey),Dt}ut.default=ln,ut.SHORTKEY=tn},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function xt(St,Ot){var At=[],Tt=!0,$t=!1,Lt=void 0;try{for(var Rt=St[Symbol.iterator](),It;!(Tt=(It=Rt.next()).done)&&(At.push(It.value),!(Ot&&At.length===Ot));Tt=!0);}catch(Ft){$t=!0,Lt=Ft}finally{try{!Tt&&Rt.return&&Rt.return()}finally{if($t)throw Lt}}return At}return function(St,Ot){if(Array.isArray(St))return St;if(Symbol.iterator in Object(St))return xt(St,Ot);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ft=function xt(St,Ot,At){St===null&&(St=Function.prototype);var Tt=Object.getOwnPropertyDescriptor(St,Ot);if(Tt===void 0){var $t=Object.getPrototypeOf(St);return $t===null?void 0:xt($t,Ot,At)}else{if("value"in Tt)return Tt.value;var Lt=Tt.get;return Lt===void 0?void 0:Lt.call(At)}},mt=function(){function xt(St,Ot){for(var At=0;At<Ot.length;At++){var Tt=Ot[At];Tt.enumerable=Tt.enumerable||!1,Tt.configurable=!0,"value"in Tt&&(Tt.writable=!0),Object.defineProperty(St,Tt.key,Tt)}}return function(St,Ot,At){return Ot&&xt(St.prototype,Ot),At&&xt(St,At),St}}(),pt=ct(0),gt=yt(pt),vt=ct(7),wt=yt(vt);function yt(xt){return xt&&xt.__esModule?xt:{default:xt}}function bt(xt,St){if(!(xt instanceof St))throw new TypeError("Cannot call a class as a function")}function Ct(xt,St){if(!xt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:xt}function Et(xt,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);xt.prototype=Object.create(St&&St.prototype,{constructor:{value:xt,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(xt,St):xt.__proto__=St)}var kt=function(xt){Et(St,xt),mt(St,null,[{key:"value",value:function(){}}]);function St(Ot,At){bt(this,St);var Tt=Ct(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ot));return Tt.selection=At,Tt.textNode=document.createTextNode(St.CONTENTS),Tt.domNode.appendChild(Tt.textNode),Tt._length=0,Tt}return mt(St,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(At,Tt){if(this._length!==0)return ft(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"format",this).call(this,At,Tt);for(var $t=this,Lt=0;$t!=null&&$t.statics.scope!==gt.default.Scope.BLOCK_BLOT;)Lt+=$t.offset($t.parent),$t=$t.parent;$t!=null&&(this._length=St.CONTENTS.length,$t.optimize(),$t.formatAt(Lt,St.CONTENTS.length,At,Tt),this._length=0)}},{key:"index",value:function(At,Tt){return At===this.textNode?0:ft(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"index",this).call(this,At,Tt)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){ft(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var At=this.textNode,Tt=this.selection.getNativeRange(),$t=void 0,Lt=void 0,Rt=void 0;if(Tt!=null&&Tt.start.node===At&&Tt.end.node===At){var It=[At,Tt.start.offset,Tt.end.offset];$t=It[0],Lt=It[1],Rt=It[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==St.CONTENTS){var Ft=this.textNode.data.split(St.CONTENTS).join("");this.next instanceof wt.default?($t=this.next.domNode,this.next.insertAt(0,Ft),this.textNode.data=St.CONTENTS):(this.textNode.data=Ft,this.parent.insertBefore(gt.default.create(this.textNode),this),this.textNode=document.createTextNode(St.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),Lt!=null){var Mt=[Lt,Rt].map(function(Vt){return Math.max(0,Math.min($t.data.length,Vt-1))}),Ht=dt(Mt,2);return Lt=Ht[0],Rt=Ht[1],{startNode:$t,startOffset:Lt,endNode:$t,endOffset:Rt}}}}},{key:"update",value:function(At,Tt){var $t=this;if(At.some(function(Rt){return Rt.type==="characterData"&&Rt.target===$t.textNode})){var Lt=this.restore();Lt&&(Tt.range=Lt)}}},{key:"value",value:function(){return""}}]),St}(gt.default.Embed);kt.blotName="cursor",kt.className="ql-cursor",kt.tagName="span",kt.CONTENTS="\uFEFF",ut.default=kt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(0),ft=gt(dt),mt=ct(4),pt=gt(mt);function gt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function vt(Ct,Et){if(!(Ct instanceof Et))throw new TypeError("Cannot call a class as a function")}function wt(Ct,Et){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et&&(typeof Et=="object"||typeof Et=="function")?Et:Ct}function yt(Ct,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Et);Ct.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Et&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Et):Ct.__proto__=Et)}var bt=function(Ct){yt(Et,Ct);function Et(){return vt(this,Et),wt(this,(Et.__proto__||Object.getPrototypeOf(Et)).apply(this,arguments))}return Et}(ft.default.Container);bt.allowedChildren=[pt.default,mt.BlockEmbed,bt],ut.default=bt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.ColorStyle=ut.ColorClass=ut.ColorAttributor=void 0;var dt=function(){function kt(xt,St){for(var Ot=0;Ot<St.length;Ot++){var At=St[Ot];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(xt,At.key,At)}}return function(xt,St,Ot){return St&&kt(xt.prototype,St),Ot&&kt(xt,Ot),xt}}(),ft=function kt(xt,St,Ot){xt===null&&(xt=Function.prototype);var At=Object.getOwnPropertyDescriptor(xt,St);if(At===void 0){var Tt=Object.getPrototypeOf(xt);return Tt===null?void 0:kt(Tt,St,Ot)}else{if("value"in At)return At.value;var $t=At.get;return $t===void 0?void 0:$t.call(Ot)}},mt=ct(0),pt=gt(mt);function gt(kt){return kt&&kt.__esModule?kt:{default:kt}}function vt(kt,xt){if(!(kt instanceof xt))throw new TypeError("Cannot call a class as a function")}function wt(kt,xt){if(!kt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xt&&(typeof xt=="object"||typeof xt=="function")?xt:kt}function yt(kt,xt){if(typeof xt!="function"&&xt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xt);kt.prototype=Object.create(xt&&xt.prototype,{constructor:{value:kt,enumerable:!1,writable:!0,configurable:!0}}),xt&&(Object.setPrototypeOf?Object.setPrototypeOf(kt,xt):kt.__proto__=xt)}var bt=function(kt){yt(xt,kt);function xt(){return vt(this,xt),wt(this,(xt.__proto__||Object.getPrototypeOf(xt)).apply(this,arguments))}return dt(xt,[{key:"value",value:function(Ot){var At=ft(xt.prototype.__proto__||Object.getPrototypeOf(xt.prototype),"value",this).call(this,Ot);return At.startsWith("rgb(")?(At=At.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+At.split(",").map(function(Tt){return("00"+parseInt(Tt).toString(16)).slice(-2)}).join("")):At}}]),xt}(pt.default.Attributor.Style),Ct=new pt.default.Attributor.Class("color","ql-color",{scope:pt.default.Scope.INLINE}),Et=new bt("color","color",{scope:pt.default.Scope.INLINE});ut.ColorAttributor=bt,ut.ColorClass=Ct,ut.ColorStyle=Et},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.sanitize=ut.default=void 0;var dt=function(){function Et(kt,xt){for(var St=0;St<xt.length;St++){var Ot=xt[St];Ot.enumerable=Ot.enumerable||!1,Ot.configurable=!0,"value"in Ot&&(Ot.writable=!0),Object.defineProperty(kt,Ot.key,Ot)}}return function(kt,xt,St){return xt&&Et(kt.prototype,xt),St&&Et(kt,St),kt}}(),ft=function Et(kt,xt,St){kt===null&&(kt=Function.prototype);var Ot=Object.getOwnPropertyDescriptor(kt,xt);if(Ot===void 0){var At=Object.getPrototypeOf(kt);return At===null?void 0:Et(At,xt,St)}else{if("value"in Ot)return Ot.value;var Tt=Ot.get;return Tt===void 0?void 0:Tt.call(St)}},mt=ct(6),pt=gt(mt);function gt(Et){return Et&&Et.__esModule?Et:{default:Et}}function vt(Et,kt){if(!(Et instanceof kt))throw new TypeError("Cannot call a class as a function")}function wt(Et,kt){if(!Et)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return kt&&(typeof kt=="object"||typeof kt=="function")?kt:Et}function yt(Et,kt){if(typeof kt!="function"&&kt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof kt);Et.prototype=Object.create(kt&&kt.prototype,{constructor:{value:Et,enumerable:!1,writable:!0,configurable:!0}}),kt&&(Object.setPrototypeOf?Object.setPrototypeOf(Et,kt):Et.__proto__=kt)}var bt=function(Et){yt(kt,Et);function kt(){return vt(this,kt),wt(this,(kt.__proto__||Object.getPrototypeOf(kt)).apply(this,arguments))}return dt(kt,[{key:"format",value:function(St,Ot){if(St!==this.statics.blotName||!Ot)return ft(kt.prototype.__proto__||Object.getPrototypeOf(kt.prototype),"format",this).call(this,St,Ot);Ot=this.constructor.sanitize(Ot),this.domNode.setAttribute("href",Ot)}}],[{key:"create",value:function(St){var Ot=ft(kt.__proto__||Object.getPrototypeOf(kt),"create",this).call(this,St);return St=this.sanitize(St),Ot.setAttribute("href",St),Ot.setAttribute("rel","noopener noreferrer"),Ot.setAttribute("target","_blank"),Ot}},{key:"formats",value:function(St){return St.getAttribute("href")}},{key:"sanitize",value:function(St){return Ct(St,this.PROTOCOL_WHITELIST)?St:this.SANITIZED_URL}}]),kt}(pt.default);bt.blotName="link",bt.tagName="A",bt.SANITIZED_URL="about:blank",bt.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function Ct(Et,kt){var xt=document.createElement("a");xt.href=Et;var St=xt.href.slice(0,xt.href.indexOf(":"));return kt.indexOf(St)>-1}ut.default=bt,ut.sanitize=Ct},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kt){return typeof kt}:function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt},ft=function(){function kt(xt,St){for(var Ot=0;Ot<St.length;Ot++){var At=St[Ot];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(xt,At.key,At)}}return function(xt,St,Ot){return St&&kt(xt.prototype,St),Ot&&kt(xt,Ot),xt}}(),mt=ct(23),pt=wt(mt),gt=ct(107),vt=wt(gt);function wt(kt){return kt&&kt.__esModule?kt:{default:kt}}function yt(kt,xt){if(!(kt instanceof xt))throw new TypeError("Cannot call a class as a function")}var bt=0;function Ct(kt,xt){kt.setAttribute(xt,kt.getAttribute(xt)!=="true")}var Et=function(){function kt(xt){var St=this;yt(this,kt),this.select=xt,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){St.togglePicker()}),this.label.addEventListener("keydown",function(Ot){switch(Ot.keyCode){case pt.default.keys.ENTER:St.togglePicker();break;case pt.default.keys.ESCAPE:St.escape(),Ot.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return ft(kt,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),Ct(this.label,"aria-expanded"),Ct(this.options,"aria-hidden")}},{key:"buildItem",value:function(St){var Ot=this,At=document.createElement("span");return At.tabIndex="0",At.setAttribute("role","button"),At.classList.add("ql-picker-item"),St.hasAttribute("value")&&At.setAttribute("data-value",St.getAttribute("value")),St.textContent&&At.setAttribute("data-label",St.textContent),At.addEventListener("click",function(){Ot.selectItem(At,!0)}),At.addEventListener("keydown",function(Tt){switch(Tt.keyCode){case pt.default.keys.ENTER:Ot.selectItem(At,!0),Tt.preventDefault();break;case pt.default.keys.ESCAPE:Ot.escape(),Tt.preventDefault();break}}),At}},{key:"buildLabel",value:function(){var St=document.createElement("span");return St.classList.add("ql-picker-label"),St.innerHTML=vt.default,St.tabIndex="0",St.setAttribute("role","button"),St.setAttribute("aria-expanded","false"),this.container.appendChild(St),St}},{key:"buildOptions",value:function(){var St=this,Ot=document.createElement("span");Ot.classList.add("ql-picker-options"),Ot.setAttribute("aria-hidden","true"),Ot.tabIndex="-1",Ot.id="ql-picker-options-"+bt,bt+=1,this.label.setAttribute("aria-controls",Ot.id),this.options=Ot,[].slice.call(this.select.options).forEach(function(At){var Tt=St.buildItem(At);Ot.appendChild(Tt),At.selected===!0&&St.selectItem(Tt)}),this.container.appendChild(Ot)}},{key:"buildPicker",value:function(){var St=this;[].slice.call(this.select.attributes).forEach(function(Ot){St.container.setAttribute(Ot.name,Ot.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var St=this;this.close(),setTimeout(function(){return St.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(St){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,At=this.container.querySelector(".ql-selected");if(St!==At&&(At!=null&&At.classList.remove("ql-selected"),St!=null&&(St.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(St.parentNode.children,St),St.hasAttribute("data-value")?this.label.setAttribute("data-value",St.getAttribute("data-value")):this.label.removeAttribute("data-value"),St.hasAttribute("data-label")?this.label.setAttribute("data-label",St.getAttribute("data-label")):this.label.removeAttribute("data-label"),Ot))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":dt(Event))==="object"){var Tt=document.createEvent("Event");Tt.initEvent("change",!0,!0),this.select.dispatchEvent(Tt)}this.close()}}},{key:"update",value:function(){var St=void 0;if(this.select.selectedIndex>-1){var Ot=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];St=this.select.options[this.select.selectedIndex],this.selectItem(Ot)}else this.selectItem(null);var At=St!=null&&St!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",At)}}]),kt}();ut.default=Et},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(0),ft=Gt(dt),mt=ct(5),pt=Gt(mt),gt=ct(4),vt=Gt(gt),wt=ct(16),yt=Gt(wt),bt=ct(25),Ct=Gt(bt),Et=ct(24),kt=Gt(Et),xt=ct(35),St=Gt(xt),Ot=ct(6),At=Gt(Ot),Tt=ct(22),$t=Gt(Tt),Lt=ct(7),Rt=Gt(Lt),It=ct(55),Ft=Gt(It),Mt=ct(42),Ht=Gt(Mt),Vt=ct(23),Nt=Gt(Vt);function Gt(tn){return tn&&tn.__esModule?tn:{default:tn}}pt.default.register({"blots/block":vt.default,"blots/block/embed":gt.BlockEmbed,"blots/break":yt.default,"blots/container":Ct.default,"blots/cursor":kt.default,"blots/embed":St.default,"blots/inline":At.default,"blots/scroll":$t.default,"blots/text":Rt.default,"modules/clipboard":Ft.default,"modules/history":Ht.default,"modules/keyboard":Nt.default}),ft.default.register(vt.default,yt.default,kt.default,At.default,$t.default,Rt.default),ut.default=pt.default},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(1),ft=function(){function mt(pt){this.domNode=pt,this.domNode[dt.DATA_KEY]={blot:this}}return Object.defineProperty(mt.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),mt.create=function(pt){if(this.tagName==null)throw new dt.ParchmentError("Blot definition missing tagName");var gt;return Array.isArray(this.tagName)?(typeof pt=="string"&&(pt=pt.toUpperCase(),parseInt(pt).toString()===pt&&(pt=parseInt(pt))),typeof pt=="number"?gt=document.createElement(this.tagName[pt-1]):this.tagName.indexOf(pt)>-1?gt=document.createElement(pt):gt=document.createElement(this.tagName[0])):gt=document.createElement(this.tagName),this.className&&gt.classList.add(this.className),gt},mt.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},mt.prototype.clone=function(){var pt=this.domNode.cloneNode(!1);return dt.create(pt)},mt.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[dt.DATA_KEY]},mt.prototype.deleteAt=function(pt,gt){var vt=this.isolate(pt,gt);vt.remove()},mt.prototype.formatAt=function(pt,gt,vt,wt){var yt=this.isolate(pt,gt);if(dt.query(vt,dt.Scope.BLOT)!=null&&wt)yt.wrap(vt,wt);else if(dt.query(vt,dt.Scope.ATTRIBUTE)!=null){var bt=dt.create(this.statics.scope);yt.wrap(bt),bt.format(vt,wt)}},mt.prototype.insertAt=function(pt,gt,vt){var wt=vt==null?dt.create("text",gt):dt.create(gt,vt),yt=this.split(pt);this.parent.insertBefore(wt,yt)},mt.prototype.insertInto=function(pt,gt){gt===void 0&&(gt=null),this.parent!=null&&this.parent.children.remove(this);var vt=null;pt.children.insertBefore(this,gt),gt!=null&&(vt=gt.domNode),(this.domNode.parentNode!=pt.domNode||this.domNode.nextSibling!=vt)&&pt.domNode.insertBefore(this.domNode,vt),this.parent=pt,this.attach()},mt.prototype.isolate=function(pt,gt){var vt=this.split(pt);return vt.split(gt),vt},mt.prototype.length=function(){return 1},mt.prototype.offset=function(pt){return pt===void 0&&(pt=this.parent),this.parent==null||this==pt?0:this.parent.children.offset(this)+this.parent.offset(pt)},mt.prototype.optimize=function(pt){this.domNode[dt.DATA_KEY]!=null&&delete this.domNode[dt.DATA_KEY].mutations},mt.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},mt.prototype.replace=function(pt){pt.parent!=null&&(pt.parent.insertBefore(this,pt.next),pt.remove())},mt.prototype.replaceWith=function(pt,gt){var vt=typeof pt=="string"?dt.create(pt,gt):pt;return vt.replace(this),vt},mt.prototype.split=function(pt,gt){return pt===0?this:this.next},mt.prototype.update=function(pt,gt){},mt.prototype.wrap=function(pt,gt){var vt=typeof pt=="string"?dt.create(pt,gt):pt;return this.parent!=null&&this.parent.insertBefore(vt,this.next),vt.appendChild(this),vt},mt.blotName="abstract",mt}();ut.default=ft},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(12),ft=ct(32),mt=ct(33),pt=ct(1),gt=function(){function vt(wt){this.attributes={},this.domNode=wt,this.build()}return vt.prototype.attribute=function(wt,yt){yt?wt.add(this.domNode,yt)&&(wt.value(this.domNode)!=null?this.attributes[wt.attrName]=wt:delete this.attributes[wt.attrName]):(wt.remove(this.domNode),delete this.attributes[wt.attrName])},vt.prototype.build=function(){var wt=this;this.attributes={};var yt=dt.default.keys(this.domNode),bt=ft.default.keys(this.domNode),Ct=mt.default.keys(this.domNode);yt.concat(bt).concat(Ct).forEach(function(Et){var kt=pt.query(Et,pt.Scope.ATTRIBUTE);kt instanceof dt.default&&(wt.attributes[kt.attrName]=kt)})},vt.prototype.copy=function(wt){var yt=this;Object.keys(this.attributes).forEach(function(bt){var Ct=yt.attributes[bt].value(yt.domNode);wt.format(bt,Ct)})},vt.prototype.move=function(wt){var yt=this;this.copy(wt),Object.keys(this.attributes).forEach(function(bt){yt.attributes[bt].remove(yt.domNode)}),this.attributes={}},vt.prototype.values=function(){var wt=this;return Object.keys(this.attributes).reduce(function(yt,bt){return yt[bt]=wt.attributes[bt].value(wt.domNode),yt},{})},vt}();ut.default=gt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,wt){vt.__proto__=wt}||function(vt,wt){for(var yt in wt)wt.hasOwnProperty(yt)&&(vt[yt]=wt[yt])};return function(vt,wt){gt(vt,wt);function yt(){this.constructor=vt}vt.prototype=wt===null?Object.create(wt):(yt.prototype=wt.prototype,new yt)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(12);function mt(gt,vt){var wt=gt.getAttribute("class")||"";return wt.split(/\s+/).filter(function(yt){return yt.indexOf(vt+"-")===0})}var pt=function(gt){dt(vt,gt);function vt(){return gt!==null&&gt.apply(this,arguments)||this}return vt.keys=function(wt){return(wt.getAttribute("class")||"").split(/\s+/).map(function(yt){return yt.split("-").slice(0,-1).join("-")})},vt.prototype.add=function(wt,yt){return this.canAdd(wt,yt)?(this.remove(wt),wt.classList.add(this.keyName+"-"+yt),!0):!1},vt.prototype.remove=function(wt){var yt=mt(wt,this.keyName);yt.forEach(function(bt){wt.classList.remove(bt)}),wt.classList.length===0&&wt.removeAttribute("class")},vt.prototype.value=function(wt){var yt=mt(wt,this.keyName)[0]||"",bt=yt.slice(this.keyName.length+1);return this.canAdd(wt,bt)?bt:""},vt}(ft.default);ut.default=pt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,wt){vt.__proto__=wt}||function(vt,wt){for(var yt in wt)wt.hasOwnProperty(yt)&&(vt[yt]=wt[yt])};return function(vt,wt){gt(vt,wt);function yt(){this.constructor=vt}vt.prototype=wt===null?Object.create(wt):(yt.prototype=wt.prototype,new yt)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(12);function mt(gt){var vt=gt.split("-"),wt=vt.slice(1).map(function(yt){return yt[0].toUpperCase()+yt.slice(1)}).join("");return vt[0]+wt}var pt=function(gt){dt(vt,gt);function vt(){return gt!==null&&gt.apply(this,arguments)||this}return vt.keys=function(wt){return(wt.getAttribute("style")||"").split(";").map(function(yt){var bt=yt.split(":");return bt[0].trim()})},vt.prototype.add=function(wt,yt){return this.canAdd(wt,yt)?(wt.style[mt(this.keyName)]=yt,!0):!1},vt.prototype.remove=function(wt){wt.style[mt(this.keyName)]="",wt.getAttribute("style")||wt.removeAttribute("style")},vt.prototype.value=function(wt){var yt=wt.style[mt(this.keyName)];return this.canAdd(wt,yt)?yt:""},vt}(ft.default);ut.default=pt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function pt(gt,vt){for(var wt=0;wt<vt.length;wt++){var yt=vt[wt];yt.enumerable=yt.enumerable||!1,yt.configurable=!0,"value"in yt&&(yt.writable=!0),Object.defineProperty(gt,yt.key,yt)}}return function(gt,vt,wt){return vt&&pt(gt.prototype,vt),wt&&pt(gt,wt),gt}}();function ft(pt,gt){if(!(pt instanceof gt))throw new TypeError("Cannot call a class as a function")}var mt=function(){function pt(gt,vt){ft(this,pt),this.quill=gt,this.options=vt,this.modules={}}return dt(pt,[{key:"init",value:function(){var vt=this;Object.keys(this.options.modules).forEach(function(wt){vt.modules[wt]==null&&vt.addModule(wt)})}},{key:"addModule",value:function(vt){var wt=this.quill.constructor.import("modules/"+vt);return this.modules[vt]=new wt(this.quill,this.options.modules[vt]||{}),this.modules[vt]}}]),pt}();mt.DEFAULTS={modules:{}},mt.themes={default:mt},ut.default=mt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function xt(St,Ot){for(var At=0;At<Ot.length;At++){var Tt=Ot[At];Tt.enumerable=Tt.enumerable||!1,Tt.configurable=!0,"value"in Tt&&(Tt.writable=!0),Object.defineProperty(St,Tt.key,Tt)}}return function(St,Ot,At){return Ot&&xt(St.prototype,Ot),At&&xt(St,At),St}}(),ft=function xt(St,Ot,At){St===null&&(St=Function.prototype);var Tt=Object.getOwnPropertyDescriptor(St,Ot);if(Tt===void 0){var $t=Object.getPrototypeOf(St);return $t===null?void 0:xt($t,Ot,At)}else{if("value"in Tt)return Tt.value;var Lt=Tt.get;return Lt===void 0?void 0:Lt.call(At)}},mt=ct(0),pt=wt(mt),gt=ct(7),vt=wt(gt);function wt(xt){return xt&&xt.__esModule?xt:{default:xt}}function yt(xt,St){if(!(xt instanceof St))throw new TypeError("Cannot call a class as a function")}function bt(xt,St){if(!xt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:xt}function Ct(xt,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);xt.prototype=Object.create(St&&St.prototype,{constructor:{value:xt,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(xt,St):xt.__proto__=St)}var Et="\uFEFF",kt=function(xt){Ct(St,xt);function St(Ot){yt(this,St);var At=bt(this,(St.__proto__||Object.getPrototypeOf(St)).call(this,Ot));return At.contentNode=document.createElement("span"),At.contentNode.setAttribute("contenteditable",!1),[].slice.call(At.domNode.childNodes).forEach(function(Tt){At.contentNode.appendChild(Tt)}),At.leftGuard=document.createTextNode(Et),At.rightGuard=document.createTextNode(Et),At.domNode.appendChild(At.leftGuard),At.domNode.appendChild(At.contentNode),At.domNode.appendChild(At.rightGuard),At}return dt(St,[{key:"index",value:function(At,Tt){return At===this.leftGuard?0:At===this.rightGuard?1:ft(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"index",this).call(this,At,Tt)}},{key:"restore",value:function(At){var Tt=void 0,$t=void 0,Lt=At.data.split(Et).join("");if(At===this.leftGuard)if(this.prev instanceof vt.default){var Rt=this.prev.length();this.prev.insertAt(Rt,Lt),Tt={startNode:this.prev.domNode,startOffset:Rt+Lt.length}}else $t=document.createTextNode(Lt),this.parent.insertBefore(pt.default.create($t),this),Tt={startNode:$t,startOffset:Lt.length};else At===this.rightGuard&&(this.next instanceof vt.default?(this.next.insertAt(0,Lt),Tt={startNode:this.next.domNode,startOffset:Lt.length}):($t=document.createTextNode(Lt),this.parent.insertBefore(pt.default.create($t),this.next),Tt={startNode:$t,startOffset:Lt.length}));return At.data=Et,Tt}},{key:"update",value:function(At,Tt){var $t=this;At.forEach(function(Lt){if(Lt.type==="characterData"&&(Lt.target===$t.leftGuard||Lt.target===$t.rightGuard)){var Rt=$t.restore(Lt.target);Rt&&(Tt.range=Rt)}})}}]),St}(pt.default.Embed);ut.default=kt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.AlignStyle=ut.AlignClass=ut.AlignAttribute=void 0;var dt=ct(0),ft=mt(dt);function mt(yt){return yt&&yt.__esModule?yt:{default:yt}}var pt={scope:ft.default.Scope.BLOCK,whitelist:["right","center","justify"]},gt=new ft.default.Attributor.Attribute("align","align",pt),vt=new ft.default.Attributor.Class("align","ql-align",pt),wt=new ft.default.Attributor.Style("align","text-align",pt);ut.AlignAttribute=gt,ut.AlignClass=vt,ut.AlignStyle=wt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.BackgroundStyle=ut.BackgroundClass=void 0;var dt=ct(0),ft=pt(dt),mt=ct(26);function pt(wt){return wt&&wt.__esModule?wt:{default:wt}}var gt=new ft.default.Attributor.Class("background","ql-bg",{scope:ft.default.Scope.INLINE}),vt=new mt.ColorAttributor("background","background-color",{scope:ft.default.Scope.INLINE});ut.BackgroundClass=gt,ut.BackgroundStyle=vt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.DirectionStyle=ut.DirectionClass=ut.DirectionAttribute=void 0;var dt=ct(0),ft=mt(dt);function mt(yt){return yt&&yt.__esModule?yt:{default:yt}}var pt={scope:ft.default.Scope.BLOCK,whitelist:["rtl"]},gt=new ft.default.Attributor.Attribute("direction","dir",pt),vt=new ft.default.Attributor.Class("direction","ql-direction",pt),wt=new ft.default.Attributor.Style("direction","direction",pt);ut.DirectionAttribute=gt,ut.DirectionClass=vt,ut.DirectionStyle=wt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.FontClass=ut.FontStyle=void 0;var dt=function(){function xt(St,Ot){for(var At=0;At<Ot.length;At++){var Tt=Ot[At];Tt.enumerable=Tt.enumerable||!1,Tt.configurable=!0,"value"in Tt&&(Tt.writable=!0),Object.defineProperty(St,Tt.key,Tt)}}return function(St,Ot,At){return Ot&&xt(St.prototype,Ot),At&&xt(St,At),St}}(),ft=function xt(St,Ot,At){St===null&&(St=Function.prototype);var Tt=Object.getOwnPropertyDescriptor(St,Ot);if(Tt===void 0){var $t=Object.getPrototypeOf(St);return $t===null?void 0:xt($t,Ot,At)}else{if("value"in Tt)return Tt.value;var Lt=Tt.get;return Lt===void 0?void 0:Lt.call(At)}},mt=ct(0),pt=gt(mt);function gt(xt){return xt&&xt.__esModule?xt:{default:xt}}function vt(xt,St){if(!(xt instanceof St))throw new TypeError("Cannot call a class as a function")}function wt(xt,St){if(!xt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return St&&(typeof St=="object"||typeof St=="function")?St:xt}function yt(xt,St){if(typeof St!="function"&&St!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof St);xt.prototype=Object.create(St&&St.prototype,{constructor:{value:xt,enumerable:!1,writable:!0,configurable:!0}}),St&&(Object.setPrototypeOf?Object.setPrototypeOf(xt,St):xt.__proto__=St)}var bt={scope:pt.default.Scope.INLINE,whitelist:["serif","monospace"]},Ct=new pt.default.Attributor.Class("font","ql-font",bt),Et=function(xt){yt(St,xt);function St(){return vt(this,St),wt(this,(St.__proto__||Object.getPrototypeOf(St)).apply(this,arguments))}return dt(St,[{key:"value",value:function(At){return ft(St.prototype.__proto__||Object.getPrototypeOf(St.prototype),"value",this).call(this,At).replace(/["']/g,"")}}]),St}(pt.default.Attributor.Style),kt=new Et("font","font-family",bt);ut.FontStyle=kt,ut.FontClass=Ct},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.SizeStyle=ut.SizeClass=void 0;var dt=ct(0),ft=mt(dt);function mt(vt){return vt&&vt.__esModule?vt:{default:vt}}var pt=new ft.default.Attributor.Class("size","ql-size",{scope:ft.default.Scope.INLINE,whitelist:["small","large","huge"]}),gt=new ft.default.Attributor.Style("size","font-size",{scope:ft.default.Scope.INLINE,whitelist:["10px","18px","32px"]});ut.SizeClass=pt,ut.SizeStyle=gt},function(lt,ut,ct){lt.exports={align:{"":ct(76),center:ct(77),right:ct(78),justify:ct(79)},background:ct(80),blockquote:ct(81),bold:ct(82),clean:ct(83),code:ct(58),"code-block":ct(58),color:ct(84),direction:{"":ct(85),rtl:ct(86)},float:{center:ct(87),full:ct(88),left:ct(89),right:ct(90)},formula:ct(91),header:{1:ct(92),2:ct(93)},italic:ct(94),image:ct(95),indent:{"+1":ct(96),"-1":ct(97)},link:ct(98),list:{ordered:ct(99),bullet:ct(100),check:ct(101)},script:{sub:ct(102),super:ct(103)},strike:ct(104),underline:ct(105),video:ct(106)}},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.getLastChangeIndex=ut.default=void 0;var dt=function(){function Ot(At,Tt){for(var $t=0;$t<Tt.length;$t++){var Lt=Tt[$t];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(At,Lt.key,Lt)}}return function(At,Tt,$t){return Tt&&Ot(At.prototype,Tt),$t&&Ot(At,$t),At}}(),ft=ct(0),mt=yt(ft),pt=ct(5),gt=yt(pt),vt=ct(9),wt=yt(vt);function yt(Ot){return Ot&&Ot.__esModule?Ot:{default:Ot}}function bt(Ot,At){if(!(Ot instanceof At))throw new TypeError("Cannot call a class as a function")}function Ct(Ot,At){if(!Ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return At&&(typeof At=="object"||typeof At=="function")?At:Ot}function Et(Ot,At){if(typeof At!="function"&&At!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof At);Ot.prototype=Object.create(At&&At.prototype,{constructor:{value:Ot,enumerable:!1,writable:!0,configurable:!0}}),At&&(Object.setPrototypeOf?Object.setPrototypeOf(Ot,At):Ot.__proto__=At)}var kt=function(Ot){Et(At,Ot);function At(Tt,$t){bt(this,At);var Lt=Ct(this,(At.__proto__||Object.getPrototypeOf(At)).call(this,Tt,$t));return Lt.lastRecorded=0,Lt.ignoreChange=!1,Lt.clear(),Lt.quill.on(gt.default.events.EDITOR_CHANGE,function(Rt,It,Ft,Mt){Rt!==gt.default.events.TEXT_CHANGE||Lt.ignoreChange||(!Lt.options.userOnly||Mt===gt.default.sources.USER?Lt.record(It,Ft):Lt.transform(It))}),Lt.quill.keyboard.addBinding({key:"Z",shortKey:!0},Lt.undo.bind(Lt)),Lt.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},Lt.redo.bind(Lt)),/Win/i.test(navigator.platform)&&Lt.quill.keyboard.addBinding({key:"Y",shortKey:!0},Lt.redo.bind(Lt)),Lt}return dt(At,[{key:"change",value:function($t,Lt){if(this.stack[$t].length!==0){var Rt=this.stack[$t].pop();this.stack[Lt].push(Rt),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(Rt[$t],gt.default.sources.USER),this.ignoreChange=!1;var It=St(Rt[$t]);this.quill.setSelection(It)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function($t,Lt){if($t.ops.length!==0){this.stack.redo=[];var Rt=this.quill.getContents().diff(Lt),It=Date.now();if(this.lastRecorded+this.options.delay>It&&this.stack.undo.length>0){var Ft=this.stack.undo.pop();Rt=Rt.compose(Ft.undo),$t=Ft.redo.compose($t)}else this.lastRecorded=It;this.stack.undo.push({redo:$t,undo:Rt}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function($t){this.stack.undo.forEach(function(Lt){Lt.undo=$t.transform(Lt.undo,!0),Lt.redo=$t.transform(Lt.redo,!0)}),this.stack.redo.forEach(function(Lt){Lt.undo=$t.transform(Lt.undo,!0),Lt.redo=$t.transform(Lt.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),At}(wt.default);kt.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function xt(Ot){var At=Ot.ops[Ot.ops.length-1];return At==null?!1:At.insert!=null?typeof At.insert=="string"&&At.insert.endsWith(`
`):At.attributes!=null?Object.keys(At.attributes).some(function(Tt){return mt.default.query(Tt,mt.default.Scope.BLOCK)!=null}):!1}function St(Ot){var At=Ot.reduce(function($t,Lt){return $t+=Lt.delete||0,$t},0),Tt=Ot.length()-At;return xt(Ot)&&(Tt-=1),Tt}ut.default=kt,ut.getLastChangeIndex=St},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.BaseTooltip=void 0;var dt=function(){function Zt(Wt,jt){for(var Bt=0;Bt<jt.length;Bt++){var Dt=jt[Bt];Dt.enumerable=Dt.enumerable||!1,Dt.configurable=!0,"value"in Dt&&(Dt.writable=!0),Object.defineProperty(Wt,Dt.key,Dt)}}return function(Wt,jt,Bt){return jt&&Zt(Wt.prototype,jt),Bt&&Zt(Wt,Bt),Wt}}(),ft=function Zt(Wt,jt,Bt){Wt===null&&(Wt=Function.prototype);var Dt=Object.getOwnPropertyDescriptor(Wt,jt);if(Dt===void 0){var zt=Object.getPrototypeOf(Wt);return zt===null?void 0:Zt(zt,jt,Bt)}else{if("value"in Dt)return Dt.value;var Kt=Dt.get;return Kt===void 0?void 0:Kt.call(Bt)}},mt=ct(3),pt=It(mt),gt=ct(2),vt=It(gt),wt=ct(8),yt=It(wt),bt=ct(23),Ct=It(bt),Et=ct(34),kt=It(Et),xt=ct(59),St=It(xt),Ot=ct(60),At=It(Ot),Tt=ct(28),$t=It(Tt),Lt=ct(61),Rt=It(Lt);function It(Zt){return Zt&&Zt.__esModule?Zt:{default:Zt}}function Ft(Zt,Wt){if(!(Zt instanceof Wt))throw new TypeError("Cannot call a class as a function")}function Mt(Zt,Wt){if(!Zt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Wt&&(typeof Wt=="object"||typeof Wt=="function")?Wt:Zt}function Ht(Zt,Wt){if(typeof Wt!="function"&&Wt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Wt);Zt.prototype=Object.create(Wt&&Wt.prototype,{constructor:{value:Zt,enumerable:!1,writable:!0,configurable:!0}}),Wt&&(Object.setPrototypeOf?Object.setPrototypeOf(Zt,Wt):Zt.__proto__=Wt)}var Vt=[!1,"center","right","justify"],Nt=["#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"],Gt=[!1,"serif","monospace"],tn=["1","2","3",!1],ln=["small",!1,"large","huge"],nn=function(Zt){Ht(Wt,Zt);function Wt(jt,Bt){Ft(this,Wt);var Dt=Mt(this,(Wt.__proto__||Object.getPrototypeOf(Wt)).call(this,jt,Bt)),zt=function Kt(en){if(!document.body.contains(jt.root))return document.body.removeEventListener("click",Kt);Dt.tooltip!=null&&!Dt.tooltip.root.contains(en.target)&&document.activeElement!==Dt.tooltip.textbox&&!Dt.quill.hasFocus()&&Dt.tooltip.hide(),Dt.pickers!=null&&Dt.pickers.forEach(function(sn){sn.container.contains(en.target)||sn.close()})};return jt.emitter.listenDOM("click",document.body,zt),Dt}return dt(Wt,[{key:"addModule",value:function(Bt){var Dt=ft(Wt.prototype.__proto__||Object.getPrototypeOf(Wt.prototype),"addModule",this).call(this,Bt);return Bt==="toolbar"&&this.extendToolbar(Dt),Dt}},{key:"buildButtons",value:function(Bt,Dt){Bt.forEach(function(zt){var Kt=zt.getAttribute("class")||"";Kt.split(/\s+/).forEach(function(en){if(en.startsWith("ql-")&&(en=en.slice(3),Dt[en]!=null))if(en==="direction")zt.innerHTML=Dt[en][""]+Dt[en].rtl;else if(typeof Dt[en]=="string")zt.innerHTML=Dt[en];else{var sn=zt.value||"";sn!=null&&Dt[en][sn]&&(zt.innerHTML=Dt[en][sn])}})})}},{key:"buildPickers",value:function(Bt,Dt){var zt=this;this.pickers=Bt.map(function(en){if(en.classList.contains("ql-align"))return en.querySelector("option")==null&&Jt(en,Vt),new At.default(en,Dt.align);if(en.classList.contains("ql-background")||en.classList.contains("ql-color")){var sn=en.classList.contains("ql-background")?"background":"color";return en.querySelector("option")==null&&Jt(en,Nt,sn==="background"?"#ffffff":"#000000"),new St.default(en,Dt[sn])}else return en.querySelector("option")==null&&(en.classList.contains("ql-font")?Jt(en,Gt):en.classList.contains("ql-header")?Jt(en,tn):en.classList.contains("ql-size")&&Jt(en,ln)),new $t.default(en)});var Kt=function(){zt.pickers.forEach(function(sn){sn.update()})};this.quill.on(yt.default.events.EDITOR_CHANGE,Kt)}}]),Wt}(kt.default);nn.DEFAULTS=(0,pt.default)(!0,{},kt.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var Wt=this,jt=this.container.querySelector("input.ql-image[type=file]");jt==null&&(jt=document.createElement("input"),jt.setAttribute("type","file"),jt.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),jt.classList.add("ql-image"),jt.addEventListener("change",function(){if(jt.files!=null&&jt.files[0]!=null){var Bt=new FileReader;Bt.onload=function(Dt){var zt=Wt.quill.getSelection(!0);Wt.quill.updateContents(new vt.default().retain(zt.index).delete(zt.length).insert({image:Dt.target.result}),yt.default.sources.USER),Wt.quill.setSelection(zt.index+1,yt.default.sources.SILENT),jt.value=""},Bt.readAsDataURL(jt.files[0])}}),this.container.appendChild(jt)),jt.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var on=function(Zt){Ht(Wt,Zt);function Wt(jt,Bt){Ft(this,Wt);var Dt=Mt(this,(Wt.__proto__||Object.getPrototypeOf(Wt)).call(this,jt,Bt));return Dt.textbox=Dt.root.querySelector('input[type="text"]'),Dt.listen(),Dt}return dt(Wt,[{key:"listen",value:function(){var Bt=this;this.textbox.addEventListener("keydown",function(Dt){Ct.default.match(Dt,"enter")?(Bt.save(),Dt.preventDefault()):Ct.default.match(Dt,"escape")&&(Bt.cancel(),Dt.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),Dt!=null?this.textbox.value=Dt:Bt!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Bt)||""),this.root.setAttribute("data-mode",Bt)}},{key:"restoreFocus",value:function(){var Bt=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Bt}},{key:"save",value:function(){var Bt=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var Dt=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Bt,yt.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Bt,yt.default.sources.USER)),this.quill.root.scrollTop=Dt;break}case"video":Bt=rn(Bt);case"formula":{if(!Bt)break;var zt=this.quill.getSelection(!0);if(zt!=null){var Kt=zt.index+zt.length;this.quill.insertEmbed(Kt,this.root.getAttribute("data-mode"),Bt,yt.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Kt+1," ",yt.default.sources.USER),this.quill.setSelection(Kt+2,yt.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),Wt}(Rt.default);function rn(Zt){var Wt=Zt.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||Zt.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return Wt?(Wt[1]||"https")+"://www.youtube.com/embed/"+Wt[2]+"?showinfo=0":(Wt=Zt.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(Wt[1]||"https")+"://player.vimeo.com/video/"+Wt[2]+"/":Zt}function Jt(Zt,Wt){var jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Wt.forEach(function(Bt){var Dt=document.createElement("option");Bt===jt?Dt.setAttribute("selected","selected"):Dt.setAttribute("value",Bt),Zt.appendChild(Dt)})}ut.BaseTooltip=on,ut.default=nn},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function ft(){this.head=this.tail=null,this.length=0}return ft.prototype.append=function(){for(var mt=[],pt=0;pt<arguments.length;pt++)mt[pt]=arguments[pt];this.insertBefore(mt[0],null),mt.length>1&&this.append.apply(this,mt.slice(1))},ft.prototype.contains=function(mt){for(var pt,gt=this.iterator();pt=gt();)if(pt===mt)return!0;return!1},ft.prototype.insertBefore=function(mt,pt){mt&&(mt.next=pt,pt!=null?(mt.prev=pt.prev,pt.prev!=null&&(pt.prev.next=mt),pt.prev=mt,pt===this.head&&(this.head=mt)):this.tail!=null?(this.tail.next=mt,mt.prev=this.tail,this.tail=mt):(mt.prev=null,this.head=this.tail=mt),this.length+=1)},ft.prototype.offset=function(mt){for(var pt=0,gt=this.head;gt!=null;){if(gt===mt)return pt;pt+=gt.length(),gt=gt.next}return-1},ft.prototype.remove=function(mt){this.contains(mt)&&(mt.prev!=null&&(mt.prev.next=mt.next),mt.next!=null&&(mt.next.prev=mt.prev),mt===this.head&&(this.head=mt.next),mt===this.tail&&(this.tail=mt.prev),this.length-=1)},ft.prototype.iterator=function(mt){return mt===void 0&&(mt=this.head),function(){var pt=mt;return mt!=null&&(mt=mt.next),pt}},ft.prototype.find=function(mt,pt){pt===void 0&&(pt=!1);for(var gt,vt=this.iterator();gt=vt();){var wt=gt.length();if(mt<wt||pt&&mt===wt&&(gt.next==null||gt.next.length()!==0))return[gt,mt];mt-=wt}return[null,0]},ft.prototype.forEach=function(mt){for(var pt,gt=this.iterator();pt=gt();)mt(pt)},ft.prototype.forEachAt=function(mt,pt,gt){if(!(pt<=0))for(var vt=this.find(mt),wt=vt[0],yt=vt[1],bt,Ct=mt-yt,Et=this.iterator(wt);(bt=Et())&&Ct<mt+pt;){var kt=bt.length();mt>Ct?gt(bt,mt-Ct,Math.min(pt,Ct+kt-mt)):gt(bt,0,Math.min(kt,mt+pt-Ct)),Ct+=kt}},ft.prototype.map=function(mt){return this.reduce(function(pt,gt){return pt.push(mt(gt)),pt},[])},ft.prototype.reduce=function(mt,pt){for(var gt,vt=this.iterator();gt=vt();)pt=mt(pt,gt);return pt},ft}();ut.default=dt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(yt,bt){yt.__proto__=bt}||function(yt,bt){for(var Ct in bt)bt.hasOwnProperty(Ct)&&(yt[Ct]=bt[Ct])};return function(yt,bt){wt(yt,bt);function Ct(){this.constructor=yt}yt.prototype=bt===null?Object.create(bt):(Ct.prototype=bt.prototype,new Ct)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(17),mt=ct(1),pt={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},gt=100,vt=function(wt){dt(yt,wt);function yt(bt){var Ct=wt.call(this,bt)||this;return Ct.scroll=Ct,Ct.observer=new MutationObserver(function(Et){Ct.update(Et)}),Ct.observer.observe(Ct.domNode,pt),Ct.attach(),Ct}return yt.prototype.detach=function(){wt.prototype.detach.call(this),this.observer.disconnect()},yt.prototype.deleteAt=function(bt,Ct){this.update(),bt===0&&Ct===this.length()?this.children.forEach(function(Et){Et.remove()}):wt.prototype.deleteAt.call(this,bt,Ct)},yt.prototype.formatAt=function(bt,Ct,Et,kt){this.update(),wt.prototype.formatAt.call(this,bt,Ct,Et,kt)},yt.prototype.insertAt=function(bt,Ct,Et){this.update(),wt.prototype.insertAt.call(this,bt,Ct,Et)},yt.prototype.optimize=function(bt,Ct){var Et=this;bt===void 0&&(bt=[]),Ct===void 0&&(Ct={}),wt.prototype.optimize.call(this,Ct);for(var kt=[].slice.call(this.observer.takeRecords());kt.length>0;)bt.push(kt.pop());for(var xt=function(Tt,$t){$t===void 0&&($t=!0),!(Tt==null||Tt===Et)&&Tt.domNode.parentNode!=null&&(Tt.domNode[mt.DATA_KEY].mutations==null&&(Tt.domNode[mt.DATA_KEY].mutations=[]),$t&&xt(Tt.parent))},St=function(Tt){Tt.domNode[mt.DATA_KEY]==null||Tt.domNode[mt.DATA_KEY].mutations==null||(Tt instanceof ft.default&&Tt.children.forEach(St),Tt.optimize(Ct))},Ot=bt,At=0;Ot.length>0;At+=1){if(At>=gt)throw new Error("[Parchment] Maximum optimize iterations reached");for(Ot.forEach(function(Tt){var $t=mt.find(Tt.target,!0);$t!=null&&($t.domNode===Tt.target&&(Tt.type==="childList"?(xt(mt.find(Tt.previousSibling,!1)),[].forEach.call(Tt.addedNodes,function(Lt){var Rt=mt.find(Lt,!1);xt(Rt,!1),Rt instanceof ft.default&&Rt.children.forEach(function(It){xt(It,!1)})})):Tt.type==="attributes"&&xt($t.prev)),xt($t))}),this.children.forEach(St),Ot=[].slice.call(this.observer.takeRecords()),kt=Ot.slice();kt.length>0;)bt.push(kt.pop())}},yt.prototype.update=function(bt,Ct){var Et=this;Ct===void 0&&(Ct={}),bt=bt||this.observer.takeRecords(),bt.map(function(kt){var xt=mt.find(kt.target,!0);return xt==null?null:xt.domNode[mt.DATA_KEY].mutations==null?(xt.domNode[mt.DATA_KEY].mutations=[kt],xt):(xt.domNode[mt.DATA_KEY].mutations.push(kt),null)}).forEach(function(kt){kt==null||kt===Et||kt.domNode[mt.DATA_KEY]==null||kt.update(kt.domNode[mt.DATA_KEY].mutations||[],Ct)}),this.domNode[mt.DATA_KEY].mutations!=null&&wt.prototype.update.call(this,this.domNode[mt.DATA_KEY].mutations,Ct),this.optimize(bt,Ct)},yt.blotName="scroll",yt.defaultChild="block",yt.scope=mt.Scope.BLOCK_BLOT,yt.tagName="DIV",yt}(ft.default);ut.default=vt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(wt,yt){wt.__proto__=yt}||function(wt,yt){for(var bt in yt)yt.hasOwnProperty(bt)&&(wt[bt]=yt[bt])};return function(wt,yt){vt(wt,yt);function bt(){this.constructor=wt}wt.prototype=yt===null?Object.create(yt):(bt.prototype=yt.prototype,new bt)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(18),mt=ct(1);function pt(vt,wt){if(Object.keys(vt).length!==Object.keys(wt).length)return!1;for(var yt in vt)if(vt[yt]!==wt[yt])return!1;return!0}var gt=function(vt){dt(wt,vt);function wt(){return vt!==null&&vt.apply(this,arguments)||this}return wt.formats=function(yt){if(yt.tagName!==wt.tagName)return vt.formats.call(this,yt)},wt.prototype.format=function(yt,bt){var Ct=this;yt===this.statics.blotName&&!bt?(this.children.forEach(function(Et){Et instanceof ft.default||(Et=Et.wrap(wt.blotName,!0)),Ct.attributes.copy(Et)}),this.unwrap()):vt.prototype.format.call(this,yt,bt)},wt.prototype.formatAt=function(yt,bt,Ct,Et){if(this.formats()[Ct]!=null||mt.query(Ct,mt.Scope.ATTRIBUTE)){var kt=this.isolate(yt,bt);kt.format(Ct,Et)}else vt.prototype.formatAt.call(this,yt,bt,Ct,Et)},wt.prototype.optimize=function(yt){vt.prototype.optimize.call(this,yt);var bt=this.formats();if(Object.keys(bt).length===0)return this.unwrap();var Ct=this.next;Ct instanceof wt&&Ct.prev===this&&pt(bt,Ct.formats())&&(Ct.moveChildren(this),Ct.remove())},wt.blotName="inline",wt.scope=mt.Scope.INLINE_BLOT,wt.tagName="SPAN",wt}(ft.default);ut.default=gt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,wt){vt.__proto__=wt}||function(vt,wt){for(var yt in wt)wt.hasOwnProperty(yt)&&(vt[yt]=wt[yt])};return function(vt,wt){gt(vt,wt);function yt(){this.constructor=vt}vt.prototype=wt===null?Object.create(wt):(yt.prototype=wt.prototype,new yt)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(18),mt=ct(1),pt=function(gt){dt(vt,gt);function vt(){return gt!==null&&gt.apply(this,arguments)||this}return vt.formats=function(wt){var yt=mt.query(vt.blotName).tagName;if(wt.tagName!==yt)return gt.formats.call(this,wt)},vt.prototype.format=function(wt,yt){mt.query(wt,mt.Scope.BLOCK)!=null&&(wt===this.statics.blotName&&!yt?this.replaceWith(vt.blotName):gt.prototype.format.call(this,wt,yt))},vt.prototype.formatAt=function(wt,yt,bt,Ct){mt.query(bt,mt.Scope.BLOCK)!=null?this.format(bt,Ct):gt.prototype.formatAt.call(this,wt,yt,bt,Ct)},vt.prototype.insertAt=function(wt,yt,bt){if(bt==null||mt.query(yt,mt.Scope.INLINE)!=null)gt.prototype.insertAt.call(this,wt,yt,bt);else{var Ct=this.split(wt),Et=mt.create(yt,bt);Ct.parent.insertBefore(Et,Ct)}},vt.prototype.update=function(wt,yt){navigator.userAgent.match(/Trident/)?this.build():gt.prototype.update.call(this,wt,yt)},vt.blotName="block",vt.scope=mt.Scope.BLOCK_BLOT,vt.tagName="P",vt}(ft.default);ut.default=pt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,vt){gt.__proto__=vt}||function(gt,vt){for(var wt in vt)vt.hasOwnProperty(wt)&&(gt[wt]=vt[wt])};return function(gt,vt){pt(gt,vt);function wt(){this.constructor=gt}gt.prototype=vt===null?Object.create(vt):(wt.prototype=vt.prototype,new wt)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(19),mt=function(pt){dt(gt,pt);function gt(){return pt!==null&&pt.apply(this,arguments)||this}return gt.formats=function(vt){},gt.prototype.format=function(vt,wt){pt.prototype.formatAt.call(this,0,this.length(),vt,wt)},gt.prototype.formatAt=function(vt,wt,yt,bt){vt===0&&wt===this.length()?this.format(yt,bt):pt.prototype.formatAt.call(this,vt,wt,yt,bt)},gt.prototype.formats=function(){return this.statics.formats(this.domNode)},gt}(ft.default);ut.default=mt},function(lt,ut,ct){var dt=this&&this.__extends||function(){var gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(vt,wt){vt.__proto__=wt}||function(vt,wt){for(var yt in wt)wt.hasOwnProperty(yt)&&(vt[yt]=wt[yt])};return function(vt,wt){gt(vt,wt);function yt(){this.constructor=vt}vt.prototype=wt===null?Object.create(wt):(yt.prototype=wt.prototype,new yt)}}();Object.defineProperty(ut,"__esModule",{value:!0});var ft=ct(19),mt=ct(1),pt=function(gt){dt(vt,gt);function vt(wt){var yt=gt.call(this,wt)||this;return yt.text=yt.statics.value(yt.domNode),yt}return vt.create=function(wt){return document.createTextNode(wt)},vt.value=function(wt){var yt=wt.data;return yt.normalize&&(yt=yt.normalize()),yt},vt.prototype.deleteAt=function(wt,yt){this.domNode.data=this.text=this.text.slice(0,wt)+this.text.slice(wt+yt)},vt.prototype.index=function(wt,yt){return this.domNode===wt?yt:-1},vt.prototype.insertAt=function(wt,yt,bt){bt==null?(this.text=this.text.slice(0,wt)+yt+this.text.slice(wt),this.domNode.data=this.text):gt.prototype.insertAt.call(this,wt,yt,bt)},vt.prototype.length=function(){return this.text.length},vt.prototype.optimize=function(wt){gt.prototype.optimize.call(this,wt),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof vt&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},vt.prototype.position=function(wt,yt){return[this.domNode,wt]},vt.prototype.split=function(wt,yt){if(yt===void 0&&(yt=!1),!yt){if(wt===0)return this;if(wt===this.length())return this.next}var bt=mt.create(this.domNode.splitText(wt));return this.parent.insertBefore(bt,this.next),this.text=this.statics.value(this.domNode),bt},vt.prototype.update=function(wt,yt){var bt=this;wt.some(function(Ct){return Ct.type==="characterData"&&Ct.target===bt.domNode})&&(this.text=this.statics.value(this.domNode))},vt.prototype.value=function(){return this.text},vt.blotName="text",vt.scope=mt.Scope.INLINE_BLOT,vt}(ft.default);ut.default=pt},function(lt,ut,ct){var dt=document.createElement("div");if(dt.classList.toggle("test-class",!1),dt.classList.contains("test-class")){var ft=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(mt,pt){return arguments.length>1&&!this.contains(mt)==!pt?pt:ft.call(this,mt)}}String.prototype.startsWith||(String.prototype.startsWith=function(mt,pt){return pt=pt||0,this.substr(pt,mt.length)===mt}),String.prototype.endsWith||(String.prototype.endsWith=function(mt,pt){var gt=this.toString();(typeof pt!="number"||!isFinite(pt)||Math.floor(pt)!==pt||pt>gt.length)&&(pt=gt.length),pt-=mt.length;var vt=gt.indexOf(mt,pt);return vt!==-1&&vt===pt}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(pt){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof pt!="function")throw new TypeError("predicate must be a function");for(var gt=Object(this),vt=gt.length>>>0,wt=arguments[1],yt,bt=0;bt<vt;bt++)if(yt=gt[bt],pt.call(wt,yt,bt,gt))return yt}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(lt,ut){var ct=-1,dt=1,ft=0;function mt(At,Tt,$t){if(At==Tt)return At?[[ft,At]]:[];($t<0||At.length<$t)&&($t=null);var Lt=wt(At,Tt),Rt=At.substring(0,Lt);At=At.substring(Lt),Tt=Tt.substring(Lt),Lt=yt(At,Tt);var It=At.substring(At.length-Lt);At=At.substring(0,At.length-Lt),Tt=Tt.substring(0,Tt.length-Lt);var Ft=pt(At,Tt);return Rt&&Ft.unshift([ft,Rt]),It&&Ft.push([ft,It]),Ct(Ft),$t!=null&&(Ft=xt(Ft,$t)),Ft=St(Ft),Ft}function pt(At,Tt){var $t;if(!At)return[[dt,Tt]];if(!Tt)return[[ct,At]];var Lt=At.length>Tt.length?At:Tt,Rt=At.length>Tt.length?Tt:At,It=Lt.indexOf(Rt);if(It!=-1)return $t=[[dt,Lt.substring(0,It)],[ft,Rt],[dt,Lt.substring(It+Rt.length)]],At.length>Tt.length&&($t[0][0]=$t[2][0]=ct),$t;if(Rt.length==1)return[[ct,At],[dt,Tt]];var Ft=bt(At,Tt);if(Ft){var Mt=Ft[0],Ht=Ft[1],Vt=Ft[2],Nt=Ft[3],Gt=Ft[4],tn=mt(Mt,Vt),ln=mt(Ht,Nt);return tn.concat([[ft,Gt]],ln)}return gt(At,Tt)}function gt(At,Tt){for(var $t=At.length,Lt=Tt.length,Rt=Math.ceil(($t+Lt)/2),It=Rt,Ft=2*Rt,Mt=new Array(Ft),Ht=new Array(Ft),Vt=0;Vt<Ft;Vt++)Mt[Vt]=-1,Ht[Vt]=-1;Mt[It+1]=0,Ht[It+1]=0;for(var Nt=$t-Lt,Gt=Nt%2!=0,tn=0,ln=0,nn=0,on=0,rn=0;rn<Rt;rn++){for(var Jt=-rn+tn;Jt<=rn-ln;Jt+=2){var Zt=It+Jt,Wt;Jt==-rn||Jt!=rn&&Mt[Zt-1]<Mt[Zt+1]?Wt=Mt[Zt+1]:Wt=Mt[Zt-1]+1;for(var jt=Wt-Jt;Wt<$t&&jt<Lt&&At.charAt(Wt)==Tt.charAt(jt);)Wt++,jt++;if(Mt[Zt]=Wt,Wt>$t)ln+=2;else if(jt>Lt)tn+=2;else if(Gt){var Bt=It+Nt-Jt;if(Bt>=0&&Bt<Ft&&Ht[Bt]!=-1){var Dt=$t-Ht[Bt];if(Wt>=Dt)return vt(At,Tt,Wt,jt)}}}for(var zt=-rn+nn;zt<=rn-on;zt+=2){var Bt=It+zt,Dt;zt==-rn||zt!=rn&&Ht[Bt-1]<Ht[Bt+1]?Dt=Ht[Bt+1]:Dt=Ht[Bt-1]+1;for(var Kt=Dt-zt;Dt<$t&&Kt<Lt&&At.charAt($t-Dt-1)==Tt.charAt(Lt-Kt-1);)Dt++,Kt++;if(Ht[Bt]=Dt,Dt>$t)on+=2;else if(Kt>Lt)nn+=2;else if(!Gt){var Zt=It+Nt-zt;if(Zt>=0&&Zt<Ft&&Mt[Zt]!=-1){var Wt=Mt[Zt],jt=It+Wt-Zt;if(Dt=$t-Dt,Wt>=Dt)return vt(At,Tt,Wt,jt)}}}}return[[ct,At],[dt,Tt]]}function vt(At,Tt,$t,Lt){var Rt=At.substring(0,$t),It=Tt.substring(0,Lt),Ft=At.substring($t),Mt=Tt.substring(Lt),Ht=mt(Rt,It),Vt=mt(Ft,Mt);return Ht.concat(Vt)}function wt(At,Tt){if(!At||!Tt||At.charAt(0)!=Tt.charAt(0))return 0;for(var $t=0,Lt=Math.min(At.length,Tt.length),Rt=Lt,It=0;$t<Rt;)At.substring(It,Rt)==Tt.substring(It,Rt)?($t=Rt,It=$t):Lt=Rt,Rt=Math.floor((Lt-$t)/2+$t);return Rt}function yt(At,Tt){if(!At||!Tt||At.charAt(At.length-1)!=Tt.charAt(Tt.length-1))return 0;for(var $t=0,Lt=Math.min(At.length,Tt.length),Rt=Lt,It=0;$t<Rt;)At.substring(At.length-Rt,At.length-It)==Tt.substring(Tt.length-Rt,Tt.length-It)?($t=Rt,It=$t):Lt=Rt,Rt=Math.floor((Lt-$t)/2+$t);return Rt}function bt(At,Tt){var $t=At.length>Tt.length?At:Tt,Lt=At.length>Tt.length?Tt:At;if($t.length<4||Lt.length*2<$t.length)return null;function Rt(ln,nn,on){for(var rn=ln.substring(on,on+Math.floor(ln.length/4)),Jt=-1,Zt="",Wt,jt,Bt,Dt;(Jt=nn.indexOf(rn,Jt+1))!=-1;){var zt=wt(ln.substring(on),nn.substring(Jt)),Kt=yt(ln.substring(0,on),nn.substring(0,Jt));Zt.length<Kt+zt&&(Zt=nn.substring(Jt-Kt,Jt)+nn.substring(Jt,Jt+zt),Wt=ln.substring(0,on-Kt),jt=ln.substring(on+zt),Bt=nn.substring(0,Jt-Kt),Dt=nn.substring(Jt+zt))}return Zt.length*2>=ln.length?[Wt,jt,Bt,Dt,Zt]:null}var It=Rt($t,Lt,Math.ceil($t.length/4)),Ft=Rt($t,Lt,Math.ceil($t.length/2)),Mt;if(!It&&!Ft)return null;Ft?It?Mt=It[4].length>Ft[4].length?It:Ft:Mt=Ft:Mt=It;var Ht,Vt,Nt,Gt;At.length>Tt.length?(Ht=Mt[0],Vt=Mt[1],Nt=Mt[2],Gt=Mt[3]):(Nt=Mt[0],Gt=Mt[1],Ht=Mt[2],Vt=Mt[3]);var tn=Mt[4];return[Ht,Vt,Nt,Gt,tn]}function Ct(At){At.push([ft,""]);for(var Tt=0,$t=0,Lt=0,Rt="",It="",Ft;Tt<At.length;)switch(At[Tt][0]){case dt:Lt++,It+=At[Tt][1],Tt++;break;case ct:$t++,Rt+=At[Tt][1],Tt++;break;case ft:$t+Lt>1?($t!==0&&Lt!==0&&(Ft=wt(It,Rt),Ft!==0&&(Tt-$t-Lt>0&&At[Tt-$t-Lt-1][0]==ft?At[Tt-$t-Lt-1][1]+=It.substring(0,Ft):(At.splice(0,0,[ft,It.substring(0,Ft)]),Tt++),It=It.substring(Ft),Rt=Rt.substring(Ft)),Ft=yt(It,Rt),Ft!==0&&(At[Tt][1]=It.substring(It.length-Ft)+At[Tt][1],It=It.substring(0,It.length-Ft),Rt=Rt.substring(0,Rt.length-Ft))),$t===0?At.splice(Tt-Lt,$t+Lt,[dt,It]):Lt===0?At.splice(Tt-$t,$t+Lt,[ct,Rt]):At.splice(Tt-$t-Lt,$t+Lt,[ct,Rt],[dt,It]),Tt=Tt-$t-Lt+($t?1:0)+(Lt?1:0)+1):Tt!==0&&At[Tt-1][0]==ft?(At[Tt-1][1]+=At[Tt][1],At.splice(Tt,1)):Tt++,Lt=0,$t=0,Rt="",It="";break}At[At.length-1][1]===""&&At.pop();var Mt=!1;for(Tt=1;Tt<At.length-1;)At[Tt-1][0]==ft&&At[Tt+1][0]==ft&&(At[Tt][1].substring(At[Tt][1].length-At[Tt-1][1].length)==At[Tt-1][1]?(At[Tt][1]=At[Tt-1][1]+At[Tt][1].substring(0,At[Tt][1].length-At[Tt-1][1].length),At[Tt+1][1]=At[Tt-1][1]+At[Tt+1][1],At.splice(Tt-1,1),Mt=!0):At[Tt][1].substring(0,At[Tt+1][1].length)==At[Tt+1][1]&&(At[Tt-1][1]+=At[Tt+1][1],At[Tt][1]=At[Tt][1].substring(At[Tt+1][1].length)+At[Tt+1][1],At.splice(Tt+1,1),Mt=!0)),Tt++;Mt&&Ct(At)}var Et=mt;Et.INSERT=dt,Et.DELETE=ct,Et.EQUAL=ft,lt.exports=Et;function kt(At,Tt){if(Tt===0)return[ft,At];for(var $t=0,Lt=0;Lt<At.length;Lt++){var Rt=At[Lt];if(Rt[0]===ct||Rt[0]===ft){var It=$t+Rt[1].length;if(Tt===It)return[Lt+1,At];if(Tt<It){At=At.slice();var Ft=Tt-$t,Mt=[Rt[0],Rt[1].slice(0,Ft)],Ht=[Rt[0],Rt[1].slice(Ft)];return At.splice(Lt,1,Mt,Ht),[Lt+1,At]}else $t=It}}throw new Error("cursor_pos is out of bounds!")}function xt(At,Tt){var $t=kt(At,Tt),Lt=$t[1],Rt=$t[0],It=Lt[Rt],Ft=Lt[Rt+1];if(It==null)return At;if(It[0]!==ft)return At;if(Ft!=null&&It[1]+Ft[1]===Ft[1]+It[1])return Lt.splice(Rt,2,Ft,It),Ot(Lt,Rt,2);if(Ft!=null&&Ft[1].indexOf(It[1])===0){Lt.splice(Rt,2,[Ft[0],It[1]],[0,It[1]]);var Mt=Ft[1].slice(It[1].length);return Mt.length>0&&Lt.splice(Rt+2,0,[Ft[0],Mt]),Ot(Lt,Rt,3)}else return At}function St(At){for(var Tt=!1,$t=function(Ft){return Ft.charCodeAt(0)>=56320&&Ft.charCodeAt(0)<=57343},Lt=function(Ft){return Ft.charCodeAt(Ft.length-1)>=55296&&Ft.charCodeAt(Ft.length-1)<=56319},Rt=2;Rt<At.length;Rt+=1)At[Rt-2][0]===ft&&Lt(At[Rt-2][1])&&At[Rt-1][0]===ct&&$t(At[Rt-1][1])&&At[Rt][0]===dt&&$t(At[Rt][1])&&(Tt=!0,At[Rt-1][1]=At[Rt-2][1].slice(-1)+At[Rt-1][1],At[Rt][1]=At[Rt-2][1].slice(-1)+At[Rt][1],At[Rt-2][1]=At[Rt-2][1].slice(0,-1));if(!Tt)return At;for(var It=[],Rt=0;Rt<At.length;Rt+=1)At[Rt][1].length>0&&It.push(At[Rt]);return It}function Ot(At,Tt,$t){for(var Lt=Tt+$t-1;Lt>=0&&Lt>=Tt-1;Lt--)if(Lt+1<At.length){var Rt=At[Lt],It=At[Lt+1];Rt[0]===It[1]&&At.splice(Lt,2,[Rt[0],Rt[1]+It[1]])}return At}},function(lt,ut){ut=lt.exports=typeof Object.keys=="function"?Object.keys:ct,ut.shim=ct;function ct(dt){var ft=[];for(var mt in dt)ft.push(mt);return ft}},function(lt,ut){var ct=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";ut=lt.exports=ct?dt:ft,ut.supported=dt;function dt(mt){return Object.prototype.toString.call(mt)=="[object Arguments]"}ut.unsupported=ft;function ft(mt){return mt&&typeof mt=="object"&&typeof mt.length=="number"&&Object.prototype.hasOwnProperty.call(mt,"callee")&&!Object.prototype.propertyIsEnumerable.call(mt,"callee")||!1}},function(lt,ut){var ct=Object.prototype.hasOwnProperty,dt="~";function ft(){}Object.create&&(ft.prototype=Object.create(null),new ft().__proto__||(dt=!1));function mt(gt,vt,wt){this.fn=gt,this.context=vt,this.once=wt||!1}function pt(){this._events=new ft,this._eventsCount=0}pt.prototype.eventNames=function(){var vt=[],wt,yt;if(this._eventsCount===0)return vt;for(yt in wt=this._events)ct.call(wt,yt)&&vt.push(dt?yt.slice(1):yt);return Object.getOwnPropertySymbols?vt.concat(Object.getOwnPropertySymbols(wt)):vt},pt.prototype.listeners=function(vt,wt){var yt=dt?dt+vt:vt,bt=this._events[yt];if(wt)return!!bt;if(!bt)return[];if(bt.fn)return[bt.fn];for(var Ct=0,Et=bt.length,kt=new Array(Et);Ct<Et;Ct++)kt[Ct]=bt[Ct].fn;return kt},pt.prototype.emit=function(vt,wt,yt,bt,Ct,Et){var kt=dt?dt+vt:vt;if(!this._events[kt])return!1;var xt=this._events[kt],St=arguments.length,Ot,At;if(xt.fn){switch(xt.once&&this.removeListener(vt,xt.fn,void 0,!0),St){case 1:return xt.fn.call(xt.context),!0;case 2:return xt.fn.call(xt.context,wt),!0;case 3:return xt.fn.call(xt.context,wt,yt),!0;case 4:return xt.fn.call(xt.context,wt,yt,bt),!0;case 5:return xt.fn.call(xt.context,wt,yt,bt,Ct),!0;case 6:return xt.fn.call(xt.context,wt,yt,bt,Ct,Et),!0}for(At=1,Ot=new Array(St-1);At<St;At++)Ot[At-1]=arguments[At];xt.fn.apply(xt.context,Ot)}else{var Tt=xt.length,$t;for(At=0;At<Tt;At++)switch(xt[At].once&&this.removeListener(vt,xt[At].fn,void 0,!0),St){case 1:xt[At].fn.call(xt[At].context);break;case 2:xt[At].fn.call(xt[At].context,wt);break;case 3:xt[At].fn.call(xt[At].context,wt,yt);break;case 4:xt[At].fn.call(xt[At].context,wt,yt,bt);break;default:if(!Ot)for($t=1,Ot=new Array(St-1);$t<St;$t++)Ot[$t-1]=arguments[$t];xt[At].fn.apply(xt[At].context,Ot)}}return!0},pt.prototype.on=function(vt,wt,yt){var bt=new mt(wt,yt||this),Ct=dt?dt+vt:vt;return this._events[Ct]?this._events[Ct].fn?this._events[Ct]=[this._events[Ct],bt]:this._events[Ct].push(bt):(this._events[Ct]=bt,this._eventsCount++),this},pt.prototype.once=function(vt,wt,yt){var bt=new mt(wt,yt||this,!0),Ct=dt?dt+vt:vt;return this._events[Ct]?this._events[Ct].fn?this._events[Ct]=[this._events[Ct],bt]:this._events[Ct].push(bt):(this._events[Ct]=bt,this._eventsCount++),this},pt.prototype.removeListener=function(vt,wt,yt,bt){var Ct=dt?dt+vt:vt;if(!this._events[Ct])return this;if(!wt)return--this._eventsCount===0?this._events=new ft:delete this._events[Ct],this;var Et=this._events[Ct];if(Et.fn)Et.fn===wt&&(!bt||Et.once)&&(!yt||Et.context===yt)&&(--this._eventsCount===0?this._events=new ft:delete this._events[Ct]);else{for(var kt=0,xt=[],St=Et.length;kt<St;kt++)(Et[kt].fn!==wt||bt&&!Et[kt].once||yt&&Et[kt].context!==yt)&&xt.push(Et[kt]);xt.length?this._events[Ct]=xt.length===1?xt[0]:xt:--this._eventsCount===0?this._events=new ft:delete this._events[Ct]}return this},pt.prototype.removeAllListeners=function(vt){var wt;return vt?(wt=dt?dt+vt:vt,this._events[wt]&&(--this._eventsCount===0?this._events=new ft:delete this._events[wt])):(this._events=new ft,this._eventsCount=0),this},pt.prototype.off=pt.prototype.removeListener,pt.prototype.addListener=pt.prototype.on,pt.prototype.setMaxListeners=function(){return this},pt.prefixed=dt,pt.EventEmitter=pt,typeof lt<"u"&&(lt.exports=pt)},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.matchText=ut.matchSpacing=ut.matchNewline=ut.matchBlot=ut.matchAttributor=ut.default=void 0;var dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(wn){return typeof wn}:function(wn){return wn&&typeof Symbol=="function"&&wn.constructor===Symbol&&wn!==Symbol.prototype?"symbol":typeof wn},ft=function(){function wn(Mn,Dn){var Un=[],Sn=!0,On=!1,Cn=void 0;try{for(var Pn=Mn[Symbol.iterator](),Xn;!(Sn=(Xn=Pn.next()).done)&&(Un.push(Xn.value),!(Dn&&Un.length===Dn));Sn=!0);}catch(Qn){On=!0,Cn=Qn}finally{try{!Sn&&Pn.return&&Pn.return()}finally{if(On)throw Cn}}return Un}return function(Mn,Dn){if(Array.isArray(Mn))return Mn;if(Symbol.iterator in Object(Mn))return wn(Mn,Dn);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),mt=function(){function wn(Mn,Dn){for(var Un=0;Un<Dn.length;Un++){var Sn=Dn[Un];Sn.enumerable=Sn.enumerable||!1,Sn.configurable=!0,"value"in Sn&&(Sn.writable=!0),Object.defineProperty(Mn,Sn.key,Sn)}}return function(Mn,Dn,Un){return Dn&&wn(Mn.prototype,Dn),Un&&wn(Mn,Un),Mn}}(),pt=ct(3),gt=Ht(pt),vt=ct(2),wt=Ht(vt),yt=ct(0),bt=Ht(yt),Ct=ct(5),Et=Ht(Ct),kt=ct(10),xt=Ht(kt),St=ct(9),Ot=Ht(St),At=ct(36),Tt=ct(37),$t=ct(13),Lt=Ht($t),Rt=ct(26),It=ct(38),Ft=ct(39),Mt=ct(40);function Ht(wn){return wn&&wn.__esModule?wn:{default:wn}}function Vt(wn,Mn,Dn){return Mn in wn?Object.defineProperty(wn,Mn,{value:Dn,enumerable:!0,configurable:!0,writable:!0}):wn[Mn]=Dn,wn}function Nt(wn,Mn){if(!(wn instanceof Mn))throw new TypeError("Cannot call a class as a function")}function Gt(wn,Mn){if(!wn)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mn&&(typeof Mn=="object"||typeof Mn=="function")?Mn:wn}function tn(wn,Mn){if(typeof Mn!="function"&&Mn!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Mn);wn.prototype=Object.create(Mn&&Mn.prototype,{constructor:{value:wn,enumerable:!1,writable:!0,configurable:!0}}),Mn&&(Object.setPrototypeOf?Object.setPrototypeOf(wn,Mn):wn.__proto__=Mn)}var ln=(0,xt.default)("quill:clipboard"),nn="__ql-matcher",on=[[Node.TEXT_NODE,Fn],[Node.TEXT_NODE,kn],["br",cn],[Node.ELEMENT_NODE,kn],[Node.ELEMENT_NODE,sn],[Node.ELEMENT_NODE,In],[Node.ELEMENT_NODE,en],[Node.ELEMENT_NODE,Hn],["li",Tn],["b",Kt.bind(Kt,"bold")],["i",Kt.bind(Kt,"italic")],["style",bn]],rn=[At.AlignAttribute,It.DirectionAttribute].reduce(function(wn,Mn){return wn[Mn.keyName]=Mn,wn},{}),Jt=[At.AlignStyle,Tt.BackgroundStyle,Rt.ColorStyle,It.DirectionStyle,Ft.FontStyle,Mt.SizeStyle].reduce(function(wn,Mn){return wn[Mn.keyName]=Mn,wn},{}),Zt=function(wn){tn(Mn,wn);function Mn(Dn,Un){Nt(this,Mn);var Sn=Gt(this,(Mn.__proto__||Object.getPrototypeOf(Mn)).call(this,Dn,Un));return Sn.quill.root.addEventListener("paste",Sn.onPaste.bind(Sn)),Sn.container=Sn.quill.addContainer("ql-clipboard"),Sn.container.setAttribute("contenteditable",!0),Sn.container.setAttribute("tabindex",-1),Sn.matchers=[],on.concat(Sn.options.matchers).forEach(function(On){var Cn=ft(On,2),Pn=Cn[0],Xn=Cn[1];!Un.matchVisual&&Xn===In||Sn.addMatcher(Pn,Xn)}),Sn}return mt(Mn,[{key:"addMatcher",value:function(Un,Sn){this.matchers.push([Un,Sn])}},{key:"convert",value:function(Un){if(typeof Un=="string")return this.container.innerHTML=Un.replace(/\>\r?\n +\</g,"><"),this.convert();var Sn=this.quill.getFormat(this.quill.selection.savedRange.index);if(Sn[Lt.default.blotName]){var On=this.container.innerText;return this.container.innerHTML="",new wt.default().insert(On,Vt({},Lt.default.blotName,Sn[Lt.default.blotName]))}var Cn=this.prepareMatching(),Pn=ft(Cn,2),Xn=Pn[0],Qn=Pn[1],sr=zt(this.container,Xn,Qn);return Bt(sr,`
`)&&sr.ops[sr.ops.length-1].attributes==null&&(sr=sr.compose(new wt.default().retain(sr.length()-1).delete(1))),ln.log("convert",this.container.innerHTML,sr),this.container.innerHTML="",sr}},{key:"dangerouslyPasteHTML",value:function(Un,Sn){var On=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Et.default.sources.API;if(typeof Un=="string")this.quill.setContents(this.convert(Un),Sn),this.quill.setSelection(0,Et.default.sources.SILENT);else{var Cn=this.convert(Sn);this.quill.updateContents(new wt.default().retain(Un).concat(Cn),On),this.quill.setSelection(Un+Cn.length(),Et.default.sources.SILENT)}}},{key:"onPaste",value:function(Un){var Sn=this;if(!(Un.defaultPrevented||!this.quill.isEnabled())){var On=this.quill.getSelection(),Cn=new wt.default().retain(On.index),Pn=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(Et.default.sources.SILENT),setTimeout(function(){Cn=Cn.concat(Sn.convert()).delete(On.length),Sn.quill.updateContents(Cn,Et.default.sources.USER),Sn.quill.setSelection(Cn.length()-On.length,Et.default.sources.SILENT),Sn.quill.scrollingContainer.scrollTop=Pn,Sn.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Un=this,Sn=[],On=[];return this.matchers.forEach(function(Cn){var Pn=ft(Cn,2),Xn=Pn[0],Qn=Pn[1];switch(Xn){case Node.TEXT_NODE:On.push(Qn);break;case Node.ELEMENT_NODE:Sn.push(Qn);break;default:[].forEach.call(Un.container.querySelectorAll(Xn),function(sr){sr[nn]=sr[nn]||[],sr[nn].push(Qn)});break}}),[Sn,On]}}]),Mn}(Ot.default);Zt.DEFAULTS={matchers:[],matchVisual:!0};function Wt(wn,Mn,Dn){return(typeof Mn>"u"?"undefined":dt(Mn))==="object"?Object.keys(Mn).reduce(function(Un,Sn){return Wt(Un,Sn,Mn[Sn])},wn):wn.reduce(function(Un,Sn){return Sn.attributes&&Sn.attributes[Mn]?Un.push(Sn):Un.insert(Sn.insert,(0,gt.default)({},Vt({},Mn,Dn),Sn.attributes))},new wt.default)}function jt(wn){if(wn.nodeType!==Node.ELEMENT_NODE)return{};var Mn="__ql-computed-style";return wn[Mn]||(wn[Mn]=window.getComputedStyle(wn))}function Bt(wn,Mn){for(var Dn="",Un=wn.ops.length-1;Un>=0&&Dn.length<Mn.length;--Un){var Sn=wn.ops[Un];if(typeof Sn.insert!="string")break;Dn=Sn.insert+Dn}return Dn.slice(-1*Mn.length)===Mn}function Dt(wn){if(wn.childNodes.length===0)return!1;var Mn=jt(wn);return["block","list-item"].indexOf(Mn.display)>-1}function zt(wn,Mn,Dn){return wn.nodeType===wn.TEXT_NODE?Dn.reduce(function(Un,Sn){return Sn(wn,Un)},new wt.default):wn.nodeType===wn.ELEMENT_NODE?[].reduce.call(wn.childNodes||[],function(Un,Sn){var On=zt(Sn,Mn,Dn);return Sn.nodeType===wn.ELEMENT_NODE&&(On=Mn.reduce(function(Cn,Pn){return Pn(Sn,Cn)},On),On=(Sn[nn]||[]).reduce(function(Cn,Pn){return Pn(Sn,Cn)},On)),Un.concat(On)},new wt.default):new wt.default}function Kt(wn,Mn,Dn){return Wt(Dn,wn,!0)}function en(wn,Mn){var Dn=bt.default.Attributor.Attribute.keys(wn),Un=bt.default.Attributor.Class.keys(wn),Sn=bt.default.Attributor.Style.keys(wn),On={};return Dn.concat(Un).concat(Sn).forEach(function(Cn){var Pn=bt.default.query(Cn,bt.default.Scope.ATTRIBUTE);Pn!=null&&(On[Pn.attrName]=Pn.value(wn),On[Pn.attrName])||(Pn=rn[Cn],Pn!=null&&(Pn.attrName===Cn||Pn.keyName===Cn)&&(On[Pn.attrName]=Pn.value(wn)||void 0),Pn=Jt[Cn],Pn!=null&&(Pn.attrName===Cn||Pn.keyName===Cn)&&(Pn=Jt[Cn],On[Pn.attrName]=Pn.value(wn)||void 0))}),Object.keys(On).length>0&&(Mn=Wt(Mn,On)),Mn}function sn(wn,Mn){var Dn=bt.default.query(wn);if(Dn==null)return Mn;if(Dn.prototype instanceof bt.default.Embed){var Un={},Sn=Dn.value(wn);Sn!=null&&(Un[Dn.blotName]=Sn,Mn=new wt.default().insert(Un,Dn.formats(wn)))}else typeof Dn.formats=="function"&&(Mn=Wt(Mn,Dn.blotName,Dn.formats(wn)));return Mn}function cn(wn,Mn){return Bt(Mn,`
`)||Mn.insert(`
`),Mn}function bn(){return new wt.default}function Tn(wn,Mn){var Dn=bt.default.query(wn);if(Dn==null||Dn.blotName!=="list-item"||!Bt(Mn,`
`))return Mn;for(var Un=-1,Sn=wn.parentNode;!Sn.classList.contains("ql-clipboard");)(bt.default.query(Sn)||{}).blotName==="list"&&(Un+=1),Sn=Sn.parentNode;return Un<=0?Mn:Mn.compose(new wt.default().retain(Mn.length()-1).retain(1,{indent:Un}))}function kn(wn,Mn){return Bt(Mn,`
`)||(Dt(wn)||Mn.length()>0&&wn.nextSibling&&Dt(wn.nextSibling))&&Mn.insert(`
`),Mn}function In(wn,Mn){if(Dt(wn)&&wn.nextElementSibling!=null&&!Bt(Mn,`

`)){var Dn=wn.offsetHeight+parseFloat(jt(wn).marginTop)+parseFloat(jt(wn).marginBottom);wn.nextElementSibling.offsetTop>wn.offsetTop+Dn*1.5&&Mn.insert(`
`)}return Mn}function Hn(wn,Mn){var Dn={},Un=wn.style||{};return Un.fontStyle&&jt(wn).fontStyle==="italic"&&(Dn.italic=!0),Un.fontWeight&&(jt(wn).fontWeight.startsWith("bold")||parseInt(jt(wn).fontWeight)>=700)&&(Dn.bold=!0),Object.keys(Dn).length>0&&(Mn=Wt(Mn,Dn)),parseFloat(Un.textIndent||0)>0&&(Mn=new wt.default().insert("	").concat(Mn)),Mn}function Fn(wn,Mn){var Dn=wn.data;if(wn.parentNode.tagName==="O:P")return Mn.insert(Dn.trim());if(Dn.trim().length===0&&wn.parentNode.classList.contains("ql-clipboard"))return Mn;if(!jt(wn.parentNode).whiteSpace.startsWith("pre")){var Un=function(On,Cn){return Cn=Cn.replace(/[^\u00a0]/g,""),Cn.length<1&&On?" ":Cn};Dn=Dn.replace(/\r\n/g," ").replace(/\n/g," "),Dn=Dn.replace(/\s\s+/g,Un.bind(Un,!0)),(wn.previousSibling==null&&Dt(wn.parentNode)||wn.previousSibling!=null&&Dt(wn.previousSibling))&&(Dn=Dn.replace(/^\s+/,Un.bind(Un,!1))),(wn.nextSibling==null&&Dt(wn.parentNode)||wn.nextSibling!=null&&Dt(wn.nextSibling))&&(Dn=Dn.replace(/\s+$/,Un.bind(Un,!1)))}return Mn.insert(Dn)}ut.default=Zt,ut.matchAttributor=en,ut.matchBlot=sn,ut.matchNewline=kn,ut.matchSpacing=In,ut.matchText=Fn},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function Ct(Et,kt){for(var xt=0;xt<kt.length;xt++){var St=kt[xt];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Et,St.key,St)}}return function(Et,kt,xt){return kt&&Ct(Et.prototype,kt),xt&&Ct(Et,xt),Et}}(),ft=function Ct(Et,kt,xt){Et===null&&(Et=Function.prototype);var St=Object.getOwnPropertyDescriptor(Et,kt);if(St===void 0){var Ot=Object.getPrototypeOf(Et);return Ot===null?void 0:Ct(Ot,kt,xt)}else{if("value"in St)return St.value;var At=St.get;return At===void 0?void 0:At.call(xt)}},mt=ct(6),pt=gt(mt);function gt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function vt(Ct,Et){if(!(Ct instanceof Et))throw new TypeError("Cannot call a class as a function")}function wt(Ct,Et){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et&&(typeof Et=="object"||typeof Et=="function")?Et:Ct}function yt(Ct,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Et);Ct.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Et&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Et):Ct.__proto__=Et)}var bt=function(Ct){yt(Et,Ct);function Et(){return vt(this,Et),wt(this,(Et.__proto__||Object.getPrototypeOf(Et)).apply(this,arguments))}return dt(Et,[{key:"optimize",value:function(xt){ft(Et.prototype.__proto__||Object.getPrototypeOf(Et.prototype),"optimize",this).call(this,xt),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return ft(Et.__proto__||Object.getPrototypeOf(Et),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),Et}(pt.default);bt.blotName="bold",bt.tagName=["STRONG","B"],ut.default=bt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.addControls=ut.default=void 0;var dt=function(){function Mt(Ht,Vt){var Nt=[],Gt=!0,tn=!1,ln=void 0;try{for(var nn=Ht[Symbol.iterator](),on;!(Gt=(on=nn.next()).done)&&(Nt.push(on.value),!(Vt&&Nt.length===Vt));Gt=!0);}catch(rn){tn=!0,ln=rn}finally{try{!Gt&&nn.return&&nn.return()}finally{if(tn)throw ln}}return Nt}return function(Ht,Vt){if(Array.isArray(Ht))return Ht;if(Symbol.iterator in Object(Ht))return Mt(Ht,Vt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ft=function(){function Mt(Ht,Vt){for(var Nt=0;Nt<Vt.length;Nt++){var Gt=Vt[Nt];Gt.enumerable=Gt.enumerable||!1,Gt.configurable=!0,"value"in Gt&&(Gt.writable=!0),Object.defineProperty(Ht,Gt.key,Gt)}}return function(Ht,Vt,Nt){return Vt&&Mt(Ht.prototype,Vt),Nt&&Mt(Ht,Nt),Ht}}(),mt=ct(2),pt=xt(mt),gt=ct(0),vt=xt(gt),wt=ct(5),yt=xt(wt),bt=ct(10),Ct=xt(bt),Et=ct(9),kt=xt(Et);function xt(Mt){return Mt&&Mt.__esModule?Mt:{default:Mt}}function St(Mt,Ht,Vt){return Ht in Mt?Object.defineProperty(Mt,Ht,{value:Vt,enumerable:!0,configurable:!0,writable:!0}):Mt[Ht]=Vt,Mt}function Ot(Mt,Ht){if(!(Mt instanceof Ht))throw new TypeError("Cannot call a class as a function")}function At(Mt,Ht){if(!Mt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht&&(typeof Ht=="object"||typeof Ht=="function")?Ht:Mt}function Tt(Mt,Ht){if(typeof Ht!="function"&&Ht!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ht);Mt.prototype=Object.create(Ht&&Ht.prototype,{constructor:{value:Mt,enumerable:!1,writable:!0,configurable:!0}}),Ht&&(Object.setPrototypeOf?Object.setPrototypeOf(Mt,Ht):Mt.__proto__=Ht)}var $t=(0,Ct.default)("quill:toolbar"),Lt=function(Mt){Tt(Ht,Mt);function Ht(Vt,Nt){Ot(this,Ht);var Gt=At(this,(Ht.__proto__||Object.getPrototypeOf(Ht)).call(this,Vt,Nt));if(Array.isArray(Gt.options.container)){var tn=document.createElement("div");It(tn,Gt.options.container),Vt.container.parentNode.insertBefore(tn,Vt.container),Gt.container=tn}else typeof Gt.options.container=="string"?Gt.container=document.querySelector(Gt.options.container):Gt.container=Gt.options.container;if(!(Gt.container instanceof HTMLElement)){var ln;return ln=$t.error("Container required for toolbar",Gt.options),At(Gt,ln)}return Gt.container.classList.add("ql-toolbar"),Gt.controls=[],Gt.handlers={},Object.keys(Gt.options.handlers).forEach(function(nn){Gt.addHandler(nn,Gt.options.handlers[nn])}),[].forEach.call(Gt.container.querySelectorAll("button, select"),function(nn){Gt.attach(nn)}),Gt.quill.on(yt.default.events.EDITOR_CHANGE,function(nn,on){nn===yt.default.events.SELECTION_CHANGE&&Gt.update(on)}),Gt.quill.on(yt.default.events.SCROLL_OPTIMIZE,function(){var nn=Gt.quill.selection.getRange(),on=dt(nn,1),rn=on[0];Gt.update(rn)}),Gt}return ft(Ht,[{key:"addHandler",value:function(Nt,Gt){this.handlers[Nt]=Gt}},{key:"attach",value:function(Nt){var Gt=this,tn=[].find.call(Nt.classList,function(nn){return nn.indexOf("ql-")===0});if(tn){if(tn=tn.slice(3),Nt.tagName==="BUTTON"&&Nt.setAttribute("type","button"),this.handlers[tn]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[tn]==null){$t.warn("ignoring attaching to disabled format",tn,Nt);return}if(vt.default.query(tn)==null){$t.warn("ignoring attaching to nonexistent format",tn,Nt);return}}var ln=Nt.tagName==="SELECT"?"change":"click";Nt.addEventListener(ln,function(nn){var on=void 0;if(Nt.tagName==="SELECT"){if(Nt.selectedIndex<0)return;var rn=Nt.options[Nt.selectedIndex];rn.hasAttribute("selected")?on=!1:on=rn.value||!1}else Nt.classList.contains("ql-active")?on=!1:on=Nt.value||!Nt.hasAttribute("value"),nn.preventDefault();Gt.quill.focus();var Jt=Gt.quill.selection.getRange(),Zt=dt(Jt,1),Wt=Zt[0];if(Gt.handlers[tn]!=null)Gt.handlers[tn].call(Gt,on);else if(vt.default.query(tn).prototype instanceof vt.default.Embed){if(on=prompt("Enter "+tn),!on)return;Gt.quill.updateContents(new pt.default().retain(Wt.index).delete(Wt.length).insert(St({},tn,on)),yt.default.sources.USER)}else Gt.quill.format(tn,on,yt.default.sources.USER);Gt.update(Wt)}),this.controls.push([tn,Nt])}}},{key:"update",value:function(Nt){var Gt=Nt==null?{}:this.quill.getFormat(Nt);this.controls.forEach(function(tn){var ln=dt(tn,2),nn=ln[0],on=ln[1];if(on.tagName==="SELECT"){var rn=void 0;if(Nt==null)rn=null;else if(Gt[nn]==null)rn=on.querySelector("option[selected]");else if(!Array.isArray(Gt[nn])){var Jt=Gt[nn];typeof Jt=="string"&&(Jt=Jt.replace(/\"/g,'\\"')),rn=on.querySelector('option[value="'+Jt+'"]')}rn==null?(on.value="",on.selectedIndex=-1):rn.selected=!0}else if(Nt==null)on.classList.remove("ql-active");else if(on.hasAttribute("value")){var Zt=Gt[nn]===on.getAttribute("value")||Gt[nn]!=null&&Gt[nn].toString()===on.getAttribute("value")||Gt[nn]==null&&!on.getAttribute("value");on.classList.toggle("ql-active",Zt)}else on.classList.toggle("ql-active",Gt[nn]!=null)})}}]),Ht}(kt.default);Lt.DEFAULTS={};function Rt(Mt,Ht,Vt){var Nt=document.createElement("button");Nt.setAttribute("type","button"),Nt.classList.add("ql-"+Ht),Vt!=null&&(Nt.value=Vt),Mt.appendChild(Nt)}function It(Mt,Ht){Array.isArray(Ht[0])||(Ht=[Ht]),Ht.forEach(function(Vt){var Nt=document.createElement("span");Nt.classList.add("ql-formats"),Vt.forEach(function(Gt){if(typeof Gt=="string")Rt(Nt,Gt);else{var tn=Object.keys(Gt)[0],ln=Gt[tn];Array.isArray(ln)?Ft(Nt,tn,ln):Rt(Nt,tn,ln)}}),Mt.appendChild(Nt)})}function Ft(Mt,Ht,Vt){var Nt=document.createElement("select");Nt.classList.add("ql-"+Ht),Vt.forEach(function(Gt){var tn=document.createElement("option");Gt!==!1?tn.setAttribute("value",Gt):tn.setAttribute("selected","selected"),Nt.appendChild(tn)}),Mt.appendChild(Nt)}Lt.DEFAULTS={container:null,handlers:{clean:function(){var Ht=this,Vt=this.quill.getSelection();if(Vt!=null)if(Vt.length==0){var Nt=this.quill.getFormat();Object.keys(Nt).forEach(function(Gt){vt.default.query(Gt,vt.default.Scope.INLINE)!=null&&Ht.quill.format(Gt,!1)})}else this.quill.removeFormat(Vt,yt.default.sources.USER)},direction:function(Ht){var Vt=this.quill.getFormat().align;Ht==="rtl"&&Vt==null?this.quill.format("align","right",yt.default.sources.USER):!Ht&&Vt==="right"&&this.quill.format("align",!1,yt.default.sources.USER),this.quill.format("direction",Ht,yt.default.sources.USER)},indent:function(Ht){var Vt=this.quill.getSelection(),Nt=this.quill.getFormat(Vt),Gt=parseInt(Nt.indent||0);if(Ht==="+1"||Ht==="-1"){var tn=Ht==="+1"?1:-1;Nt.direction==="rtl"&&(tn*=-1),this.quill.format("indent",Gt+tn,yt.default.sources.USER)}},link:function(Ht){Ht===!0&&(Ht=prompt("Enter link URL:")),this.quill.format("link",Ht,yt.default.sources.USER)},list:function(Ht){var Vt=this.quill.getSelection(),Nt=this.quill.getFormat(Vt);Ht==="check"?Nt.list==="checked"||Nt.list==="unchecked"?this.quill.format("list",!1,yt.default.sources.USER):this.quill.format("list","unchecked",yt.default.sources.USER):this.quill.format("list",Ht,yt.default.sources.USER)}}},ut.default=Lt,ut.addControls=It},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function Ct(Et,kt){for(var xt=0;xt<kt.length;xt++){var St=kt[xt];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Et,St.key,St)}}return function(Et,kt,xt){return kt&&Ct(Et.prototype,kt),xt&&Ct(Et,xt),Et}}(),ft=function Ct(Et,kt,xt){Et===null&&(Et=Function.prototype);var St=Object.getOwnPropertyDescriptor(Et,kt);if(St===void 0){var Ot=Object.getPrototypeOf(Et);return Ot===null?void 0:Ct(Ot,kt,xt)}else{if("value"in St)return St.value;var At=St.get;return At===void 0?void 0:At.call(xt)}},mt=ct(28),pt=gt(mt);function gt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function vt(Ct,Et){if(!(Ct instanceof Et))throw new TypeError("Cannot call a class as a function")}function wt(Ct,Et){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et&&(typeof Et=="object"||typeof Et=="function")?Et:Ct}function yt(Ct,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Et);Ct.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Et&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Et):Ct.__proto__=Et)}var bt=function(Ct){yt(Et,Ct);function Et(kt,xt){vt(this,Et);var St=wt(this,(Et.__proto__||Object.getPrototypeOf(Et)).call(this,kt));return St.label.innerHTML=xt,St.container.classList.add("ql-color-picker"),[].slice.call(St.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(Ot){Ot.classList.add("ql-primary")}),St}return dt(Et,[{key:"buildItem",value:function(xt){var St=ft(Et.prototype.__proto__||Object.getPrototypeOf(Et.prototype),"buildItem",this).call(this,xt);return St.style.backgroundColor=xt.getAttribute("value")||"",St}},{key:"selectItem",value:function(xt,St){ft(Et.prototype.__proto__||Object.getPrototypeOf(Et.prototype),"selectItem",this).call(this,xt,St);var Ot=this.label.querySelector(".ql-color-label"),At=xt&&xt.getAttribute("data-value")||"";Ot&&(Ot.tagName==="line"?Ot.style.stroke=At:Ot.style.fill=At)}}]),Et}(pt.default);ut.default=bt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function Ct(Et,kt){for(var xt=0;xt<kt.length;xt++){var St=kt[xt];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Et,St.key,St)}}return function(Et,kt,xt){return kt&&Ct(Et.prototype,kt),xt&&Ct(Et,xt),Et}}(),ft=function Ct(Et,kt,xt){Et===null&&(Et=Function.prototype);var St=Object.getOwnPropertyDescriptor(Et,kt);if(St===void 0){var Ot=Object.getPrototypeOf(Et);return Ot===null?void 0:Ct(Ot,kt,xt)}else{if("value"in St)return St.value;var At=St.get;return At===void 0?void 0:At.call(xt)}},mt=ct(28),pt=gt(mt);function gt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function vt(Ct,Et){if(!(Ct instanceof Et))throw new TypeError("Cannot call a class as a function")}function wt(Ct,Et){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et&&(typeof Et=="object"||typeof Et=="function")?Et:Ct}function yt(Ct,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Et);Ct.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Et&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Et):Ct.__proto__=Et)}var bt=function(Ct){yt(Et,Ct);function Et(kt,xt){vt(this,Et);var St=wt(this,(Et.__proto__||Object.getPrototypeOf(Et)).call(this,kt));return St.container.classList.add("ql-icon-picker"),[].forEach.call(St.container.querySelectorAll(".ql-picker-item"),function(Ot){Ot.innerHTML=xt[Ot.getAttribute("data-value")||""]}),St.defaultItem=St.container.querySelector(".ql-selected"),St.selectItem(St.defaultItem),St}return dt(Et,[{key:"selectItem",value:function(xt,St){ft(Et.prototype.__proto__||Object.getPrototypeOf(Et.prototype),"selectItem",this).call(this,xt,St),xt=xt||this.defaultItem,this.label.innerHTML=xt.innerHTML}}]),Et}(pt.default);ut.default=bt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function pt(gt,vt){for(var wt=0;wt<vt.length;wt++){var yt=vt[wt];yt.enumerable=yt.enumerable||!1,yt.configurable=!0,"value"in yt&&(yt.writable=!0),Object.defineProperty(gt,yt.key,yt)}}return function(gt,vt,wt){return vt&&pt(gt.prototype,vt),wt&&pt(gt,wt),gt}}();function ft(pt,gt){if(!(pt instanceof gt))throw new TypeError("Cannot call a class as a function")}var mt=function(){function pt(gt,vt){var wt=this;ft(this,pt),this.quill=gt,this.boundsContainer=vt||document.body,this.root=gt.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){wt.root.style.marginTop=-1*wt.quill.root.scrollTop+"px"}),this.hide()}return dt(pt,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(vt){var wt=vt.left+vt.width/2-this.root.offsetWidth/2,yt=vt.bottom+this.quill.root.scrollTop;this.root.style.left=wt+"px",this.root.style.top=yt+"px",this.root.classList.remove("ql-flip");var bt=this.boundsContainer.getBoundingClientRect(),Ct=this.root.getBoundingClientRect(),Et=0;if(Ct.right>bt.right&&(Et=bt.right-Ct.right,this.root.style.left=wt+Et+"px"),Ct.left<bt.left&&(Et=bt.left-Ct.left,this.root.style.left=wt+Et+"px"),Ct.bottom>bt.bottom){var kt=Ct.bottom-Ct.top,xt=vt.bottom-vt.top+kt;this.root.style.top=yt-xt+"px",this.root.classList.add("ql-flip")}return Et}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),pt}();ut.default=mt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function Ft(Mt,Ht){var Vt=[],Nt=!0,Gt=!1,tn=void 0;try{for(var ln=Mt[Symbol.iterator](),nn;!(Nt=(nn=ln.next()).done)&&(Vt.push(nn.value),!(Ht&&Vt.length===Ht));Nt=!0);}catch(on){Gt=!0,tn=on}finally{try{!Nt&&ln.return&&ln.return()}finally{if(Gt)throw tn}}return Vt}return function(Mt,Ht){if(Array.isArray(Mt))return Mt;if(Symbol.iterator in Object(Mt))return Ft(Mt,Ht);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ft=function Ft(Mt,Ht,Vt){Mt===null&&(Mt=Function.prototype);var Nt=Object.getOwnPropertyDescriptor(Mt,Ht);if(Nt===void 0){var Gt=Object.getPrototypeOf(Mt);return Gt===null?void 0:Ft(Gt,Ht,Vt)}else{if("value"in Nt)return Nt.value;var tn=Nt.get;return tn===void 0?void 0:tn.call(Vt)}},mt=function(){function Ft(Mt,Ht){for(var Vt=0;Vt<Ht.length;Vt++){var Nt=Ht[Vt];Nt.enumerable=Nt.enumerable||!1,Nt.configurable=!0,"value"in Nt&&(Nt.writable=!0),Object.defineProperty(Mt,Nt.key,Nt)}}return function(Mt,Ht,Vt){return Ht&&Ft(Mt.prototype,Ht),Vt&&Ft(Mt,Vt),Mt}}(),pt=ct(3),gt=Ot(pt),vt=ct(8),wt=Ot(vt),yt=ct(43),bt=Ot(yt),Ct=ct(27),Et=Ot(Ct),kt=ct(15),xt=ct(41),St=Ot(xt);function Ot(Ft){return Ft&&Ft.__esModule?Ft:{default:Ft}}function At(Ft,Mt){if(!(Ft instanceof Mt))throw new TypeError("Cannot call a class as a function")}function Tt(Ft,Mt){if(!Ft)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Mt&&(typeof Mt=="object"||typeof Mt=="function")?Mt:Ft}function $t(Ft,Mt){if(typeof Mt!="function"&&Mt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Mt);Ft.prototype=Object.create(Mt&&Mt.prototype,{constructor:{value:Ft,enumerable:!1,writable:!0,configurable:!0}}),Mt&&(Object.setPrototypeOf?Object.setPrototypeOf(Ft,Mt):Ft.__proto__=Mt)}var Lt=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],Rt=function(Ft){$t(Mt,Ft);function Mt(Ht,Vt){At(this,Mt),Vt.modules.toolbar!=null&&Vt.modules.toolbar.container==null&&(Vt.modules.toolbar.container=Lt);var Nt=Tt(this,(Mt.__proto__||Object.getPrototypeOf(Mt)).call(this,Ht,Vt));return Nt.quill.container.classList.add("ql-snow"),Nt}return mt(Mt,[{key:"extendToolbar",value:function(Vt){Vt.container.classList.add("ql-snow"),this.buildButtons([].slice.call(Vt.container.querySelectorAll("button")),St.default),this.buildPickers([].slice.call(Vt.container.querySelectorAll("select")),St.default),this.tooltip=new It(this.quill,this.options.bounds),Vt.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(Nt,Gt){Vt.handlers.link.call(Vt,!Gt.format.link)})}}]),Mt}(bt.default);Rt.DEFAULTS=(0,gt.default)(!0,{},bt.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Mt){if(Mt){var Ht=this.quill.getSelection();if(Ht==null||Ht.length==0)return;var Vt=this.quill.getText(Ht);/^\S+@\S+\.\S+$/.test(Vt)&&Vt.indexOf("mailto:")!==0&&(Vt="mailto:"+Vt);var Nt=this.quill.theme.tooltip;Nt.edit("link",Vt)}else this.quill.format("link",!1)}}}}});var It=function(Ft){$t(Mt,Ft);function Mt(Ht,Vt){At(this,Mt);var Nt=Tt(this,(Mt.__proto__||Object.getPrototypeOf(Mt)).call(this,Ht,Vt));return Nt.preview=Nt.root.querySelector("a.ql-preview"),Nt}return mt(Mt,[{key:"listen",value:function(){var Vt=this;ft(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(Nt){Vt.root.classList.contains("ql-editing")?Vt.save():Vt.edit("link",Vt.preview.textContent),Nt.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(Nt){if(Vt.linkRange!=null){var Gt=Vt.linkRange;Vt.restoreFocus(),Vt.quill.formatText(Gt,"link",!1,wt.default.sources.USER),delete Vt.linkRange}Nt.preventDefault(),Vt.hide()}),this.quill.on(wt.default.events.SELECTION_CHANGE,function(Nt,Gt,tn){if(Nt!=null){if(Nt.length===0&&tn===wt.default.sources.USER){var ln=Vt.quill.scroll.descendant(Et.default,Nt.index),nn=dt(ln,2),on=nn[0],rn=nn[1];if(on!=null){Vt.linkRange=new kt.Range(Nt.index-rn,on.length());var Jt=Et.default.formats(on.domNode);Vt.preview.textContent=Jt,Vt.preview.setAttribute("href",Jt),Vt.show(),Vt.position(Vt.quill.getBounds(Vt.linkRange));return}}else delete Vt.linkRange;Vt.hide()}})}},{key:"show",value:function(){ft(Mt.prototype.__proto__||Object.getPrototypeOf(Mt.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),Mt}(yt.BaseTooltip);It.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(""),ut.default=Rt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(29),ft=Sn(dt),mt=ct(36),pt=ct(38),gt=ct(64),vt=ct(65),wt=Sn(vt),yt=ct(66),bt=Sn(yt),Ct=ct(67),Et=Sn(Ct),kt=ct(37),xt=ct(26),St=ct(39),Ot=ct(40),At=ct(56),Tt=Sn(At),$t=ct(68),Lt=Sn($t),Rt=ct(27),It=Sn(Rt),Ft=ct(69),Mt=Sn(Ft),Ht=ct(70),Vt=Sn(Ht),Nt=ct(71),Gt=Sn(Nt),tn=ct(72),ln=Sn(tn),nn=ct(73),on=Sn(nn),rn=ct(13),Jt=Sn(rn),Zt=ct(74),Wt=Sn(Zt),jt=ct(75),Bt=Sn(jt),Dt=ct(57),zt=Sn(Dt),Kt=ct(41),en=Sn(Kt),sn=ct(28),cn=Sn(sn),bn=ct(59),Tn=Sn(bn),kn=ct(60),In=Sn(kn),Hn=ct(61),Fn=Sn(Hn),wn=ct(108),Mn=Sn(wn),Dn=ct(62),Un=Sn(Dn);function Sn(On){return On&&On.__esModule?On:{default:On}}ft.default.register({"attributors/attribute/direction":pt.DirectionAttribute,"attributors/class/align":mt.AlignClass,"attributors/class/background":kt.BackgroundClass,"attributors/class/color":xt.ColorClass,"attributors/class/direction":pt.DirectionClass,"attributors/class/font":St.FontClass,"attributors/class/size":Ot.SizeClass,"attributors/style/align":mt.AlignStyle,"attributors/style/background":kt.BackgroundStyle,"attributors/style/color":xt.ColorStyle,"attributors/style/direction":pt.DirectionStyle,"attributors/style/font":St.FontStyle,"attributors/style/size":Ot.SizeStyle},!0),ft.default.register({"formats/align":mt.AlignClass,"formats/direction":pt.DirectionClass,"formats/indent":gt.IndentClass,"formats/background":kt.BackgroundStyle,"formats/color":xt.ColorStyle,"formats/font":St.FontClass,"formats/size":Ot.SizeClass,"formats/blockquote":wt.default,"formats/code-block":Jt.default,"formats/header":bt.default,"formats/list":Et.default,"formats/bold":Tt.default,"formats/code":rn.Code,"formats/italic":Lt.default,"formats/link":It.default,"formats/script":Mt.default,"formats/strike":Vt.default,"formats/underline":Gt.default,"formats/image":ln.default,"formats/video":on.default,"formats/list/item":Ct.ListItem,"modules/formula":Wt.default,"modules/syntax":Bt.default,"modules/toolbar":zt.default,"themes/bubble":Mn.default,"themes/snow":Un.default,"ui/icons":en.default,"ui/picker":cn.default,"ui/icon-picker":In.default,"ui/color-picker":Tn.default,"ui/tooltip":Fn.default},!0),ut.default=ft.default},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.IndentClass=void 0;var dt=function(){function Et(kt,xt){for(var St=0;St<xt.length;St++){var Ot=xt[St];Ot.enumerable=Ot.enumerable||!1,Ot.configurable=!0,"value"in Ot&&(Ot.writable=!0),Object.defineProperty(kt,Ot.key,Ot)}}return function(kt,xt,St){return xt&&Et(kt.prototype,xt),St&&Et(kt,St),kt}}(),ft=function Et(kt,xt,St){kt===null&&(kt=Function.prototype);var Ot=Object.getOwnPropertyDescriptor(kt,xt);if(Ot===void 0){var At=Object.getPrototypeOf(kt);return At===null?void 0:Et(At,xt,St)}else{if("value"in Ot)return Ot.value;var Tt=Ot.get;return Tt===void 0?void 0:Tt.call(St)}},mt=ct(0),pt=gt(mt);function gt(Et){return Et&&Et.__esModule?Et:{default:Et}}function vt(Et,kt){if(!(Et instanceof kt))throw new TypeError("Cannot call a class as a function")}function wt(Et,kt){if(!Et)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return kt&&(typeof kt=="object"||typeof kt=="function")?kt:Et}function yt(Et,kt){if(typeof kt!="function"&&kt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof kt);Et.prototype=Object.create(kt&&kt.prototype,{constructor:{value:Et,enumerable:!1,writable:!0,configurable:!0}}),kt&&(Object.setPrototypeOf?Object.setPrototypeOf(Et,kt):Et.__proto__=kt)}var bt=function(Et){yt(kt,Et);function kt(){return vt(this,kt),wt(this,(kt.__proto__||Object.getPrototypeOf(kt)).apply(this,arguments))}return dt(kt,[{key:"add",value:function(St,Ot){if(Ot==="+1"||Ot==="-1"){var At=this.value(St)||0;Ot=Ot==="+1"?At+1:At-1}return Ot===0?(this.remove(St),!0):ft(kt.prototype.__proto__||Object.getPrototypeOf(kt.prototype),"add",this).call(this,St,Ot)}},{key:"canAdd",value:function(St,Ot){return ft(kt.prototype.__proto__||Object.getPrototypeOf(kt.prototype),"canAdd",this).call(this,St,Ot)||ft(kt.prototype.__proto__||Object.getPrototypeOf(kt.prototype),"canAdd",this).call(this,St,parseInt(Ot))}},{key:"value",value:function(St){return parseInt(ft(kt.prototype.__proto__||Object.getPrototypeOf(kt.prototype),"value",this).call(this,St))||void 0}}]),kt}(pt.default.Attributor.Class),Ct=new bt("indent","ql-indent",{scope:pt.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});ut.IndentClass=Ct},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(4),ft=mt(dt);function mt(yt){return yt&&yt.__esModule?yt:{default:yt}}function pt(yt,bt){if(!(yt instanceof bt))throw new TypeError("Cannot call a class as a function")}function gt(yt,bt){if(!yt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt&&(typeof bt=="object"||typeof bt=="function")?bt:yt}function vt(yt,bt){if(typeof bt!="function"&&bt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof bt);yt.prototype=Object.create(bt&&bt.prototype,{constructor:{value:yt,enumerable:!1,writable:!0,configurable:!0}}),bt&&(Object.setPrototypeOf?Object.setPrototypeOf(yt,bt):yt.__proto__=bt)}var wt=function(yt){vt(bt,yt);function bt(){return pt(this,bt),gt(this,(bt.__proto__||Object.getPrototypeOf(bt)).apply(this,arguments))}return bt}(ft.default);wt.blotName="blockquote",wt.tagName="blockquote",ut.default=wt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function bt(Ct,Et){for(var kt=0;kt<Et.length;kt++){var xt=Et[kt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(Ct,xt.key,xt)}}return function(Ct,Et,kt){return Et&&bt(Ct.prototype,Et),kt&&bt(Ct,kt),Ct}}(),ft=ct(4),mt=pt(ft);function pt(bt){return bt&&bt.__esModule?bt:{default:bt}}function gt(bt,Ct){if(!(bt instanceof Ct))throw new TypeError("Cannot call a class as a function")}function vt(bt,Ct){if(!bt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ct&&(typeof Ct=="object"||typeof Ct=="function")?Ct:bt}function wt(bt,Ct){if(typeof Ct!="function"&&Ct!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Ct);bt.prototype=Object.create(Ct&&Ct.prototype,{constructor:{value:bt,enumerable:!1,writable:!0,configurable:!0}}),Ct&&(Object.setPrototypeOf?Object.setPrototypeOf(bt,Ct):bt.__proto__=Ct)}var yt=function(bt){wt(Ct,bt);function Ct(){return gt(this,Ct),vt(this,(Ct.__proto__||Object.getPrototypeOf(Ct)).apply(this,arguments))}return dt(Ct,null,[{key:"formats",value:function(kt){return this.tagName.indexOf(kt.tagName)+1}}]),Ct}(mt.default);yt.blotName="header",yt.tagName=["H1","H2","H3","H4","H5","H6"],ut.default=yt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.ListItem=void 0;var dt=function(){function At(Tt,$t){for(var Lt=0;Lt<$t.length;Lt++){var Rt=$t[Lt];Rt.enumerable=Rt.enumerable||!1,Rt.configurable=!0,"value"in Rt&&(Rt.writable=!0),Object.defineProperty(Tt,Rt.key,Rt)}}return function(Tt,$t,Lt){return $t&&At(Tt.prototype,$t),Lt&&At(Tt,Lt),Tt}}(),ft=function At(Tt,$t,Lt){Tt===null&&(Tt=Function.prototype);var Rt=Object.getOwnPropertyDescriptor(Tt,$t);if(Rt===void 0){var It=Object.getPrototypeOf(Tt);return It===null?void 0:At(It,$t,Lt)}else{if("value"in Rt)return Rt.value;var Ft=Rt.get;return Ft===void 0?void 0:Ft.call(Lt)}},mt=ct(0),pt=bt(mt),gt=ct(4),vt=bt(gt),wt=ct(25),yt=bt(wt);function bt(At){return At&&At.__esModule?At:{default:At}}function Ct(At,Tt,$t){return Tt in At?Object.defineProperty(At,Tt,{value:$t,enumerable:!0,configurable:!0,writable:!0}):At[Tt]=$t,At}function Et(At,Tt){if(!(At instanceof Tt))throw new TypeError("Cannot call a class as a function")}function kt(At,Tt){if(!At)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Tt&&(typeof Tt=="object"||typeof Tt=="function")?Tt:At}function xt(At,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Tt);At.prototype=Object.create(Tt&&Tt.prototype,{constructor:{value:At,enumerable:!1,writable:!0,configurable:!0}}),Tt&&(Object.setPrototypeOf?Object.setPrototypeOf(At,Tt):At.__proto__=Tt)}var St=function(At){xt(Tt,At);function Tt(){return Et(this,Tt),kt(this,(Tt.__proto__||Object.getPrototypeOf(Tt)).apply(this,arguments))}return dt(Tt,[{key:"format",value:function(Lt,Rt){Lt===Ot.blotName&&!Rt?this.replaceWith(pt.default.create(this.statics.scope)):ft(Tt.prototype.__proto__||Object.getPrototypeOf(Tt.prototype),"format",this).call(this,Lt,Rt)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():ft(Tt.prototype.__proto__||Object.getPrototypeOf(Tt.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(Lt,Rt){return this.parent.isolate(this.offset(this.parent),this.length()),Lt===this.parent.statics.blotName?(this.parent.replaceWith(Lt,Rt),this):(this.parent.unwrap(),ft(Tt.prototype.__proto__||Object.getPrototypeOf(Tt.prototype),"replaceWith",this).call(this,Lt,Rt))}}],[{key:"formats",value:function(Lt){return Lt.tagName===this.tagName?void 0:ft(Tt.__proto__||Object.getPrototypeOf(Tt),"formats",this).call(this,Lt)}}]),Tt}(vt.default);St.blotName="list-item",St.tagName="LI";var Ot=function(At){xt(Tt,At),dt(Tt,null,[{key:"create",value:function(Lt){var Rt=Lt==="ordered"?"OL":"UL",It=ft(Tt.__proto__||Object.getPrototypeOf(Tt),"create",this).call(this,Rt);return(Lt==="checked"||Lt==="unchecked")&&It.setAttribute("data-checked",Lt==="checked"),It}},{key:"formats",value:function(Lt){if(Lt.tagName==="OL")return"ordered";if(Lt.tagName==="UL")return Lt.hasAttribute("data-checked")?Lt.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function Tt($t){Et(this,Tt);var Lt=kt(this,(Tt.__proto__||Object.getPrototypeOf(Tt)).call(this,$t)),Rt=function(Ft){if(Ft.target.parentNode===$t){var Mt=Lt.statics.formats($t),Ht=pt.default.find(Ft.target);Mt==="checked"?Ht.format("list","unchecked"):Mt==="unchecked"&&Ht.format("list","checked")}};return $t.addEventListener("touchstart",Rt),$t.addEventListener("mousedown",Rt),Lt}return dt(Tt,[{key:"format",value:function(Lt,Rt){this.children.length>0&&this.children.tail.format(Lt,Rt)}},{key:"formats",value:function(){return Ct({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(Lt,Rt){if(Lt instanceof St)ft(Tt.prototype.__proto__||Object.getPrototypeOf(Tt.prototype),"insertBefore",this).call(this,Lt,Rt);else{var It=Rt==null?this.length():Rt.offset(this),Ft=this.split(It);Ft.parent.insertBefore(Lt,Ft)}}},{key:"optimize",value:function(Lt){ft(Tt.prototype.__proto__||Object.getPrototypeOf(Tt.prototype),"optimize",this).call(this,Lt);var Rt=this.next;Rt!=null&&Rt.prev===this&&Rt.statics.blotName===this.statics.blotName&&Rt.domNode.tagName===this.domNode.tagName&&Rt.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(Rt.moveChildren(this),Rt.remove())}},{key:"replace",value:function(Lt){if(Lt.statics.blotName!==this.statics.blotName){var Rt=pt.default.create(this.statics.defaultChild);Lt.moveChildren(Rt),this.appendChild(Rt)}ft(Tt.prototype.__proto__||Object.getPrototypeOf(Tt.prototype),"replace",this).call(this,Lt)}}]),Tt}(yt.default);Ot.blotName="list",Ot.scope=pt.default.Scope.BLOCK_BLOT,Ot.tagName=["OL","UL"],Ot.defaultChild="list-item",Ot.allowedChildren=[St],ut.ListItem=St,ut.default=Ot},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(56),ft=mt(dt);function mt(yt){return yt&&yt.__esModule?yt:{default:yt}}function pt(yt,bt){if(!(yt instanceof bt))throw new TypeError("Cannot call a class as a function")}function gt(yt,bt){if(!yt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt&&(typeof bt=="object"||typeof bt=="function")?bt:yt}function vt(yt,bt){if(typeof bt!="function"&&bt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof bt);yt.prototype=Object.create(bt&&bt.prototype,{constructor:{value:yt,enumerable:!1,writable:!0,configurable:!0}}),bt&&(Object.setPrototypeOf?Object.setPrototypeOf(yt,bt):yt.__proto__=bt)}var wt=function(yt){vt(bt,yt);function bt(){return pt(this,bt),gt(this,(bt.__proto__||Object.getPrototypeOf(bt)).apply(this,arguments))}return bt}(ft.default);wt.blotName="italic",wt.tagName=["EM","I"],ut.default=wt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function Ct(Et,kt){for(var xt=0;xt<kt.length;xt++){var St=kt[xt];St.enumerable=St.enumerable||!1,St.configurable=!0,"value"in St&&(St.writable=!0),Object.defineProperty(Et,St.key,St)}}return function(Et,kt,xt){return kt&&Ct(Et.prototype,kt),xt&&Ct(Et,xt),Et}}(),ft=function Ct(Et,kt,xt){Et===null&&(Et=Function.prototype);var St=Object.getOwnPropertyDescriptor(Et,kt);if(St===void 0){var Ot=Object.getPrototypeOf(Et);return Ot===null?void 0:Ct(Ot,kt,xt)}else{if("value"in St)return St.value;var At=St.get;return At===void 0?void 0:At.call(xt)}},mt=ct(6),pt=gt(mt);function gt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function vt(Ct,Et){if(!(Ct instanceof Et))throw new TypeError("Cannot call a class as a function")}function wt(Ct,Et){if(!Ct)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Et&&(typeof Et=="object"||typeof Et=="function")?Et:Ct}function yt(Ct,Et){if(typeof Et!="function"&&Et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Et);Ct.prototype=Object.create(Et&&Et.prototype,{constructor:{value:Ct,enumerable:!1,writable:!0,configurable:!0}}),Et&&(Object.setPrototypeOf?Object.setPrototypeOf(Ct,Et):Ct.__proto__=Et)}var bt=function(Ct){yt(Et,Ct);function Et(){return vt(this,Et),wt(this,(Et.__proto__||Object.getPrototypeOf(Et)).apply(this,arguments))}return dt(Et,null,[{key:"create",value:function(xt){return xt==="super"?document.createElement("sup"):xt==="sub"?document.createElement("sub"):ft(Et.__proto__||Object.getPrototypeOf(Et),"create",this).call(this,xt)}},{key:"formats",value:function(xt){if(xt.tagName==="SUB")return"sub";if(xt.tagName==="SUP")return"super"}}]),Et}(pt.default);bt.blotName="script",bt.tagName=["SUB","SUP"],ut.default=bt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(6),ft=mt(dt);function mt(yt){return yt&&yt.__esModule?yt:{default:yt}}function pt(yt,bt){if(!(yt instanceof bt))throw new TypeError("Cannot call a class as a function")}function gt(yt,bt){if(!yt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt&&(typeof bt=="object"||typeof bt=="function")?bt:yt}function vt(yt,bt){if(typeof bt!="function"&&bt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof bt);yt.prototype=Object.create(bt&&bt.prototype,{constructor:{value:yt,enumerable:!1,writable:!0,configurable:!0}}),bt&&(Object.setPrototypeOf?Object.setPrototypeOf(yt,bt):yt.__proto__=bt)}var wt=function(yt){vt(bt,yt);function bt(){return pt(this,bt),gt(this,(bt.__proto__||Object.getPrototypeOf(bt)).apply(this,arguments))}return bt}(ft.default);wt.blotName="strike",wt.tagName="S",ut.default=wt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=ct(6),ft=mt(dt);function mt(yt){return yt&&yt.__esModule?yt:{default:yt}}function pt(yt,bt){if(!(yt instanceof bt))throw new TypeError("Cannot call a class as a function")}function gt(yt,bt){if(!yt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt&&(typeof bt=="object"||typeof bt=="function")?bt:yt}function vt(yt,bt){if(typeof bt!="function"&&bt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof bt);yt.prototype=Object.create(bt&&bt.prototype,{constructor:{value:yt,enumerable:!1,writable:!0,configurable:!0}}),bt&&(Object.setPrototypeOf?Object.setPrototypeOf(yt,bt):yt.__proto__=bt)}var wt=function(yt){vt(bt,yt);function bt(){return pt(this,bt),gt(this,(bt.__proto__||Object.getPrototypeOf(bt)).apply(this,arguments))}return bt}(ft.default);wt.blotName="underline",wt.tagName="U",ut.default=wt},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function kt(xt,St){for(var Ot=0;Ot<St.length;Ot++){var At=St[Ot];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(xt,At.key,At)}}return function(xt,St,Ot){return St&&kt(xt.prototype,St),Ot&&kt(xt,Ot),xt}}(),ft=function kt(xt,St,Ot){xt===null&&(xt=Function.prototype);var At=Object.getOwnPropertyDescriptor(xt,St);if(At===void 0){var Tt=Object.getPrototypeOf(xt);return Tt===null?void 0:kt(Tt,St,Ot)}else{if("value"in At)return At.value;var $t=At.get;return $t===void 0?void 0:$t.call(Ot)}},mt=ct(0),pt=vt(mt),gt=ct(27);function vt(kt){return kt&&kt.__esModule?kt:{default:kt}}function wt(kt,xt){if(!(kt instanceof xt))throw new TypeError("Cannot call a class as a function")}function yt(kt,xt){if(!kt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xt&&(typeof xt=="object"||typeof xt=="function")?xt:kt}function bt(kt,xt){if(typeof xt!="function"&&xt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xt);kt.prototype=Object.create(xt&&xt.prototype,{constructor:{value:kt,enumerable:!1,writable:!0,configurable:!0}}),xt&&(Object.setPrototypeOf?Object.setPrototypeOf(kt,xt):kt.__proto__=xt)}var Ct=["alt","height","width"],Et=function(kt){bt(xt,kt);function xt(){return wt(this,xt),yt(this,(xt.__proto__||Object.getPrototypeOf(xt)).apply(this,arguments))}return dt(xt,[{key:"format",value:function(Ot,At){Ct.indexOf(Ot)>-1?At?this.domNode.setAttribute(Ot,At):this.domNode.removeAttribute(Ot):ft(xt.prototype.__proto__||Object.getPrototypeOf(xt.prototype),"format",this).call(this,Ot,At)}}],[{key:"create",value:function(Ot){var At=ft(xt.__proto__||Object.getPrototypeOf(xt),"create",this).call(this,Ot);return typeof Ot=="string"&&At.setAttribute("src",this.sanitize(Ot)),At}},{key:"formats",value:function(Ot){return Ct.reduce(function(At,Tt){return Ot.hasAttribute(Tt)&&(At[Tt]=Ot.getAttribute(Tt)),At},{})}},{key:"match",value:function(Ot){return/\.(jpe?g|gif|png)$/.test(Ot)||/^data:image\/.+;base64/.test(Ot)}},{key:"sanitize",value:function(Ot){return(0,gt.sanitize)(Ot,["http","https","data"])?Ot:"//:0"}},{key:"value",value:function(Ot){return Ot.getAttribute("src")}}]),xt}(pt.default.Embed);Et.blotName="image",Et.tagName="IMG",ut.default=Et},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0});var dt=function(){function kt(xt,St){for(var Ot=0;Ot<St.length;Ot++){var At=St[Ot];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(xt,At.key,At)}}return function(xt,St,Ot){return St&&kt(xt.prototype,St),Ot&&kt(xt,Ot),xt}}(),ft=function kt(xt,St,Ot){xt===null&&(xt=Function.prototype);var At=Object.getOwnPropertyDescriptor(xt,St);if(At===void 0){var Tt=Object.getPrototypeOf(xt);return Tt===null?void 0:kt(Tt,St,Ot)}else{if("value"in At)return At.value;var $t=At.get;return $t===void 0?void 0:$t.call(Ot)}},mt=ct(4),pt=ct(27),gt=vt(pt);function vt(kt){return kt&&kt.__esModule?kt:{default:kt}}function wt(kt,xt){if(!(kt instanceof xt))throw new TypeError("Cannot call a class as a function")}function yt(kt,xt){if(!kt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xt&&(typeof xt=="object"||typeof xt=="function")?xt:kt}function bt(kt,xt){if(typeof xt!="function"&&xt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xt);kt.prototype=Object.create(xt&&xt.prototype,{constructor:{value:kt,enumerable:!1,writable:!0,configurable:!0}}),xt&&(Object.setPrototypeOf?Object.setPrototypeOf(kt,xt):kt.__proto__=xt)}var Ct=["height","width"],Et=function(kt){bt(xt,kt);function xt(){return wt(this,xt),yt(this,(xt.__proto__||Object.getPrototypeOf(xt)).apply(this,arguments))}return dt(xt,[{key:"format",value:function(Ot,At){Ct.indexOf(Ot)>-1?At?this.domNode.setAttribute(Ot,At):this.domNode.removeAttribute(Ot):ft(xt.prototype.__proto__||Object.getPrototypeOf(xt.prototype),"format",this).call(this,Ot,At)}}],[{key:"create",value:function(Ot){var At=ft(xt.__proto__||Object.getPrototypeOf(xt),"create",this).call(this,Ot);return At.setAttribute("frameborder","0"),At.setAttribute("allowfullscreen",!0),At.setAttribute("src",this.sanitize(Ot)),At}},{key:"formats",value:function(Ot){return Ct.reduce(function(At,Tt){return Ot.hasAttribute(Tt)&&(At[Tt]=Ot.getAttribute(Tt)),At},{})}},{key:"sanitize",value:function(Ot){return gt.default.sanitize(Ot)}},{key:"value",value:function(Ot){return Ot.getAttribute("src")}}]),xt}(mt.BlockEmbed);Et.blotName="video",Et.className="ql-video",Et.tagName="IFRAME",ut.default=Et},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.FormulaBlot=void 0;var dt=function(){function Ot(At,Tt){for(var $t=0;$t<Tt.length;$t++){var Lt=Tt[$t];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(At,Lt.key,Lt)}}return function(At,Tt,$t){return Tt&&Ot(At.prototype,Tt),$t&&Ot(At,$t),At}}(),ft=function Ot(At,Tt,$t){At===null&&(At=Function.prototype);var Lt=Object.getOwnPropertyDescriptor(At,Tt);if(Lt===void 0){var Rt=Object.getPrototypeOf(At);return Rt===null?void 0:Ot(Rt,Tt,$t)}else{if("value"in Lt)return Lt.value;var It=Lt.get;return It===void 0?void 0:It.call($t)}},mt=ct(35),pt=bt(mt),gt=ct(5),vt=bt(gt),wt=ct(9),yt=bt(wt);function bt(Ot){return Ot&&Ot.__esModule?Ot:{default:Ot}}function Ct(Ot,At){if(!(Ot instanceof At))throw new TypeError("Cannot call a class as a function")}function Et(Ot,At){if(!Ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return At&&(typeof At=="object"||typeof At=="function")?At:Ot}function kt(Ot,At){if(typeof At!="function"&&At!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof At);Ot.prototype=Object.create(At&&At.prototype,{constructor:{value:Ot,enumerable:!1,writable:!0,configurable:!0}}),At&&(Object.setPrototypeOf?Object.setPrototypeOf(Ot,At):Ot.__proto__=At)}var xt=function(Ot){kt(At,Ot);function At(){return Ct(this,At),Et(this,(At.__proto__||Object.getPrototypeOf(At)).apply(this,arguments))}return dt(At,null,[{key:"create",value:function($t){var Lt=ft(At.__proto__||Object.getPrototypeOf(At),"create",this).call(this,$t);return typeof $t=="string"&&(window.katex.render($t,Lt,{throwOnError:!1,errorColor:"#f00"}),Lt.setAttribute("data-value",$t)),Lt}},{key:"value",value:function($t){return $t.getAttribute("data-value")}}]),At}(pt.default);xt.blotName="formula",xt.className="ql-formula",xt.tagName="SPAN";var St=function(Ot){kt(At,Ot),dt(At,null,[{key:"register",value:function(){vt.default.register(xt,!0)}}]);function At(){Ct(this,At);var Tt=Et(this,(At.__proto__||Object.getPrototypeOf(At)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return Tt}return At}(yt.default);ut.FormulaBlot=xt,ut.default=St},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.CodeToken=ut.CodeBlock=void 0;var dt=function(){function $t(Lt,Rt){for(var It=0;It<Rt.length;It++){var Ft=Rt[It];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Lt,Ft.key,Ft)}}return function(Lt,Rt,It){return Rt&&$t(Lt.prototype,Rt),It&&$t(Lt,It),Lt}}(),ft=function $t(Lt,Rt,It){Lt===null&&(Lt=Function.prototype);var Ft=Object.getOwnPropertyDescriptor(Lt,Rt);if(Ft===void 0){var Mt=Object.getPrototypeOf(Lt);return Mt===null?void 0:$t(Mt,Rt,It)}else{if("value"in Ft)return Ft.value;var Ht=Ft.get;return Ht===void 0?void 0:Ht.call(It)}},mt=ct(0),pt=Et(mt),gt=ct(5),vt=Et(gt),wt=ct(9),yt=Et(wt),bt=ct(13),Ct=Et(bt);function Et($t){return $t&&$t.__esModule?$t:{default:$t}}function kt($t,Lt){if(!($t instanceof Lt))throw new TypeError("Cannot call a class as a function")}function xt($t,Lt){if(!$t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Lt&&(typeof Lt=="object"||typeof Lt=="function")?Lt:$t}function St($t,Lt){if(typeof Lt!="function"&&Lt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Lt);$t.prototype=Object.create(Lt&&Lt.prototype,{constructor:{value:$t,enumerable:!1,writable:!0,configurable:!0}}),Lt&&(Object.setPrototypeOf?Object.setPrototypeOf($t,Lt):$t.__proto__=Lt)}var Ot=function($t){St(Lt,$t);function Lt(){return kt(this,Lt),xt(this,(Lt.__proto__||Object.getPrototypeOf(Lt)).apply(this,arguments))}return dt(Lt,[{key:"replaceWith",value:function(It){this.domNode.textContent=this.domNode.textContent,this.attach(),ft(Lt.prototype.__proto__||Object.getPrototypeOf(Lt.prototype),"replaceWith",this).call(this,It)}},{key:"highlight",value:function(It){var Ft=this.domNode.textContent;this.cachedText!==Ft&&((Ft.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=It(Ft),this.domNode.normalize(),this.attach()),this.cachedText=Ft)}}]),Lt}(Ct.default);Ot.className="ql-syntax";var At=new pt.default.Attributor.Class("token","hljs",{scope:pt.default.Scope.INLINE}),Tt=function($t){St(Lt,$t),dt(Lt,null,[{key:"register",value:function(){vt.default.register(At,!0),vt.default.register(Ot,!0)}}]);function Lt(Rt,It){kt(this,Lt);var Ft=xt(this,(Lt.__proto__||Object.getPrototypeOf(Lt)).call(this,Rt,It));if(typeof Ft.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var Mt=null;return Ft.quill.on(vt.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(Mt),Mt=setTimeout(function(){Ft.highlight(),Mt=null},Ft.options.interval)}),Ft.highlight(),Ft}return dt(Lt,[{key:"highlight",value:function(){var It=this;if(!this.quill.selection.composing){this.quill.update(vt.default.sources.USER);var Ft=this.quill.getSelection();this.quill.scroll.descendants(Ot).forEach(function(Mt){Mt.highlight(It.options.highlight)}),this.quill.update(vt.default.sources.SILENT),Ft!=null&&this.quill.setSelection(Ft,vt.default.sources.SILENT)}}}]),Lt}(yt.default);Tt.DEFAULTS={highlight:function(){return window.hljs==null?null:function($t){var Lt=window.hljs.highlightAuto($t);return Lt.value}}(),interval:1e3},ut.CodeBlock=Ot,ut.CodeToken=At,ut.default=Tt},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(lt,ut){lt.exports='<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"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <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"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(lt,ut){lt.exports='<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> <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></path> </svg>'},function(lt,ut){lt.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(lt,ut){lt.exports='<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></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <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></path> </svg>'},function(lt,ut){lt.exports='<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>'},function(lt,ut){lt.exports='<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>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <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> <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></path> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <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> <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> <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></path> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(lt,ut){lt.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(lt,ut){lt.exports='<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>'},function(lt,ut){lt.exports='<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>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <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> <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></path> </svg>'},function(lt,ut){lt.exports='<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></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(lt,ut){lt.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(lt,ut,ct){Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=ut.BubbleTooltip=void 0;var dt=function Lt(Rt,It,Ft){Rt===null&&(Rt=Function.prototype);var Mt=Object.getOwnPropertyDescriptor(Rt,It);if(Mt===void 0){var Ht=Object.getPrototypeOf(Rt);return Ht===null?void 0:Lt(Ht,It,Ft)}else{if("value"in Mt)return Mt.value;var Vt=Mt.get;return Vt===void 0?void 0:Vt.call(Ft)}},ft=function(){function Lt(Rt,It){for(var Ft=0;Ft<It.length;Ft++){var Mt=It[Ft];Mt.enumerable=Mt.enumerable||!1,Mt.configurable=!0,"value"in Mt&&(Mt.writable=!0),Object.defineProperty(Rt,Mt.key,Mt)}}return function(Rt,It,Ft){return It&&Lt(Rt.prototype,It),Ft&&Lt(Rt,Ft),Rt}}(),mt=ct(3),pt=kt(mt),gt=ct(8),vt=kt(gt),wt=ct(43),yt=kt(wt),bt=ct(15),Ct=ct(41),Et=kt(Ct);function kt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}function xt(Lt,Rt){if(!(Lt instanceof Rt))throw new TypeError("Cannot call a class as a function")}function St(Lt,Rt){if(!Lt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Rt&&(typeof Rt=="object"||typeof Rt=="function")?Rt:Lt}function Ot(Lt,Rt){if(typeof Rt!="function"&&Rt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Rt);Lt.prototype=Object.create(Rt&&Rt.prototype,{constructor:{value:Lt,enumerable:!1,writable:!0,configurable:!0}}),Rt&&(Object.setPrototypeOf?Object.setPrototypeOf(Lt,Rt):Lt.__proto__=Rt)}var At=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Tt=function(Lt){Ot(Rt,Lt);function Rt(It,Ft){xt(this,Rt),Ft.modules.toolbar!=null&&Ft.modules.toolbar.container==null&&(Ft.modules.toolbar.container=At);var Mt=St(this,(Rt.__proto__||Object.getPrototypeOf(Rt)).call(this,It,Ft));return Mt.quill.container.classList.add("ql-bubble"),Mt}return ft(Rt,[{key:"extendToolbar",value:function(Ft){this.tooltip=new $t(this.quill,this.options.bounds),this.tooltip.root.appendChild(Ft.container),this.buildButtons([].slice.call(Ft.container.querySelectorAll("button")),Et.default),this.buildPickers([].slice.call(Ft.container.querySelectorAll("select")),Et.default)}}]),Rt}(yt.default);Tt.DEFAULTS=(0,pt.default)(!0,{},yt.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(Rt){Rt?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var $t=function(Lt){Ot(Rt,Lt);function Rt(It,Ft){xt(this,Rt);var Mt=St(this,(Rt.__proto__||Object.getPrototypeOf(Rt)).call(this,It,Ft));return Mt.quill.on(vt.default.events.EDITOR_CHANGE,function(Ht,Vt,Nt,Gt){if(Ht===vt.default.events.SELECTION_CHANGE)if(Vt!=null&&Vt.length>0&&Gt===vt.default.sources.USER){Mt.show(),Mt.root.style.left="0px",Mt.root.style.width="",Mt.root.style.width=Mt.root.offsetWidth+"px";var tn=Mt.quill.getLines(Vt.index,Vt.length);if(tn.length===1)Mt.position(Mt.quill.getBounds(Vt));else{var ln=tn[tn.length-1],nn=Mt.quill.getIndex(ln),on=Math.min(ln.length()-1,Vt.index+Vt.length-nn),rn=Mt.quill.getBounds(new bt.Range(nn,on));Mt.position(rn)}}else document.activeElement!==Mt.textbox&&Mt.quill.hasFocus()&&Mt.hide()}),Mt}return ft(Rt,[{key:"listen",value:function(){var Ft=this;dt(Rt.prototype.__proto__||Object.getPrototypeOf(Rt.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){Ft.root.classList.remove("ql-editing")}),this.quill.on(vt.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!Ft.root.classList.contains("ql-hidden")){var Mt=Ft.quill.getSelection();Mt!=null&&Ft.position(Ft.quill.getBounds(Mt))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(Ft){var Mt=dt(Rt.prototype.__proto__||Object.getPrototypeOf(Rt.prototype),"position",this).call(this,Ft),Ht=this.root.querySelector(".ql-tooltip-arrow");if(Ht.style.marginLeft="",Mt===0)return Mt;Ht.style.marginLeft=-1*Mt-Ht.offsetWidth/2+"px"}}]),Rt}(wt.BaseTooltip);$t.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(""),ut.BubbleTooltip=$t,ut.default=Tt},function(lt,ut,ct){lt.exports=ct(63)}]).default})})(quill);var quillExports=quill.exports,__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var it=function(at,lt){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ut,ct){ut.__proto__=ct}||function(ut,ct){for(var dt in ct)ct.hasOwnProperty(dt)&&(ut[dt]=ct[dt])},it(at,lt)};return function(at,lt){it(at,lt);function ut(){this.constructor=at}at.prototype=lt===null?Object.create(lt):(ut.prototype=lt.prototype,new ut)}}(),__assign$1=commonjsGlobal&&commonjsGlobal.__assign||function(){return __assign$1=Object.assign||function(it){for(var at,lt=1,ut=arguments.length;lt<ut;lt++){at=arguments[lt];for(var ct in at)Object.prototype.hasOwnProperty.call(at,ct)&&(it[ct]=at[ct])}return it},__assign$1.apply(this,arguments)},__spreadArrays=commonjsGlobal&&commonjsGlobal.__spreadArrays||function(){for(var it=0,at=0,lt=arguments.length;at<lt;at++)it+=arguments[at].length;for(var ut=Array(it),ct=0,at=0;at<lt;at++)for(var dt=arguments[at],ft=0,mt=dt.length;ft<mt;ft++,ct++)ut[ct]=dt[ft];return ut},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(it){return it&&it.__esModule?it:{default:it}},react_1=__importDefault(reactExports),react_dom_1=__importDefault(reactDomExports),isEqual_1=__importDefault(isEqual_1$1),quill_1=__importDefault(quillExports),ReactQuill=function(it){__extends(at,it);function at(lt){var ut=it.call(this,lt)||this;ut.dirtyProps=["modules","formats","bounds","theme","children"],ut.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],ut.state={generation:0},ut.selection=null,ut.onEditorChange=function(dt,ft,mt,pt){var gt,vt,wt,yt;dt==="text-change"?(vt=(gt=ut).onEditorChangeText)===null||vt===void 0||vt.call(gt,ut.editor.root.innerHTML,ft,pt,ut.unprivilegedEditor):dt==="selection-change"&&((yt=(wt=ut).onEditorChangeSelection)===null||yt===void 0||yt.call(wt,ft,pt,ut.unprivilegedEditor))};var ct=ut.isControlled()?lt.value:lt.defaultValue;return ut.value=ct??"",ut}return at.prototype.validateProps=function(lt){var ut;if(react_1.default.Children.count(lt.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(react_1.default.Children.count(lt.children)){var ct=react_1.default.Children.only(lt.children);if(((ut=ct)===null||ut===void 0?void 0:ut.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&lt.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")},at.prototype.shouldComponentUpdate=function(lt,ut){var ct=this,dt;if(this.validateProps(lt),!this.editor||this.state.generation!==ut.generation)return!0;if("value"in lt){var ft=this.getEditorContents(),mt=(dt=lt.value,dt??"");this.isEqualValue(mt,ft)||this.setEditorContents(this.editor,mt)}return lt.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,lt.readOnly),__spreadArrays(this.cleanProps,this.dirtyProps).some(function(pt){return!isEqual_1.default(lt[pt],ct.props[pt])})},at.prototype.shouldComponentRegenerate=function(lt){var ut=this;return this.dirtyProps.some(function(ct){return!isEqual_1.default(lt[ct],ut.props[ct])})},at.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},at.prototype.componentWillUnmount=function(){this.destroyEditor()},at.prototype.componentDidUpdate=function(lt,ut){var ct=this;if(this.editor&&this.shouldComponentRegenerate(lt)){var dt=this.editor.getContents(),ft=this.editor.getSelection();this.regenerationSnapshot={delta:dt,selection:ft},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==ut.generation){var mt=this.regenerationSnapshot,dt=mt.delta,pt=mt.selection;delete this.regenerationSnapshot,this.instantiateEditor();var gt=this.editor;gt.setContents(dt),postpone(function(){return ct.setEditorSelection(gt,pt)})}},at.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},at.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},at.prototype.isControlled=function(){return"value"in this.props},at.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},at.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},at.prototype.createEditor=function(lt,ut){var ct=new quill_1.default(lt,ut);return ut.tabIndex!=null&&this.setEditorTabIndex(ct,ut.tabIndex),this.hookEditor(ct),ct},at.prototype.hookEditor=function(lt){this.unprivilegedEditor=this.makeUnprivilegedEditor(lt),lt.on("editor-change",this.onEditorChange)},at.prototype.unhookEditor=function(lt){lt.off("editor-change",this.onEditorChange)},at.prototype.getEditorContents=function(){return this.value},at.prototype.getEditorSelection=function(){return this.selection},at.prototype.isDelta=function(lt){return lt&&lt.ops},at.prototype.isEqualValue=function(lt,ut){return this.isDelta(lt)&&this.isDelta(ut)?isEqual_1.default(lt.ops,ut.ops):isEqual_1.default(lt,ut)},at.prototype.setEditorContents=function(lt,ut){var ct=this;this.value=ut;var dt=this.getEditorSelection();typeof ut=="string"?lt.setContents(lt.clipboard.convert(ut)):lt.setContents(ut),postpone(function(){return ct.setEditorSelection(lt,dt)})},at.prototype.setEditorSelection=function(lt,ut){if(this.selection=ut,ut){var ct=lt.getLength();ut.index=Math.max(0,Math.min(ut.index,ct-1)),ut.length=Math.max(0,Math.min(ut.length,ct-1-ut.index)),lt.setSelection(ut)}},at.prototype.setEditorTabIndex=function(lt,ut){var ct,dt;!((dt=(ct=lt)===null||ct===void 0?void 0:ct.scroll)===null||dt===void 0)&&dt.domNode&&(lt.scroll.domNode.tabIndex=ut)},at.prototype.setEditorReadOnly=function(lt,ut){ut?lt.disable():lt.enable()},at.prototype.makeUnprivilegedEditor=function(lt){var ut=lt;return{getHTML:function(){return ut.root.innerHTML},getLength:ut.getLength.bind(ut),getText:ut.getText.bind(ut),getContents:ut.getContents.bind(ut),getSelection:ut.getSelection.bind(ut),getBounds:ut.getBounds.bind(ut)}},at.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var lt=react_dom_1.default.findDOMNode(this.editingArea);if(!lt)throw new Error("Cannot find element for editing area");if(lt.nodeType===3)throw new Error("Editing area cannot be a text node");return lt},at.prototype.renderEditingArea=function(){var lt=this,ut=this.props,ct=ut.children,dt=ut.preserveWhitespace,ft=this.state.generation,mt={key:ft,ref:function(pt){lt.editingArea=pt}};return react_1.default.Children.count(ct)?react_1.default.cloneElement(react_1.default.Children.only(ct),mt):dt?react_1.default.createElement("pre",__assign$1({},mt)):react_1.default.createElement("div",__assign$1({},mt))},at.prototype.render=function(){var lt;return react_1.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(lt=this.props.className,lt??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},at.prototype.onEditorChangeText=function(lt,ut,ct,dt){var ft,mt;if(this.editor){var pt=this.isDelta(this.value)?dt.getContents():dt.getHTML();pt!==this.getEditorContents()&&(this.lastDeltaChangeSet=ut,this.value=pt,(mt=(ft=this.props).onChange)===null||mt===void 0||mt.call(ft,lt,ut,ct,dt))}},at.prototype.onEditorChangeSelection=function(lt,ut,ct){var dt,ft,mt,pt,gt,vt;if(this.editor){var wt=this.getEditorSelection(),yt=!wt&&lt,bt=wt&&!lt;isEqual_1.default(lt,wt)||(this.selection=lt,(ft=(dt=this.props).onChangeSelection)===null||ft===void 0||ft.call(dt,lt,ut,ct),yt?(pt=(mt=this.props).onFocus)===null||pt===void 0||pt.call(mt,lt,ut,ct):bt&&((vt=(gt=this.props).onBlur)===null||vt===void 0||vt.call(gt,wt,ut,ct)))}},at.prototype.focus=function(){this.editor&&this.editor.focus()},at.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},at.displayName="React Quill",at.Quill=quill_1.default,at.defaultProps={theme:"snow",modules:{},readOnly:!1},at}(react_1.default.Component);function postpone(it){Promise.resolve().then(it)}var lib=ReactQuill;const ReactQuill$1=getDefaultExportFromCjs(lib),Theme="";function commonjsRequire(it){throw new Error('Could not dynamically require "'+it+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf$1={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(__viteBrowserExternal$1);(function(module,exports){(function(at,lt){module.exports=at.pdfjsLib=lt()})(globalThis,()=>(()=>{var __webpack_modules__=[,(it,at)=>{var Kn;Object.defineProperty(at,"__esModule",{value:!0}),at.VerbosityLevel=at.Util=at.UnknownErrorException=at.UnexpectedResponseException=at.TextRenderingMode=at.RenderingIntentFlag=at.PromiseCapability=at.PermissionFlag=at.PasswordResponses=at.PasswordException=at.PageActionEventType=at.OPS=at.MissingPDFException=at.MAX_IMAGE_SIZE_TO_CACHE=at.LINE_FACTOR=at.LINE_DESCENT_FACTOR=at.InvalidPDFException=at.ImageKind=at.IDENTITY_MATRIX=at.FormatError=at.FeatureTest=at.FONT_IDENTITY_MATRIX=at.DocumentActionEventType=at.CMapCompressionType=at.BaseException=at.BASELINE_FACTOR=at.AnnotationType=at.AnnotationReplyType=at.AnnotationPrefix=at.AnnotationMode=at.AnnotationFlag=at.AnnotationFieldFlag=at.AnnotationEditorType=at.AnnotationEditorPrefix=at.AnnotationEditorParamsType=at.AnnotationBorderStyleType=at.AnnotationActionEventType=at.AbortException=void 0,at.assert=on,at.bytesToString=cn,at.createValidAbsoluteUrl=Jt,at.getModificationDate=Qn,at.getUuid=fn,at.getVerbosityLevel=Gt,at.info=tn,at.isArrayBuffer=Pn,at.isArrayEqual=Xn,at.isNodeJS=void 0,at.normalizeUnicode=br,at.objectFromMap=In,at.objectSize=kn,at.setVerbosityLevel=Nt,at.shadow=Zt,at.string32=Tn,at.stringToBytes=bn,at.stringToPDFString=Sn,at.stringToUTF8String=On,at.unreachable=nn,at.utf8StringToString=Cn,at.warn=ln;const lt=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");at.isNodeJS=lt;const ut=[1,0,0,1,0,0];at.IDENTITY_MATRIX=ut;const ct=[.001,0,0,.001,0,0];at.FONT_IDENTITY_MATRIX=ct;const dt=1e7;at.MAX_IMAGE_SIZE_TO_CACHE=dt;const ft=1.35;at.LINE_FACTOR=ft;const mt=.35;at.LINE_DESCENT_FACTOR=mt;const pt=mt/ft;at.BASELINE_FACTOR=pt;const gt={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};at.RenderingIntentFlag=gt;const vt={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};at.AnnotationMode=vt;const wt="pdfjs_internal_editor_";at.AnnotationEditorPrefix=wt;const yt={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};at.AnnotationEditorType=yt;const bt={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};at.AnnotationEditorParamsType=bt;const Ct={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};at.PermissionFlag=Ct;const Et={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};at.TextRenderingMode=Et;const kt={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};at.ImageKind=kt;const xt={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};at.AnnotationType=xt;const St={GROUP:"Group",REPLY:"R"};at.AnnotationReplyType=St;const Ot={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};at.AnnotationFlag=Ot;const At={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};at.AnnotationFieldFlag=At;const Tt={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};at.AnnotationBorderStyleType=Tt;const $t={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};at.AnnotationActionEventType=$t;const Lt={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};at.DocumentActionEventType=Lt;const Rt={O:"PageOpen",C:"PageClose"};at.PageActionEventType=Rt;const It={ERRORS:0,WARNINGS:1,INFOS:5};at.VerbosityLevel=It;const Ft={NONE:0,BINARY:1};at.CMapCompressionType=Ft;const Mt={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};at.OPS=Mt;const Ht={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};at.PasswordResponses=Ht;let Vt=It.WARNINGS;function Nt(_n){Number.isInteger(_n)&&(Vt=_n)}function Gt(){return Vt}function tn(_n){Vt>=It.INFOS&&console.log(`Info: ${_n}`)}function ln(_n){Vt>=It.WARNINGS&&console.log(`Warning: ${_n}`)}function nn(_n){throw new Error(_n)}function on(_n,gn){_n||nn(gn)}function rn(_n){switch(_n==null?void 0:_n.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Jt(_n,gn=null,vn=null){if(!_n)return null;try{if(vn&&typeof _n=="string"){if(vn.addDefaultProtocol&&_n.startsWith("www.")){const Yn=_n.match(/\./g);(Yn==null?void 0:Yn.length)>=2&&(_n=`http://${_n}`)}if(vn.tryConvertEncoding)try{_n=On(_n)}catch{}}const qn=gn?new URL(_n,gn):new URL(_n);if(rn(qn))return qn}catch{}return null}function Zt(_n,gn,vn,qn=!1){return Object.defineProperty(_n,gn,{value:vn,enumerable:!qn,configurable:!0,writable:!1}),vn}const Wt=function(){function gn(vn,qn){this.constructor===gn&&nn("Cannot initialize BaseException."),this.message=vn,this.name=qn}return gn.prototype=new Error,gn.constructor=gn,gn}();at.BaseException=Wt;class jt extends Wt{constructor(gn,vn){super(gn,"PasswordException"),this.code=vn}}at.PasswordException=jt;class Bt extends Wt{constructor(gn,vn){super(gn,"UnknownErrorException"),this.details=vn}}at.UnknownErrorException=Bt;class Dt extends Wt{constructor(gn){super(gn,"InvalidPDFException")}}at.InvalidPDFException=Dt;class zt extends Wt{constructor(gn){super(gn,"MissingPDFException")}}at.MissingPDFException=zt;class Kt extends Wt{constructor(gn,vn){super(gn,"UnexpectedResponseException"),this.status=vn}}at.UnexpectedResponseException=Kt;class en extends Wt{constructor(gn){super(gn,"FormatError")}}at.FormatError=en;class sn extends Wt{constructor(gn){super(gn,"AbortException")}}at.AbortException=sn;function cn(_n){(typeof _n!="object"||(_n==null?void 0:_n.length)===void 0)&&nn("Invalid argument for bytesToString");const gn=_n.length,vn=8192;if(gn<vn)return String.fromCharCode.apply(null,_n);const qn=[];for(let Yn=0;Yn<gn;Yn+=vn){const Sr=Math.min(Yn+vn,gn),Tr=_n.subarray(Yn,Sr);qn.push(String.fromCharCode.apply(null,Tr))}return qn.join("")}function bn(_n){typeof _n!="string"&&nn("Invalid argument for stringToBytes");const gn=_n.length,vn=new Uint8Array(gn);for(let qn=0;qn<gn;++qn)vn[qn]=_n.charCodeAt(qn)&255;return vn}function Tn(_n){return String.fromCharCode(_n>>24&255,_n>>16&255,_n>>8&255,_n&255)}function kn(_n){return Object.keys(_n).length}function In(_n){const gn=Object.create(null);for(const[vn,qn]of _n)gn[vn]=qn;return gn}function Hn(){const _n=new Uint8Array(4);return _n[0]=1,new Uint32Array(_n.buffer,0,1)[0]===1}function Fn(){try{return new Function(""),!0}catch{return!1}}class wn{static get isLittleEndian(){return Zt(this,"isLittleEndian",Hn())}static get isEvalSupported(){return Zt(this,"isEvalSupported",Fn())}static get isOffscreenCanvasSupported(){return Zt(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator>"u"?Zt(this,"platform",{isWin:!1,isMac:!1}):Zt(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var gn,vn;return Zt(this,"isCSSRoundSupported",(vn=(gn=globalThis.CSS)==null?void 0:gn.supports)==null?void 0:vn.call(gn,"width: round(1.5px, 1px)"))}}at.FeatureTest=wn;const Mn=[...Array(256).keys()].map(_n=>_n.toString(16).padStart(2,"0"));class Dn{static makeHexColor(gn,vn,qn){return`#${Mn[gn]}${Mn[vn]}${Mn[qn]}`}static scaleMinMax(gn,vn){let qn;gn[0]?(gn[0]<0&&(qn=vn[0],vn[0]=vn[1],vn[1]=qn),vn[0]*=gn[0],vn[1]*=gn[0],gn[3]<0&&(qn=vn[2],vn[2]=vn[3],vn[3]=qn),vn[2]*=gn[3],vn[3]*=gn[3]):(qn=vn[0],vn[0]=vn[2],vn[2]=qn,qn=vn[1],vn[1]=vn[3],vn[3]=qn,gn[1]<0&&(qn=vn[2],vn[2]=vn[3],vn[3]=qn),vn[2]*=gn[1],vn[3]*=gn[1],gn[2]<0&&(qn=vn[0],vn[0]=vn[1],vn[1]=qn),vn[0]*=gn[2],vn[1]*=gn[2]),vn[0]+=gn[4],vn[1]+=gn[4],vn[2]+=gn[5],vn[3]+=gn[5]}static transform(gn,vn){return[gn[0]*vn[0]+gn[2]*vn[1],gn[1]*vn[0]+gn[3]*vn[1],gn[0]*vn[2]+gn[2]*vn[3],gn[1]*vn[2]+gn[3]*vn[3],gn[0]*vn[4]+gn[2]*vn[5]+gn[4],gn[1]*vn[4]+gn[3]*vn[5]+gn[5]]}static applyTransform(gn,vn){const qn=gn[0]*vn[0]+gn[1]*vn[2]+vn[4],Yn=gn[0]*vn[1]+gn[1]*vn[3]+vn[5];return[qn,Yn]}static applyInverseTransform(gn,vn){const qn=vn[0]*vn[3]-vn[1]*vn[2],Yn=(gn[0]*vn[3]-gn[1]*vn[2]+vn[2]*vn[5]-vn[4]*vn[3])/qn,Sr=(-gn[0]*vn[1]+gn[1]*vn[0]+vn[4]*vn[1]-vn[5]*vn[0])/qn;return[Yn,Sr]}static getAxialAlignedBoundingBox(gn,vn){const qn=this.applyTransform(gn,vn),Yn=this.applyTransform(gn.slice(2,4),vn),Sr=this.applyTransform([gn[0],gn[3]],vn),Tr=this.applyTransform([gn[2],gn[1]],vn);return[Math.min(qn[0],Yn[0],Sr[0],Tr[0]),Math.min(qn[1],Yn[1],Sr[1],Tr[1]),Math.max(qn[0],Yn[0],Sr[0],Tr[0]),Math.max(qn[1],Yn[1],Sr[1],Tr[1])]}static inverseTransform(gn){const vn=gn[0]*gn[3]-gn[1]*gn[2];return[gn[3]/vn,-gn[1]/vn,-gn[2]/vn,gn[0]/vn,(gn[2]*gn[5]-gn[4]*gn[3])/vn,(gn[4]*gn[1]-gn[5]*gn[0])/vn]}static singularValueDecompose2dScale(gn){const vn=[gn[0],gn[2],gn[1],gn[3]],qn=gn[0]*vn[0]+gn[1]*vn[2],Yn=gn[0]*vn[1]+gn[1]*vn[3],Sr=gn[2]*vn[0]+gn[3]*vn[2],Tr=gn[2]*vn[1]+gn[3]*vn[3],Ln=(qn+Tr)/2,er=Math.sqrt((qn+Tr)**2-4*(qn*Tr-Sr*Yn))/2,hr=Ln+er||1,ur=Ln-er||1;return[Math.sqrt(hr),Math.sqrt(ur)]}static normalizeRect(gn){const vn=gn.slice(0);return gn[0]>gn[2]&&(vn[0]=gn[2],vn[2]=gn[0]),gn[1]>gn[3]&&(vn[1]=gn[3],vn[3]=gn[1]),vn}static intersect(gn,vn){const qn=Math.max(Math.min(gn[0],gn[2]),Math.min(vn[0],vn[2])),Yn=Math.min(Math.max(gn[0],gn[2]),Math.max(vn[0],vn[2]));if(qn>Yn)return null;const Sr=Math.max(Math.min(gn[1],gn[3]),Math.min(vn[1],vn[3])),Tr=Math.min(Math.max(gn[1],gn[3]),Math.max(vn[1],vn[3]));return Sr>Tr?null:[qn,Sr,Yn,Tr]}static bezierBoundingBox(gn,vn,qn,Yn,Sr,Tr,Ln,er){const hr=[],ur=[[],[]];let _r,yr,Rr,rr,$r,mr,yn,Qt;for(let jn=0;jn<2;++jn){if(jn===0?(yr=6*gn-12*qn+6*Sr,_r=-3*gn+9*qn-9*Sr+3*Ln,Rr=3*qn-3*gn):(yr=6*vn-12*Yn+6*Tr,_r=-3*vn+9*Yn-9*Tr+3*er,Rr=3*Yn-3*vn),Math.abs(_r)<1e-12){if(Math.abs(yr)<1e-12)continue;rr=-Rr/yr,0<rr&&rr<1&&hr.push(rr);continue}yn=yr*yr-4*Rr*_r,Qt=Math.sqrt(yn),!(yn<0)&&($r=(-yr+Qt)/(2*_r),0<$r&&$r<1&&hr.push($r),mr=(-yr-Qt)/(2*_r),0<mr&&mr<1&&hr.push(mr))}let dn=hr.length,mn;const Rn=dn;for(;dn--;)rr=hr[dn],mn=1-rr,ur[0][dn]=mn*mn*mn*gn+3*mn*mn*rr*qn+3*mn*rr*rr*Sr+rr*rr*rr*Ln,ur[1][dn]=mn*mn*mn*vn+3*mn*mn*rr*Yn+3*mn*rr*rr*Tr+rr*rr*rr*er;return ur[0][Rn]=gn,ur[1][Rn]=vn,ur[0][Rn+1]=Ln,ur[1][Rn+1]=er,ur[0].length=ur[1].length=Rn+2,[Math.min(...ur[0]),Math.min(...ur[1]),Math.max(...ur[0]),Math.max(...ur[1])]}}at.Util=Dn;const Un=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function Sn(_n){if(_n[0]>="ï"){let vn;if(_n[0]==="þ"&&_n[1]==="ÿ"?vn="utf-16be":_n[0]==="ÿ"&&_n[1]==="þ"?vn="utf-16le":_n[0]==="ï"&&_n[1]==="»"&&_n[2]==="¿"&&(vn="utf-8"),vn)try{const qn=new TextDecoder(vn,{fatal:!0}),Yn=bn(_n);return qn.decode(Yn)}catch(qn){ln(`stringToPDFString: "${qn}".`)}}const gn=[];for(let vn=0,qn=_n.length;vn<qn;vn++){const Yn=Un[_n.charCodeAt(vn)];gn.push(Yn?String.fromCharCode(Yn):_n.charAt(vn))}return gn.join("")}function On(_n){return decodeURIComponent(escape(_n))}function Cn(_n){return unescape(encodeURIComponent(_n))}function Pn(_n){return typeof _n=="object"&&(_n==null?void 0:_n.byteLength)!==void 0}function Xn(_n,gn){if(_n.length!==gn.length)return!1;for(let vn=0,qn=_n.length;vn<qn;vn++)if(_n[vn]!==gn[vn])return!1;return!0}function Qn(_n=new Date){return[_n.getUTCFullYear().toString(),(_n.getUTCMonth()+1).toString().padStart(2,"0"),_n.getUTCDate().toString().padStart(2,"0"),_n.getUTCHours().toString().padStart(2,"0"),_n.getUTCMinutes().toString().padStart(2,"0"),_n.getUTCSeconds().toString().padStart(2,"0")].join("")}class sr{constructor(){An(this,Kn,!1);this.promise=new Promise((gn,vn)=>{this.resolve=qn=>{Wn(this,Kn,!0),gn(qn)},this.reject=qn=>{Wn(this,Kn,!0),vn(qn)}})}get settled(){return Yt(this,Kn)}}Kn=new WeakMap,at.PromiseCapability=sr;let pr=null,or=null;function br(_n){return pr||(pr=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,or=new Map([["ﬅ","ſt"]])),_n.replaceAll(pr,(gn,vn,qn)=>vn?vn.normalize("NFKC"):or.get(qn))}function fn(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const _n=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(_n);else for(let gn=0;gn<32;gn++)_n[gn]=Math.floor(Math.random()*255);return cn(_n)}const xn="pdfjs_internal_id_";at.AnnotationPrefix=xn},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var it,lt,ut,ct,zl,ft,Bp,pt,gt,vt,wt,yt,bt,Ct,Et,kt,Up,St,Ot,S1,Tt,$t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;function getDocument(Rt){if(typeof Rt=="string"||Rt instanceof URL?Rt={url:Rt}:(0,_util.isArrayBuffer)(Rt)&&(Rt={data:Rt}),typeof Rt!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!Rt.url&&!Rt.data&&!Rt.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const It=new PDFDocumentLoadingTask,{docId:Ft}=It,Mt=Rt.url?getUrlProp(Rt.url):null,Ht=Rt.data?getDataProp(Rt.data):null,Vt=Rt.httpHeaders||null,Nt=Rt.withCredentials===!0,Gt=Rt.password??null,tn=Rt.range instanceof PDFDataRangeTransport?Rt.range:null,ln=Number.isInteger(Rt.rangeChunkSize)&&Rt.rangeChunkSize>0?Rt.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let nn=Rt.worker instanceof PDFWorker?Rt.worker:null;const on=Rt.verbosity,rn=typeof Rt.docBaseUrl=="string"&&!(0,_display_utils.isDataScheme)(Rt.docBaseUrl)?Rt.docBaseUrl:null,Jt=typeof Rt.cMapUrl=="string"?Rt.cMapUrl:null,Zt=Rt.cMapPacked!==!1,Wt=Rt.CMapReaderFactory||DefaultCMapReaderFactory,jt=typeof Rt.standardFontDataUrl=="string"?Rt.standardFontDataUrl:null,Bt=Rt.StandardFontDataFactory||DefaultStandardFontDataFactory,Dt=Rt.stopAtErrors!==!0,zt=Number.isInteger(Rt.maxImageSize)&&Rt.maxImageSize>-1?Rt.maxImageSize:-1,Kt=Rt.isEvalSupported!==!1,en=typeof Rt.isOffscreenCanvasSupported=="boolean"?Rt.isOffscreenCanvasSupported:!_util.isNodeJS,sn=Number.isInteger(Rt.canvasMaxAreaInBytes)?Rt.canvasMaxAreaInBytes:-1,cn=typeof Rt.disableFontFace=="boolean"?Rt.disableFontFace:_util.isNodeJS,bn=Rt.fontExtraProperties===!0,Tn=Rt.enableXfa===!0,kn=Rt.ownerDocument||globalThis.document,In=Rt.disableRange===!0,Hn=Rt.disableStream===!0,Fn=Rt.disableAutoFetch===!0,wn=Rt.pdfBug===!0,Mn=tn?tn.length:Rt.length??NaN,Dn=typeof Rt.useSystemFonts=="boolean"?Rt.useSystemFonts:!_util.isNodeJS&&!cn,Un=typeof Rt.useWorkerFetch=="boolean"?Rt.useWorkerFetch:Wt===_display_utils.DOMCMapReaderFactory&&Bt===_display_utils.DOMStandardFontDataFactory&&Jt&&jt&&(0,_display_utils.isValidFetchUrl)(Jt,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(jt,document.baseURI),Sn=Rt.canvasFactory||new DefaultCanvasFactory({ownerDocument:kn}),On=Rt.filterFactory||new DefaultFilterFactory({docId:Ft,ownerDocument:kn}),Cn=null;(0,_util.setVerbosityLevel)(on);const Pn={canvasFactory:Sn,filterFactory:On};if(Un||(Pn.cMapReaderFactory=new Wt({baseUrl:Jt,isCompressed:Zt}),Pn.standardFontDataFactory=new Bt({baseUrl:jt})),!nn){const sr={verbosity:on,port:_worker_options.GlobalWorkerOptions.workerPort};nn=sr.port?PDFWorker.fromPort(sr):new PDFWorker(sr),It._worker=nn}const Xn={docId:Ft,apiVersion:"3.11.174",data:Ht,password:Gt,disableAutoFetch:Fn,rangeChunkSize:ln,length:Mn,docBaseUrl:rn,enableXfa:Tn,evaluatorOptions:{maxImageSize:zt,disableFontFace:cn,ignoreErrors:Dt,isEvalSupported:Kt,isOffscreenCanvasSupported:en,canvasMaxAreaInBytes:sn,fontExtraProperties:bn,useSystemFonts:Dn,cMapUrl:Un?Jt:null,standardFontDataUrl:Un?jt:null}},Qn={ignoreErrors:Dt,isEvalSupported:Kt,disableFontFace:cn,fontExtraProperties:bn,enableXfa:Tn,ownerDocument:kn,disableAutoFetch:Fn,pdfBug:wn,styleElement:Cn};return nn.promise.then(function(){if(It.destroyed)throw new Error("Loading aborted");const sr=_fetchDocument(nn,Xn),pr=new Promise(function(or){let br;tn?br=new _transport_stream.PDFDataTransportStream({length:Mn,initialData:tn.initialData,progressiveDone:tn.progressiveDone,contentDispositionFilename:tn.contentDispositionFilename,disableRange:In,disableStream:Hn},tn):Ht||(br=(xn=>_util.isNodeJS?new _displayNode_stream.PDFNodeStream(xn):(0,_display_utils.isValidFetchUrl)(xn.url)?new _displayFetch_stream.PDFFetchStream(xn):new _displayNetwork.PDFNetworkStream(xn))({url:Mt,length:Mn,httpHeaders:Vt,withCredentials:Nt,rangeChunkSize:ln,disableRange:In,disableStream:Hn})),or(br)});return Promise.all([sr,pr]).then(function([or,br]){if(It.destroyed)throw new Error("Loading aborted");const fn=new _message_handler.MessageHandler(Ft,or,nn.port),xn=new WorkerTransport(fn,It,br,Qn,Pn);It._transport=xn,fn.send("Ready",null)})}).catch(It._capability.reject),It}async function _fetchDocument(Rt,It){if(Rt.destroyed)throw new Error("Worker was destroyed");const Ft=await Rt.messageHandler.sendWithPromise("GetDocRequest",It,It.data?[It.data.buffer]:null);if(Rt.destroyed)throw new Error("Worker was destroyed");return Ft}function getUrlProp(Rt){if(Rt instanceof URL)return Rt.href;try{return new URL(Rt,window.location).href}catch{if(_util.isNodeJS&&typeof Rt=="string")return Rt}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(Rt){if(_util.isNodeJS&&typeof Buffer<"u"&&Rt instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(Rt instanceof Uint8Array&&Rt.byteLength===Rt.buffer.byteLength)return Rt;if(typeof Rt=="string")return(0,_util.stringToBytes)(Rt);if(typeof Rt=="object"&&!isNaN(Rt==null?void 0:Rt.length)||(0,_util.isArrayBuffer)(Rt))return new Uint8Array(Rt);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}const at=class at{constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId=`d${$u(at,it)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var It,Ft,Mt;this.destroyed=!0;try{(It=this._worker)!=null&&It.port&&(this._worker._pendingDestroy=!0),await((Ft=this._transport)==null?void 0:Ft.destroy())}catch(Ht){throw(Mt=this._worker)!=null&&Mt.port&&delete this._worker._pendingDestroy,Ht}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};it=new WeakMap,An(at,it,0);let PDFDocumentLoadingTask=at;exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(It,Ft,Mt=!1,Ht=null){this.length=It,this.initialData=Ft,this.progressiveDone=Mt,this.contentDispositionFilename=Ht,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(It){this._rangeListeners.push(It)}addProgressListener(It){this._progressListeners.push(It)}addProgressiveReadListener(It){this._progressiveReadListeners.push(It)}addProgressiveDoneListener(It){this._progressiveDoneListeners.push(It)}onDataRange(It,Ft){for(const Mt of this._rangeListeners)Mt(It,Ft)}onDataProgress(It,Ft){this._readyCapability.promise.then(()=>{for(const Mt of this._progressListeners)Mt(It,Ft)})}onDataProgressiveRead(It){this._readyCapability.promise.then(()=>{for(const Ft of this._progressiveReadListeners)Ft(It)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const It of this._progressiveDoneListeners)It()})}transportReady(){this._readyCapability.resolve()}requestDataRange(It,Ft){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(It,Ft){this._pdfInfo=It,this._transport=Ft,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(Mt=>{if(!Mt)return Mt;const Ht=[];for(const Vt in Mt)Ht.push(...Mt[Vt]);return Ht}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(It){return this._transport.getPage(It)}getPageIndex(It){return this._transport.getPageIndex(It)}getDestinations(){return this._transport.getDestinations()}getDestination(It){return this._transport.getDestination(It)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(It=!1){return this._transport.startCleanup(It||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(It,Ft,Mt,Ht=!1){An(this,ct);An(this,ft);An(this,lt,null);An(this,ut,!1);this._pageIndex=It,this._pageInfo=Ft,this._transport=Mt,this._stats=Ht?new _display_utils.StatTimer:null,this._pdfBug=Ht,this.commonObjs=Mt.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:It,rotation:Ft=this.rotate,offsetX:Mt=0,offsetY:Ht=0,dontFlip:Vt=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:It,rotation:Ft,offsetX:Mt,offsetY:Ht,dontFlip:Vt})}getAnnotations({intent:It="display"}={}){const Ft=this._transport.getRenderingIntent(It);return this._transport.getAnnotations(this._pageIndex,Ft.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var It;return((It=this._transport._htmlForXfa)==null?void 0:It.children[this._pageIndex])||null}render({canvasContext:It,viewport:Ft,intent:Mt="display",annotationMode:Ht=_util.AnnotationMode.ENABLE,transform:Vt=null,background:Nt=null,optionalContentConfigPromise:Gt=null,annotationCanvasMap:tn=null,pageColors:ln=null,printAnnotationStorage:nn=null}){var Bt,Dt;(Bt=this._stats)==null||Bt.time("Overall");const on=this._transport.getRenderingIntent(Mt,Ht,nn);Wn(this,ut,!1),Nn(this,ft,Bp).call(this),Gt||(Gt=this._transport.getOptionalContentConfig());let rn=this._intentStates.get(on.cacheKey);rn||(rn=Object.create(null),this._intentStates.set(on.cacheKey,rn)),rn.streamReaderCancelTimeout&&(clearTimeout(rn.streamReaderCancelTimeout),rn.streamReaderCancelTimeout=null);const Jt=!!(on.renderingIntent&_util.RenderingIntentFlag.PRINT);rn.displayReadyCapability||(rn.displayReadyCapability=new _util.PromiseCapability,rn.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Dt=this._stats)==null||Dt.time("Page Request"),this._pumpOperatorList(on));const Zt=zt=>{var Kt,en;rn.renderTasks.delete(Wt),(this._maybeCleanupAfterRender||Jt)&&Wn(this,ut,!0),Nn(this,ct,zl).call(this,!Jt),zt?(Wt.capability.reject(zt),this._abortOperatorList({intentState:rn,reason:zt instanceof Error?zt:new Error(zt)})):Wt.capability.resolve(),(Kt=this._stats)==null||Kt.timeEnd("Rendering"),(en=this._stats)==null||en.timeEnd("Overall")},Wt=new InternalRenderTask({callback:Zt,params:{canvasContext:It,viewport:Ft,transform:Vt,background:Nt},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:tn,operatorList:rn.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!Jt,pdfBug:this._pdfBug,pageColors:ln});(rn.renderTasks||(rn.renderTasks=new Set)).add(Wt);const jt=Wt.task;return Promise.all([rn.displayReadyCapability.promise,Gt]).then(([zt,Kt])=>{var en;if(this.destroyed){Zt();return}(en=this._stats)==null||en.time("Rendering"),Wt.initializeGraphics({transparency:zt,optionalContentConfig:Kt}),Wt.operatorListChanged()}).catch(Zt),jt}getOperatorList({intent:It="display",annotationMode:Ft=_util.AnnotationMode.ENABLE,printAnnotationStorage:Mt=null}={}){var tn;function Ht(){Nt.operatorList.lastChunk&&(Nt.opListReadCapability.resolve(Nt.operatorList),Nt.renderTasks.delete(Gt))}const Vt=this._transport.getRenderingIntent(It,Ft,Mt,!0);let Nt=this._intentStates.get(Vt.cacheKey);Nt||(Nt=Object.create(null),this._intentStates.set(Vt.cacheKey,Nt));let Gt;return Nt.opListReadCapability||(Gt=Object.create(null),Gt.operatorListChanged=Ht,Nt.opListReadCapability=new _util.PromiseCapability,(Nt.renderTasks||(Nt.renderTasks=new Set)).add(Gt),Nt.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(tn=this._stats)==null||tn.time("Page Request"),this._pumpOperatorList(Vt)),Nt.opListReadCapability.promise}streamTextContent({includeMarkedContent:It=!1,disableNormalization:Ft=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:It===!0,disableNormalization:Ft===!0},{highWaterMark:100,size(Ht){return Ht.items.length}})}getTextContent(It={}){if(this._transport._htmlForXfa)return this.getXfa().then(Mt=>_xfa_text.XfaText.textContent(Mt));const Ft=this.streamTextContent(It);return new Promise(function(Mt,Ht){function Vt(){Nt.read().then(function({value:tn,done:ln}){if(ln){Mt(Gt);return}Object.assign(Gt.styles,tn.styles),Gt.items.push(...tn.items),Vt()},Ht)}const Nt=Ft.getReader(),Gt={items:[],styles:Object.create(null)};Vt()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const It=[];for(const Ft of this._intentStates.values())if(this._abortOperatorList({intentState:Ft,reason:new Error("Page was destroyed."),force:!0}),!Ft.opListReadCapability)for(const Mt of Ft.renderTasks)It.push(Mt.completed),Mt.cancel();return this.objs.clear(),Wn(this,ut,!1),Nn(this,ft,Bp).call(this),Promise.all(It)}cleanup(It=!1){Wn(this,ut,!0);const Ft=Nn(this,ct,zl).call(this,!1);return It&&Ft&&this._stats&&(this._stats=new _display_utils.StatTimer),Ft}_startRenderPage(It,Ft){var Ht,Vt;const Mt=this._intentStates.get(Ft);Mt&&((Ht=this._stats)==null||Ht.timeEnd("Page Request"),(Vt=Mt.displayReadyCapability)==null||Vt.resolve(It))}_renderPageChunk(It,Ft){for(let Mt=0,Ht=It.length;Mt<Ht;Mt++)Ft.operatorList.fnArray.push(It.fnArray[Mt]),Ft.operatorList.argsArray.push(It.argsArray[Mt]);Ft.operatorList.lastChunk=It.lastChunk,Ft.operatorList.separateAnnots=It.separateAnnots;for(const Mt of Ft.renderTasks)Mt.operatorListChanged();It.lastChunk&&Nn(this,ct,zl).call(this,!0)}_pumpOperatorList({renderingIntent:It,cacheKey:Ft,annotationStorageSerializable:Mt}){const{map:Ht,transfers:Vt}=Mt,Gt=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:It,cacheKey:Ft,annotationStorage:Ht},Vt).getReader(),tn=this._intentStates.get(Ft);tn.streamReader=Gt;const ln=()=>{Gt.read().then(({value:nn,done:on})=>{if(on){tn.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(nn,tn),ln())},nn=>{if(tn.streamReader=null,!this._transport.destroyed){if(tn.operatorList){tn.operatorList.lastChunk=!0;for(const on of tn.renderTasks)on.operatorListChanged();Nn(this,ct,zl).call(this,!0)}if(tn.displayReadyCapability)tn.displayReadyCapability.reject(nn);else if(tn.opListReadCapability)tn.opListReadCapability.reject(nn);else throw nn}})};ln()}_abortOperatorList({intentState:It,reason:Ft,force:Mt=!1}){if(It.streamReader){if(It.streamReaderCancelTimeout&&(clearTimeout(It.streamReaderCancelTimeout),It.streamReaderCancelTimeout=null),!Mt){if(It.renderTasks.size>0)return;if(Ft instanceof _display_utils.RenderingCancelledException){let Ht=RENDERING_CANCELLED_TIMEOUT;Ft.extraDelay>0&&Ft.extraDelay<1e3&&(Ht+=Ft.extraDelay),It.streamReaderCancelTimeout=setTimeout(()=>{It.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:It,reason:Ft,force:!0})},Ht);return}}if(It.streamReader.cancel(new _util.AbortException(Ft.message)).catch(()=>{}),It.streamReader=null,!this._transport.destroyed){for(const[Ht,Vt]of this._intentStates)if(Vt===It){this._intentStates.delete(Ht);break}this.cleanup()}}}get stats(){return this._stats}}lt=new WeakMap,ut=new WeakMap,ct=new WeakSet,zl=function(It=!1){if(Nn(this,ft,Bp).call(this),!Yt(this,ut)||this.destroyed)return!1;if(It)return Wn(this,lt,setTimeout(()=>{Wn(this,lt,null),Nn(this,ct,zl).call(this,!1)},DELAYED_CLEANUP_TIMEOUT)),!1;for(const{renderTasks:Ft,operatorList:Mt}of this._intentStates.values())if(Ft.size>0||!Mt.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),Wn(this,ut,!1),!0},ft=new WeakSet,Bp=function(){Yt(this,lt)&&(clearTimeout(Yt(this,lt)),Wn(this,lt,null))},exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){An(this,pt,new Set);An(this,gt,Promise.resolve())}postMessage(It,Ft){const Mt={data:structuredClone(It,Ft?{transfer:Ft}:null)};Yt(this,gt).then(()=>{for(const Ht of Yt(this,pt))Ht.call(this,Mt)})}addEventListener(It,Ft){Yt(this,pt).add(Ft)}removeEventListener(It,Ft){Yt(this,pt).delete(Ft)}terminate(){Yt(this,pt).clear()}}pt=new WeakMap,gt=new WeakMap,exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_util.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){const Rt=(vt=document==null?void 0:document.currentScript)==null?void 0:vt.src;Rt&&(PDFWorkerUtil.fallbackWorkerSrc=Rt.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(Rt,It){let Ft;try{if(Ft=new URL(Rt),!Ft.origin||Ft.origin==="null")return!1}catch{return!1}const Mt=new URL(It,Ft);return Ft.origin===Mt.origin},PDFWorkerUtil.createCDNWrapper=function(Rt){const It=`importScripts("${Rt}");`;return URL.createObjectURL(new Blob([It]))}}const _PDFWorker=class _PDFWorker{constructor({name:Rt=null,port:It=null,verbosity:Ft=(0,_util.getVerbosityLevel)()}={}){var Mt;if(this.name=Rt,this.destroyed=!1,this.verbosity=Ft,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,It){if((Mt=Yt(_PDFWorker,wt))!=null&&Mt.has(It))throw new Error("Cannot use more than one PDFWorker per port.");(Yt(_PDFWorker,wt)||Wn(_PDFWorker,wt,new WeakMap)).set(It,this),this._initializeFromPort(It);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(Rt){this._port=Rt,this._messageHandler=new _message_handler.MessageHandler("main","worker",Rt),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!_PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:Rt}=_PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,Rt)||(Rt=PDFWorkerUtil.createCDNWrapper(new URL(Rt,window.location).href));const It=new Worker(Rt),Ft=new _message_handler.MessageHandler("main","worker",It),Mt=()=>{It.removeEventListener("error",Ht),Ft.destroy(),It.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},Ht=()=>{this._webWorker||Mt()};It.addEventListener("error",Ht),Ft.on("test",Nt=>{if(It.removeEventListener("error",Ht),this.destroyed){Mt();return}Nt?(this._messageHandler=Ft,this._port=It,this._webWorker=It,this._readyCapability.resolve(),Ft.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),Ft.destroy(),It.terminate())}),Ft.on("ready",Nt=>{if(It.removeEventListener("error",Ht),this.destroyed){Mt();return}try{Vt()}catch{this._setupFakeWorker()}});const Vt=()=>{const Nt=new Uint8Array;Ft.send("test",Nt,[Nt.buffer])};Vt();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),_PDFWorker._setupFakeWorkerGlobal.then(Rt=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const It=new LoopbackPort;this._port=It;const Ft=`fake${PDFWorkerUtil.fakeWorkerId++}`,Mt=new _message_handler.MessageHandler(Ft+"_worker",Ft,It);Rt.setup(Mt,It);const Ht=new _message_handler.MessageHandler(Ft,Ft+"_worker",It);this._messageHandler=Ht,this._readyCapability.resolve(),Ht.send("configure",{verbosity:this.verbosity})}).catch(Rt=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${Rt.message}".`))})}destroy(){var Rt;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(Rt=Yt(_PDFWorker,wt))==null||Rt.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(Rt){var Ft;if(!(Rt!=null&&Rt.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const It=(Ft=Yt(this,wt))==null?void 0:Ft.get(Rt.port);if(It){if(It._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return It}return new _PDFWorker(Rt)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){var Rt;try{return((Rt=globalThis.pdfjsWorker)==null?void 0:Rt.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&typeof commonjsRequire=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}};wt=new WeakMap,An(_PDFWorker,wt,void 0);let PDFWorker=_PDFWorker;exports.PDFWorker=PDFWorker;class WorkerTransport{constructor(It,Ft,Mt,Ht,Vt){An(this,kt);An(this,yt,new Map);An(this,bt,new Map);An(this,Ct,new Map);An(this,Et,null);this.messageHandler=It,this.loadingTask=Ft,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:Ht.ownerDocument,styleElement:Ht.styleElement}),this._params=Ht,this.canvasFactory=Vt.canvasFactory,this.filterFactory=Vt.filterFactory,this.cMapReaderFactory=Vt.cMapReaderFactory,this.standardFontDataFactory=Vt.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=Mt,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(It,Ft=_util.AnnotationMode.ENABLE,Mt=null,Ht=!1){let Vt=_util.RenderingIntentFlag.DISPLAY,Nt=_annotation_storage.SerializableEmpty;switch(It){case"any":Vt=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":Vt=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${It}`)}switch(Ft){case _util.AnnotationMode.DISABLE:Vt+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:Vt+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:Vt+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,Nt=(Vt&_util.RenderingIntentFlag.PRINT&&Mt instanceof _annotation_storage.PrintAnnotationStorage?Mt:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${Ft}`)}return Ht&&(Vt+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:Vt,cacheKey:`${Vt}_${Nt.hash}`,annotationStorageSerializable:Nt}}destroy(){var Mt;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,(Mt=Yt(this,Et))==null||Mt.reject(new Error("Worker was destroyed during onPassword callback"));const It=[];for(const Ht of Yt(this,bt).values())It.push(Ht._destroy());Yt(this,bt).clear(),Yt(this,Ct).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const Ft=this.messageHandler.sendWithPromise("Terminate",null);return It.push(Ft),Promise.all(It).then(()=>{var Ht;this.commonObjs.clear(),this.fontLoader.clear(),Yt(this,yt).clear(),this.filterFactory.destroy(),(Ht=this._networkStream)==null||Ht.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:It,loadingTask:Ft}=this;It.on("GetReader",(Mt,Ht)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=Vt=>{this._lastProgress={loaded:Vt.loaded,total:Vt.total}},Ht.onPull=()=>{this._fullReader.read().then(function({value:Vt,done:Nt}){if(Nt){Ht.close();return}(0,_util.assert)(Vt instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),Ht.enqueue(new Uint8Array(Vt),1,[Vt])}).catch(Vt=>{Ht.error(Vt)})},Ht.onCancel=Vt=>{this._fullReader.cancel(Vt),Ht.ready.catch(Nt=>{if(!this.destroyed)throw Nt})}}),It.on("ReaderHeadersReady",Mt=>{const Ht=new _util.PromiseCapability,Vt=this._fullReader;return Vt.headersReady.then(()=>{var Nt;(!Vt.isStreamingSupported||!Vt.isRangeSupported)&&(this._lastProgress&&((Nt=Ft.onProgress)==null||Nt.call(Ft,this._lastProgress)),Vt.onProgress=Gt=>{var tn;(tn=Ft.onProgress)==null||tn.call(Ft,{loaded:Gt.loaded,total:Gt.total})}),Ht.resolve({isStreamingSupported:Vt.isStreamingSupported,isRangeSupported:Vt.isRangeSupported,contentLength:Vt.contentLength})},Ht.reject),Ht.promise}),It.on("GetRangeReader",(Mt,Ht)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const Vt=this._networkStream.getRangeReader(Mt.begin,Mt.end);if(!Vt){Ht.close();return}Ht.onPull=()=>{Vt.read().then(function({value:Nt,done:Gt}){if(Gt){Ht.close();return}(0,_util.assert)(Nt instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),Ht.enqueue(new Uint8Array(Nt),1,[Nt])}).catch(Nt=>{Ht.error(Nt)})},Ht.onCancel=Nt=>{Vt.cancel(Nt),Ht.ready.catch(Gt=>{if(!this.destroyed)throw Gt})}}),It.on("GetDoc",({pdfInfo:Mt})=>{this._numPages=Mt.numPages,this._htmlForXfa=Mt.htmlForXfa,delete Mt.htmlForXfa,Ft._capability.resolve(new PDFDocumentProxy(Mt,this))}),It.on("DocException",function(Mt){let Ht;switch(Mt.name){case"PasswordException":Ht=new _util.PasswordException(Mt.message,Mt.code);break;case"InvalidPDFException":Ht=new _util.InvalidPDFException(Mt.message);break;case"MissingPDFException":Ht=new _util.MissingPDFException(Mt.message);break;case"UnexpectedResponseException":Ht=new _util.UnexpectedResponseException(Mt.message,Mt.status);break;case"UnknownErrorException":Ht=new _util.UnknownErrorException(Mt.message,Mt.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}Ft._capability.reject(Ht)}),It.on("PasswordRequest",Mt=>{if(Wn(this,Et,new _util.PromiseCapability),Ft.onPassword){const Ht=Vt=>{Vt instanceof Error?Yt(this,Et).reject(Vt):Yt(this,Et).resolve({password:Vt})};try{Ft.onPassword(Ht,Mt.code)}catch(Vt){Yt(this,Et).reject(Vt)}}else Yt(this,Et).reject(new _util.PasswordException(Mt.message,Mt.code));return Yt(this,Et).promise}),It.on("DataLoaded",Mt=>{var Ht;(Ht=Ft.onProgress)==null||Ht.call(Ft,{loaded:Mt.length,total:Mt.length}),this.downloadInfoCapability.resolve(Mt)}),It.on("StartRenderPage",Mt=>{if(this.destroyed)return;Yt(this,bt).get(Mt.pageIndex)._startRenderPage(Mt.transparency,Mt.cacheKey)}),It.on("commonobj",([Mt,Ht,Vt])=>{var Nt;if(!this.destroyed&&!this.commonObjs.has(Mt))switch(Ht){case"Font":const Gt=this._params;if("error"in Vt){const nn=Vt.error;(0,_util.warn)(`Error during font loading: ${nn}`),this.commonObjs.resolve(Mt,nn);break}const tn=Gt.pdfBug&&((Nt=globalThis.FontInspector)!=null&&Nt.enabled)?(nn,on)=>globalThis.FontInspector.fontAdded(nn,on):null,ln=new _font_loader.FontFaceObject(Vt,{isEvalSupported:Gt.isEvalSupported,disableFontFace:Gt.disableFontFace,ignoreErrors:Gt.ignoreErrors,inspectFont:tn});this.fontLoader.bind(ln).catch(nn=>It.sendWithPromise("FontFallback",{id:Mt})).finally(()=>{!Gt.fontExtraProperties&&ln.data&&(ln.data=null),this.commonObjs.resolve(Mt,ln)});break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(Mt,Vt);break;default:throw new Error(`Got unknown common object type ${Ht}`)}}),It.on("obj",([Mt,Ht,Vt,Nt])=>{var tn;if(this.destroyed)return;const Gt=Yt(this,bt).get(Ht);if(!Gt.objs.has(Mt))switch(Vt){case"Image":if(Gt.objs.resolve(Mt,Nt),Nt){let ln;if(Nt.bitmap){const{width:nn,height:on}=Nt;ln=nn*on*4}else ln=((tn=Nt.data)==null?void 0:tn.length)||0;ln>_util.MAX_IMAGE_SIZE_TO_CACHE&&(Gt._maybeCleanupAfterRender=!0)}break;case"Pattern":Gt.objs.resolve(Mt,Nt);break;default:throw new Error(`Got unknown object type ${Vt}`)}}),It.on("DocProgress",Mt=>{var Ht;this.destroyed||(Ht=Ft.onProgress)==null||Ht.call(Ft,{loaded:Mt.loaded,total:Mt.total})}),It.on("FetchBuiltInCMap",Mt=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(Mt):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),It.on("FetchStandardFontData",Mt=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(Mt):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var Mt;this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:It,transfers:Ft}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:It,filename:((Mt=this._fullReader)==null?void 0:Mt.filename)??null},Ft).finally(()=>{this.annotationStorage.resetModified()})}getPage(It){if(!Number.isInteger(It)||It<=0||It>this._numPages)return Promise.reject(new Error("Invalid page request."));const Ft=It-1,Mt=Yt(this,Ct).get(Ft);if(Mt)return Mt;const Ht=this.messageHandler.sendWithPromise("GetPage",{pageIndex:Ft}).then(Vt=>{if(this.destroyed)throw new Error("Transport destroyed");const Nt=new PDFPageProxy(Ft,Vt,this,this._params.pdfBug);return Yt(this,bt).set(Ft,Nt),Nt});return Yt(this,Ct).set(Ft,Ht),Ht}getPageIndex(It){return typeof It!="object"||It===null||!Number.isInteger(It.num)||It.num<0||!Number.isInteger(It.gen)||It.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:It.num,gen:It.gen})}getAnnotations(It,Ft){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:It,intent:Ft})}getFieldObjects(){return Nn(this,kt,Up).call(this,"GetFieldObjects")}hasJSActions(){return Nn(this,kt,Up).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(It){return typeof It!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:It})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return Nn(this,kt,Up).call(this,"GetDocJSActions")}getPageJSActions(It){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:It})}getStructTree(It){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:It})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(It=>new _optional_content_config.OptionalContentConfig(It))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const It="GetMetadata",Ft=Yt(this,yt).get(It);if(Ft)return Ft;const Mt=this.messageHandler.sendWithPromise(It,null).then(Ht=>{var Vt,Nt;return{info:Ht[0],metadata:Ht[1]?new _metadata.Metadata(Ht[1]):null,contentDispositionFilename:((Vt=this._fullReader)==null?void 0:Vt.filename)??null,contentLength:((Nt=this._fullReader)==null?void 0:Nt.contentLength)??null}});return Yt(this,yt).set(It,Mt),Mt}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(It=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const Ft of Yt(this,bt).values())if(!Ft.cleanup())throw new Error(`startCleanup: Page ${Ft.pageNumber} is currently rendering.`);this.commonObjs.clear(),It||this.fontLoader.clear(),Yt(this,yt).clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:It,enableXfa:Ft}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:It,enableXfa:Ft})}}yt=new WeakMap,bt=new WeakMap,Ct=new WeakMap,Et=new WeakMap,kt=new WeakSet,Up=function(It,Ft=null){const Mt=Yt(this,yt).get(It);if(Mt)return Mt;const Ht=this.messageHandler.sendWithPromise(It,Ft);return Yt(this,yt).set(It,Ht),Ht};class PDFObjects{constructor(){An(this,Ot);An(this,St,Object.create(null))}get(It,Ft=null){if(Ft){const Ht=Nn(this,Ot,S1).call(this,It);return Ht.capability.promise.then(()=>Ft(Ht.data)),null}const Mt=Yt(this,St)[It];if(!(Mt!=null&&Mt.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${It}.`);return Mt.data}has(It){const Ft=Yt(this,St)[It];return(Ft==null?void 0:Ft.capability.settled)||!1}resolve(It,Ft=null){const Mt=Nn(this,Ot,S1).call(this,It);Mt.data=Ft,Mt.capability.resolve()}clear(){var It;for(const Ft in Yt(this,St)){const{data:Mt}=Yt(this,St)[Ft];(It=Mt==null?void 0:Mt.bitmap)==null||It.close()}Wn(this,St,Object.create(null))}}St=new WeakMap,Ot=new WeakSet,S1=function(It){var Ft;return(Ft=Yt(this,St))[It]||(Ft[It]={capability:new _util.PromiseCapability,data:null})};class RenderTask{constructor(It){An(this,Tt,null);Wn(this,Tt,It),this.onContinue=null}get promise(){return Yt(this,Tt).capability.promise}cancel(It=0){Yt(this,Tt).cancel(null,It)}get separateAnnots(){const{separateAnnots:It}=Yt(this,Tt).operatorList;if(!It)return!1;const{annotationCanvasMap:Ft}=Yt(this,Tt);return It.form||It.canvas&&(Ft==null?void 0:Ft.size)>0}}Tt=new WeakMap,exports.RenderTask=RenderTask;const Lt=class Lt{constructor({callback:It,params:Ft,objs:Mt,commonObjs:Ht,annotationCanvasMap:Vt,operatorList:Nt,pageIndex:Gt,canvasFactory:tn,filterFactory:ln,useRequestAnimationFrame:nn=!1,pdfBug:on=!1,pageColors:rn=null}){this.callback=It,this.params=Ft,this.objs=Mt,this.commonObjs=Ht,this.annotationCanvasMap=Vt,this.operatorListIdx=null,this.operatorList=Nt,this._pageIndex=Gt,this.canvasFactory=tn,this.filterFactory=ln,this._pdfBug=on,this.pageColors=rn,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=nn===!0&&typeof window<"u",this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=Ft.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:It=!1,optionalContentConfig:Ft}){var Gt,tn;if(this.cancelled)return;if(this._canvas){if(Yt(Lt,$t).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");Yt(Lt,$t).add(this._canvas)}this._pdfBug&&((Gt=globalThis.StepperManager)!=null&&Gt.enabled)&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:Mt,viewport:Ht,transform:Vt,background:Nt}=this.params;this.gfx=new _canvas.CanvasGraphics(Mt,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:Ft},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:Vt,viewport:Ht,transparency:It,background:Nt}),this.operatorListIdx=0,this.graphicsReady=!0,(tn=this.graphicsReadyCallback)==null||tn.call(this)}cancel(It=null,Ft=0){var Mt;this.running=!1,this.cancelled=!0,(Mt=this.gfx)==null||Mt.endDrawing(),Yt(Lt,$t).delete(this._canvas),this.callback(It||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,Ft))}operatorListChanged(){var It;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(It=this.stepper)==null||It.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),Yt(Lt,$t).delete(this._canvas),this.callback())))}};$t=new WeakMap,An(Lt,$t,new WeakSet);let InternalRenderTask=Lt;const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(it,at,lt)=>{var gt,vt,wt,Uv,bt;Object.defineProperty(at,"__esModule",{value:!0}),at.SerializableEmpty=at.PrintAnnotationStorage=at.AnnotationStorage=void 0;var ut=lt(1),ct=lt(4),dt=lt(8);const ft=Object.freeze({map:null,hash:"",transfers:void 0});at.SerializableEmpty=ft;class mt{constructor(){An(this,wt);An(this,gt,!1);An(this,vt,new Map);this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(Et,kt){const xt=Yt(this,vt).get(Et);return xt===void 0?kt:Object.assign(kt,xt)}getRawValue(Et){return Yt(this,vt).get(Et)}remove(Et){if(Yt(this,vt).delete(Et),Yt(this,vt).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const kt of Yt(this,vt).values())if(kt instanceof ct.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(Et,kt){const xt=Yt(this,vt).get(Et);let St=!1;if(xt!==void 0)for(const[Ot,At]of Object.entries(kt))xt[Ot]!==At&&(St=!0,xt[Ot]=At);else St=!0,Yt(this,vt).set(Et,kt);St&&Nn(this,wt,Uv).call(this),kt instanceof ct.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(kt.constructor._type)}has(Et){return Yt(this,vt).has(Et)}getAll(){return Yt(this,vt).size>0?(0,ut.objectFromMap)(Yt(this,vt)):null}setAll(Et){for(const[kt,xt]of Object.entries(Et))this.setValue(kt,xt)}get size(){return Yt(this,vt).size}resetModified(){Yt(this,gt)&&(Wn(this,gt,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new pt(this)}get serializable(){if(Yt(this,vt).size===0)return ft;const Et=new Map,kt=new dt.MurmurHash3_64,xt=[],St=Object.create(null);let Ot=!1;for(const[At,Tt]of Yt(this,vt)){const $t=Tt instanceof ct.AnnotationEditor?Tt.serialize(!1,St):Tt;$t&&(Et.set(At,$t),kt.update(`${At}:${JSON.stringify($t)}`),Ot||(Ot=!!$t.bitmap))}if(Ot)for(const At of Et.values())At.bitmap&&xt.push(At.bitmap);return Et.size>0?{map:Et,hash:kt.hexdigest(),transfers:xt}:ft}}gt=new WeakMap,vt=new WeakMap,wt=new WeakSet,Uv=function(){Yt(this,gt)||(Wn(this,gt,!0),typeof this.onSetModified=="function"&&this.onSetModified())},at.AnnotationStorage=mt;class pt extends mt{constructor(kt){super();An(this,bt,void 0);const{map:xt,hash:St,transfers:Ot}=kt.serializable,At=structuredClone(xt,Ot?{transfer:Ot}:null);Wn(this,bt,{map:At,hash:St,transfers:Ot})}get print(){(0,ut.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return Yt(this,bt)}}bt=new WeakMap,at.PrintAnnotationStorage=pt},(it,at,lt)=>{var pt,gt,vt,wt,yt,bt,Ct,Et,kt,xt,St,Ot,At,Tt,$t,A1,Rt,T1,Ft,k1,Ht,C1,Nt,Hv,tn,zv,nn,Wv,rn,O1,Zt,qv;Object.defineProperty(at,"__esModule",{value:!0}),at.AnnotationEditor=void 0;var ut=lt(5),ct=lt(1),dt=lt(6);const jt=class jt{constructor(Dt){An(this,$t);An(this,Rt);An(this,Ht);An(this,Nt);An(this,tn);An(this,nn);An(this,rn);An(this,Zt);An(this,pt,"");An(this,gt,!1);An(this,vt,null);An(this,wt,null);An(this,yt,null);An(this,bt,!1);An(this,Ct,null);An(this,Et,this.focusin.bind(this));An(this,kt,this.focusout.bind(this));An(this,xt,!1);An(this,St,!1);An(this,Ot,!1);Hr(this,"_initialOptions",Object.create(null));Hr(this,"_uiManager",null);Hr(this,"_focusEventsAllowed",!0);Hr(this,"_l10nPromise",null);An(this,At,!1);An(this,Tt,jt._zIndex++);this.constructor===jt&&(0,ct.unreachable)("Cannot initialize AnnotationEditor."),this.parent=Dt.parent,this.id=Dt.id,this.width=this.height=null,this.pageIndex=Dt.parent.pageIndex,this.name=Dt.name,this.div=null,this._uiManager=Dt.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=Dt.isCentered,this._structTreeParentId=null;const{rotation:zt,rawDims:{pageWidth:Kt,pageHeight:en,pageX:sn,pageY:cn}}=this.parent.viewport;this.rotation=zt,this.pageRotation=(360+zt-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[Kt,en],this.pageTranslation=[sn,cn];const[bn,Tn]=this.parentDimensions;this.x=Dt.x/bn,this.y=Dt.y/Tn,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,ct.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(Dt){const zt=new mt({id:Dt.parent.getNextId(),parent:Dt.parent,uiManager:Dt._uiManager});zt.annotationElementId=Dt.annotationElementId,zt.deleted=!0,zt._uiManager.addToAnnotationStorage(zt)}static initialize(Dt,zt=null){if(jt._l10nPromise||(jt._l10nPromise=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map(en=>[en,Dt.get(en)]))),zt!=null&&zt.strings)for(const en of zt.strings)jt._l10nPromise.set(en,Dt.get(en));if(jt._borderLineWidth!==-1)return;const Kt=getComputedStyle(document.documentElement);jt._borderLineWidth=parseFloat(Kt.getPropertyValue("--outline-width"))||0}static updateDefaultParams(Dt,zt){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(Dt){return!1}static paste(Dt,zt){(0,ct.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return Yt(this,At)}set _isDraggable(Dt){var zt;Wn(this,At,Dt),(zt=this.div)==null||zt.classList.toggle("draggable",Dt)}center(){const[Dt,zt]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*zt/(Dt*2),this.y+=this.width*Dt/(zt*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*zt/(Dt*2),this.y-=this.width*Dt/(zt*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(Dt){this._uiManager.addCommands(Dt)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=Yt(this,Tt)}setParent(Dt){Dt!==null&&(this.pageIndex=Dt.pageIndex,this.pageDimensions=Dt.pageDimensions),this.parent=Dt}focusin(Dt){this._focusEventsAllowed&&(Yt(this,xt)?Wn(this,xt,!1):this.parent.setSelected(this))}focusout(Dt){var Kt;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const zt=Dt.relatedTarget;zt!=null&&zt.closest(`#${this.id}`)||(Dt.preventDefault(),(Kt=this.parent)!=null&&Kt.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(Dt,zt,Kt,en){const[sn,cn]=this.parentDimensions;[Kt,en]=this.screenToPageTranslation(Kt,en),this.x=(Dt+Kt)/sn,this.y=(zt+en)/cn,this.fixAndSetPosition()}translate(Dt,zt){Nn(this,$t,A1).call(this,this.parentDimensions,Dt,zt)}translateInPage(Dt,zt){Nn(this,$t,A1).call(this,this.pageDimensions,Dt,zt),this.div.scrollIntoView({block:"nearest"})}drag(Dt,zt){const[Kt,en]=this.parentDimensions;if(this.x+=Dt/Kt,this.y+=zt/en,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:kn,y:In}=this.div.getBoundingClientRect();this.parent.findNewParent(this,kn,In)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:sn,y:cn}=this;const[bn,Tn]=Nn(this,Rt,T1).call(this);sn+=bn,cn+=Tn,this.div.style.left=`${(100*sn).toFixed(2)}%`,this.div.style.top=`${(100*cn).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}fixAndSetPosition(){const[Dt,zt]=this.pageDimensions;let{x:Kt,y:en,width:sn,height:cn}=this;switch(sn*=Dt,cn*=zt,Kt*=Dt,en*=zt,this.rotation){case 0:Kt=Math.max(0,Math.min(Dt-sn,Kt)),en=Math.max(0,Math.min(zt-cn,en));break;case 90:Kt=Math.max(0,Math.min(Dt-cn,Kt)),en=Math.min(zt,Math.max(sn,en));break;case 180:Kt=Math.min(Dt,Math.max(sn,Kt)),en=Math.min(zt,Math.max(cn,en));break;case 270:Kt=Math.min(Dt,Math.max(cn,Kt)),en=Math.max(0,Math.min(zt-sn,en));break}this.x=Kt/=Dt,this.y=en/=zt;const[bn,Tn]=Nn(this,Rt,T1).call(this);Kt+=bn,en+=Tn;const{style:kn}=this.div;kn.left=`${(100*Kt).toFixed(2)}%`,kn.top=`${(100*en).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(Dt,zt){var Kt;return Nn(Kt=jt,Ft,k1).call(Kt,Dt,zt,this.parentRotation)}pageTranslationToScreen(Dt,zt){var Kt;return Nn(Kt=jt,Ft,k1).call(Kt,Dt,zt,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:Dt,pageDimensions:[zt,Kt]}=this,en=zt*Dt,sn=Kt*Dt;return ct.FeatureTest.isCSSRoundSupported?[Math.round(en),Math.round(sn)]:[en,sn]}setDims(Dt,zt){var sn;const[Kt,en]=this.parentDimensions;this.div.style.width=`${(100*Dt/Kt).toFixed(2)}%`,Yt(this,bt)||(this.div.style.height=`${(100*zt/en).toFixed(2)}%`),(sn=Yt(this,vt))==null||sn.classList.toggle("small",Dt<jt.SMALL_EDITOR_SIZE||zt<jt.SMALL_EDITOR_SIZE)}fixDims(){const{style:Dt}=this.div,{height:zt,width:Kt}=Dt,en=Kt.endsWith("%"),sn=!Yt(this,bt)&&zt.endsWith("%");if(en&&sn)return;const[cn,bn]=this.parentDimensions;en||(Dt.width=`${(100*parseFloat(Kt)/cn).toFixed(2)}%`),!Yt(this,bt)&&!sn&&(Dt.height=`${(100*parseFloat(zt)/bn).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}async addAltTextButton(){if(Yt(this,vt))return;const Dt=Wn(this,vt,document.createElement("button"));Dt.className="altText";const zt=await jt._l10nPromise.get("editor_alt_text_button_label");Dt.textContent=zt,Dt.setAttribute("aria-label",zt),Dt.tabIndex="0",Dt.addEventListener("contextmenu",dt.noContextMenu),Dt.addEventListener("pointerdown",Kt=>Kt.stopPropagation()),Dt.addEventListener("click",Kt=>{Kt.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),Dt.addEventListener("keydown",Kt=>{Kt.target===Dt&&Kt.key==="Enter"&&(Kt.preventDefault(),this._uiManager.editAltText(this))}),Nn(this,rn,O1).call(this),this.div.append(Dt),jt.SMALL_EDITOR_SIZE||(jt.SMALL_EDITOR_SIZE=Math.min(128,Math.round(Dt.getBoundingClientRect().width*1.4)))}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:Yt(this,pt),decorative:Yt(this,gt)}}set altTextData({altText:Dt,decorative:zt}){Yt(this,pt)===Dt&&Yt(this,gt)===zt||(Wn(this,pt,Dt),Wn(this,gt,zt),Nn(this,rn,O1).call(this))}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",Yt(this,Et)),this.div.addEventListener("focusout",Yt(this,kt));const[Dt,zt]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*zt/Dt).toFixed(2)}%`,this.div.style.maxHeight=`${(100*Dt/zt).toFixed(2)}%`);const[Kt,en]=this.getInitialTranslation();return this.translate(Kt,en),(0,ut.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(Dt){const{isMac:zt}=ct.FeatureTest.platform;if(Dt.button!==0||Dt.ctrlKey&&zt){Dt.preventDefault();return}Wn(this,xt,!0),Nn(this,Zt,qv).call(this,Dt)}moveInDOM(){var Dt;(Dt=this.parent)==null||Dt.moveEditorInDOM(this)}_setParentAndPosition(Dt,zt,Kt){Dt.changeParent(this),this.x=zt,this.y=Kt,this.fixAndSetPosition()}getRect(Dt,zt){const Kt=this.parentScale,[en,sn]=this.pageDimensions,[cn,bn]=this.pageTranslation,Tn=Dt/Kt,kn=zt/Kt,In=this.x*en,Hn=this.y*sn,Fn=this.width*en,wn=this.height*sn;switch(this.rotation){case 0:return[In+Tn+cn,sn-Hn-kn-wn+bn,In+Tn+Fn+cn,sn-Hn-kn+bn];case 90:return[In+kn+cn,sn-Hn+Tn+bn,In+kn+wn+cn,sn-Hn+Tn+Fn+bn];case 180:return[In-Tn-Fn+cn,sn-Hn+kn+bn,In-Tn+cn,sn-Hn+kn+wn+bn];case 270:return[In-kn-wn+cn,sn-Hn-Tn-Fn+bn,In-kn+cn,sn-Hn-Tn+bn];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(Dt,zt){const[Kt,en,sn,cn]=Dt,bn=sn-Kt,Tn=cn-en;switch(this.rotation){case 0:return[Kt,zt-cn,bn,Tn];case 90:return[Kt,zt-en,Tn,bn];case 180:return[sn,zt-en,bn,Tn];case 270:return[sn,zt-cn,Tn,bn];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){Wn(this,Ot,!0)}disableEditMode(){Wn(this,Ot,!1)}isInEditMode(){return Yt(this,Ot)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var Dt,zt;(Dt=this.div)==null||Dt.addEventListener("focusin",Yt(this,Et)),(zt=this.div)==null||zt.addEventListener("focusout",Yt(this,kt))}serialize(Dt=!1,zt=null){(0,ct.unreachable)("An editor must be serializable")}static deserialize(Dt,zt,Kt){const en=new this.prototype.constructor({parent:zt,id:zt.getNextId(),uiManager:Kt});en.rotation=Dt.rotation;const[sn,cn]=en.pageDimensions,[bn,Tn,kn,In]=en.getRectInCurrentCoords(Dt.rect,cn);return en.x=bn/sn,en.y=Tn/cn,en.width=kn/sn,en.height=In/cn,en}remove(){var Dt;this.div.removeEventListener("focusin",Yt(this,Et)),this.div.removeEventListener("focusout",Yt(this,kt)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),(Dt=Yt(this,vt))==null||Dt.remove(),Wn(this,vt,null),Wn(this,wt,null)}get isResizable(){return!1}makeResizable(){this.isResizable&&(Nn(this,Nt,Hv).call(this),Yt(this,Ct).classList.remove("hidden"))}select(){var Dt;this.makeResizable(),(Dt=this.div)==null||Dt.classList.add("selectedEditor")}unselect(){var Dt,zt,Kt;(Dt=Yt(this,Ct))==null||Dt.classList.add("hidden"),(zt=this.div)==null||zt.classList.remove("selectedEditor"),(Kt=this.div)!=null&&Kt.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(Dt,zt){}disableEditing(){Yt(this,vt)&&(Yt(this,vt).hidden=!0)}enableEditing(){Yt(this,vt)&&(Yt(this,vt).hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return Yt(this,St)}set isEditing(Dt){Wn(this,St,Dt),this.parent&&(Dt?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(Dt,zt){Wn(this,bt,!0);const Kt=Dt/zt,{style:en}=this.div;en.aspectRatio=Kt,en.height="auto"}static get MIN_SIZE(){return 16}};pt=new WeakMap,gt=new WeakMap,vt=new WeakMap,wt=new WeakMap,yt=new WeakMap,bt=new WeakMap,Ct=new WeakMap,Et=new WeakMap,kt=new WeakMap,xt=new WeakMap,St=new WeakMap,Ot=new WeakMap,At=new WeakMap,Tt=new WeakMap,$t=new WeakSet,A1=function([Dt,zt],Kt,en){[Kt,en]=this.screenToPageTranslation(Kt,en),this.x+=Kt/Dt,this.y+=en/zt,this.fixAndSetPosition()},Rt=new WeakSet,T1=function(){const[Dt,zt]=this.parentDimensions,{_borderLineWidth:Kt}=jt,en=Kt/Dt,sn=Kt/zt;switch(this.rotation){case 90:return[-en,sn];case 180:return[en,sn];case 270:return[en,-sn];default:return[-en,-sn]}},Ft=new WeakSet,k1=function(Dt,zt,Kt){switch(Kt){case 90:return[zt,-Dt];case 180:return[-Dt,-zt];case 270:return[-zt,Dt];default:return[Dt,zt]}},Ht=new WeakSet,C1=function(Dt){switch(Dt){case 90:{const[zt,Kt]=this.pageDimensions;return[0,-zt/Kt,Kt/zt,0]}case 180:return[-1,0,0,-1];case 270:{const[zt,Kt]=this.pageDimensions;return[0,zt/Kt,-Kt/zt,0]}default:return[1,0,0,1]}},Nt=new WeakSet,Hv=function(){if(Yt(this,Ct))return;Wn(this,Ct,document.createElement("div")),Yt(this,Ct).classList.add("resizers");const Dt=["topLeft","topRight","bottomRight","bottomLeft"];this._willKeepAspectRatio||Dt.push("topMiddle","middleRight","bottomMiddle","middleLeft");for(const zt of Dt){const Kt=document.createElement("div");Yt(this,Ct).append(Kt),Kt.classList.add("resizer",zt),Kt.addEventListener("pointerdown",Nn(this,tn,zv).bind(this,zt)),Kt.addEventListener("contextmenu",dt.noContextMenu)}this.div.prepend(Yt(this,Ct))},tn=new WeakSet,zv=function(Dt,zt){zt.preventDefault();const{isMac:Kt}=ct.FeatureTest.platform;if(zt.button!==0||zt.ctrlKey&&Kt)return;const en=Nn(this,nn,Wv).bind(this,Dt),sn=this._isDraggable;this._isDraggable=!1;const cn={passive:!0,capture:!0};window.addEventListener("pointermove",en,cn);const bn=this.x,Tn=this.y,kn=this.width,In=this.height,Hn=this.parent.div.style.cursor,Fn=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(zt.target).cursor;const wn=()=>{this._isDraggable=sn,window.removeEventListener("pointerup",wn),window.removeEventListener("blur",wn),window.removeEventListener("pointermove",en,cn),this.parent.div.style.cursor=Hn,this.div.style.cursor=Fn;const Mn=this.x,Dn=this.y,Un=this.width,Sn=this.height;Mn===bn&&Dn===Tn&&Un===kn&&Sn===In||this.addCommands({cmd:()=>{this.width=Un,this.height=Sn,this.x=Mn,this.y=Dn;const[On,Cn]=this.parentDimensions;this.setDims(On*Un,Cn*Sn),this.fixAndSetPosition()},undo:()=>{this.width=kn,this.height=In,this.x=bn,this.y=Tn;const[On,Cn]=this.parentDimensions;this.setDims(On*kn,Cn*In),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",wn),window.addEventListener("blur",wn)},nn=new WeakSet,Wv=function(Dt,zt){const[Kt,en]=this.parentDimensions,sn=this.x,cn=this.y,bn=this.width,Tn=this.height,kn=jt.MIN_SIZE/Kt,In=jt.MIN_SIZE/en,Hn=qn=>Math.round(qn*1e4)/1e4,Fn=Nn(this,Ht,C1).call(this,this.rotation),wn=(qn,Yn)=>[Fn[0]*qn+Fn[2]*Yn,Fn[1]*qn+Fn[3]*Yn],Mn=Nn(this,Ht,C1).call(this,360-this.rotation),Dn=(qn,Yn)=>[Mn[0]*qn+Mn[2]*Yn,Mn[1]*qn+Mn[3]*Yn];let Un,Sn,On=!1,Cn=!1;switch(Dt){case"topLeft":On=!0,Un=(qn,Yn)=>[0,0],Sn=(qn,Yn)=>[qn,Yn];break;case"topMiddle":Un=(qn,Yn)=>[qn/2,0],Sn=(qn,Yn)=>[qn/2,Yn];break;case"topRight":On=!0,Un=(qn,Yn)=>[qn,0],Sn=(qn,Yn)=>[0,Yn];break;case"middleRight":Cn=!0,Un=(qn,Yn)=>[qn,Yn/2],Sn=(qn,Yn)=>[0,Yn/2];break;case"bottomRight":On=!0,Un=(qn,Yn)=>[qn,Yn],Sn=(qn,Yn)=>[0,0];break;case"bottomMiddle":Un=(qn,Yn)=>[qn/2,Yn],Sn=(qn,Yn)=>[qn/2,0];break;case"bottomLeft":On=!0,Un=(qn,Yn)=>[0,Yn],Sn=(qn,Yn)=>[qn,0];break;case"middleLeft":Cn=!0,Un=(qn,Yn)=>[0,Yn/2],Sn=(qn,Yn)=>[qn,Yn/2];break}const Pn=Un(bn,Tn),Xn=Sn(bn,Tn);let Qn=wn(...Xn);const sr=Hn(sn+Qn[0]),pr=Hn(cn+Qn[1]);let or=1,br=1,[fn,xn]=this.screenToPageTranslation(zt.movementX,zt.movementY);if([fn,xn]=Dn(fn/Kt,xn/en),On){const qn=Math.hypot(bn,Tn);or=br=Math.max(Math.min(Math.hypot(Xn[0]-Pn[0]-fn,Xn[1]-Pn[1]-xn)/qn,1/bn,1/Tn),kn/bn,In/Tn)}else Cn?or=Math.max(kn,Math.min(1,Math.abs(Xn[0]-Pn[0]-fn)))/bn:br=Math.max(In,Math.min(1,Math.abs(Xn[1]-Pn[1]-xn)))/Tn;const Kn=Hn(bn*or),_n=Hn(Tn*br);Qn=wn(...Sn(Kn,_n));const gn=sr-Qn[0],vn=pr-Qn[1];this.width=Kn,this.height=_n,this.x=gn,this.y=vn,this.setDims(Kt*Kn,en*_n),this.fixAndSetPosition()},rn=new WeakSet,O1=async function(){var Kt;const Dt=Yt(this,vt);if(!Dt)return;if(!Yt(this,pt)&&!Yt(this,gt)){Dt.classList.remove("done"),(Kt=Yt(this,wt))==null||Kt.remove();return}jt._l10nPromise.get("editor_alt_text_edit_button_label").then(en=>{Dt.setAttribute("aria-label",en)});let zt=Yt(this,wt);if(!zt){Wn(this,wt,zt=document.createElement("span")),zt.className="tooltip",zt.setAttribute("role","tooltip");const en=zt.id=`alt-text-tooltip-${this.id}`;Dt.setAttribute("aria-describedby",en);const sn=100;Dt.addEventListener("mouseenter",()=>{Wn(this,yt,setTimeout(()=>{Wn(this,yt,null),Yt(this,wt).classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},sn))}),Dt.addEventListener("mouseleave",()=>{var cn;clearTimeout(Yt(this,yt)),Wn(this,yt,null),(cn=Yt(this,wt))==null||cn.classList.remove("show")})}Dt.classList.add("done"),zt.innerText=Yt(this,gt)?await jt._l10nPromise.get("editor_alt_text_decorative_tooltip"):Yt(this,pt),zt.parentNode||Dt.append(zt)},Zt=new WeakSet,qv=function(Dt){if(!this._isDraggable)return;const zt=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let Kt,en;zt&&(Kt={passive:!0,capture:!0},en=cn=>{const[bn,Tn]=this.screenToPageTranslation(cn.movementX,cn.movementY);this._uiManager.dragSelectedEditors(bn,Tn)},window.addEventListener("pointermove",en,Kt));const sn=()=>{if(window.removeEventListener("pointerup",sn),window.removeEventListener("blur",sn),zt&&window.removeEventListener("pointermove",en,Kt),Wn(this,xt,!1),!this._uiManager.endDragSession()){const{isMac:cn}=ct.FeatureTest.platform;Dt.ctrlKey&&!cn||Dt.shiftKey||Dt.metaKey&&cn?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",sn),window.addEventListener("blur",sn)},An(jt,Ft),Hr(jt,"_borderLineWidth",-1),Hr(jt,"_colorManager",new ut.ColorManager),Hr(jt,"_zIndex",1),Hr(jt,"SMALL_EDITOR_SIZE",0);let ft=jt;at.AnnotationEditor=ft;class mt extends ft{constructor(Dt){super(Dt),this.annotationElementId=Dt.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(it,at,lt)=>{var bt,Ct,Et,kt,xt,$1,At,Tt,$t,Lt,Rt,Vv,Mt,Ht,Vt,Nt,Gt,tn,ln,nn,on,rn,Jt,Zt,Wt,jt,Bt,Dt,zt,Kt,en,sn,cn,bn,Tn,kn,In,Hn,Fn,wn,Mn,Dn,Un,Sn,On,Cn,Pn,Gv,Qn,P1,pr,R1,br,Hp,xn,L1,_n,I1,vn,Zo,Yn,Ru,Tr,Kv,er,Yv,ur,D1,yr,Lu,rr,M1;Object.defineProperty(at,"__esModule",{value:!0}),at.KeyboardManager=at.CommandManager=at.ColorManager=at.AnnotationEditorUIManager=void 0,at.bindEvents=dt,at.opacityToHex=ft;var ut=lt(1),ct=lt(6);function dt(yn,Qt,dn){for(const mn of dn)Qt.addEventListener(mn,yn[mn].bind(yn))}function ft(yn){return Math.round(Math.min(255,Math.max(1,255*yn))).toString(16).padStart(2,"0")}class mt{constructor(){An(this,bt,0)}getId(){return`${ut.AnnotationEditorPrefix}${$u(this,bt)._++}`}}bt=new WeakMap;const Ot=class Ot{constructor(){An(this,xt);An(this,Ct,(0,ut.getUuid)());An(this,Et,0);An(this,kt,null)}static get _isSVGFittingCanvas(){const Qt='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',mn=new OffscreenCanvas(1,3).getContext("2d"),Rn=new Image;Rn.src=Qt;const jn=Rn.decode().then(()=>(mn.drawImage(Rn,0,0,1,1,0,0,1,3),new Uint32Array(mn.getImageData(0,0,1,1).data.buffer)[0]===0));return(0,ut.shadow)(this,"_isSVGFittingCanvas",jn)}async getFromFile(Qt){const{lastModified:dn,name:mn,size:Rn,type:jn}=Qt;return Nn(this,xt,$1).call(this,`${dn}_${mn}_${Rn}_${jn}`,Qt)}async getFromUrl(Qt){return Nn(this,xt,$1).call(this,Qt,Qt)}async getFromId(Qt){Yt(this,kt)||Wn(this,kt,new Map);const dn=Yt(this,kt).get(Qt);return dn?dn.bitmap?(dn.refCounter+=1,dn):dn.file?this.getFromFile(dn.file):this.getFromUrl(dn.url):null}getSvgUrl(Qt){const dn=Yt(this,kt).get(Qt);return dn!=null&&dn.isSvg?dn.svgUrl:null}deleteId(Qt){Yt(this,kt)||Wn(this,kt,new Map);const dn=Yt(this,kt).get(Qt);dn&&(dn.refCounter-=1,dn.refCounter===0&&(dn.bitmap=null))}isValidId(Qt){return Qt.startsWith(`image_${Yt(this,Ct)}_`)}};Ct=new WeakMap,Et=new WeakMap,kt=new WeakMap,xt=new WeakSet,$1=async function(Qt,dn){Yt(this,kt)||Wn(this,kt,new Map);let mn=Yt(this,kt).get(Qt);if(mn===null)return null;if(mn!=null&&mn.bitmap)return mn.refCounter+=1,mn;try{mn||(mn={bitmap:null,id:`image_${Yt(this,Ct)}_${$u(this,Et)._++}`,refCounter:0,isSvg:!1});let Rn;if(typeof dn=="string"){mn.url=dn;const jn=await fetch(dn);if(!jn.ok)throw new Error(jn.statusText);Rn=await jn.blob()}else Rn=mn.file=dn;if(Rn.type==="image/svg+xml"){const jn=Ot._isSVGFittingCanvas,Vn=new FileReader,nr=new Image,cr=new Promise((Jn,Ar)=>{nr.onload=()=>{mn.bitmap=nr,mn.isSvg=!0,Jn()},Vn.onload=async()=>{const fr=mn.svgUrl=Vn.result;nr.src=await jn?`${fr}#svgView(preserveAspectRatio(none))`:fr},nr.onerror=Vn.onerror=Ar});Vn.readAsDataURL(Rn),await cr}else mn.bitmap=await createImageBitmap(Rn);mn.refCounter=1}catch(Rn){console.error(Rn),mn=null}return Yt(this,kt).set(Qt,mn),mn&&Yt(this,kt).set(mn.id,mn),mn};let pt=Ot;class gt{constructor(Qt=128){An(this,At,[]);An(this,Tt,!1);An(this,$t,void 0);An(this,Lt,-1);Wn(this,$t,Qt)}add({cmd:Qt,undo:dn,mustExec:mn,type:Rn=NaN,overwriteIfSameType:jn=!1,keepUndo:Vn=!1}){if(mn&&Qt(),Yt(this,Tt))return;const nr={cmd:Qt,undo:dn,type:Rn};if(Yt(this,Lt)===-1){Yt(this,At).length>0&&(Yt(this,At).length=0),Wn(this,Lt,0),Yt(this,At).push(nr);return}if(jn&&Yt(this,At)[Yt(this,Lt)].type===Rn){Vn&&(nr.undo=Yt(this,At)[Yt(this,Lt)].undo),Yt(this,At)[Yt(this,Lt)]=nr;return}const cr=Yt(this,Lt)+1;cr===Yt(this,$t)?Yt(this,At).splice(0,1):(Wn(this,Lt,cr),cr<Yt(this,At).length&&Yt(this,At).splice(cr)),Yt(this,At).push(nr)}undo(){Yt(this,Lt)!==-1&&(Wn(this,Tt,!0),Yt(this,At)[Yt(this,Lt)].undo(),Wn(this,Tt,!1),Wn(this,Lt,Yt(this,Lt)-1))}redo(){Yt(this,Lt)<Yt(this,At).length-1&&(Wn(this,Lt,Yt(this,Lt)+1),Wn(this,Tt,!0),Yt(this,At)[Yt(this,Lt)].cmd(),Wn(this,Tt,!1))}hasSomethingToUndo(){return Yt(this,Lt)!==-1}hasSomethingToRedo(){return Yt(this,Lt)<Yt(this,At).length-1}destroy(){Wn(this,At,null)}}At=new WeakMap,Tt=new WeakMap,$t=new WeakMap,Lt=new WeakMap,at.CommandManager=gt;class vt{constructor(Qt){An(this,Rt);this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:dn}=ut.FeatureTest.platform;for(const[mn,Rn,jn={}]of Qt)for(const Vn of mn){const nr=Vn.startsWith("mac+");dn&&nr?(this.callbacks.set(Vn.slice(4),{callback:Rn,options:jn}),this.allKeys.add(Vn.split("+").at(-1))):!dn&&!nr&&(this.callbacks.set(Vn,{callback:Rn,options:jn}),this.allKeys.add(Vn.split("+").at(-1)))}}exec(Qt,dn){if(!this.allKeys.has(dn.key))return;const mn=this.callbacks.get(Nn(this,Rt,Vv).call(this,dn));if(!mn)return;const{callback:Rn,options:{bubbles:jn=!1,args:Vn=[],checker:nr=null}}=mn;nr&&!nr(Qt,dn)||(Rn.bind(Qt,...Vn)(),jn||(dn.stopPropagation(),dn.preventDefault()))}}Rt=new WeakSet,Vv=function(Qt){Qt.altKey&&this.buffer.push("alt"),Qt.ctrlKey&&this.buffer.push("ctrl"),Qt.metaKey&&this.buffer.push("meta"),Qt.shiftKey&&this.buffer.push("shift"),this.buffer.push(Qt.key);const dn=this.buffer.join("+");return this.buffer.length=0,dn},at.KeyboardManager=vt;const Ft=class Ft{get _colors(){const Qt=new Map([["CanvasText",null],["Canvas",null]]);return(0,ct.getColorValues)(Qt),(0,ut.shadow)(this,"_colors",Qt)}convert(Qt){const dn=(0,ct.getRGB)(Qt);if(!window.matchMedia("(forced-colors: active)").matches)return dn;for(const[mn,Rn]of this._colors)if(Rn.every((jn,Vn)=>jn===dn[Vn]))return Ft._colorsMapping.get(mn);return dn}getHexCode(Qt){const dn=this._colors.get(Qt);return dn?ut.Util.makeHexColor(...dn):Qt}};Hr(Ft,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let wt=Ft;at.ColorManager=wt;const mr=class mr{constructor(Qt,dn,mn,Rn,jn,Vn){An(this,Pn);An(this,Qn);An(this,pr);An(this,br);An(this,xn);An(this,_n);An(this,vn);An(this,Yn);An(this,Tr);An(this,er);An(this,ur);An(this,yr);An(this,rr);An(this,Mt,null);An(this,Ht,new Map);An(this,Vt,new Map);An(this,Nt,null);An(this,Gt,null);An(this,tn,new gt);An(this,ln,0);An(this,nn,new Set);An(this,on,null);An(this,rn,null);An(this,Jt,new Set);An(this,Zt,null);An(this,Wt,new mt);An(this,jt,!1);An(this,Bt,!1);An(this,Dt,null);An(this,zt,ut.AnnotationEditorType.NONE);An(this,Kt,new Set);An(this,en,null);An(this,sn,this.blur.bind(this));An(this,cn,this.focus.bind(this));An(this,bn,this.copy.bind(this));An(this,Tn,this.cut.bind(this));An(this,kn,this.paste.bind(this));An(this,In,this.keydown.bind(this));An(this,Hn,this.onEditingAction.bind(this));An(this,Fn,this.onPageChanging.bind(this));An(this,wn,this.onScaleChanging.bind(this));An(this,Mn,this.onRotationChanging.bind(this));An(this,Dn,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1});An(this,Un,[0,0]);An(this,Sn,null);An(this,On,null);An(this,Cn,null);Wn(this,On,Qt),Wn(this,Cn,dn),Wn(this,Nt,mn),this._eventBus=Rn,this._eventBus._on("editingaction",Yt(this,Hn)),this._eventBus._on("pagechanging",Yt(this,Fn)),this._eventBus._on("scalechanging",Yt(this,wn)),this._eventBus._on("rotationchanging",Yt(this,Mn)),Wn(this,Gt,jn.annotationStorage),Wn(this,Zt,jn.filterFactory),Wn(this,en,Vn),this.viewParameters={realScale:ct.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}static get _keyboardManager(){const Qt=mr.prototype,dn=jn=>{const{activeElement:Vn}=document;return Vn&&Yt(jn,On).contains(Vn)&&jn.hasSomethingToControl()},mn=this.TRANSLATE_SMALL,Rn=this.TRANSLATE_BIG;return(0,ut.shadow)(this,"_keyboardManager",new vt([[["ctrl+a","mac+meta+a"],Qt.selectAll],[["ctrl+z","mac+meta+z"],Qt.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],Qt.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],Qt.delete],[["Escape","mac+Escape"],Qt.unselectAll],[["ArrowLeft","mac+ArrowLeft"],Qt.translateSelectedEditors,{args:[-mn,0],checker:dn}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],Qt.translateSelectedEditors,{args:[-Rn,0],checker:dn}],[["ArrowRight","mac+ArrowRight"],Qt.translateSelectedEditors,{args:[mn,0],checker:dn}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],Qt.translateSelectedEditors,{args:[Rn,0],checker:dn}],[["ArrowUp","mac+ArrowUp"],Qt.translateSelectedEditors,{args:[0,-mn],checker:dn}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],Qt.translateSelectedEditors,{args:[0,-Rn],checker:dn}],[["ArrowDown","mac+ArrowDown"],Qt.translateSelectedEditors,{args:[0,mn],checker:dn}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],Qt.translateSelectedEditors,{args:[0,Rn],checker:dn}]]))}destroy(){Nn(this,br,Hp).call(this),Nn(this,Qn,P1).call(this),this._eventBus._off("editingaction",Yt(this,Hn)),this._eventBus._off("pagechanging",Yt(this,Fn)),this._eventBus._off("scalechanging",Yt(this,wn)),this._eventBus._off("rotationchanging",Yt(this,Mn));for(const Qt of Yt(this,Vt).values())Qt.destroy();Yt(this,Vt).clear(),Yt(this,Ht).clear(),Yt(this,Jt).clear(),Wn(this,Mt,null),Yt(this,Kt).clear(),Yt(this,tn).destroy(),Yt(this,Nt).destroy()}get hcmFilter(){return(0,ut.shadow)(this,"hcmFilter",Yt(this,en)?Yt(this,Zt).addHCMFilter(Yt(this,en).foreground,Yt(this,en).background):"none")}get direction(){return(0,ut.shadow)(this,"direction",getComputedStyle(Yt(this,On)).direction)}editAltText(Qt){var dn;(dn=Yt(this,Nt))==null||dn.editAltText(this,Qt)}onPageChanging({pageNumber:Qt}){Wn(this,ln,Qt-1)}focusMainContainer(){Yt(this,On).focus()}findParent(Qt,dn){for(const mn of Yt(this,Vt).values()){const{x:Rn,y:jn,width:Vn,height:nr}=mn.div.getBoundingClientRect();if(Qt>=Rn&&Qt<=Rn+Vn&&dn>=jn&&dn<=jn+nr)return mn}return null}disableUserSelect(Qt=!1){Yt(this,Cn).classList.toggle("noUserSelect",Qt)}addShouldRescale(Qt){Yt(this,Jt).add(Qt)}removeShouldRescale(Qt){Yt(this,Jt).delete(Qt)}onScaleChanging({scale:Qt}){this.commitOrRemove(),this.viewParameters.realScale=Qt*ct.PixelsPerInch.PDF_TO_CSS_UNITS;for(const dn of Yt(this,Jt))dn.onScaleChanging()}onRotationChanging({pagesRotation:Qt}){this.commitOrRemove(),this.viewParameters.rotation=Qt}addToAnnotationStorage(Qt){!Qt.isEmpty()&&Yt(this,Gt)&&!Yt(this,Gt).has(Qt.id)&&Yt(this,Gt).setValue(Qt.id,Qt)}blur(){if(!this.hasSelection)return;const{activeElement:Qt}=document;for(const dn of Yt(this,Kt))if(dn.div.contains(Qt)){Wn(this,Dt,[dn,Qt]),dn._focusEventsAllowed=!1;break}}focus(){if(!Yt(this,Dt))return;const[Qt,dn]=Yt(this,Dt);Wn(this,Dt,null),dn.addEventListener("focusin",()=>{Qt._focusEventsAllowed=!0},{once:!0}),dn.focus()}addEditListeners(){Nn(this,pr,R1).call(this),Nn(this,xn,L1).call(this)}removeEditListeners(){Nn(this,br,Hp).call(this),Nn(this,_n,I1).call(this)}copy(Qt){var mn;if(Qt.preventDefault(),(mn=Yt(this,Mt))==null||mn.commitOrRemove(),!this.hasSelection)return;const dn=[];for(const Rn of Yt(this,Kt)){const jn=Rn.serialize(!0);jn&&dn.push(jn)}dn.length!==0&&Qt.clipboardData.setData("application/pdfjs",JSON.stringify(dn))}cut(Qt){this.copy(Qt),this.delete()}paste(Qt){Qt.preventDefault();const{clipboardData:dn}=Qt;for(const jn of dn.items)for(const Vn of Yt(this,rn))if(Vn.isHandlingMimeForPasting(jn.type)){Vn.paste(jn,this.currentLayer);return}let mn=dn.getData("application/pdfjs");if(!mn)return;try{mn=JSON.parse(mn)}catch(jn){(0,ut.warn)(`paste: "${jn.message}".`);return}if(!Array.isArray(mn))return;this.unselectAll();const Rn=this.currentLayer;try{const jn=[];for(const cr of mn){const Jn=Rn.deserialize(cr);if(!Jn)return;jn.push(Jn)}const Vn=()=>{for(const cr of jn)Nn(this,ur,D1).call(this,cr);Nn(this,rr,M1).call(this,jn)},nr=()=>{for(const cr of jn)cr.remove()};this.addCommands({cmd:Vn,undo:nr,mustExec:!0})}catch(jn){(0,ut.warn)(`paste: "${jn.message}".`)}}keydown(Qt){var dn;(dn=this.getActive())!=null&&dn.shouldGetKeyboardEvents()||mr._keyboardManager.exec(this,Qt)}onEditingAction(Qt){["undo","redo","delete","selectAll"].includes(Qt.name)&&this[Qt.name]()}setEditingState(Qt){Qt?(Nn(this,Pn,Gv).call(this),Nn(this,pr,R1).call(this),Nn(this,xn,L1).call(this),Nn(this,vn,Zo).call(this,{isEditing:Yt(this,zt)!==ut.AnnotationEditorType.NONE,isEmpty:Nn(this,yr,Lu).call(this),hasSomethingToUndo:Yt(this,tn).hasSomethingToUndo(),hasSomethingToRedo:Yt(this,tn).hasSomethingToRedo(),hasSelectedEditor:!1})):(Nn(this,Qn,P1).call(this),Nn(this,br,Hp).call(this),Nn(this,_n,I1).call(this),Nn(this,vn,Zo).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(Qt){if(!Yt(this,rn)){Wn(this,rn,Qt);for(const dn of Yt(this,rn))Nn(this,Yn,Ru).call(this,dn.defaultPropertiesToUpdate)}}getId(){return Yt(this,Wt).getId()}get currentLayer(){return Yt(this,Vt).get(Yt(this,ln))}getLayer(Qt){return Yt(this,Vt).get(Qt)}get currentPageIndex(){return Yt(this,ln)}addLayer(Qt){Yt(this,Vt).set(Qt.pageIndex,Qt),Yt(this,jt)?Qt.enable():Qt.disable()}removeLayer(Qt){Yt(this,Vt).delete(Qt.pageIndex)}updateMode(Qt,dn=null){if(Yt(this,zt)!==Qt){if(Wn(this,zt,Qt),Qt===ut.AnnotationEditorType.NONE){this.setEditingState(!1),Nn(this,er,Yv).call(this);return}this.setEditingState(!0),Nn(this,Tr,Kv).call(this),this.unselectAll();for(const mn of Yt(this,Vt).values())mn.updateMode(Qt);if(dn){for(const mn of Yt(this,Ht).values())if(mn.annotationElementId===dn){this.setSelected(mn),mn.enterInEditMode();break}}}}updateToolbar(Qt){Qt!==Yt(this,zt)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:Qt})}updateParams(Qt,dn){if(Yt(this,rn)){if(Qt===ut.AnnotationEditorParamsType.CREATE){this.currentLayer.addNewEditor(Qt);return}for(const mn of Yt(this,Kt))mn.updateParams(Qt,dn);for(const mn of Yt(this,rn))mn.updateDefaultParams(Qt,dn)}}enableWaiting(Qt=!1){if(Yt(this,Bt)!==Qt){Wn(this,Bt,Qt);for(const dn of Yt(this,Vt).values())Qt?dn.disableClick():dn.enableClick(),dn.div.classList.toggle("waiting",Qt)}}getEditors(Qt){const dn=[];for(const mn of Yt(this,Ht).values())mn.pageIndex===Qt&&dn.push(mn);return dn}getEditor(Qt){return Yt(this,Ht).get(Qt)}addEditor(Qt){Yt(this,Ht).set(Qt.id,Qt)}removeEditor(Qt){var dn;Yt(this,Ht).delete(Qt.id),this.unselect(Qt),(!Qt.annotationElementId||!Yt(this,nn).has(Qt.annotationElementId))&&((dn=Yt(this,Gt))==null||dn.remove(Qt.id))}addDeletedAnnotationElement(Qt){Yt(this,nn).add(Qt.annotationElementId),Qt.deleted=!0}isDeletedAnnotationElement(Qt){return Yt(this,nn).has(Qt)}removeDeletedAnnotationElement(Qt){Yt(this,nn).delete(Qt.annotationElementId),Qt.deleted=!1}setActiveEditor(Qt){Yt(this,Mt)!==Qt&&(Wn(this,Mt,Qt),Qt&&Nn(this,Yn,Ru).call(this,Qt.propertiesToUpdate))}toggleSelected(Qt){if(Yt(this,Kt).has(Qt)){Yt(this,Kt).delete(Qt),Qt.unselect(),Nn(this,vn,Zo).call(this,{hasSelectedEditor:this.hasSelection});return}Yt(this,Kt).add(Qt),Qt.select(),Nn(this,Yn,Ru).call(this,Qt.propertiesToUpdate),Nn(this,vn,Zo).call(this,{hasSelectedEditor:!0})}setSelected(Qt){for(const dn of Yt(this,Kt))dn!==Qt&&dn.unselect();Yt(this,Kt).clear(),Yt(this,Kt).add(Qt),Qt.select(),Nn(this,Yn,Ru).call(this,Qt.propertiesToUpdate),Nn(this,vn,Zo).call(this,{hasSelectedEditor:!0})}isSelected(Qt){return Yt(this,Kt).has(Qt)}unselect(Qt){Qt.unselect(),Yt(this,Kt).delete(Qt),Nn(this,vn,Zo).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return Yt(this,Kt).size!==0}undo(){Yt(this,tn).undo(),Nn(this,vn,Zo).call(this,{hasSomethingToUndo:Yt(this,tn).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:Nn(this,yr,Lu).call(this)})}redo(){Yt(this,tn).redo(),Nn(this,vn,Zo).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:Yt(this,tn).hasSomethingToRedo(),isEmpty:Nn(this,yr,Lu).call(this)})}addCommands(Qt){Yt(this,tn).add(Qt),Nn(this,vn,Zo).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:Nn(this,yr,Lu).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const Qt=[...Yt(this,Kt)],dn=()=>{for(const Rn of Qt)Rn.remove()},mn=()=>{for(const Rn of Qt)Nn(this,ur,D1).call(this,Rn)};this.addCommands({cmd:dn,undo:mn,mustExec:!0})}commitOrRemove(){var Qt;(Qt=Yt(this,Mt))==null||Qt.commitOrRemove()}hasSomethingToControl(){return Yt(this,Mt)||this.hasSelection}selectAll(){for(const Qt of Yt(this,Kt))Qt.commit();Nn(this,rr,M1).call(this,Yt(this,Ht).values())}unselectAll(){if(Yt(this,Mt)){Yt(this,Mt).commitOrRemove();return}if(this.hasSelection){for(const Qt of Yt(this,Kt))Qt.unselect();Yt(this,Kt).clear(),Nn(this,vn,Zo).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(Qt,dn,mn=!1){if(mn||this.commitOrRemove(),!this.hasSelection)return;Yt(this,Un)[0]+=Qt,Yt(this,Un)[1]+=dn;const[Rn,jn]=Yt(this,Un),Vn=[...Yt(this,Kt)],nr=1e3;Yt(this,Sn)&&clearTimeout(Yt(this,Sn)),Wn(this,Sn,setTimeout(()=>{Wn(this,Sn,null),Yt(this,Un)[0]=Yt(this,Un)[1]=0,this.addCommands({cmd:()=>{for(const cr of Vn)Yt(this,Ht).has(cr.id)&&cr.translateInPage(Rn,jn)},undo:()=>{for(const cr of Vn)Yt(this,Ht).has(cr.id)&&cr.translateInPage(-Rn,-jn)},mustExec:!1})},nr));for(const cr of Vn)cr.translateInPage(Qt,dn)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),Wn(this,on,new Map);for(const Qt of Yt(this,Kt))Yt(this,on).set(Qt,{savedX:Qt.x,savedY:Qt.y,savedPageIndex:Qt.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!Yt(this,on))return!1;this.disableUserSelect(!1);const Qt=Yt(this,on);Wn(this,on,null);let dn=!1;for(const[{x:Rn,y:jn,pageIndex:Vn},nr]of Qt)nr.newX=Rn,nr.newY=jn,nr.newPageIndex=Vn,dn||(dn=Rn!==nr.savedX||jn!==nr.savedY||Vn!==nr.savedPageIndex);if(!dn)return!1;const mn=(Rn,jn,Vn,nr)=>{if(Yt(this,Ht).has(Rn.id)){const cr=Yt(this,Vt).get(nr);cr?Rn._setParentAndPosition(cr,jn,Vn):(Rn.pageIndex=nr,Rn.x=jn,Rn.y=Vn)}};return this.addCommands({cmd:()=>{for(const[Rn,{newX:jn,newY:Vn,newPageIndex:nr}]of Qt)mn(Rn,jn,Vn,nr)},undo:()=>{for(const[Rn,{savedX:jn,savedY:Vn,savedPageIndex:nr}]of Qt)mn(Rn,jn,Vn,nr)},mustExec:!0}),!0}dragSelectedEditors(Qt,dn){if(Yt(this,on))for(const mn of Yt(this,on).keys())mn.drag(Qt,dn)}rebuild(Qt){if(Qt.parent===null){const dn=this.getLayer(Qt.pageIndex);dn?(dn.changeParent(Qt),dn.addOrRebuild(Qt)):(this.addEditor(Qt),this.addToAnnotationStorage(Qt),Qt.rebuild())}else Qt.parent.addOrRebuild(Qt)}isActive(Qt){return Yt(this,Mt)===Qt}getActive(){return Yt(this,Mt)}getMode(){return Yt(this,zt)}get imageManager(){return(0,ut.shadow)(this,"imageManager",new pt)}};Mt=new WeakMap,Ht=new WeakMap,Vt=new WeakMap,Nt=new WeakMap,Gt=new WeakMap,tn=new WeakMap,ln=new WeakMap,nn=new WeakMap,on=new WeakMap,rn=new WeakMap,Jt=new WeakMap,Zt=new WeakMap,Wt=new WeakMap,jt=new WeakMap,Bt=new WeakMap,Dt=new WeakMap,zt=new WeakMap,Kt=new WeakMap,en=new WeakMap,sn=new WeakMap,cn=new WeakMap,bn=new WeakMap,Tn=new WeakMap,kn=new WeakMap,In=new WeakMap,Hn=new WeakMap,Fn=new WeakMap,wn=new WeakMap,Mn=new WeakMap,Dn=new WeakMap,Un=new WeakMap,Sn=new WeakMap,On=new WeakMap,Cn=new WeakMap,Pn=new WeakSet,Gv=function(){window.addEventListener("focus",Yt(this,cn)),window.addEventListener("blur",Yt(this,sn))},Qn=new WeakSet,P1=function(){window.removeEventListener("focus",Yt(this,cn)),window.removeEventListener("blur",Yt(this,sn))},pr=new WeakSet,R1=function(){window.addEventListener("keydown",Yt(this,In),{capture:!0})},br=new WeakSet,Hp=function(){window.removeEventListener("keydown",Yt(this,In),{capture:!0})},xn=new WeakSet,L1=function(){document.addEventListener("copy",Yt(this,bn)),document.addEventListener("cut",Yt(this,Tn)),document.addEventListener("paste",Yt(this,kn))},_n=new WeakSet,I1=function(){document.removeEventListener("copy",Yt(this,bn)),document.removeEventListener("cut",Yt(this,Tn)),document.removeEventListener("paste",Yt(this,kn))},vn=new WeakSet,Zo=function(Qt){Object.entries(Qt).some(([mn,Rn])=>Yt(this,Dn)[mn]!==Rn)&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(Yt(this,Dn),Qt)})},Yn=new WeakSet,Ru=function(Qt){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:Qt})},Tr=new WeakSet,Kv=function(){if(!Yt(this,jt)){Wn(this,jt,!0);for(const Qt of Yt(this,Vt).values())Qt.enable()}},er=new WeakSet,Yv=function(){if(this.unselectAll(),Yt(this,jt)){Wn(this,jt,!1);for(const Qt of Yt(this,Vt).values())Qt.disable()}},ur=new WeakSet,D1=function(Qt){const dn=Yt(this,Vt).get(Qt.pageIndex);dn?dn.addOrRebuild(Qt):this.addEditor(Qt)},yr=new WeakSet,Lu=function(){if(Yt(this,Ht).size===0)return!0;if(Yt(this,Ht).size===1)for(const Qt of Yt(this,Ht).values())return Qt.isEmpty();return!1},rr=new WeakSet,M1=function(Qt){Yt(this,Kt).clear();for(const dn of Qt)dn.isEmpty()||(Yt(this,Kt).add(dn),dn.select());Nn(this,vn,Zo).call(this,{hasSelectedEditor:!0})},Hr(mr,"TRANSLATE_SMALL",1),Hr(mr,"TRANSLATE_BIG",10);let yt=mr;at.AnnotationEditorUIManager=yt},(it,at,lt)=>{var ln,nn,on,rn,Jt,Zt,Wt,jt,Bt,Dt,zt,Kt,Wl,sn,Vl,bn,N1,kn,zp,Hn,Wp,wn,Iu,Dn,Du;Object.defineProperty(at,"__esModule",{value:!0}),at.StatTimer=at.RenderingCancelledException=at.PixelsPerInch=at.PageViewport=at.PDFDateString=at.DOMStandardFontDataFactory=at.DOMSVGFactory=at.DOMFilterFactory=at.DOMCanvasFactory=at.DOMCMapReaderFactory=void 0,at.deprecated=Lt,at.getColorValues=Ht,at.getCurrentTransform=Vt,at.getCurrentTransformInverse=Nt,at.getFilenameFromUrl=xt,at.getPdfFilenameFromUrl=St,at.getRGB=Mt,at.getXfaPageViewport=Ft,at.isDataScheme=Et,at.isPdfFile=kt,at.isValidFetchUrl=At,at.loadScript=$t,at.noContextMenu=Tt,at.setLayerDimensions=Gt;var ut=lt(7),ct=lt(1);const dt="http://www.w3.org/2000/svg",tn=class tn{};Hr(tn,"CSS",96),Hr(tn,"PDF",72),Hr(tn,"PDF_TO_CSS_UNITS",tn.CSS/tn.PDF);let ft=tn;at.PixelsPerInch=ft;class mt extends ut.BaseFilterFactory{constructor({docId:Cn,ownerDocument:Pn=globalThis.document}={}){super();An(this,Kt);An(this,sn);An(this,bn);An(this,kn);An(this,Hn);An(this,wn);An(this,Dn);An(this,ln,void 0);An(this,nn,void 0);An(this,on,void 0);An(this,rn,void 0);An(this,Jt,void 0);An(this,Zt,void 0);An(this,Wt,void 0);An(this,jt,void 0);An(this,Bt,void 0);An(this,Dt,void 0);An(this,zt,0);Wn(this,on,Cn),Wn(this,rn,Pn)}addFilter(Cn){if(!Cn)return"none";let Pn=Yt(this,Kt,Wl).get(Cn);if(Pn)return Pn;let Xn,Qn,sr,pr;if(Cn.length===1){const xn=Cn[0],Kn=new Array(256);for(let _n=0;_n<256;_n++)Kn[_n]=xn[_n]/255;pr=Xn=Qn=sr=Kn.join(",")}else{const[xn,Kn,_n]=Cn,gn=new Array(256),vn=new Array(256),qn=new Array(256);for(let Yn=0;Yn<256;Yn++)gn[Yn]=xn[Yn]/255,vn[Yn]=Kn[Yn]/255,qn[Yn]=_n[Yn]/255;Xn=gn.join(","),Qn=vn.join(","),sr=qn.join(","),pr=`${Xn}${Qn}${sr}`}if(Pn=Yt(this,Kt,Wl).get(pr),Pn)return Yt(this,Kt,Wl).set(Cn,Pn),Pn;const or=`g_${Yt(this,on)}_transfer_map_${$u(this,zt)._++}`,br=`url(#${or})`;Yt(this,Kt,Wl).set(Cn,br),Yt(this,Kt,Wl).set(pr,br);const fn=Nn(this,kn,zp).call(this,or);return Nn(this,wn,Iu).call(this,Xn,Qn,sr,fn),br}addHCMFilter(Cn,Pn){var Kn;const Xn=`${Cn}-${Pn}`;if(Yt(this,Zt)===Xn)return Yt(this,Wt);if(Wn(this,Zt,Xn),Wn(this,Wt,"none"),(Kn=Yt(this,Jt))==null||Kn.remove(),!Cn||!Pn)return Yt(this,Wt);const Qn=Nn(this,Dn,Du).call(this,Cn);Cn=ct.Util.makeHexColor(...Qn);const sr=Nn(this,Dn,Du).call(this,Pn);if(Pn=ct.Util.makeHexColor(...sr),Yt(this,sn,Vl).style.color="",Cn==="#000000"&&Pn==="#ffffff"||Cn===Pn)return Yt(this,Wt);const pr=new Array(256);for(let _n=0;_n<=255;_n++){const gn=_n/255;pr[_n]=gn<=.03928?gn/12.92:((gn+.055)/1.055)**2.4}const or=pr.join(","),br=`g_${Yt(this,on)}_hcm_filter`,fn=Wn(this,jt,Nn(this,kn,zp).call(this,br));Nn(this,wn,Iu).call(this,or,or,or,fn),Nn(this,bn,N1).call(this,fn);const xn=(_n,gn)=>{const vn=Qn[_n]/255,qn=sr[_n]/255,Yn=new Array(gn+1);for(let Sr=0;Sr<=gn;Sr++)Yn[Sr]=vn+Sr/gn*(qn-vn);return Yn.join(",")};return Nn(this,wn,Iu).call(this,xn(0,5),xn(1,5),xn(2,5),fn),Wn(this,Wt,`url(#${br})`),Yt(this,Wt)}addHighlightHCMFilter(Cn,Pn,Xn,Qn){var qn;const sr=`${Cn}-${Pn}-${Xn}-${Qn}`;if(Yt(this,Bt)===sr)return Yt(this,Dt);if(Wn(this,Bt,sr),Wn(this,Dt,"none"),(qn=Yt(this,jt))==null||qn.remove(),!Cn||!Pn)return Yt(this,Dt);const[pr,or]=[Cn,Pn].map(Nn(this,Dn,Du).bind(this));let br=Math.round(.2126*pr[0]+.7152*pr[1]+.0722*pr[2]),fn=Math.round(.2126*or[0]+.7152*or[1]+.0722*or[2]),[xn,Kn]=[Xn,Qn].map(Nn(this,Dn,Du).bind(this));fn<br&&([br,fn,xn,Kn]=[fn,br,Kn,xn]),Yt(this,sn,Vl).style.color="";const _n=(Yn,Sr,Tr)=>{const Ln=new Array(256),er=(fn-br)/Tr,hr=Yn/255,ur=(Sr-Yn)/(255*Tr);let _r=0;for(let yr=0;yr<=Tr;yr++){const Rr=Math.round(br+yr*er),rr=hr+yr*ur;for(let $r=_r;$r<=Rr;$r++)Ln[$r]=rr;_r=Rr+1}for(let yr=_r;yr<256;yr++)Ln[yr]=Ln[_r-1];return Ln.join(",")},gn=`g_${Yt(this,on)}_hcm_highlight_filter`,vn=Wn(this,jt,Nn(this,kn,zp).call(this,gn));return Nn(this,bn,N1).call(this,vn),Nn(this,wn,Iu).call(this,_n(xn[0],Kn[0],5),_n(xn[1],Kn[1],5),_n(xn[2],Kn[2],5),vn),Wn(this,Dt,`url(#${gn})`),Yt(this,Dt)}destroy(Cn=!1){Cn&&(Yt(this,Wt)||Yt(this,Dt))||(Yt(this,nn)&&(Yt(this,nn).parentNode.parentNode.remove(),Wn(this,nn,null)),Yt(this,ln)&&(Yt(this,ln).clear(),Wn(this,ln,null)),Wn(this,zt,0))}}ln=new WeakMap,nn=new WeakMap,on=new WeakMap,rn=new WeakMap,Jt=new WeakMap,Zt=new WeakMap,Wt=new WeakMap,jt=new WeakMap,Bt=new WeakMap,Dt=new WeakMap,zt=new WeakMap,Kt=new WeakSet,Wl=function(){return Yt(this,ln)||Wn(this,ln,new Map)},sn=new WeakSet,Vl=function(){if(!Yt(this,nn)){const Cn=Yt(this,rn).createElement("div"),{style:Pn}=Cn;Pn.visibility="hidden",Pn.contain="strict",Pn.width=Pn.height=0,Pn.position="absolute",Pn.top=Pn.left=0,Pn.zIndex=-1;const Xn=Yt(this,rn).createElementNS(dt,"svg");Xn.setAttribute("width",0),Xn.setAttribute("height",0),Wn(this,nn,Yt(this,rn).createElementNS(dt,"defs")),Cn.append(Xn),Xn.append(Yt(this,nn)),Yt(this,rn).body.append(Cn)}return Yt(this,nn)},bn=new WeakSet,N1=function(Cn){const Pn=Yt(this,rn).createElementNS(dt,"feColorMatrix");Pn.setAttribute("type","matrix"),Pn.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),Cn.append(Pn)},kn=new WeakSet,zp=function(Cn){const Pn=Yt(this,rn).createElementNS(dt,"filter");return Pn.setAttribute("color-interpolation-filters","sRGB"),Pn.setAttribute("id",Cn),Yt(this,sn,Vl).append(Pn),Pn},Hn=new WeakSet,Wp=function(Cn,Pn,Xn){const Qn=Yt(this,rn).createElementNS(dt,Pn);Qn.setAttribute("type","discrete"),Qn.setAttribute("tableValues",Xn),Cn.append(Qn)},wn=new WeakSet,Iu=function(Cn,Pn,Xn,Qn){const sr=Yt(this,rn).createElementNS(dt,"feComponentTransfer");Qn.append(sr),Nn(this,Hn,Wp).call(this,sr,"feFuncR",Cn),Nn(this,Hn,Wp).call(this,sr,"feFuncG",Pn),Nn(this,Hn,Wp).call(this,sr,"feFuncB",Xn)},Dn=new WeakSet,Du=function(Cn){return Yt(this,sn,Vl).style.color=Cn,Mt(getComputedStyle(Yt(this,sn,Vl)).getPropertyValue("color"))},at.DOMFilterFactory=mt;class pt extends ut.BaseCanvasFactory{constructor({ownerDocument:On=globalThis.document}={}){super(),this._document=On}_createCanvas(On,Cn){const Pn=this._document.createElement("canvas");return Pn.width=On,Pn.height=Cn,Pn}}at.DOMCanvasFactory=pt;async function gt(Sn,On=!1){if(At(Sn,document.baseURI)){const Cn=await fetch(Sn);if(!Cn.ok)throw new Error(Cn.statusText);return On?new Uint8Array(await Cn.arrayBuffer()):(0,ct.stringToBytes)(await Cn.text())}return new Promise((Cn,Pn)=>{const Xn=new XMLHttpRequest;Xn.open("GET",Sn,!0),On&&(Xn.responseType="arraybuffer"),Xn.onreadystatechange=()=>{if(Xn.readyState===XMLHttpRequest.DONE){if(Xn.status===200||Xn.status===0){let Qn;if(On&&Xn.response?Qn=new Uint8Array(Xn.response):!On&&Xn.responseText&&(Qn=(0,ct.stringToBytes)(Xn.responseText)),Qn){Cn(Qn);return}}Pn(new Error(Xn.statusText))}},Xn.send(null)})}class vt extends ut.BaseCMapReaderFactory{_fetchData(On,Cn){return gt(On,this.isCompressed).then(Pn=>({cMapData:Pn,compressionType:Cn}))}}at.DOMCMapReaderFactory=vt;class wt extends ut.BaseStandardFontDataFactory{_fetchData(On){return gt(On,!0)}}at.DOMStandardFontDataFactory=wt;class yt extends ut.BaseSVGFactory{_createSVG(On){return document.createElementNS(dt,On)}}at.DOMSVGFactory=yt;class bt{constructor({viewBox:On,scale:Cn,rotation:Pn,offsetX:Xn=0,offsetY:Qn=0,dontFlip:sr=!1}){this.viewBox=On,this.scale=Cn,this.rotation=Pn,this.offsetX=Xn,this.offsetY=Qn;const pr=(On[2]+On[0])/2,or=(On[3]+On[1])/2;let br,fn,xn,Kn;switch(Pn%=360,Pn<0&&(Pn+=360),Pn){case 180:br=-1,fn=0,xn=0,Kn=1;break;case 90:br=0,fn=1,xn=1,Kn=0;break;case 270:br=0,fn=-1,xn=-1,Kn=0;break;case 0:br=1,fn=0,xn=0,Kn=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}sr&&(xn=-xn,Kn=-Kn);let _n,gn,vn,qn;br===0?(_n=Math.abs(or-On[1])*Cn+Xn,gn=Math.abs(pr-On[0])*Cn+Qn,vn=(On[3]-On[1])*Cn,qn=(On[2]-On[0])*Cn):(_n=Math.abs(pr-On[0])*Cn+Xn,gn=Math.abs(or-On[1])*Cn+Qn,vn=(On[2]-On[0])*Cn,qn=(On[3]-On[1])*Cn),this.transform=[br*Cn,fn*Cn,xn*Cn,Kn*Cn,_n-br*Cn*pr-xn*Cn*or,gn-fn*Cn*pr-Kn*Cn*or],this.width=vn,this.height=qn}get rawDims(){const{viewBox:On}=this;return(0,ct.shadow)(this,"rawDims",{pageWidth:On[2]-On[0],pageHeight:On[3]-On[1],pageX:On[0],pageY:On[1]})}clone({scale:On=this.scale,rotation:Cn=this.rotation,offsetX:Pn=this.offsetX,offsetY:Xn=this.offsetY,dontFlip:Qn=!1}={}){return new bt({viewBox:this.viewBox.slice(),scale:On,rotation:Cn,offsetX:Pn,offsetY:Xn,dontFlip:Qn})}convertToViewportPoint(On,Cn){return ct.Util.applyTransform([On,Cn],this.transform)}convertToViewportRectangle(On){const Cn=ct.Util.applyTransform([On[0],On[1]],this.transform),Pn=ct.Util.applyTransform([On[2],On[3]],this.transform);return[Cn[0],Cn[1],Pn[0],Pn[1]]}convertToPdfPoint(On,Cn){return ct.Util.applyInverseTransform([On,Cn],this.transform)}}at.PageViewport=bt;class Ct extends ct.BaseException{constructor(On,Cn=0){super(On,"RenderingCancelledException"),this.extraDelay=Cn}}at.RenderingCancelledException=Ct;function Et(Sn){const On=Sn.length;let Cn=0;for(;Cn<On&&Sn[Cn].trim()==="";)Cn++;return Sn.substring(Cn,Cn+5).toLowerCase()==="data:"}function kt(Sn){return typeof Sn=="string"&&/\.pdf$/i.test(Sn)}function xt(Sn,On=!1){return On||([Sn]=Sn.split(/[#?]/,1)),Sn.substring(Sn.lastIndexOf("/")+1)}function St(Sn,On="document.pdf"){if(typeof Sn!="string")return On;if(Et(Sn))return(0,ct.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),On;const Cn=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,Pn=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,Xn=Cn.exec(Sn);let Qn=Pn.exec(Xn[1])||Pn.exec(Xn[2])||Pn.exec(Xn[3]);if(Qn&&(Qn=Qn[0],Qn.includes("%")))try{Qn=Pn.exec(decodeURIComponent(Qn))[0]}catch{}return Qn||On}class Ot{constructor(){Hr(this,"started",Object.create(null));Hr(this,"times",[])}time(On){On in this.started&&(0,ct.warn)(`Timer is already running for ${On}`),this.started[On]=Date.now()}timeEnd(On){On in this.started||(0,ct.warn)(`Timer has not been started for ${On}`),this.times.push({name:On,start:this.started[On],end:Date.now()}),delete this.started[On]}toString(){const On=[];let Cn=0;for(const{name:Pn}of this.times)Cn=Math.max(Pn.length,Cn);for(const{name:Pn,start:Xn,end:Qn}of this.times)On.push(`${Pn.padEnd(Cn)} ${Qn-Xn}ms
`);return On.join("")}}at.StatTimer=Ot;function At(Sn,On){try{const{protocol:Cn}=On?new URL(Sn,On):new URL(Sn);return Cn==="http:"||Cn==="https:"}catch{return!1}}function Tt(Sn){Sn.preventDefault()}function $t(Sn,On=!1){return new Promise((Cn,Pn)=>{const Xn=document.createElement("script");Xn.src=Sn,Xn.onload=function(Qn){On&&Xn.remove(),Cn(Qn)},Xn.onerror=function(){Pn(new Error(`Cannot load script at: ${Xn.src}`))},(document.head||document.documentElement).append(Xn)})}function Lt(Sn){console.log("Deprecated API usage: "+Sn)}let Rt;class It{static toDateObject(On){if(!On||typeof On!="string")return null;Rt||(Rt=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const Cn=Rt.exec(On);if(!Cn)return null;const Pn=parseInt(Cn[1],10);let Xn=parseInt(Cn[2],10);Xn=Xn>=1&&Xn<=12?Xn-1:0;let Qn=parseInt(Cn[3],10);Qn=Qn>=1&&Qn<=31?Qn:1;let sr=parseInt(Cn[4],10);sr=sr>=0&&sr<=23?sr:0;let pr=parseInt(Cn[5],10);pr=pr>=0&&pr<=59?pr:0;let or=parseInt(Cn[6],10);or=or>=0&&or<=59?or:0;const br=Cn[7]||"Z";let fn=parseInt(Cn[8],10);fn=fn>=0&&fn<=23?fn:0;let xn=parseInt(Cn[9],10)||0;return xn=xn>=0&&xn<=59?xn:0,br==="-"?(sr+=fn,pr+=xn):br==="+"&&(sr-=fn,pr-=xn),new Date(Date.UTC(Pn,Xn,Qn,sr,pr,or))}}at.PDFDateString=It;function Ft(Sn,{scale:On=1,rotation:Cn=0}){const{width:Pn,height:Xn}=Sn.attributes.style,Qn=[0,0,parseInt(Pn),parseInt(Xn)];return new bt({viewBox:Qn,scale:On,rotation:Cn})}function Mt(Sn){if(Sn.startsWith("#")){const On=parseInt(Sn.slice(1),16);return[(On&16711680)>>16,(On&65280)>>8,On&255]}return Sn.startsWith("rgb(")?Sn.slice(4,-1).split(",").map(On=>parseInt(On)):Sn.startsWith("rgba(")?Sn.slice(5,-1).split(",").map(On=>parseInt(On)).slice(0,3):((0,ct.warn)(`Not a valid color format: "${Sn}"`),[0,0,0])}function Ht(Sn){const On=document.createElement("span");On.style.visibility="hidden",document.body.append(On);for(const Cn of Sn.keys()){On.style.color=Cn;const Pn=window.getComputedStyle(On).color;Sn.set(Cn,Mt(Pn))}On.remove()}function Vt(Sn){const{a:On,b:Cn,c:Pn,d:Xn,e:Qn,f:sr}=Sn.getTransform();return[On,Cn,Pn,Xn,Qn,sr]}function Nt(Sn){const{a:On,b:Cn,c:Pn,d:Xn,e:Qn,f:sr}=Sn.getTransform().invertSelf();return[On,Cn,Pn,Xn,Qn,sr]}function Gt(Sn,On,Cn=!1,Pn=!0){if(On instanceof bt){const{pageWidth:Xn,pageHeight:Qn}=On.rawDims,{style:sr}=Sn,pr=ct.FeatureTest.isCSSRoundSupported,or=`var(--scale-factor) * ${Xn}px`,br=`var(--scale-factor) * ${Qn}px`,fn=pr?`round(${or}, 1px)`:`calc(${or})`,xn=pr?`round(${br}, 1px)`:`calc(${br})`;!Cn||On.rotation%180===0?(sr.width=fn,sr.height=xn):(sr.width=xn,sr.height=fn)}Pn&&Sn.setAttribute("data-main-rotation",On.rotation)}},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.BaseStandardFontDataFactory=at.BaseSVGFactory=at.BaseFilterFactory=at.BaseCanvasFactory=at.BaseCMapReaderFactory=void 0;var ut=lt(1);class ct{constructor(){this.constructor===ct&&(0,ut.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(vt){return"none"}addHCMFilter(vt,wt){return"none"}addHighlightHCMFilter(vt,wt,yt,bt){return"none"}destroy(vt=!1){}}at.BaseFilterFactory=ct;class dt{constructor(){this.constructor===dt&&(0,ut.unreachable)("Cannot initialize BaseCanvasFactory.")}create(vt,wt){if(vt<=0||wt<=0)throw new Error("Invalid canvas size");const yt=this._createCanvas(vt,wt);return{canvas:yt,context:yt.getContext("2d")}}reset(vt,wt,yt){if(!vt.canvas)throw new Error("Canvas is not specified");if(wt<=0||yt<=0)throw new Error("Invalid canvas size");vt.canvas.width=wt,vt.canvas.height=yt}destroy(vt){if(!vt.canvas)throw new Error("Canvas is not specified");vt.canvas.width=0,vt.canvas.height=0,vt.canvas=null,vt.context=null}_createCanvas(vt,wt){(0,ut.unreachable)("Abstract method `_createCanvas` called.")}}at.BaseCanvasFactory=dt;class ft{constructor({baseUrl:vt=null,isCompressed:wt=!0}){this.constructor===ft&&(0,ut.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=vt,this.isCompressed=wt}async fetch({name:vt}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!vt)throw new Error("CMap name must be specified.");const wt=this.baseUrl+vt+(this.isCompressed?".bcmap":""),yt=this.isCompressed?ut.CMapCompressionType.BINARY:ut.CMapCompressionType.NONE;return this._fetchData(wt,yt).catch(bt=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${wt}`)})}_fetchData(vt,wt){(0,ut.unreachable)("Abstract method `_fetchData` called.")}}at.BaseCMapReaderFactory=ft;class mt{constructor({baseUrl:vt=null}){this.constructor===mt&&(0,ut.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=vt}async fetch({filename:vt}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!vt)throw new Error("Font filename must be specified.");const wt=`${this.baseUrl}${vt}`;return this._fetchData(wt).catch(yt=>{throw new Error(`Unable to load font data at: ${wt}`)})}_fetchData(vt){(0,ut.unreachable)("Abstract method `_fetchData` called.")}}at.BaseStandardFontDataFactory=mt;class pt{constructor(){this.constructor===pt&&(0,ut.unreachable)("Cannot initialize BaseSVGFactory.")}create(vt,wt,yt=!1){if(vt<=0||wt<=0)throw new Error("Invalid SVG dimensions");const bt=this._createSVG("svg:svg");return bt.setAttribute("version","1.1"),yt||(bt.setAttribute("width",`${vt}px`),bt.setAttribute("height",`${wt}px`)),bt.setAttribute("preserveAspectRatio","none"),bt.setAttribute("viewBox",`0 0 ${vt} ${wt}`),bt}createElement(vt){if(typeof vt!="string")throw new Error("Invalid SVG element type");return this._createSVG(vt)}_createSVG(vt){(0,ut.unreachable)("Abstract method `_createSVG` called.")}}at.BaseSVGFactory=pt},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.MurmurHash3_64=void 0;var ut=lt(1);const ct=3285377520,dt=4294901760,ft=65535;class mt{constructor(gt){this.h1=gt?gt&4294967295:ct,this.h2=gt?gt&4294967295:ct}update(gt){let vt,wt;if(typeof gt=="string"){vt=new Uint8Array(gt.length*2),wt=0;for(let Lt=0,Rt=gt.length;Lt<Rt;Lt++){const It=gt.charCodeAt(Lt);It<=255?vt[wt++]=It:(vt[wt++]=It>>>8,vt[wt++]=It&255)}}else if((0,ut.isArrayBuffer)(gt))vt=gt.slice(),wt=vt.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const yt=wt>>2,bt=wt-yt*4,Ct=new Uint32Array(vt.buffer,0,yt);let Et=0,kt=0,xt=this.h1,St=this.h2;const Ot=3432918353,At=461845907,Tt=Ot&ft,$t=At&ft;for(let Lt=0;Lt<yt;Lt++)Lt&1?(Et=Ct[Lt],Et=Et*Ot&dt|Et*Tt&ft,Et=Et<<15|Et>>>17,Et=Et*At&dt|Et*$t&ft,xt^=Et,xt=xt<<13|xt>>>19,xt=xt*5+3864292196):(kt=Ct[Lt],kt=kt*Ot&dt|kt*Tt&ft,kt=kt<<15|kt>>>17,kt=kt*At&dt|kt*$t&ft,St^=kt,St=St<<13|St>>>19,St=St*5+3864292196);switch(Et=0,bt){case 3:Et^=vt[yt*4+2]<<16;case 2:Et^=vt[yt*4+1]<<8;case 1:Et^=vt[yt*4],Et=Et*Ot&dt|Et*Tt&ft,Et=Et<<15|Et>>>17,Et=Et*At&dt|Et*$t&ft,yt&1?xt^=Et:St^=Et}this.h1=xt,this.h2=St}hexdigest(){let gt=this.h1,vt=this.h2;return gt^=vt>>>1,gt=gt*3981806797&dt|gt*36045&ft,vt=vt*4283543511&dt|((vt<<16|gt>>>16)*2950163797&dt)>>>16,gt^=vt>>>1,gt=gt*444984403&dt|gt*60499&ft,vt=vt*3301882366&dt|((vt<<16|gt>>>16)*3120437893&dt)>>>16,gt^=vt>>>1,(gt>>>0).toString(16).padStart(8,"0")+(vt>>>0).toString(16).padStart(8,"0")}}at.MurmurHash3_64=mt},(it,at,lt)=>{var ft;Object.defineProperty(at,"__esModule",{value:!0}),at.FontLoader=at.FontFaceObject=void 0;var ut=lt(1);class ct{constructor({ownerDocument:pt=globalThis.document,styleElement:gt=null}){An(this,ft,new Set);this._document=pt,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(pt){this.nativeFontFaces.add(pt),this._document.fonts.add(pt)}removeNativeFontFace(pt){this.nativeFontFaces.delete(pt),this._document.fonts.delete(pt)}insertRule(pt){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const gt=this.styleElement.sheet;gt.insertRule(pt,gt.cssRules.length)}clear(){for(const pt of this.nativeFontFaces)this._document.fonts.delete(pt);this.nativeFontFaces.clear(),Yt(this,ft).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(pt){if(!(!pt||Yt(this,ft).has(pt.loadedName))){if((0,ut.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:gt,src:vt,style:wt}=pt,yt=new FontFace(gt,vt,wt);this.addNativeFontFace(yt);try{await yt.load(),Yt(this,ft).add(gt)}catch{(0,ut.warn)(`Cannot load system font: ${pt.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(yt)}return}(0,ut.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(pt){if(pt.attached||pt.missingFile&&!pt.systemFontInfo)return;if(pt.attached=!0,pt.systemFontInfo){await this.loadSystemFont(pt.systemFontInfo);return}if(this.isFontLoadingAPISupported){const vt=pt.createNativeFontFace();if(vt){this.addNativeFontFace(vt);try{await vt.loaded}catch(wt){throw(0,ut.warn)(`Failed to load font '${vt.family}': '${wt}'.`),pt.disableFontFace=!0,wt}}return}const gt=pt.createFontFaceRule();if(gt){if(this.insertRule(gt),this.isSyncFontLoadingSupported)return;await new Promise(vt=>{const wt=this._queueLoadingCallback(vt);this._prepareFontLoadEvent(pt,wt)})}}get isFontLoadingAPISupported(){var gt;const pt=!!((gt=this._document)!=null&&gt.fonts);return(0,ut.shadow)(this,"isFontLoadingAPISupported",pt)}get isSyncFontLoadingSupported(){let pt=!1;return(ut.isNodeJS||typeof navigator<"u"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(pt=!0),(0,ut.shadow)(this,"isSyncFontLoadingSupported",pt)}_queueLoadingCallback(pt){function gt(){for((0,ut.assert)(!wt.done,"completeRequest() cannot be called twice."),wt.done=!0;vt.length>0&&vt[0].done;){const yt=vt.shift();setTimeout(yt.callback,0)}}const{loadingRequests:vt}=this,wt={done:!1,complete:gt,callback:pt};return vt.push(wt),wt}get _loadTestFont(){const pt=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,ut.shadow)(this,"_loadTestFont",pt)}_prepareFontLoadEvent(pt,gt){function vt(Mt,Ht){return Mt.charCodeAt(Ht)<<24|Mt.charCodeAt(Ht+1)<<16|Mt.charCodeAt(Ht+2)<<8|Mt.charCodeAt(Ht+3)&255}function wt(Mt,Ht,Vt,Nt){const Gt=Mt.substring(0,Ht),tn=Mt.substring(Ht+Vt);return Gt+Nt+tn}let yt,bt;const Ct=this._document.createElement("canvas");Ct.width=1,Ct.height=1;const Et=Ct.getContext("2d");let kt=0;function xt(Mt,Ht){if(++kt>30){(0,ut.warn)("Load test font never loaded."),Ht();return}if(Et.font="30px "+Mt,Et.fillText(".",0,20),Et.getImageData(0,0,1,1).data[3]>0){Ht();return}setTimeout(xt.bind(null,Mt,Ht))}const St=`lt${Date.now()}${this.loadTestFontId++}`;let Ot=this._loadTestFont;Ot=wt(Ot,976,St.length,St);const Tt=16,$t=1482184792;let Lt=vt(Ot,Tt);for(yt=0,bt=St.length-3;yt<bt;yt+=4)Lt=Lt-$t+vt(St,yt)|0;yt<St.length&&(Lt=Lt-$t+vt(St+"XXX",yt)|0),Ot=wt(Ot,Tt,4,(0,ut.string32)(Lt));const Rt=`url(data:font/opentype;base64,${btoa(Ot)});`,It=`@font-face {font-family:"${St}";src:${Rt}}`;this.insertRule(It);const Ft=this._document.createElement("div");Ft.style.visibility="hidden",Ft.style.width=Ft.style.height="10px",Ft.style.position="absolute",Ft.style.top=Ft.style.left="0px";for(const Mt of[pt.loadedName,St]){const Ht=this._document.createElement("span");Ht.textContent="Hi",Ht.style.fontFamily=Mt,Ft.append(Ht)}this._document.body.append(Ft),xt(St,()=>{Ft.remove(),gt.complete()})}}ft=new WeakMap,at.FontLoader=ct;class dt{constructor(pt,{isEvalSupported:gt=!0,disableFontFace:vt=!1,ignoreErrors:wt=!1,inspectFont:yt=null}){this.compiledGlyphs=Object.create(null);for(const bt in pt)this[bt]=pt[bt];this.isEvalSupported=gt!==!1,this.disableFontFace=vt===!0,this.ignoreErrors=wt===!0,this._inspectFont=yt}createNativeFontFace(){var gt;if(!this.data||this.disableFontFace)return null;let pt;if(!this.cssFontInfo)pt=new FontFace(this.loadedName,this.data,{});else{const vt={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(vt.style=`oblique ${this.cssFontInfo.italicAngle}deg`),pt=new FontFace(this.cssFontInfo.fontFamily,this.data,vt)}return(gt=this._inspectFont)==null||gt.call(this,this),pt}createFontFaceRule(){var wt;if(!this.data||this.disableFontFace)return null;const pt=(0,ut.bytesToString)(this.data),gt=`url(data:${this.mimetype};base64,${btoa(pt)});`;let vt;if(!this.cssFontInfo)vt=`@font-face {font-family:"${this.loadedName}";src:${gt}}`;else{let yt=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(yt+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),vt=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${yt}src:${gt}}`}return(wt=this._inspectFont)==null||wt.call(this,this,gt),vt}getPathGenerator(pt,gt){if(this.compiledGlyphs[gt]!==void 0)return this.compiledGlyphs[gt];let vt;try{vt=pt.get(this.loadedName+"_path_"+gt)}catch(wt){if(!this.ignoreErrors)throw wt;return(0,ut.warn)(`getPathGenerator - ignoring character: "${wt}".`),this.compiledGlyphs[gt]=function(yt,bt){}}if(this.isEvalSupported&&ut.FeatureTest.isEvalSupported){const wt=[];for(const yt of vt){const bt=yt.args!==void 0?yt.args.join(","):"";wt.push("c.",yt.cmd,"(",bt,`);
`)}return this.compiledGlyphs[gt]=new Function("c","size",wt.join(""))}return this.compiledGlyphs[gt]=function(wt,yt){for(const bt of vt)bt.cmd==="scale"&&(bt.args=[yt,-yt]),wt[bt.cmd].apply(wt,bt.args)}}}at.FontFaceObject=dt},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.NodeStandardFontDataFactory=at.NodeFilterFactory=at.NodeCanvasFactory=at.NodeCMapReaderFactory=void 0;var ut=lt(7);lt(1);const ct=function(gt){return new Promise((vt,wt)=>{require$$5.readFile(gt,(bt,Ct)=>{if(bt||!Ct){wt(new Error(bt));return}vt(new Uint8Array(Ct))})})};class dt extends ut.BaseFilterFactory{}at.NodeFilterFactory=dt;class ft extends ut.BaseCanvasFactory{_createCanvas(vt,wt){return require$$5.createCanvas(vt,wt)}}at.NodeCanvasFactory=ft;class mt extends ut.BaseCMapReaderFactory{_fetchData(vt,wt){return ct(vt).then(yt=>({cMapData:yt,compressionType:wt}))}}at.NodeCMapReaderFactory=mt;class pt extends ut.BaseStandardFontDataFactory{_fetchData(vt){return ct(vt)}}at.NodeStandardFontDataFactory=pt},(it,at,lt)=>{var nn,F1,rn,j1;Object.defineProperty(at,"__esModule",{value:!0}),at.CanvasGraphics=void 0;var ut=lt(1),ct=lt(6),dt=lt(12),ft=lt(13);const mt=16,pt=100,gt=4096,vt=15,wt=10,yt=1e3,bt=16;function Ct(Wt,jt){if(Wt._removeMirroring)throw new Error("Context is already forwarding operations.");Wt.__originalSave=Wt.save,Wt.__originalRestore=Wt.restore,Wt.__originalRotate=Wt.rotate,Wt.__originalScale=Wt.scale,Wt.__originalTranslate=Wt.translate,Wt.__originalTransform=Wt.transform,Wt.__originalSetTransform=Wt.setTransform,Wt.__originalResetTransform=Wt.resetTransform,Wt.__originalClip=Wt.clip,Wt.__originalMoveTo=Wt.moveTo,Wt.__originalLineTo=Wt.lineTo,Wt.__originalBezierCurveTo=Wt.bezierCurveTo,Wt.__originalRect=Wt.rect,Wt.__originalClosePath=Wt.closePath,Wt.__originalBeginPath=Wt.beginPath,Wt._removeMirroring=()=>{Wt.save=Wt.__originalSave,Wt.restore=Wt.__originalRestore,Wt.rotate=Wt.__originalRotate,Wt.scale=Wt.__originalScale,Wt.translate=Wt.__originalTranslate,Wt.transform=Wt.__originalTransform,Wt.setTransform=Wt.__originalSetTransform,Wt.resetTransform=Wt.__originalResetTransform,Wt.clip=Wt.__originalClip,Wt.moveTo=Wt.__originalMoveTo,Wt.lineTo=Wt.__originalLineTo,Wt.bezierCurveTo=Wt.__originalBezierCurveTo,Wt.rect=Wt.__originalRect,Wt.closePath=Wt.__originalClosePath,Wt.beginPath=Wt.__originalBeginPath,delete Wt._removeMirroring},Wt.save=function(){jt.save(),this.__originalSave()},Wt.restore=function(){jt.restore(),this.__originalRestore()},Wt.translate=function(Dt,zt){jt.translate(Dt,zt),this.__originalTranslate(Dt,zt)},Wt.scale=function(Dt,zt){jt.scale(Dt,zt),this.__originalScale(Dt,zt)},Wt.transform=function(Dt,zt,Kt,en,sn,cn){jt.transform(Dt,zt,Kt,en,sn,cn),this.__originalTransform(Dt,zt,Kt,en,sn,cn)},Wt.setTransform=function(Dt,zt,Kt,en,sn,cn){jt.setTransform(Dt,zt,Kt,en,sn,cn),this.__originalSetTransform(Dt,zt,Kt,en,sn,cn)},Wt.resetTransform=function(){jt.resetTransform(),this.__originalResetTransform()},Wt.rotate=function(Dt){jt.rotate(Dt),this.__originalRotate(Dt)},Wt.clip=function(Dt){jt.clip(Dt),this.__originalClip(Dt)},Wt.moveTo=function(Bt,Dt){jt.moveTo(Bt,Dt),this.__originalMoveTo(Bt,Dt)},Wt.lineTo=function(Bt,Dt){jt.lineTo(Bt,Dt),this.__originalLineTo(Bt,Dt)},Wt.bezierCurveTo=function(Bt,Dt,zt,Kt,en,sn){jt.bezierCurveTo(Bt,Dt,zt,Kt,en,sn),this.__originalBezierCurveTo(Bt,Dt,zt,Kt,en,sn)},Wt.rect=function(Bt,Dt,zt,Kt){jt.rect(Bt,Dt,zt,Kt),this.__originalRect(Bt,Dt,zt,Kt)},Wt.closePath=function(){jt.closePath(),this.__originalClosePath()},Wt.beginPath=function(){jt.beginPath(),this.__originalBeginPath()}}class Et{constructor(jt){this.canvasFactory=jt,this.cache=Object.create(null)}getCanvas(jt,Bt,Dt){let zt;return this.cache[jt]!==void 0?(zt=this.cache[jt],this.canvasFactory.reset(zt,Bt,Dt)):(zt=this.canvasFactory.create(Bt,Dt),this.cache[jt]=zt),zt}delete(jt){delete this.cache[jt]}clear(){for(const jt in this.cache){const Bt=this.cache[jt];this.canvasFactory.destroy(Bt),delete this.cache[jt]}}}function kt(Wt,jt,Bt,Dt,zt,Kt,en,sn,cn,bn){const[Tn,kn,In,Hn,Fn,wn]=(0,ct.getCurrentTransform)(Wt);if(kn===0&&In===0){const Un=en*Tn+Fn,Sn=Math.round(Un),On=sn*Hn+wn,Cn=Math.round(On),Pn=(en+cn)*Tn+Fn,Xn=Math.abs(Math.round(Pn)-Sn)||1,Qn=(sn+bn)*Hn+wn,sr=Math.abs(Math.round(Qn)-Cn)||1;return Wt.setTransform(Math.sign(Tn),0,0,Math.sign(Hn),Sn,Cn),Wt.drawImage(jt,Bt,Dt,zt,Kt,0,0,Xn,sr),Wt.setTransform(Tn,kn,In,Hn,Fn,wn),[Xn,sr]}if(Tn===0&&Hn===0){const Un=sn*In+Fn,Sn=Math.round(Un),On=en*kn+wn,Cn=Math.round(On),Pn=(sn+bn)*In+Fn,Xn=Math.abs(Math.round(Pn)-Sn)||1,Qn=(en+cn)*kn+wn,sr=Math.abs(Math.round(Qn)-Cn)||1;return Wt.setTransform(0,Math.sign(kn),Math.sign(In),0,Sn,Cn),Wt.drawImage(jt,Bt,Dt,zt,Kt,0,0,sr,Xn),Wt.setTransform(Tn,kn,In,Hn,Fn,wn),[sr,Xn]}Wt.drawImage(jt,Bt,Dt,zt,Kt,en,sn,cn,bn);const Mn=Math.hypot(Tn,kn),Dn=Math.hypot(In,Hn);return[Mn*cn,Dn*bn]}function xt(Wt){const{width:jt,height:Bt}=Wt;if(jt>yt||Bt>yt)return null;const Dt=1e3,zt=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),Kt=jt+1;let en=new Uint8Array(Kt*(Bt+1)),sn,cn,bn;const Tn=jt+7&-8;let kn=new Uint8Array(Tn*Bt),In=0;for(const Dn of Wt.data){let Un=128;for(;Un>0;)kn[In++]=Dn&Un?0:255,Un>>=1}let Hn=0;for(In=0,kn[In]!==0&&(en[0]=1,++Hn),cn=1;cn<jt;cn++)kn[In]!==kn[In+1]&&(en[cn]=kn[In]?2:1,++Hn),In++;for(kn[In]!==0&&(en[cn]=2,++Hn),sn=1;sn<Bt;sn++){In=sn*Tn,bn=sn*Kt,kn[In-Tn]!==kn[In]&&(en[bn]=kn[In]?1:8,++Hn);let Dn=(kn[In]?4:0)+(kn[In-Tn]?8:0);for(cn=1;cn<jt;cn++)Dn=(Dn>>2)+(kn[In+1]?4:0)+(kn[In-Tn+1]?8:0),zt[Dn]&&(en[bn+cn]=zt[Dn],++Hn),In++;if(kn[In-Tn]!==kn[In]&&(en[bn+cn]=kn[In]?2:4,++Hn),Hn>Dt)return null}for(In=Tn*(Bt-1),bn=sn*Kt,kn[In]!==0&&(en[bn]=8,++Hn),cn=1;cn<jt;cn++)kn[In]!==kn[In+1]&&(en[bn+cn]=kn[In]?4:8,++Hn),In++;if(kn[In]!==0&&(en[bn+cn]=4,++Hn),Hn>Dt)return null;const Fn=new Int32Array([0,Kt,-1,0,-Kt,0,0,0,1]),wn=new Path2D;for(sn=0;Hn&&sn<=Bt;sn++){let Dn=sn*Kt;const Un=Dn+jt;for(;Dn<Un&&!en[Dn];)Dn++;if(Dn===Un)continue;wn.moveTo(Dn%Kt,sn);const Sn=Dn;let On=en[Dn];do{const Cn=Fn[On];do Dn+=Cn;while(!en[Dn]);const Pn=en[Dn];Pn!==5&&Pn!==10?(On=Pn,en[Dn]=0):(On=Pn&51*On>>4,en[Dn]&=On>>2|On<<2),wn.lineTo(Dn%Kt,Dn/Kt|0),en[Dn]||--Hn}while(Sn!==Dn);--sn}return kn=null,en=null,function(Dn){Dn.save(),Dn.scale(1/jt,-1/Bt),Dn.translate(0,-Bt),Dn.fill(wn),Dn.beginPath(),Dn.restore()}}class St{constructor(jt,Bt){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=ut.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=ut.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=ut.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,jt,Bt])}clone(){const jt=Object.create(this);return jt.clipBox=this.clipBox.slice(),jt}setCurrentPoint(jt,Bt){this.x=jt,this.y=Bt}updatePathMinMax(jt,Bt,Dt){[Bt,Dt]=ut.Util.applyTransform([Bt,Dt],jt),this.minX=Math.min(this.minX,Bt),this.minY=Math.min(this.minY,Dt),this.maxX=Math.max(this.maxX,Bt),this.maxY=Math.max(this.maxY,Dt)}updateRectMinMax(jt,Bt){const Dt=ut.Util.applyTransform(Bt,jt),zt=ut.Util.applyTransform(Bt.slice(2),jt);this.minX=Math.min(this.minX,Dt[0],zt[0]),this.minY=Math.min(this.minY,Dt[1],zt[1]),this.maxX=Math.max(this.maxX,Dt[0],zt[0]),this.maxY=Math.max(this.maxY,Dt[1],zt[1])}updateScalingPathMinMax(jt,Bt){ut.Util.scaleMinMax(jt,Bt),this.minX=Math.min(this.minX,Bt[0]),this.maxX=Math.max(this.maxX,Bt[1]),this.minY=Math.min(this.minY,Bt[2]),this.maxY=Math.max(this.maxY,Bt[3])}updateCurvePathMinMax(jt,Bt,Dt,zt,Kt,en,sn,cn,bn,Tn){const kn=ut.Util.bezierBoundingBox(Bt,Dt,zt,Kt,en,sn,cn,bn);if(Tn){Tn[0]=Math.min(Tn[0],kn[0],kn[2]),Tn[1]=Math.max(Tn[1],kn[0],kn[2]),Tn[2]=Math.min(Tn[2],kn[1],kn[3]),Tn[3]=Math.max(Tn[3],kn[1],kn[3]);return}this.updateRectMinMax(jt,kn)}getPathBoundingBox(jt=dt.PathType.FILL,Bt=null){const Dt=[this.minX,this.minY,this.maxX,this.maxY];if(jt===dt.PathType.STROKE){Bt||(0,ut.unreachable)("Stroke bounding box must include transform.");const zt=ut.Util.singularValueDecompose2dScale(Bt),Kt=zt[0]*this.lineWidth/2,en=zt[1]*this.lineWidth/2;Dt[0]-=Kt,Dt[1]-=en,Dt[2]+=Kt,Dt[3]+=en}return Dt}updateClipFromPath(){const jt=ut.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(jt||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(jt){this.clipBox=jt,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(jt=dt.PathType.FILL,Bt=null){return ut.Util.intersect(this.clipBox,this.getPathBoundingBox(jt,Bt))}}function Ot(Wt,jt){if(typeof ImageData<"u"&&jt instanceof ImageData){Wt.putImageData(jt,0,0);return}const Bt=jt.height,Dt=jt.width,zt=Bt%bt,Kt=(Bt-zt)/bt,en=zt===0?Kt:Kt+1,sn=Wt.createImageData(Dt,bt);let cn=0,bn;const Tn=jt.data,kn=sn.data;let In,Hn,Fn,wn;if(jt.kind===ut.ImageKind.GRAYSCALE_1BPP){const Mn=Tn.byteLength,Dn=new Uint32Array(kn.buffer,0,kn.byteLength>>2),Un=Dn.length,Sn=Dt+7>>3,On=4294967295,Cn=ut.FeatureTest.isLittleEndian?4278190080:255;for(In=0;In<en;In++){for(Fn=In<Kt?bt:zt,bn=0,Hn=0;Hn<Fn;Hn++){const Pn=Mn-cn;let Xn=0;const Qn=Pn>Sn?Dt:Pn*8-7,sr=Qn&-8;let pr=0,or=0;for(;Xn<sr;Xn+=8)or=Tn[cn++],Dn[bn++]=or&128?On:Cn,Dn[bn++]=or&64?On:Cn,Dn[bn++]=or&32?On:Cn,Dn[bn++]=or&16?On:Cn,Dn[bn++]=or&8?On:Cn,Dn[bn++]=or&4?On:Cn,Dn[bn++]=or&2?On:Cn,Dn[bn++]=or&1?On:Cn;for(;Xn<Qn;Xn++)pr===0&&(or=Tn[cn++],pr=128),Dn[bn++]=or&pr?On:Cn,pr>>=1}for(;bn<Un;)Dn[bn++]=0;Wt.putImageData(sn,0,In*bt)}}else if(jt.kind===ut.ImageKind.RGBA_32BPP){for(Hn=0,wn=Dt*bt*4,In=0;In<Kt;In++)kn.set(Tn.subarray(cn,cn+wn)),cn+=wn,Wt.putImageData(sn,0,Hn),Hn+=bt;In<en&&(wn=Dt*zt*4,kn.set(Tn.subarray(cn,cn+wn)),Wt.putImageData(sn,0,Hn))}else if(jt.kind===ut.ImageKind.RGB_24BPP)for(Fn=bt,wn=Dt*Fn,In=0;In<en;In++){for(In>=Kt&&(Fn=zt,wn=Dt*Fn),bn=0,Hn=wn;Hn--;)kn[bn++]=Tn[cn++],kn[bn++]=Tn[cn++],kn[bn++]=Tn[cn++],kn[bn++]=255;Wt.putImageData(sn,0,In*bt)}else throw new Error(`bad image kind: ${jt.kind}`)}function At(Wt,jt){if(jt.bitmap){Wt.drawImage(jt.bitmap,0,0);return}const Bt=jt.height,Dt=jt.width,zt=Bt%bt,Kt=(Bt-zt)/bt,en=zt===0?Kt:Kt+1,sn=Wt.createImageData(Dt,bt);let cn=0;const bn=jt.data,Tn=sn.data;for(let kn=0;kn<en;kn++){const In=kn<Kt?bt:zt;({srcPos:cn}=(0,ft.convertBlackAndWhiteToRGBA)({src:bn,srcPos:cn,dest:Tn,width:Dt,height:In,nonBlackColor:0})),Wt.putImageData(sn,0,kn*bt)}}function Tt(Wt,jt){const Bt=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const Dt of Bt)Wt[Dt]!==void 0&&(jt[Dt]=Wt[Dt]);Wt.setLineDash!==void 0&&(jt.setLineDash(Wt.getLineDash()),jt.lineDashOffset=Wt.lineDashOffset)}function $t(Wt){if(Wt.strokeStyle=Wt.fillStyle="#000000",Wt.fillRule="nonzero",Wt.globalAlpha=1,Wt.lineWidth=1,Wt.lineCap="butt",Wt.lineJoin="miter",Wt.miterLimit=10,Wt.globalCompositeOperation="source-over",Wt.font="10px sans-serif",Wt.setLineDash!==void 0&&(Wt.setLineDash([]),Wt.lineDashOffset=0),!ut.isNodeJS){const{filter:jt}=Wt;jt!=="none"&&jt!==""&&(Wt.filter="none")}}function Lt(Wt,jt,Bt,Dt){const zt=Wt.length;for(let Kt=3;Kt<zt;Kt+=4){const en=Wt[Kt];if(en===0)Wt[Kt-3]=jt,Wt[Kt-2]=Bt,Wt[Kt-1]=Dt;else if(en<255){const sn=255-en;Wt[Kt-3]=Wt[Kt-3]*en+jt*sn>>8,Wt[Kt-2]=Wt[Kt-2]*en+Bt*sn>>8,Wt[Kt-1]=Wt[Kt-1]*en+Dt*sn>>8}}}function Rt(Wt,jt,Bt){const Dt=Wt.length,zt=1/255;for(let Kt=3;Kt<Dt;Kt+=4){const en=Bt?Bt[Wt[Kt]]:Wt[Kt];jt[Kt]=jt[Kt]*en*zt|0}}function It(Wt,jt,Bt){const Dt=Wt.length;for(let zt=3;zt<Dt;zt+=4){const Kt=Wt[zt-3]*77+Wt[zt-2]*152+Wt[zt-1]*28;jt[zt]=Bt?jt[zt]*Bt[Kt>>8]>>8:jt[zt]*Kt>>16}}function Ft(Wt,jt,Bt,Dt,zt,Kt,en,sn,cn,bn,Tn){const kn=!!Kt,In=kn?Kt[0]:0,Hn=kn?Kt[1]:0,Fn=kn?Kt[2]:0,wn=zt==="Luminosity"?It:Rt,Dn=Math.min(Dt,Math.ceil(1048576/Bt));for(let Un=0;Un<Dt;Un+=Dn){const Sn=Math.min(Dn,Dt-Un),On=Wt.getImageData(sn-bn,Un+(cn-Tn),Bt,Sn),Cn=jt.getImageData(sn,Un+cn,Bt,Sn);kn&&Lt(On.data,In,Hn,Fn),wn(On.data,Cn.data,en),jt.putImageData(Cn,sn,Un+cn)}}function Mt(Wt,jt,Bt,Dt){const zt=Dt[0],Kt=Dt[1],en=Dt[2]-zt,sn=Dt[3]-Kt;en===0||sn===0||(Ft(jt.context,Bt,en,sn,jt.subtype,jt.backdrop,jt.transferMap,zt,Kt,jt.offsetX,jt.offsetY),Wt.save(),Wt.globalAlpha=1,Wt.globalCompositeOperation="source-over",Wt.setTransform(1,0,0,1,0,0),Wt.drawImage(Bt.canvas,0,0),Wt.restore())}function Ht(Wt,jt){const Bt=ut.Util.singularValueDecompose2dScale(Wt);Bt[0]=Math.fround(Bt[0]),Bt[1]=Math.fround(Bt[1]);const Dt=Math.fround((globalThis.devicePixelRatio||1)*ct.PixelsPerInch.PDF_TO_CSS_UNITS);return jt!==void 0?jt:Bt[0]<=Dt||Bt[1]<=Dt}const Vt=["butt","round","square"],Nt=["miter","round","bevel"],Gt={},tn={},Zt=class Zt{constructor(jt,Bt,Dt,zt,Kt,{optionalContentConfig:en,markedContentStack:sn=null},cn,bn){An(this,nn);An(this,rn);this.ctx=jt,this.current=new St(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=Bt,this.objs=Dt,this.canvasFactory=zt,this.filterFactory=Kt,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=sn||[],this.optionalContentConfig=en,this.cachedCanvases=new Et(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=cn,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=bn,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(jt,Bt=null){return typeof jt=="string"?jt.startsWith("g_")?this.commonObjs.get(jt):this.objs.get(jt):Bt}beginDrawing({transform:jt,viewport:Bt,transparency:Dt=!1,background:zt=null}){const Kt=this.ctx.canvas.width,en=this.ctx.canvas.height,sn=this.ctx.fillStyle;if(this.ctx.fillStyle=zt||"#ffffff",this.ctx.fillRect(0,0,Kt,en),this.ctx.fillStyle=sn,Dt){const cn=this.cachedCanvases.getCanvas("transparent",Kt,en);this.compositeCtx=this.ctx,this.transparentCanvas=cn.canvas,this.ctx=cn.context,this.ctx.save(),this.ctx.transform(...(0,ct.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),$t(this.ctx),jt&&(this.ctx.transform(...jt),this.outputScaleX=jt[0],this.outputScaleY=jt[0]),this.ctx.transform(...Bt.transform),this.viewportScale=Bt.scale,this.baseTransform=(0,ct.getCurrentTransform)(this.ctx)}executeOperatorList(jt,Bt,Dt,zt){const Kt=jt.argsArray,en=jt.fnArray;let sn=Bt||0;const cn=Kt.length;if(cn===sn)return sn;const bn=cn-sn>wt&&typeof Dt=="function",Tn=bn?Date.now()+vt:0;let kn=0;const In=this.commonObjs,Hn=this.objs;let Fn;for(;;){if(zt!==void 0&&sn===zt.nextBreakPoint)return zt.breakIt(sn,Dt),sn;if(Fn=en[sn],Fn!==ut.OPS.dependency)this[Fn].apply(this,Kt[sn]);else for(const wn of Kt[sn]){const Mn=wn.startsWith("g_")?In:Hn;if(!Mn.has(wn))return Mn.get(wn,Dt),sn}if(sn++,sn===cn)return sn;if(bn&&++kn>wt){if(Date.now()>Tn)return Dt(),sn;kn=0}}}endDrawing(){Nn(this,nn,F1).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const jt of this._cachedBitmapsMap.values()){for(const Bt of jt.values())typeof HTMLCanvasElement<"u"&&Bt instanceof HTMLCanvasElement&&(Bt.width=Bt.height=0);jt.clear()}this._cachedBitmapsMap.clear(),Nn(this,rn,j1).call(this)}_scaleImage(jt,Bt){const Dt=jt.width,zt=jt.height;let Kt=Math.max(Math.hypot(Bt[0],Bt[1]),1),en=Math.max(Math.hypot(Bt[2],Bt[3]),1),sn=Dt,cn=zt,bn="prescale1",Tn,kn;for(;Kt>2&&sn>1||en>2&&cn>1;){let In=sn,Hn=cn;Kt>2&&sn>1&&(In=sn>=16384?Math.floor(sn/2)-1||1:Math.ceil(sn/2),Kt/=sn/In),en>2&&cn>1&&(Hn=cn>=16384?Math.floor(cn/2)-1||1:Math.ceil(cn)/2,en/=cn/Hn),Tn=this.cachedCanvases.getCanvas(bn,In,Hn),kn=Tn.context,kn.clearRect(0,0,In,Hn),kn.drawImage(jt,0,0,sn,cn,0,0,In,Hn),jt=Tn.canvas,sn=In,cn=Hn,bn=bn==="prescale1"?"prescale2":"prescale1"}return{img:jt,paintWidth:sn,paintHeight:cn}}_createMaskCanvas(jt){const Bt=this.ctx,{width:Dt,height:zt}=jt,Kt=this.current.fillColor,en=this.current.patternFill,sn=(0,ct.getCurrentTransform)(Bt);let cn,bn,Tn,kn;if((jt.bitmap||jt.data)&&jt.count>1){const Xn=jt.bitmap||jt.data.buffer;bn=JSON.stringify(en?sn:[sn.slice(0,4),Kt]),cn=this._cachedBitmapsMap.get(Xn),cn||(cn=new Map,this._cachedBitmapsMap.set(Xn,cn));const Qn=cn.get(bn);if(Qn&&!en){const sr=Math.round(Math.min(sn[0],sn[2])+sn[4]),pr=Math.round(Math.min(sn[1],sn[3])+sn[5]);return{canvas:Qn,offsetX:sr,offsetY:pr}}Tn=Qn}Tn||(kn=this.cachedCanvases.getCanvas("maskCanvas",Dt,zt),At(kn.context,jt));let In=ut.Util.transform(sn,[1/Dt,0,0,-1/zt,0,0]);In=ut.Util.transform(In,[1,0,0,1,0,-zt]);const Hn=ut.Util.applyTransform([0,0],In),Fn=ut.Util.applyTransform([Dt,zt],In),wn=ut.Util.normalizeRect([Hn[0],Hn[1],Fn[0],Fn[1]]),Mn=Math.round(wn[2]-wn[0])||1,Dn=Math.round(wn[3]-wn[1])||1,Un=this.cachedCanvases.getCanvas("fillCanvas",Mn,Dn),Sn=Un.context,On=Math.min(Hn[0],Fn[0]),Cn=Math.min(Hn[1],Fn[1]);Sn.translate(-On,-Cn),Sn.transform(...In),Tn||(Tn=this._scaleImage(kn.canvas,(0,ct.getCurrentTransformInverse)(Sn)),Tn=Tn.img,cn&&en&&cn.set(bn,Tn)),Sn.imageSmoothingEnabled=Ht((0,ct.getCurrentTransform)(Sn),jt.interpolate),kt(Sn,Tn,0,0,Tn.width,Tn.height,0,0,Dt,zt),Sn.globalCompositeOperation="source-in";const Pn=ut.Util.transform((0,ct.getCurrentTransformInverse)(Sn),[1,0,0,1,-On,-Cn]);return Sn.fillStyle=en?Kt.getPattern(Bt,this,Pn,dt.PathType.FILL):Kt,Sn.fillRect(0,0,Dt,zt),cn&&!en&&(this.cachedCanvases.delete("fillCanvas"),cn.set(bn,Un.canvas)),{canvas:Un.canvas,offsetX:Math.round(On),offsetY:Math.round(Cn)}}setLineWidth(jt){jt!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=jt,this.ctx.lineWidth=jt}setLineCap(jt){this.ctx.lineCap=Vt[jt]}setLineJoin(jt){this.ctx.lineJoin=Nt[jt]}setMiterLimit(jt){this.ctx.miterLimit=jt}setDash(jt,Bt){const Dt=this.ctx;Dt.setLineDash!==void 0&&(Dt.setLineDash(jt),Dt.lineDashOffset=Bt)}setRenderingIntent(jt){}setFlatness(jt){}setGState(jt){for(const[Bt,Dt]of jt)switch(Bt){case"LW":this.setLineWidth(Dt);break;case"LC":this.setLineCap(Dt);break;case"LJ":this.setLineJoin(Dt);break;case"ML":this.setMiterLimit(Dt);break;case"D":this.setDash(Dt[0],Dt[1]);break;case"RI":this.setRenderingIntent(Dt);break;case"FL":this.setFlatness(Dt);break;case"Font":this.setFont(Dt[0],Dt[1]);break;case"CA":this.current.strokeAlpha=Dt;break;case"ca":this.current.fillAlpha=Dt,this.ctx.globalAlpha=Dt;break;case"BM":this.ctx.globalCompositeOperation=Dt;break;case"SMask":this.current.activeSMask=Dt?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(Dt);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const jt=this.inSMaskMode;this.current.activeSMask&&!jt?this.beginSMaskMode():!this.current.activeSMask&&jt&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const jt=this.ctx.canvas.width,Bt=this.ctx.canvas.height,Dt="smaskGroupAt"+this.groupLevel,zt=this.cachedCanvases.getCanvas(Dt,jt,Bt);this.suspendedCtx=this.ctx,this.ctx=zt.context;const Kt=this.ctx;Kt.setTransform(...(0,ct.getCurrentTransform)(this.suspendedCtx)),Tt(this.suspendedCtx,Kt),Ct(Kt,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Tt(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(jt){if(!this.current.activeSMask)return;jt?(jt[0]=Math.floor(jt[0]),jt[1]=Math.floor(jt[1]),jt[2]=Math.ceil(jt[2]),jt[3]=Math.ceil(jt[3])):jt=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const Bt=this.current.activeSMask,Dt=this.suspendedCtx;Mt(Dt,Bt,this.ctx,jt),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}save(){this.inSMaskMode?(Tt(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const jt=this.current;this.stateStack.push(jt),this.current=jt.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),Tt(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(jt,Bt,Dt,zt,Kt,en){this.ctx.transform(jt,Bt,Dt,zt,Kt,en),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(jt,Bt,Dt){const zt=this.ctx,Kt=this.current;let en=Kt.x,sn=Kt.y,cn,bn;const Tn=(0,ct.getCurrentTransform)(zt),kn=Tn[0]===0&&Tn[3]===0||Tn[1]===0&&Tn[2]===0,In=kn?Dt.slice(0):null;for(let Hn=0,Fn=0,wn=jt.length;Hn<wn;Hn++)switch(jt[Hn]|0){case ut.OPS.rectangle:en=Bt[Fn++],sn=Bt[Fn++];const Mn=Bt[Fn++],Dn=Bt[Fn++],Un=en+Mn,Sn=sn+Dn;zt.moveTo(en,sn),Mn===0||Dn===0?zt.lineTo(Un,Sn):(zt.lineTo(Un,sn),zt.lineTo(Un,Sn),zt.lineTo(en,Sn)),kn||Kt.updateRectMinMax(Tn,[en,sn,Un,Sn]),zt.closePath();break;case ut.OPS.moveTo:en=Bt[Fn++],sn=Bt[Fn++],zt.moveTo(en,sn),kn||Kt.updatePathMinMax(Tn,en,sn);break;case ut.OPS.lineTo:en=Bt[Fn++],sn=Bt[Fn++],zt.lineTo(en,sn),kn||Kt.updatePathMinMax(Tn,en,sn);break;case ut.OPS.curveTo:cn=en,bn=sn,en=Bt[Fn+4],sn=Bt[Fn+5],zt.bezierCurveTo(Bt[Fn],Bt[Fn+1],Bt[Fn+2],Bt[Fn+3],en,sn),Kt.updateCurvePathMinMax(Tn,cn,bn,Bt[Fn],Bt[Fn+1],Bt[Fn+2],Bt[Fn+3],en,sn,In),Fn+=6;break;case ut.OPS.curveTo2:cn=en,bn=sn,zt.bezierCurveTo(en,sn,Bt[Fn],Bt[Fn+1],Bt[Fn+2],Bt[Fn+3]),Kt.updateCurvePathMinMax(Tn,cn,bn,en,sn,Bt[Fn],Bt[Fn+1],Bt[Fn+2],Bt[Fn+3],In),en=Bt[Fn+2],sn=Bt[Fn+3],Fn+=4;break;case ut.OPS.curveTo3:cn=en,bn=sn,en=Bt[Fn+2],sn=Bt[Fn+3],zt.bezierCurveTo(Bt[Fn],Bt[Fn+1],en,sn,en,sn),Kt.updateCurvePathMinMax(Tn,cn,bn,Bt[Fn],Bt[Fn+1],en,sn,en,sn,In),Fn+=4;break;case ut.OPS.closePath:zt.closePath();break}kn&&Kt.updateScalingPathMinMax(Tn,In),Kt.setCurrentPoint(en,sn)}closePath(){this.ctx.closePath()}stroke(jt=!0){const Bt=this.ctx,Dt=this.current.strokeColor;Bt.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof Dt=="object"&&(Dt!=null&&Dt.getPattern)?(Bt.save(),Bt.strokeStyle=Dt.getPattern(Bt,this,(0,ct.getCurrentTransformInverse)(Bt),dt.PathType.STROKE),this.rescaleAndStroke(!1),Bt.restore()):this.rescaleAndStroke(!0)),jt&&this.consumePath(this.current.getClippedPathBoundingBox()),Bt.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(jt=!0){const Bt=this.ctx,Dt=this.current.fillColor,zt=this.current.patternFill;let Kt=!1;zt&&(Bt.save(),Bt.fillStyle=Dt.getPattern(Bt,this,(0,ct.getCurrentTransformInverse)(Bt),dt.PathType.FILL),Kt=!0);const en=this.current.getClippedPathBoundingBox();this.contentVisible&&en!==null&&(this.pendingEOFill?(Bt.fill("evenodd"),this.pendingEOFill=!1):Bt.fill()),Kt&&Bt.restore(),jt&&this.consumePath(en)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=Gt}eoClip(){this.pendingClip=tn}beginText(){this.current.textMatrix=ut.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const jt=this.pendingTextPaths,Bt=this.ctx;if(jt===void 0){Bt.beginPath();return}Bt.save(),Bt.beginPath();for(const Dt of jt)Bt.setTransform(...Dt.transform),Bt.translate(Dt.x,Dt.y),Dt.addToPath(Bt,Dt.fontSize);Bt.restore(),Bt.clip(),Bt.beginPath(),delete this.pendingTextPaths}setCharSpacing(jt){this.current.charSpacing=jt}setWordSpacing(jt){this.current.wordSpacing=jt}setHScale(jt){this.current.textHScale=jt/100}setLeading(jt){this.current.leading=-jt}setFont(jt,Bt){var Tn;const Dt=this.commonObjs.get(jt),zt=this.current;if(!Dt)throw new Error(`Can't find font for ${jt}`);if(zt.fontMatrix=Dt.fontMatrix||ut.FONT_IDENTITY_MATRIX,(zt.fontMatrix[0]===0||zt.fontMatrix[3]===0)&&(0,ut.warn)("Invalid font matrix for font "+jt),Bt<0?(Bt=-Bt,zt.fontDirection=-1):zt.fontDirection=1,this.current.font=Dt,this.current.fontSize=Bt,Dt.isType3Font)return;const Kt=Dt.loadedName||"sans-serif",en=((Tn=Dt.systemFontInfo)==null?void 0:Tn.css)||`"${Kt}", ${Dt.fallbackName}`;let sn="normal";Dt.black?sn="900":Dt.bold&&(sn="bold");const cn=Dt.italic?"italic":"normal";let bn=Bt;Bt<mt?bn=mt:Bt>pt&&(bn=pt),this.current.fontSizeScale=Bt/bn,this.ctx.font=`${cn} ${sn} ${bn}px ${en}`}setTextRenderingMode(jt){this.current.textRenderingMode=jt}setTextRise(jt){this.current.textRise=jt}moveText(jt,Bt){this.current.x=this.current.lineX+=jt,this.current.y=this.current.lineY+=Bt}setLeadingMoveText(jt,Bt){this.setLeading(-Bt),this.moveText(jt,Bt)}setTextMatrix(jt,Bt,Dt,zt,Kt,en){this.current.textMatrix=[jt,Bt,Dt,zt,Kt,en],this.current.textMatrixScale=Math.hypot(jt,Bt),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(jt,Bt,Dt,zt){const Kt=this.ctx,en=this.current,sn=en.font,cn=en.textRenderingMode,bn=en.fontSize/en.fontSizeScale,Tn=cn&ut.TextRenderingMode.FILL_STROKE_MASK,kn=!!(cn&ut.TextRenderingMode.ADD_TO_PATH_FLAG),In=en.patternFill&&!sn.missingFile;let Hn;(sn.disableFontFace||kn||In)&&(Hn=sn.getPathGenerator(this.commonObjs,jt)),sn.disableFontFace||In?(Kt.save(),Kt.translate(Bt,Dt),Kt.beginPath(),Hn(Kt,bn),zt&&Kt.setTransform(...zt),(Tn===ut.TextRenderingMode.FILL||Tn===ut.TextRenderingMode.FILL_STROKE)&&Kt.fill(),(Tn===ut.TextRenderingMode.STROKE||Tn===ut.TextRenderingMode.FILL_STROKE)&&Kt.stroke(),Kt.restore()):((Tn===ut.TextRenderingMode.FILL||Tn===ut.TextRenderingMode.FILL_STROKE)&&Kt.fillText(jt,Bt,Dt),(Tn===ut.TextRenderingMode.STROKE||Tn===ut.TextRenderingMode.FILL_STROKE)&&Kt.strokeText(jt,Bt,Dt)),kn&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,ct.getCurrentTransform)(Kt),x:Bt,y:Dt,fontSize:bn,addToPath:Hn})}get isFontSubpixelAAEnabled(){const{context:jt}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);jt.scale(1.5,1),jt.fillText("I",0,10);const Bt=jt.getImageData(0,0,10,10).data;let Dt=!1;for(let zt=3;zt<Bt.length;zt+=4)if(Bt[zt]>0&&Bt[zt]<255){Dt=!0;break}return(0,ut.shadow)(this,"isFontSubpixelAAEnabled",Dt)}showText(jt){const Bt=this.current,Dt=Bt.font;if(Dt.isType3Font)return this.showType3Text(jt);const zt=Bt.fontSize;if(zt===0)return;const Kt=this.ctx,en=Bt.fontSizeScale,sn=Bt.charSpacing,cn=Bt.wordSpacing,bn=Bt.fontDirection,Tn=Bt.textHScale*bn,kn=jt.length,In=Dt.vertical,Hn=In?1:-1,Fn=Dt.defaultVMetrics,wn=zt*Bt.fontMatrix[0],Mn=Bt.textRenderingMode===ut.TextRenderingMode.FILL&&!Dt.disableFontFace&&!Bt.patternFill;Kt.save(),Kt.transform(...Bt.textMatrix),Kt.translate(Bt.x,Bt.y+Bt.textRise),bn>0?Kt.scale(Tn,-1):Kt.scale(Tn,1);let Dn;if(Bt.patternFill){Kt.save();const Pn=Bt.fillColor.getPattern(Kt,this,(0,ct.getCurrentTransformInverse)(Kt),dt.PathType.FILL);Dn=(0,ct.getCurrentTransform)(Kt),Kt.restore(),Kt.fillStyle=Pn}let Un=Bt.lineWidth;const Sn=Bt.textMatrixScale;if(Sn===0||Un===0){const Pn=Bt.textRenderingMode&ut.TextRenderingMode.FILL_STROKE_MASK;(Pn===ut.TextRenderingMode.STROKE||Pn===ut.TextRenderingMode.FILL_STROKE)&&(Un=this.getSinglePixelWidth())}else Un/=Sn;if(en!==1&&(Kt.scale(en,en),Un/=en),Kt.lineWidth=Un,Dt.isInvalidPDFjsFont){const Pn=[];let Xn=0;for(const Qn of jt)Pn.push(Qn.unicode),Xn+=Qn.width;Kt.fillText(Pn.join(""),0,0),Bt.x+=Xn*wn*Tn,Kt.restore(),this.compose();return}let On=0,Cn;for(Cn=0;Cn<kn;++Cn){const Pn=jt[Cn];if(typeof Pn=="number"){On+=Hn*Pn*zt/1e3;continue}let Xn=!1;const Qn=(Pn.isSpace?cn:0)+sn,sr=Pn.fontChar,pr=Pn.accent;let or,br,fn=Pn.width;if(In){const Kn=Pn.vmetric||Fn,_n=-(Pn.vmetric?Kn[1]:fn*.5)*wn,gn=Kn[2]*wn;fn=Kn?-Kn[0]:fn,or=_n/en,br=(On+gn)/en}else or=On/en,br=0;if(Dt.remeasure&&fn>0){const Kn=Kt.measureText(sr).width*1e3/zt*en;if(fn<Kn&&this.isFontSubpixelAAEnabled){const _n=fn/Kn;Xn=!0,Kt.save(),Kt.scale(_n,1),or/=_n}else fn!==Kn&&(or+=(fn-Kn)/2e3*zt/en)}if(this.contentVisible&&(Pn.isInFont||Dt.missingFile)){if(Mn&&!pr)Kt.fillText(sr,or,br);else if(this.paintChar(sr,or,br,Dn),pr){const Kn=or+zt*pr.offset.x/en,_n=br-zt*pr.offset.y/en;this.paintChar(pr.fontChar,Kn,_n,Dn)}}const xn=In?fn*wn-Qn*bn:fn*wn+Qn*bn;On+=xn,Xn&&Kt.restore()}In?Bt.y-=On:Bt.x+=On*Tn,Kt.restore(),this.compose()}showType3Text(jt){const Bt=this.ctx,Dt=this.current,zt=Dt.font,Kt=Dt.fontSize,en=Dt.fontDirection,sn=zt.vertical?1:-1,cn=Dt.charSpacing,bn=Dt.wordSpacing,Tn=Dt.textHScale*en,kn=Dt.fontMatrix||ut.FONT_IDENTITY_MATRIX,In=jt.length,Hn=Dt.textRenderingMode===ut.TextRenderingMode.INVISIBLE;let Fn,wn,Mn,Dn;if(!(Hn||Kt===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,Bt.save(),Bt.transform(...Dt.textMatrix),Bt.translate(Dt.x,Dt.y),Bt.scale(Tn,en),Fn=0;Fn<In;++Fn){if(wn=jt[Fn],typeof wn=="number"){Dn=sn*wn*Kt/1e3,this.ctx.translate(Dn,0),Dt.x+=Dn*Tn;continue}const Un=(wn.isSpace?bn:0)+cn,Sn=zt.charProcOperatorList[wn.operatorListId];if(!Sn){(0,ut.warn)(`Type3 character "${wn.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=wn,this.save(),Bt.scale(Kt,Kt),Bt.transform(...kn),this.executeOperatorList(Sn),this.restore()),Mn=ut.Util.applyTransform([wn.width,0],kn)[0]*Kt+Un,Bt.translate(Mn,0),Dt.x+=Mn*Tn}Bt.restore(),this.processingType3=null}}setCharWidth(jt,Bt){}setCharWidthAndBounds(jt,Bt,Dt,zt,Kt,en){this.ctx.rect(Dt,zt,Kt-Dt,en-zt),this.ctx.clip(),this.endPath()}getColorN_Pattern(jt){let Bt;if(jt[0]==="TilingPattern"){const Dt=jt[1],zt=this.baseTransform||(0,ct.getCurrentTransform)(this.ctx),Kt={createCanvasGraphics:en=>new Zt(en,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};Bt=new dt.TilingPattern(jt,Dt,this.ctx,Kt,zt)}else Bt=this._getPattern(jt[1],jt[2]);return Bt}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(jt,Bt,Dt){const zt=ut.Util.makeHexColor(jt,Bt,Dt);this.ctx.strokeStyle=zt,this.current.strokeColor=zt}setFillRGBColor(jt,Bt,Dt){const zt=ut.Util.makeHexColor(jt,Bt,Dt);this.ctx.fillStyle=zt,this.current.fillColor=zt,this.current.patternFill=!1}_getPattern(jt,Bt=null){let Dt;return this.cachedPatterns.has(jt)?Dt=this.cachedPatterns.get(jt):(Dt=(0,dt.getShadingPattern)(this.getObject(jt)),this.cachedPatterns.set(jt,Dt)),Bt&&(Dt.matrix=Bt),Dt}shadingFill(jt){if(!this.contentVisible)return;const Bt=this.ctx;this.save();const Dt=this._getPattern(jt);Bt.fillStyle=Dt.getPattern(Bt,this,(0,ct.getCurrentTransformInverse)(Bt),dt.PathType.SHADING);const zt=(0,ct.getCurrentTransformInverse)(Bt);if(zt){const{width:Kt,height:en}=Bt.canvas,[sn,cn,bn,Tn]=ut.Util.getAxialAlignedBoundingBox([0,0,Kt,en],zt);this.ctx.fillRect(sn,cn,bn-sn,Tn-cn)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,ut.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,ut.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(jt,Bt){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(jt)&&jt.length===6&&this.transform(...jt),this.baseTransform=(0,ct.getCurrentTransform)(this.ctx),Bt)){const Dt=Bt[2]-Bt[0],zt=Bt[3]-Bt[1];this.ctx.rect(Bt[0],Bt[1],Dt,zt),this.current.updateRectMinMax((0,ct.getCurrentTransform)(this.ctx),Bt),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(jt){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const Bt=this.ctx;jt.isolated||(0,ut.info)("TODO: Support non-isolated groups."),jt.knockout&&(0,ut.warn)("Knockout groups not supported.");const Dt=(0,ct.getCurrentTransform)(Bt);if(jt.matrix&&Bt.transform(...jt.matrix),!jt.bbox)throw new Error("Bounding box is required.");let zt=ut.Util.getAxialAlignedBoundingBox(jt.bbox,(0,ct.getCurrentTransform)(Bt));const Kt=[0,0,Bt.canvas.width,Bt.canvas.height];zt=ut.Util.intersect(zt,Kt)||[0,0,0,0];const en=Math.floor(zt[0]),sn=Math.floor(zt[1]);let cn=Math.max(Math.ceil(zt[2])-en,1),bn=Math.max(Math.ceil(zt[3])-sn,1),Tn=1,kn=1;cn>gt&&(Tn=cn/gt,cn=gt),bn>gt&&(kn=bn/gt,bn=gt),this.current.startNewPathAndClipBox([0,0,cn,bn]);let In="groupAt"+this.groupLevel;jt.smask&&(In+="_smask_"+this.smaskCounter++%2);const Hn=this.cachedCanvases.getCanvas(In,cn,bn),Fn=Hn.context;Fn.scale(1/Tn,1/kn),Fn.translate(-en,-sn),Fn.transform(...Dt),jt.smask?this.smaskStack.push({canvas:Hn.canvas,context:Fn,offsetX:en,offsetY:sn,scaleX:Tn,scaleY:kn,subtype:jt.smask.subtype,backdrop:jt.smask.backdrop,transferMap:jt.smask.transferMap||null,startTransformInverse:null}):(Bt.setTransform(1,0,0,1,0,0),Bt.translate(en,sn),Bt.scale(Tn,kn),Bt.save()),Tt(Bt,Fn),this.ctx=Fn,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(Bt),this.groupLevel++}endGroup(jt){if(!this.contentVisible)return;this.groupLevel--;const Bt=this.ctx,Dt=this.groupStack.pop();if(this.ctx=Dt,this.ctx.imageSmoothingEnabled=!1,jt.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const zt=(0,ct.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...zt);const Kt=ut.Util.getAxialAlignedBoundingBox([0,0,Bt.canvas.width,Bt.canvas.height],zt);this.ctx.drawImage(Bt.canvas,0,0),this.ctx.restore(),this.compose(Kt)}}beginAnnotation(jt,Bt,Dt,zt,Kt){if(Nn(this,nn,F1).call(this),$t(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(Bt)&&Bt.length===4){const en=Bt[2]-Bt[0],sn=Bt[3]-Bt[1];if(Kt&&this.annotationCanvasMap){Dt=Dt.slice(),Dt[4]-=Bt[0],Dt[5]-=Bt[1],Bt=Bt.slice(),Bt[0]=Bt[1]=0,Bt[2]=en,Bt[3]=sn;const[cn,bn]=ut.Util.singularValueDecompose2dScale((0,ct.getCurrentTransform)(this.ctx)),{viewportScale:Tn}=this,kn=Math.ceil(en*this.outputScaleX*Tn),In=Math.ceil(sn*this.outputScaleY*Tn);this.annotationCanvas=this.canvasFactory.create(kn,In);const{canvas:Hn,context:Fn}=this.annotationCanvas;this.annotationCanvasMap.set(jt,Hn),this.annotationCanvas.savedCtx=this.ctx,this.ctx=Fn,this.ctx.save(),this.ctx.setTransform(cn,0,0,-bn,0,sn*bn),$t(this.ctx)}else $t(this.ctx),this.ctx.rect(Bt[0],Bt[1],en,sn),this.ctx.clip(),this.endPath()}this.current=new St(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...Dt),this.transform(...zt)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),Nn(this,rn,j1).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(jt){if(!this.contentVisible)return;const Bt=jt.count;jt=this.getObject(jt.data,jt),jt.count=Bt;const Dt=this.ctx,zt=this.processingType3;if(zt&&(zt.compiled===void 0&&(zt.compiled=xt(jt)),zt.compiled)){zt.compiled(Dt);return}const Kt=this._createMaskCanvas(jt),en=Kt.canvas;Dt.save(),Dt.setTransform(1,0,0,1,0,0),Dt.drawImage(en,Kt.offsetX,Kt.offsetY),Dt.restore(),this.compose()}paintImageMaskXObjectRepeat(jt,Bt,Dt=0,zt=0,Kt,en){if(!this.contentVisible)return;jt=this.getObject(jt.data,jt);const sn=this.ctx;sn.save();const cn=(0,ct.getCurrentTransform)(sn);sn.transform(Bt,Dt,zt,Kt,0,0);const bn=this._createMaskCanvas(jt);sn.setTransform(1,0,0,1,bn.offsetX-cn[4],bn.offsetY-cn[5]);for(let Tn=0,kn=en.length;Tn<kn;Tn+=2){const In=ut.Util.transform(cn,[Bt,Dt,zt,Kt,en[Tn],en[Tn+1]]),[Hn,Fn]=ut.Util.applyTransform([0,0],In);sn.drawImage(bn.canvas,Hn,Fn)}sn.restore(),this.compose()}paintImageMaskXObjectGroup(jt){if(!this.contentVisible)return;const Bt=this.ctx,Dt=this.current.fillColor,zt=this.current.patternFill;for(const Kt of jt){const{data:en,width:sn,height:cn,transform:bn}=Kt,Tn=this.cachedCanvases.getCanvas("maskCanvas",sn,cn),kn=Tn.context;kn.save();const In=this.getObject(en,Kt);At(kn,In),kn.globalCompositeOperation="source-in",kn.fillStyle=zt?Dt.getPattern(kn,this,(0,ct.getCurrentTransformInverse)(Bt),dt.PathType.FILL):Dt,kn.fillRect(0,0,sn,cn),kn.restore(),Bt.save(),Bt.transform(...bn),Bt.scale(1,-1),kt(Bt,Tn.canvas,0,0,sn,cn,0,-1,1,1),Bt.restore()}this.compose()}paintImageXObject(jt){if(!this.contentVisible)return;const Bt=this.getObject(jt);if(!Bt){(0,ut.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(Bt)}paintImageXObjectRepeat(jt,Bt,Dt,zt){if(!this.contentVisible)return;const Kt=this.getObject(jt);if(!Kt){(0,ut.warn)("Dependent image isn't ready yet");return}const en=Kt.width,sn=Kt.height,cn=[];for(let bn=0,Tn=zt.length;bn<Tn;bn+=2)cn.push({transform:[Bt,0,0,Dt,zt[bn],zt[bn+1]],x:0,y:0,w:en,h:sn});this.paintInlineImageXObjectGroup(Kt,cn)}applyTransferMapsToCanvas(jt){return this.current.transferMaps!=="none"&&(jt.filter=this.current.transferMaps,jt.drawImage(jt.canvas,0,0),jt.filter="none"),jt.canvas}applyTransferMapsToBitmap(jt){if(this.current.transferMaps==="none")return jt.bitmap;const{bitmap:Bt,width:Dt,height:zt}=jt,Kt=this.cachedCanvases.getCanvas("inlineImage",Dt,zt),en=Kt.context;return en.filter=this.current.transferMaps,en.drawImage(Bt,0,0),en.filter="none",Kt.canvas}paintInlineImageXObject(jt){if(!this.contentVisible)return;const Bt=jt.width,Dt=jt.height,zt=this.ctx;if(this.save(),!ut.isNodeJS){const{filter:sn}=zt;sn!=="none"&&sn!==""&&(zt.filter="none")}zt.scale(1/Bt,-1/Dt);let Kt;if(jt.bitmap)Kt=this.applyTransferMapsToBitmap(jt);else if(typeof HTMLElement=="function"&&jt instanceof HTMLElement||!jt.data)Kt=jt;else{const cn=this.cachedCanvases.getCanvas("inlineImage",Bt,Dt).context;Ot(cn,jt),Kt=this.applyTransferMapsToCanvas(cn)}const en=this._scaleImage(Kt,(0,ct.getCurrentTransformInverse)(zt));zt.imageSmoothingEnabled=Ht((0,ct.getCurrentTransform)(zt),jt.interpolate),kt(zt,en.img,0,0,en.paintWidth,en.paintHeight,0,-Dt,Bt,Dt),this.compose(),this.restore()}paintInlineImageXObjectGroup(jt,Bt){if(!this.contentVisible)return;const Dt=this.ctx;let zt;if(jt.bitmap)zt=jt.bitmap;else{const Kt=jt.width,en=jt.height,cn=this.cachedCanvases.getCanvas("inlineImage",Kt,en).context;Ot(cn,jt),zt=this.applyTransferMapsToCanvas(cn)}for(const Kt of Bt)Dt.save(),Dt.transform(...Kt.transform),Dt.scale(1,-1),kt(Dt,zt,Kt.x,Kt.y,Kt.w,Kt.h,0,-1,1,1),Dt.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(jt){}markPointProps(jt,Bt){}beginMarkedContent(jt){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(jt,Bt){jt==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(Bt)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(jt){const Bt=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(jt);const Dt=this.ctx;this.pendingClip&&(Bt||(this.pendingClip===tn?Dt.clip("evenodd"):Dt.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),Dt.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const jt=(0,ct.getCurrentTransform)(this.ctx);if(jt[1]===0&&jt[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(jt[0]),Math.abs(jt[3]));else{const Bt=Math.abs(jt[0]*jt[3]-jt[2]*jt[1]),Dt=Math.hypot(jt[0],jt[2]),zt=Math.hypot(jt[1],jt[3]);this._cachedGetSinglePixelWidth=Math.max(Dt,zt)/Bt}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:jt}=this.current,{a:Bt,b:Dt,c:zt,d:Kt}=this.ctx.getTransform();let en,sn;if(Dt===0&&zt===0){const cn=Math.abs(Bt),bn=Math.abs(Kt);if(cn===bn)if(jt===0)en=sn=1/cn;else{const Tn=cn*jt;en=sn=Tn<1?1/Tn:1}else if(jt===0)en=1/cn,sn=1/bn;else{const Tn=cn*jt,kn=bn*jt;en=Tn<1?1/Tn:1,sn=kn<1?1/kn:1}}else{const cn=Math.abs(Bt*Kt-Dt*zt),bn=Math.hypot(Bt,Dt),Tn=Math.hypot(zt,Kt);if(jt===0)en=Tn/cn,sn=bn/cn;else{const kn=jt*cn;en=Tn>kn?Tn/kn:1,sn=bn>kn?bn/kn:1}}this._cachedScaleForStroking[0]=en,this._cachedScaleForStroking[1]=sn}return this._cachedScaleForStroking}rescaleAndStroke(jt){const{ctx:Bt}=this,{lineWidth:Dt}=this.current,[zt,Kt]=this.getScaleForStroking();if(Bt.lineWidth=Dt||1,zt===1&&Kt===1){Bt.stroke();return}const en=Bt.getLineDash();if(jt&&Bt.save(),Bt.scale(zt,Kt),en.length>0){const sn=Math.max(zt,Kt);Bt.setLineDash(en.map(cn=>cn/sn)),Bt.lineDashOffset/=sn}Bt.stroke(),jt&&Bt.restore()}isContentVisible(){for(let jt=this.markedContentStack.length-1;jt>=0;jt--)if(!this.markedContentStack[jt].visible)return!1;return!0}};nn=new WeakSet,F1=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},rn=new WeakSet,j1=function(){if(this.pageColors){const jt=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(jt!=="none"){const Bt=this.ctx.filter;this.ctx.filter=jt,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=Bt}}};let ln=Zt;at.CanvasGraphics=ln;for(const Wt in ut.OPS)ln.prototype[Wt]!==void 0&&(ln.prototype[ut.OPS[Wt]]=ln.prototype[Wt])},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.TilingPattern=at.PathType=void 0,at.getShadingPattern=bt;var ut=lt(1),ct=lt(6);const dt={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};at.PathType=dt;function ft(xt,St){if(!St)return;const Ot=St[2]-St[0],At=St[3]-St[1],Tt=new Path2D;Tt.rect(St[0],St[1],Ot,At),xt.clip(Tt)}class mt{constructor(){this.constructor===mt&&(0,ut.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,ut.unreachable)("Abstract method `getPattern` called.")}}class pt extends mt{constructor(St){super(),this._type=St[1],this._bbox=St[2],this._colorStops=St[3],this._p0=St[4],this._p1=St[5],this._r0=St[6],this._r1=St[7],this.matrix=null}_createGradient(St){let Ot;this._type==="axial"?Ot=St.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(Ot=St.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const At of this._colorStops)Ot.addColorStop(At[0],At[1]);return Ot}getPattern(St,Ot,At,Tt){let $t;if(Tt===dt.STROKE||Tt===dt.FILL){const Lt=Ot.current.getClippedPathBoundingBox(Tt,(0,ct.getCurrentTransform)(St))||[0,0,0,0],Rt=Math.ceil(Lt[2]-Lt[0])||1,It=Math.ceil(Lt[3]-Lt[1])||1,Ft=Ot.cachedCanvases.getCanvas("pattern",Rt,It,!0),Mt=Ft.context;Mt.clearRect(0,0,Mt.canvas.width,Mt.canvas.height),Mt.beginPath(),Mt.rect(0,0,Mt.canvas.width,Mt.canvas.height),Mt.translate(-Lt[0],-Lt[1]),At=ut.Util.transform(At,[1,0,0,1,Lt[0],Lt[1]]),Mt.transform(...Ot.baseTransform),this.matrix&&Mt.transform(...this.matrix),ft(Mt,this._bbox),Mt.fillStyle=this._createGradient(Mt),Mt.fill(),$t=St.createPattern(Ft.canvas,"no-repeat");const Ht=new DOMMatrix(At);$t.setTransform(Ht)}else ft(St,this._bbox),$t=this._createGradient(St);return $t}}function gt(xt,St,Ot,At,Tt,$t,Lt,Rt){const It=St.coords,Ft=St.colors,Mt=xt.data,Ht=xt.width*4;let Vt;It[Ot+1]>It[At+1]&&(Vt=Ot,Ot=At,At=Vt,Vt=$t,$t=Lt,Lt=Vt),It[At+1]>It[Tt+1]&&(Vt=At,At=Tt,Tt=Vt,Vt=Lt,Lt=Rt,Rt=Vt),It[Ot+1]>It[At+1]&&(Vt=Ot,Ot=At,At=Vt,Vt=$t,$t=Lt,Lt=Vt);const Nt=(It[Ot]+St.offsetX)*St.scaleX,Gt=(It[Ot+1]+St.offsetY)*St.scaleY,tn=(It[At]+St.offsetX)*St.scaleX,ln=(It[At+1]+St.offsetY)*St.scaleY,nn=(It[Tt]+St.offsetX)*St.scaleX,on=(It[Tt+1]+St.offsetY)*St.scaleY;if(Gt>=on)return;const rn=Ft[$t],Jt=Ft[$t+1],Zt=Ft[$t+2],Wt=Ft[Lt],jt=Ft[Lt+1],Bt=Ft[Lt+2],Dt=Ft[Rt],zt=Ft[Rt+1],Kt=Ft[Rt+2],en=Math.round(Gt),sn=Math.round(on);let cn,bn,Tn,kn,In,Hn,Fn,wn;for(let Mn=en;Mn<=sn;Mn++){if(Mn<ln){const Cn=Mn<Gt?0:(Gt-Mn)/(Gt-ln);cn=Nt-(Nt-tn)*Cn,bn=rn-(rn-Wt)*Cn,Tn=Jt-(Jt-jt)*Cn,kn=Zt-(Zt-Bt)*Cn}else{let Cn;Mn>on?Cn=1:ln===on?Cn=0:Cn=(ln-Mn)/(ln-on),cn=tn-(tn-nn)*Cn,bn=Wt-(Wt-Dt)*Cn,Tn=jt-(jt-zt)*Cn,kn=Bt-(Bt-Kt)*Cn}let Dn;Mn<Gt?Dn=0:Mn>on?Dn=1:Dn=(Gt-Mn)/(Gt-on),In=Nt-(Nt-nn)*Dn,Hn=rn-(rn-Dt)*Dn,Fn=Jt-(Jt-zt)*Dn,wn=Zt-(Zt-Kt)*Dn;const Un=Math.round(Math.min(cn,In)),Sn=Math.round(Math.max(cn,In));let On=Ht*Mn+Un*4;for(let Cn=Un;Cn<=Sn;Cn++)Dn=(cn-Cn)/(cn-In),Dn<0?Dn=0:Dn>1&&(Dn=1),Mt[On++]=bn-(bn-Hn)*Dn|0,Mt[On++]=Tn-(Tn-Fn)*Dn|0,Mt[On++]=kn-(kn-wn)*Dn|0,Mt[On++]=255}}function vt(xt,St,Ot){const At=St.coords,Tt=St.colors;let $t,Lt;switch(St.type){case"lattice":const Rt=St.verticesPerRow,It=Math.floor(At.length/Rt)-1,Ft=Rt-1;for($t=0;$t<It;$t++){let Mt=$t*Rt;for(let Ht=0;Ht<Ft;Ht++,Mt++)gt(xt,Ot,At[Mt],At[Mt+1],At[Mt+Rt],Tt[Mt],Tt[Mt+1],Tt[Mt+Rt]),gt(xt,Ot,At[Mt+Rt+1],At[Mt+1],At[Mt+Rt],Tt[Mt+Rt+1],Tt[Mt+1],Tt[Mt+Rt])}break;case"triangles":for($t=0,Lt=At.length;$t<Lt;$t+=3)gt(xt,Ot,At[$t],At[$t+1],At[$t+2],Tt[$t],Tt[$t+1],Tt[$t+2]);break;default:throw new Error("illegal figure")}}class wt extends mt{constructor(St){super(),this._coords=St[2],this._colors=St[3],this._figures=St[4],this._bounds=St[5],this._bbox=St[7],this._background=St[8],this.matrix=null}_createMeshCanvas(St,Ot,At){const Rt=Math.floor(this._bounds[0]),It=Math.floor(this._bounds[1]),Ft=Math.ceil(this._bounds[2])-Rt,Mt=Math.ceil(this._bounds[3])-It,Ht=Math.min(Math.ceil(Math.abs(Ft*St[0]*1.1)),3e3),Vt=Math.min(Math.ceil(Math.abs(Mt*St[1]*1.1)),3e3),Nt=Ft/Ht,Gt=Mt/Vt,tn={coords:this._coords,colors:this._colors,offsetX:-Rt,offsetY:-It,scaleX:1/Nt,scaleY:1/Gt},ln=Ht+2*2,nn=Vt+2*2,on=At.getCanvas("mesh",ln,nn,!1),rn=on.context,Jt=rn.createImageData(Ht,Vt);if(Ot){const Wt=Jt.data;for(let jt=0,Bt=Wt.length;jt<Bt;jt+=4)Wt[jt]=Ot[0],Wt[jt+1]=Ot[1],Wt[jt+2]=Ot[2],Wt[jt+3]=255}for(const Wt of this._figures)vt(Jt,Wt,tn);return rn.putImageData(Jt,2,2),{canvas:on.canvas,offsetX:Rt-2*Nt,offsetY:It-2*Gt,scaleX:Nt,scaleY:Gt}}getPattern(St,Ot,At,Tt){ft(St,this._bbox);let $t;if(Tt===dt.SHADING)$t=ut.Util.singularValueDecompose2dScale((0,ct.getCurrentTransform)(St));else if($t=ut.Util.singularValueDecompose2dScale(Ot.baseTransform),this.matrix){const Rt=ut.Util.singularValueDecompose2dScale(this.matrix);$t=[$t[0]*Rt[0],$t[1]*Rt[1]]}const Lt=this._createMeshCanvas($t,Tt===dt.SHADING?null:this._background,Ot.cachedCanvases);return Tt!==dt.SHADING&&(St.setTransform(...Ot.baseTransform),this.matrix&&St.transform(...this.matrix)),St.translate(Lt.offsetX,Lt.offsetY),St.scale(Lt.scaleX,Lt.scaleY),St.createPattern(Lt.canvas,"no-repeat")}}class yt extends mt{getPattern(){return"hotpink"}}function bt(xt){switch(xt[0]){case"RadialAxial":return new pt(xt);case"Mesh":return new wt(xt);case"Dummy":return new yt}throw new Error(`Unknown IR type: ${xt[0]}`)}const Ct={COLORED:1,UNCOLORED:2},kt=class kt{constructor(St,Ot,At,Tt,$t){this.operatorList=St[2],this.matrix=St[3]||[1,0,0,1,0,0],this.bbox=St[4],this.xstep=St[5],this.ystep=St[6],this.paintType=St[7],this.tilingType=St[8],this.color=Ot,this.ctx=At,this.canvasGraphicsFactory=Tt,this.baseTransform=$t}createPatternCanvas(St){const Ot=this.operatorList,At=this.bbox,Tt=this.xstep,$t=this.ystep,Lt=this.paintType,Rt=this.tilingType,It=this.color,Ft=this.canvasGraphicsFactory;(0,ut.info)("TilingType: "+Rt);const Mt=At[0],Ht=At[1],Vt=At[2],Nt=At[3],Gt=ut.Util.singularValueDecompose2dScale(this.matrix),tn=ut.Util.singularValueDecompose2dScale(this.baseTransform),ln=[Gt[0]*tn[0],Gt[1]*tn[1]],nn=this.getSizeAndScale(Tt,this.ctx.canvas.width,ln[0]),on=this.getSizeAndScale($t,this.ctx.canvas.height,ln[1]),rn=St.cachedCanvases.getCanvas("pattern",nn.size,on.size,!0),Jt=rn.context,Zt=Ft.createCanvasGraphics(Jt);Zt.groupLevel=St.groupLevel,this.setFillAndStrokeStyleToContext(Zt,Lt,It);let Wt=Mt,jt=Ht,Bt=Vt,Dt=Nt;return Mt<0&&(Wt=0,Bt+=Math.abs(Mt)),Ht<0&&(jt=0,Dt+=Math.abs(Ht)),Jt.translate(-(nn.scale*Wt),-(on.scale*jt)),Zt.transform(nn.scale,0,0,on.scale,0,0),Jt.save(),this.clipBbox(Zt,Wt,jt,Bt,Dt),Zt.baseTransform=(0,ct.getCurrentTransform)(Zt.ctx),Zt.executeOperatorList(Ot),Zt.endDrawing(),{canvas:rn.canvas,scaleX:nn.scale,scaleY:on.scale,offsetX:Wt,offsetY:jt}}getSizeAndScale(St,Ot,At){St=Math.abs(St);const Tt=Math.max(kt.MAX_PATTERN_SIZE,Ot);let $t=Math.ceil(St*At);return $t>=Tt?$t=Tt:At=$t/St,{scale:At,size:$t}}clipBbox(St,Ot,At,Tt,$t){const Lt=Tt-Ot,Rt=$t-At;St.ctx.rect(Ot,At,Lt,Rt),St.current.updateRectMinMax((0,ct.getCurrentTransform)(St.ctx),[Ot,At,Tt,$t]),St.clip(),St.endPath()}setFillAndStrokeStyleToContext(St,Ot,At){const Tt=St.ctx,$t=St.current;switch(Ot){case Ct.COLORED:const Lt=this.ctx;Tt.fillStyle=Lt.fillStyle,Tt.strokeStyle=Lt.strokeStyle,$t.fillColor=Lt.fillStyle,$t.strokeColor=Lt.strokeStyle;break;case Ct.UNCOLORED:const Rt=ut.Util.makeHexColor(At[0],At[1],At[2]);Tt.fillStyle=Rt,Tt.strokeStyle=Rt,$t.fillColor=Rt,$t.strokeColor=Rt;break;default:throw new ut.FormatError(`Unsupported paint type: ${Ot}`)}}getPattern(St,Ot,At,Tt){let $t=At;Tt!==dt.SHADING&&($t=ut.Util.transform($t,Ot.baseTransform),this.matrix&&($t=ut.Util.transform($t,this.matrix)));const Lt=this.createPatternCanvas(Ot);let Rt=new DOMMatrix($t);Rt=Rt.translate(Lt.offsetX,Lt.offsetY),Rt=Rt.scale(1/Lt.scaleX,1/Lt.scaleY);const It=St.createPattern(Lt.canvas,"repeat");return It.setTransform(Rt),It}};Hr(kt,"MAX_PATTERN_SIZE",3e3);let Et=kt;at.TilingPattern=Et},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.convertBlackAndWhiteToRGBA=dt,at.convertToRGBA=ct,at.grayToRGBA=mt;var ut=lt(1);function ct(pt){switch(pt.kind){case ut.ImageKind.GRAYSCALE_1BPP:return dt(pt);case ut.ImageKind.RGB_24BPP:return ft(pt)}return null}function dt({src:pt,srcPos:gt=0,dest:vt,width:wt,height:yt,nonBlackColor:bt=4294967295,inverseDecode:Ct=!1}){const Et=ut.FeatureTest.isLittleEndian?4278190080:255,[kt,xt]=Ct?[bt,Et]:[Et,bt],St=wt>>3,Ot=wt&7,At=pt.length;vt=new Uint32Array(vt.buffer);let Tt=0;for(let $t=0;$t<yt;$t++){for(const Rt=gt+St;gt<Rt;gt++){const It=gt<At?pt[gt]:255;vt[Tt++]=It&128?xt:kt,vt[Tt++]=It&64?xt:kt,vt[Tt++]=It&32?xt:kt,vt[Tt++]=It&16?xt:kt,vt[Tt++]=It&8?xt:kt,vt[Tt++]=It&4?xt:kt,vt[Tt++]=It&2?xt:kt,vt[Tt++]=It&1?xt:kt}if(Ot===0)continue;const Lt=gt<At?pt[gt++]:255;for(let Rt=0;Rt<Ot;Rt++)vt[Tt++]=Lt&1<<7-Rt?xt:kt}return{srcPos:gt,destPos:Tt}}function ft({src:pt,srcPos:gt=0,dest:vt,destPos:wt=0,width:yt,height:bt}){let Ct=0;const Et=pt.length>>2,kt=new Uint32Array(pt.buffer,gt,Et);if(ut.FeatureTest.isLittleEndian){for(;Ct<Et-2;Ct+=3,wt+=4){const xt=kt[Ct],St=kt[Ct+1],Ot=kt[Ct+2];vt[wt]=xt|4278190080,vt[wt+1]=xt>>>24|St<<8|4278190080,vt[wt+2]=St>>>16|Ot<<16|4278190080,vt[wt+3]=Ot>>>8|4278190080}for(let xt=Ct*4,St=pt.length;xt<St;xt+=3)vt[wt++]=pt[xt]|pt[xt+1]<<8|pt[xt+2]<<16|4278190080}else{for(;Ct<Et-2;Ct+=3,wt+=4){const xt=kt[Ct],St=kt[Ct+1],Ot=kt[Ct+2];vt[wt]=xt|255,vt[wt+1]=xt<<24|St>>>8|255,vt[wt+2]=St<<16|Ot>>>16|255,vt[wt+3]=Ot<<8|255}for(let xt=Ct*4,St=pt.length;xt<St;xt+=3)vt[wt++]=pt[xt]<<24|pt[xt+1]<<16|pt[xt+2]<<8|255}return{srcPos:gt,destPos:wt}}function mt(pt,gt){if(ut.FeatureTest.isLittleEndian)for(let vt=0,wt=pt.length;vt<wt;vt++)gt[vt]=pt[vt]*65793|4278190080;else for(let vt=0,wt=pt.length;vt<wt;vt++)gt[vt]=pt[vt]*16843008|255}},(it,at)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.GlobalWorkerOptions=void 0;const lt=Object.create(null);at.GlobalWorkerOptions=lt,lt.workerPort=null,lt.workerSrc=""},(it,at,lt)=>{var pt,Xv,vt,Zv,yt,qp;Object.defineProperty(at,"__esModule",{value:!0}),at.MessageHandler=void 0;var ut=lt(1);const ct={UNKNOWN:0,DATA:1,ERROR:2},dt={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function ft(Ct){switch(Ct instanceof Error||typeof Ct=="object"&&Ct!==null||(0,ut.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),Ct.name){case"AbortException":return new ut.AbortException(Ct.message);case"MissingPDFException":return new ut.MissingPDFException(Ct.message);case"PasswordException":return new ut.PasswordException(Ct.message,Ct.code);case"UnexpectedResponseException":return new ut.UnexpectedResponseException(Ct.message,Ct.status);case"UnknownErrorException":return new ut.UnknownErrorException(Ct.message,Ct.details);default:return new ut.UnknownErrorException(Ct.message,Ct.toString())}}class mt{constructor(Et,kt,xt){An(this,pt);An(this,vt);An(this,yt);this.sourceName=Et,this.targetName=kt,this.comObj=xt,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=St=>{const Ot=St.data;if(Ot.targetName!==this.sourceName)return;if(Ot.stream){Nn(this,vt,Zv).call(this,Ot);return}if(Ot.callback){const Tt=Ot.callbackId,$t=this.callbackCapabilities[Tt];if(!$t)throw new Error(`Cannot resolve callback ${Tt}`);if(delete this.callbackCapabilities[Tt],Ot.callback===ct.DATA)$t.resolve(Ot.data);else if(Ot.callback===ct.ERROR)$t.reject(ft(Ot.reason));else throw new Error("Unexpected callback case");return}const At=this.actionHandler[Ot.action];if(!At)throw new Error(`Unknown action from worker: ${Ot.action}`);if(Ot.callbackId){const Tt=this.sourceName,$t=Ot.sourceName;new Promise(function(Lt){Lt(At(Ot.data))}).then(function(Lt){xt.postMessage({sourceName:Tt,targetName:$t,callback:ct.DATA,callbackId:Ot.callbackId,data:Lt})},function(Lt){xt.postMessage({sourceName:Tt,targetName:$t,callback:ct.ERROR,callbackId:Ot.callbackId,reason:ft(Lt)})});return}if(Ot.streamId){Nn(this,pt,Xv).call(this,Ot);return}At(Ot.data)},xt.addEventListener("message",this._onComObjOnMessage)}on(Et,kt){const xt=this.actionHandler;if(xt[Et])throw new Error(`There is already an actionName called "${Et}"`);xt[Et]=kt}send(Et,kt,xt){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:Et,data:kt},xt)}sendWithPromise(Et,kt,xt){const St=this.callbackId++,Ot=new ut.PromiseCapability;this.callbackCapabilities[St]=Ot;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:Et,callbackId:St,data:kt},xt)}catch(At){Ot.reject(At)}return Ot.promise}sendWithStream(Et,kt,xt,St){const Ot=this.streamId++,At=this.sourceName,Tt=this.targetName,$t=this.comObj;return new ReadableStream({start:Lt=>{const Rt=new ut.PromiseCapability;return this.streamControllers[Ot]={controller:Lt,startCall:Rt,pullCall:null,cancelCall:null,isClosed:!1},$t.postMessage({sourceName:At,targetName:Tt,action:Et,streamId:Ot,data:kt,desiredSize:Lt.desiredSize},St),Rt.promise},pull:Lt=>{const Rt=new ut.PromiseCapability;return this.streamControllers[Ot].pullCall=Rt,$t.postMessage({sourceName:At,targetName:Tt,stream:dt.PULL,streamId:Ot,desiredSize:Lt.desiredSize}),Rt.promise},cancel:Lt=>{(0,ut.assert)(Lt instanceof Error,"cancel must have a valid reason");const Rt=new ut.PromiseCapability;return this.streamControllers[Ot].cancelCall=Rt,this.streamControllers[Ot].isClosed=!0,$t.postMessage({sourceName:At,targetName:Tt,stream:dt.CANCEL,streamId:Ot,reason:ft(Lt)}),Rt.promise}},xt)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}pt=new WeakSet,Xv=function(Et){const kt=Et.streamId,xt=this.sourceName,St=Et.sourceName,Ot=this.comObj,At=this,Tt=this.actionHandler[Et.action],$t={enqueue(Lt,Rt=1,It){if(this.isCancelled)return;const Ft=this.desiredSize;this.desiredSize-=Rt,Ft>0&&this.desiredSize<=0&&(this.sinkCapability=new ut.PromiseCapability,this.ready=this.sinkCapability.promise),Ot.postMessage({sourceName:xt,targetName:St,stream:dt.ENQUEUE,streamId:kt,chunk:Lt},It)},close(){this.isCancelled||(this.isCancelled=!0,Ot.postMessage({sourceName:xt,targetName:St,stream:dt.CLOSE,streamId:kt}),delete At.streamSinks[kt])},error(Lt){(0,ut.assert)(Lt instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,Ot.postMessage({sourceName:xt,targetName:St,stream:dt.ERROR,streamId:kt,reason:ft(Lt)}))},sinkCapability:new ut.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:Et.desiredSize,ready:null};$t.sinkCapability.resolve(),$t.ready=$t.sinkCapability.promise,this.streamSinks[kt]=$t,new Promise(function(Lt){Lt(Tt(Et.data,$t))}).then(function(){Ot.postMessage({sourceName:xt,targetName:St,stream:dt.START_COMPLETE,streamId:kt,success:!0})},function(Lt){Ot.postMessage({sourceName:xt,targetName:St,stream:dt.START_COMPLETE,streamId:kt,reason:ft(Lt)})})},vt=new WeakSet,Zv=function(Et){const kt=Et.streamId,xt=this.sourceName,St=Et.sourceName,Ot=this.comObj,At=this.streamControllers[kt],Tt=this.streamSinks[kt];switch(Et.stream){case dt.START_COMPLETE:Et.success?At.startCall.resolve():At.startCall.reject(ft(Et.reason));break;case dt.PULL_COMPLETE:Et.success?At.pullCall.resolve():At.pullCall.reject(ft(Et.reason));break;case dt.PULL:if(!Tt){Ot.postMessage({sourceName:xt,targetName:St,stream:dt.PULL_COMPLETE,streamId:kt,success:!0});break}Tt.desiredSize<=0&&Et.desiredSize>0&&Tt.sinkCapability.resolve(),Tt.desiredSize=Et.desiredSize,new Promise(function($t){var Lt;$t((Lt=Tt.onPull)==null?void 0:Lt.call(Tt))}).then(function(){Ot.postMessage({sourceName:xt,targetName:St,stream:dt.PULL_COMPLETE,streamId:kt,success:!0})},function($t){Ot.postMessage({sourceName:xt,targetName:St,stream:dt.PULL_COMPLETE,streamId:kt,reason:ft($t)})});break;case dt.ENQUEUE:if((0,ut.assert)(At,"enqueue should have stream controller"),At.isClosed)break;At.controller.enqueue(Et.chunk);break;case dt.CLOSE:if((0,ut.assert)(At,"close should have stream controller"),At.isClosed)break;At.isClosed=!0,At.controller.close(),Nn(this,yt,qp).call(this,At,kt);break;case dt.ERROR:(0,ut.assert)(At,"error should have stream controller"),At.controller.error(ft(Et.reason)),Nn(this,yt,qp).call(this,At,kt);break;case dt.CANCEL_COMPLETE:Et.success?At.cancelCall.resolve():At.cancelCall.reject(ft(Et.reason)),Nn(this,yt,qp).call(this,At,kt);break;case dt.CANCEL:if(!Tt)break;new Promise(function($t){var Lt;$t((Lt=Tt.onCancel)==null?void 0:Lt.call(Tt,ft(Et.reason)))}).then(function(){Ot.postMessage({sourceName:xt,targetName:St,stream:dt.CANCEL_COMPLETE,streamId:kt,success:!0})},function($t){Ot.postMessage({sourceName:xt,targetName:St,stream:dt.CANCEL_COMPLETE,streamId:kt,reason:ft($t)})}),Tt.sinkCapability.reject(ft(Et.reason)),Tt.isCancelled=!0,delete this.streamSinks[kt];break;default:throw new Error("Unexpected stream case")}},yt=new WeakSet,qp=async function(Et,kt){var xt,St,Ot;await Promise.allSettled([(xt=Et.startCall)==null?void 0:xt.promise,(St=Et.pullCall)==null?void 0:St.promise,(Ot=Et.cancelCall)==null?void 0:Ot.promise]),delete this.streamControllers[kt]},at.MessageHandler=mt},(it,at,lt)=>{var dt,ft;Object.defineProperty(at,"__esModule",{value:!0}),at.Metadata=void 0;var ut=lt(1);class ct{constructor({parsedData:pt,rawData:gt}){An(this,dt,void 0);An(this,ft,void 0);Wn(this,dt,pt),Wn(this,ft,gt)}getRaw(){return Yt(this,ft)}get(pt){return Yt(this,dt).get(pt)??null}getAll(){return(0,ut.objectFromMap)(Yt(this,dt))}has(pt){return Yt(this,dt).has(pt)}}dt=new WeakMap,ft=new WeakMap,at.Metadata=ct},(it,at,lt)=>{var pt,gt,vt,wt,yt,bt,B1;Object.defineProperty(at,"__esModule",{value:!0}),at.OptionalContentConfig=void 0;var ut=lt(1),ct=lt(8);const dt=Symbol("INTERNAL");class ft{constructor(kt,xt){An(this,pt,!0);this.name=kt,this.intent=xt}get visible(){return Yt(this,pt)}_setVisible(kt,xt){kt!==dt&&(0,ut.unreachable)("Internal method `_setVisible` called."),Wn(this,pt,xt)}}pt=new WeakMap;class mt{constructor(kt){An(this,bt);An(this,gt,null);An(this,vt,new Map);An(this,wt,null);An(this,yt,null);if(this.name=null,this.creator=null,kt!==null){this.name=kt.name,this.creator=kt.creator,Wn(this,yt,kt.order);for(const xt of kt.groups)Yt(this,vt).set(xt.id,new ft(xt.name,xt.intent));if(kt.baseState==="OFF")for(const xt of Yt(this,vt).values())xt._setVisible(dt,!1);for(const xt of kt.on)Yt(this,vt).get(xt)._setVisible(dt,!0);for(const xt of kt.off)Yt(this,vt).get(xt)._setVisible(dt,!1);Wn(this,wt,this.getHash())}}isVisible(kt){if(Yt(this,vt).size===0)return!0;if(!kt)return(0,ut.warn)("Optional content group not defined."),!0;if(kt.type==="OCG")return Yt(this,vt).has(kt.id)?Yt(this,vt).get(kt.id).visible:((0,ut.warn)(`Optional content group not found: ${kt.id}`),!0);if(kt.type==="OCMD"){if(kt.expression)return Nn(this,bt,B1).call(this,kt.expression);if(!kt.policy||kt.policy==="AnyOn"){for(const xt of kt.ids){if(!Yt(this,vt).has(xt))return(0,ut.warn)(`Optional content group not found: ${xt}`),!0;if(Yt(this,vt).get(xt).visible)return!0}return!1}else if(kt.policy==="AllOn"){for(const xt of kt.ids){if(!Yt(this,vt).has(xt))return(0,ut.warn)(`Optional content group not found: ${xt}`),!0;if(!Yt(this,vt).get(xt).visible)return!1}return!0}else if(kt.policy==="AnyOff"){for(const xt of kt.ids){if(!Yt(this,vt).has(xt))return(0,ut.warn)(`Optional content group not found: ${xt}`),!0;if(!Yt(this,vt).get(xt).visible)return!0}return!1}else if(kt.policy==="AllOff"){for(const xt of kt.ids){if(!Yt(this,vt).has(xt))return(0,ut.warn)(`Optional content group not found: ${xt}`),!0;if(Yt(this,vt).get(xt).visible)return!1}return!0}return(0,ut.warn)(`Unknown optional content policy ${kt.policy}.`),!0}return(0,ut.warn)(`Unknown group type ${kt.type}.`),!0}setVisibility(kt,xt=!0){if(!Yt(this,vt).has(kt)){(0,ut.warn)(`Optional content group not found: ${kt}`);return}Yt(this,vt).get(kt)._setVisible(dt,!!xt),Wn(this,gt,null)}get hasInitialVisibility(){return Yt(this,wt)===null||this.getHash()===Yt(this,wt)}getOrder(){return Yt(this,vt).size?Yt(this,yt)?Yt(this,yt).slice():[...Yt(this,vt).keys()]:null}getGroups(){return Yt(this,vt).size>0?(0,ut.objectFromMap)(Yt(this,vt)):null}getGroup(kt){return Yt(this,vt).get(kt)||null}getHash(){if(Yt(this,gt)!==null)return Yt(this,gt);const kt=new ct.MurmurHash3_64;for(const[xt,St]of Yt(this,vt))kt.update(`${xt}:${St.visible}`);return Wn(this,gt,kt.hexdigest())}}gt=new WeakMap,vt=new WeakMap,wt=new WeakMap,yt=new WeakMap,bt=new WeakSet,B1=function(kt){const xt=kt.length;if(xt<2)return!0;const St=kt[0];for(let Ot=1;Ot<xt;Ot++){const At=kt[Ot];let Tt;if(Array.isArray(At))Tt=Nn(this,bt,B1).call(this,At);else if(Yt(this,vt).has(At))Tt=Yt(this,vt).get(At).visible;else return(0,ut.warn)(`Optional content group not found: ${At}`),!0;switch(St){case"And":if(!Tt)return!1;break;case"Or":if(Tt)return!0;break;case"Not":return!Tt;default:return!0}}return St==="And"},at.OptionalContentConfig=mt},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.PDFDataTransportStream=void 0;var ut=lt(1),ct=lt(6);class dt{constructor({length:gt,initialData:vt,progressiveDone:wt=!1,contentDispositionFilename:yt=null,disableRange:bt=!1,disableStream:Ct=!1},Et){if((0,ut.assert)(Et,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=wt,this._contentDispositionFilename=yt,(vt==null?void 0:vt.length)>0){const kt=vt instanceof Uint8Array&&vt.byteLength===vt.buffer.byteLength?vt.buffer:new Uint8Array(vt).buffer;this._queuedChunks.push(kt)}this._pdfDataRangeTransport=Et,this._isStreamingSupported=!Ct,this._isRangeSupported=!bt,this._contentLength=gt,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((kt,xt)=>{this._onReceiveData({begin:kt,chunk:xt})}),this._pdfDataRangeTransport.addProgressListener((kt,xt)=>{this._onProgress({loaded:kt,total:xt})}),this._pdfDataRangeTransport.addProgressiveReadListener(kt=>{this._onReceiveData({chunk:kt})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:gt,chunk:vt}){const wt=vt instanceof Uint8Array&&vt.byteLength===vt.buffer.byteLength?vt.buffer:new Uint8Array(vt).buffer;if(gt===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(wt):this._queuedChunks.push(wt);else{const yt=this._rangeReaders.some(function(bt){return bt._begin!==gt?!1:(bt._enqueue(wt),!0)});(0,ut.assert)(yt,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var gt;return((gt=this._fullRequestReader)==null?void 0:gt._loaded)??0}_onProgress(gt){var vt,wt,yt,bt;gt.total===void 0?(wt=(vt=this._rangeReaders[0])==null?void 0:vt.onProgress)==null||wt.call(vt,{loaded:gt.loaded}):(bt=(yt=this._fullRequestReader)==null?void 0:yt.onProgress)==null||bt.call(yt,{loaded:gt.loaded,total:gt.total})}_onProgressiveDone(){var gt;(gt=this._fullRequestReader)==null||gt.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(gt){const vt=this._rangeReaders.indexOf(gt);vt>=0&&this._rangeReaders.splice(vt,1)}getFullReader(){(0,ut.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const gt=this._queuedChunks;return this._queuedChunks=null,new ft(this,gt,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(gt,vt){if(vt<=this._progressiveDataLength)return null;const wt=new mt(this,gt,vt);return this._pdfDataRangeTransport.requestDataRange(gt,vt),this._rangeReaders.push(wt),wt}cancelAllRequests(gt){var vt;(vt=this._fullRequestReader)==null||vt.cancel(gt);for(const wt of this._rangeReaders.slice(0))wt.cancel(gt);this._pdfDataRangeTransport.abort()}}at.PDFDataTransportStream=dt;class ft{constructor(gt,vt,wt=!1,yt=null){this._stream=gt,this._done=wt||!1,this._filename=(0,ct.isPdfFile)(yt)?yt:null,this._queuedChunks=vt||[],this._loaded=0;for(const bt of this._queuedChunks)this._loaded+=bt.byteLength;this._requests=[],this._headersReady=Promise.resolve(),gt._fullRequestReader=this,this.onProgress=null}_enqueue(gt){this._done||(this._requests.length>0?this._requests.shift().resolve({value:gt,done:!1}):this._queuedChunks.push(gt),this._loaded+=gt.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const gt=new ut.PromiseCapability;return this._requests.push(gt),gt.promise}cancel(gt){this._done=!0;for(const vt of this._requests)vt.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class mt{constructor(gt,vt,wt){this._stream=gt,this._begin=vt,this._end=wt,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(gt){if(!this._done){if(this._requests.length===0)this._queuedChunk=gt;else{this._requests.shift().resolve({value:gt,done:!1});for(const wt of this._requests)wt.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const vt=this._queuedChunk;return this._queuedChunk=null,{value:vt,done:!1}}if(this._done)return{value:void 0,done:!0};const gt=new ut.PromiseCapability;return this._requests.push(gt),gt.promise}cancel(gt){this._done=!0;for(const vt of this._requests)vt.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.PDFFetchStream=void 0;var ut=lt(1),ct=lt(20);function dt(wt,yt,bt){return{method:"GET",headers:wt,signal:bt.signal,mode:"cors",credentials:yt?"include":"same-origin",redirect:"follow"}}function ft(wt){const yt=new Headers;for(const bt in wt){const Ct=wt[bt];Ct!==void 0&&yt.append(bt,Ct)}return yt}function mt(wt){return wt instanceof Uint8Array?wt.buffer:wt instanceof ArrayBuffer?wt:((0,ut.warn)(`getArrayBuffer - unexpected data format: ${wt}`),new Uint8Array(wt).buffer)}class pt{constructor(yt){this.source=yt,this.isHttp=/^https?:/i.test(yt.url),this.httpHeaders=this.isHttp&&yt.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var yt;return((yt=this._fullRequestReader)==null?void 0:yt._loaded)??0}getFullReader(){return(0,ut.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new gt(this),this._fullRequestReader}getRangeReader(yt,bt){if(bt<=this._progressiveDataLength)return null;const Ct=new vt(this,yt,bt);return this._rangeRequestReaders.push(Ct),Ct}cancelAllRequests(yt){var bt;(bt=this._fullRequestReader)==null||bt.cancel(yt);for(const Ct of this._rangeRequestReaders.slice(0))Ct.cancel(yt)}}at.PDFFetchStream=pt;class gt{constructor(yt){this._stream=yt,this._reader=null,this._loaded=0,this._filename=null;const bt=yt.source;this._withCredentials=bt.withCredentials||!1,this._contentLength=bt.length,this._headersCapability=new ut.PromiseCapability,this._disableRange=bt.disableRange||!1,this._rangeChunkSize=bt.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!bt.disableStream,this._isRangeSupported=!bt.disableRange,this._headers=ft(this._stream.httpHeaders);const Ct=bt.url;fetch(Ct,dt(this._headers,this._withCredentials,this._abortController)).then(Et=>{if(!(0,ct.validateResponseStatus)(Et.status))throw(0,ct.createResponseStatusError)(Et.status,Ct);this._reader=Et.body.getReader(),this._headersCapability.resolve();const kt=Ot=>Et.headers.get(Ot),{allowRangeRequests:xt,suggestedLength:St}=(0,ct.validateRangeRequestCapabilities)({getResponseHeader:kt,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=xt,this._contentLength=St||this._contentLength,this._filename=(0,ct.extractFilenameFromHeader)(kt),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new ut.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var Ct;await this._headersCapability.promise;const{value:yt,done:bt}=await this._reader.read();return bt?{value:yt,done:bt}:(this._loaded+=yt.byteLength,(Ct=this.onProgress)==null||Ct.call(this,{loaded:this._loaded,total:this._contentLength}),{value:mt(yt),done:!1})}cancel(yt){var bt;(bt=this._reader)==null||bt.cancel(yt),this._abortController.abort()}}class vt{constructor(yt,bt,Ct){this._stream=yt,this._reader=null,this._loaded=0;const Et=yt.source;this._withCredentials=Et.withCredentials||!1,this._readCapability=new ut.PromiseCapability,this._isStreamingSupported=!Et.disableStream,this._abortController=new AbortController,this._headers=ft(this._stream.httpHeaders),this._headers.append("Range",`bytes=${bt}-${Ct-1}`);const kt=Et.url;fetch(kt,dt(this._headers,this._withCredentials,this._abortController)).then(xt=>{if(!(0,ct.validateResponseStatus)(xt.status))throw(0,ct.createResponseStatusError)(xt.status,kt);this._readCapability.resolve(),this._reader=xt.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var Ct;await this._readCapability.promise;const{value:yt,done:bt}=await this._reader.read();return bt?{value:yt,done:bt}:(this._loaded+=yt.byteLength,(Ct=this.onProgress)==null||Ct.call(this,{loaded:this._loaded}),{value:mt(yt),done:!1})}cancel(yt){var bt;(bt=this._reader)==null||bt.cancel(yt),this._abortController.abort()}}},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.createResponseStatusError=pt,at.extractFilenameFromHeader=mt,at.validateRangeRequestCapabilities=ft,at.validateResponseStatus=gt;var ut=lt(1),ct=lt(21),dt=lt(6);function ft({getResponseHeader:vt,isHttp:wt,rangeChunkSize:yt,disableRange:bt}){const Ct={allowRangeRequests:!1,suggestedLength:void 0},Et=parseInt(vt("Content-Length"),10);return!Number.isInteger(Et)||(Ct.suggestedLength=Et,Et<=2*yt)||bt||!wt||vt("Accept-Ranges")!=="bytes"||(vt("Content-Encoding")||"identity")!=="identity"||(Ct.allowRangeRequests=!0),Ct}function mt(vt){const wt=vt("Content-Disposition");if(wt){let yt=(0,ct.getFilenameFromContentDispositionHeader)(wt);if(yt.includes("%"))try{yt=decodeURIComponent(yt)}catch{}if((0,dt.isPdfFile)(yt))return yt}return null}function pt(vt,wt){return vt===404||vt===0&&wt.startsWith("file:")?new ut.MissingPDFException('Missing PDF "'+wt+'".'):new ut.UnexpectedResponseException(`Unexpected server response (${vt}) while retrieving PDF "${wt}".`,vt)}function gt(vt){return vt===200||vt===206}},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.getFilenameFromContentDispositionHeader=ct;var ut=lt(1);function ct(dt){let ft=!0,mt=pt("filename\\*","i").exec(dt);if(mt){mt=mt[1];let Et=yt(mt);return Et=unescape(Et),Et=bt(Et),Et=Ct(Et),vt(Et)}if(mt=wt(dt),mt){const Et=Ct(mt);return vt(Et)}if(mt=pt("filename","i").exec(dt),mt){mt=mt[1];let Et=yt(mt);return Et=Ct(Et),vt(Et)}function pt(Et,kt){return new RegExp("(?:^|;)\\s*"+Et+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',kt)}function gt(Et,kt){if(Et){if(!/^[\x00-\xFF]+$/.test(kt))return kt;try{const xt=new TextDecoder(Et,{fatal:!0}),St=(0,ut.stringToBytes)(kt);kt=xt.decode(St),ft=!1}catch{}}return kt}function vt(Et){return ft&&/[\x80-\xff]/.test(Et)&&(Et=gt("utf-8",Et),ft&&(Et=gt("iso-8859-1",Et))),Et}function wt(Et){const kt=[];let xt;const St=pt("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(xt=St.exec(Et))!==null;){let[,At,Tt,$t]=xt;if(At=parseInt(At,10),At in kt){if(At===0)break;continue}kt[At]=[Tt,$t]}const Ot=[];for(let At=0;At<kt.length&&At in kt;++At){let[Tt,$t]=kt[At];$t=yt($t),Tt&&($t=unescape($t),At===0&&($t=bt($t))),Ot.push($t)}return Ot.join("")}function yt(Et){if(Et.startsWith('"')){const kt=Et.slice(1).split('\\"');for(let xt=0;xt<kt.length;++xt){const St=kt[xt].indexOf('"');St!==-1&&(kt[xt]=kt[xt].slice(0,St),kt.length=xt+1),kt[xt]=kt[xt].replaceAll(/\\(.)/g,"$1")}Et=kt.join('"')}return Et}function bt(Et){const kt=Et.indexOf("'");if(kt===-1)return Et;const xt=Et.slice(0,kt),Ot=Et.slice(kt+1).replace(/^[^']*'/,"");return gt(xt,Ot)}function Ct(Et){return!Et.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(Et)?Et:Et.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(kt,xt,St,Ot){if(St==="q"||St==="Q")return Ot=Ot.replaceAll("_"," "),Ot=Ot.replaceAll(/=([0-9a-fA-F]{2})/g,function(At,Tt){return String.fromCharCode(parseInt(Tt,16))}),gt(xt,Ot);try{Ot=atob(Ot)}catch{}return gt(xt,Ot)})}return""}},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.PDFNetworkStream=void 0;var ut=lt(1),ct=lt(20);const dt=200,ft=206;function mt(yt){const bt=yt.response;return typeof bt!="string"?bt:(0,ut.stringToBytes)(bt).buffer}class pt{constructor(bt,Ct={}){this.url=bt,this.isHttp=/^https?:/i.test(bt),this.httpHeaders=this.isHttp&&Ct.httpHeaders||Object.create(null),this.withCredentials=Ct.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(bt,Ct,Et){const kt={begin:bt,end:Ct};for(const xt in Et)kt[xt]=Et[xt];return this.request(kt)}requestFull(bt){return this.request(bt)}request(bt){const Ct=new XMLHttpRequest,Et=this.currXhrId++,kt=this.pendingRequests[Et]={xhr:Ct};Ct.open("GET",this.url),Ct.withCredentials=this.withCredentials;for(const xt in this.httpHeaders){const St=this.httpHeaders[xt];St!==void 0&&Ct.setRequestHeader(xt,St)}return this.isHttp&&"begin"in bt&&"end"in bt?(Ct.setRequestHeader("Range",`bytes=${bt.begin}-${bt.end-1}`),kt.expectedStatus=ft):kt.expectedStatus=dt,Ct.responseType="arraybuffer",bt.onError&&(Ct.onerror=function(xt){bt.onError(Ct.status)}),Ct.onreadystatechange=this.onStateChange.bind(this,Et),Ct.onprogress=this.onProgress.bind(this,Et),kt.onHeadersReceived=bt.onHeadersReceived,kt.onDone=bt.onDone,kt.onError=bt.onError,kt.onProgress=bt.onProgress,Ct.send(null),Et}onProgress(bt,Ct){var kt;const Et=this.pendingRequests[bt];Et&&((kt=Et.onProgress)==null||kt.call(Et,Ct))}onStateChange(bt,Ct){var At,Tt,$t;const Et=this.pendingRequests[bt];if(!Et)return;const kt=Et.xhr;if(kt.readyState>=2&&Et.onHeadersReceived&&(Et.onHeadersReceived(),delete Et.onHeadersReceived),kt.readyState!==4||!(bt in this.pendingRequests))return;if(delete this.pendingRequests[bt],kt.status===0&&this.isHttp){(At=Et.onError)==null||At.call(Et,kt.status);return}const xt=kt.status||dt;if(!(xt===dt&&Et.expectedStatus===ft)&&xt!==Et.expectedStatus){(Tt=Et.onError)==null||Tt.call(Et,kt.status);return}const Ot=mt(kt);if(xt===ft){const Lt=kt.getResponseHeader("Content-Range"),Rt=/bytes (\d+)-(\d+)\/(\d+)/.exec(Lt);Et.onDone({begin:parseInt(Rt[1],10),chunk:Ot})}else Ot?Et.onDone({begin:0,chunk:Ot}):($t=Et.onError)==null||$t.call(Et,kt.status)}getRequestXhr(bt){return this.pendingRequests[bt].xhr}isPendingRequest(bt){return bt in this.pendingRequests}abortRequest(bt){const Ct=this.pendingRequests[bt].xhr;delete this.pendingRequests[bt],Ct.abort()}}class gt{constructor(bt){this._source=bt,this._manager=new pt(bt.url,{httpHeaders:bt.httpHeaders,withCredentials:bt.withCredentials}),this._rangeChunkSize=bt.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(bt){const Ct=this._rangeRequestReaders.indexOf(bt);Ct>=0&&this._rangeRequestReaders.splice(Ct,1)}getFullReader(){return(0,ut.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new vt(this._manager,this._source),this._fullRequestReader}getRangeReader(bt,Ct){const Et=new wt(this._manager,bt,Ct);return Et.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(Et),Et}cancelAllRequests(bt){var Ct;(Ct=this._fullRequestReader)==null||Ct.cancel(bt);for(const Et of this._rangeRequestReaders.slice(0))Et.cancel(bt)}}at.PDFNetworkStream=gt;class vt{constructor(bt,Ct){this._manager=bt;const Et={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=Ct.url,this._fullRequestId=bt.requestFull(Et),this._headersReceivedCapability=new ut.PromiseCapability,this._disableRange=Ct.disableRange||!1,this._contentLength=Ct.length,this._rangeChunkSize=Ct.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const bt=this._fullRequestId,Ct=this._manager.getRequestXhr(bt),Et=St=>Ct.getResponseHeader(St),{allowRangeRequests:kt,suggestedLength:xt}=(0,ct.validateRangeRequestCapabilities)({getResponseHeader:Et,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});kt&&(this._isRangeSupported=!0),this._contentLength=xt||this._contentLength,this._filename=(0,ct.extractFilenameFromHeader)(Et),this._isRangeSupported&&this._manager.abortRequest(bt),this._headersReceivedCapability.resolve()}_onDone(bt){if(bt&&(this._requests.length>0?this._requests.shift().resolve({value:bt.chunk,done:!1}):this._cachedChunks.push(bt.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const Ct of this._requests)Ct.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(bt){this._storedError=(0,ct.createResponseStatusError)(bt,this._url),this._headersReceivedCapability.reject(this._storedError);for(const Ct of this._requests)Ct.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(bt){var Ct;(Ct=this.onProgress)==null||Ct.call(this,{loaded:bt.loaded,total:bt.lengthComputable?bt.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const bt=new ut.PromiseCapability;return this._requests.push(bt),bt.promise}cancel(bt){this._done=!0,this._headersReceivedCapability.reject(bt);for(const Ct of this._requests)Ct.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class wt{constructor(bt,Ct,Et){this._manager=bt;const kt={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=bt.url,this._requestId=bt.requestRange(Ct,Et,kt),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var bt;(bt=this.onClosed)==null||bt.call(this,this)}_onDone(bt){const Ct=bt.chunk;this._requests.length>0?this._requests.shift().resolve({value:Ct,done:!1}):this._queuedChunk=Ct,this._done=!0;for(const Et of this._requests)Et.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(bt){this._storedError=(0,ct.createResponseStatusError)(bt,this._url);for(const Ct of this._requests)Ct.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(bt){var Ct;this.isStreamingSupported||(Ct=this.onProgress)==null||Ct.call(this,{loaded:bt.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const Ct=this._queuedChunk;return this._queuedChunk=null,{value:Ct,done:!1}}if(this._done)return{value:void 0,done:!0};const bt=new ut.PromiseCapability;return this._requests.push(bt),bt.promise}cancel(bt){this._done=!0;for(const Ct of this._requests)Ct.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.PDFNodeStream=void 0;var ut=lt(1),ct=lt(20);const dt=/^file:\/\/\/[a-zA-Z]:\//;function ft(Et){const kt=require$$5,xt=kt.parse(Et);return xt.protocol==="file:"||xt.host?xt:/^[a-z]:[/\\]/i.test(Et)?kt.parse(`file:///${Et}`):(xt.host||(xt.protocol="file:"),xt)}class mt{constructor(kt){this.source=kt,this.url=ft(kt.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&kt.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var kt;return((kt=this._fullRequestReader)==null?void 0:kt._loaded)??0}getFullReader(){return(0,ut.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new bt(this):new wt(this),this._fullRequestReader}getRangeReader(kt,xt){if(xt<=this._progressiveDataLength)return null;const St=this.isFsUrl?new Ct(this,kt,xt):new yt(this,kt,xt);return this._rangeRequestReaders.push(St),St}cancelAllRequests(kt){var xt;(xt=this._fullRequestReader)==null||xt.cancel(kt);for(const St of this._rangeRequestReaders.slice(0))St.cancel(kt)}}at.PDFNodeStream=mt;class pt{constructor(kt){this._url=kt.url,this._done=!1,this._storedError=null,this.onProgress=null;const xt=kt.source;this._contentLength=xt.length,this._loaded=0,this._filename=null,this._disableRange=xt.disableRange||!1,this._rangeChunkSize=xt.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!xt.disableStream,this._isRangeSupported=!xt.disableRange,this._readableStream=null,this._readCapability=new ut.PromiseCapability,this._headersCapability=new ut.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var St;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const kt=this._readableStream.read();return kt===null?(this._readCapability=new ut.PromiseCapability,this.read()):(this._loaded+=kt.length,(St=this.onProgress)==null||St.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(kt).buffer,done:!1})}cancel(kt){if(!this._readableStream){this._error(kt);return}this._readableStream.destroy(kt)}_error(kt){this._storedError=kt,this._readCapability.resolve()}_setReadableStream(kt){this._readableStream=kt,kt.on("readable",()=>{this._readCapability.resolve()}),kt.on("end",()=>{kt.destroy(),this._done=!0,this._readCapability.resolve()}),kt.on("error",xt=>{this._error(xt)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new ut.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class gt{constructor(kt){this._url=kt.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new ut.PromiseCapability;const xt=kt.source;this._isStreamingSupported=!xt.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var St;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const kt=this._readableStream.read();return kt===null?(this._readCapability=new ut.PromiseCapability,this.read()):(this._loaded+=kt.length,(St=this.onProgress)==null||St.call(this,{loaded:this._loaded}),{value:new Uint8Array(kt).buffer,done:!1})}cancel(kt){if(!this._readableStream){this._error(kt);return}this._readableStream.destroy(kt)}_error(kt){this._storedError=kt,this._readCapability.resolve()}_setReadableStream(kt){this._readableStream=kt,kt.on("readable",()=>{this._readCapability.resolve()}),kt.on("end",()=>{kt.destroy(),this._done=!0,this._readCapability.resolve()}),kt.on("error",xt=>{this._error(xt)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function vt(Et,kt){return{protocol:Et.protocol,auth:Et.auth,host:Et.hostname,port:Et.port,path:Et.path,method:"GET",headers:kt}}class wt extends pt{constructor(kt){super(kt);const xt=St=>{if(St.statusCode===404){const $t=new ut.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=$t,this._headersCapability.reject($t);return}this._headersCapability.resolve(),this._setReadableStream(St);const Ot=$t=>this._readableStream.headers[$t.toLowerCase()],{allowRangeRequests:At,suggestedLength:Tt}=(0,ct.validateRangeRequestCapabilities)({getResponseHeader:Ot,isHttp:kt.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=At,this._contentLength=Tt||this._contentLength,this._filename=(0,ct.extractFilenameFromHeader)(Ot)};if(this._request=null,this._url.protocol==="http:"){const St=require$$5;this._request=St.request(vt(this._url,kt.httpHeaders),xt)}else{const St=require$$5;this._request=St.request(vt(this._url,kt.httpHeaders),xt)}this._request.on("error",St=>{this._storedError=St,this._headersCapability.reject(St)}),this._request.end()}}class yt extends gt{constructor(kt,xt,St){super(kt),this._httpHeaders={};for(const At in kt.httpHeaders){const Tt=kt.httpHeaders[At];Tt!==void 0&&(this._httpHeaders[At]=Tt)}this._httpHeaders.Range=`bytes=${xt}-${St-1}`;const Ot=At=>{if(At.statusCode===404){const Tt=new ut.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=Tt;return}this._setReadableStream(At)};if(this._request=null,this._url.protocol==="http:"){const At=require$$5;this._request=At.request(vt(this._url,this._httpHeaders),Ot)}else{const At=require$$5;this._request=At.request(vt(this._url,this._httpHeaders),Ot)}this._request.on("error",At=>{this._storedError=At}),this._request.end()}}class bt extends pt{constructor(kt){super(kt);let xt=decodeURIComponent(this._url.path);dt.test(this._url.href)&&(xt=xt.replace(/^\//,""));const St=require$$5;St.lstat(xt,(Ot,At)=>{if(Ot){Ot.code==="ENOENT"&&(Ot=new ut.MissingPDFException(`Missing PDF "${xt}".`)),this._storedError=Ot,this._headersCapability.reject(Ot);return}this._contentLength=At.size,this._setReadableStream(St.createReadStream(xt)),this._headersCapability.resolve()})}}class Ct extends gt{constructor(kt,xt,St){super(kt);let Ot=decodeURIComponent(this._url.path);dt.test(this._url.href)&&(Ot=Ot.replace(/^\//,""));const At=require$$5;this._setReadableStream(At.createReadStream(Ot,{start:xt,end:St-1}))}}},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.SVGGraphics=void 0;var ut=lt(6),ct=lt(1);const dt={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},ft="http://www.w3.org/XML/1998/namespace",mt="http://www.w3.org/1999/xlink",pt=["butt","round","square"],gt=["miter","round","bevel"],vt=function(At,Tt="",$t=!1){if(URL.createObjectURL&&typeof Blob<"u"&&!$t)return URL.createObjectURL(new Blob([At],{type:Tt}));const Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let Rt=`data:${Tt};base64,`;for(let It=0,Ft=At.length;It<Ft;It+=3){const Mt=At[It]&255,Ht=At[It+1]&255,Vt=At[It+2]&255,Nt=Mt>>2,Gt=(Mt&3)<<4|Ht>>4,tn=It+1<Ft?(Ht&15)<<2|Vt>>6:64,ln=It+2<Ft?Vt&63:64;Rt+=Lt[Nt]+Lt[Gt]+Lt[tn]+Lt[ln]}return Rt},wt=function(){const At=new Uint8Array([137,80,78,71,13,10,26,10]),Tt=12,$t=new Int32Array(256);for(let Vt=0;Vt<256;Vt++){let Nt=Vt;for(let Gt=0;Gt<8;Gt++)Nt=Nt&1?3988292384^Nt>>1&2147483647:Nt>>1&2147483647;$t[Vt]=Nt}function Lt(Vt,Nt,Gt){let tn=-1;for(let ln=Nt;ln<Gt;ln++){const nn=(tn^Vt[ln])&255,on=$t[nn];tn=tn>>>8^on}return tn^-1}function Rt(Vt,Nt,Gt,tn){let ln=tn;const nn=Nt.length;Gt[ln]=nn>>24&255,Gt[ln+1]=nn>>16&255,Gt[ln+2]=nn>>8&255,Gt[ln+3]=nn&255,ln+=4,Gt[ln]=Vt.charCodeAt(0)&255,Gt[ln+1]=Vt.charCodeAt(1)&255,Gt[ln+2]=Vt.charCodeAt(2)&255,Gt[ln+3]=Vt.charCodeAt(3)&255,ln+=4,Gt.set(Nt,ln),ln+=Nt.length;const on=Lt(Gt,tn+4,ln);Gt[ln]=on>>24&255,Gt[ln+1]=on>>16&255,Gt[ln+2]=on>>8&255,Gt[ln+3]=on&255}function It(Vt,Nt,Gt){let tn=1,ln=0;for(let nn=Nt;nn<Gt;++nn)tn=(tn+(Vt[nn]&255))%65521,ln=(ln+tn)%65521;return ln<<16|tn}function Ft(Vt){if(!ct.isNodeJS)return Mt(Vt);try{const Nt=parseInt(process.versions.node)>=8?Vt:Buffer.from(Vt),Gt=require$$5.deflateSync(Nt,{level:9});return Gt instanceof Uint8Array?Gt:new Uint8Array(Gt)}catch(Nt){(0,ct.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+Nt)}return Mt(Vt)}function Mt(Vt){let Nt=Vt.length;const Gt=65535,tn=Math.ceil(Nt/Gt),ln=new Uint8Array(2+Nt+tn*5+4);let nn=0;ln[nn++]=120,ln[nn++]=156;let on=0;for(;Nt>Gt;)ln[nn++]=0,ln[nn++]=255,ln[nn++]=255,ln[nn++]=0,ln[nn++]=0,ln.set(Vt.subarray(on,on+Gt),nn),nn+=Gt,on+=Gt,Nt-=Gt;ln[nn++]=1,ln[nn++]=Nt&255,ln[nn++]=Nt>>8&255,ln[nn++]=~Nt&65535&255,ln[nn++]=(~Nt&65535)>>8&255,ln.set(Vt.subarray(on),nn),nn+=Vt.length-on;const rn=It(Vt,0,Vt.length);return ln[nn++]=rn>>24&255,ln[nn++]=rn>>16&255,ln[nn++]=rn>>8&255,ln[nn++]=rn&255,ln}function Ht(Vt,Nt,Gt,tn){const ln=Vt.width,nn=Vt.height;let on,rn,Jt;const Zt=Vt.data;switch(Nt){case ct.ImageKind.GRAYSCALE_1BPP:rn=0,on=1,Jt=ln+7>>3;break;case ct.ImageKind.RGB_24BPP:rn=2,on=8,Jt=ln*3;break;case ct.ImageKind.RGBA_32BPP:rn=6,on=8,Jt=ln*4;break;default:throw new Error("invalid format")}const Wt=new Uint8Array((1+Jt)*nn);let jt=0,Bt=0;for(let cn=0;cn<nn;++cn)Wt[jt++]=0,Wt.set(Zt.subarray(Bt,Bt+Jt),jt),Bt+=Jt,jt+=Jt;if(Nt===ct.ImageKind.GRAYSCALE_1BPP&&tn){jt=0;for(let cn=0;cn<nn;cn++){jt++;for(let bn=0;bn<Jt;bn++)Wt[jt++]^=255}}const Dt=new Uint8Array([ln>>24&255,ln>>16&255,ln>>8&255,ln&255,nn>>24&255,nn>>16&255,nn>>8&255,nn&255,on,rn,0,0,0]),zt=Ft(Wt),Kt=At.length+Tt*3+Dt.length+zt.length,en=new Uint8Array(Kt);let sn=0;return en.set(At,sn),sn+=At.length,Rt("IHDR",Dt,en,sn),sn+=Tt+Dt.length,Rt("IDATA",zt,en,sn),sn+=Tt+zt.length,Rt("IEND",new Uint8Array(0),en,sn),vt(en,"image/png",Gt)}return function(Nt,Gt,tn){const ln=Nt.kind===void 0?ct.ImageKind.GRAYSCALE_1BPP:Nt.kind;return Ht(Nt,ln,Gt,tn)}}();class yt{constructor(){this.fontSizeScale=1,this.fontWeight=dt.fontWeight,this.fontSize=0,this.textMatrix=ct.IDENTITY_MATRIX,this.fontMatrix=ct.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=ct.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=dt.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(Tt,$t){this.x=Tt,this.y=$t}}function bt(At){let Tt=[];const $t=[];for(const Lt of At){if(Lt.fn==="save"){Tt.push({fnId:92,fn:"group",items:[]}),$t.push(Tt),Tt=Tt.at(-1).items;continue}Lt.fn==="restore"?Tt=$t.pop():Tt.push(Lt)}return Tt}function Ct(At){if(Number.isInteger(At))return At.toString();const Tt=At.toFixed(10);let $t=Tt.length-1;if(Tt[$t]!=="0")return Tt;do $t--;while(Tt[$t]==="0");return Tt.substring(0,Tt[$t]==="."?$t:$t+1)}function Et(At){if(At[4]===0&&At[5]===0){if(At[1]===0&&At[2]===0)return At[0]===1&&At[3]===1?"":`scale(${Ct(At[0])} ${Ct(At[3])})`;if(At[0]===At[3]&&At[1]===-At[2]){const Tt=Math.acos(At[0])*180/Math.PI;return`rotate(${Ct(Tt)})`}}else if(At[0]===1&&At[1]===0&&At[2]===0&&At[3]===1)return`translate(${Ct(At[4])} ${Ct(At[5])})`;return`matrix(${Ct(At[0])} ${Ct(At[1])} ${Ct(At[2])} ${Ct(At[3])} ${Ct(At[4])} ${Ct(At[5])})`}let kt=0,xt=0,St=0;class Ot{constructor(Tt,$t,Lt=!1){(0,ut.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new ut.DOMSVGFactory,this.current=new yt,this.transformMatrix=ct.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=Tt,this.objs=$t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!Lt,this._operatorIdMapping=[];for(const Rt in ct.OPS)this._operatorIdMapping[ct.OPS[Rt]]=Rt}getObject(Tt,$t=null){return typeof Tt=="string"?Tt.startsWith("g_")?this.commonObjs.get(Tt):this.objs.get(Tt):$t}save(){this.transformStack.push(this.transformMatrix);const Tt=this.current;this.extraStack.push(Tt),this.current=Tt.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(Tt){this.save(),this.executeOpTree(Tt),this.restore()}loadDependencies(Tt){const $t=Tt.fnArray,Lt=Tt.argsArray;for(let Rt=0,It=$t.length;Rt<It;Rt++)if($t[Rt]===ct.OPS.dependency)for(const Ft of Lt[Rt]){const Mt=Ft.startsWith("g_")?this.commonObjs:this.objs,Ht=new Promise(Vt=>{Mt.get(Ft,Vt)});this.current.dependencies.push(Ht)}return Promise.all(this.current.dependencies)}transform(Tt,$t,Lt,Rt,It,Ft){const Mt=[Tt,$t,Lt,Rt,It,Ft];this.transformMatrix=ct.Util.transform(this.transformMatrix,Mt),this.tgrp=null}getSVG(Tt,$t){this.viewport=$t;const Lt=this._initialize($t);return this.loadDependencies(Tt).then(()=>(this.transformMatrix=ct.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(Tt)),Lt))}convertOpList(Tt){const $t=this._operatorIdMapping,Lt=Tt.argsArray,Rt=Tt.fnArray,It=[];for(let Ft=0,Mt=Rt.length;Ft<Mt;Ft++){const Ht=Rt[Ft];It.push({fnId:Ht,fn:$t[Ht],args:Lt[Ft]})}return bt(It)}executeOpTree(Tt){for(const $t of Tt){const Lt=$t.fn,Rt=$t.fnId,It=$t.args;switch(Rt|0){case ct.OPS.beginText:this.beginText();break;case ct.OPS.dependency:break;case ct.OPS.setLeading:this.setLeading(It);break;case ct.OPS.setLeadingMoveText:this.setLeadingMoveText(It[0],It[1]);break;case ct.OPS.setFont:this.setFont(It);break;case ct.OPS.showText:this.showText(It[0]);break;case ct.OPS.showSpacedText:this.showText(It[0]);break;case ct.OPS.endText:this.endText();break;case ct.OPS.moveText:this.moveText(It[0],It[1]);break;case ct.OPS.setCharSpacing:this.setCharSpacing(It[0]);break;case ct.OPS.setWordSpacing:this.setWordSpacing(It[0]);break;case ct.OPS.setHScale:this.setHScale(It[0]);break;case ct.OPS.setTextMatrix:this.setTextMatrix(It[0],It[1],It[2],It[3],It[4],It[5]);break;case ct.OPS.setTextRise:this.setTextRise(It[0]);break;case ct.OPS.setTextRenderingMode:this.setTextRenderingMode(It[0]);break;case ct.OPS.setLineWidth:this.setLineWidth(It[0]);break;case ct.OPS.setLineJoin:this.setLineJoin(It[0]);break;case ct.OPS.setLineCap:this.setLineCap(It[0]);break;case ct.OPS.setMiterLimit:this.setMiterLimit(It[0]);break;case ct.OPS.setFillRGBColor:this.setFillRGBColor(It[0],It[1],It[2]);break;case ct.OPS.setStrokeRGBColor:this.setStrokeRGBColor(It[0],It[1],It[2]);break;case ct.OPS.setStrokeColorN:this.setStrokeColorN(It);break;case ct.OPS.setFillColorN:this.setFillColorN(It);break;case ct.OPS.shadingFill:this.shadingFill(It[0]);break;case ct.OPS.setDash:this.setDash(It[0],It[1]);break;case ct.OPS.setRenderingIntent:this.setRenderingIntent(It[0]);break;case ct.OPS.setFlatness:this.setFlatness(It[0]);break;case ct.OPS.setGState:this.setGState(It[0]);break;case ct.OPS.fill:this.fill();break;case ct.OPS.eoFill:this.eoFill();break;case ct.OPS.stroke:this.stroke();break;case ct.OPS.fillStroke:this.fillStroke();break;case ct.OPS.eoFillStroke:this.eoFillStroke();break;case ct.OPS.clip:this.clip("nonzero");break;case ct.OPS.eoClip:this.clip("evenodd");break;case ct.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case ct.OPS.paintImageXObject:this.paintImageXObject(It[0]);break;case ct.OPS.paintInlineImageXObject:this.paintInlineImageXObject(It[0]);break;case ct.OPS.paintImageMaskXObject:this.paintImageMaskXObject(It[0]);break;case ct.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(It[0],It[1]);break;case ct.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case ct.OPS.closePath:this.closePath();break;case ct.OPS.closeStroke:this.closeStroke();break;case ct.OPS.closeFillStroke:this.closeFillStroke();break;case ct.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case ct.OPS.nextLine:this.nextLine();break;case ct.OPS.transform:this.transform(It[0],It[1],It[2],It[3],It[4],It[5]);break;case ct.OPS.constructPath:this.constructPath(It[0],It[1]);break;case ct.OPS.endPath:this.endPath();break;case 92:this.group($t.items);break;default:(0,ct.warn)(`Unimplemented operator ${Lt}`);break}}}setWordSpacing(Tt){this.current.wordSpacing=Tt}setCharSpacing(Tt){this.current.charSpacing=Tt}nextLine(){this.moveText(0,this.current.leading)}setTextMatrix(Tt,$t,Lt,Rt,It,Ft){const Mt=this.current;Mt.textMatrix=Mt.lineMatrix=[Tt,$t,Lt,Rt,It,Ft],Mt.textMatrixScale=Math.hypot(Tt,$t),Mt.x=Mt.lineX=0,Mt.y=Mt.lineY=0,Mt.xcoords=[],Mt.ycoords=[],Mt.tspan=this.svgFactory.createElement("svg:tspan"),Mt.tspan.setAttributeNS(null,"font-family",Mt.fontFamily),Mt.tspan.setAttributeNS(null,"font-size",`${Ct(Mt.fontSize)}px`),Mt.tspan.setAttributeNS(null,"y",Ct(-Mt.y)),Mt.txtElement=this.svgFactory.createElement("svg:text"),Mt.txtElement.append(Mt.tspan)}beginText(){const Tt=this.current;Tt.x=Tt.lineX=0,Tt.y=Tt.lineY=0,Tt.textMatrix=ct.IDENTITY_MATRIX,Tt.lineMatrix=ct.IDENTITY_MATRIX,Tt.textMatrixScale=1,Tt.tspan=this.svgFactory.createElement("svg:tspan"),Tt.txtElement=this.svgFactory.createElement("svg:text"),Tt.txtgrp=this.svgFactory.createElement("svg:g"),Tt.xcoords=[],Tt.ycoords=[]}moveText(Tt,$t){const Lt=this.current;Lt.x=Lt.lineX+=Tt,Lt.y=Lt.lineY+=$t,Lt.xcoords=[],Lt.ycoords=[],Lt.tspan=this.svgFactory.createElement("svg:tspan"),Lt.tspan.setAttributeNS(null,"font-family",Lt.fontFamily),Lt.tspan.setAttributeNS(null,"font-size",`${Ct(Lt.fontSize)}px`),Lt.tspan.setAttributeNS(null,"y",Ct(-Lt.y))}showText(Tt){const $t=this.current,Lt=$t.font,Rt=$t.fontSize;if(Rt===0)return;const It=$t.fontSizeScale,Ft=$t.charSpacing,Mt=$t.wordSpacing,Ht=$t.fontDirection,Vt=$t.textHScale*Ht,Nt=Lt.vertical,Gt=Nt?1:-1,tn=Lt.defaultVMetrics,ln=Rt*$t.fontMatrix[0];let nn=0;for(const Jt of Tt){if(Jt===null){nn+=Ht*Mt;continue}else if(typeof Jt=="number"){nn+=Gt*Jt*Rt/1e3;continue}const Zt=(Jt.isSpace?Mt:0)+Ft,Wt=Jt.fontChar;let jt,Bt,Dt=Jt.width;if(Nt){let Kt;const en=Jt.vmetric||tn;Kt=Jt.vmetric?en[1]:Dt*.5,Kt=-Kt*ln;const sn=en[2]*ln;Dt=en?-en[0]:Dt,jt=Kt/It,Bt=(nn+sn)/It}else jt=nn/It,Bt=0;(Jt.isInFont||Lt.missingFile)&&($t.xcoords.push($t.x+jt),Nt&&$t.ycoords.push(-$t.y+Bt),$t.tspan.textContent+=Wt);const zt=Nt?Dt*ln-Zt*Ht:Dt*ln+Zt*Ht;nn+=zt}$t.tspan.setAttributeNS(null,"x",$t.xcoords.map(Ct).join(" ")),Nt?$t.tspan.setAttributeNS(null,"y",$t.ycoords.map(Ct).join(" ")):$t.tspan.setAttributeNS(null,"y",Ct(-$t.y)),Nt?$t.y-=nn:$t.x+=nn*Vt,$t.tspan.setAttributeNS(null,"font-family",$t.fontFamily),$t.tspan.setAttributeNS(null,"font-size",`${Ct($t.fontSize)}px`),$t.fontStyle!==dt.fontStyle&&$t.tspan.setAttributeNS(null,"font-style",$t.fontStyle),$t.fontWeight!==dt.fontWeight&&$t.tspan.setAttributeNS(null,"font-weight",$t.fontWeight);const on=$t.textRenderingMode&ct.TextRenderingMode.FILL_STROKE_MASK;if(on===ct.TextRenderingMode.FILL||on===ct.TextRenderingMode.FILL_STROKE?($t.fillColor!==dt.fillColor&&$t.tspan.setAttributeNS(null,"fill",$t.fillColor),$t.fillAlpha<1&&$t.tspan.setAttributeNS(null,"fill-opacity",$t.fillAlpha)):$t.textRenderingMode===ct.TextRenderingMode.ADD_TO_PATH?$t.tspan.setAttributeNS(null,"fill","transparent"):$t.tspan.setAttributeNS(null,"fill","none"),on===ct.TextRenderingMode.STROKE||on===ct.TextRenderingMode.FILL_STROKE){const Jt=1/($t.textMatrixScale||1);this._setStrokeAttributes($t.tspan,Jt)}let rn=$t.textMatrix;$t.textRise!==0&&(rn=rn.slice(),rn[5]+=$t.textRise),$t.txtElement.setAttributeNS(null,"transform",`${Et(rn)} scale(${Ct(Vt)}, -1)`),$t.txtElement.setAttributeNS(ft,"xml:space","preserve"),$t.txtElement.append($t.tspan),$t.txtgrp.append($t.txtElement),this._ensureTransformGroup().append($t.txtElement)}setLeadingMoveText(Tt,$t){this.setLeading(-$t),this.moveText(Tt,$t)}addFontStyle(Tt){if(!Tt.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.append(this.cssStyle));const $t=vt(Tt.data,Tt.mimetype,this.forceDataSchema);this.cssStyle.textContent+=`@font-face { font-family: "${Tt.loadedName}"; src: url(${$t}); }
`}setFont(Tt){const $t=this.current,Lt=this.commonObjs.get(Tt[0]);let Rt=Tt[1];$t.font=Lt,this.embedFonts&&!Lt.missingFile&&!this.embeddedFonts[Lt.loadedName]&&(this.addFontStyle(Lt),this.embeddedFonts[Lt.loadedName]=Lt),$t.fontMatrix=Lt.fontMatrix||ct.FONT_IDENTITY_MATRIX;let It="normal";Lt.black?It="900":Lt.bold&&(It="bold");const Ft=Lt.italic?"italic":"normal";Rt<0?(Rt=-Rt,$t.fontDirection=-1):$t.fontDirection=1,$t.fontSize=Rt,$t.fontFamily=Lt.loadedName,$t.fontWeight=It,$t.fontStyle=Ft,$t.tspan=this.svgFactory.createElement("svg:tspan"),$t.tspan.setAttributeNS(null,"y",Ct(-$t.y)),$t.xcoords=[],$t.ycoords=[]}endText(){var $t;const Tt=this.current;Tt.textRenderingMode&ct.TextRenderingMode.ADD_TO_PATH_FLAG&&(($t=Tt.txtElement)!=null&&$t.hasChildNodes())&&(Tt.element=Tt.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(Tt){Tt>0&&(this.current.lineWidth=Tt)}setLineCap(Tt){this.current.lineCap=pt[Tt]}setLineJoin(Tt){this.current.lineJoin=gt[Tt]}setMiterLimit(Tt){this.current.miterLimit=Tt}setStrokeAlpha(Tt){this.current.strokeAlpha=Tt}setStrokeRGBColor(Tt,$t,Lt){this.current.strokeColor=ct.Util.makeHexColor(Tt,$t,Lt)}setFillAlpha(Tt){this.current.fillAlpha=Tt}setFillRGBColor(Tt,$t,Lt){this.current.fillColor=ct.Util.makeHexColor(Tt,$t,Lt),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(Tt){this.current.strokeColor=this._makeColorN_Pattern(Tt)}setFillColorN(Tt){this.current.fillColor=this._makeColorN_Pattern(Tt)}shadingFill(Tt){const{width:$t,height:Lt}=this.viewport,Rt=ct.Util.inverseTransform(this.transformMatrix),[It,Ft,Mt,Ht]=ct.Util.getAxialAlignedBoundingBox([0,0,$t,Lt],Rt),Vt=this.svgFactory.createElement("svg:rect");Vt.setAttributeNS(null,"x",It),Vt.setAttributeNS(null,"y",Ft),Vt.setAttributeNS(null,"width",Mt-It),Vt.setAttributeNS(null,"height",Ht-Ft),Vt.setAttributeNS(null,"fill",this._makeShadingPattern(Tt)),this.current.fillAlpha<1&&Vt.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(Vt)}_makeColorN_Pattern(Tt){return Tt[0]==="TilingPattern"?this._makeTilingPattern(Tt):this._makeShadingPattern(Tt)}_makeTilingPattern(Tt){const $t=Tt[1],Lt=Tt[2],Rt=Tt[3]||ct.IDENTITY_MATRIX,[It,Ft,Mt,Ht]=Tt[4],Vt=Tt[5],Nt=Tt[6],Gt=Tt[7],tn=`shading${St++}`,[ln,nn,on,rn]=ct.Util.normalizeRect([...ct.Util.applyTransform([It,Ft],Rt),...ct.Util.applyTransform([Mt,Ht],Rt)]),[Jt,Zt]=ct.Util.singularValueDecompose2dScale(Rt),Wt=Vt*Jt,jt=Nt*Zt,Bt=this.svgFactory.createElement("svg:pattern");Bt.setAttributeNS(null,"id",tn),Bt.setAttributeNS(null,"patternUnits","userSpaceOnUse"),Bt.setAttributeNS(null,"width",Wt),Bt.setAttributeNS(null,"height",jt),Bt.setAttributeNS(null,"x",`${ln}`),Bt.setAttributeNS(null,"y",`${nn}`);const Dt=this.svg,zt=this.transformMatrix,Kt=this.current.fillColor,en=this.current.strokeColor,sn=this.svgFactory.create(on-ln,rn-nn);if(this.svg=sn,this.transformMatrix=Rt,Gt===2){const cn=ct.Util.makeHexColor(...$t);this.current.fillColor=cn,this.current.strokeColor=cn}return this.executeOpTree(this.convertOpList(Lt)),this.svg=Dt,this.transformMatrix=zt,this.current.fillColor=Kt,this.current.strokeColor=en,Bt.append(sn.childNodes[0]),this.defs.append(Bt),`url(#${tn})`}_makeShadingPattern(Tt){switch(typeof Tt=="string"&&(Tt=this.objs.get(Tt)),Tt[0]){case"RadialAxial":const $t=`shading${St++}`,Lt=Tt[3];let Rt;switch(Tt[1]){case"axial":const It=Tt[4],Ft=Tt[5];Rt=this.svgFactory.createElement("svg:linearGradient"),Rt.setAttributeNS(null,"id",$t),Rt.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),Rt.setAttributeNS(null,"x1",It[0]),Rt.setAttributeNS(null,"y1",It[1]),Rt.setAttributeNS(null,"x2",Ft[0]),Rt.setAttributeNS(null,"y2",Ft[1]);break;case"radial":const Mt=Tt[4],Ht=Tt[5],Vt=Tt[6],Nt=Tt[7];Rt=this.svgFactory.createElement("svg:radialGradient"),Rt.setAttributeNS(null,"id",$t),Rt.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),Rt.setAttributeNS(null,"cx",Ht[0]),Rt.setAttributeNS(null,"cy",Ht[1]),Rt.setAttributeNS(null,"r",Nt),Rt.setAttributeNS(null,"fx",Mt[0]),Rt.setAttributeNS(null,"fy",Mt[1]),Rt.setAttributeNS(null,"fr",Vt);break;default:throw new Error(`Unknown RadialAxial type: ${Tt[1]}`)}for(const It of Lt){const Ft=this.svgFactory.createElement("svg:stop");Ft.setAttributeNS(null,"offset",It[0]),Ft.setAttributeNS(null,"stop-color",It[1]),Rt.append(Ft)}return this.defs.append(Rt),`url(#${$t})`;case"Mesh":return(0,ct.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${Tt[0]}`)}}setDash(Tt,$t){this.current.dashArray=Tt,this.current.dashPhase=$t}constructPath(Tt,$t){const Lt=this.current;let Rt=Lt.x,It=Lt.y,Ft=[],Mt=0;for(const Ht of Tt)switch(Ht|0){case ct.OPS.rectangle:Rt=$t[Mt++],It=$t[Mt++];const Vt=$t[Mt++],Nt=$t[Mt++],Gt=Rt+Vt,tn=It+Nt;Ft.push("M",Ct(Rt),Ct(It),"L",Ct(Gt),Ct(It),"L",Ct(Gt),Ct(tn),"L",Ct(Rt),Ct(tn),"Z");break;case ct.OPS.moveTo:Rt=$t[Mt++],It=$t[Mt++],Ft.push("M",Ct(Rt),Ct(It));break;case ct.OPS.lineTo:Rt=$t[Mt++],It=$t[Mt++],Ft.push("L",Ct(Rt),Ct(It));break;case ct.OPS.curveTo:Rt=$t[Mt+4],It=$t[Mt+5],Ft.push("C",Ct($t[Mt]),Ct($t[Mt+1]),Ct($t[Mt+2]),Ct($t[Mt+3]),Ct(Rt),Ct(It)),Mt+=6;break;case ct.OPS.curveTo2:Ft.push("C",Ct(Rt),Ct(It),Ct($t[Mt]),Ct($t[Mt+1]),Ct($t[Mt+2]),Ct($t[Mt+3])),Rt=$t[Mt+2],It=$t[Mt+3],Mt+=4;break;case ct.OPS.curveTo3:Rt=$t[Mt+2],It=$t[Mt+3],Ft.push("C",Ct($t[Mt]),Ct($t[Mt+1]),Ct(Rt),Ct(It),Ct(Rt),Ct(It)),Mt+=4;break;case ct.OPS.closePath:Ft.push("Z");break}Ft=Ft.join(" "),Lt.path&&Tt.length>0&&Tt[0]!==ct.OPS.rectangle&&Tt[0]!==ct.OPS.moveTo?Ft=Lt.path.getAttributeNS(null,"d")+Ft:(Lt.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(Lt.path)),Lt.path.setAttributeNS(null,"d",Ft),Lt.path.setAttributeNS(null,"fill","none"),Lt.element=Lt.path,Lt.setCurrentPoint(Rt,It)}endPath(){const Tt=this.current;if(Tt.path=null,!this.pendingClip)return;if(!Tt.element){this.pendingClip=null;return}const $t=`clippath${kt++}`,Lt=this.svgFactory.createElement("svg:clipPath");Lt.setAttributeNS(null,"id",$t),Lt.setAttributeNS(null,"transform",Et(this.transformMatrix));const Rt=Tt.element.cloneNode(!0);if(this.pendingClip==="evenodd"?Rt.setAttributeNS(null,"clip-rule","evenodd"):Rt.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,Lt.append(Rt),this.defs.append(Lt),Tt.activeClipUrl){Tt.clipGroup=null;for(const It of this.extraStack)It.clipGroup=null;Lt.setAttributeNS(null,"clip-path",Tt.activeClipUrl)}Tt.activeClipUrl=`url(#${$t})`,this.tgrp=null}clip(Tt){this.pendingClip=Tt}closePath(){const Tt=this.current;if(Tt.path){const $t=`${Tt.path.getAttributeNS(null,"d")}Z`;Tt.path.setAttributeNS(null,"d",$t)}}setLeading(Tt){this.current.leading=-Tt}setTextRise(Tt){this.current.textRise=Tt}setTextRenderingMode(Tt){this.current.textRenderingMode=Tt}setHScale(Tt){this.current.textHScale=Tt/100}setRenderingIntent(Tt){}setFlatness(Tt){}setGState(Tt){for(const[$t,Lt]of Tt)switch($t){case"LW":this.setLineWidth(Lt);break;case"LC":this.setLineCap(Lt);break;case"LJ":this.setLineJoin(Lt);break;case"ML":this.setMiterLimit(Lt);break;case"D":this.setDash(Lt[0],Lt[1]);break;case"RI":this.setRenderingIntent(Lt);break;case"FL":this.setFlatness(Lt);break;case"Font":this.setFont(Lt);break;case"CA":this.setStrokeAlpha(Lt);break;case"ca":this.setFillAlpha(Lt);break;default:(0,ct.warn)(`Unimplemented graphic state operator ${$t}`);break}}fill(){const Tt=this.current;Tt.element&&(Tt.element.setAttributeNS(null,"fill",Tt.fillColor),Tt.element.setAttributeNS(null,"fill-opacity",Tt.fillAlpha),this.endPath())}stroke(){const Tt=this.current;Tt.element&&(this._setStrokeAttributes(Tt.element),Tt.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(Tt,$t=1){const Lt=this.current;let Rt=Lt.dashArray;$t!==1&&Rt.length>0&&(Rt=Rt.map(function(It){return $t*It})),Tt.setAttributeNS(null,"stroke",Lt.strokeColor),Tt.setAttributeNS(null,"stroke-opacity",Lt.strokeAlpha),Tt.setAttributeNS(null,"stroke-miterlimit",Ct(Lt.miterLimit)),Tt.setAttributeNS(null,"stroke-linecap",Lt.lineCap),Tt.setAttributeNS(null,"stroke-linejoin",Lt.lineJoin),Tt.setAttributeNS(null,"stroke-width",Ct($t*Lt.lineWidth)+"px"),Tt.setAttributeNS(null,"stroke-dasharray",Rt.map(Ct).join(" ")),Tt.setAttributeNS(null,"stroke-dashoffset",Ct($t*Lt.dashPhase)+"px")}eoFill(){var Tt;(Tt=this.current.element)==null||Tt.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var Tt;(Tt=this.current.element)==null||Tt.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const Tt=this.svgFactory.createElement("svg:rect");Tt.setAttributeNS(null,"x","0"),Tt.setAttributeNS(null,"y","0"),Tt.setAttributeNS(null,"width","1px"),Tt.setAttributeNS(null,"height","1px"),Tt.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(Tt)}paintImageXObject(Tt){const $t=this.getObject(Tt);if(!$t){(0,ct.warn)(`Dependent image with object ID ${Tt} is not ready yet`);return}this.paintInlineImageXObject($t)}paintInlineImageXObject(Tt,$t){const Lt=Tt.width,Rt=Tt.height,It=wt(Tt,this.forceDataSchema,!!$t),Ft=this.svgFactory.createElement("svg:rect");Ft.setAttributeNS(null,"x","0"),Ft.setAttributeNS(null,"y","0"),Ft.setAttributeNS(null,"width",Ct(Lt)),Ft.setAttributeNS(null,"height",Ct(Rt)),this.current.element=Ft,this.clip("nonzero");const Mt=this.svgFactory.createElement("svg:image");Mt.setAttributeNS(mt,"xlink:href",It),Mt.setAttributeNS(null,"x","0"),Mt.setAttributeNS(null,"y",Ct(-Rt)),Mt.setAttributeNS(null,"width",Ct(Lt)+"px"),Mt.setAttributeNS(null,"height",Ct(Rt)+"px"),Mt.setAttributeNS(null,"transform",`scale(${Ct(1/Lt)} ${Ct(-1/Rt)})`),$t?$t.append(Mt):this._ensureTransformGroup().append(Mt)}paintImageMaskXObject(Tt){const $t=this.getObject(Tt.data,Tt);if($t.bitmap){(0,ct.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const Lt=this.current,Rt=$t.width,It=$t.height,Ft=Lt.fillColor;Lt.maskId=`mask${xt++}`;const Mt=this.svgFactory.createElement("svg:mask");Mt.setAttributeNS(null,"id",Lt.maskId);const Ht=this.svgFactory.createElement("svg:rect");Ht.setAttributeNS(null,"x","0"),Ht.setAttributeNS(null,"y","0"),Ht.setAttributeNS(null,"width",Ct(Rt)),Ht.setAttributeNS(null,"height",Ct(It)),Ht.setAttributeNS(null,"fill",Ft),Ht.setAttributeNS(null,"mask",`url(#${Lt.maskId})`),this.defs.append(Mt),this._ensureTransformGroup().append(Ht),this.paintInlineImageXObject($t,Mt)}paintFormXObjectBegin(Tt,$t){if(Array.isArray(Tt)&&Tt.length===6&&this.transform(Tt[0],Tt[1],Tt[2],Tt[3],Tt[4],Tt[5]),$t){const Lt=$t[2]-$t[0],Rt=$t[3]-$t[1],It=this.svgFactory.createElement("svg:rect");It.setAttributeNS(null,"x",$t[0]),It.setAttributeNS(null,"y",$t[1]),It.setAttributeNS(null,"width",Ct(Lt)),It.setAttributeNS(null,"height",Ct(Rt)),this.current.element=It,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(Tt){const $t=this.svgFactory.create(Tt.width,Tt.height),Lt=this.svgFactory.createElement("svg:defs");$t.append(Lt),this.defs=Lt;const Rt=this.svgFactory.createElement("svg:g");return Rt.setAttributeNS(null,"transform",Et(Tt.transform)),$t.append(Rt),this.svg=Rt,$t}_ensureClipGroup(){if(!this.current.clipGroup){const Tt=this.svgFactory.createElement("svg:g");Tt.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(Tt),this.current.clipGroup=Tt}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",Et(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}at.SVGGraphics=Ot},(it,at)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.XfaText=void 0;class lt{static textContent(ct){const dt=[],ft={items:dt,styles:Object.create(null)};function mt(pt){var wt;if(!pt)return;let gt=null;const vt=pt.name;if(vt==="#text")gt=pt.value;else if(lt.shouldBuildText(vt))(wt=pt==null?void 0:pt.attributes)!=null&&wt.textContent?gt=pt.attributes.textContent:pt.value&&(gt=pt.value);else return;if(gt!==null&&dt.push({str:gt}),!!pt.children)for(const yt of pt.children)mt(yt)}return mt(ct),ft}static shouldBuildText(ct){return!(ct==="textarea"||ct==="input"||ct==="option"||ct==="select")}}at.XfaText=lt},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.TextLayerRenderTask=void 0,at.renderTextLayer=Et,at.updateTextLayer=kt;var ut=lt(1),ct=lt(6);const dt=1e5,ft=30,mt=.8,pt=new Map;function gt(xt,St){let Ot;if(St&&ut.FeatureTest.isOffscreenCanvasSupported)Ot=new OffscreenCanvas(xt,xt).getContext("2d",{alpha:!1});else{const At=document.createElement("canvas");At.width=At.height=xt,Ot=At.getContext("2d",{alpha:!1})}return Ot}function vt(xt,St){const Ot=pt.get(xt);if(Ot)return Ot;const At=gt(ft,St);At.font=`${ft}px ${xt}`;const Tt=At.measureText("");let $t=Tt.fontBoundingBoxAscent,Lt=Math.abs(Tt.fontBoundingBoxDescent);if($t){const It=$t/($t+Lt);return pt.set(xt,It),At.canvas.width=At.canvas.height=0,It}At.strokeStyle="red",At.clearRect(0,0,ft,ft),At.strokeText("g",0,0);let Rt=At.getImageData(0,0,ft,ft).data;Lt=0;for(let It=Rt.length-1-3;It>=0;It-=4)if(Rt[It]>0){Lt=Math.ceil(It/4/ft);break}At.clearRect(0,0,ft,ft),At.strokeText("A",0,ft),Rt=At.getImageData(0,0,ft,ft).data,$t=0;for(let It=0,Ft=Rt.length;It<Ft;It+=4)if(Rt[It]>0){$t=ft-Math.floor(It/4/ft);break}if(At.canvas.width=At.canvas.height=0,$t){const It=$t/($t+Lt);return pt.set(xt,It),It}return pt.set(xt,mt),mt}function wt(xt,St,Ot){const At=document.createElement("span"),Tt={angle:0,canvasWidth:0,hasText:St.str!=="",hasEOL:St.hasEOL,fontSize:0};xt._textDivs.push(At);const $t=ut.Util.transform(xt._transform,St.transform);let Lt=Math.atan2($t[1],$t[0]);const Rt=Ot[St.fontName];Rt.vertical&&(Lt+=Math.PI/2);const It=Math.hypot($t[2],$t[3]),Ft=It*vt(Rt.fontFamily,xt._isOffscreenCanvasSupported);let Mt,Ht;Lt===0?(Mt=$t[4],Ht=$t[5]-Ft):(Mt=$t[4]+Ft*Math.sin(Lt),Ht=$t[5]-Ft*Math.cos(Lt));const Vt="calc(var(--scale-factor)*",Nt=At.style;xt._container===xt._rootContainer?(Nt.left=`${(100*Mt/xt._pageWidth).toFixed(2)}%`,Nt.top=`${(100*Ht/xt._pageHeight).toFixed(2)}%`):(Nt.left=`${Vt}${Mt.toFixed(2)}px)`,Nt.top=`${Vt}${Ht.toFixed(2)}px)`),Nt.fontSize=`${Vt}${It.toFixed(2)}px)`,Nt.fontFamily=Rt.fontFamily,Tt.fontSize=It,At.setAttribute("role","presentation"),At.textContent=St.str,At.dir=St.dir,xt._fontInspectorEnabled&&(At.dataset.fontName=St.fontName),Lt!==0&&(Tt.angle=Lt*(180/Math.PI));let Gt=!1;if(St.str.length>1)Gt=!0;else if(St.str!==" "&&St.transform[0]!==St.transform[3]){const tn=Math.abs(St.transform[0]),ln=Math.abs(St.transform[3]);tn!==ln&&Math.max(tn,ln)/Math.min(tn,ln)>1.5&&(Gt=!0)}Gt&&(Tt.canvasWidth=Rt.vertical?St.height:St.width),xt._textDivProperties.set(At,Tt),xt._isReadableStream&&xt._layoutText(At)}function yt(xt){const{div:St,scale:Ot,properties:At,ctx:Tt,prevFontSize:$t,prevFontFamily:Lt}=xt,{style:Rt}=St;let It="";if(At.canvasWidth!==0&&At.hasText){const{fontFamily:Ft}=Rt,{canvasWidth:Mt,fontSize:Ht}=At;($t!==Ht||Lt!==Ft)&&(Tt.font=`${Ht*Ot}px ${Ft}`,xt.prevFontSize=Ht,xt.prevFontFamily=Ft);const{width:Vt}=Tt.measureText(St.textContent);Vt>0&&(It=`scaleX(${Mt*Ot/Vt})`)}At.angle!==0&&(It=`rotate(${At.angle}deg) ${It}`),It.length>0&&(Rt.transform=It)}function bt(xt){if(xt._canceled)return;const St=xt._textDivs,Ot=xt._capability;if(St.length>dt){Ot.resolve();return}if(!xt._isReadableStream)for(const Tt of St)xt._layoutText(Tt);Ot.resolve()}class Ct{constructor({textContentSource:St,container:Ot,viewport:At,textDivs:Tt,textDivProperties:$t,textContentItemsStr:Lt,isOffscreenCanvasSupported:Rt}){var Vt;this._textContentSource=St,this._isReadableStream=St instanceof ReadableStream,this._container=this._rootContainer=Ot,this._textDivs=Tt||[],this._textContentItemsStr=Lt||[],this._isOffscreenCanvasSupported=Rt,this._fontInspectorEnabled=!!((Vt=globalThis.FontInspector)!=null&&Vt.enabled),this._reader=null,this._textDivProperties=$t||new WeakMap,this._canceled=!1,this._capability=new ut.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:At.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:gt(0,Rt)};const{pageWidth:It,pageHeight:Ft,pageX:Mt,pageY:Ht}=At.rawDims;this._transform=[1,0,0,-1,-Mt,Ht+Ft],this._pageWidth=It,this._pageHeight=Ft,(0,ct.setLayerDimensions)(Ot,At),this._capability.promise.finally(()=>{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new ut.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new ut.AbortException("TextLayer task cancelled."))}_processItems(St,Ot){for(const At of St){if(At.str===void 0){if(At.type==="beginMarkedContentProps"||At.type==="beginMarkedContent"){const Tt=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),At.id!==null&&this._container.setAttribute("id",`${At.id}`),Tt.append(this._container)}else At.type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(At.str),wt(this,At,Ot)}}_layoutText(St){const Ot=this._layoutTextParams.properties=this._textDivProperties.get(St);if(this._layoutTextParams.div=St,yt(this._layoutTextParams),Ot.hasText&&this._container.append(St),Ot.hasEOL){const At=document.createElement("br");At.setAttribute("role","presentation"),this._container.append(At)}}_render(){const St=new ut.PromiseCapability;let Ot=Object.create(null);if(this._isReadableStream){const At=()=>{this._reader.read().then(({value:Tt,done:$t})=>{if($t){St.resolve();return}Object.assign(Ot,Tt.styles),this._processItems(Tt.items,Ot),At()},St.reject)};this._reader=this._textContentSource.getReader(),At()}else if(this._textContentSource){const{items:At,styles:Tt}=this._textContentSource;this._processItems(At,Tt),St.resolve()}else throw new Error('No "textContentSource" parameter specified.');St.promise.then(()=>{Ot=null,bt(this)},this._capability.reject)}}at.TextLayerRenderTask=Ct;function Et(xt){!xt.textContentSource&&(xt.textContent||xt.textContentStream)&&((0,ct.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),xt.textContentSource=xt.textContent||xt.textContentStream);const{container:St,viewport:Ot}=xt,At=getComputedStyle(St),Tt=At.getPropertyValue("visibility"),$t=parseFloat(At.getPropertyValue("--scale-factor"));Tt==="visible"&&(!$t||Math.abs($t-Ot.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const Lt=new Ct(xt);return Lt._render(),Lt}function kt({container:xt,viewport:St,textDivs:Ot,textDivProperties:At,isOffscreenCanvasSupported:Tt,mustRotate:$t=!0,mustRescale:Lt=!0}){if($t&&(0,ct.setLayerDimensions)(xt,{rotation:St.rotation}),Lt){const Rt=gt(0,Tt),Ft={prevFontSize:null,prevFontFamily:null,div:null,scale:St.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:Rt};for(const Mt of Ot)Ft.properties=At.get(Mt),Ft.div=Mt,yt(Ft)}}},(it,at,lt)=>{var vt,wt,yt,bt,Ct,Et,kt,xt,St,Ot,At,U1,$t,Vp,Rt,H1,Ft,z1;Object.defineProperty(at,"__esModule",{value:!0}),at.AnnotationEditorLayer=void 0;var ut=lt(1),ct=lt(4),dt=lt(28),ft=lt(33),mt=lt(6),pt=lt(34);const Ht=class Ht{constructor({uiManager:Nt,pageIndex:Gt,div:tn,accessibilityManager:ln,annotationLayer:nn,viewport:on,l10n:rn}){An(this,At);An(this,$t);An(this,Rt);An(this,Ft);An(this,vt,void 0);An(this,wt,!1);An(this,yt,null);An(this,bt,this.pointerup.bind(this));An(this,Ct,this.pointerdown.bind(this));An(this,Et,new Map);An(this,kt,!1);An(this,xt,!1);An(this,St,!1);An(this,Ot,void 0);const Jt=[dt.FreeTextEditor,ft.InkEditor,pt.StampEditor];if(!Ht._initialized){Ht._initialized=!0;for(const Zt of Jt)Zt.initialize(rn)}Nt.registerEditorTypes(Jt),Wn(this,Ot,Nt),this.pageIndex=Gt,this.div=tn,Wn(this,vt,ln),Wn(this,yt,nn),this.viewport=on,Yt(this,Ot).addLayer(this)}get isEmpty(){return Yt(this,Et).size===0}updateToolbar(Nt){Yt(this,Ot).updateToolbar(Nt)}updateMode(Nt=Yt(this,Ot).getMode()){Nn(this,Ft,z1).call(this),Nt===ut.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),Nt!==ut.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",Nt===ut.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",Nt===ut.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",Nt===ut.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(Nt){if(!Nt&&Yt(this,Ot).getMode()!==ut.AnnotationEditorType.INK)return;if(!Nt){for(const tn of Yt(this,Et).values())if(tn.isEmpty()){tn.setInBackground();return}}Nn(this,$t,Vp).call(this,{offsetX:0,offsetY:0},!1).setInBackground()}setEditingState(Nt){Yt(this,Ot).setEditingState(Nt)}addCommands(Nt){Yt(this,Ot).addCommands(Nt)}enable(){this.div.style.pointerEvents="auto";const Nt=new Set;for(const tn of Yt(this,Et).values())tn.enableEditing(),tn.annotationElementId&&Nt.add(tn.annotationElementId);if(!Yt(this,yt))return;const Gt=Yt(this,yt).getEditableAnnotations();for(const tn of Gt){if(tn.hide(),Yt(this,Ot).isDeletedAnnotationElement(tn.data.id)||Nt.has(tn.data.id))continue;const ln=this.deserialize(tn);ln&&(this.addOrRebuild(ln),ln.enableEditing())}}disable(){var Gt;Wn(this,St,!0),this.div.style.pointerEvents="none";const Nt=new Set;for(const tn of Yt(this,Et).values()){if(tn.disableEditing(),!tn.annotationElementId||tn.serialize()!==null){Nt.add(tn.annotationElementId);continue}(Gt=this.getEditableAnnotation(tn.annotationElementId))==null||Gt.show(),tn.remove()}if(Yt(this,yt)){const tn=Yt(this,yt).getEditableAnnotations();for(const ln of tn){const{id:nn}=ln.data;Nt.has(nn)||Yt(this,Ot).isDeletedAnnotationElement(nn)||ln.show()}}Nn(this,Ft,z1).call(this),this.isEmpty&&(this.div.hidden=!0),Wn(this,St,!1)}getEditableAnnotation(Nt){var Gt;return((Gt=Yt(this,yt))==null?void 0:Gt.getEditableAnnotation(Nt))||null}setActiveEditor(Nt){Yt(this,Ot).getActive()!==Nt&&Yt(this,Ot).setActiveEditor(Nt)}enableClick(){this.div.addEventListener("pointerdown",Yt(this,Ct)),this.div.addEventListener("pointerup",Yt(this,bt))}disableClick(){this.div.removeEventListener("pointerdown",Yt(this,Ct)),this.div.removeEventListener("pointerup",Yt(this,bt))}attach(Nt){Yt(this,Et).set(Nt.id,Nt);const{annotationElementId:Gt}=Nt;Gt&&Yt(this,Ot).isDeletedAnnotationElement(Gt)&&Yt(this,Ot).removeDeletedAnnotationElement(Nt)}detach(Nt){var Gt;Yt(this,Et).delete(Nt.id),(Gt=Yt(this,vt))==null||Gt.removePointerInTextLayer(Nt.contentDiv),!Yt(this,St)&&Nt.annotationElementId&&Yt(this,Ot).addDeletedAnnotationElement(Nt)}remove(Nt){this.detach(Nt),Yt(this,Ot).removeEditor(Nt),Nt.div.contains(document.activeElement)&&setTimeout(()=>{Yt(this,Ot).focusMainContainer()},0),Nt.div.remove(),Nt.isAttachedToDOM=!1,Yt(this,xt)||this.addInkEditorIfNeeded(!1)}changeParent(Nt){var Gt;Nt.parent!==this&&(Nt.annotationElementId&&(Yt(this,Ot).addDeletedAnnotationElement(Nt.annotationElementId),ct.AnnotationEditor.deleteAnnotationElement(Nt),Nt.annotationElementId=null),this.attach(Nt),(Gt=Nt.parent)==null||Gt.detach(Nt),Nt.setParent(this),Nt.div&&Nt.isAttachedToDOM&&(Nt.div.remove(),this.div.append(Nt.div)))}add(Nt){if(this.changeParent(Nt),Yt(this,Ot).addEditor(Nt),this.attach(Nt),!Nt.isAttachedToDOM){const Gt=Nt.render();this.div.append(Gt),Nt.isAttachedToDOM=!0}Nt.fixAndSetPosition(),Nt.onceAdded(),Yt(this,Ot).addToAnnotationStorage(Nt)}moveEditorInDOM(Nt){var tn;if(!Nt.isAttachedToDOM)return;const{activeElement:Gt}=document;Nt.div.contains(Gt)&&(Nt._focusEventsAllowed=!1,setTimeout(()=>{Nt.div.contains(document.activeElement)?Nt._focusEventsAllowed=!0:(Nt.div.addEventListener("focusin",()=>{Nt._focusEventsAllowed=!0},{once:!0}),Gt.focus())},0)),Nt._structTreeParentId=(tn=Yt(this,vt))==null?void 0:tn.moveElementInDOM(this.div,Nt.div,Nt.contentDiv,!0)}addOrRebuild(Nt){Nt.needsToBeRebuilt()?Nt.rebuild():this.add(Nt)}addUndoableEditor(Nt){const Gt=()=>Nt._uiManager.rebuild(Nt),tn=()=>{Nt.remove()};this.addCommands({cmd:Gt,undo:tn,mustExec:!1})}getNextId(){return Yt(this,Ot).getId()}pasteEditor(Nt,Gt){Yt(this,Ot).updateToolbar(Nt),Yt(this,Ot).updateMode(Nt);const{offsetX:tn,offsetY:ln}=Nn(this,Rt,H1).call(this),nn=this.getNextId(),on=Nn(this,At,U1).call(this,{parent:this,id:nn,x:tn,y:ln,uiManager:Yt(this,Ot),isCentered:!0,...Gt});on&&this.add(on)}deserialize(Nt){switch(Nt.annotationType??Nt.annotationEditorType){case ut.AnnotationEditorType.FREETEXT:return dt.FreeTextEditor.deserialize(Nt,this,Yt(this,Ot));case ut.AnnotationEditorType.INK:return ft.InkEditor.deserialize(Nt,this,Yt(this,Ot));case ut.AnnotationEditorType.STAMP:return pt.StampEditor.deserialize(Nt,this,Yt(this,Ot))}return null}addNewEditor(){Nn(this,$t,Vp).call(this,Nn(this,Rt,H1).call(this),!0)}setSelected(Nt){Yt(this,Ot).setSelected(Nt)}toggleSelected(Nt){Yt(this,Ot).toggleSelected(Nt)}isSelected(Nt){return Yt(this,Ot).isSelected(Nt)}unselect(Nt){Yt(this,Ot).unselect(Nt)}pointerup(Nt){const{isMac:Gt}=ut.FeatureTest.platform;if(!(Nt.button!==0||Nt.ctrlKey&&Gt)&&Nt.target===this.div&&Yt(this,kt)){if(Wn(this,kt,!1),!Yt(this,wt)){Wn(this,wt,!0);return}if(Yt(this,Ot).getMode()===ut.AnnotationEditorType.STAMP){Yt(this,Ot).unselectAll();return}Nn(this,$t,Vp).call(this,Nt,!1)}}pointerdown(Nt){if(Yt(this,kt)){Wn(this,kt,!1);return}const{isMac:Gt}=ut.FeatureTest.platform;if(Nt.button!==0||Nt.ctrlKey&&Gt||Nt.target!==this.div)return;Wn(this,kt,!0);const tn=Yt(this,Ot).getActive();Wn(this,wt,!tn||tn.isEmpty())}findNewParent(Nt,Gt,tn){const ln=Yt(this,Ot).findParent(Gt,tn);return ln===null||ln===this?!1:(ln.changeParent(Nt),!0)}destroy(){var Nt,Gt;((Nt=Yt(this,Ot).getActive())==null?void 0:Nt.parent)===this&&(Yt(this,Ot).commitOrRemove(),Yt(this,Ot).setActiveEditor(null));for(const tn of Yt(this,Et).values())(Gt=Yt(this,vt))==null||Gt.removePointerInTextLayer(tn.contentDiv),tn.setParent(null),tn.isAttachedToDOM=!1,tn.div.remove();this.div=null,Yt(this,Et).clear(),Yt(this,Ot).removeLayer(this)}render({viewport:Nt}){this.viewport=Nt,(0,mt.setLayerDimensions)(this.div,Nt);for(const Gt of Yt(this,Ot).getEditors(this.pageIndex))this.add(Gt);this.updateMode()}update({viewport:Nt}){Yt(this,Ot).commitOrRemove(),this.viewport=Nt,(0,mt.setLayerDimensions)(this.div,{rotation:Nt.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:Nt,pageHeight:Gt}=this.viewport.rawDims;return[Nt,Gt]}};vt=new WeakMap,wt=new WeakMap,yt=new WeakMap,bt=new WeakMap,Ct=new WeakMap,Et=new WeakMap,kt=new WeakMap,xt=new WeakMap,St=new WeakMap,Ot=new WeakMap,At=new WeakSet,U1=function(Nt){switch(Yt(this,Ot).getMode()){case ut.AnnotationEditorType.FREETEXT:return new dt.FreeTextEditor(Nt);case ut.AnnotationEditorType.INK:return new ft.InkEditor(Nt);case ut.AnnotationEditorType.STAMP:return new pt.StampEditor(Nt)}return null},$t=new WeakSet,Vp=function(Nt,Gt){const tn=this.getNextId(),ln=Nn(this,At,U1).call(this,{parent:this,id:tn,x:Nt.offsetX,y:Nt.offsetY,uiManager:Yt(this,Ot),isCentered:Gt});return ln&&this.add(ln),ln},Rt=new WeakSet,H1=function(){const{x:Nt,y:Gt,width:tn,height:ln}=this.div.getBoundingClientRect(),nn=Math.max(0,Nt),on=Math.max(0,Gt),rn=Math.min(window.innerWidth,Nt+tn),Jt=Math.min(window.innerHeight,Gt+ln),Zt=(nn+rn)/2-Nt,Wt=(on+Jt)/2-Gt,[jt,Bt]=this.viewport.rotation%180===0?[Zt,Wt]:[Wt,Zt];return{offsetX:jt,offsetY:Bt}},Ft=new WeakSet,z1=function(){Wn(this,xt,!0);for(const Nt of Yt(this,Et).values())Nt.isEmpty()&&Nt.remove();Wn(this,xt,!1)},Hr(Ht,"_initialized",!1);let gt=Ht;at.AnnotationEditorLayer=gt},(it,at,lt)=>{var pt,gt,vt,wt,yt,bt,Ct,Et,kt,xt,Qv,Ot,Jv,Tt,ey,Lt,Mu,It,W1,Mt,ty,Vt,q1;Object.defineProperty(at,"__esModule",{value:!0}),at.FreeTextEditor=void 0;var ut=lt(1),ct=lt(5),dt=lt(4),ft=lt(29);const Gt=class Gt extends dt.AnnotationEditor{constructor(nn){super({...nn,name:"freeTextEditor"});An(this,xt);An(this,Ot);An(this,Tt);An(this,Lt);An(this,It);An(this,Mt);An(this,Vt);An(this,pt,this.editorDivBlur.bind(this));An(this,gt,this.editorDivFocus.bind(this));An(this,vt,this.editorDivInput.bind(this));An(this,wt,this.editorDivKeydown.bind(this));An(this,yt,void 0);An(this,bt,"");An(this,Ct,`${this.id}-editor`);An(this,Et,void 0);An(this,kt,null);Wn(this,yt,nn.color||Gt._defaultColor||dt.AnnotationEditor._defaultLineColor),Wn(this,Et,nn.fontSize||Gt._defaultFontSize)}static get _keyboardManager(){const nn=Gt.prototype,on=Zt=>Zt.isEmpty(),rn=ct.AnnotationEditorUIManager.TRANSLATE_SMALL,Jt=ct.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,ut.shadow)(this,"_keyboardManager",new ct.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],nn.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],nn.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],nn._translateEmpty,{args:[-rn,0],checker:on}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],nn._translateEmpty,{args:[-Jt,0],checker:on}],[["ArrowRight","mac+ArrowRight"],nn._translateEmpty,{args:[rn,0],checker:on}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],nn._translateEmpty,{args:[Jt,0],checker:on}],[["ArrowUp","mac+ArrowUp"],nn._translateEmpty,{args:[0,-rn],checker:on}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],nn._translateEmpty,{args:[0,-Jt],checker:on}],[["ArrowDown","mac+ArrowDown"],nn._translateEmpty,{args:[0,rn],checker:on}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],nn._translateEmpty,{args:[0,Jt],checker:on}]]))}static initialize(nn){dt.AnnotationEditor.initialize(nn,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const on=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(on.getPropertyValue("--freetext-padding"))}static updateDefaultParams(nn,on){switch(nn){case ut.AnnotationEditorParamsType.FREETEXT_SIZE:Gt._defaultFontSize=on;break;case ut.AnnotationEditorParamsType.FREETEXT_COLOR:Gt._defaultColor=on;break}}updateParams(nn,on){switch(nn){case ut.AnnotationEditorParamsType.FREETEXT_SIZE:Nn(this,xt,Qv).call(this,on);break;case ut.AnnotationEditorParamsType.FREETEXT_COLOR:Nn(this,Ot,Jv).call(this,on);break}}static get defaultPropertiesToUpdate(){return[[ut.AnnotationEditorParamsType.FREETEXT_SIZE,Gt._defaultFontSize],[ut.AnnotationEditorParamsType.FREETEXT_COLOR,Gt._defaultColor||dt.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[ut.AnnotationEditorParamsType.FREETEXT_SIZE,Yt(this,Et)],[ut.AnnotationEditorParamsType.FREETEXT_COLOR,Yt(this,yt)]]}_translateEmpty(nn,on){this._uiManager.translateSelectedEditors(nn,on,!0)}getInitialTranslation(){const nn=this.parentScale;return[-Gt._internalPadding*nn,-(Gt._internalPadding+Yt(this,Et))*nn]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(ut.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",Yt(this,wt)),this.editorDiv.addEventListener("focus",Yt(this,gt)),this.editorDiv.addEventListener("blur",Yt(this,pt)),this.editorDiv.addEventListener("input",Yt(this,vt)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",Yt(this,Ct)),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",Yt(this,wt)),this.editorDiv.removeEventListener("focus",Yt(this,gt)),this.editorDiv.removeEventListener("blur",Yt(this,pt)),this.editorDiv.removeEventListener("input",Yt(this,vt)),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(nn){this._focusEventsAllowed&&(super.focusin(nn),nn.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){var nn;if(this.width){Nn(this,Vt,q1).call(this);return}this.enableEditMode(),this.editorDiv.focus(),(nn=this._initialOptions)!=null&&nn.isCentered&&this.center(),this._initialOptions=null}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const nn=Yt(this,bt),on=Wn(this,bt,Nn(this,Tt,ey).call(this).trimEnd());if(nn===on)return;const rn=Jt=>{if(Wn(this,bt,Jt),!Jt){this.remove();return}Nn(this,It,W1).call(this),this._uiManager.rebuild(this),Nn(this,Lt,Mu).call(this)};this.addCommands({cmd:()=>{rn(on)},undo:()=>{rn(nn)},mustExec:!1}),Nn(this,Lt,Mu).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(nn){this.enterInEditMode()}keydown(nn){nn.target===this.div&&nn.key==="Enter"&&(this.enterInEditMode(),nn.preventDefault())}editorDivKeydown(nn){Gt._keyboardManager.exec(this,nn)}editorDivFocus(nn){this.isEditing=!0}editorDivBlur(nn){this.isEditing=!1}editorDivInput(nn){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let nn,on;this.width&&(nn=this.x,on=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",Yt(this,Ct)),this.enableEditing(),dt.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(Jt=>{var Zt;return(Zt=this.editorDiv)==null?void 0:Zt.setAttribute("aria-label",Jt)}),dt.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(Jt=>{var Zt;return(Zt=this.editorDiv)==null?void 0:Zt.setAttribute("default-content",Jt)}),this.editorDiv.contentEditable=!0;const{style:rn}=this.editorDiv;if(rn.fontSize=`calc(${Yt(this,Et)}px * var(--scale-factor))`,rn.color=Yt(this,yt),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,ct.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[Jt,Zt]=this.parentDimensions;if(this.annotationElementId){const{position:Wt}=Yt(this,kt);let[jt,Bt]=this.getInitialTranslation();[jt,Bt]=this.pageTranslationToScreen(jt,Bt);const[Dt,zt]=this.pageDimensions,[Kt,en]=this.pageTranslation;let sn,cn;switch(this.rotation){case 0:sn=nn+(Wt[0]-Kt)/Dt,cn=on+this.height-(Wt[1]-en)/zt;break;case 90:sn=nn+(Wt[0]-Kt)/Dt,cn=on-(Wt[1]-en)/zt,[jt,Bt]=[Bt,-jt];break;case 180:sn=nn-this.width+(Wt[0]-Kt)/Dt,cn=on-(Wt[1]-en)/zt,[jt,Bt]=[-jt,-Bt];break;case 270:sn=nn+(Wt[0]-Kt-this.height*zt)/Dt,cn=on+(Wt[1]-en-this.width*Dt)/zt,[jt,Bt]=[-Bt,jt];break}this.setAt(sn*Jt,cn*Zt,jt,Bt)}else this.setAt(nn*Jt,on*Zt,this.width*Jt,this.height*Zt);Nn(this,It,W1).call(this),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(nn,on,rn){let Jt=null;if(nn instanceof ft.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:Wt,fontColor:jt},rect:Bt,rotation:Dt,id:zt},textContent:Kt,textPosition:en,parent:{page:{pageNumber:sn}}}=nn;if(!Kt||Kt.length===0)return null;Jt=nn={annotationType:ut.AnnotationEditorType.FREETEXT,color:Array.from(jt),fontSize:Wt,value:Kt.join(`
`),position:en,pageIndex:sn-1,rect:Bt,rotation:Dt,id:zt,deleted:!1}}const Zt=super.deserialize(nn,on,rn);return Wn(Zt,Et,nn.fontSize),Wn(Zt,yt,ut.Util.makeHexColor(...nn.color)),Wn(Zt,bt,nn.value),Zt.annotationElementId=nn.id||null,Wn(Zt,kt,Jt),Zt}serialize(nn=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const on=Gt._internalPadding*this.parentScale,rn=this.getRect(on,on),Jt=dt.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:Yt(this,yt)),Zt={annotationType:ut.AnnotationEditorType.FREETEXT,color:Jt,fontSize:Yt(this,Et),value:Yt(this,bt),pageIndex:this.pageIndex,rect:rn,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return nn?Zt:this.annotationElementId&&!Nn(this,Mt,ty).call(this,Zt)?null:(Zt.id=this.annotationElementId,Zt)}};pt=new WeakMap,gt=new WeakMap,vt=new WeakMap,wt=new WeakMap,yt=new WeakMap,bt=new WeakMap,Ct=new WeakMap,Et=new WeakMap,kt=new WeakMap,xt=new WeakSet,Qv=function(nn){const on=Jt=>{this.editorDiv.style.fontSize=`calc(${Jt}px * var(--scale-factor))`,this.translate(0,-(Jt-Yt(this,Et))*this.parentScale),Wn(this,Et,Jt),Nn(this,Lt,Mu).call(this)},rn=Yt(this,Et);this.addCommands({cmd:()=>{on(nn)},undo:()=>{on(rn)},mustExec:!0,type:ut.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},Ot=new WeakSet,Jv=function(nn){const on=Yt(this,yt);this.addCommands({cmd:()=>{Wn(this,yt,this.editorDiv.style.color=nn)},undo:()=>{Wn(this,yt,this.editorDiv.style.color=on)},mustExec:!0,type:ut.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},Tt=new WeakSet,ey=function(){const nn=this.editorDiv.getElementsByTagName("div");if(nn.length===0)return this.editorDiv.innerText;const on=[];for(const rn of nn)on.push(rn.innerText.replace(/\r\n?|\n/,""));return on.join(`
`)},Lt=new WeakSet,Mu=function(){const[nn,on]=this.parentDimensions;let rn;if(this.isAttachedToDOM)rn=this.div.getBoundingClientRect();else{const{currentLayer:Jt,div:Zt}=this,Wt=Zt.style.display;Zt.style.display="hidden",Jt.div.append(this.div),rn=Zt.getBoundingClientRect(),Zt.remove(),Zt.style.display=Wt}this.rotation%180===this.parentRotation%180?(this.width=rn.width/nn,this.height=rn.height/on):(this.width=rn.height/nn,this.height=rn.width/on),this.fixAndSetPosition()},It=new WeakSet,W1=function(){if(this.editorDiv.replaceChildren(),!!Yt(this,bt))for(const nn of Yt(this,bt).split(`
`)){const on=document.createElement("div");on.append(nn?document.createTextNode(nn):document.createElement("br")),this.editorDiv.append(on)}},Mt=new WeakSet,ty=function(nn){const{value:on,fontSize:rn,color:Jt,rect:Zt,pageIndex:Wt}=Yt(this,kt);return nn.value!==on||nn.fontSize!==rn||nn.rect.some((jt,Bt)=>Math.abs(jt-Zt[Bt])>=1)||nn.color.some((jt,Bt)=>jt!==Jt[Bt])||nn.pageIndex!==Wt},Vt=new WeakSet,q1=function(nn=!1){if(!this.annotationElementId)return;if(Nn(this,Lt,Mu).call(this),!nn&&(this.width===0||this.height===0)){setTimeout(()=>Nn(this,Vt,q1).call(this,!0),0);return}const on=Gt._internalPadding*this.parentScale;Yt(this,kt).rect=this.getRect(on,on)},Hr(Gt,"_freeTextDefaultContent",""),Hr(Gt,"_internalPadding",0),Hr(Gt,"_defaultColor",null),Hr(Gt,"_defaultFontSize",10),Hr(Gt,"_type","freetext");let mt=Gt;at.FreeTextEditor=mt},(it,at,lt)=>{var Bt,zt,_a,en,ny,cn,bn,Tn,kn,In,Hn,Fn,wn,Mn,Dn,Un,Sn,On,Cn,Pn,Xn,Qn,sr,ry,or,Gp,fn,V1,Kn,G1,gn,vn,qn,Yn,Sr,Tr,Ln,K1,hr,ur,_r,yr,iy,rr,Y1;Object.defineProperty(at,"__esModule",{value:!0}),at.StampAnnotationElement=at.InkAnnotationElement=at.FreeTextAnnotationElement=at.AnnotationLayer=void 0;var ut=lt(1),ct=lt(6),dt=lt(3),ft=lt(30),mt=lt(31),pt=lt(32);const gt=1e3,vt=9,wt=new WeakSet;function yt(mr){return{width:mr[2]-mr[0],height:mr[3]-mr[1]}}class bt{static create(yn){switch(yn.data.annotationType){case ut.AnnotationType.LINK:return new Et(yn);case ut.AnnotationType.TEXT:return new kt(yn);case ut.AnnotationType.WIDGET:switch(yn.data.fieldType){case"Tx":return new St(yn);case"Btn":return yn.data.radioButton?new Tt(yn):yn.data.checkBox?new At(yn):new $t(yn);case"Ch":return new Lt(yn);case"Sig":return new Ot(yn)}return new xt(yn);case ut.AnnotationType.POPUP:return new Rt(yn);case ut.AnnotationType.FREETEXT:return new Ft(yn);case ut.AnnotationType.LINE:return new Mt(yn);case ut.AnnotationType.SQUARE:return new Ht(yn);case ut.AnnotationType.CIRCLE:return new Vt(yn);case ut.AnnotationType.POLYLINE:return new Nt(yn);case ut.AnnotationType.CARET:return new tn(yn);case ut.AnnotationType.INK:return new ln(yn);case ut.AnnotationType.POLYGON:return new Gt(yn);case ut.AnnotationType.HIGHLIGHT:return new nn(yn);case ut.AnnotationType.UNDERLINE:return new on(yn);case ut.AnnotationType.SQUIGGLY:return new rn(yn);case ut.AnnotationType.STRIKEOUT:return new Jt(yn);case ut.AnnotationType.STAMP:return new Zt(yn);case ut.AnnotationType.FILEATTACHMENT:return new Wt(yn);default:return new Ct(yn)}}}const Dt=class Dt{constructor(yn,{isRenderable:Qt=!1,ignoreBorder:dn=!1,createQuadrilaterals:mn=!1}={}){An(this,Bt,!1);this.isRenderable=Qt,this.data=yn.data,this.layer=yn.layer,this.linkService=yn.linkService,this.downloadManager=yn.downloadManager,this.imageResourcesPath=yn.imageResourcesPath,this.renderForms=yn.renderForms,this.svgFactory=yn.svgFactory,this.annotationStorage=yn.annotationStorage,this.enableScripting=yn.enableScripting,this.hasJSActions=yn.hasJSActions,this._fieldObjects=yn.fieldObjects,this.parent=yn.parent,Qt&&(this.container=this._createContainer(dn)),mn&&this._createQuadrilaterals()}static _hasPopupData({titleObj:yn,contentsObj:Qt,richText:dn}){return!!(yn!=null&&yn.str||Qt!=null&&Qt.str||dn!=null&&dn.str)}get hasPopupData(){return Dt._hasPopupData(this.data)}_createContainer(yn){const{data:Qt,parent:{page:dn,viewport:mn}}=this,Rn=document.createElement("section");Rn.setAttribute("data-annotation-id",Qt.id),this instanceof xt||(Rn.tabIndex=gt),Rn.style.zIndex=this.parent.zIndex++,this.data.popupRef&&Rn.setAttribute("aria-haspopup","dialog"),Qt.noRotate&&Rn.classList.add("norotate");const{pageWidth:jn,pageHeight:Vn,pageX:nr,pageY:cr}=mn.rawDims;if(!Qt.rect||this instanceof Rt){const{rotation:wr}=Qt;return!Qt.hasOwnCanvas&&wr!==0&&this.setRotation(wr,Rn),Rn}const{width:Jn,height:Ar}=yt(Qt.rect),fr=ut.Util.normalizeRect([Qt.rect[0],dn.view[3]-Qt.rect[1]+dn.view[1],Qt.rect[2],dn.view[3]-Qt.rect[3]+dn.view[1]]);if(!yn&&Qt.borderStyle.width>0){Rn.style.borderWidth=`${Qt.borderStyle.width}px`;const wr=Qt.borderStyle.horizontalCornerRadius,kr=Qt.borderStyle.verticalCornerRadius;if(wr>0||kr>0){const jr=`calc(${wr}px * var(--scale-factor)) / calc(${kr}px * var(--scale-factor))`;Rn.style.borderRadius=jr}else if(this instanceof Tt){const jr=`calc(${Jn}px * var(--scale-factor)) / calc(${Ar}px * var(--scale-factor))`;Rn.style.borderRadius=jr}switch(Qt.borderStyle.style){case ut.AnnotationBorderStyleType.SOLID:Rn.style.borderStyle="solid";break;case ut.AnnotationBorderStyleType.DASHED:Rn.style.borderStyle="dashed";break;case ut.AnnotationBorderStyleType.BEVELED:(0,ut.warn)("Unimplemented border style: beveled");break;case ut.AnnotationBorderStyleType.INSET:(0,ut.warn)("Unimplemented border style: inset");break;case ut.AnnotationBorderStyleType.UNDERLINE:Rn.style.borderBottomStyle="solid";break}const Nr=Qt.borderColor||null;Nr?(Wn(this,Bt,!0),Rn.style.borderColor=ut.Util.makeHexColor(Nr[0]|0,Nr[1]|0,Nr[2]|0)):Rn.style.borderWidth=0}Rn.style.left=`${100*(fr[0]-nr)/jn}%`,Rn.style.top=`${100*(fr[1]-cr)/Vn}%`;const{rotation:gr}=Qt;return Qt.hasOwnCanvas||gr===0?(Rn.style.width=`${100*Jn/jn}%`,Rn.style.height=`${100*Ar/Vn}%`):this.setRotation(gr,Rn),Rn}setRotation(yn,Qt=this.container){if(!this.data.rect)return;const{pageWidth:dn,pageHeight:mn}=this.parent.viewport.rawDims,{width:Rn,height:jn}=yt(this.data.rect);let Vn,nr;yn%180===0?(Vn=100*Rn/dn,nr=100*jn/mn):(Vn=100*jn/dn,nr=100*Rn/mn),Qt.style.width=`${Vn}%`,Qt.style.height=`${nr}%`,Qt.setAttribute("data-main-rotation",(360-yn)%360)}get _commonActions(){const yn=(Qt,dn,mn)=>{const Rn=mn.detail[Qt],jn=Rn[0],Vn=Rn.slice(1);mn.target.style[dn]=ft.ColorConverters[`${jn}_HTML`](Vn),this.annotationStorage.setValue(this.data.id,{[dn]:ft.ColorConverters[`${jn}_rgb`](Vn)})};return(0,ut.shadow)(this,"_commonActions",{display:Qt=>{const{display:dn}=Qt.detail,mn=dn%2===1;this.container.style.visibility=mn?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:mn,noPrint:dn===1||dn===2})},print:Qt=>{this.annotationStorage.setValue(this.data.id,{noPrint:!Qt.detail.print})},hidden:Qt=>{const{hidden:dn}=Qt.detail;this.container.style.visibility=dn?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:dn,noView:dn})},focus:Qt=>{setTimeout(()=>Qt.target.focus({preventScroll:!1}),0)},userName:Qt=>{Qt.target.title=Qt.detail.userName},readonly:Qt=>{Qt.target.disabled=Qt.detail.readonly},required:Qt=>{this._setRequired(Qt.target,Qt.detail.required)},bgColor:Qt=>{yn("bgColor","backgroundColor",Qt)},fillColor:Qt=>{yn("fillColor","backgroundColor",Qt)},fgColor:Qt=>{yn("fgColor","color",Qt)},textColor:Qt=>{yn("textColor","color",Qt)},borderColor:Qt=>{yn("borderColor","borderColor",Qt)},strokeColor:Qt=>{yn("strokeColor","borderColor",Qt)},rotation:Qt=>{const dn=Qt.detail.rotation;this.setRotation(dn),this.annotationStorage.setValue(this.data.id,{rotation:dn})}})}_dispatchEventFromSandbox(yn,Qt){const dn=this._commonActions;for(const mn of Object.keys(Qt.detail)){const Rn=yn[mn]||dn[mn];Rn==null||Rn(Qt)}}_setDefaultPropertiesFromJS(yn){if(!this.enableScripting)return;const Qt=this.annotationStorage.getRawValue(this.data.id);if(!Qt)return;const dn=this._commonActions;for(const[mn,Rn]of Object.entries(Qt)){const jn=dn[mn];if(jn){const Vn={detail:{[mn]:Rn},target:yn};jn(Vn),delete Qt[mn]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:yn}=this.data;if(!yn)return;const[Qt,dn,mn,Rn]=this.data.rect;if(yn.length===1){const[,{x:kr,y:Nr},{x:jr,y:Zr}]=yn[0];if(mn===kr&&Rn===Nr&&Qt===jr&&dn===Zr)return}const{style:jn}=this.container;let Vn;if(Yt(this,Bt)){const{borderColor:kr,borderWidth:Nr}=jn;jn.borderWidth=0,Vn=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${kr}" stroke-width="${Nr}">`],this.container.classList.add("hasBorder")}const nr=mn-Qt,cr=Rn-dn,{svgFactory:Jn}=this,Ar=Jn.createElement("svg");Ar.classList.add("quadrilateralsContainer"),Ar.setAttribute("width",0),Ar.setAttribute("height",0);const fr=Jn.createElement("defs");Ar.append(fr);const gr=Jn.createElement("clipPath"),wr=`clippath_${this.data.id}`;gr.setAttribute("id",wr),gr.setAttribute("clipPathUnits","objectBoundingBox"),fr.append(gr);for(const[,{x:kr,y:Nr},{x:jr,y:Zr}]of yn){const Qr=Jn.createElement("rect"),qr=(jr-Qt)/nr,_i=(Rn-Nr)/cr,$o=(kr-jr)/nr,ks=(Nr-Zr)/cr;Qr.setAttribute("x",qr),Qr.setAttribute("y",_i),Qr.setAttribute("width",$o),Qr.setAttribute("height",ks),gr.append(Qr),Vn==null||Vn.push(`<rect vector-effect="non-scaling-stroke" x="${qr}" y="${_i}" width="${$o}" height="${ks}"/>`)}Yt(this,Bt)&&(Vn.push("</g></svg>')"),jn.backgroundImage=Vn.join("")),this.container.append(Ar),this.container.style.clipPath=`url(#${wr})`}_createPopup(){const{container:yn,data:Qt}=this;yn.setAttribute("aria-haspopup","dialog");const dn=new Rt({data:{color:Qt.color,titleObj:Qt.titleObj,modificationDate:Qt.modificationDate,contentsObj:Qt.contentsObj,richText:Qt.richText,parentRect:Qt.rect,borderStyle:0,id:`popup_${Qt.id}`,rotation:Qt.rotation},parent:this.parent,elements:[this]});this.parent.div.append(dn.render())}render(){(0,ut.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(yn,Qt=null){const dn=[];if(this._fieldObjects){const mn=this._fieldObjects[yn];if(mn)for(const{page:Rn,id:jn,exportValues:Vn}of mn){if(Rn===-1||jn===Qt)continue;const nr=typeof Vn=="string"?Vn:null,cr=document.querySelector(`[data-element-id="${jn}"]`);if(cr&&!wt.has(cr)){(0,ut.warn)(`_getElementsByName - element not allowed: ${jn}`);continue}dn.push({id:jn,exportValue:nr,domElement:cr})}return dn}for(const mn of document.getElementsByName(yn)){const{exportValue:Rn}=mn,jn=mn.getAttribute("data-element-id");jn!==Qt&&wt.has(mn)&&dn.push({id:jn,exportValue:Rn,domElement:mn})}return dn}show(){var yn;this.container&&(this.container.hidden=!1),(yn=this.popup)==null||yn.maybeShow()}hide(){var yn;this.container&&(this.container.hidden=!0),(yn=this.popup)==null||yn.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const yn=this.getElementsToTriggerPopup();if(Array.isArray(yn))for(const Qt of yn)Qt.classList.add("highlightArea");else yn.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:yn,data:{id:Qt}}=this;this.container.addEventListener("dblclick",()=>{var dn;(dn=this.linkService.eventBus)==null||dn.dispatch("switchannotationeditormode",{source:this,mode:yn,editId:Qt})})}};Bt=new WeakMap;let Ct=Dt;class Et extends Ct{constructor(Qt,dn=null){super(Qt,{isRenderable:!0,ignoreBorder:!!(dn!=null&&dn.ignoreBorder),createQuadrilaterals:!0});An(this,zt);An(this,en);this.isTooltipOnly=Qt.data.isTooltipOnly}render(){const{data:Qt,linkService:dn}=this,mn=document.createElement("a");mn.setAttribute("data-element-id",Qt.id);let Rn=!1;return Qt.url?(dn.addLinkAttributes(mn,Qt.url,Qt.newWindow),Rn=!0):Qt.action?(this._bindNamedAction(mn,Qt.action),Rn=!0):Qt.attachment?(this._bindAttachment(mn,Qt.attachment),Rn=!0):Qt.setOCGState?(Nn(this,en,ny).call(this,mn,Qt.setOCGState),Rn=!0):Qt.dest?(this._bindLink(mn,Qt.dest),Rn=!0):(Qt.actions&&(Qt.actions.Action||Qt.actions["Mouse Up"]||Qt.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(mn,Qt),Rn=!0),Qt.resetForm?(this._bindResetFormAction(mn,Qt.resetForm),Rn=!0):this.isTooltipOnly&&!Rn&&(this._bindLink(mn,""),Rn=!0)),this.container.classList.add("linkAnnotation"),Rn&&this.container.append(mn),this.container}_bindLink(Qt,dn){Qt.href=this.linkService.getDestinationHash(dn),Qt.onclick=()=>(dn&&this.linkService.goToDestination(dn),!1),(dn||dn==="")&&Nn(this,zt,_a).call(this)}_bindNamedAction(Qt,dn){Qt.href=this.linkService.getAnchorUrl(""),Qt.onclick=()=>(this.linkService.executeNamedAction(dn),!1),Nn(this,zt,_a).call(this)}_bindAttachment(Qt,dn){Qt.href=this.linkService.getAnchorUrl(""),Qt.onclick=()=>{var mn;return(mn=this.downloadManager)==null||mn.openOrDownloadData(this.container,dn.content,dn.filename),!1},Nn(this,zt,_a).call(this)}_bindJSAction(Qt,dn){Qt.href=this.linkService.getAnchorUrl("");const mn=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const Rn of Object.keys(dn.actions)){const jn=mn.get(Rn);jn&&(Qt[jn]=()=>{var Vn;return(Vn=this.linkService.eventBus)==null||Vn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:dn.id,name:Rn}}),!1})}Qt.onclick||(Qt.onclick=()=>!1),Nn(this,zt,_a).call(this)}_bindResetFormAction(Qt,dn){const mn=Qt.onclick;if(mn||(Qt.href=this.linkService.getAnchorUrl("")),Nn(this,zt,_a).call(this),!this._fieldObjects){(0,ut.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),mn||(Qt.onclick=()=>!1);return}Qt.onclick=()=>{var Ar;mn==null||mn();const{fields:Rn,refs:jn,include:Vn}=dn,nr=[];if(Rn.length!==0||jn.length!==0){const fr=new Set(jn);for(const gr of Rn){const wr=this._fieldObjects[gr]||[];for(const{id:kr}of wr)fr.add(kr)}for(const gr of Object.values(this._fieldObjects))for(const wr of gr)fr.has(wr.id)===Vn&&nr.push(wr)}else for(const fr of Object.values(this._fieldObjects))nr.push(...fr);const cr=this.annotationStorage,Jn=[];for(const fr of nr){const{id:gr}=fr;switch(Jn.push(gr),fr.type){case"text":{const kr=fr.defaultValue||"";cr.setValue(gr,{value:kr});break}case"checkbox":case"radiobutton":{const kr=fr.defaultValue===fr.exportValues;cr.setValue(gr,{value:kr});break}case"combobox":case"listbox":{const kr=fr.defaultValue||"";cr.setValue(gr,{value:kr});break}default:continue}const wr=document.querySelector(`[data-element-id="${gr}"]`);if(wr){if(!wt.has(wr)){(0,ut.warn)(`_bindResetFormAction - element not allowed: ${gr}`);continue}}else continue;wr.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((Ar=this.linkService.eventBus)==null||Ar.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:Jn,name:"ResetForm"}})),!1}}}zt=new WeakSet,_a=function(){this.container.setAttribute("data-internal-link","")},en=new WeakSet,ny=function(Qt,dn){Qt.href=this.linkService.getAnchorUrl(""),Qt.onclick=()=>(this.linkService.executeSetOCGState(dn),!1),Nn(this,zt,_a).call(this)};class kt extends Ct{constructor(yn){super(yn,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const yn=document.createElement("img");return yn.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",yn.alt="[{{type}} Annotation]",yn.dataset.l10nId="text_annotation_type",yn.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(yn),this.container}}class xt extends Ct{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(yn){var Qt;this.data.hasOwnCanvas&&(((Qt=yn.previousSibling)==null?void 0:Qt.nodeName)==="CANVAS"&&(yn.previousSibling.hidden=!0),yn.hidden=!1)}_getKeyModifier(yn){const{isWin:Qt,isMac:dn}=ut.FeatureTest.platform;return Qt&&yn.ctrlKey||dn&&yn.metaKey}_setEventListener(yn,Qt,dn,mn,Rn){dn.includes("mouse")?yn.addEventListener(dn,jn=>{var Vn;(Vn=this.linkService.eventBus)==null||Vn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:mn,value:Rn(jn),shift:jn.shiftKey,modifier:this._getKeyModifier(jn)}})}):yn.addEventListener(dn,jn=>{var Vn;if(dn==="blur"){if(!Qt.focused||!jn.relatedTarget)return;Qt.focused=!1}else if(dn==="focus"){if(Qt.focused)return;Qt.focused=!0}Rn&&((Vn=this.linkService.eventBus)==null||Vn.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:mn,value:Rn(jn)}}))})}_setEventListeners(yn,Qt,dn,mn){var Rn,jn,Vn;for(const[nr,cr]of dn)(cr==="Action"||(Rn=this.data.actions)!=null&&Rn[cr])&&((cr==="Focus"||cr==="Blur")&&(Qt||(Qt={focused:!1})),this._setEventListener(yn,Qt,nr,cr,mn),cr==="Focus"&&!((jn=this.data.actions)!=null&&jn.Blur)?this._setEventListener(yn,Qt,"blur","Blur",null):cr==="Blur"&&!((Vn=this.data.actions)!=null&&Vn.Focus)&&this._setEventListener(yn,Qt,"focus","Focus",null))}_setBackgroundColor(yn){const Qt=this.data.backgroundColor||null;yn.style.backgroundColor=Qt===null?"transparent":ut.Util.makeHexColor(Qt[0],Qt[1],Qt[2])}_setTextStyle(yn){const Qt=["left","center","right"],{fontColor:dn}=this.data.defaultAppearanceData,mn=this.data.defaultAppearanceData.fontSize||vt,Rn=yn.style;let jn;const Vn=2,nr=cr=>Math.round(10*cr)/10;if(this.data.multiLine){const cr=Math.abs(this.data.rect[3]-this.data.rect[1]-Vn),Jn=Math.round(cr/(ut.LINE_FACTOR*mn))||1,Ar=cr/Jn;jn=Math.min(mn,nr(Ar/ut.LINE_FACTOR))}else{const cr=Math.abs(this.data.rect[3]-this.data.rect[1]-Vn);jn=Math.min(mn,nr(cr/ut.LINE_FACTOR))}Rn.fontSize=`calc(${jn}px * var(--scale-factor))`,Rn.color=ut.Util.makeHexColor(dn[0],dn[1],dn[2]),this.data.textAlignment!==null&&(Rn.textAlign=Qt[this.data.textAlignment])}_setRequired(yn,Qt){Qt?yn.setAttribute("required",!0):yn.removeAttribute("required"),yn.setAttribute("aria-required",Qt)}}class St extends xt{constructor(yn){const Qt=yn.renderForms||!yn.data.hasAppearance&&!!yn.data.fieldValue;super(yn,{isRenderable:Qt})}setPropertyOnSiblings(yn,Qt,dn,mn){const Rn=this.annotationStorage;for(const jn of this._getElementsByName(yn.name,yn.id))jn.domElement&&(jn.domElement[Qt]=dn),Rn.setValue(jn.id,{[mn]:dn})}render(){var mn,Rn;const yn=this.annotationStorage,Qt=this.data.id;this.container.classList.add("textWidgetAnnotation");let dn=null;if(this.renderForms){const jn=yn.getValue(Qt,{value:this.data.fieldValue});let Vn=jn.value||"";const nr=yn.getValue(Qt,{charLimit:this.data.maxLen}).charLimit;nr&&Vn.length>nr&&(Vn=Vn.slice(0,nr));let cr=jn.formattedValue||((mn=this.data.textContent)==null?void 0:mn.join(`
`))||null;cr&&this.data.comb&&(cr=cr.replaceAll(/\s+/g,""));const Jn={userValue:Vn,formattedValue:cr,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(dn=document.createElement("textarea"),dn.textContent=cr??Vn,this.data.doNotScroll&&(dn.style.overflowY="hidden")):(dn=document.createElement("input"),dn.type="text",dn.setAttribute("value",cr??Vn),this.data.doNotScroll&&(dn.style.overflowX="hidden")),this.data.hasOwnCanvas&&(dn.hidden=!0),wt.add(dn),dn.setAttribute("data-element-id",Qt),dn.disabled=this.data.readOnly,dn.name=this.data.fieldName,dn.tabIndex=gt,this._setRequired(dn,this.data.required),nr&&(dn.maxLength=nr),dn.addEventListener("input",fr=>{yn.setValue(Qt,{value:fr.target.value}),this.setPropertyOnSiblings(dn,"value",fr.target.value,"value"),Jn.formattedValue=null}),dn.addEventListener("resetform",fr=>{const gr=this.data.defaultFieldValue??"";dn.value=Jn.userValue=gr,Jn.formattedValue=null});let Ar=fr=>{const{formattedValue:gr}=Jn;gr!=null&&(fr.target.value=gr),fr.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){dn.addEventListener("focus",gr=>{if(Jn.focused)return;const{target:wr}=gr;Jn.userValue&&(wr.value=Jn.userValue),Jn.lastCommittedValue=wr.value,Jn.commitKey=1,Jn.focused=!0}),dn.addEventListener("updatefromsandbox",gr=>{this.showElementAndHideCanvas(gr.target);const wr={value(kr){Jn.userValue=kr.detail.value??"",yn.setValue(Qt,{value:Jn.userValue.toString()}),kr.target.value=Jn.userValue},formattedValue(kr){const{formattedValue:Nr}=kr.detail;Jn.formattedValue=Nr,Nr!=null&&kr.target!==document.activeElement&&(kr.target.value=Nr),yn.setValue(Qt,{formattedValue:Nr})},selRange(kr){kr.target.setSelectionRange(...kr.detail.selRange)},charLimit:kr=>{var Qr;const{charLimit:Nr}=kr.detail,{target:jr}=kr;if(Nr===0){jr.removeAttribute("maxLength");return}jr.setAttribute("maxLength",Nr);let Zr=Jn.userValue;!Zr||Zr.length<=Nr||(Zr=Zr.slice(0,Nr),jr.value=Jn.userValue=Zr,yn.setValue(Qt,{value:Zr}),(Qr=this.linkService.eventBus)==null||Qr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Qt,name:"Keystroke",value:Zr,willCommit:!0,commitKey:1,selStart:jr.selectionStart,selEnd:jr.selectionEnd}}))}};this._dispatchEventFromSandbox(wr,gr)}),dn.addEventListener("keydown",gr=>{var Nr;Jn.commitKey=1;let wr=-1;if(gr.key==="Escape"?wr=0:gr.key==="Enter"&&!this.data.multiLine?wr=2:gr.key==="Tab"&&(Jn.commitKey=3),wr===-1)return;const{value:kr}=gr.target;Jn.lastCommittedValue!==kr&&(Jn.lastCommittedValue=kr,Jn.userValue=kr,(Nr=this.linkService.eventBus)==null||Nr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Qt,name:"Keystroke",value:kr,willCommit:!0,commitKey:wr,selStart:gr.target.selectionStart,selEnd:gr.target.selectionEnd}}))});const fr=Ar;Ar=null,dn.addEventListener("blur",gr=>{var kr;if(!Jn.focused||!gr.relatedTarget)return;Jn.focused=!1;const{value:wr}=gr.target;Jn.userValue=wr,Jn.lastCommittedValue!==wr&&((kr=this.linkService.eventBus)==null||kr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Qt,name:"Keystroke",value:wr,willCommit:!0,commitKey:Jn.commitKey,selStart:gr.target.selectionStart,selEnd:gr.target.selectionEnd}})),fr(gr)}),(Rn=this.data.actions)!=null&&Rn.Keystroke&&dn.addEventListener("beforeinput",gr=>{var _i;Jn.lastCommittedValue=null;const{data:wr,target:kr}=gr,{value:Nr,selectionStart:jr,selectionEnd:Zr}=kr;let Qr=jr,qr=Zr;switch(gr.inputType){case"deleteWordBackward":{const $o=Nr.substring(0,jr).match(/\w*[^\w]*$/);$o&&(Qr-=$o[0].length);break}case"deleteWordForward":{const $o=Nr.substring(jr).match(/^[^\w]*\w*/);$o&&(qr+=$o[0].length);break}case"deleteContentBackward":jr===Zr&&(Qr-=1);break;case"deleteContentForward":jr===Zr&&(qr+=1);break}gr.preventDefault(),(_i=this.linkService.eventBus)==null||_i.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Qt,name:"Keystroke",value:Nr,change:wr||"",willCommit:!1,selStart:Qr,selEnd:qr}})}),this._setEventListeners(dn,Jn,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],gr=>gr.target.value)}if(Ar&&dn.addEventListener("blur",Ar),this.data.comb){const gr=(this.data.rect[2]-this.data.rect[0])/nr;dn.classList.add("comb"),dn.style.letterSpacing=`calc(${gr}px * var(--scale-factor) - 1ch)`}}else dn=document.createElement("div"),dn.textContent=this.data.fieldValue,dn.style.verticalAlign="middle",dn.style.display="table-cell";return this._setTextStyle(dn),this._setBackgroundColor(dn),this._setDefaultPropertiesFromJS(dn),this.container.append(dn),this.container}}class Ot extends xt{constructor(yn){super(yn,{isRenderable:!!yn.data.hasOwnCanvas})}}class At extends xt{constructor(yn){super(yn,{isRenderable:yn.renderForms})}render(){const yn=this.annotationStorage,Qt=this.data,dn=Qt.id;let mn=yn.getValue(dn,{value:Qt.exportValue===Qt.fieldValue}).value;typeof mn=="string"&&(mn=mn!=="Off",yn.setValue(dn,{value:mn})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const Rn=document.createElement("input");return wt.add(Rn),Rn.setAttribute("data-element-id",dn),Rn.disabled=Qt.readOnly,this._setRequired(Rn,this.data.required),Rn.type="checkbox",Rn.name=Qt.fieldName,mn&&Rn.setAttribute("checked",!0),Rn.setAttribute("exportValue",Qt.exportValue),Rn.tabIndex=gt,Rn.addEventListener("change",jn=>{const{name:Vn,checked:nr}=jn.target;for(const cr of this._getElementsByName(Vn,dn)){const Jn=nr&&cr.exportValue===Qt.exportValue;cr.domElement&&(cr.domElement.checked=Jn),yn.setValue(cr.id,{value:Jn})}yn.setValue(dn,{value:nr})}),Rn.addEventListener("resetform",jn=>{const Vn=Qt.defaultFieldValue||"Off";jn.target.checked=Vn===Qt.exportValue}),this.enableScripting&&this.hasJSActions&&(Rn.addEventListener("updatefromsandbox",jn=>{const Vn={value(nr){nr.target.checked=nr.detail.value!=="Off",yn.setValue(dn,{value:nr.target.checked})}};this._dispatchEventFromSandbox(Vn,jn)}),this._setEventListeners(Rn,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],jn=>jn.target.checked)),this._setBackgroundColor(Rn),this._setDefaultPropertiesFromJS(Rn),this.container.append(Rn),this.container}}class Tt extends xt{constructor(yn){super(yn,{isRenderable:yn.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const yn=this.annotationStorage,Qt=this.data,dn=Qt.id;let mn=yn.getValue(dn,{value:Qt.fieldValue===Qt.buttonValue}).value;typeof mn=="string"&&(mn=mn!==Qt.buttonValue,yn.setValue(dn,{value:mn}));const Rn=document.createElement("input");if(wt.add(Rn),Rn.setAttribute("data-element-id",dn),Rn.disabled=Qt.readOnly,this._setRequired(Rn,this.data.required),Rn.type="radio",Rn.name=Qt.fieldName,mn&&Rn.setAttribute("checked",!0),Rn.tabIndex=gt,Rn.addEventListener("change",jn=>{const{name:Vn,checked:nr}=jn.target;for(const cr of this._getElementsByName(Vn,dn))yn.setValue(cr.id,{value:!1});yn.setValue(dn,{value:nr})}),Rn.addEventListener("resetform",jn=>{const Vn=Qt.defaultFieldValue;jn.target.checked=Vn!=null&&Vn===Qt.buttonValue}),this.enableScripting&&this.hasJSActions){const jn=Qt.buttonValue;Rn.addEventListener("updatefromsandbox",Vn=>{const nr={value:cr=>{const Jn=jn===cr.detail.value;for(const Ar of this._getElementsByName(cr.target.name)){const fr=Jn&&Ar.id===dn;Ar.domElement&&(Ar.domElement.checked=fr),yn.setValue(Ar.id,{value:fr})}}};this._dispatchEventFromSandbox(nr,Vn)}),this._setEventListeners(Rn,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Vn=>Vn.target.checked)}return this._setBackgroundColor(Rn),this._setDefaultPropertiesFromJS(Rn),this.container.append(Rn),this.container}}class $t extends Et{constructor(yn){super(yn,{ignoreBorder:yn.data.hasAppearance})}render(){const yn=super.render();yn.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(yn.title=this.data.alternativeText);const Qt=yn.lastChild;return this.enableScripting&&this.hasJSActions&&Qt&&(this._setDefaultPropertiesFromJS(Qt),Qt.addEventListener("updatefromsandbox",dn=>{this._dispatchEventFromSandbox({},dn)})),yn}}class Lt extends xt{constructor(yn){super(yn,{isRenderable:yn.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const yn=this.annotationStorage,Qt=this.data.id,dn=yn.getValue(Qt,{value:this.data.fieldValue}),mn=document.createElement("select");wt.add(mn),mn.setAttribute("data-element-id",Qt),mn.disabled=this.data.readOnly,this._setRequired(mn,this.data.required),mn.name=this.data.fieldName,mn.tabIndex=gt;let Rn=this.data.combo&&this.data.options.length>0;this.data.combo||(mn.size=this.data.options.length,this.data.multiSelect&&(mn.multiple=!0)),mn.addEventListener("resetform",Jn=>{const Ar=this.data.defaultFieldValue;for(const fr of mn.options)fr.selected=fr.value===Ar});for(const Jn of this.data.options){const Ar=document.createElement("option");Ar.textContent=Jn.displayValue,Ar.value=Jn.exportValue,dn.value.includes(Jn.exportValue)&&(Ar.setAttribute("selected",!0),Rn=!1),mn.append(Ar)}let jn=null;if(Rn){const Jn=document.createElement("option");Jn.value=" ",Jn.setAttribute("hidden",!0),Jn.setAttribute("selected",!0),mn.prepend(Jn),jn=()=>{Jn.remove(),mn.removeEventListener("input",jn),jn=null},mn.addEventListener("input",jn)}const Vn=Jn=>{const Ar=Jn?"value":"textContent",{options:fr,multiple:gr}=mn;return gr?Array.prototype.filter.call(fr,wr=>wr.selected).map(wr=>wr[Ar]):fr.selectedIndex===-1?null:fr[fr.selectedIndex][Ar]};let nr=Vn(!1);const cr=Jn=>{const Ar=Jn.target.options;return Array.prototype.map.call(Ar,fr=>({displayValue:fr.textContent,exportValue:fr.value}))};return this.enableScripting&&this.hasJSActions?(mn.addEventListener("updatefromsandbox",Jn=>{const Ar={value(fr){jn==null||jn();const gr=fr.detail.value,wr=new Set(Array.isArray(gr)?gr:[gr]);for(const kr of mn.options)kr.selected=wr.has(kr.value);yn.setValue(Qt,{value:Vn(!0)}),nr=Vn(!1)},multipleSelection(fr){mn.multiple=!0},remove(fr){const gr=mn.options,wr=fr.detail.remove;gr[wr].selected=!1,mn.remove(wr),gr.length>0&&Array.prototype.findIndex.call(gr,Nr=>Nr.selected)===-1&&(gr[0].selected=!0),yn.setValue(Qt,{value:Vn(!0),items:cr(fr)}),nr=Vn(!1)},clear(fr){for(;mn.length!==0;)mn.remove(0);yn.setValue(Qt,{value:null,items:[]}),nr=Vn(!1)},insert(fr){const{index:gr,displayValue:wr,exportValue:kr}=fr.detail.insert,Nr=mn.children[gr],jr=document.createElement("option");jr.textContent=wr,jr.value=kr,Nr?Nr.before(jr):mn.append(jr),yn.setValue(Qt,{value:Vn(!0),items:cr(fr)}),nr=Vn(!1)},items(fr){const{items:gr}=fr.detail;for(;mn.length!==0;)mn.remove(0);for(const wr of gr){const{displayValue:kr,exportValue:Nr}=wr,jr=document.createElement("option");jr.textContent=kr,jr.value=Nr,mn.append(jr)}mn.options.length>0&&(mn.options[0].selected=!0),yn.setValue(Qt,{value:Vn(!0),items:cr(fr)}),nr=Vn(!1)},indices(fr){const gr=new Set(fr.detail.indices);for(const wr of fr.target.options)wr.selected=gr.has(wr.index);yn.setValue(Qt,{value:Vn(!0)}),nr=Vn(!1)},editable(fr){fr.target.disabled=!fr.detail.editable}};this._dispatchEventFromSandbox(Ar,Jn)}),mn.addEventListener("input",Jn=>{var fr;const Ar=Vn(!0);yn.setValue(Qt,{value:Ar}),Jn.preventDefault(),(fr=this.linkService.eventBus)==null||fr.dispatch("dispatcheventinsandbox",{source:this,detail:{id:Qt,name:"Keystroke",value:nr,changeEx:Ar,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(mn,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],Jn=>Jn.target.value)):mn.addEventListener("input",function(Jn){yn.setValue(Qt,{value:Vn(!0)})}),this.data.combo&&this._setTextStyle(mn),this._setBackgroundColor(mn),this._setDefaultPropertiesFromJS(mn),this.container.append(mn),this.container}}class Rt extends Ct{constructor(yn){const{data:Qt,elements:dn}=yn;super(yn,{isRenderable:Ct._hasPopupData(Qt)}),this.elements=dn}render(){this.container.classList.add("popupAnnotation");const yn=new It({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),Qt=[];for(const dn of this.elements)dn.popup=yn,Qt.push(dn.data.id),dn.addHighlightArea();return this.container.setAttribute("aria-controls",Qt.map(dn=>`${ut.AnnotationPrefix}${dn}`).join(",")),this.container}}class It{constructor({container:yn,color:Qt,elements:dn,titleObj:mn,modificationDate:Rn,contentsObj:jn,richText:Vn,parent:nr,rect:cr,parentRect:Jn,open:Ar}){An(this,sr);An(this,or);An(this,fn);An(this,Kn);An(this,cn,null);An(this,bn,Nn(this,sr,ry).bind(this));An(this,Tn,Nn(this,Kn,G1).bind(this));An(this,kn,Nn(this,fn,V1).bind(this));An(this,In,Nn(this,or,Gp).bind(this));An(this,Hn,null);An(this,Fn,null);An(this,wn,null);An(this,Mn,null);An(this,Dn,null);An(this,Un,null);An(this,Sn,!1);An(this,On,null);An(this,Cn,null);An(this,Pn,null);An(this,Xn,null);An(this,Qn,!1);var gr;Wn(this,Fn,yn),Wn(this,Xn,mn),Wn(this,wn,jn),Wn(this,Pn,Vn),Wn(this,Dn,nr),Wn(this,Hn,Qt),Wn(this,Cn,cr),Wn(this,Un,Jn),Wn(this,Mn,dn);const fr=ct.PDFDateString.toDateObject(Rn);fr&&Wn(this,cn,nr.l10n.get("annotation_date_string",{date:fr.toLocaleDateString(),time:fr.toLocaleTimeString()})),this.trigger=dn.flatMap(wr=>wr.getElementsToTriggerPopup());for(const wr of this.trigger)wr.addEventListener("click",Yt(this,In)),wr.addEventListener("mouseenter",Yt(this,kn)),wr.addEventListener("mouseleave",Yt(this,Tn)),wr.classList.add("popupTriggerArea");for(const wr of dn)(gr=wr.container)==null||gr.addEventListener("keydown",Yt(this,bn));Yt(this,Fn).hidden=!0,Ar&&Nn(this,or,Gp).call(this)}render(){if(Yt(this,On))return;const{page:{view:yn},viewport:{rawDims:{pageWidth:Qt,pageHeight:dn,pageX:mn,pageY:Rn}}}=Yt(this,Dn),jn=Wn(this,On,document.createElement("div"));if(jn.className="popup",Yt(this,Hn)){const Qr=jn.style.outlineColor=ut.Util.makeHexColor(...Yt(this,Hn));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?jn.style.backgroundColor=`color-mix(in srgb, ${Qr} 30%, white)`:jn.style.backgroundColor=ut.Util.makeHexColor(...Yt(this,Hn).map(_i=>Math.floor(.7*(255-_i)+_i)))}const Vn=document.createElement("span");Vn.className="header";const nr=document.createElement("h1");if(Vn.append(nr),{dir:nr.dir,str:nr.textContent}=Yt(this,Xn),jn.append(Vn),Yt(this,cn)){const Qr=document.createElement("span");Qr.classList.add("popupDate"),Yt(this,cn).then(qr=>{Qr.textContent=qr}),Vn.append(Qr)}const cr=Yt(this,wn),Jn=Yt(this,Pn);if(Jn!=null&&Jn.str&&(!(cr!=null&&cr.str)||cr.str===Jn.str))pt.XfaLayer.render({xfaHtml:Jn.html,intent:"richText",div:jn}),jn.lastChild.classList.add("richText","popupContent");else{const Qr=this._formatContents(cr);jn.append(Qr)}let Ar=!!Yt(this,Un),fr=Ar?Yt(this,Un):Yt(this,Cn);for(const Qr of Yt(this,Mn))if(!fr||ut.Util.intersect(Qr.data.rect,fr)!==null){fr=Qr.data.rect,Ar=!0;break}const gr=ut.Util.normalizeRect([fr[0],yn[3]-fr[1]+yn[1],fr[2],yn[3]-fr[3]+yn[1]]),wr=5,kr=Ar?fr[2]-fr[0]+wr:0,Nr=gr[0]+kr,jr=gr[1],{style:Zr}=Yt(this,Fn);Zr.left=`${100*(Nr-mn)/Qt}%`,Zr.top=`${100*(jr-Rn)/dn}%`,Yt(this,Fn).append(jn)}_formatContents({str:yn,dir:Qt}){const dn=document.createElement("p");dn.classList.add("popupContent"),dn.dir=Qt;const mn=yn.split(/(?:\r\n?|\n)/);for(let Rn=0,jn=mn.length;Rn<jn;++Rn){const Vn=mn[Rn];dn.append(document.createTextNode(Vn)),Rn<jn-1&&dn.append(document.createElement("br"))}return dn}forceHide(){Wn(this,Qn,this.isVisible),Yt(this,Qn)&&(Yt(this,Fn).hidden=!0)}maybeShow(){Yt(this,Qn)&&(Wn(this,Qn,!1),Yt(this,Fn).hidden=!1)}get isVisible(){return Yt(this,Fn).hidden===!1}}cn=new WeakMap,bn=new WeakMap,Tn=new WeakMap,kn=new WeakMap,In=new WeakMap,Hn=new WeakMap,Fn=new WeakMap,wn=new WeakMap,Mn=new WeakMap,Dn=new WeakMap,Un=new WeakMap,Sn=new WeakMap,On=new WeakMap,Cn=new WeakMap,Pn=new WeakMap,Xn=new WeakMap,Qn=new WeakMap,sr=new WeakSet,ry=function(yn){yn.altKey||yn.shiftKey||yn.ctrlKey||yn.metaKey||(yn.key==="Enter"||yn.key==="Escape"&&Yt(this,Sn))&&Nn(this,or,Gp).call(this)},or=new WeakSet,Gp=function(){Wn(this,Sn,!Yt(this,Sn)),Yt(this,Sn)?(Nn(this,fn,V1).call(this),Yt(this,Fn).addEventListener("click",Yt(this,In)),Yt(this,Fn).addEventListener("keydown",Yt(this,bn))):(Nn(this,Kn,G1).call(this),Yt(this,Fn).removeEventListener("click",Yt(this,In)),Yt(this,Fn).removeEventListener("keydown",Yt(this,bn)))},fn=new WeakSet,V1=function(){Yt(this,On)||this.render(),this.isVisible?Yt(this,Sn)&&Yt(this,Fn).classList.add("focused"):(Yt(this,Fn).hidden=!1,Yt(this,Fn).style.zIndex=parseInt(Yt(this,Fn).style.zIndex)+1e3)},Kn=new WeakSet,G1=function(){Yt(this,Fn).classList.remove("focused"),!(Yt(this,Sn)||!this.isVisible)&&(Yt(this,Fn).hidden=!0,Yt(this,Fn).style.zIndex=parseInt(Yt(this,Fn).style.zIndex)-1e3)};class Ft extends Ct{constructor(yn){super(yn,{isRenderable:!0,ignoreBorder:!0}),this.textContent=yn.data.textContent,this.textPosition=yn.data.textPosition,this.annotationEditorType=ut.AnnotationEditorType.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const yn=document.createElement("div");yn.classList.add("annotationTextContent"),yn.setAttribute("role","comment");for(const Qt of this.textContent){const dn=document.createElement("span");dn.textContent=Qt,yn.append(dn)}this.container.append(yn)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}at.FreeTextAnnotationElement=Ft;class Mt extends Ct{constructor(Qt){super(Qt,{isRenderable:!0,ignoreBorder:!0});An(this,gn,null)}render(){this.container.classList.add("lineAnnotation");const Qt=this.data,{width:dn,height:mn}=yt(Qt.rect),Rn=this.svgFactory.create(dn,mn,!0),jn=Wn(this,gn,this.svgFactory.createElement("svg:line"));return jn.setAttribute("x1",Qt.rect[2]-Qt.lineCoordinates[0]),jn.setAttribute("y1",Qt.rect[3]-Qt.lineCoordinates[1]),jn.setAttribute("x2",Qt.rect[2]-Qt.lineCoordinates[2]),jn.setAttribute("y2",Qt.rect[3]-Qt.lineCoordinates[3]),jn.setAttribute("stroke-width",Qt.borderStyle.width||1),jn.setAttribute("stroke","transparent"),jn.setAttribute("fill","transparent"),Rn.append(jn),this.container.append(Rn),!Qt.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Yt(this,gn)}addHighlightArea(){this.container.classList.add("highlightArea")}}gn=new WeakMap;class Ht extends Ct{constructor(Qt){super(Qt,{isRenderable:!0,ignoreBorder:!0});An(this,vn,null)}render(){this.container.classList.add("squareAnnotation");const Qt=this.data,{width:dn,height:mn}=yt(Qt.rect),Rn=this.svgFactory.create(dn,mn,!0),jn=Qt.borderStyle.width,Vn=Wn(this,vn,this.svgFactory.createElement("svg:rect"));return Vn.setAttribute("x",jn/2),Vn.setAttribute("y",jn/2),Vn.setAttribute("width",dn-jn),Vn.setAttribute("height",mn-jn),Vn.setAttribute("stroke-width",jn||1),Vn.setAttribute("stroke","transparent"),Vn.setAttribute("fill","transparent"),Rn.append(Vn),this.container.append(Rn),!Qt.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Yt(this,vn)}addHighlightArea(){this.container.classList.add("highlightArea")}}vn=new WeakMap;class Vt extends Ct{constructor(Qt){super(Qt,{isRenderable:!0,ignoreBorder:!0});An(this,qn,null)}render(){this.container.classList.add("circleAnnotation");const Qt=this.data,{width:dn,height:mn}=yt(Qt.rect),Rn=this.svgFactory.create(dn,mn,!0),jn=Qt.borderStyle.width,Vn=Wn(this,qn,this.svgFactory.createElement("svg:ellipse"));return Vn.setAttribute("cx",dn/2),Vn.setAttribute("cy",mn/2),Vn.setAttribute("rx",dn/2-jn/2),Vn.setAttribute("ry",mn/2-jn/2),Vn.setAttribute("stroke-width",jn||1),Vn.setAttribute("stroke","transparent"),Vn.setAttribute("fill","transparent"),Rn.append(Vn),this.container.append(Rn),!Qt.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Yt(this,qn)}addHighlightArea(){this.container.classList.add("highlightArea")}}qn=new WeakMap;class Nt extends Ct{constructor(Qt){super(Qt,{isRenderable:!0,ignoreBorder:!0});An(this,Yn,null);this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const Qt=this.data,{width:dn,height:mn}=yt(Qt.rect),Rn=this.svgFactory.create(dn,mn,!0);let jn=[];for(const nr of Qt.vertices){const cr=nr.x-Qt.rect[0],Jn=Qt.rect[3]-nr.y;jn.push(cr+","+Jn)}jn=jn.join(" ");const Vn=Wn(this,Yn,this.svgFactory.createElement(this.svgElementName));return Vn.setAttribute("points",jn),Vn.setAttribute("stroke-width",Qt.borderStyle.width||1),Vn.setAttribute("stroke","transparent"),Vn.setAttribute("fill","transparent"),Rn.append(Vn),this.container.append(Rn),!Qt.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return Yt(this,Yn)}addHighlightArea(){this.container.classList.add("highlightArea")}}Yn=new WeakMap;class Gt extends Nt{constructor(yn){super(yn),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class tn extends Ct{constructor(yn){super(yn,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class ln extends Ct{constructor(Qt){super(Qt,{isRenderable:!0,ignoreBorder:!0});An(this,Sr,[]);this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=ut.AnnotationEditorType.INK}render(){this.container.classList.add(this.containerClassName);const Qt=this.data,{width:dn,height:mn}=yt(Qt.rect),Rn=this.svgFactory.create(dn,mn,!0);for(const jn of Qt.inkLists){let Vn=[];for(const cr of jn){const Jn=cr.x-Qt.rect[0],Ar=Qt.rect[3]-cr.y;Vn.push(`${Jn},${Ar}`)}Vn=Vn.join(" ");const nr=this.svgFactory.createElement(this.svgElementName);Yt(this,Sr).push(nr),nr.setAttribute("points",Vn),nr.setAttribute("stroke-width",Qt.borderStyle.width||1),nr.setAttribute("stroke","transparent"),nr.setAttribute("fill","transparent"),!Qt.popupRef&&this.hasPopupData&&this._createPopup(),Rn.append(nr)}return this.container.append(Rn),this.container}getElementsToTriggerPopup(){return Yt(this,Sr)}addHighlightArea(){this.container.classList.add("highlightArea")}}Sr=new WeakMap,at.InkAnnotationElement=ln;class nn extends Ct{constructor(yn){super(yn,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this.container}}class on extends Ct{constructor(yn){super(yn,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),this.container}}class rn extends Ct{constructor(yn){super(yn,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),this.container}}class Jt extends Ct{constructor(yn){super(yn,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),this.container}}class Zt extends Ct{constructor(yn){super(yn,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("stampAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}at.StampAnnotationElement=Zt;class Wt extends Ct{constructor(Qt){var Rn;super(Qt,{isRenderable:!0});An(this,Ln);An(this,Tr,null);const{filename:dn,content:mn}=this.data.file;this.filename=(0,ct.getFilenameFromUrl)(dn,!0),this.content=mn,(Rn=this.linkService.eventBus)==null||Rn.dispatch("fileattachmentannotation",{source:this,filename:dn,content:mn})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:Qt,data:dn}=this;let mn;dn.hasAppearance||dn.fillAlpha===0?mn=document.createElement("div"):(mn=document.createElement("img"),mn.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(dn.name)?"paperclip":"pushpin"}.svg`,dn.fillAlpha&&dn.fillAlpha<1&&(mn.style=`filter: opacity(${Math.round(dn.fillAlpha*100)}%);`)),mn.addEventListener("dblclick",Nn(this,Ln,K1).bind(this)),Wn(this,Tr,mn);const{isMac:Rn}=ut.FeatureTest.platform;return Qt.addEventListener("keydown",jn=>{jn.key==="Enter"&&(Rn?jn.metaKey:jn.ctrlKey)&&Nn(this,Ln,K1).call(this)}),!dn.popupRef&&this.hasPopupData?this._createPopup():mn.classList.add("popupTriggerArea"),Qt.append(mn),Qt}getElementsToTriggerPopup(){return Yt(this,Tr)}addHighlightArea(){this.container.classList.add("highlightArea")}}Tr=new WeakMap,Ln=new WeakSet,K1=function(){var Qt;(Qt=this.downloadManager)==null||Qt.openOrDownloadData(this.container,this.content,this.filename)};class jt{constructor({div:yn,accessibilityManager:Qt,annotationCanvasMap:dn,l10n:mn,page:Rn,viewport:jn}){An(this,yr);An(this,rr);An(this,hr,null);An(this,ur,null);An(this,_r,new Map);this.div=yn,Wn(this,hr,Qt),Wn(this,ur,dn),this.l10n=mn,this.page=Rn,this.viewport=jn,this.zIndex=0,this.l10n||(this.l10n=mt.NullL10n)}async render(yn){const{annotations:Qt}=yn,dn=this.div;(0,ct.setLayerDimensions)(dn,this.viewport);const mn=new Map,Rn={data:null,layer:dn,linkService:yn.linkService,downloadManager:yn.downloadManager,imageResourcesPath:yn.imageResourcesPath||"",renderForms:yn.renderForms!==!1,svgFactory:new ct.DOMSVGFactory,annotationStorage:yn.annotationStorage||new dt.AnnotationStorage,enableScripting:yn.enableScripting===!0,hasJSActions:yn.hasJSActions,fieldObjects:yn.fieldObjects,parent:this,elements:null};for(const jn of Qt){if(jn.noHTML)continue;const Vn=jn.annotationType===ut.AnnotationType.POPUP;if(Vn){const Jn=mn.get(jn.id);if(!Jn)continue;Rn.elements=Jn}else{const{width:Jn,height:Ar}=yt(jn.rect);if(Jn<=0||Ar<=0)continue}Rn.data=jn;const nr=bt.create(Rn);if(!nr.isRenderable)continue;if(!Vn&&jn.popupRef){const Jn=mn.get(jn.popupRef);Jn?Jn.push(nr):mn.set(jn.popupRef,[nr])}nr.annotationEditorType>0&&Yt(this,_r).set(nr.data.id,nr);const cr=nr.render();jn.hidden&&(cr.style.visibility="hidden"),Nn(this,yr,iy).call(this,cr,jn.id)}Nn(this,rr,Y1).call(this),await this.l10n.translate(dn)}update({viewport:yn}){const Qt=this.div;this.viewport=yn,(0,ct.setLayerDimensions)(Qt,{rotation:yn.rotation}),Nn(this,rr,Y1).call(this),Qt.hidden=!1}getEditableAnnotations(){return Array.from(Yt(this,_r).values())}getEditableAnnotation(yn){return Yt(this,_r).get(yn)}}hr=new WeakMap,ur=new WeakMap,_r=new WeakMap,yr=new WeakSet,iy=function(yn,Qt){var mn;const dn=yn.firstChild||yn;dn.id=`${ut.AnnotationPrefix}${Qt}`,this.div.append(yn),(mn=Yt(this,hr))==null||mn.moveElementInDOM(this.div,yn,dn,!1)},rr=new WeakSet,Y1=function(){if(!Yt(this,ur))return;const yn=this.div;for(const[Qt,dn]of Yt(this,ur)){const mn=yn.querySelector(`[data-annotation-id="${Qt}"]`);if(!mn)continue;const{firstChild:Rn}=mn;Rn?Rn.nodeName==="CANVAS"?Rn.replaceWith(dn):Rn.before(dn):mn.append(dn)}Yt(this,ur).clear()},at.AnnotationLayer=jt},(it,at)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.ColorConverters=void 0;function lt(dt){return Math.floor(Math.max(0,Math.min(1,dt))*255).toString(16).padStart(2,"0")}function ut(dt){return Math.max(0,Math.min(255,255*dt))}class ct{static CMYK_G([ft,mt,pt,gt]){return["G",1-Math.min(1,.3*ft+.59*pt+.11*mt+gt)]}static G_CMYK([ft]){return["CMYK",0,0,0,1-ft]}static G_RGB([ft]){return["RGB",ft,ft,ft]}static G_rgb([ft]){return ft=ut(ft),[ft,ft,ft]}static G_HTML([ft]){const mt=lt(ft);return`#${mt}${mt}${mt}`}static RGB_G([ft,mt,pt]){return["G",.3*ft+.59*mt+.11*pt]}static RGB_rgb(ft){return ft.map(ut)}static RGB_HTML(ft){return`#${ft.map(lt).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([ft,mt,pt,gt]){return["RGB",1-Math.min(1,ft+gt),1-Math.min(1,pt+gt),1-Math.min(1,mt+gt)]}static CMYK_rgb([ft,mt,pt,gt]){return[ut(1-Math.min(1,ft+gt)),ut(1-Math.min(1,pt+gt)),ut(1-Math.min(1,mt+gt))]}static CMYK_HTML(ft){const mt=this.CMYK_RGB(ft).slice(1);return this.RGB_HTML(mt)}static RGB_CMYK([ft,mt,pt]){const gt=1-ft,vt=1-mt,wt=1-pt,yt=Math.min(gt,vt,wt);return["CMYK",gt,vt,wt,yt]}}at.ColorConverters=ct},(it,at)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.NullL10n=void 0,at.getL10nFallback=ut;const lt={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};lt.print_progress_percent="{{progress}}%";function ut(ft,mt){switch(ft){case"find_match_count":ft=`find_match_count[${mt.total===1?"one":"other"}]`;break;case"find_match_count_limit":ft=`find_match_count_limit[${mt.limit===1?"one":"other"}]`;break}return lt[ft]||""}function ct(ft,mt){return mt?ft.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,(pt,gt)=>gt in mt?mt[gt]:"{{"+gt+"}}"):ft}const dt={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(ft,mt=null,pt=ut(ft,mt)){return ct(pt,mt)},async translate(ft){}};at.NullL10n=dt},(it,at,lt)=>{Object.defineProperty(at,"__esModule",{value:!0}),at.XfaLayer=void 0;var ut=lt(25);class ct{static setupStorage(ft,mt,pt,gt,vt){const wt=gt.getValue(mt,{value:null});switch(pt.name){case"textarea":if(wt.value!==null&&(ft.textContent=wt.value),vt==="print")break;ft.addEventListener("input",yt=>{gt.setValue(mt,{value:yt.target.value})});break;case"input":if(pt.attributes.type==="radio"||pt.attributes.type==="checkbox"){if(wt.value===pt.attributes.xfaOn?ft.setAttribute("checked",!0):wt.value===pt.attributes.xfaOff&&ft.removeAttribute("checked"),vt==="print")break;ft.addEventListener("change",yt=>{gt.setValue(mt,{value:yt.target.checked?yt.target.getAttribute("xfaOn"):yt.target.getAttribute("xfaOff")})})}else{if(wt.value!==null&&ft.setAttribute("value",wt.value),vt==="print")break;ft.addEventListener("input",yt=>{gt.setValue(mt,{value:yt.target.value})})}break;case"select":if(wt.value!==null){ft.setAttribute("value",wt.value);for(const yt of pt.children)yt.attributes.value===wt.value?yt.attributes.selected=!0:yt.attributes.hasOwnProperty("selected")&&delete yt.attributes.selected}ft.addEventListener("input",yt=>{const bt=yt.target.options,Ct=bt.selectedIndex===-1?"":bt[bt.selectedIndex].value;gt.setValue(mt,{value:Ct})});break}}static setAttributes({html:ft,element:mt,storage:pt=null,intent:gt,linkService:vt}){const{attributes:wt}=mt,yt=ft instanceof HTMLAnchorElement;wt.type==="radio"&&(wt.name=`${wt.name}-${gt}`);for(const[bt,Ct]of Object.entries(wt))if(Ct!=null)switch(bt){case"class":Ct.length&&ft.setAttribute(bt,Ct.join(" "));break;case"dataId":break;case"id":ft.setAttribute("data-element-id",Ct);break;case"style":Object.assign(ft.style,Ct);break;case"textContent":ft.textContent=Ct;break;default:(!yt||bt!=="href"&&bt!=="newWindow")&&ft.setAttribute(bt,Ct)}yt&&vt.addLinkAttributes(ft,wt.href,wt.newWindow),pt&&wt.dataId&&this.setupStorage(ft,wt.dataId,mt,pt)}static render(ft){var Et;const mt=ft.annotationStorage,pt=ft.linkService,gt=ft.xfaHtml,vt=ft.intent||"display",wt=document.createElement(gt.name);gt.attributes&&this.setAttributes({html:wt,element:gt,intent:vt,linkService:pt});const yt=[[gt,-1,wt]],bt=ft.div;if(bt.append(wt),ft.viewport){const kt=`matrix(${ft.viewport.transform.join(",")})`;bt.style.transform=kt}vt!=="richText"&&bt.setAttribute("class","xfaLayer xfaFont");const Ct=[];for(;yt.length>0;){const[kt,xt,St]=yt.at(-1);if(xt+1===kt.children.length){yt.pop();continue}const Ot=kt.children[++yt.at(-1)[1]];if(Ot===null)continue;const{name:At}=Ot;if(At==="#text"){const $t=document.createTextNode(Ot.value);Ct.push($t),St.append($t);continue}const Tt=(Et=Ot==null?void 0:Ot.attributes)!=null&&Et.xmlns?document.createElementNS(Ot.attributes.xmlns,At):document.createElement(At);if(St.append(Tt),Ot.attributes&&this.setAttributes({html:Tt,element:Ot,storage:mt,intent:vt,linkService:pt}),Ot.children&&Ot.children.length>0)yt.push([Ot,-1,Tt]);else if(Ot.value){const $t=document.createTextNode(Ot.value);ut.XfaText.shouldBuildText(At)&&Ct.push($t),Tt.append($t)}}for(const kt of bt.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))kt.setAttribute("readOnly",!0);return{textDivs:Ct}}static update(ft){const mt=`matrix(${ft.viewport.transform.join(",")})`;ft.div.style.transform=mt,ft.div.hidden=!1}}at.XfaLayer=ct},(it,at,lt)=>{var gt,vt,wt,yt,bt,Ct,Et,kt,xt,St,Ot,At,Tt,$t,Lt,oy,It,sy,Mt,ay,Vt,ly,Gt,X1,ln,uy,on,Z1,Jt,cy,Wt,dy,Bt,fy,zt,hy,en,py,cn,Ts,Tn,Q1,In,Kp,Fn,Yp,Mn,Gl,Un,J1,On,Xp,Pn,my,Qn,e_,pr,gy,br,_y,xn,t_,_n,Zp,vn,Kl;Object.defineProperty(at,"__esModule",{value:!0}),at.InkEditor=void 0;var ut=lt(1),ct=lt(4),dt=lt(29),ft=lt(6),mt=lt(5);const Yn=class Yn extends ct.AnnotationEditor{constructor(Ln){super({...Ln,name:"inkEditor"});An(this,Lt);An(this,It);An(this,Mt);An(this,Vt);An(this,Gt);An(this,ln);An(this,on);An(this,Jt);An(this,Wt);An(this,Bt);An(this,zt);An(this,en);An(this,cn);An(this,Tn);An(this,In);An(this,Fn);An(this,Mn);An(this,Un);An(this,On);An(this,br);An(this,xn);An(this,_n);An(this,vn);An(this,gt,0);An(this,vt,0);An(this,wt,this.canvasPointermove.bind(this));An(this,yt,this.canvasPointerleave.bind(this));An(this,bt,this.canvasPointerup.bind(this));An(this,Ct,this.canvasPointerdown.bind(this));An(this,Et,new Path2D);An(this,kt,!1);An(this,xt,!1);An(this,St,!1);An(this,Ot,null);An(this,At,0);An(this,Tt,0);An(this,$t,null);this.color=Ln.color||null,this.thickness=Ln.thickness||null,this.opacity=Ln.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(Ln){ct.AnnotationEditor.initialize(Ln,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(Ln,er){switch(Ln){case ut.AnnotationEditorParamsType.INK_THICKNESS:Yn._defaultThickness=er;break;case ut.AnnotationEditorParamsType.INK_COLOR:Yn._defaultColor=er;break;case ut.AnnotationEditorParamsType.INK_OPACITY:Yn._defaultOpacity=er/100;break}}updateParams(Ln,er){switch(Ln){case ut.AnnotationEditorParamsType.INK_THICKNESS:Nn(this,Lt,oy).call(this,er);break;case ut.AnnotationEditorParamsType.INK_COLOR:Nn(this,It,sy).call(this,er);break;case ut.AnnotationEditorParamsType.INK_OPACITY:Nn(this,Mt,ay).call(this,er);break}}static get defaultPropertiesToUpdate(){return[[ut.AnnotationEditorParamsType.INK_THICKNESS,Yn._defaultThickness],[ut.AnnotationEditorParamsType.INK_COLOR,Yn._defaultColor||ct.AnnotationEditor._defaultLineColor],[ut.AnnotationEditorParamsType.INK_OPACITY,Math.round(Yn._defaultOpacity*100)]]}get propertiesToUpdate(){return[[ut.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||Yn._defaultThickness],[ut.AnnotationEditorParamsType.INK_COLOR,this.color||Yn._defaultColor||ct.AnnotationEditor._defaultLineColor],[ut.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??Yn._defaultOpacity))]]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.canvas||(Nn(this,In,Kp).call(this),Nn(this,Fn,Yp).call(this)),this.isAttachedToDOM||(this.parent.add(this),Nn(this,Mn,Gl).call(this)),Nn(this,vn,Kl).call(this)))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,Yt(this,Ot).disconnect(),Wn(this,Ot,null),super.remove())}setParent(Ln){!this.parent&&Ln?this._uiManager.removeShouldRescale(this):this.parent&&Ln===null&&this._uiManager.addShouldRescale(this),super.setParent(Ln)}onScaleChanging(){const[Ln,er]=this.parentDimensions,hr=this.width*Ln,ur=this.height*er;this.setDimensions(hr,ur)}enableEditMode(){Yt(this,kt)||this.canvas===null||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",Yt(this,Ct)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",Yt(this,Ct)))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){Yt(this,kt)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),Wn(this,kt,!0),this.div.classList.add("disabled"),Nn(this,vn,Kl).call(this,!0),this.makeResizable(),this.parent.addInkEditorIfNeeded(!0),this.moveInDOM(),this.div.focus({preventScroll:!0}))}focusin(Ln){this._focusEventsAllowed&&(super.focusin(Ln),this.enableEditMode())}canvasPointerdown(Ln){Ln.button!==0||!this.isInEditMode()||Yt(this,kt)||(this.setInForeground(),Ln.preventDefault(),Ln.type!=="mouse"&&this.div.focus(),Nn(this,ln,uy).call(this,Ln.offsetX,Ln.offsetY))}canvasPointermove(Ln){Ln.preventDefault(),Nn(this,on,Z1).call(this,Ln.offsetX,Ln.offsetY)}canvasPointerup(Ln){Ln.preventDefault(),Nn(this,Tn,Q1).call(this,Ln)}canvasPointerleave(Ln){Nn(this,Tn,Q1).call(this,Ln)}get isResizable(){return!this.isEmpty()&&Yt(this,kt)}render(){if(this.div)return this.div;let Ln,er;this.width&&(Ln=this.x,er=this.y),super.render(),ct.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(Rr=>{var rr;return(rr=this.div)==null?void 0:rr.setAttribute("aria-label",Rr)});const[hr,ur,_r,yr]=Nn(this,Vt,ly).call(this);if(this.setAt(hr,ur,0,0),this.setDims(_r,yr),Nn(this,In,Kp).call(this),this.width){const[Rr,rr]=this.parentDimensions;this.setAspectRatio(this.width*Rr,this.height*rr),this.setAt(Ln*Rr,er*rr,this.width*Rr,this.height*rr),Wn(this,St,!0),Nn(this,Mn,Gl).call(this),this.setDims(this.width*Rr,this.height*rr),Nn(this,cn,Ts).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return Nn(this,Fn,Yp).call(this),this.div}setDimensions(Ln,er){const hr=Math.round(Ln),ur=Math.round(er);if(Yt(this,At)===hr&&Yt(this,Tt)===ur)return;Wn(this,At,hr),Wn(this,Tt,ur),this.canvas.style.visibility="hidden";const[_r,yr]=this.parentDimensions;this.width=Ln/_r,this.height=er/yr,this.fixAndSetPosition(),Yt(this,kt)&&Nn(this,Un,J1).call(this,Ln,er),Nn(this,Mn,Gl).call(this),Nn(this,cn,Ts).call(this),this.canvas.style.visibility="visible",this.fixDims()}static deserialize(Ln,er,hr){var Rn,jn,Vn;if(Ln instanceof dt.InkAnnotationElement)return null;const ur=super.deserialize(Ln,er,hr);ur.thickness=Ln.thickness,ur.color=ut.Util.makeHexColor(...Ln.color),ur.opacity=Ln.opacity;const[_r,yr]=ur.pageDimensions,Rr=ur.width*_r,rr=ur.height*yr,$r=ur.parentScale,mr=Ln.thickness/2;Wn(ur,kt,!0),Wn(ur,At,Math.round(Rr)),Wn(ur,Tt,Math.round(rr));const{paths:yn,rect:Qt,rotation:dn}=Ln;for(let{bezier:nr}of yn){nr=Nn(Rn=Yn,pr,gy).call(Rn,nr,Qt,dn);const cr=[];ur.paths.push(cr);let Jn=$r*(nr[0]-mr),Ar=$r*(nr[1]-mr);for(let gr=2,wr=nr.length;gr<wr;gr+=6){const kr=$r*(nr[gr]-mr),Nr=$r*(nr[gr+1]-mr),jr=$r*(nr[gr+2]-mr),Zr=$r*(nr[gr+3]-mr),Qr=$r*(nr[gr+4]-mr),qr=$r*(nr[gr+5]-mr);cr.push([[Jn,Ar],[kr,Nr],[jr,Zr],[Qr,qr]]),Jn=Qr,Ar=qr}const fr=Nn(this,Pn,my).call(this,cr);ur.bezierPath2D.push(fr)}const mn=Nn(jn=ur,xn,t_).call(jn);return Wn(ur,vt,Math.max(ct.AnnotationEditor.MIN_SIZE,mn[2]-mn[0])),Wn(ur,gt,Math.max(ct.AnnotationEditor.MIN_SIZE,mn[3]-mn[1])),Nn(Vn=ur,Un,J1).call(Vn,Rr,rr),ur}serialize(){if(this.isEmpty())return null;const Ln=this.getRect(0,0),er=ct.AnnotationEditor._colorManager.convert(this.ctx.strokeStyle);return{annotationType:ut.AnnotationEditorType.INK,color:er,thickness:this.thickness,opacity:this.opacity,paths:Nn(this,br,_y).call(this,this.scaleFactor/this.parentScale,this.translationX,this.translationY,Ln),pageIndex:this.pageIndex,rect:Ln,rotation:this.rotation,structTreeParentId:this._structTreeParentId}}};gt=new WeakMap,vt=new WeakMap,wt=new WeakMap,yt=new WeakMap,bt=new WeakMap,Ct=new WeakMap,Et=new WeakMap,kt=new WeakMap,xt=new WeakMap,St=new WeakMap,Ot=new WeakMap,At=new WeakMap,Tt=new WeakMap,$t=new WeakMap,Lt=new WeakSet,oy=function(Ln){const er=this.thickness;this.addCommands({cmd:()=>{this.thickness=Ln,Nn(this,vn,Kl).call(this)},undo:()=>{this.thickness=er,Nn(this,vn,Kl).call(this)},mustExec:!0,type:ut.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})},It=new WeakSet,sy=function(Ln){const er=this.color;this.addCommands({cmd:()=>{this.color=Ln,Nn(this,cn,Ts).call(this)},undo:()=>{this.color=er,Nn(this,cn,Ts).call(this)},mustExec:!0,type:ut.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})},Mt=new WeakSet,ay=function(Ln){Ln/=100;const er=this.opacity;this.addCommands({cmd:()=>{this.opacity=Ln,Nn(this,cn,Ts).call(this)},undo:()=>{this.opacity=er,Nn(this,cn,Ts).call(this)},mustExec:!0,type:ut.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})},Vt=new WeakSet,ly=function(){const{parentRotation:Ln,parentDimensions:[er,hr]}=this;switch(Ln){case 90:return[0,hr,hr,er];case 180:return[er,hr,er,hr];case 270:return[er,0,hr,er];default:return[0,0,er,hr]}},Gt=new WeakSet,X1=function(){const{ctx:Ln,color:er,opacity:hr,thickness:ur,parentScale:_r,scaleFactor:yr}=this;Ln.lineWidth=ur*_r/yr,Ln.lineCap="round",Ln.lineJoin="round",Ln.miterLimit=10,Ln.strokeStyle=`${er}${(0,mt.opacityToHex)(hr)}`},ln=new WeakSet,uy=function(Ln,er){this.canvas.addEventListener("contextmenu",ft.noContextMenu),this.canvas.addEventListener("pointerleave",Yt(this,yt)),this.canvas.addEventListener("pointermove",Yt(this,wt)),this.canvas.addEventListener("pointerup",Yt(this,bt)),this.canvas.removeEventListener("pointerdown",Yt(this,Ct)),this.isEditing=!0,Yt(this,St)||(Wn(this,St,!0),Nn(this,Mn,Gl).call(this),this.thickness||(this.thickness=Yn._defaultThickness),this.color||(this.color=Yn._defaultColor||ct.AnnotationEditor._defaultLineColor),this.opacity??(this.opacity=Yn._defaultOpacity)),this.currentPath.push([Ln,er]),Wn(this,xt,!1),Nn(this,Gt,X1).call(this),Wn(this,$t,()=>{Nn(this,Bt,fy).call(this),Yt(this,$t)&&window.requestAnimationFrame(Yt(this,$t))}),window.requestAnimationFrame(Yt(this,$t))},on=new WeakSet,Z1=function(Ln,er){const[hr,ur]=this.currentPath.at(-1);if(this.currentPath.length>1&&Ln===hr&&er===ur)return;const _r=this.currentPath;let yr=Yt(this,Et);if(_r.push([Ln,er]),Wn(this,xt,!0),_r.length<=2){yr.moveTo(..._r[0]),yr.lineTo(Ln,er);return}_r.length===3&&(Wn(this,Et,yr=new Path2D),yr.moveTo(..._r[0])),Nn(this,zt,hy).call(this,yr,..._r.at(-3),..._r.at(-2),Ln,er)},Jt=new WeakSet,cy=function(){if(this.currentPath.length===0)return;const Ln=this.currentPath.at(-1);Yt(this,Et).lineTo(...Ln)},Wt=new WeakSet,dy=function(Ln,er){Wn(this,$t,null),Ln=Math.min(Math.max(Ln,0),this.canvas.width),er=Math.min(Math.max(er,0),this.canvas.height),Nn(this,on,Z1).call(this,Ln,er),Nn(this,Jt,cy).call(this);let hr;if(this.currentPath.length!==1)hr=Nn(this,en,py).call(this);else{const rr=[Ln,er];hr=[[rr,rr.slice(),rr.slice(),rr]]}const ur=Yt(this,Et),_r=this.currentPath;this.currentPath=[],Wn(this,Et,new Path2D);const yr=()=>{this.allRawPaths.push(_r),this.paths.push(hr),this.bezierPath2D.push(ur),this.rebuild()},Rr=()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(Nn(this,In,Kp).call(this),Nn(this,Fn,Yp).call(this)),Nn(this,vn,Kl).call(this))};this.addCommands({cmd:yr,undo:Rr,mustExec:!0})},Bt=new WeakSet,fy=function(){if(!Yt(this,xt))return;Wn(this,xt,!1);const Ln=Math.ceil(this.thickness*this.parentScale),er=this.currentPath.slice(-3),hr=er.map(yr=>yr[0]),ur=er.map(yr=>yr[1]);Math.min(...hr)-Ln,Math.max(...hr)+Ln,Math.min(...ur)-Ln,Math.max(...ur)+Ln;const{ctx:_r}=this;_r.save(),_r.clearRect(0,0,this.canvas.width,this.canvas.height);for(const yr of this.bezierPath2D)_r.stroke(yr);_r.stroke(Yt(this,Et)),_r.restore()},zt=new WeakSet,hy=function(Ln,er,hr,ur,_r,yr,Rr){const rr=(er+ur)/2,$r=(hr+_r)/2,mr=(ur+yr)/2,yn=(_r+Rr)/2;Ln.bezierCurveTo(rr+2*(ur-rr)/3,$r+2*(_r-$r)/3,mr+2*(ur-mr)/3,yn+2*(_r-yn)/3,mr,yn)},en=new WeakSet,py=function(){const Ln=this.currentPath;if(Ln.length<=2)return[[Ln[0],Ln[0],Ln.at(-1),Ln.at(-1)]];const er=[];let hr,[ur,_r]=Ln[0];for(hr=1;hr<Ln.length-2;hr++){const[Qt,dn]=Ln[hr],[mn,Rn]=Ln[hr+1],jn=(Qt+mn)/2,Vn=(dn+Rn)/2,nr=[ur+2*(Qt-ur)/3,_r+2*(dn-_r)/3],cr=[jn+2*(Qt-jn)/3,Vn+2*(dn-Vn)/3];er.push([[ur,_r],nr,cr,[jn,Vn]]),[ur,_r]=[jn,Vn]}const[yr,Rr]=Ln[hr],[rr,$r]=Ln[hr+1],mr=[ur+2*(yr-ur)/3,_r+2*(Rr-_r)/3],yn=[rr+2*(yr-rr)/3,$r+2*(Rr-$r)/3];return er.push([[ur,_r],mr,yn,[rr,$r]]),er},cn=new WeakSet,Ts=function(){if(this.isEmpty()){Nn(this,On,Xp).call(this);return}Nn(this,Gt,X1).call(this);const{canvas:Ln,ctx:er}=this;er.setTransform(1,0,0,1,0,0),er.clearRect(0,0,Ln.width,Ln.height),Nn(this,On,Xp).call(this);for(const hr of this.bezierPath2D)er.stroke(hr)},Tn=new WeakSet,Q1=function(Ln){this.canvas.removeEventListener("pointerleave",Yt(this,yt)),this.canvas.removeEventListener("pointermove",Yt(this,wt)),this.canvas.removeEventListener("pointerup",Yt(this,bt)),this.canvas.addEventListener("pointerdown",Yt(this,Ct)),setTimeout(()=>{this.canvas.removeEventListener("contextmenu",ft.noContextMenu)},10),Nn(this,Wt,dy).call(this,Ln.offsetX,Ln.offsetY),this.addToAnnotationStorage(),this.setInBackground()},In=new WeakSet,Kp=function(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",ct.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(Ln=>{var er;return(er=this.canvas)==null?void 0:er.setAttribute("aria-label",Ln)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")},Fn=new WeakSet,Yp=function(){Wn(this,Ot,new ResizeObserver(Ln=>{const er=Ln[0].contentRect;er.width&&er.height&&this.setDimensions(er.width,er.height)})),Yt(this,Ot).observe(this.div)},Mn=new WeakSet,Gl=function(){if(!Yt(this,St))return;const[Ln,er]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*Ln),this.canvas.height=Math.ceil(this.height*er),Nn(this,On,Xp).call(this)},Un=new WeakSet,J1=function(Ln,er){const hr=Nn(this,_n,Zp).call(this),ur=(Ln-hr)/Yt(this,vt),_r=(er-hr)/Yt(this,gt);this.scaleFactor=Math.min(ur,_r)},On=new WeakSet,Xp=function(){const Ln=Nn(this,_n,Zp).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Ln,this.translationY*this.scaleFactor+Ln)},Pn=new WeakSet,my=function(Ln){const er=new Path2D;for(let hr=0,ur=Ln.length;hr<ur;hr++){const[_r,yr,Rr,rr]=Ln[hr];hr===0&&er.moveTo(..._r),er.bezierCurveTo(yr[0],yr[1],Rr[0],Rr[1],rr[0],rr[1])}return er},Qn=new WeakSet,e_=function(Ln,er,hr){const[ur,_r,yr,Rr]=er;switch(hr){case 0:for(let rr=0,$r=Ln.length;rr<$r;rr+=2)Ln[rr]+=ur,Ln[rr+1]=Rr-Ln[rr+1];break;case 90:for(let rr=0,$r=Ln.length;rr<$r;rr+=2){const mr=Ln[rr];Ln[rr]=Ln[rr+1]+ur,Ln[rr+1]=mr+_r}break;case 180:for(let rr=0,$r=Ln.length;rr<$r;rr+=2)Ln[rr]=yr-Ln[rr],Ln[rr+1]+=_r;break;case 270:for(let rr=0,$r=Ln.length;rr<$r;rr+=2){const mr=Ln[rr];Ln[rr]=yr-Ln[rr+1],Ln[rr+1]=Rr-mr}break;default:throw new Error("Invalid rotation")}return Ln},pr=new WeakSet,gy=function(Ln,er,hr){const[ur,_r,yr,Rr]=er;switch(hr){case 0:for(let rr=0,$r=Ln.length;rr<$r;rr+=2)Ln[rr]-=ur,Ln[rr+1]=Rr-Ln[rr+1];break;case 90:for(let rr=0,$r=Ln.length;rr<$r;rr+=2){const mr=Ln[rr];Ln[rr]=Ln[rr+1]-_r,Ln[rr+1]=mr-ur}break;case 180:for(let rr=0,$r=Ln.length;rr<$r;rr+=2)Ln[rr]=yr-Ln[rr],Ln[rr+1]-=_r;break;case 270:for(let rr=0,$r=Ln.length;rr<$r;rr+=2){const mr=Ln[rr];Ln[rr]=Rr-Ln[rr+1],Ln[rr+1]=yr-mr}break;default:throw new Error("Invalid rotation")}return Ln},br=new WeakSet,_y=function(Ln,er,hr,ur){var $r,mr;const _r=[],yr=this.thickness/2,Rr=Ln*er+yr,rr=Ln*hr+yr;for(const yn of this.paths){const Qt=[],dn=[];for(let mn=0,Rn=yn.length;mn<Rn;mn++){const[jn,Vn,nr,cr]=yn[mn],Jn=Ln*jn[0]+Rr,Ar=Ln*jn[1]+rr,fr=Ln*Vn[0]+Rr,gr=Ln*Vn[1]+rr,wr=Ln*nr[0]+Rr,kr=Ln*nr[1]+rr,Nr=Ln*cr[0]+Rr,jr=Ln*cr[1]+rr;mn===0&&(Qt.push(Jn,Ar),dn.push(Jn,Ar)),Qt.push(fr,gr,wr,kr,Nr,jr),dn.push(fr,gr),mn===Rn-1&&dn.push(Nr,jr)}_r.push({bezier:Nn($r=Yn,Qn,e_).call($r,Qt,ur,this.rotation),points:Nn(mr=Yn,Qn,e_).call(mr,dn,ur,this.rotation)})}return _r},xn=new WeakSet,t_=function(){let Ln=1/0,er=-1/0,hr=1/0,ur=-1/0;for(const _r of this.paths)for(const[yr,Rr,rr,$r]of _r){const mr=ut.Util.bezierBoundingBox(...yr,...Rr,...rr,...$r);Ln=Math.min(Ln,mr[0]),hr=Math.min(hr,mr[1]),er=Math.max(er,mr[2]),ur=Math.max(ur,mr[3])}return[Ln,hr,er,ur]},_n=new WeakSet,Zp=function(){return Yt(this,kt)?Math.ceil(this.thickness*this.parentScale):0},vn=new WeakSet,Kl=function(Ln=!1){if(this.isEmpty())return;if(!Yt(this,kt)){Nn(this,cn,Ts).call(this);return}const er=Nn(this,xn,t_).call(this),hr=Nn(this,_n,Zp).call(this);Wn(this,vt,Math.max(ct.AnnotationEditor.MIN_SIZE,er[2]-er[0])),Wn(this,gt,Math.max(ct.AnnotationEditor.MIN_SIZE,er[3]-er[1]));const ur=Math.ceil(hr+Yt(this,vt)*this.scaleFactor),_r=Math.ceil(hr+Yt(this,gt)*this.scaleFactor),[yr,Rr]=this.parentDimensions;this.width=ur/yr,this.height=_r/Rr,this.setAspectRatio(ur,_r);const rr=this.translationX,$r=this.translationY;this.translationX=-er[0],this.translationY=-er[1],Nn(this,Mn,Gl).call(this),Nn(this,cn,Ts).call(this),Wn(this,At,ur),Wn(this,Tt,_r),this.setDims(ur,_r);const mr=Ln?hr/this.scaleFactor/2:0;this.translate(rr-this.translationX-mr,$r-this.translationY-mr)},An(Yn,Pn),An(Yn,Qn),An(Yn,pr),Hr(Yn,"_defaultColor",null),Hr(Yn,"_defaultOpacity",1),Hr(Yn,"_defaultThickness",1),Hr(Yn,"_type","ink");let pt=Yn;at.InkEditor=pt},(it,at,lt)=>{var pt,gt,vt,wt,yt,bt,Ct,Et,kt,xt,St,Nu,At,Fu,$t,Qp,Rt,n_,Ft,vy,Ht,yy,Nt,r_,tn,Jp,nn,by;Object.defineProperty(at,"__esModule",{value:!0}),at.StampEditor=void 0;var ut=lt(1),ct=lt(4),dt=lt(6),ft=lt(29);const rn=class rn extends ct.AnnotationEditor{constructor(Wt){super({...Wt,name:"stampEditor"});An(this,St);An(this,At);An(this,$t);An(this,Rt);An(this,Ft);An(this,Ht);An(this,Nt);An(this,tn);An(this,nn);An(this,pt,null);An(this,gt,null);An(this,vt,null);An(this,wt,null);An(this,yt,null);An(this,bt,null);An(this,Ct,null);An(this,Et,null);An(this,kt,!1);An(this,xt,!1);Wn(this,wt,Wt.bitmapUrl),Wn(this,yt,Wt.bitmapFile)}static initialize(Wt){ct.AnnotationEditor.initialize(Wt)}static get supportedTypes(){const Wt=["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"];return(0,ut.shadow)(this,"supportedTypes",Wt.map(jt=>`image/${jt}`))}static get supportedTypesStr(){return(0,ut.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(Wt){return this.supportedTypes.includes(Wt)}static paste(Wt,jt){jt.pasteEditor(ut.AnnotationEditorType.STAMP,{bitmapFile:Wt.getAsFile()})}remove(){var Wt,jt;Yt(this,gt)&&(Wn(this,pt,null),this._uiManager.imageManager.deleteId(Yt(this,gt)),(Wt=Yt(this,bt))==null||Wt.remove(),Wn(this,bt,null),(jt=Yt(this,Ct))==null||jt.disconnect(),Wn(this,Ct,null)),super.remove()}rebuild(){if(!this.parent){Yt(this,gt)&&Nn(this,$t,Qp).call(this);return}super.rebuild(),this.div!==null&&(Yt(this,gt)&&Nn(this,$t,Qp).call(this),this.isAttachedToDOM||this.parent.add(this))}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(Yt(this,vt)||Yt(this,pt)||Yt(this,wt)||Yt(this,yt))}get isResizable(){return!0}render(){if(this.div)return this.div;let Wt,jt;if(this.width&&(Wt=this.x,jt=this.y),super.render(),this.div.hidden=!0,Yt(this,pt)?Nn(this,Rt,n_).call(this):Nn(this,$t,Qp).call(this),this.width){const[Bt,Dt]=this.parentDimensions;this.setAt(Wt*Bt,jt*Dt,this.width*Bt,this.height*Dt)}return this.div}static deserialize(Wt,jt,Bt){if(Wt instanceof ft.StampAnnotationElement)return null;const Dt=super.deserialize(Wt,jt,Bt),{rect:zt,bitmapUrl:Kt,bitmapId:en,isSvg:sn,accessibilityData:cn}=Wt;en&&Bt.imageManager.isValidId(en)?Wn(Dt,gt,en):Wn(Dt,wt,Kt),Wn(Dt,kt,sn);const[bn,Tn]=Dt.pageDimensions;return Dt.width=(zt[2]-zt[0])/bn,Dt.height=(zt[3]-zt[1])/Tn,cn&&(Dt.altTextData=cn),Dt}serialize(Wt=!1,jt=null){if(this.isEmpty())return null;const Bt={annotationType:ut.AnnotationEditorType.STAMP,bitmapId:Yt(this,gt),pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:Yt(this,kt),structTreeParentId:this._structTreeParentId};if(Wt)return Bt.bitmapUrl=Nn(this,tn,Jp).call(this,!0),Bt.accessibilityData=this.altTextData,Bt;const{decorative:Dt,altText:zt}=this.altTextData;if(!Dt&&zt&&(Bt.accessibilityData={type:"Figure",alt:zt}),jt===null)return Bt;jt.stamps||(jt.stamps=new Map);const Kt=Yt(this,kt)?(Bt.rect[2]-Bt.rect[0])*(Bt.rect[3]-Bt.rect[1]):null;if(!jt.stamps.has(Yt(this,gt)))jt.stamps.set(Yt(this,gt),{area:Kt,serialized:Bt}),Bt.bitmap=Nn(this,tn,Jp).call(this,!1);else if(Yt(this,kt)){const en=jt.stamps.get(Yt(this,gt));Kt>en.area&&(en.area=Kt,en.serialized.bitmap.close(),en.serialized.bitmap=Nn(this,tn,Jp).call(this,!1))}return Bt}};pt=new WeakMap,gt=new WeakMap,vt=new WeakMap,wt=new WeakMap,yt=new WeakMap,bt=new WeakMap,Ct=new WeakMap,Et=new WeakMap,kt=new WeakMap,xt=new WeakMap,St=new WeakSet,Nu=function(Wt,jt=!1){if(!Wt){this.remove();return}Wn(this,pt,Wt.bitmap),jt||(Wn(this,gt,Wt.id),Wn(this,kt,Wt.isSvg)),Nn(this,Rt,n_).call(this)},At=new WeakSet,Fu=function(){Wn(this,vt,null),this._uiManager.enableWaiting(!1),Yt(this,bt)&&this.div.focus()},$t=new WeakSet,Qp=function(){if(Yt(this,gt)){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(Yt(this,gt)).then(jt=>Nn(this,St,Nu).call(this,jt,!0)).finally(()=>Nn(this,At,Fu).call(this));return}if(Yt(this,wt)){const jt=Yt(this,wt);Wn(this,wt,null),this._uiManager.enableWaiting(!0),Wn(this,vt,this._uiManager.imageManager.getFromUrl(jt).then(Bt=>Nn(this,St,Nu).call(this,Bt)).finally(()=>Nn(this,At,Fu).call(this)));return}if(Yt(this,yt)){const jt=Yt(this,yt);Wn(this,yt,null),this._uiManager.enableWaiting(!0),Wn(this,vt,this._uiManager.imageManager.getFromFile(jt).then(Bt=>Nn(this,St,Nu).call(this,Bt)).finally(()=>Nn(this,At,Fu).call(this)));return}const Wt=document.createElement("input");Wt.type="file",Wt.accept=rn.supportedTypesStr,Wn(this,vt,new Promise(jt=>{Wt.addEventListener("change",async()=>{if(!Wt.files||Wt.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const Bt=await this._uiManager.imageManager.getFromFile(Wt.files[0]);Nn(this,St,Nu).call(this,Bt)}jt()}),Wt.addEventListener("cancel",()=>{this.remove(),jt()})}).finally(()=>Nn(this,At,Fu).call(this))),Wt.click()},Rt=new WeakSet,n_=function(){const{div:Wt}=this;let{width:jt,height:Bt}=Yt(this,pt);const[Dt,zt]=this.pageDimensions,Kt=.75;if(this.width)jt=this.width*Dt,Bt=this.height*zt;else if(jt>Kt*Dt||Bt>Kt*zt){const bn=Math.min(Kt*Dt/jt,Kt*zt/Bt);jt*=bn,Bt*=bn}const[en,sn]=this.parentDimensions;this.setDims(jt*en/Dt,Bt*sn/zt),this._uiManager.enableWaiting(!1);const cn=Wn(this,bt,document.createElement("canvas"));Wt.append(cn),Wt.hidden=!1,Nn(this,Nt,r_).call(this,jt,Bt),Nn(this,nn,by).call(this),Yt(this,xt)||(this.parent.addUndoableEditor(this),Wn(this,xt,!0)),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()},Ft=new WeakSet,vy=function(Wt,jt){var Kt;const[Bt,Dt]=this.parentDimensions;this.width=Wt/Bt,this.height=jt/Dt,this.setDims(Wt,jt),(Kt=this._initialOptions)!=null&&Kt.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,Yt(this,Et)!==null&&clearTimeout(Yt(this,Et)),Wn(this,Et,setTimeout(()=>{Wn(this,Et,null),Nn(this,Nt,r_).call(this,Wt,jt)},200))},Ht=new WeakSet,yy=function(Wt,jt){const{width:Bt,height:Dt}=Yt(this,pt);let zt=Bt,Kt=Dt,en=Yt(this,pt);for(;zt>2*Wt||Kt>2*jt;){const sn=zt,cn=Kt;zt>2*Wt&&(zt=zt>=16384?Math.floor(zt/2)-1:Math.ceil(zt/2)),Kt>2*jt&&(Kt=Kt>=16384?Math.floor(Kt/2)-1:Math.ceil(Kt/2));const bn=new OffscreenCanvas(zt,Kt);bn.getContext("2d").drawImage(en,0,0,sn,cn,0,0,zt,Kt),en=bn.transferToImageBitmap()}return en},Nt=new WeakSet,r_=function(Wt,jt){Wt=Math.ceil(Wt),jt=Math.ceil(jt);const Bt=Yt(this,bt);if(!Bt||Bt.width===Wt&&Bt.height===jt)return;Bt.width=Wt,Bt.height=jt;const Dt=Yt(this,kt)?Yt(this,pt):Nn(this,Ht,yy).call(this,Wt,jt),zt=Bt.getContext("2d");zt.filter=this._uiManager.hcmFilter,zt.drawImage(Dt,0,0,Dt.width,Dt.height,0,0,Wt,jt)},tn=new WeakSet,Jp=function(Wt){if(Wt){if(Yt(this,kt)){const Dt=this._uiManager.imageManager.getSvgUrl(Yt(this,gt));if(Dt)return Dt}const jt=document.createElement("canvas");return{width:jt.width,height:jt.height}=Yt(this,pt),jt.getContext("2d").drawImage(Yt(this,pt),0,0),jt.toDataURL()}if(Yt(this,kt)){const[jt,Bt]=this.pageDimensions,Dt=Math.round(this.width*jt*dt.PixelsPerInch.PDF_TO_CSS_UNITS),zt=Math.round(this.height*Bt*dt.PixelsPerInch.PDF_TO_CSS_UNITS),Kt=new OffscreenCanvas(Dt,zt);return Kt.getContext("2d").drawImage(Yt(this,pt),0,0,Yt(this,pt).width,Yt(this,pt).height,0,0,Dt,zt),Kt.transferToImageBitmap()}return structuredClone(Yt(this,pt))},nn=new WeakSet,by=function(){Wn(this,Ct,new ResizeObserver(Wt=>{const jt=Wt[0].contentRect;jt.width&&jt.height&&Nn(this,Ft,vy).call(this,jt.width,jt.height)})),Yt(this,Ct).observe(this.div)},Hr(rn,"_type","stamp");let mt=rn;at.StampEditor=mt}],__webpack_module_cache__={};function __w_pdfjs_require__(it){var at=__webpack_module_cache__[it];if(at!==void 0)return at.exports;var lt=__webpack_module_cache__[it]={exports:{}};return __webpack_modules__[it](lt,lt.exports,__w_pdfjs_require__),lt.exports}var __webpack_exports__={};return(()=>{var it=__webpack_exports__;Object.defineProperty(it,"__esModule",{value:!0}),Object.defineProperty(it,"AbortException",{enumerable:!0,get:function(){return at.AbortException}}),Object.defineProperty(it,"AnnotationEditorLayer",{enumerable:!0,get:function(){return dt.AnnotationEditorLayer}}),Object.defineProperty(it,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return at.AnnotationEditorParamsType}}),Object.defineProperty(it,"AnnotationEditorType",{enumerable:!0,get:function(){return at.AnnotationEditorType}}),Object.defineProperty(it,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return ft.AnnotationEditorUIManager}}),Object.defineProperty(it,"AnnotationLayer",{enumerable:!0,get:function(){return mt.AnnotationLayer}}),Object.defineProperty(it,"AnnotationMode",{enumerable:!0,get:function(){return at.AnnotationMode}}),Object.defineProperty(it,"CMapCompressionType",{enumerable:!0,get:function(){return at.CMapCompressionType}}),Object.defineProperty(it,"DOMSVGFactory",{enumerable:!0,get:function(){return ut.DOMSVGFactory}}),Object.defineProperty(it,"FeatureTest",{enumerable:!0,get:function(){return at.FeatureTest}}),Object.defineProperty(it,"GlobalWorkerOptions",{enumerable:!0,get:function(){return pt.GlobalWorkerOptions}}),Object.defineProperty(it,"ImageKind",{enumerable:!0,get:function(){return at.ImageKind}}),Object.defineProperty(it,"InvalidPDFException",{enumerable:!0,get:function(){return at.InvalidPDFException}}),Object.defineProperty(it,"MissingPDFException",{enumerable:!0,get:function(){return at.MissingPDFException}}),Object.defineProperty(it,"OPS",{enumerable:!0,get:function(){return at.OPS}}),Object.defineProperty(it,"PDFDataRangeTransport",{enumerable:!0,get:function(){return lt.PDFDataRangeTransport}}),Object.defineProperty(it,"PDFDateString",{enumerable:!0,get:function(){return ut.PDFDateString}}),Object.defineProperty(it,"PDFWorker",{enumerable:!0,get:function(){return lt.PDFWorker}}),Object.defineProperty(it,"PasswordResponses",{enumerable:!0,get:function(){return at.PasswordResponses}}),Object.defineProperty(it,"PermissionFlag",{enumerable:!0,get:function(){return at.PermissionFlag}}),Object.defineProperty(it,"PixelsPerInch",{enumerable:!0,get:function(){return ut.PixelsPerInch}}),Object.defineProperty(it,"PromiseCapability",{enumerable:!0,get:function(){return at.PromiseCapability}}),Object.defineProperty(it,"RenderingCancelledException",{enumerable:!0,get:function(){return ut.RenderingCancelledException}}),Object.defineProperty(it,"SVGGraphics",{enumerable:!0,get:function(){return lt.SVGGraphics}}),Object.defineProperty(it,"UnexpectedResponseException",{enumerable:!0,get:function(){return at.UnexpectedResponseException}}),Object.defineProperty(it,"Util",{enumerable:!0,get:function(){return at.Util}}),Object.defineProperty(it,"VerbosityLevel",{enumerable:!0,get:function(){return at.VerbosityLevel}}),Object.defineProperty(it,"XfaLayer",{enumerable:!0,get:function(){return gt.XfaLayer}}),Object.defineProperty(it,"build",{enumerable:!0,get:function(){return lt.build}}),Object.defineProperty(it,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return at.createValidAbsoluteUrl}}),Object.defineProperty(it,"getDocument",{enumerable:!0,get:function(){return lt.getDocument}}),Object.defineProperty(it,"getFilenameFromUrl",{enumerable:!0,get:function(){return ut.getFilenameFromUrl}}),Object.defineProperty(it,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return ut.getPdfFilenameFromUrl}}),Object.defineProperty(it,"getXfaPageViewport",{enumerable:!0,get:function(){return ut.getXfaPageViewport}}),Object.defineProperty(it,"isDataScheme",{enumerable:!0,get:function(){return ut.isDataScheme}}),Object.defineProperty(it,"isPdfFile",{enumerable:!0,get:function(){return ut.isPdfFile}}),Object.defineProperty(it,"loadScript",{enumerable:!0,get:function(){return ut.loadScript}}),Object.defineProperty(it,"noContextMenu",{enumerable:!0,get:function(){return ut.noContextMenu}}),Object.defineProperty(it,"normalizeUnicode",{enumerable:!0,get:function(){return at.normalizeUnicode}}),Object.defineProperty(it,"renderTextLayer",{enumerable:!0,get:function(){return ct.renderTextLayer}}),Object.defineProperty(it,"setLayerDimensions",{enumerable:!0,get:function(){return ut.setLayerDimensions}}),Object.defineProperty(it,"shadow",{enumerable:!0,get:function(){return at.shadow}}),Object.defineProperty(it,"updateTextLayer",{enumerable:!0,get:function(){return ct.updateTextLayer}}),Object.defineProperty(it,"version",{enumerable:!0,get:function(){return lt.version}});var at=__w_pdfjs_require__(1),lt=__w_pdfjs_require__(2),ut=__w_pdfjs_require__(6),ct=__w_pdfjs_require__(26),dt=__w_pdfjs_require__(27),ft=__w_pdfjs_require__(5),mt=__w_pdfjs_require__(29),pt=__w_pdfjs_require__(14),gt=__w_pdfjs_require__(32)})(),__webpack_exports__})())})(pdf$1);var pdfExports=pdf$1.exports;const pdf=getDefaultExportFromCjs(pdfExports),pdfjsModule=_mergeNamespaces({__proto__:null,default:pdf},[pdfExports]),pdfjs="default"in pdfjsModule?pdf:pdfjsModule,pdfjs$1=pdfjs;var __spreadArray=globalThis&&globalThis.__spreadArray||function(it,at,lt){if(lt||arguments.length===2)for(var ut=0,ct=at.length,dt;ut<ct;ut++)(dt||!(ut in at))&&(dt||(dt=Array.prototype.slice.call(at,0,ut)),dt[ut]=at[ut]);return it.concat(dt||Array.prototype.slice.call(at))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(it,at){var lt={};return allEvents.forEach(function(ut){var ct=it[ut];ct&&(at?lt[ut]=function(dt){return ct(dt,at(ut))}:lt[ut]=ct)}),lt}function makeCancellablePromise(it){var at=!1,lt=new Promise(function(ut,ct){it.then(function(dt){return!at&&ut(dt)}).catch(function(dt){return!at&&ct(dt)})});return{promise:lt,cancel:function(){at=!0}}}function r(it){var at,lt,ut="";if(typeof it=="string"||typeof it=="number")ut+=it;else if(typeof it=="object")if(Array.isArray(it))for(at=0;at<it.length;at++)it[at]&&(lt=r(it[at]))&&(ut&&(ut+=" "),ut+=lt);else for(at in it)it[at]&&(ut&&(ut+=" "),ut+=at);return ut}function clsx(){for(var it,at,lt=0,ut="";lt<arguments.length;)(it=arguments[lt++])&&(at=r(it))&&(ut&&(ut+=" "),ut+=at);return ut}var isProduction=!0,prefix="Invariant failed";function invariant(it,at){if(!it){if(isProduction)throw new Error(prefix);var lt=typeof at=="function"?at():at,ut=lt?"".concat(prefix,": ").concat(lt):prefix;throw new Error(ut)}}const DocumentContext=reactExports.createContext(null);function Message({children:it,type:at}){return b$2.createElement("div",{className:`react-pdf__message react-pdf__message--${at}`},it)}const DEFAULT_LINK_REL="noopener noreferrer nofollow";class LinkService{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(at){this.pdfDocument=at}setViewer(at){this.pdfViewer=at}setExternalLinkRel(at){this.externalLinkRel=at}setExternalLinkTarget(at){this.externalLinkTarget=at}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return invariant(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(at){invariant(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=at}get rotation(){return 0}set rotation(at){}goToDestination(at){return new Promise(lt=>{invariant(this.pdfDocument,"PDF document not loaded."),invariant(at,"Destination is not specified."),typeof at=="string"?this.pdfDocument.getDestination(at).then(lt):Array.isArray(at)?lt(at):at.then(lt)}).then(lt=>{invariant(Array.isArray(lt),`"${lt}" is not a valid destination array.`);const ut=lt[0];new Promise(ct=>{invariant(this.pdfDocument,"PDF document not loaded."),ut instanceof Object?this.pdfDocument.getPageIndex(ut).then(dt=>{ct(dt)}).catch(()=>{invariant(!1,`"${ut}" is not a valid page reference.`)}):typeof ut=="number"?ct(ut):invariant(!1,`"${ut}" is not a valid destination reference.`)}).then(ct=>{const dt=ct+1;invariant(this.pdfViewer,"PDF viewer is not initialized."),invariant(dt>=1&&dt<=this.pagesCount,`"${dt}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:lt,pageIndex:ct,pageNumber:dt})})})}navigateTo(at){this.goToDestination(at)}goToPage(at){const lt=at-1;invariant(this.pdfViewer,"PDF viewer is not initialized."),invariant(at>=1&&at<=this.pagesCount,`"${at}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:lt,pageNumber:at})}addLinkAttributes(at,lt,ut){at.href=lt,at.rel=this.externalLinkRel||DEFAULT_LINK_REL,at.target=ut?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},PasswordResponses$1=PasswordResponses,isBrowser=typeof document<"u",isLocalFileSystem=isBrowser&&window.location.protocol==="file:";function isDefined(it){return typeof it<"u"}function isProvided(it){return isDefined(it)&&it!==null}function isString(it){return typeof it=="string"}function isArrayBuffer(it){return it instanceof ArrayBuffer}function isBlob(it){return invariant(isBrowser,"isBlob can only be used in a browser environment"),it instanceof Blob}function isDataURI(it){return isString(it)&&/^data:/.test(it)}function dataURItoByteString(it){invariant(isDataURI(it),"Invalid data URI.");const[at="",lt=""]=it.split(",");return at.split(";").indexOf("base64")!==-1?atob(lt):unescape(lt)}function getDevicePixelRatio(){return isBrowser&&window.devicePixelRatio||1}const allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning$1(!isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function displayWorkerWarning(){warning$1(!isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function cancelRunningTask(it){it&&it.cancel&&it.cancel()}function makePageCallback(it,at){return Object.defineProperty(it,"width",{get(){return this.view[2]*at},configurable:!0}),Object.defineProperty(it,"height",{get(){return this.view[3]*at},configurable:!0}),Object.defineProperty(it,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(it,"originalHeight",{get(){return this.view[3]},configurable:!0}),it}function isCancelException(it){return it.name==="RenderingCancelledException"}function loadFromFile(it){return new Promise((at,lt)=>{const ut=new FileReader;ut.onload=()=>{if(!ut.result)return lt(new Error("Error while reading a file."));at(ut.result)},ut.onerror=ct=>{if(!ct.target)return lt(new Error("Error while reading a file."));const{error:dt}=ct.target;if(!dt)return lt(new Error("Error while reading a file."));switch(dt.code){case dt.NOT_FOUND_ERR:return lt(new Error("Error while reading a file: File not found."));case dt.SECURITY_ERR:return lt(new Error("Error while reading a file: Security error."));case dt.ABORT_ERR:return lt(new Error("Error while reading a file: Aborted."));default:return lt(new Error("Error while reading a file."))}},ut.readAsArrayBuffer(it)})}function reducer(it,at){switch(at.type){case"RESOLVE":return{value:at.value,error:void 0};case"REJECT":return{value:!1,error:at.error};case"RESET":return{value:void 0,error:void 0};default:return it}}function useResolver(){return reactExports.useReducer(reducer,{value:void 0,error:void 0})}const{PDFDataRangeTransport:PDFDataRangeTransport$1}=pdfjs$1,eventProps=(()=>{const it={};return allEvents.forEach(at=>{it[at]=PropTypes.func}),it})(),isTypedArray=PropTypes.oneOfType([PropTypes.instanceOf(Int8Array),PropTypes.instanceOf(Uint8Array),PropTypes.instanceOf(Uint8ClampedArray),PropTypes.instanceOf(Int16Array),PropTypes.instanceOf(Uint16Array),PropTypes.instanceOf(Int32Array),PropTypes.instanceOf(Uint32Array),PropTypes.instanceOf(Float32Array),PropTypes.instanceOf(Float64Array)]),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.arrayOf(PropTypes.number.isRequired),isTypedArray]).isRequired}),PropTypes.shape({range:PropTypes.instanceOf(PDFDataRangeTransport$1).isRequired}),PropTypes.shape({url:PropTypes.string.isRequired})];typeof Blob<"u"&&fileTypes.push(PropTypes.instanceOf(Blob));const isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes);PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);PropTypes.shape({commonObjs:PropTypes.shape({}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired});const isPageIndex=function it(at,lt,ut){const{[lt]:ct,pageNumber:dt,pdf:ft}=at;if(!isDefined(ft))return null;if(isDefined(ct)){if(typeof ct!="number")return new Error(`\`${lt}\` of type \`${typeof ct}\` supplied to \`${ut}\`, expected \`number\`.`);if(ct<0)return new Error(`Expected \`${lt}\` to be greater or equal to 0.`);const{numPages:mt}=ft;if(ct+1>mt)return new Error(`Expected \`${lt}\` to be less or equal to ${mt-1}.`)}else if(!isDefined(dt))return new Error(`\`${lt}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${ut}\`.`);return null},isPageNumber=function it(at,lt,ut){const{[lt]:ct,pageIndex:dt,pdf:ft}=at;if(!isDefined(ft))return null;if(isDefined(ct)){if(typeof ct!="number")return new Error(`\`${lt}\` of type \`${typeof ct}\` supplied to \`${ut}\`, expected \`number\`.`);if(ct<1)return new Error(`Expected \`${lt}\` to be greater or equal to 1.`);const{numPages:mt}=ft;if(ct>mt)return new Error(`Expected \`${lt}\` to be less or equal to ${mt}.`)}else if(!isDefined(dt))return new Error(`\`${lt}\` not supplied. Either pageIndex or pageNumber must be supplied to \`${ut}\`.`);return null},isPdf=PropTypes.oneOfType([PropTypes.any,PropTypes.oneOf([!1])]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.exact({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","custom","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]);var __awaiter=globalThis&&globalThis.__awaiter||function(it,at,lt,ut){function ct(dt){return dt instanceof lt?dt:new lt(function(ft){ft(dt)})}return new(lt||(lt=Promise))(function(dt,ft){function mt(vt){try{gt(ut.next(vt))}catch(wt){ft(wt)}}function pt(vt){try{gt(ut.throw(vt))}catch(wt){ft(wt)}}function gt(vt){vt.done?dt(vt.value):ct(vt.value).then(mt,pt)}gt((ut=ut.apply(it,at||[])).next())})},__rest$1=globalThis&&globalThis.__rest||function(it,at){var lt={};for(var ut in it)Object.prototype.hasOwnProperty.call(it,ut)&&at.indexOf(ut)<0&&(lt[ut]=it[ut]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ut=Object.getOwnPropertySymbols(it);ct<ut.length;ct++)at.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(it,ut[ct])&&(lt[ut[ct]]=it[ut[ct]]);return lt};const{PDFDataRangeTransport}=pdfjs$1,defaultOnPassword=(it,at)=>{switch(at){case PasswordResponses$1.NEED_PASSWORD:{const lt=prompt("Enter the password to open this PDF file.");it(lt);break}case PasswordResponses$1.INCORRECT_PASSWORD:{const lt=prompt("Invalid password. Please try again.");it(lt);break}}};function isParameterObject(it){return typeof it=="object"&&it!==null&&("data"in it||"range"in it||"url"in it)}const Document=reactExports.forwardRef(function it(at,lt){var{children:ut,className:ct,error:dt="Failed to load PDF file.",externalLinkRel:ft,externalLinkTarget:mt,file:pt,inputRef:gt,imageResourcesPath:vt,loading:wt="Loading PDF…",noData:yt="No PDF file specified.",onItemClick:bt,onLoadError:Ct,onLoadProgress:Et,onLoadSuccess:kt,onPassword:xt=defaultOnPassword,onSourceError:St,onSourceSuccess:Ot,options:At,renderMode:Tt,rotate:$t}=at,Lt=__rest$1(at,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[Rt,It]=useResolver(),{value:Ft,error:Mt}=Rt,[Ht,Vt]=useResolver(),{value:Nt,error:Gt}=Ht,tn=reactExports.useRef(new LinkService),ln=reactExports.useRef([]),nn=reactExports.useRef(),on=reactExports.useRef();reactExports.useEffect(()=>{pt&&pt!==nn.current&&isParameterObject(pt)&&(warning$1(!dequal(pt,nn.current),`File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),nn.current=pt)},[pt]),reactExports.useEffect(()=>{At&&At!==on.current&&(warning$1(!dequal(At,on.current),`Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),on.current=At)},[At]);const rn=reactExports.useRef({scrollPageIntoView:Hn=>{const{dest:Fn,pageNumber:wn,pageIndex:Mn=wn-1}=Hn;if(bt){bt({dest:Fn,pageIndex:Mn,pageNumber:wn});return}const Dn=ln.current[Mn];if(Dn){Dn.scrollIntoView();return}warning$1(!1,`An internal link leading to page ${wn} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});reactExports.useImperativeHandle(lt,()=>({linkService:tn,pages:ln,viewer:rn}),[]);function Jt(){Ot&&Ot()}function Zt(){Mt&&(warning$1(!1,Mt.toString()),St&&St(Mt))}function Wt(){It({type:"RESET"})}reactExports.useEffect(Wt,[pt,It]);const jt=reactExports.useCallback(()=>__awaiter(this,void 0,void 0,function*(){if(!pt)return null;if(typeof pt=="string")return isDataURI(pt)?{data:dataURItoByteString(pt)}:(displayCORSWarning(),{url:pt});if(pt instanceof PDFDataRangeTransport)return{range:pt};if(isArrayBuffer(pt))return{data:pt};if(isBrowser&&isBlob(pt))return{data:yield loadFromFile(pt)};if(invariant(typeof pt=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant(isParameterObject(pt),"Invalid parameter object: need either .data, .range or .url"),"url"in pt&&typeof pt.url=="string"){if(isDataURI(pt.url)){const{url:Hn}=pt,Fn=__rest$1(pt,["url"]),wn=dataURItoByteString(Hn);return Object.assign({data:wn},Fn)}displayCORSWarning()}return pt}),[pt]);reactExports.useEffect(()=>{const Hn=makeCancellablePromise(jt());return Hn.promise.then(Fn=>{It({type:"RESOLVE",value:Fn})}).catch(Fn=>{It({type:"REJECT",error:Fn})}),()=>{cancelRunningTask(Hn)}},[jt,It]),reactExports.useEffect(()=>{if(!(typeof Ft>"u")){if(Ft===!1){Zt();return}Jt()}},[Ft]);function Bt(){Nt&&(kt&&kt(Nt),ln.current=new Array(Nt.numPages),tn.current.setDocument(Nt))}function Dt(){Gt&&(warning$1(!1,Gt.toString()),Ct&&Ct(Gt))}function zt(){Vt({type:"RESET"})}reactExports.useEffect(zt,[Vt,Ft]);function Kt(){if(!Ft)return;const Hn=Object.assign(Object.assign({},At),{isEvalSupported:!1}),Fn=Object.assign(Object.assign({},Ft),Hn),wn=pdfjs$1.getDocument(Fn);Et&&(wn.onProgress=Et),xt&&(wn.onPassword=xt);const Mn=wn;return Mn.promise.then(Dn=>{Vt({type:"RESOLVE",value:Dn})}).catch(Dn=>{Mn.destroyed||Vt({type:"REJECT",error:Dn})}),()=>{Mn.destroy()}}reactExports.useEffect(Kt,[At,Vt,Ft]),reactExports.useEffect(()=>{if(!(typeof Nt>"u")){if(Nt===!1){Dt();return}Bt()}},[Nt]);function en(){tn.current.setViewer(rn.current),tn.current.setExternalLinkRel(ft),tn.current.setExternalLinkTarget(mt)}reactExports.useEffect(en,[ft,mt]);function sn(Hn,Fn){ln.current[Hn]=Fn}function cn(Hn){delete ln.current[Hn]}const bn=reactExports.useMemo(()=>({imageResourcesPath:vt,linkService:tn.current,onItemClick:bt,pdf:Nt,registerPage:sn,renderMode:Tt,rotate:$t,unregisterPage:cn}),[vt,bt,Nt,Tt,$t]),Tn=reactExports.useMemo(()=>makeEventProps(Lt,()=>Nt),[Lt,Nt]);function kn(){return b$2.createElement(DocumentContext.Provider,{value:bn},ut)}function In(){return pt?Nt==null?b$2.createElement(Message,{type:"loading"},typeof wt=="function"?wt():wt):Nt===!1?b$2.createElement(Message,{type:"error"},typeof dt=="function"?dt():dt):kn():b$2.createElement(Message,{type:"no-data"},typeof yt=="function"?yt():yt)}return b$2.createElement("div",Object.assign({className:clsx("react-pdf__Document",ct),ref:gt,style:{"--scale-factor":"1"}},Tn),In())}),isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document.propTypes=Object.assign(Object.assign({},eventProps),{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.oneOf(["_self","_blank","_parent","_top"]),file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,options:PropTypes.shape({canvasFactory:PropTypes.any,canvasMaxAreaInBytes:PropTypes.number,cMapPacked:PropTypes.bool,CMapReaderFactory:PropTypes.any,cMapUrl:PropTypes.string,disableAutoFetch:PropTypes.bool,disableFontFace:PropTypes.bool,disableRange:PropTypes.bool,disableStream:PropTypes.bool,docBaseUrl:PropTypes.string,enableXfa:PropTypes.bool,filterFactory:PropTypes.any,fontExtraProperties:PropTypes.bool,httpHeaders:PropTypes.object,isEvalSupported:PropTypes.bool,isOffscreenCanvasSupported:PropTypes.bool,length:PropTypes.number,maxImageSize:PropTypes.number,ownerDocument:PropTypes.any,password:PropTypes.string,pdfBug:PropTypes.bool,rangeChunkSize:PropTypes.number,StandardFontDataFactory:PropTypes.any,standardFontDataUrl:PropTypes.string,stopAtErrors:PropTypes.bool,useSystemFonts:PropTypes.bool,useWorkerFetch:PropTypes.bool,verbosity:PropTypes.number,withCredentials:PropTypes.bool,worker:PropTypes.any}),rotate:PropTypes.number});const Document$1=Document;function useDocumentContext(){return reactExports.useContext(DocumentContext)}function mergeRefs(){for(var it=[],at=0;at<arguments.length;at++)it[at]=arguments[at];var lt=it.filter(Boolean);if(lt.length<=1){var ut=lt[0];return ut||null}return function(dt){lt.forEach(function(ft){typeof ft=="function"?ft(dt):ft&&(ft.current=dt)})}}const PageContext=reactExports.createContext(null),PDF_ROLE_TO_HTML_ROLE={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},HEADING_PATTERN=/^H(\d+)$/;function isPdfRole(it){return it in PDF_ROLE_TO_HTML_ROLE}function isStructTreeNode(it){return"children"in it}function isStructTreeNodeWithOnlyContentChild(it){return isStructTreeNode(it)?it.children.length===1&&0 in it.children&&"id"in it.children[0]:!1}function getRoleAttributes(it){const at={};if(isStructTreeNode(it)){const{role:lt}=it,ut=lt.match(HEADING_PATTERN);if(ut)at.role="heading",at["aria-level"]=Number(ut[1]);else if(isPdfRole(lt)){const ct=PDF_ROLE_TO_HTML_ROLE[lt];ct&&(at.role=ct)}}return at}function getBaseAttributes(it){const at={};if(isStructTreeNode(it)){if(it.alt!==void 0&&(at["aria-label"]=it.alt),it.lang!==void 0&&(at.lang=it.lang),isStructTreeNodeWithOnlyContentChild(it)){const[lt]=it.children;if(lt){const ut=getBaseAttributes(lt);return Object.assign(Object.assign({},at),ut)}}}else"id"in it&&(at["aria-owns"]=it.id);return at}function getAttributes(it){return it?Object.assign(Object.assign({},getRoleAttributes(it)),getBaseAttributes(it)):null}function StructTreeItem({className:it,node:at}){const lt=reactExports.useMemo(()=>getAttributes(at),[at]),ut=reactExports.useMemo(()=>!isStructTreeNode(at)||isStructTreeNodeWithOnlyContentChild(at)?null:at.children.map((ct,dt)=>b$2.createElement(StructTreeItem,{key:dt,node:ct})),[at]);return b$2.createElement("span",Object.assign({className:it},lt),ut)}function usePageContext(){return reactExports.useContext(PageContext)}function StructTree(){const it=usePageContext();invariant(it,"Unable to find Page context.");const{onGetStructTreeError:at,onGetStructTreeSuccess:lt}=it,[ut,ct]=useResolver(),{value:dt,error:ft}=ut,{customTextRenderer:mt,page:pt}=it;function gt(){dt&&lt&&lt(dt)}function vt(){ft&&(warning$1(!1,ft.toString()),at&&at(ft))}function wt(){ct({type:"RESET"})}reactExports.useEffect(wt,[ct,pt]);function yt(){if(mt||!pt)return;const bt=makeCancellablePromise(pt.getStructTree()),Ct=bt;return bt.promise.then(Et=>{ct({type:"RESOLVE",value:Et})}).catch(Et=>{ct({type:"REJECT",error:Et})}),()=>cancelRunningTask(Ct)}return reactExports.useEffect(yt,[mt,pt,ct]),reactExports.useEffect(()=>{if(dt!==void 0){if(dt===!1){vt();return}gt()}},[dt]),dt?b$2.createElement(StructTreeItem,{className:"react-pdf__Page__structTree structTree",node:dt}):null}const ANNOTATION_MODE=pdfjs$1.AnnotationMode;function PageCanvas(it){const at=usePageContext();invariant(at,"Unable to find Page context.");const lt=Object.assign(Object.assign({},at),it),{_className:ut,canvasBackground:ct,devicePixelRatio:dt=getDevicePixelRatio(),onRenderError:ft,onRenderSuccess:mt,page:pt,renderForms:gt,renderTextLayer:vt,rotate:wt,scale:yt}=lt,{canvasRef:bt}=it;invariant(pt,"Attempted to render page canvas, but no page was specified.");const Ct=reactExports.useRef(null);function Et(){pt&&mt&&mt(makePageCallback(pt,yt))}function kt(Tt){isCancelException(Tt)||(warning$1(!1,Tt.toString()),ft&&ft(Tt))}const xt=reactExports.useMemo(()=>pt.getViewport({scale:yt*dt,rotation:wt}),[dt,pt,wt,yt]),St=reactExports.useMemo(()=>pt.getViewport({scale:yt,rotation:wt}),[pt,wt,yt]);function Ot(){if(!pt)return;pt.cleanup();const{current:Tt}=Ct;if(!Tt)return;Tt.width=xt.width,Tt.height=xt.height,Tt.style.width=`${Math.floor(St.width)}px`,Tt.style.height=`${Math.floor(St.height)}px`,Tt.style.visibility="hidden";const $t={annotationMode:gt?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:Tt.getContext("2d",{alpha:!1}),viewport:xt};ct&&($t.background=ct);const Lt=pt.render($t),Rt=Lt;return Lt.promise.then(()=>{Tt.style.visibility="",Et()}).catch(kt),()=>cancelRunningTask(Rt)}reactExports.useEffect(Ot,[ct,Ct,dt,pt,gt,xt,St]);const At=reactExports.useCallback(()=>{const{current:Tt}=Ct;Tt&&(Tt.width=0,Tt.height=0)},[Ct]);return reactExports.useEffect(()=>At,[At]),b$2.createElement("canvas",{className:`${ut}__canvas`,dir:"ltr",ref:mergeRefs(bt,Ct),style:{display:"block",userSelect:"none"}},vt?b$2.createElement(StructTree,null):null)}function PageSVG(){const it=usePageContext();invariant(it,"Unable to find Page context.");const{_className:at,onRenderSuccess:lt,onRenderError:ut,page:ct,rotate:dt,scale:ft}=it;invariant(ct,"Attempted to render page SVG, but no page was specified.");const[mt,pt]=useResolver(),{value:gt,error:vt}=mt;function wt(){ct&&lt&&lt(makePageCallback(ct,ft))}function yt(){vt&&(isCancelException(vt)||(warning$1(!1,vt.toString()),ut&&ut(vt)))}const bt=reactExports.useMemo(()=>ct.getViewport({scale:ft,rotation:dt}),[ct,dt,ft]);function Ct(){pt({type:"RESET"})}reactExports.useEffect(Ct,[ct,pt,bt]);function Et(){if(!ct)return;const Ot=makeCancellablePromise(ct.getOperatorList());return Ot.promise.then(At=>{new pdfjs$1.SVGGraphics(ct.commonObjs,ct.objs).getSVG(At,bt).then($t=>{if(!($t instanceof SVGElement))throw new Error("getSVG returned unexpected result.");pt({type:"RESOLVE",value:$t})}).catch($t=>{pt({type:"REJECT",error:$t})})}).catch(At=>{pt({type:"REJECT",error:At})}),()=>cancelRunningTask(Ot)}reactExports.useEffect(Et,[ct,pt,bt]),reactExports.useEffect(()=>{if(gt!==void 0){if(gt===!1){yt();return}wt()}},[gt]);function kt(Ot){if(!Ot||!gt)return;Ot.firstElementChild||Ot.appendChild(gt);const{width:At,height:Tt}=bt;gt.setAttribute("width",`${At}`),gt.setAttribute("height",`${Tt}`)}const{width:xt,height:St}=bt;return b$2.createElement("div",{className:`${at}__svg`,ref:Ot=>kt(Ot),style:{display:"block",backgroundColor:"white",overflow:"hidden",width:xt,height:St,userSelect:"none"}})}function isTextItem(it){return"str"in it}function TextLayer$1(){const it=usePageContext();invariant(it,"Unable to find Page context.");const{customTextRenderer:at,onGetTextError:lt,onGetTextSuccess:ut,onRenderTextLayerError:ct,onRenderTextLayerSuccess:dt,page:ft,pageIndex:mt,pageNumber:pt,rotate:gt,scale:vt}=it;invariant(ft,"Attempted to load page text content, but no page was specified.");const[wt,yt]=useResolver(),{value:bt,error:Ct}=wt,Et=reactExports.useRef(null),kt=reactExports.useRef();warning$1(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function xt(){bt&&ut&&ut(bt)}function St(){Ct&&(warning$1(!1,Ct.toString()),lt&&lt(Ct))}function Ot(){yt({type:"RESET"})}reactExports.useEffect(Ot,[ft,yt]);function At(){if(!ft)return;const Mt=makeCancellablePromise(ft.getTextContent()),Ht=Mt;return Mt.promise.then(Vt=>{yt({type:"RESOLVE",value:Vt})}).catch(Vt=>{yt({type:"REJECT",error:Vt})}),()=>cancelRunningTask(Ht)}reactExports.useEffect(At,[ft,yt]),reactExports.useEffect(()=>{if(bt!==void 0){if(bt===!1){St();return}xt()}},[bt]);const Tt=reactExports.useCallback(()=>{dt&&dt()},[dt]),$t=reactExports.useCallback(Mt=>{warning$1(!1,Mt.toString()),ct&&ct(Mt)},[ct]);function Lt(){const Mt=kt.current;Mt&&Mt.classList.add("active")}function Rt(){const Mt=kt.current;Mt&&Mt.classList.remove("active")}const It=reactExports.useMemo(()=>ft.getViewport({scale:vt,rotation:gt}),[ft,gt,vt]);function Ft(){if(!ft||!bt)return;const{current:Mt}=Et;if(!Mt)return;Mt.innerHTML="";const Ht=ft.streamTextContent({includeMarkedContent:!0}),Vt={container:Mt,textContentSource:Ht,viewport:It},Nt=pdfjs$1.renderTextLayer(Vt),Gt=Nt;return Nt.promise.then(()=>{const tn=document.createElement("div");tn.className="endOfContent",Mt.append(tn),kt.current=tn;const ln=Mt.querySelectorAll('[role="presentation"]');if(at){let nn=0;bt.items.forEach((on,rn)=>{if(!isTextItem(on))return;const Jt=ln[nn];if(!Jt)return;const Zt=at(Object.assign({pageIndex:mt,pageNumber:pt,itemIndex:rn},on));Jt.innerHTML=Zt,nn+=on.str&&on.hasEOL?2:1})}Tt()}).catch($t),()=>cancelRunningTask(Gt)}return reactExports.useLayoutEffect(Ft,[at,$t,Tt,ft,mt,pt,bt,It]),b$2.createElement("div",{className:clsx("react-pdf__Page__textContent","textLayer"),onMouseUp:Rt,onMouseDown:Lt,ref:Et})}function AnnotationLayer$1(){const it=useDocumentContext(),at=usePageContext();invariant(at,"Unable to find Page context.");const lt=Object.assign(Object.assign({},it),at),{imageResourcesPath:ut,linkService:ct,onGetAnnotationsError:dt,onGetAnnotationsSuccess:ft,onRenderAnnotationLayerError:mt,onRenderAnnotationLayerSuccess:pt,page:gt,pdf:vt,renderForms:wt,rotate:yt,scale:bt=1}=lt;invariant(vt,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),invariant(gt,"Attempted to load page annotations, but no page was specified."),invariant(ct,"Attempted to load page annotations, but no linkService was specified.");const[Ct,Et]=useResolver(),{value:kt,error:xt}=Ct,St=reactExports.useRef(null);warning$1(parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function Ot(){kt&&ft&&ft(kt)}function At(){xt&&(warning$1(!1,xt.toString()),dt&&dt(xt))}function Tt(){Et({type:"RESET"})}reactExports.useEffect(Tt,[Et,gt]);function $t(){if(!gt)return;const Mt=makeCancellablePromise(gt.getAnnotations()),Ht=Mt;return Mt.promise.then(Vt=>{Et({type:"RESOLVE",value:Vt})}).catch(Vt=>{Et({type:"REJECT",error:Vt})}),()=>{cancelRunningTask(Ht)}}reactExports.useEffect($t,[Et,gt,wt]),reactExports.useEffect(()=>{if(kt!==void 0){if(kt===!1){At();return}Ot()}},[kt]);function Lt(){pt&&pt()}function Rt(Mt){warning$1(!1,`${Mt}`),mt&&mt(Mt)}const It=reactExports.useMemo(()=>gt.getViewport({scale:bt,rotation:yt}),[gt,yt,bt]);function Ft(){if(!vt||!gt||!ct||!kt)return;const{current:Mt}=St;if(!Mt)return;const Ht=It.clone({dontFlip:!0}),Vt={accessibilityManager:null,annotationCanvasMap:null,div:Mt,l10n:null,page:gt,viewport:Ht},Nt={annotations:kt,annotationStorage:vt.annotationStorage,div:Mt,downloadManager:null,imageResourcesPath:ut,linkService:ct,page:gt,renderForms:wt,viewport:Ht};Mt.innerHTML="";try{new pdfjs$1.AnnotationLayer(Vt).render(Nt),Lt()}catch(Gt){Rt(Gt)}return()=>{}}return reactExports.useEffect(Ft,[kt,ut,ct,gt,wt,It]),b$2.createElement("div",{className:clsx("react-pdf__Page__annotations","annotationLayer"),ref:St})}var __rest=globalThis&&globalThis.__rest||function(it,at){var lt={};for(var ut in it)Object.prototype.hasOwnProperty.call(it,ut)&&at.indexOf(ut)<0&&(lt[ut]=it[ut]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ut=Object.getOwnPropertySymbols(it);ct<ut.length;ct++)at.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(it,ut[ct])&&(lt[ut[ct]]=it[ut[ct]]);return lt};const defaultScale=1,Page=function it(at){const lt=useDocumentContext(),ut=Object.assign(Object.assign({},lt),at),{_className:ct="react-pdf__Page",_enableRegisterUnregisterPage:dt=!0,canvasBackground:ft,canvasRef:mt,children:pt,className:gt,customRenderer:vt,customTextRenderer:wt,devicePixelRatio:yt,error:bt="Failed to load the page.",height:Ct,inputRef:Et,loading:kt="Loading page…",noData:xt="No page specified.",onGetAnnotationsError:St,onGetAnnotationsSuccess:Ot,onGetStructTreeError:At,onGetStructTreeSuccess:Tt,onGetTextError:$t,onGetTextSuccess:Lt,onLoadError:Rt,onLoadSuccess:It,onRenderAnnotationLayerError:Ft,onRenderAnnotationLayerSuccess:Mt,onRenderError:Ht,onRenderSuccess:Vt,onRenderTextLayerError:Nt,onRenderTextLayerSuccess:Gt,pageIndex:tn,pageNumber:ln,pdf:nn,registerPage:on,renderAnnotationLayer:rn=!0,renderForms:Jt=!1,renderMode:Zt="canvas",renderTextLayer:Wt=!0,rotate:jt,scale:Bt=defaultScale,unregisterPage:Dt,width:zt}=ut,Kt=__rest(ut,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[en,sn]=useResolver(),{value:cn,error:bn}=en,Tn=reactExports.useRef(null);invariant(nn,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");const kn=isProvided(ln)?ln-1:tn??null,In=ln??(isProvided(tn)?tn+1:null),Hn=jt??(cn?cn.rotate:null),Fn=reactExports.useMemo(()=>{if(!cn)return null;let fn=1;const xn=Bt??defaultScale;if(zt||Ct){const Kn=cn.getViewport({scale:1,rotation:Hn});zt?fn=zt/Kn.width:Ct&&(fn=Ct/Kn.height)}return xn*fn},[Ct,cn,Hn,Bt,zt]);function wn(){return()=>{isProvided(kn)&&dt&&Dt&&Dt(kn)}}reactExports.useEffect(wn,[dt,nn,kn,Dt]);function Mn(){if(It){if(!cn||!Fn)return;It(makePageCallback(cn,Fn))}if(dt&&on){if(!isProvided(kn)||!Tn.current)return;on(kn,Tn.current)}}function Dn(){bn&&(warning$1(!1,bn.toString()),Rt&&Rt(bn))}function Un(){sn({type:"RESET"})}reactExports.useEffect(Un,[sn,nn,kn]);function Sn(){if(!nn||!In)return;const fn=makeCancellablePromise(nn.getPage(In)),xn=fn;return fn.promise.then(Kn=>{sn({type:"RESOLVE",value:Kn})}).catch(Kn=>{sn({type:"REJECT",error:Kn})}),()=>cancelRunningTask(xn)}reactExports.useEffect(Sn,[sn,nn,kn,In,on]),reactExports.useEffect(()=>{if(cn!==void 0){if(cn===!1){Dn();return}Mn()}},[cn,Fn]);const On=reactExports.useMemo(()=>cn&&isProvided(kn)&&In&&isProvided(Hn)&&isProvided(Fn)?{_className:ct,canvasBackground:ft,customTextRenderer:wt,devicePixelRatio:yt,onGetAnnotationsError:St,onGetAnnotationsSuccess:Ot,onGetStructTreeError:At,onGetStructTreeSuccess:Tt,onGetTextError:$t,onGetTextSuccess:Lt,onRenderAnnotationLayerError:Ft,onRenderAnnotationLayerSuccess:Mt,onRenderError:Ht,onRenderSuccess:Vt,onRenderTextLayerError:Nt,onRenderTextLayerSuccess:Gt,page:cn,pageIndex:kn,pageNumber:In,renderForms:Jt,renderTextLayer:Wt,rotate:Hn,scale:Fn}:null,[ct,ft,wt,yt,St,Ot,At,Tt,$t,Lt,Ft,Mt,Ht,Vt,Nt,Gt,cn,kn,In,Jt,Wt,Hn,Fn]),Cn=reactExports.useMemo(()=>makeEventProps(Kt,()=>cn&&(Fn?makePageCallback(cn,Fn):void 0)),[Kt,cn,Fn]),Pn=`${kn}@${Fn}/${Hn}`,Xn=`${kn}/${Hn}`;function Qn(){switch(Zt){case"custom":return invariant(vt,'renderMode was set to "custom", but no customRenderer was passed.'),b$2.createElement(vt,{key:`${Pn}_custom`});case"none":return null;case"svg":return b$2.createElement(PageSVG,{key:`${Xn}_svg`});case"canvas":default:return b$2.createElement(PageCanvas,{key:`${Pn}_canvas`,canvasRef:mt})}}function sr(){return Wt?b$2.createElement(TextLayer$1,{key:`${Pn}_text`}):null}function pr(){return rn?b$2.createElement(AnnotationLayer$1,{key:`${Pn}_annotations`}):null}function or(){return b$2.createElement(PageContext.Provider,{value:On},Qn(),sr(),pr(),pt)}function br(){return In?nn===null||cn===void 0||cn===null?b$2.createElement(Message,{type:"loading"},typeof kt=="function"?kt():kt):nn===!1||cn===!1?b$2.createElement(Message,{type:"error"},typeof bt=="function"?bt():bt):or():b$2.createElement(Message,{type:"no-data"},typeof xt=="function"?xt():xt)}return b$2.createElement("div",Object.assign({className:clsx(ct,gt),"data-page-number":In,ref:mergeRefs(Et,Tn),style:{"--scale-factor":`${Fn}`,backgroundColor:ft||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},Cn),br())},isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Page.propTypes=Object.assign(Object.assign({},eventProps),{canvasBackground:PropTypes.string,canvasRef:isRef,children:PropTypes.node,className:isClassName,customRenderer:PropTypes.func,customTextRenderer:PropTypes.func,devicePixelRatio:PropTypes.number,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,onRenderTextLayerError:PropTypes.func,onRenderTextLayerSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,width:PropTypes.number});const Page$1=Page;displayWorkerWarning();pdfjs$1.GlobalWorkerOptions.workerSrc="pdf.worker.js";const TextLayer="",AnnotationLayer="",page="_page_1jjse_1",styles$1={page};pdfjs$1.GlobalWorkerOptions.workerSrc=`//unpkg.com/pdfjs-dist@${pdfjs$1.version}/build/pdf.worker.min.js`;const Pdf=({pdfDocument:it,useFullPage:at,buttonColor:lt})=>{const{t:ut}=useTranslation(["external"]),[ct,dt]=reactExports.useState(0),[ft,mt]=reactExports.useState(0),pt=vt=>{const wt=ft+vt;wt<ct&&wt>=0&&mt(wt)},gt=({numPages:vt})=>{dt(vt)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"d-flex flex-column justify-content-center align-items-center",children:jsxRuntimeExports.jsx(Document$1,{file:it,onLoadSuccess:gt,options:{cMapUrl:"cmaps/",standardFontDataUrl:"standard_fonts/"},loading:jsxRuntimeExports.jsx(Loading,{}),children:jsxRuntimeExports.jsx(Page$1,{pageNumber:ft+1,className:`${styles$1.page} shadow-lg mb-2 mt-1`,scale:1.5,renderAnnotationLayer:!1,renderTextLayer:!1})})}),ct>1&&jsxRuntimeExports.jsx("div",{className:"d-flex justify-content-center mt-3",children:jsxRuntimeExports.jsxs("div",{className:`bottom-0 mb-3 ${at?"position-fixed":"position-relative"}`,children:[jsxRuntimeExports.jsx(Button,{color:lt,onClick:()=>pt(-1),disabled:ft===0,"data-test":"digital-menu-prev-page",children:jsxRuntimeExports.jsx("i",{className:"fa fa-arrow-left"})}),jsxRuntimeExports.jsx("span",{className:"px-4",children:ut("external:digitalmenu.pageOfMaxPages",{page:ft+1,max:ct})}),jsxRuntimeExports.jsx(Button,{color:lt,onClick:()=>pt(1),disabled:ft+1===ct,"data-test":"digital-menu-next-page",children:jsxRuntimeExports.jsx("i",{className:"fa fa-arrow-right"})})]})})]})},chat="_chat_4siqy_1",chatBox="_chatBox_4siqy_7",messages="_messages_4siqy_15",message="_message_4siqy_15",yours="_yours_4siqy_28",last="_last_4siqy_39",mine="_mine_4siqy_63",createdAt="_createdAt_4siqy_101",styles={chat,chatBox,messages,message,yours,last,mine,createdAt};var sweetalert2_all={exports:{}};/*!
* sweetalert2 v11.7.32
* Released under the MIT License.
*/(function(it,at){(function(lt,ut){it.exports=ut()})(commonjsGlobal,function(){function lt(Ut,qt){var an=ct(Ut,qt,"get");return dt(Ut,an)}function ut(Ut,qt,an){var En=ct(Ut,qt,"set");return ft(Ut,En,an),an}function ct(Ut,qt,an){if(!qt.has(Ut))throw new TypeError("attempted to "+an+" private field on non-instance");return qt.get(Ut)}function dt(Ut,qt){return qt.get?qt.get.call(Ut):qt.value}function ft(Ut,qt,an){if(qt.set)qt.set.call(Ut,an);else{if(!qt.writable)throw new TypeError("attempted to set read only private field");qt.value=an}}function mt(Ut,qt){if(qt.has(Ut))throw new TypeError("Cannot initialize the same private elements twice on an object")}function pt(Ut,qt,an){mt(Ut,qt),qt.set(Ut,an)}const gt=100,vt={},wt=()=>{vt.previousActiveElement instanceof HTMLElement?(vt.previousActiveElement.focus(),vt.previousActiveElement=null):document.body&&document.body.focus()},yt=Ut=>new Promise(qt=>{if(!Ut)return qt();const an=window.scrollX,En=window.scrollY;vt.restoreFocusTimeout=setTimeout(()=>{wt(),qt()},gt),window.scrollTo(an,En)}),bt="swal2-",Et=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"].reduce((Ut,qt)=>(Ut[qt]=bt+qt,Ut),{}),xt=["success","warning","info","question","error"].reduce((Ut,qt)=>(Ut[qt]=bt+qt,Ut),{}),St="SweetAlert2:",Ot=Ut=>Ut.charAt(0).toUpperCase()+Ut.slice(1),At=Ut=>{console.warn("".concat(St," ").concat(typeof Ut=="object"?Ut.join(" "):Ut))},Tt=Ut=>{console.error("".concat(St," ").concat(Ut))},$t=[],Lt=Ut=>{$t.includes(Ut)||($t.push(Ut),At(Ut))},Rt=(Ut,qt)=>{Lt('"'.concat(Ut,'" is deprecated and will be removed in the next major release. Please use "').concat(qt,'" instead.'))},It=Ut=>typeof Ut=="function"?Ut():Ut,Ft=Ut=>Ut&&typeof Ut.toPromise=="function",Mt=Ut=>Ft(Ut)?Ut.toPromise():Promise.resolve(Ut),Ht=Ut=>Ut&&Promise.resolve(Ut)===Ut,Vt=()=>document.body.querySelector(".".concat(Et.container)),Nt=Ut=>{const qt=Vt();return qt?qt.querySelector(Ut):null},Gt=Ut=>Nt(".".concat(Ut)),tn=()=>Gt(Et.popup),ln=()=>Gt(Et.icon),nn=()=>Gt(Et["icon-content"]),on=()=>Gt(Et.title),rn=()=>Gt(Et["html-container"]),Jt=()=>Gt(Et.image),Zt=()=>Gt(Et["progress-steps"]),Wt=()=>Gt(Et["validation-message"]),jt=()=>Nt(".".concat(Et.actions," .").concat(Et.confirm)),Bt=()=>Nt(".".concat(Et.actions," .").concat(Et.cancel)),Dt=()=>Nt(".".concat(Et.actions," .").concat(Et.deny)),zt=()=>Gt(Et["input-label"]),Kt=()=>Nt(".".concat(Et.loader)),en=()=>Gt(Et.actions),sn=()=>Gt(Et.footer),cn=()=>Gt(Et["timer-progress-bar"]),bn=()=>Gt(Et.close),Tn=`
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`,kn=()=>{const Ut=tn();if(!Ut)return[];const qt=Ut.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),an=Array.from(qt).sort((Cr,Xr)=>{const so=parseInt(Cr.getAttribute("tabindex")||"0"),uo=parseInt(Xr.getAttribute("tabindex")||"0");return so>uo?1:so<uo?-1:0}),En=Ut.querySelectorAll(Tn),tr=Array.from(En).filter(Cr=>Cr.getAttribute("tabindex")!=="-1");return[...new Set(an.concat(tr))].filter(Cr=>xn(Cr))},In=()=>Mn(document.body,Et.shown)&&!Mn(document.body,Et["toast-shown"])&&!Mn(document.body,Et["no-backdrop"]),Hn=()=>{const Ut=tn();return Ut?Mn(Ut,Et.toast):!1},Fn=()=>{const Ut=tn();return Ut?Ut.hasAttribute("data-loading"):!1},wn=(Ut,qt)=>{if(Ut.textContent="",qt){const En=new DOMParser().parseFromString(qt,"text/html"),tr=En.querySelector("head");tr&&Array.from(tr.childNodes).forEach(Xr=>{Ut.appendChild(Xr)});const Cr=En.querySelector("body");Cr&&Array.from(Cr.childNodes).forEach(Xr=>{Xr instanceof HTMLVideoElement||Xr instanceof HTMLAudioElement?Ut.appendChild(Xr.cloneNode(!0)):Ut.appendChild(Xr)})}},Mn=(Ut,qt)=>{if(!qt)return!1;const an=qt.split(/\s+/);for(let En=0;En<an.length;En++)if(!Ut.classList.contains(an[En]))return!1;return!0},Dn=(Ut,qt)=>{Array.from(Ut.classList).forEach(an=>{!Object.values(Et).includes(an)&&!Object.values(xt).includes(an)&&!Object.values(qt.showClass||{}).includes(an)&&Ut.classList.remove(an)})},Un=(Ut,qt,an)=>{if(Dn(Ut,qt),qt.customClass&&qt.customClass[an]){if(typeof qt.customClass[an]!="string"&&!qt.customClass[an].forEach){At("Invalid type of customClass.".concat(an,'! Expected string or iterable object, got "').concat(typeof qt.customClass[an],'"'));return}Pn(Ut,qt.customClass[an])}},Sn=(Ut,qt)=>{if(!qt)return null;switch(qt){case"select":case"textarea":case"file":return Ut.querySelector(".".concat(Et.popup," > .").concat(Et[qt]));case"checkbox":return Ut.querySelector(".".concat(Et.popup," > .").concat(Et.checkbox," input"));case"radio":return Ut.querySelector(".".concat(Et.popup," > .").concat(Et.radio," input:checked"))||Ut.querySelector(".".concat(Et.popup," > .").concat(Et.radio," input:first-child"));case"range":return Ut.querySelector(".".concat(Et.popup," > .").concat(Et.range," input"));default:return Ut.querySelector(".".concat(Et.popup," > .").concat(Et.input))}},On=Ut=>{if(Ut.focus(),Ut.type!=="file"){const qt=Ut.value;Ut.value="",Ut.value=qt}},Cn=(Ut,qt,an)=>{!Ut||!qt||(typeof qt=="string"&&(qt=qt.split(/\s+/).filter(Boolean)),qt.forEach(En=>{Array.isArray(Ut)?Ut.forEach(tr=>{an?tr.classList.add(En):tr.classList.remove(En)}):an?Ut.classList.add(En):Ut.classList.remove(En)}))},Pn=(Ut,qt)=>{Cn(Ut,qt,!0)},Xn=(Ut,qt)=>{Cn(Ut,qt,!1)},Qn=(Ut,qt)=>{const an=Array.from(Ut.children);for(let En=0;En<an.length;En++){const tr=an[En];if(tr instanceof HTMLElement&&Mn(tr,qt))return tr}},sr=(Ut,qt,an)=>{an==="".concat(parseInt(an))&&(an=parseInt(an)),an||parseInt(an)===0?Ut.style[qt]=typeof an=="number"?"".concat(an,"px"):an:Ut.style.removeProperty(qt)},pr=function(Ut){let qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";Ut&&(Ut.style.display=qt)},or=Ut=>{Ut&&(Ut.style.display="none")},br=(Ut,qt,an,En)=>{const tr=Ut.querySelector(qt);tr&&(tr.style[an]=En)},fn=function(Ut,qt){let an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";qt?pr(Ut,an):or(Ut)},xn=Ut=>!!(Ut&&(Ut.offsetWidth||Ut.offsetHeight||Ut.getClientRects().length)),Kn=()=>!xn(jt())&&!xn(Dt())&&!xn(Bt()),_n=Ut=>Ut.scrollHeight>Ut.clientHeight,gn=Ut=>{const qt=window.getComputedStyle(Ut),an=parseFloat(qt.getPropertyValue("animation-duration")||"0"),En=parseFloat(qt.getPropertyValue("transition-duration")||"0");return an>0||En>0},vn=function(Ut){let qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const an=cn();an&&xn(an)&&(qt&&(an.style.transition="none",an.style.width="100%"),setTimeout(()=>{an.style.transition="width ".concat(Ut/1e3,"s linear"),an.style.width="0%"},10))},qn=()=>{const Ut=cn();if(!Ut)return;const qt=parseInt(window.getComputedStyle(Ut).width);Ut.style.removeProperty("transition"),Ut.style.width="100%";const an=parseInt(window.getComputedStyle(Ut).width),En=qt/an*100;Ut.style.width="".concat(En,"%")},Yn=()=>typeof window>"u"||typeof document>"u",Sr=`
 <div aria-labelledby="`.concat(Et.title,'" aria-describedby="').concat(Et["html-container"],'" class="').concat(Et.popup,`" tabindex="-1">
   <button type="button" class="`).concat(Et.close,`"></button>
   <ul class="`).concat(Et["progress-steps"],`"></ul>
   <div class="`).concat(Et.icon,`"></div>
   <img class="`).concat(Et.image,`" />
   <h2 class="`).concat(Et.title,'" id="').concat(Et.title,`"></h2>
   <div class="`).concat(Et["html-container"],'" id="').concat(Et["html-container"],`"></div>
   <input class="`).concat(Et.input,'" id="').concat(Et.input,`" />
   <input type="file" class="`).concat(Et.file,`" />
   <div class="`).concat(Et.range,`">
     <input type="range" />
     <output></output>
   </div>
   <select class="`).concat(Et.select,'" id="').concat(Et.select,`"></select>
   <div class="`).concat(Et.radio,`"></div>
   <label class="`).concat(Et.checkbox,`">
     <input type="checkbox" id="`).concat(Et.checkbox,`" />
     <span class="`).concat(Et.label,`"></span>
   </label>
   <textarea class="`).concat(Et.textarea,'" id="').concat(Et.textarea,`"></textarea>
   <div class="`).concat(Et["validation-message"],'" id="').concat(Et["validation-message"],`"></div>
   <div class="`).concat(Et.actions,`">
     <div class="`).concat(Et.loader,`"></div>
     <button type="button" class="`).concat(Et.confirm,`"></button>
     <button type="button" class="`).concat(Et.deny,`"></button>
     <button type="button" class="`).concat(Et.cancel,`"></button>
   </div>
   <div class="`).concat(Et.footer,`"></div>
   <div class="`).concat(Et["timer-progress-bar-container"],`">
     <div class="`).concat(Et["timer-progress-bar"],`"></div>
   </div>
 </div>
`).replace(/(^|\n)\s*/g,""),Tr=()=>{const Ut=Vt();return Ut?(Ut.remove(),Xn([document.documentElement,document.body],[Et["no-backdrop"],Et["toast-shown"],Et["has-column"]]),!0):!1},Ln=()=>{vt.currentInstance.resetValidationMessage()},er=()=>{const Ut=tn(),qt=Qn(Ut,Et.input),an=Qn(Ut,Et.file),En=Ut.querySelector(".".concat(Et.range," input")),tr=Ut.querySelector(".".concat(Et.range," output")),Cr=Qn(Ut,Et.select),Xr=Ut.querySelector(".".concat(Et.checkbox," input")),so=Qn(Ut,Et.textarea);qt.oninput=Ln,an.onchange=Ln,Cr.onchange=Ln,Xr.onchange=Ln,so.oninput=Ln,En.oninput=()=>{Ln(),tr.value=En.value},En.onchange=()=>{Ln(),tr.value=En.value}},hr=Ut=>typeof Ut=="string"?document.querySelector(Ut):Ut,ur=Ut=>{const qt=tn();qt.setAttribute("role",Ut.toast?"alert":"dialog"),qt.setAttribute("aria-live",Ut.toast?"polite":"assertive"),Ut.toast||qt.setAttribute("aria-modal","true")},_r=Ut=>{window.getComputedStyle(Ut).direction==="rtl"&&Pn(Vt(),Et.rtl)},yr=Ut=>{const qt=Tr();if(Yn()){Tt("SweetAlert2 requires document to initialize");return}const an=document.createElement("div");an.className=Et.container,qt&&Pn(an,Et["no-transition"]),wn(an,Sr);const En=hr(Ut.target);En.appendChild(an),ur(Ut),_r(En),er()},Rr=(Ut,qt)=>{Ut instanceof HTMLElement?qt.appendChild(Ut):typeof Ut=="object"?rr(Ut,qt):Ut&&wn(qt,Ut)},rr=(Ut,qt)=>{Ut.jquery?$r(qt,Ut):wn(qt,Ut.toString())},$r=(Ut,qt)=>{if(Ut.textContent="",0 in qt)for(let an=0;an in qt;an++)Ut.appendChild(qt[an].cloneNode(!0));else Ut.appendChild(qt.cloneNode(!0))},mr=(()=>{if(Yn())return!1;const Ut=document.createElement("div");return typeof Ut.style.webkitAnimation<"u"?"webkitAnimationEnd":typeof Ut.style.animation<"u"?"animationend":!1})(),yn=(Ut,qt)=>{const an=en(),En=Kt();!an||!En||(!qt.showConfirmButton&&!qt.showDenyButton&&!qt.showCancelButton?or(an):pr(an),Un(an,qt,"actions"),Qt(an,En,qt),wn(En,qt.loaderHtml||""),Un(En,qt,"loader"))};function Qt(Ut,qt,an){const En=jt(),tr=Dt(),Cr=Bt();!En||!tr||!Cr||(mn(En,"confirm",an),mn(tr,"deny",an),mn(Cr,"cancel",an),dn(En,tr,Cr,an),an.reverseButtons&&(an.toast?(Ut.insertBefore(Cr,En),Ut.insertBefore(tr,En)):(Ut.insertBefore(Cr,qt),Ut.insertBefore(tr,qt),Ut.insertBefore(En,qt))))}function dn(Ut,qt,an,En){if(!En.buttonsStyling){Xn([Ut,qt,an],Et.styled);return}Pn([Ut,qt,an],Et.styled),En.confirmButtonColor&&(Ut.style.backgroundColor=En.confirmButtonColor,Pn(Ut,Et["default-outline"])),En.denyButtonColor&&(qt.style.backgroundColor=En.denyButtonColor,Pn(qt,Et["default-outline"])),En.cancelButtonColor&&(an.style.backgroundColor=En.cancelButtonColor,Pn(an,Et["default-outline"]))}function mn(Ut,qt,an){const En=Ot(qt);fn(Ut,an["show".concat(En,"Button")],"inline-block"),wn(Ut,an["".concat(qt,"ButtonText")]||""),Ut.setAttribute("aria-label",an["".concat(qt,"ButtonAriaLabel")]||""),Ut.className=Et[qt],Un(Ut,an,"".concat(qt,"Button"))}const Rn=(Ut,qt)=>{const an=bn();an&&(wn(an,qt.closeButtonHtml||""),Un(an,qt,"closeButton"),fn(an,qt.showCloseButton),an.setAttribute("aria-label",qt.closeButtonAriaLabel||""))},jn=(Ut,qt)=>{const an=Vt();an&&(Vn(an,qt.backdrop),nr(an,qt.position),cr(an,qt.grow),Un(an,qt,"container"))};function Vn(Ut,qt){typeof qt=="string"?Ut.style.background=qt:qt||Pn([document.documentElement,document.body],Et["no-backdrop"])}function nr(Ut,qt){qt&&(qt in Et?Pn(Ut,Et[qt]):(At('The "position" parameter is not valid, defaulting to "center"'),Pn(Ut,Et.center)))}function cr(Ut,qt){qt&&Pn(Ut,Et["grow-".concat(qt)])}var Jn={innerParams:new WeakMap,domCache:new WeakMap};const Ar=["input","file","range","select","radio","checkbox","textarea"],fr=(Ut,qt)=>{const an=tn();if(!an)return;const En=Jn.innerParams.get(Ut),tr=!En||qt.input!==En.input;Ar.forEach(Cr=>{const Xr=Qn(an,Et[Cr]);Xr&&(kr(Cr,qt.inputAttributes),Xr.className=Et[Cr],tr&&or(Xr))}),qt.input&&(tr&&gr(qt),Nr(qt))},gr=Ut=>{if(!Ut.input)return;if(!_i[Ut.input]){Tt('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(Ut.input,'"'));return}const qt=Qr(Ut.input),an=_i[Ut.input](qt,Ut);pr(qt),Ut.inputAutoFocus&&setTimeout(()=>{On(an)})},wr=Ut=>{for(let qt=0;qt<Ut.attributes.length;qt++){const an=Ut.attributes[qt].name;["id","type","value","style"].includes(an)||Ut.removeAttribute(an)}},kr=(Ut,qt)=>{const an=Sn(tn(),Ut);if(an){wr(an);for(const En in qt)an.setAttribute(En,qt[En])}},Nr=Ut=>{const qt=Qr(Ut.input);typeof Ut.customClass=="object"&&Pn(qt,Ut.customClass.input)},jr=(Ut,qt)=>{(!Ut.placeholder||qt.inputPlaceholder)&&(Ut.placeholder=qt.inputPlaceholder)},Zr=(Ut,qt,an)=>{if(an.inputLabel){const En=document.createElement("label"),tr=Et["input-label"];En.setAttribute("for",Ut.id),En.className=tr,typeof an.customClass=="object"&&Pn(En,an.customClass.inputLabel),En.innerText=an.inputLabel,qt.insertAdjacentElement("beforebegin",En)}},Qr=Ut=>Qn(tn(),Et[Ut]||Et.input),qr=(Ut,qt)=>{["string","number"].includes(typeof qt)?Ut.value="".concat(qt):Ht(qt)||At('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof qt,'"'))},_i={};_i.text=_i.email=_i.password=_i.number=_i.tel=_i.url=(Ut,qt)=>(qr(Ut,qt.inputValue),Zr(Ut,Ut,qt),jr(Ut,qt),Ut.type=qt.input,Ut),_i.file=(Ut,qt)=>(Zr(Ut,Ut,qt),jr(Ut,qt),Ut),_i.range=(Ut,qt)=>{const an=Ut.querySelector("input"),En=Ut.querySelector("output");return qr(an,qt.inputValue),an.type=qt.input,qr(En,qt.inputValue),Zr(an,Ut,qt),Ut},_i.select=(Ut,qt)=>{if(Ut.textContent="",qt.inputPlaceholder){const an=document.createElement("option");wn(an,qt.inputPlaceholder),an.value="",an.disabled=!0,an.selected=!0,Ut.appendChild(an)}return Zr(Ut,Ut,qt),Ut},_i.radio=Ut=>(Ut.textContent="",Ut),_i.checkbox=(Ut,qt)=>{const an=Sn(tn(),"checkbox");an.value="1",an.checked=!!qt.inputValue;const En=Ut.querySelector("span");return wn(En,qt.inputPlaceholder),an},_i.textarea=(Ut,qt)=>{qr(Ut,qt.inputValue),jr(Ut,qt),Zr(Ut,Ut,qt);const an=En=>parseInt(window.getComputedStyle(En).marginLeft)+parseInt(window.getComputedStyle(En).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const En=parseInt(window.getComputedStyle(tn()).width),tr=()=>{if(!document.body.contains(Ut))return;const Cr=Ut.offsetWidth+an(Ut);Cr>En?tn().style.width="".concat(Cr,"px"):sr(tn(),"width",qt.width)};new MutationObserver(tr).observe(Ut,{attributes:!0,attributeFilter:["style"]})}}),Ut};const $o=(Ut,qt)=>{const an=rn();an&&(Un(an,qt,"htmlContainer"),qt.html?(Rr(qt.html,an),pr(an,"block")):qt.text?(an.textContent=qt.text,pr(an,"block")):or(an),fr(Ut,qt))},ks=(Ut,qt)=>{const an=sn();an&&(fn(an,qt.footer,"block"),qt.footer&&Rr(qt.footer,an),Un(an,qt,"footer"))},ba=(Ut,qt)=>{const an=Jn.innerParams.get(Ut),En=ln();if(En){if(an&&qt.icon===an.icon){Qo(En,qt),Bs(En,qt);return}if(!qt.icon&&!qt.iconHtml){or(En);return}if(qt.icon&&Object.keys(xt).indexOf(qt.icon)===-1){Tt('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(qt.icon,'"')),or(En);return}pr(En),Qo(En,qt),Bs(En,qt),Pn(En,qt.showClass&&qt.showClass.icon)}},Bs=(Ut,qt)=>{for(const[an,En]of Object.entries(xt))qt.icon!==an&&Xn(Ut,En);Pn(Ut,qt.icon&&xt[qt.icon]),Zl(Ut,qt),xa(),Un(Ut,qt,"icon")},xa=()=>{const Ut=tn();if(!Ut)return;const qt=window.getComputedStyle(Ut).getPropertyValue("background-color"),an=Ut.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let En=0;En<an.length;En++)an[En].style.backgroundColor=qt},Yl=`
  <div class="swal2-success-circular-line-left"></div>
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`,Xl=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,Qo=(Ut,qt)=>{if(!qt.icon&&!qt.iconHtml)return;let an=Ut.innerHTML,En="";qt.iconHtml?En=Us(qt.iconHtml):qt.icon==="success"?(En=Yl,an=an.replace(/ style=".*?"/g,"")):qt.icon==="error"?En=Xl:qt.icon&&(En=Us({question:"?",warning:"!",info:"i"}[qt.icon])),an.trim()!==En.trim()&&wn(Ut,En)},Zl=(Ut,qt)=>{if(qt.iconColor){Ut.style.color=qt.iconColor,Ut.style.borderColor=qt.iconColor;for(const an of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])br(Ut,an,"backgroundColor",qt.iconColor);br(Ut,".swal2-success-ring","borderColor",qt.iconColor)}},Us=Ut=>'<div class="'.concat(Et["icon-content"],'">').concat(Ut,"</div>"),$a=(Ut,qt)=>{const an=Jt();if(an){if(!qt.imageUrl){or(an);return}pr(an,""),an.setAttribute("src",qt.imageUrl),an.setAttribute("alt",qt.imageAlt||""),sr(an,"width",qt.imageWidth),sr(an,"height",qt.imageHeight),an.className=Et.image,Un(an,qt,"image")}},Lr=(Ut,qt)=>{const an=Vt(),En=tn();if(!(!an||!En)){if(qt.toast){sr(an,"width",qt.width),En.style.width="100%";const tr=Kt();tr&&En.insertBefore(tr,ln())}else sr(En,"width",qt.width);sr(En,"padding",qt.padding),qt.color&&(En.style.color=qt.color),qt.background&&(En.style.background=qt.background),or(Wt()),zr(En,qt)}},zr=(Ut,qt)=>{const an=qt.showClass||{};Ut.className="".concat(Et.popup," ").concat(xn(Ut)?an.popup:""),qt.toast?(Pn([document.documentElement,document.body],Et["toast-shown"]),Pn(Ut,Et.toast)):Pn(Ut,Et.modal),Un(Ut,qt,"popup"),typeof qt.customClass=="string"&&Pn(Ut,qt.customClass),qt.icon&&Pn(Ut,Et["icon-".concat(qt.icon)])},vo=(Ut,qt)=>{const an=Zt();if(!an)return;const{progressSteps:En,currentProgressStep:tr}=qt;if(!En||En.length===0||tr===void 0){or(an);return}pr(an),an.textContent="",tr>=En.length&&At("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),En.forEach((Cr,Xr)=>{const so=xo(Cr);if(an.appendChild(so),Xr===tr&&Pn(so,Et["active-progress-step"]),Xr!==En.length-1){const uo=Pr(qt);an.appendChild(uo)}})},xo=Ut=>{const qt=document.createElement("li");return Pn(qt,Et["progress-step"]),wn(qt,Ut),qt},Pr=Ut=>{const qt=document.createElement("li");return Pn(qt,Et["progress-step-line"]),Ut.progressStepsDistance&&sr(qt,"width",Ut.progressStepsDistance),qt},ds=(Ut,qt)=>{const an=on();an&&(fn(an,qt.title||qt.titleText,"block"),qt.title&&Rr(qt.title,an),qt.titleText&&(an.innerText=qt.titleText),Un(an,qt,"title"))},Fo=(Ut,qt)=>{Lr(Ut,qt),jn(Ut,qt),vo(Ut,qt),ba(Ut,qt),$a(Ut,qt),ds(Ut,qt),Rn(Ut,qt),$o(Ut,qt),yn(Ut,qt),ks(Ut,qt);const an=tn();typeof qt.didRender=="function"&&an&&qt.didRender(an)},So=()=>xn(tn()),Ql=()=>{var Ut;return(Ut=jt())===null||Ut===void 0?void 0:Ut.click()},Jl=()=>{var Ut;return(Ut=Dt())===null||Ut===void 0?void 0:Ut.click()},em=()=>{var Ut;return(Ut=Bt())===null||Ut===void 0?void 0:Ut.click()},fs=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),_l=Ut=>{Ut.keydownTarget&&Ut.keydownHandlerAdded&&(Ut.keydownTarget.removeEventListener("keydown",Ut.keydownHandler,{capture:Ut.keydownListenerCapture}),Ut.keydownHandlerAdded=!1)},eu=(Ut,qt,an)=>{_l(Ut),qt.toast||(Ut.keydownHandler=En=>tm(qt,En,an),Ut.keydownTarget=qt.keydownListenerCapture?window:tn(),Ut.keydownListenerCapture=qt.keydownListenerCapture,Ut.keydownTarget.addEventListener("keydown",Ut.keydownHandler,{capture:Ut.keydownListenerCapture}),Ut.keydownHandlerAdded=!0)},ns=(Ut,qt)=>{var an;const En=kn();if(En.length){Ut=Ut+qt,Ut===En.length?Ut=0:Ut===-1&&(Ut=En.length-1),En[Ut].focus();return}(an=tn())===null||an===void 0||an.focus()},tu=["ArrowRight","ArrowDown"],ju=["ArrowLeft","ArrowUp"],tm=(Ut,qt,an)=>{Ut&&(qt.isComposing||qt.keyCode===229||(Ut.stopKeydownPropagation&&qt.stopPropagation(),qt.key==="Enter"?Bu(qt,Ut):qt.key==="Tab"?Uu(qt):[...tu,...ju].includes(qt.key)?Hu(qt.key):qt.key==="Escape"&&zu(qt,Ut,an)))},Bu=(Ut,qt)=>{if(!It(qt.allowEnterKey))return;const an=Sn(tn(),qt.input);if(Ut.target&&an&&Ut.target instanceof HTMLElement&&Ut.target.outerHTML===an.outerHTML){if(["textarea","file"].includes(qt.input))return;Ql(),Ut.preventDefault()}},Uu=Ut=>{const qt=Ut.target,an=kn();let En=-1;for(let tr=0;tr<an.length;tr++)if(qt===an[tr]){En=tr;break}Ut.shiftKey?ns(En,-1):ns(En,1),Ut.stopPropagation(),Ut.preventDefault()},Hu=Ut=>{const qt=en(),an=jt(),En=Dt(),tr=Bt();if(!qt||!an||!En||!tr)return;const Cr=[an,En,tr];if(document.activeElement instanceof HTMLElement&&!Cr.includes(document.activeElement))return;const Xr=tu.includes(Ut)?"nextElementSibling":"previousElementSibling";let so=document.activeElement;if(so){for(let uo=0;uo<qt.children.length;uo++){if(so=so[Xr],!so)return;if(so instanceof HTMLButtonElement&&xn(so))break}so instanceof HTMLButtonElement&&so.focus()}},zu=(Ut,qt,an)=>{It(qt.allowEscapeKey)&&(Ut.preventDefault(),an(fs.esc))};var Hs={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const nm=()=>{Array.from(document.body.children).forEach(qt=>{qt===Vt()||qt.contains(Vt())||(qt.hasAttribute("aria-hidden")&&qt.setAttribute("data-previous-aria-hidden",qt.getAttribute("aria-hidden")||""),qt.setAttribute("aria-hidden","true"))})},Wu=()=>{Array.from(document.body.children).forEach(qt=>{qt.hasAttribute("data-previous-aria-hidden")?(qt.setAttribute("aria-hidden",qt.getAttribute("data-previous-aria-hidden")||""),qt.removeAttribute("data-previous-aria-hidden")):qt.removeAttribute("aria-hidden")})},nu=typeof window<"u"&&!!window.GestureEvent,rm=()=>{if(nu&&!Mn(document.body,Et.iosfix)){const Ut=document.body.scrollTop;document.body.style.top="".concat(Ut*-1,"px"),Pn(document.body,Et.iosfix),im()}},im=()=>{const Ut=Vt();if(!Ut)return;let qt;Ut.ontouchstart=an=>{qt=om(an)},Ut.ontouchmove=an=>{qt&&(an.preventDefault(),an.stopPropagation())}},om=Ut=>{const qt=Ut.target,an=Vt(),En=rn();return!an||!En||sm(Ut)||ru(Ut)?!1:qt===an||!_n(an)&&qt instanceof HTMLElement&&qt.tagName!=="INPUT"&&qt.tagName!=="TEXTAREA"&&!(_n(En)&&En.contains(qt))},sm=Ut=>Ut.touches&&Ut.touches.length&&Ut.touches[0].touchType==="stylus",ru=Ut=>Ut.touches&&Ut.touches.length>1,am=()=>{if(Mn(document.body,Et.iosfix)){const Ut=parseInt(document.body.style.top,10);Xn(document.body,Et.iosfix),document.body.style.top="",document.body.scrollTop=Ut*-1}},lm=()=>{const Ut=document.createElement("div");Ut.className=Et["scrollbar-measure"],document.body.appendChild(Ut);const qt=Ut.getBoundingClientRect().width-Ut.clientWidth;return document.body.removeChild(Ut),qt};let Cs=null;const um=Ut=>{Cs===null&&(document.body.scrollHeight>window.innerHeight||Ut==="scroll")&&(Cs=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(Cs+lm(),"px"))},cm=()=>{Cs!==null&&(document.body.style.paddingRight="".concat(Cs,"px"),Cs=null)};function ro(Ut,qt,an,En){Hn()?Gu(Ut,En):(yt(an).then(()=>Gu(Ut,En)),_l(vt)),nu?(qt.setAttribute("style","display:none !important"),qt.removeAttribute("class"),qt.innerHTML=""):qt.remove(),In()&&(cm(),am(),Wu()),io()}function io(){Xn([document.documentElement,document.body],[Et.shown,Et["height-auto"],Et["no-backdrop"],Et["toast-shown"]])}function rs(Ut){Ut=fm(Ut);const qt=Hs.swalPromiseResolve.get(this),an=dm(this);this.isAwaitingPromise?Ut.isDismissed||(zs(this),qt(Ut)):an&&qt(Ut)}const dm=Ut=>{const qt=tn();if(!qt)return!1;const an=Jn.innerParams.get(Ut);if(!an||Mn(qt,an.hideClass.popup))return!1;Xn(qt,an.showClass.popup),Pn(qt,an.hideClass.popup);const En=Vt();return Xn(En,an.showClass.backdrop),Pn(En,an.hideClass.backdrop),hm(Ut,qt,an),!0};function qu(Ut){const qt=Hs.swalPromiseReject.get(this);zs(this),qt&&qt(Ut)}const zs=Ut=>{Ut.isAwaitingPromise&&(delete Ut.isAwaitingPromise,Jn.innerParams.get(Ut)||Ut._destroy())},fm=Ut=>typeof Ut>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},Ut),hm=(Ut,qt,an)=>{const En=Vt(),tr=mr&&gn(qt);typeof an.willClose=="function"&&an.willClose(qt),tr?Vu(Ut,qt,En,an.returnFocus,an.didClose):ro(Ut,En,an.returnFocus,an.didClose)},Vu=(Ut,qt,an,En,tr)=>{mr&&(vt.swalCloseEventFinishedCallback=ro.bind(null,Ut,an,En,tr),qt.addEventListener(mr,function(Cr){Cr.target===qt&&(vt.swalCloseEventFinishedCallback(),delete vt.swalCloseEventFinishedCallback)}))},Gu=(Ut,qt)=>{setTimeout(()=>{typeof qt=="function"&&qt.bind(Ut.params)(),Ut._destroy&&Ut._destroy()})},co=Ut=>{let qt=tn();if(qt||new Ll,qt=tn(),!qt)return;const an=Kt();Hn()?or(ln()):iu(qt,Ut),pr(an),qt.setAttribute("data-loading","true"),qt.setAttribute("aria-busy","true"),qt.focus()},iu=(Ut,qt)=>{const an=en(),En=Kt();!an||!En||(!qt&&xn(jt())&&(qt=jt()),pr(an),qt&&(or(qt),En.setAttribute("data-button-to-replace",qt.className),an.insertBefore(En,qt)),Pn([Ut,an],Et.loading))},hs=(Ut,qt)=>{qt.input==="select"||qt.input==="radio"?Xu(Ut,qt):["text","email","number","tel","textarea"].some(an=>an===qt.input)&&(Ft(qt.inputValue)||Ht(qt.inputValue))&&(co(jt()),Zu(Ut,qt))},Ku=(Ut,qt)=>{const an=Ut.getInput();if(!an)return null;switch(qt.input){case"checkbox":return ou(an);case"radio":return Po(an);case"file":return Yu(an);default:return qt.inputAutoTrim?an.value.trim():an.value}},ou=Ut=>Ut.checked?1:0,Po=Ut=>Ut.checked?Ut.value:null,Yu=Ut=>Ut.files&&Ut.files.length?Ut.getAttribute("multiple")!==null?Ut.files:Ut.files[0]:null,Xu=(Ut,qt)=>{const an=tn();if(!an)return;const En=tr=>{qt.input==="select"?Qu(an,Ws(tr),qt):qt.input==="radio"&&Ju(an,Ws(tr),qt)};Ft(qt.inputOptions)||Ht(qt.inputOptions)?(co(jt()),Mt(qt.inputOptions).then(tr=>{Ut.hideLoading(),En(tr)})):typeof qt.inputOptions=="object"?En(qt.inputOptions):Tt("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof qt.inputOptions))},Zu=(Ut,qt)=>{const an=Ut.getInput();an&&(or(an),Mt(qt.inputValue).then(En=>{an.value=qt.input==="number"?"".concat(parseFloat(En)||0):"".concat(En),pr(an),an.focus(),Ut.hideLoading()}).catch(En=>{Tt("Error in inputValue promise: ".concat(En)),an.value="",pr(an),an.focus(),Ut.hideLoading()}))};function Qu(Ut,qt,an){const En=Qn(Ut,Et.select);if(!En)return;const tr=(Cr,Xr,so)=>{const uo=document.createElement("option");uo.value=so,wn(uo,Xr),uo.selected=wo(so,an.inputValue),Cr.appendChild(uo)};qt.forEach(Cr=>{const Xr=Cr[0],so=Cr[1];if(Array.isArray(so)){const uo=document.createElement("optgroup");uo.label=Xr,uo.disabled=!1,En.appendChild(uo),so.forEach(lo=>tr(uo,lo[1],lo[0]))}else tr(En,so,Xr)}),En.focus()}function Ju(Ut,qt,an){const En=Qn(Ut,Et.radio);if(!En)return;qt.forEach(Cr=>{const Xr=Cr[0],so=Cr[1],uo=document.createElement("input"),lo=document.createElement("label");uo.type="radio",uo.name=Et.radio,uo.value=Xr,wo(Xr,an.inputValue)&&(uo.checked=!0);const _o=document.createElement("span");wn(_o,so),_o.className=Et.label,lo.appendChild(uo),lo.appendChild(_o),En.appendChild(lo)});const tr=En.querySelectorAll("input");tr.length&&tr[0].focus()}const Ws=Ut=>{const qt=[];return Ut instanceof Map?Ut.forEach((an,En)=>{let tr=an;typeof tr=="object"&&(tr=Ws(tr)),qt.push([En,tr])}):Object.keys(Ut).forEach(an=>{let En=Ut[an];typeof En=="object"&&(En=Ws(En)),qt.push([an,En])}),qt},wo=(Ut,qt)=>!!qt&&qt.toString()===Ut.toString(),pm=Ut=>{const qt=Jn.innerParams.get(Ut);Ut.disableButtons(),qt.input?su(Ut,"confirm"):Wo(Ut,!0)},Ro=Ut=>{const qt=Jn.innerParams.get(Ut);Ut.disableButtons(),qt.returnInputValueOnDeny?su(Ut,"deny"):Os(Ut,!1)},mm=(Ut,qt)=>{Ut.disableButtons(),qt(fs.cancel)},su=(Ut,qt)=>{const an=Jn.innerParams.get(Ut);if(!an.input){Tt('The "input" parameter is needed to be set when using returnInputValueOn'.concat(Ot(qt)));return}const En=Ut.getInput(),tr=Ku(Ut,an);an.inputValidator?is(Ut,tr,qt):En&&!En.checkValidity()?(Ut.enableButtons(),Ut.showValidationMessage(an.validationMessage)):qt==="deny"?Os(Ut,tr):Wo(Ut,tr)},is=(Ut,qt,an)=>{const En=Jn.innerParams.get(Ut);Ut.disableInput(),Promise.resolve().then(()=>Mt(En.inputValidator(qt,En.validationMessage))).then(Cr=>{Ut.enableButtons(),Ut.enableInput(),Cr?Ut.showValidationMessage(Cr):an==="deny"?Os(Ut,qt):Wo(Ut,qt)})},Os=(Ut,qt)=>{const an=Jn.innerParams.get(Ut||void 0);an.showLoaderOnDeny&&co(Dt()),an.preDeny?(Ut.isAwaitingPromise=!0,Promise.resolve().then(()=>Mt(an.preDeny(qt,an.validationMessage))).then(tr=>{tr===!1?(Ut.hideLoading(),zs(Ut)):Ut.close({isDenied:!0,value:typeof tr>"u"?qt:tr})}).catch(tr=>oo(Ut||void 0,tr))):Ut.close({isDenied:!0,value:qt})},yl=(Ut,qt)=>{Ut.close({isConfirmed:!0,value:qt})},oo=(Ut,qt)=>{Ut.rejectPromise(qt)},Wo=(Ut,qt)=>{const an=Jn.innerParams.get(Ut||void 0);an.showLoaderOnConfirm&&co(),an.preConfirm?(Ut.resetValidationMessage(),Ut.isAwaitingPromise=!0,Promise.resolve().then(()=>Mt(an.preConfirm(qt,an.validationMessage))).then(tr=>{xn(Wt())||tr===!1?(Ut.hideLoading(),zs(Ut)):yl(Ut,typeof tr>"u"?qt:tr)}).catch(tr=>oo(Ut||void 0,tr))):yl(Ut,qt)};function $s(){const Ut=Jn.innerParams.get(this);if(!Ut)return;const qt=Jn.domCache.get(this);or(qt.loader),Hn()?Ut.icon&&pr(ln()):gm(qt),Xn([qt.popup,qt.actions],Et.loading),qt.popup.removeAttribute("aria-busy"),qt.popup.removeAttribute("data-loading"),qt.confirmButton.disabled=!1,qt.denyButton.disabled=!1,qt.cancelButton.disabled=!1}const gm=Ut=>{const qt=Ut.popup.getElementsByClassName(Ut.loader.getAttribute("data-button-to-replace"));qt.length?pr(qt[0],"inline-block"):Kn()&&or(Ut.actions)};function xl(){const Ut=Jn.innerParams.get(this),qt=Jn.domCache.get(this);return qt?Sn(qt.popup,Ut.input):null}function _c(Ut,qt,an){const En=Jn.domCache.get(Ut);qt.forEach(tr=>{En[tr].disabled=an})}function _d(Ut,qt){const an=tn();if(!(!an||!Ut))if(Ut.type==="radio"){const En=an.querySelectorAll('[name="'.concat(Et.radio,'"]'));for(let tr=0;tr<En.length;tr++)En[tr].disabled=qt}else Ut.disabled=qt}function _f(){_c(this,["confirmButton","denyButton","cancelButton"],!1)}function au(){_c(this,["confirmButton","denyButton","cancelButton"],!0)}function qs(){_d(this.getInput(),!1)}function ps(){_d(this.getInput(),!0)}function _h(Ut){const qt=Jn.domCache.get(this),an=Jn.innerParams.get(this);wn(qt.validationMessage,Ut),qt.validationMessage.className=Et["validation-message"],an.customClass&&an.customClass.validationMessage&&Pn(qt.validationMessage,an.customClass.validationMessage),pr(qt.validationMessage);const En=this.getInput();En&&(En.setAttribute("aria-invalid","true"),En.setAttribute("aria-describedby",Et["validation-message"]),On(En),Pn(En,Et.inputerror))}function lu(){const Ut=Jn.domCache.get(this);Ut.validationMessage&&or(Ut.validationMessage);const qt=this.getInput();qt&&(qt.removeAttribute("aria-invalid"),qt.removeAttribute("aria-describedby"),Xn(qt,Et.inputerror))}const ms={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},uu=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],cu={},ep=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],tp=Ut=>Object.prototype.hasOwnProperty.call(ms,Ut),El=Ut=>uu.indexOf(Ut)!==-1,Sl=Ut=>cu[Ut],_m=Ut=>{tp(Ut)||At('Unknown parameter "'.concat(Ut,'"'))},np=Ut=>{ep.includes(Ut)&&At('The parameter "'.concat(Ut,'" is incompatible with toasts'))},Ao=Ut=>{const qt=Sl(Ut);qt&&Rt(Ut,qt)},du=Ut=>{Ut.backdrop===!1&&Ut.allowOutsideClick&&At('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const qt in Ut)_m(qt),Ut.toast&&np(qt),Ao(qt)};function Ps(Ut){const qt=tn(),an=Jn.innerParams.get(this);if(!qt||Mn(qt,an.hideClass.popup)){At("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const En=rp(Ut),tr=Object.assign({},an,En);Fo(this,tr),Jn.innerParams.set(this,tr),Object.defineProperties(this,{params:{value:Object.assign({},this.params,Ut),writable:!1,enumerable:!0}})}const rp=Ut=>{const qt={};return Object.keys(Ut).forEach(an=>{El(an)?qt[an]=Ut[an]:At("Invalid parameter to update: ".concat(an))}),qt};function fu(){const Ut=Jn.domCache.get(this),qt=Jn.innerParams.get(this);if(!qt){ip(this);return}Ut.popup&&vt.swalCloseEventFinishedCallback&&(vt.swalCloseEventFinishedCallback(),delete vt.swalCloseEventFinishedCallback),typeof qt.didDestroy=="function"&&qt.didDestroy(),vm(this)}const vm=Ut=>{ip(Ut),delete Ut.params,delete vt.keydownHandler,delete vt.keydownTarget,delete vt.currentInstance},ip=Ut=>{Ut.isAwaitingPromise?(hu(Jn,Ut),Ut.isAwaitingPromise=!0):(hu(Hs,Ut),hu(Jn,Ut),delete Ut.isAwaitingPromise,delete Ut.disableButtons,delete Ut.enableButtons,delete Ut.getInput,delete Ut.disableInput,delete Ut.enableInput,delete Ut.hideLoading,delete Ut.disableLoading,delete Ut.showValidationMessage,delete Ut.resetValidationMessage,delete Ut.close,delete Ut.closePopup,delete Ut.closeModal,delete Ut.closeToast,delete Ut.rejectPromise,delete Ut.update,delete Ut._destroy)},hu=(Ut,qt)=>{for(const an in Ut)Ut[an].delete(qt)};var ym=Object.freeze({__proto__:null,_destroy:fu,close:rs,closeModal:rs,closePopup:rs,closeToast:rs,disableButtons:au,disableInput:ps,disableLoading:$s,enableButtons:_f,enableInput:qs,getInput:xl,handleAwaitingPromise:zs,hideLoading:$s,rejectPromise:qu,resetValidationMessage:lu,showValidationMessage:_h,update:Ps});const bm=(Ut,qt,an)=>{Ut.toast?Rs(Ut,qt,an):(pu(qt),op(qt),os(Ut,qt,an))},Rs=(Ut,qt,an)=>{qt.popup.onclick=()=>{Ut&&(xm(Ut)||Ut.timer||Ut.input)||an(fs.close)}},xm=Ut=>!!(Ut.showConfirmButton||Ut.showDenyButton||Ut.showCancelButton||Ut.showCloseButton);let Al=!1;const pu=Ut=>{Ut.popup.onmousedown=()=>{Ut.container.onmouseup=function(qt){Ut.container.onmouseup=()=>{},qt.target===Ut.container&&(Al=!0)}}},op=Ut=>{Ut.container.onmousedown=()=>{Ut.popup.onmouseup=function(qt){Ut.popup.onmouseup=()=>{},(qt.target===Ut.popup||qt.target instanceof HTMLElement&&Ut.popup.contains(qt.target))&&(Al=!0)}}},os=(Ut,qt,an)=>{qt.container.onclick=En=>{if(Al){Al=!1;return}En.target===qt.container&&It(Ut.allowOutsideClick)&&an(fs.backdrop)}},Tl=Ut=>typeof Ut=="object"&&Ut.jquery,sp=Ut=>Ut instanceof Element||Tl(Ut),wm=Ut=>{const qt={};return typeof Ut[0]=="object"&&!sp(Ut[0])?Object.assign(qt,Ut[0]):["title","html","icon"].forEach((an,En)=>{const tr=Ut[En];typeof tr=="string"||sp(tr)?qt[an]=tr:tr!==void 0&&Tt("Unexpected type of ".concat(an,'! Expected "string" or "Element", got ').concat(typeof tr))}),qt};function Em(){const Ut=this;for(var qt=arguments.length,an=new Array(qt),En=0;En<qt;En++)an[En]=arguments[En];return new Ut(...an)}function Ls(Ut){class qt extends this{_main(En,tr){return super._main(En,Object.assign({},Ut,tr))}}return qt}const jo=()=>vt.timeout&&vt.timeout.getTimerLeft(),mu=()=>{if(vt.timeout)return qn(),vt.timeout.stop()},ap=()=>{if(vt.timeout){const Ut=vt.timeout.start();return vn(Ut),Ut}},Sm=()=>{const Ut=vt.timeout;return Ut&&(Ut.running?mu():ap())},Am=Ut=>{if(vt.timeout){const qt=vt.timeout.increase(Ut);return vn(qt,!0),qt}},Tm=()=>!!(vt.timeout&&vt.timeout.isRunning());let lp=!1;const ss={};function zn(){let Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";ss[Ut]=this,lp||(document.body.addEventListener("click",ir),lp=!0)}const ir=Ut=>{for(let qt=Ut.target;qt&&qt!==document;qt=qt.parentNode)for(const an in ss){const En=qt.getAttribute(an);if(En){ss[an].fire({template:En});return}}};var Zn=Object.freeze({__proto__:null,argsToParams:wm,bindClickHandler:zn,clickCancel:em,clickConfirm:Ql,clickDeny:Jl,enableLoading:co,fire:Em,getActions:en,getCancelButton:Bt,getCloseButton:bn,getConfirmButton:jt,getContainer:Vt,getDenyButton:Dt,getFocusableElements:kn,getFooter:sn,getHtmlContainer:rn,getIcon:ln,getIconContent:nn,getImage:Jt,getInputLabel:zt,getLoader:Kt,getPopup:tn,getProgressSteps:Zt,getTimerLeft:jo,getTimerProgressBar:cn,getTitle:on,getValidationMessage:Wt,increaseTimer:Am,isDeprecatedParameter:Sl,isLoading:Fn,isTimerRunning:Tm,isUpdatableParameter:El,isValidParameter:tp,isVisible:So,mixin:Ls,resumeTimer:ap,showLoading:co,stopTimer:mu,toggleTimer:Sm});class Er{constructor(qt,an){this.callback=qt,this.remaining=an,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(qt){const an=this.running;return an&&this.stop(),this.remaining+=qt,an&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Fr=["swal-title","swal-html","swal-footer"],Jr=Ut=>{const qt=typeof Ut.template=="string"?document.querySelector(Ut.template):Ut.template;if(!qt)return{};const an=qt.content;return Is(an),Object.assign(po(an),no(an),gu(an),km(an),Lo(an),Cl(an),Cm(an,Fr))},po=Ut=>{const qt={};return Array.from(Ut.querySelectorAll("swal-param")).forEach(En=>{qo(En,["name","value"]);const tr=En.getAttribute("name"),Cr=En.getAttribute("value");typeof ms[tr]=="boolean"?qt[tr]=Cr!=="false":typeof ms[tr]=="object"?qt[tr]=JSON.parse(Cr):qt[tr]=Cr}),qt},no=Ut=>{const qt={};return Array.from(Ut.querySelectorAll("swal-function-param")).forEach(En=>{const tr=En.getAttribute("name"),Cr=En.getAttribute("value");qt[tr]=new Function("return ".concat(Cr))()}),qt},gu=Ut=>{const qt={};return Array.from(Ut.querySelectorAll("swal-button")).forEach(En=>{qo(En,["type","color","aria-label"]);const tr=En.getAttribute("type");qt["".concat(tr,"ButtonText")]=En.innerHTML,qt["show".concat(Ot(tr),"Button")]=!0,En.hasAttribute("color")&&(qt["".concat(tr,"ButtonColor")]=En.getAttribute("color")),En.hasAttribute("aria-label")&&(qt["".concat(tr,"ButtonAriaLabel")]=En.getAttribute("aria-label"))}),qt},km=Ut=>{const qt={},an=Ut.querySelector("swal-image");return an&&(qo(an,["src","width","height","alt"]),an.hasAttribute("src")&&(qt.imageUrl=an.getAttribute("src")),an.hasAttribute("width")&&(qt.imageWidth=an.getAttribute("width")),an.hasAttribute("height")&&(qt.imageHeight=an.getAttribute("height")),an.hasAttribute("alt")&&(qt.imageAlt=an.getAttribute("alt"))),qt},Lo=Ut=>{const qt={},an=Ut.querySelector("swal-icon");return an&&(qo(an,["type","color"]),an.hasAttribute("type")&&(qt.icon=an.getAttribute("type")),an.hasAttribute("color")&&(qt.iconColor=an.getAttribute("color")),qt.iconHtml=an.innerHTML),qt},Cl=Ut=>{const qt={},an=Ut.querySelector("swal-input");an&&(qo(an,["type","label","placeholder","value"]),qt.input=an.getAttribute("type")||"text",an.hasAttribute("label")&&(qt.inputLabel=an.getAttribute("label")),an.hasAttribute("placeholder")&&(qt.inputPlaceholder=an.getAttribute("placeholder")),an.hasAttribute("value")&&(qt.inputValue=an.getAttribute("value")));const En=Array.from(Ut.querySelectorAll("swal-input-option"));return En.length&&(qt.inputOptions={},En.forEach(tr=>{qo(tr,["value"]);const Cr=tr.getAttribute("value"),Xr=tr.innerHTML;qt.inputOptions[Cr]=Xr})),qt},Cm=(Ut,qt)=>{const an={};for(const En in qt){const tr=qt[En],Cr=Ut.querySelector(tr);Cr&&(qo(Cr,[]),an[tr.replace(/^swal-/,"")]=Cr.innerHTML.trim())}return an},Is=Ut=>{const qt=Fr.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(Ut.children).forEach(an=>{const En=an.tagName.toLowerCase();qt.includes(En)||At("Unrecognized element <".concat(En,">"))})},qo=(Ut,qt)=>{Array.from(Ut.attributes).forEach(an=>{qt.indexOf(an.name)===-1&&At(['Unrecognized attribute "'.concat(an.name,'" on <').concat(Ut.tagName.toLowerCase(),">."),"".concat(qt.length?"Allowed attributes are: ".concat(qt.join(", ")):"To set the value, use HTML within the element.")])})},Vs=10,eo=Ut=>{const qt=Vt(),an=tn();typeof Ut.willOpen=="function"&&Ut.willOpen(an);const tr=window.getComputedStyle(document.body).overflowY;Om(qt,an,Ut),setTimeout(()=>{cp(qt,an)},Vs),In()&&(Ol(qt,Ut.scrollbarPadding,tr),nm()),!Hn()&&!vt.previousActiveElement&&(vt.previousActiveElement=document.activeElement),typeof Ut.didOpen=="function"&&setTimeout(()=>Ut.didOpen(an)),Xn(qt,Et["no-transition"])},up=Ut=>{const qt=tn();if(Ut.target!==qt||!mr)return;const an=Vt();qt.removeEventListener(mr,up),an.style.overflowY="auto"},cp=(Ut,qt)=>{mr&&gn(qt)?(Ut.style.overflowY="hidden",qt.addEventListener(mr,up)):Ut.style.overflowY="auto"},Ol=(Ut,qt,an)=>{rm(),qt&&an!=="hidden"&&um(an),setTimeout(()=>{Ut.scrollTop=0})},Om=(Ut,qt,an)=>{Pn(Ut,an.showClass.backdrop),qt.style.setProperty("opacity","0","important"),pr(qt,"grid"),setTimeout(()=>{Pn(qt,an.showClass.popup),qt.style.removeProperty("opacity")},Vs),Pn([document.documentElement,document.body],Et.shown),an.heightAuto&&an.backdrop&&!an.toast&&Pn([document.documentElement,document.body],Et["height-auto"])};var dp={email:(Ut,qt)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(Ut)?Promise.resolve():Promise.resolve(qt||"Invalid email address"),url:(Ut,qt)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(Ut)?Promise.resolve():Promise.resolve(qt||"Invalid URL")};function $m(Ut){Ut.inputValidator||(Ut.input==="email"&&(Ut.inputValidator=dp.email),Ut.input==="url"&&(Ut.inputValidator=dp.url))}function $l(Ut){(!Ut.target||typeof Ut.target=="string"&&!document.querySelector(Ut.target)||typeof Ut.target!="string"&&!Ut.target.appendChild)&&(At('Target parameter is not valid, defaulting to "body"'),Ut.target="body")}function as(Ut){$m(Ut),Ut.showLoaderOnConfirm&&!Ut.preConfirm&&At(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),$l(Ut),typeof Ut.title=="string"&&(Ut.title=Ut.title.split(`
`).join("<br />")),yr(Ut)}let To;var Gs=new WeakMap;class ao{constructor(){if(pt(this,Gs,{writable:!0,value:void 0}),typeof window>"u")return;To=this;for(var qt=arguments.length,an=new Array(qt),En=0;En<qt;En++)an[En]=arguments[En];const tr=Object.freeze(this.constructor.argsToParams(an));this.params=tr,this.isAwaitingPromise=!1,ut(this,Gs,this._main(To.params))}_main(qt){let an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};du(Object.assign({},an,qt)),vt.currentInstance&&(vt.currentInstance._destroy(),In()&&Wu()),vt.currentInstance=To;const En=hp(qt,an);as(En),Object.freeze(En),vt.timeout&&(vt.timeout.stop(),delete vt.timeout),clearTimeout(vt.restoreFocusTimeout);const tr=Pl(To);return Fo(To,En),Jn.innerParams.set(To,En),fp(To,tr,En)}then(qt){return lt(this,Gs).then(qt)}finally(qt){return lt(this,Gs).finally(qt)}}const fp=(Ut,qt,an)=>new Promise((En,tr)=>{const Cr=Xr=>{Ut.close({isDismissed:!0,dismiss:Xr})};Hs.swalPromiseResolve.set(Ut,En),Hs.swalPromiseReject.set(Ut,tr),qt.confirmButton.onclick=()=>{pm(Ut)},qt.denyButton.onclick=()=>{Ro(Ut)},qt.cancelButton.onclick=()=>{mm(Ut,Cr)},qt.closeButton.onclick=()=>{Cr(fs.close)},bm(an,qt,Cr),eu(vt,an,Cr),hs(Ut,an),eo(an),pp(vt,an,Cr),Ks(qt,an),setTimeout(()=>{qt.container.scrollTop=0})}),hp=(Ut,qt)=>{const an=Jr(Ut),En=Object.assign({},ms,qt,an,Ut);return En.showClass=Object.assign({},ms.showClass,En.showClass),En.hideClass=Object.assign({},ms.hideClass,En.hideClass),En},Pl=Ut=>{const qt={popup:tn(),container:Vt(),actions:en(),confirmButton:jt(),denyButton:Dt(),cancelButton:Bt(),loader:Kt(),closeButton:bn(),validationMessage:Wt(),progressSteps:Zt()};return Jn.domCache.set(Ut,qt),qt},pp=(Ut,qt,an)=>{const En=cn();or(En),qt.timer&&(Ut.timeout=new Er(()=>{an("timer"),delete Ut.timeout},qt.timer),qt.timerProgressBar&&(pr(En),Un(En,qt,"timerProgressBar"),setTimeout(()=>{Ut.timeout&&Ut.timeout.running&&vn(qt.timer)})))},Ks=(Ut,qt)=>{if(!qt.toast){if(!It(qt.allowEnterKey)){Rl();return}gs(Ut,qt)||ns(-1,1)}},gs=(Ut,qt)=>qt.focusDeny&&xn(Ut.denyButton)?(Ut.denyButton.focus(),!0):qt.focusCancel&&xn(Ut.cancelButton)?(Ut.cancelButton.focus(),!0):qt.focusConfirm&&xn(Ut.confirmButton)?(Ut.confirmButton.focus(),!0):!1,Rl=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const Ut=new Date,qt=localStorage.getItem("swal-initiation");qt?(Ut.getTime()-Date.parse(qt))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const an=document.createElement("audio");an.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",an.loop=!0,document.body.appendChild(an),setTimeout(()=>{an.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation","".concat(Ut))}ao.prototype.disableButtons=au,ao.prototype.enableButtons=_f,ao.prototype.getInput=xl,ao.prototype.disableInput=ps,ao.prototype.enableInput=qs,ao.prototype.hideLoading=$s,ao.prototype.disableLoading=$s,ao.prototype.showValidationMessage=_h,ao.prototype.resetValidationMessage=lu,ao.prototype.close=rs,ao.prototype.closePopup=rs,ao.prototype.closeModal=rs,ao.prototype.closeToast=rs,ao.prototype.rejectPromise=qu,ao.prototype.update=Ps,ao.prototype._destroy=fu,Object.assign(ao,Zn),Object.keys(ym).forEach(Ut=>{ao[Ut]=function(){return To&&To[Ut]?To[Ut](...arguments):null}}),ao.DismissReason=fs,ao.version="11.7.32";const Ll=ao;return Ll.default=Ll,Ll}),typeof commonjsGlobal<"u"&&commonjsGlobal.Sweetalert2&&(commonjsGlobal.swal=commonjsGlobal.sweetAlert=commonjsGlobal.Swal=commonjsGlobal.SweetAlert=commonjsGlobal.Sweetalert2),typeof document<"u"&&function(lt,ut){var ct=lt.createElement("style");if(lt.getElementsByTagName("head")[0].appendChild(ct),ct.styleSheet)ct.styleSheet.disabled||(ct.styleSheet.cssText=ut);else try{ct.innerHTML=ut}catch{ct.innerText=ut}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-deny:focus{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:#facea8;color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:#9de0f6;color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:#c9dae1;color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}')})(sweetalert2_all);var sweetalert2_allExports=sweetalert2_all.exports;const Swal=getDefaultExportFromCjs(sweetalert2_allExports),consoleLogger={type:"logger",log(it){this.output("log",it)},warn(it){this.output("warn",it)},error(it){this.output("error",it)},output(it,at){console&&console[it]&&console[it].apply(console,at)}};class Logger{constructor(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(at,lt)}init(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=lt.prefix||"i18next:",this.logger=at||consoleLogger,this.options=lt,this.debug=lt.debug}log(){for(var at=arguments.length,lt=new Array(at),ut=0;ut<at;ut++)lt[ut]=arguments[ut];return this.forward(lt,"log","",!0)}warn(){for(var at=arguments.length,lt=new Array(at),ut=0;ut<at;ut++)lt[ut]=arguments[ut];return this.forward(lt,"warn","",!0)}error(){for(var at=arguments.length,lt=new Array(at),ut=0;ut<at;ut++)lt[ut]=arguments[ut];return this.forward(lt,"error","")}deprecate(){for(var at=arguments.length,lt=new Array(at),ut=0;ut<at;ut++)lt[ut]=arguments[ut];return this.forward(lt,"warn","WARNING DEPRECATED: ",!0)}forward(at,lt,ut,ct){return ct&&!this.debug?null:(typeof at[0]=="string"&&(at[0]=`${ut}${this.prefix} ${at[0]}`),this.logger[lt](at))}create(at){return new Logger(this.logger,{prefix:`${this.prefix}:${at}:`,...this.options})}clone(at){return at=at||this.options,at.prefix=at.prefix||this.prefix,new Logger(this.logger,at)}}var baseLogger=new Logger;class EventEmitter{constructor(){this.observers={}}on(at,lt){return at.split(" ").forEach(ut=>{this.observers[ut]=this.observers[ut]||[],this.observers[ut].push(lt)}),this}off(at,lt){if(this.observers[at]){if(!lt){delete this.observers[at];return}this.observers[at]=this.observers[at].filter(ut=>ut!==lt)}}emit(at){for(var lt=arguments.length,ut=new Array(lt>1?lt-1:0),ct=1;ct<lt;ct++)ut[ct-1]=arguments[ct];this.observers[at]&&[].concat(this.observers[at]).forEach(ft=>{ft(...ut)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(ft=>{ft.apply(ft,[at,...ut])})}}function defer(){let it,at;const lt=new Promise((ut,ct)=>{it=ut,at=ct});return lt.resolve=it,lt.reject=at,lt}function makeString(it){return it==null?"":""+it}function copy(it,at,lt){it.forEach(ut=>{at[ut]&&(lt[ut]=at[ut])})}function getLastOfPath(it,at,lt){function ut(ft){return ft&&ft.indexOf("###")>-1?ft.replace(/###/g,"."):ft}function ct(){return!it||typeof it=="string"}const dt=typeof at!="string"?[].concat(at):at.split(".");for(;dt.length>1;){if(ct())return{};const ft=ut(dt.shift());!it[ft]&&lt&&(it[ft]=new lt),Object.prototype.hasOwnProperty.call(it,ft)?it=it[ft]:it={}}return ct()?{}:{obj:it,k:ut(dt.shift())}}function setPath(it,at,lt){const{obj:ut,k:ct}=getLastOfPath(it,at,Object);ut[ct]=lt}function pushPath(it,at,lt,ut){const{obj:ct,k:dt}=getLastOfPath(it,at,Object);ct[dt]=ct[dt]||[],ut&&(ct[dt]=ct[dt].concat(lt)),ut||ct[dt].push(lt)}function getPath(it,at){const{obj:lt,k:ut}=getLastOfPath(it,at);if(lt)return lt[ut]}function getPathWithDefaults(it,at,lt){const ut=getPath(it,lt);return ut!==void 0?ut:getPath(at,lt)}function deepExtend(it,at,lt){for(const ut in at)ut!=="__proto__"&&ut!=="constructor"&&(ut in it?typeof it[ut]=="string"||it[ut]instanceof String||typeof at[ut]=="string"||at[ut]instanceof String?lt&&(it[ut]=at[ut]):deepExtend(it[ut],at[ut],lt):it[ut]=at[ut]);return it}function regexEscape(it){return it.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var _entityMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function escape$1(it){return typeof it=="string"?it.replace(/[&<>"'\/]/g,at=>_entityMap[at]):it}const chars=[" ",",","?","!",";"];function looksLikeObjectPath(it,at,lt){at=at||"",lt=lt||"";const ut=chars.filter(ft=>at.indexOf(ft)<0&&lt.indexOf(ft)<0);if(ut.length===0)return!0;const ct=new RegExp(`(${ut.map(ft=>ft==="?"?"\\?":ft).join("|")})`);let dt=!ct.test(it);if(!dt){const ft=it.indexOf(lt);ft>0&&!ct.test(it.substring(0,ft))&&(dt=!0)}return dt}function deepFind(it,at){let lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!it)return;if(it[at])return it[at];const ut=at.split(lt);let ct=it;for(let dt=0;dt<ut.length;++dt){if(!ct||typeof ct[ut[dt]]=="string"&&dt+1<ut.length)return;if(ct[ut[dt]]===void 0){let ft=2,mt=ut.slice(dt,dt+ft).join(lt),pt=ct[mt];for(;pt===void 0&&ut.length>dt+ft;)ft++,mt=ut.slice(dt,dt+ft).join(lt),pt=ct[mt];if(pt===void 0)return;if(pt===null)return null;if(at.endsWith(mt)){if(typeof pt=="string")return pt;if(mt&&typeof pt[mt]=="string")return pt[mt]}const gt=ut.slice(dt+ft).join(lt);return gt?deepFind(pt,gt,lt):void 0}ct=ct[ut[dt]]}return ct}function getCleanedCode(it){return it&&it.indexOf("_")>0?it.replace("_","-"):it}class ResourceStore extends EventEmitter{constructor(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=at||{},this.options=lt,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(at){this.options.ns.indexOf(at)<0&&this.options.ns.push(at)}removeNamespaces(at){const lt=this.options.ns.indexOf(at);lt>-1&&this.options.ns.splice(lt,1)}getResource(at,lt,ut){let ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const dt=ct.keySeparator!==void 0?ct.keySeparator:this.options.keySeparator,ft=ct.ignoreJSONStructure!==void 0?ct.ignoreJSONStructure:this.options.ignoreJSONStructure;let mt=[at,lt];ut&&typeof ut!="string"&&(mt=mt.concat(ut)),ut&&typeof ut=="string"&&(mt=mt.concat(dt?ut.split(dt):ut)),at.indexOf(".")>-1&&(mt=at.split("."));const pt=getPath(this.data,mt);return pt||!ft||typeof ut!="string"?pt:deepFind(this.data&&this.data[at]&&this.data[at][lt],ut,dt)}addResource(at,lt,ut,ct){let dt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const ft=dt.keySeparator!==void 0?dt.keySeparator:this.options.keySeparator;let mt=[at,lt];ut&&(mt=mt.concat(ft?ut.split(ft):ut)),at.indexOf(".")>-1&&(mt=at.split("."),ct=lt,lt=mt[1]),this.addNamespaces(lt),setPath(this.data,mt,ct),dt.silent||this.emit("added",at,lt,ut,ct)}addResources(at,lt,ut){let ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const dt in ut)(typeof ut[dt]=="string"||Object.prototype.toString.apply(ut[dt])==="[object Array]")&&this.addResource(at,lt,dt,ut[dt],{silent:!0});ct.silent||this.emit("added",at,lt,ut)}addResourceBundle(at,lt,ut,ct,dt){let ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},mt=[at,lt];at.indexOf(".")>-1&&(mt=at.split("."),ct=ut,ut=lt,lt=mt[1]),this.addNamespaces(lt);let pt=getPath(this.data,mt)||{};ct?deepExtend(pt,ut,dt):pt={...pt,...ut},setPath(this.data,mt,pt),ft.silent||this.emit("added",at,lt,ut)}removeResourceBundle(at,lt){this.hasResourceBundle(at,lt)&&delete this.data[at][lt],this.removeNamespaces(lt),this.emit("removed",at,lt)}hasResourceBundle(at,lt){return this.getResource(at,lt)!==void 0}getResourceBundle(at,lt){return lt||(lt=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(at,lt)}:this.getResource(at,lt)}getDataByLanguage(at){return this.data[at]}hasLanguageSomeTranslations(at){const lt=this.getDataByLanguage(at);return!!(lt&&Object.keys(lt)||[]).find(ct=>lt[ct]&&Object.keys(lt[ct]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(it){this.processors[it.name]=it},handle(it,at,lt,ut,ct){return it.forEach(dt=>{this.processors[dt]&&(at=this.processors[dt].process(at,lt,ut,ct))}),at}};const checkedLoadedFor={};class Translator extends EventEmitter{constructor(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],at,this),this.options=lt,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator")}changeLanguage(at){at&&(this.language=at)}exists(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(at==null)return!1;const ut=this.resolve(at,lt);return ut&&ut.res!==void 0}extractFromKey(at,lt){let ut=lt.nsSeparator!==void 0?lt.nsSeparator:this.options.nsSeparator;ut===void 0&&(ut=":");const ct=lt.keySeparator!==void 0?lt.keySeparator:this.options.keySeparator;let dt=lt.ns||this.options.defaultNS||[];const ft=ut&&at.indexOf(ut)>-1,mt=!this.options.userDefinedKeySeparator&&!lt.keySeparator&&!this.options.userDefinedNsSeparator&&!lt.nsSeparator&&!looksLikeObjectPath(at,ut,ct);if(ft&&!mt){const pt=at.match(this.interpolator.nestingRegexp);if(pt&&pt.length>0)return{key:at,namespaces:dt};const gt=at.split(ut);(ut!==ct||ut===ct&&this.options.ns.indexOf(gt[0])>-1)&&(dt=gt.shift()),at=gt.join(ct)}return typeof dt=="string"&&(dt=[dt]),{key:at,namespaces:dt}}translate(at,lt,ut){if(typeof lt!="object"&&this.options.overloadTranslationOptionHandler&&(lt=this.options.overloadTranslationOptionHandler(arguments)),typeof lt=="object"&&(lt={...lt}),lt||(lt={}),at==null)return"";Array.isArray(at)||(at=[String(at)]);const ct=lt.returnDetails!==void 0?lt.returnDetails:this.options.returnDetails,dt=lt.keySeparator!==void 0?lt.keySeparator:this.options.keySeparator,{key:ft,namespaces:mt}=this.extractFromKey(at[at.length-1],lt),pt=mt[mt.length-1],gt=lt.lng||this.language,vt=lt.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(gt&&gt.toLowerCase()==="cimode"){if(vt){const At=lt.nsSeparator||this.options.nsSeparator;return ct?{res:`${pt}${At}${ft}`,usedKey:ft,exactUsedKey:ft,usedLng:gt,usedNS:pt}:`${pt}${At}${ft}`}return ct?{res:ft,usedKey:ft,exactUsedKey:ft,usedLng:gt,usedNS:pt}:ft}const wt=this.resolve(at,lt);let yt=wt&&wt.res;const bt=wt&&wt.usedKey||ft,Ct=wt&&wt.exactUsedKey||ft,Et=Object.prototype.toString.apply(yt),kt=["[object Number]","[object Function]","[object RegExp]"],xt=lt.joinArrays!==void 0?lt.joinArrays:this.options.joinArrays,St=!this.i18nFormat||this.i18nFormat.handleAsObject;if(St&&yt&&(typeof yt!="string"&&typeof yt!="boolean"&&typeof yt!="number")&&kt.indexOf(Et)<0&&!(typeof xt=="string"&&Et==="[object Array]")){if(!lt.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const At=this.options.returnedObjectHandler?this.options.returnedObjectHandler(bt,yt,{...lt,ns:mt}):`key '${ft} (${this.language})' returned an object instead of string.`;return ct?(wt.res=At,wt):At}if(dt){const At=Et==="[object Array]",Tt=At?[]:{},$t=At?Ct:bt;for(const Lt in yt)if(Object.prototype.hasOwnProperty.call(yt,Lt)){const Rt=`${$t}${dt}${Lt}`;Tt[Lt]=this.translate(Rt,{...lt,joinArrays:!1,ns:mt}),Tt[Lt]===Rt&&(Tt[Lt]=yt[Lt])}yt=Tt}}else if(St&&typeof xt=="string"&&Et==="[object Array]")yt=yt.join(xt),yt&&(yt=this.extendTranslation(yt,at,lt,ut));else{let At=!1,Tt=!1;const $t=lt.count!==void 0&&typeof lt.count!="string",Lt=Translator.hasDefaultValue(lt),Rt=$t?this.pluralResolver.getSuffix(gt,lt.count,lt):"",It=lt.ordinal&&$t?this.pluralResolver.getSuffix(gt,lt.count,{ordinal:!1}):"",Ft=lt[`defaultValue${Rt}`]||lt[`defaultValue${It}`]||lt.defaultValue;!this.isValidLookup(yt)&&Lt&&(At=!0,yt=Ft),this.isValidLookup(yt)||(Tt=!0,yt=ft);const Ht=(lt.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Tt?void 0:yt,Vt=Lt&&Ft!==yt&&this.options.updateMissing;if(Tt||At||Vt){if(this.logger.log(Vt?"updateKey":"missingKey",gt,pt,ft,Vt?Ft:yt),dt){const ln=this.resolve(ft,{...lt,keySeparator:!1});ln&&ln.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Nt=[];const Gt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,lt.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Gt&&Gt[0])for(let ln=0;ln<Gt.length;ln++)Nt.push(Gt[ln]);else this.options.saveMissingTo==="all"?Nt=this.languageUtils.toResolveHierarchy(lt.lng||this.language):Nt.push(lt.lng||this.language);const tn=(ln,nn,on)=>{const rn=Lt&&on!==yt?on:Ht;this.options.missingKeyHandler?this.options.missingKeyHandler(ln,pt,nn,rn,Vt,lt):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(ln,pt,nn,rn,Vt,lt),this.emit("missingKey",ln,pt,nn,yt)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$t?Nt.forEach(ln=>{this.pluralResolver.getSuffixes(ln,lt).forEach(nn=>{tn([ln],ft+nn,lt[`defaultValue${nn}`]||Ft)})}):tn(Nt,ft,Ft))}yt=this.extendTranslation(yt,at,lt,wt,ut),Tt&&yt===ft&&this.options.appendNamespaceToMissingKey&&(yt=`${pt}:${ft}`),(Tt||At)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?yt=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${pt}:${ft}`:ft,At?yt:void 0):yt=this.options.parseMissingKeyHandler(yt))}return ct?(wt.res=yt,wt):yt}extendTranslation(at,lt,ut,ct,dt){var ft=this;if(this.i18nFormat&&this.i18nFormat.parse)at=this.i18nFormat.parse(at,{...this.options.interpolation.defaultVariables,...ut},ut.lng||this.language||ct.usedLng,ct.usedNS,ct.usedKey,{resolved:ct});else if(!ut.skipInterpolation){ut.interpolation&&this.interpolator.init({...ut,interpolation:{...this.options.interpolation,...ut.interpolation}});const gt=typeof at=="string"&&(ut&&ut.interpolation&&ut.interpolation.skipOnVariables!==void 0?ut.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let vt;if(gt){const yt=at.match(this.interpolator.nestingRegexp);vt=yt&&yt.length}let wt=ut.replace&&typeof ut.replace!="string"?ut.replace:ut;if(this.options.interpolation.defaultVariables&&(wt={...this.options.interpolation.defaultVariables,...wt}),at=this.interpolator.interpolate(at,wt,ut.lng||this.language,ut),gt){const yt=at.match(this.interpolator.nestingRegexp),bt=yt&&yt.length;vt<bt&&(ut.nest=!1)}!ut.lng&&this.options.compatibilityAPI!=="v1"&&ct&&ct.res&&(ut.lng=ct.usedLng),ut.nest!==!1&&(at=this.interpolator.nest(at,function(){for(var yt=arguments.length,bt=new Array(yt),Ct=0;Ct<yt;Ct++)bt[Ct]=arguments[Ct];return dt&&dt[0]===bt[0]&&!ut.context?(ft.logger.warn(`It seems you are nesting recursively key: ${bt[0]} in key: ${lt[0]}`),null):ft.translate(...bt,lt)},ut)),ut.interpolation&&this.interpolator.reset()}const mt=ut.postProcess||this.options.postProcess,pt=typeof mt=="string"?[mt]:mt;return at!=null&&pt&&pt.length&&ut.applyPostProcessor!==!1&&(at=postProcessor.handle(pt,at,lt,this.options&&this.options.postProcessPassResolved?{i18nResolved:ct,...ut}:ut,this)),at}resolve(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ut,ct,dt,ft,mt;return typeof at=="string"&&(at=[at]),at.forEach(pt=>{if(this.isValidLookup(ut))return;const gt=this.extractFromKey(pt,lt),vt=gt.key;ct=vt;let wt=gt.namespaces;this.options.fallbackNS&&(wt=wt.concat(this.options.fallbackNS));const yt=lt.count!==void 0&&typeof lt.count!="string",bt=yt&&!lt.ordinal&&lt.count===0&&this.pluralResolver.shouldUseIntlApi(),Ct=lt.context!==void 0&&(typeof lt.context=="string"||typeof lt.context=="number")&&lt.context!=="",Et=lt.lngs?lt.lngs:this.languageUtils.toResolveHierarchy(lt.lng||this.language,lt.fallbackLng);wt.forEach(kt=>{this.isValidLookup(ut)||(mt=kt,!checkedLoadedFor[`${Et[0]}-${kt}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(mt)&&(checkedLoadedFor[`${Et[0]}-${kt}`]=!0,this.logger.warn(`key "${ct}" for languages "${Et.join(", ")}" won't get resolved as namespace "${mt}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),Et.forEach(xt=>{if(this.isValidLookup(ut))return;ft=xt;const St=[vt];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(St,vt,xt,kt,lt);else{let At;yt&&(At=this.pluralResolver.getSuffix(xt,lt.count,lt));const Tt=`${this.options.pluralSeparator}zero`,$t=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(yt&&(St.push(vt+At),lt.ordinal&&At.indexOf($t)===0&&St.push(vt+At.replace($t,this.options.pluralSeparator)),bt&&St.push(vt+Tt)),Ct){const Lt=`${vt}${this.options.contextSeparator}${lt.context}`;St.push(Lt),yt&&(St.push(Lt+At),lt.ordinal&&At.indexOf($t)===0&&St.push(Lt+At.replace($t,this.options.pluralSeparator)),bt&&St.push(Lt+Tt))}}let Ot;for(;Ot=St.pop();)this.isValidLookup(ut)||(dt=Ot,ut=this.getResource(xt,kt,Ot,lt))}))})}),{res:ut,usedKey:ct,exactUsedKey:dt,usedLng:ft,usedNS:mt}}isValidLookup(at){return at!==void 0&&!(!this.options.returnNull&&at===null)&&!(!this.options.returnEmptyString&&at==="")}getResource(at,lt,ut){let ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(at,lt,ut,ct):this.resourceStore.getResource(at,lt,ut,ct)}static hasDefaultValue(at){const lt="defaultValue";for(const ut in at)if(Object.prototype.hasOwnProperty.call(at,ut)&&lt===ut.substring(0,lt.length)&&at[ut]!==void 0)return!0;return!1}}function capitalize(it){return it.charAt(0).toUpperCase()+it.slice(1)}class LanguageUtil{constructor(at){this.options=at,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils")}getScriptPartFromCode(at){if(at=getCleanedCode(at),!at||at.indexOf("-")<0)return null;const lt=at.split("-");return lt.length===2||(lt.pop(),lt[lt.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(lt.join("-"))}getLanguagePartFromCode(at){if(at=getCleanedCode(at),!at||at.indexOf("-")<0)return at;const lt=at.split("-");return this.formatLanguageCode(lt[0])}formatLanguageCode(at){if(typeof at=="string"&&at.indexOf("-")>-1){const lt=["hans","hant","latn","cyrl","cans","mong","arab"];let ut=at.split("-");return this.options.lowerCaseLng?ut=ut.map(ct=>ct.toLowerCase()):ut.length===2?(ut[0]=ut[0].toLowerCase(),ut[1]=ut[1].toUpperCase(),lt.indexOf(ut[1].toLowerCase())>-1&&(ut[1]=capitalize(ut[1].toLowerCase()))):ut.length===3&&(ut[0]=ut[0].toLowerCase(),ut[1].length===2&&(ut[1]=ut[1].toUpperCase()),ut[0]!=="sgn"&&ut[2].length===2&&(ut[2]=ut[2].toUpperCase()),lt.indexOf(ut[1].toLowerCase())>-1&&(ut[1]=capitalize(ut[1].toLowerCase())),lt.indexOf(ut[2].toLowerCase())>-1&&(ut[2]=capitalize(ut[2].toLowerCase()))),ut.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?at.toLowerCase():at}isSupportedCode(at){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(at=this.getLanguagePartFromCode(at)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(at)>-1}getBestMatchFromCodes(at){if(!at)return null;let lt;return at.forEach(ut=>{if(lt)return;const ct=this.formatLanguageCode(ut);(!this.options.supportedLngs||this.isSupportedCode(ct))&&(lt=ct)}),!lt&&this.options.supportedLngs&&at.forEach(ut=>{if(lt)return;const ct=this.getLanguagePartFromCode(ut);if(this.isSupportedCode(ct))return lt=ct;lt=this.options.supportedLngs.find(dt=>{if(dt===ct)return dt;if(!(dt.indexOf("-")<0&&ct.indexOf("-")<0)&&dt.indexOf(ct)===0)return dt})}),lt||(lt=this.getFallbackCodes(this.options.fallbackLng)[0]),lt}getFallbackCodes(at,lt){if(!at)return[];if(typeof at=="function"&&(at=at(lt)),typeof at=="string"&&(at=[at]),Object.prototype.toString.apply(at)==="[object Array]")return at;if(!lt)return at.default||[];let ut=at[lt];return ut||(ut=at[this.getScriptPartFromCode(lt)]),ut||(ut=at[this.formatLanguageCode(lt)]),ut||(ut=at[this.getLanguagePartFromCode(lt)]),ut||(ut=at.default),ut||[]}toResolveHierarchy(at,lt){const ut=this.getFallbackCodes(lt||this.options.fallbackLng||[],at),ct=[],dt=ft=>{ft&&(this.isSupportedCode(ft)?ct.push(ft):this.logger.warn(`rejecting language code not found in supportedLngs: ${ft}`))};return typeof at=="string"&&(at.indexOf("-")>-1||at.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&dt(this.formatLanguageCode(at)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&dt(this.getScriptPartFromCode(at)),this.options.load!=="currentOnly"&&dt(this.getLanguagePartFromCode(at))):typeof at=="string"&&dt(this.formatLanguageCode(at)),ut.forEach(ft=>{ct.indexOf(ft)<0&&dt(this.formatLanguageCode(ft))}),ct}}let sets=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],_rulesPluralsTypes={1:function(it){return+(it>1)},2:function(it){return+(it!=1)},3:function(it){return 0},4:function(it){return it%10==1&&it%100!=11?0:it%10>=2&&it%10<=4&&(it%100<10||it%100>=20)?1:2},5:function(it){return it==0?0:it==1?1:it==2?2:it%100>=3&&it%100<=10?3:it%100>=11?4:5},6:function(it){return it==1?0:it>=2&&it<=4?1:2},7:function(it){return it==1?0:it%10>=2&&it%10<=4&&(it%100<10||it%100>=20)?1:2},8:function(it){return it==1?0:it==2?1:it!=8&&it!=11?2:3},9:function(it){return+(it>=2)},10:function(it){return it==1?0:it==2?1:it<7?2:it<11?3:4},11:function(it){return it==1||it==11?0:it==2||it==12?1:it>2&&it<20?2:3},12:function(it){return+(it%10!=1||it%100==11)},13:function(it){return+(it!==0)},14:function(it){return it==1?0:it==2?1:it==3?2:3},15:function(it){return it%10==1&&it%100!=11?0:it%10>=2&&(it%100<10||it%100>=20)?1:2},16:function(it){return it%10==1&&it%100!=11?0:it!==0?1:2},17:function(it){return it==1||it%10==1&&it%100!=11?0:1},18:function(it){return it==0?0:it==1?1:2},19:function(it){return it==1?0:it==0||it%100>1&&it%100<11?1:it%100>10&&it%100<20?2:3},20:function(it){return it==1?0:it==0||it%100>0&&it%100<20?1:2},21:function(it){return it%100==1?1:it%100==2?2:it%100==3||it%100==4?3:0},22:function(it){return it==1?0:it==2?1:(it<0||it>10)&&it%10==0?2:3}};const nonIntlVersions=["v1","v2","v3"],intlVersions=["v4"],suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5};function createRules(){const it={};return sets.forEach(at=>{at.lngs.forEach(lt=>{it[lt]={numbers:at.nr,plurals:_rulesPluralsTypes[at.fc]}})}),it}class PluralResolver{constructor(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=at,this.options=lt,this.logger=baseLogger.create("pluralResolver"),(!this.options.compatibilityJSON||intlVersions.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=createRules()}addRule(at,lt){this.rules[at]=lt}getRule(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(getCleanedCode(at),{type:lt.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[at]||this.rules[this.languageUtils.getLanguagePartFromCode(at)]}needsPlural(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ut=this.getRule(at,lt);return this.shouldUseIntlApi()?ut&&ut.resolvedOptions().pluralCategories.length>1:ut&&ut.numbers.length>1}getPluralFormsOfKey(at,lt){let ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(at,ut).map(ct=>`${lt}${ct}`)}getSuffixes(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const ut=this.getRule(at,lt);return ut?this.shouldUseIntlApi()?ut.resolvedOptions().pluralCategories.sort((ct,dt)=>suffixesOrder[ct]-suffixesOrder[dt]).map(ct=>`${this.options.prepend}${lt.ordinal?`ordinal${this.options.prepend}`:""}${ct}`):ut.numbers.map(ct=>this.getSuffix(at,ct,lt)):[]}getSuffix(at,lt){let ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const ct=this.getRule(at,ut);return ct?this.shouldUseIntlApi()?`${this.options.prepend}${ut.ordinal?`ordinal${this.options.prepend}`:""}${ct.select(lt)}`:this.getSuffixRetroCompatible(ct,lt):(this.logger.warn(`no plural rule found for: ${at}`),"")}getSuffixRetroCompatible(at,lt){const ut=at.noAbs?at.plurals(lt):at.plurals(Math.abs(lt));let ct=at.numbers[ut];this.options.simplifyPluralSuffix&&at.numbers.length===2&&at.numbers[0]===1&&(ct===2?ct="plural":ct===1&&(ct=""));const dt=()=>this.options.prepend&&ct.toString()?this.options.prepend+ct.toString():ct.toString();return this.options.compatibilityJSON==="v1"?ct===1?"":typeof ct=="number"?`_plural_${ct.toString()}`:dt():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&at.numbers.length===2&&at.numbers[0]===1?dt():this.options.prepend&&ut.toString()?this.options.prepend+ut.toString():ut.toString()}shouldUseIntlApi(){return!nonIntlVersions.includes(this.options.compatibilityJSON)}}function deepFindWithDefaults(it,at,lt){let ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",ct=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,dt=getPathWithDefaults(it,at,lt);return!dt&&ct&&typeof lt=="string"&&(dt=deepFind(it,lt,ut),dt===void 0&&(dt=deepFind(at,lt,ut))),dt}class Interpolator{constructor(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("interpolator"),this.options=at,this.format=at.interpolation&&at.interpolation.format||(lt=>lt),this.init(at)}init(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};at.interpolation||(at.interpolation={escapeValue:!0});const lt=at.interpolation;this.escape=lt.escape!==void 0?lt.escape:escape$1,this.escapeValue=lt.escapeValue!==void 0?lt.escapeValue:!0,this.useRawValueToEscape=lt.useRawValueToEscape!==void 0?lt.useRawValueToEscape:!1,this.prefix=lt.prefix?regexEscape(lt.prefix):lt.prefixEscaped||"{{",this.suffix=lt.suffix?regexEscape(lt.suffix):lt.suffixEscaped||"}}",this.formatSeparator=lt.formatSeparator?lt.formatSeparator:lt.formatSeparator||",",this.unescapePrefix=lt.unescapeSuffix?"":lt.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":lt.unescapeSuffix||"",this.nestingPrefix=lt.nestingPrefix?regexEscape(lt.nestingPrefix):lt.nestingPrefixEscaped||regexEscape("$t("),this.nestingSuffix=lt.nestingSuffix?regexEscape(lt.nestingSuffix):lt.nestingSuffixEscaped||regexEscape(")"),this.nestingOptionsSeparator=lt.nestingOptionsSeparator?lt.nestingOptionsSeparator:lt.nestingOptionsSeparator||",",this.maxReplaces=lt.maxReplaces?lt.maxReplaces:1e3,this.alwaysFormat=lt.alwaysFormat!==void 0?lt.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const at=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(at,"g");const lt=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(lt,"g");const ut=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(ut,"g")}interpolate(at,lt,ut,ct){let dt,ft,mt;const pt=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function gt(Ct){return Ct.replace(/\$/g,"$$$$")}const vt=Ct=>{if(Ct.indexOf(this.formatSeparator)<0){const St=deepFindWithDefaults(lt,pt,Ct,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(St,void 0,ut,{...ct,...lt,interpolationkey:Ct}):St}const Et=Ct.split(this.formatSeparator),kt=Et.shift().trim(),xt=Et.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(lt,pt,kt,this.options.keySeparator,this.options.ignoreJSONStructure),xt,ut,{...ct,...lt,interpolationkey:kt})};this.resetRegExp();const wt=ct&&ct.missingInterpolationHandler||this.options.missingInterpolationHandler,yt=ct&&ct.interpolation&&ct.interpolation.skipOnVariables!==void 0?ct.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:Ct=>gt(Ct)},{regex:this.regexp,safeValue:Ct=>this.escapeValue?gt(this.escape(Ct)):gt(Ct)}].forEach(Ct=>{for(mt=0;dt=Ct.regex.exec(at);){const Et=dt[1].trim();if(ft=vt(Et),ft===void 0)if(typeof wt=="function"){const xt=wt(at,dt,ct);ft=typeof xt=="string"?xt:""}else if(ct&&Object.prototype.hasOwnProperty.call(ct,Et))ft="";else if(yt){ft=dt[0];continue}else this.logger.warn(`missed to pass in variable ${Et} for interpolating ${at}`),ft="";else typeof ft!="string"&&!this.useRawValueToEscape&&(ft=makeString(ft));const kt=Ct.safeValue(ft);if(at=at.replace(dt[0],kt),yt?(Ct.regex.lastIndex+=ft.length,Ct.regex.lastIndex-=dt[0].length):Ct.regex.lastIndex=0,mt++,mt>=this.maxReplaces)break}}),at}nest(at,lt){let ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ct,dt,ft;function mt(pt,gt){const vt=this.nestingOptionsSeparator;if(pt.indexOf(vt)<0)return pt;const wt=pt.split(new RegExp(`${vt}[ ]*{`));let yt=`{${wt[1]}`;pt=wt[0],yt=this.interpolate(yt,ft);const bt=yt.match(/'/g),Ct=yt.match(/"/g);(bt&&bt.length%2===0&&!Ct||Ct.length%2!==0)&&(yt=yt.replace(/'/g,'"'));try{ft=JSON.parse(yt),gt&&(ft={...gt,...ft})}catch(Et){return this.logger.warn(`failed parsing options string in nesting for key ${pt}`,Et),`${pt}${vt}${yt}`}return delete ft.defaultValue,pt}for(;ct=this.nestingRegexp.exec(at);){let pt=[];ft={...ut},ft=ft.replace&&typeof ft.replace!="string"?ft.replace:ft,ft.applyPostProcessor=!1,delete ft.defaultValue;let gt=!1;if(ct[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(ct[1])){const vt=ct[1].split(this.formatSeparator).map(wt=>wt.trim());ct[1]=vt.shift(),pt=vt,gt=!0}if(dt=lt(mt.call(this,ct[1].trim(),ft),ft),dt&&ct[0]===at&&typeof dt!="string")return dt;typeof dt!="string"&&(dt=makeString(dt)),dt||(this.logger.warn(`missed to resolve ${ct[1]} for nesting ${at}`),dt=""),gt&&(dt=pt.reduce((vt,wt)=>this.format(vt,wt,ut.lng,{...ut,interpolationkey:ct[1].trim()}),dt.trim())),at=at.replace(ct[0],dt),this.regexp.lastIndex=0}return at}}function parseFormatStr(it){let at=it.toLowerCase().trim();const lt={};if(it.indexOf("(")>-1){const ut=it.split("(");at=ut[0].toLowerCase().trim();const ct=ut[1].substring(0,ut[1].length-1);at==="currency"&&ct.indexOf(":")<0?lt.currency||(lt.currency=ct.trim()):at==="relativetime"&&ct.indexOf(":")<0?lt.range||(lt.range=ct.trim()):ct.split(";").forEach(ft=>{if(!ft)return;const[mt,...pt]=ft.split(":"),gt=pt.join(":").trim().replace(/^'+|'+$/g,"");lt[mt.trim()]||(lt[mt.trim()]=gt),gt==="false"&&(lt[mt.trim()]=!1),gt==="true"&&(lt[mt.trim()]=!0),isNaN(gt)||(lt[mt.trim()]=parseInt(gt,10))})}return{formatName:at,formatOptions:lt}}function createCachedFormatter(it){const at={};return function(ut,ct,dt){const ft=ct+JSON.stringify(dt);let mt=at[ft];return mt||(mt=it(getCleanedCode(ct),dt),at[ft]=mt),mt(ut)}}class Formatter{constructor(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=baseLogger.create("formatter"),this.options=at,this.formats={number:createCachedFormatter((lt,ut)=>{const ct=new Intl.NumberFormat(lt,{...ut});return dt=>ct.format(dt)}),currency:createCachedFormatter((lt,ut)=>{const ct=new Intl.NumberFormat(lt,{...ut,style:"currency"});return dt=>ct.format(dt)}),datetime:createCachedFormatter((lt,ut)=>{const ct=new Intl.DateTimeFormat(lt,{...ut});return dt=>ct.format(dt)}),relativetime:createCachedFormatter((lt,ut)=>{const ct=new Intl.RelativeTimeFormat(lt,{...ut});return dt=>ct.format(dt,ut.range||"day")}),list:createCachedFormatter((lt,ut)=>{const ct=new Intl.ListFormat(lt,{...ut});return dt=>ct.format(dt)})},this.init(at)}init(at){const ut=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=ut.formatSeparator?ut.formatSeparator:ut.formatSeparator||","}add(at,lt){this.formats[at.toLowerCase().trim()]=lt}addCached(at,lt){this.formats[at.toLowerCase().trim()]=createCachedFormatter(lt)}format(at,lt,ut){let ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return lt.split(this.formatSeparator).reduce((mt,pt)=>{const{formatName:gt,formatOptions:vt}=parseFormatStr(pt);if(this.formats[gt]){let wt=mt;try{const yt=ct&&ct.formatParams&&ct.formatParams[ct.interpolationkey]||{},bt=yt.locale||yt.lng||ct.locale||ct.lng||ut;wt=this.formats[gt](mt,bt,{...vt,...ct,...yt})}catch(yt){this.logger.warn(yt)}return wt}else this.logger.warn(`there was no format function for ${gt}`);return mt},at)}}function removePending(it,at){it.pending[at]!==void 0&&(delete it.pending[at],it.pendingCount--)}class Connector extends EventEmitter{constructor(at,lt,ut){let ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=at,this.store=lt,this.services=ut,this.languageUtils=ut.languageUtils,this.options=ct,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=ct.maxParallelReads||10,this.readingCalls=0,this.maxRetries=ct.maxRetries>=0?ct.maxRetries:5,this.retryTimeout=ct.retryTimeout>=1?ct.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(ut,ct.backend,ct)}queueLoad(at,lt,ut,ct){const dt={},ft={},mt={},pt={};return at.forEach(gt=>{let vt=!0;lt.forEach(wt=>{const yt=`${gt}|${wt}`;!ut.reload&&this.store.hasResourceBundle(gt,wt)?this.state[yt]=2:this.state[yt]<0||(this.state[yt]===1?ft[yt]===void 0&&(ft[yt]=!0):(this.state[yt]=1,vt=!1,ft[yt]===void 0&&(ft[yt]=!0),dt[yt]===void 0&&(dt[yt]=!0),pt[wt]===void 0&&(pt[wt]=!0)))}),vt||(mt[gt]=!0)}),(Object.keys(dt).length||Object.keys(ft).length)&&this.queue.push({pending:ft,pendingCount:Object.keys(ft).length,loaded:{},errors:[],callback:ct}),{toLoad:Object.keys(dt),pending:Object.keys(ft),toLoadLanguages:Object.keys(mt),toLoadNamespaces:Object.keys(pt)}}loaded(at,lt,ut){const ct=at.split("|"),dt=ct[0],ft=ct[1];lt&&this.emit("failedLoading",dt,ft,lt),ut&&this.store.addResourceBundle(dt,ft,ut),this.state[at]=lt?-1:2;const mt={};this.queue.forEach(pt=>{pushPath(pt.loaded,[dt],ft),removePending(pt,at),lt&&pt.errors.push(lt),pt.pendingCount===0&&!pt.done&&(Object.keys(pt.loaded).forEach(gt=>{mt[gt]||(mt[gt]={});const vt=pt.loaded[gt];vt.length&&vt.forEach(wt=>{mt[gt][wt]===void 0&&(mt[gt][wt]=!0)})}),pt.done=!0,pt.errors.length?pt.callback(pt.errors):pt.callback())}),this.emit("loaded",mt),this.queue=this.queue.filter(pt=>!pt.done)}read(at,lt,ut){let ct=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,dt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,ft=arguments.length>5?arguments[5]:void 0;if(!at.length)return ft(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:at,ns:lt,fcName:ut,tried:ct,wait:dt,callback:ft});return}this.readingCalls++;const mt=(gt,vt)=>{if(this.readingCalls--,this.waitingReads.length>0){const wt=this.waitingReads.shift();this.read(wt.lng,wt.ns,wt.fcName,wt.tried,wt.wait,wt.callback)}if(gt&&vt&&ct<this.maxRetries){setTimeout(()=>{this.read.call(this,at,lt,ut,ct+1,dt*2,ft)},dt);return}ft(gt,vt)},pt=this.backend[ut].bind(this.backend);if(pt.length===2){try{const gt=pt(at,lt);gt&&typeof gt.then=="function"?gt.then(vt=>mt(null,vt)).catch(mt):mt(null,gt)}catch(gt){mt(gt)}return}return pt(at,lt,mt)}prepareLoading(at,lt){let ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ct=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),ct&&ct();typeof at=="string"&&(at=this.languageUtils.toResolveHierarchy(at)),typeof lt=="string"&&(lt=[lt]);const dt=this.queueLoad(at,lt,ut,ct);if(!dt.toLoad.length)return dt.pending.length||ct(),null;dt.toLoad.forEach(ft=>{this.loadOne(ft)})}load(at,lt,ut){this.prepareLoading(at,lt,{},ut)}reload(at,lt,ut){this.prepareLoading(at,lt,{reload:!0},ut)}loadOne(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const ut=at.split("|"),ct=ut[0],dt=ut[1];this.read(ct,dt,"read",void 0,void 0,(ft,mt)=>{ft&&this.logger.warn(`${lt}loading namespace ${dt} for language ${ct} failed`,ft),!ft&&mt&&this.logger.log(`${lt}loaded namespace ${dt} for language ${ct}`,mt),this.loaded(at,ft,mt)})}saveMissing(at,lt,ut,ct,dt){let ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},mt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(lt)){this.logger.warn(`did not save key "${ut}" as the namespace "${lt}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(ut==null||ut==="")){if(this.backend&&this.backend.create){const pt={...ft,isUpdate:dt},gt=this.backend.create.bind(this.backend);if(gt.length<6)try{let vt;gt.length===5?vt=gt(at,lt,ut,ct,pt):vt=gt(at,lt,ut,ct),vt&&typeof vt.then=="function"?vt.then(wt=>mt(null,wt)).catch(mt):mt(null,vt)}catch(vt){mt(vt)}else gt(at,lt,ut,ct,mt,pt)}!at||!at[0]||this.store.addResource(at[0],lt,ut,ct)}}}function get(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(at){let lt={};if(typeof at[1]=="object"&&(lt=at[1]),typeof at[1]=="string"&&(lt.defaultValue=at[1]),typeof at[2]=="string"&&(lt.tDescription=at[2]),typeof at[2]=="object"||typeof at[3]=="object"){const ut=at[3]||at[2];Object.keys(ut).forEach(ct=>{lt[ct]=ut[ct]})}return lt},interpolation:{escapeValue:!0,format:(it,at,lt,ut)=>it,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function transformOptions(it){return typeof it.ns=="string"&&(it.ns=[it.ns]),typeof it.fallbackLng=="string"&&(it.fallbackLng=[it.fallbackLng]),typeof it.fallbackNS=="string"&&(it.fallbackNS=[it.fallbackNS]),it.supportedLngs&&it.supportedLngs.indexOf("cimode")<0&&(it.supportedLngs=it.supportedLngs.concat(["cimode"])),it}function noop(){}function bindMemberFunctions(it){Object.getOwnPropertyNames(Object.getPrototypeOf(it)).forEach(lt=>{typeof it[lt]=="function"&&(it[lt]=it[lt].bind(it))})}class I18n extends EventEmitter{constructor(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},lt=arguments.length>1?arguments[1]:void 0;if(super(),this.options=transformOptions(at),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),lt&&!this.isInitialized&&!at.isClone){if(!this.options.initImmediate)return this.init(at,lt),this;setTimeout(()=>{this.init(at,lt)},0)}}init(){var at=this;let lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ut=arguments.length>1?arguments[1]:void 0;typeof lt=="function"&&(ut=lt,lt={}),!lt.defaultNS&&lt.defaultNS!==!1&&lt.ns&&(typeof lt.ns=="string"?lt.defaultNS=lt.ns:lt.ns.indexOf("translation")<0&&(lt.defaultNS=lt.ns[0]));const ct=get();this.options={...ct,...this.options,...transformOptions(lt)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...ct.interpolation,...this.options.interpolation}),lt.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=lt.keySeparator),lt.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=lt.nsSeparator);function dt(vt){return vt?typeof vt=="function"?new vt:vt:null}if(!this.options.isClone){this.modules.logger?baseLogger.init(dt(this.modules.logger),this.options):baseLogger.init(null,this.options);let vt;this.modules.formatter?vt=this.modules.formatter:typeof Intl<"u"&&(vt=Formatter);const wt=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const yt=this.services;yt.logger=baseLogger,yt.resourceStore=this.store,yt.languageUtils=wt,yt.pluralResolver=new PluralResolver(wt,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),vt&&(!this.options.interpolation.format||this.options.interpolation.format===ct.interpolation.format)&&(yt.formatter=dt(vt),yt.formatter.init(yt,this.options),this.options.interpolation.format=yt.formatter.format.bind(yt.formatter)),yt.interpolator=new Interpolator(this.options),yt.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},yt.backendConnector=new Connector(dt(this.modules.backend),yt.resourceStore,yt,this.options),yt.backendConnector.on("*",function(bt){for(var Ct=arguments.length,Et=new Array(Ct>1?Ct-1:0),kt=1;kt<Ct;kt++)Et[kt-1]=arguments[kt];at.emit(bt,...Et)}),this.modules.languageDetector&&(yt.languageDetector=dt(this.modules.languageDetector),yt.languageDetector.init&&yt.languageDetector.init(yt,this.options.detection,this.options)),this.modules.i18nFormat&&(yt.i18nFormat=dt(this.modules.i18nFormat),yt.i18nFormat.init&&yt.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",function(bt){for(var Ct=arguments.length,Et=new Array(Ct>1?Ct-1:0),kt=1;kt<Ct;kt++)Et[kt-1]=arguments[kt];at.emit(bt,...Et)}),this.modules.external.forEach(bt=>{bt.init&&bt.init(this)})}if(this.format=this.options.interpolation.format,ut||(ut=noop),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const vt=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);vt.length>0&&vt[0]!=="dev"&&(this.options.lng=vt[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(vt=>{this[vt]=function(){return at.store[vt](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(vt=>{this[vt]=function(){return at.store[vt](...arguments),at}});const pt=defer(),gt=()=>{const vt=(wt,yt)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),pt.resolve(yt),ut(wt,yt)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return vt(null,this.t.bind(this));this.changeLanguage(this.options.lng,vt)};return this.options.resources||!this.options.initImmediate?gt():setTimeout(gt,0),pt}loadResources(at){let ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const ct=typeof at=="string"?at:this.language;if(typeof at=="function"&&(ut=at),!this.options.resources||this.options.partialBundledLanguages){if(ct&&ct.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return ut();const dt=[],ft=mt=>{if(!mt||mt==="cimode")return;this.services.languageUtils.toResolveHierarchy(mt).forEach(gt=>{gt!=="cimode"&&dt.indexOf(gt)<0&&dt.push(gt)})};ct?ft(ct):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(pt=>ft(pt)),this.options.preload&&this.options.preload.forEach(mt=>ft(mt)),this.services.backendConnector.load(dt,this.options.ns,mt=>{!mt&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),ut(mt)})}else ut(null)}reloadResources(at,lt,ut){const ct=defer();return at||(at=this.languages),lt||(lt=this.options.ns),ut||(ut=noop),this.services.backendConnector.reload(at,lt,dt=>{ct.resolve(),ut(dt)}),ct}use(at){if(!at)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!at.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return at.type==="backend"&&(this.modules.backend=at),(at.type==="logger"||at.log&&at.warn&&at.error)&&(this.modules.logger=at),at.type==="languageDetector"&&(this.modules.languageDetector=at),at.type==="i18nFormat"&&(this.modules.i18nFormat=at),at.type==="postProcessor"&&postProcessor.addPostProcessor(at),at.type==="formatter"&&(this.modules.formatter=at),at.type==="3rdParty"&&this.modules.external.push(at),this}setResolvedLanguage(at){if(!(!at||!this.languages)&&!(["cimode","dev"].indexOf(at)>-1))for(let lt=0;lt<this.languages.length;lt++){const ut=this.languages[lt];if(!(["cimode","dev"].indexOf(ut)>-1)&&this.store.hasLanguageSomeTranslations(ut)){this.resolvedLanguage=ut;break}}}changeLanguage(at,lt){var ut=this;this.isLanguageChangingTo=at;const ct=defer();this.emit("languageChanging",at);const dt=pt=>{this.language=pt,this.languages=this.services.languageUtils.toResolveHierarchy(pt),this.resolvedLanguage=void 0,this.setResolvedLanguage(pt)},ft=(pt,gt)=>{gt?(dt(gt),this.translator.changeLanguage(gt),this.isLanguageChangingTo=void 0,this.emit("languageChanged",gt),this.logger.log("languageChanged",gt)):this.isLanguageChangingTo=void 0,ct.resolve(function(){return ut.t(...arguments)}),lt&&lt(pt,function(){return ut.t(...arguments)})},mt=pt=>{!at&&!pt&&this.services.languageDetector&&(pt=[]);const gt=typeof pt=="string"?pt:this.services.languageUtils.getBestMatchFromCodes(pt);gt&&(this.language||dt(gt),this.translator.language||this.translator.changeLanguage(gt),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(gt)),this.loadResources(gt,vt=>{ft(vt,gt)})};return!at&&this.services.languageDetector&&!this.services.languageDetector.async?mt(this.services.languageDetector.detect()):!at&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(mt):this.services.languageDetector.detect(mt):mt(at),ct}getFixedT(at,lt,ut){var ct=this;const dt=function(ft,mt){let pt;if(typeof mt!="object"){for(var gt=arguments.length,vt=new Array(gt>2?gt-2:0),wt=2;wt<gt;wt++)vt[wt-2]=arguments[wt];pt=ct.options.overloadTranslationOptionHandler([ft,mt].concat(vt))}else pt={...mt};pt.lng=pt.lng||dt.lng,pt.lngs=pt.lngs||dt.lngs,pt.ns=pt.ns||dt.ns,pt.keyPrefix=pt.keyPrefix||ut||dt.keyPrefix;const yt=ct.options.keySeparator||".";let bt;return pt.keyPrefix&&Array.isArray(ft)?bt=ft.map(Ct=>`${pt.keyPrefix}${yt}${Ct}`):bt=pt.keyPrefix?`${pt.keyPrefix}${yt}${ft}`:ft,ct.t(bt,pt)};return typeof at=="string"?dt.lng=at:dt.lngs=at,dt.ns=lt,dt.keyPrefix=ut,dt}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(at){this.options.defaultNS=at}hasLoadedNamespace(at){let lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const ut=lt.lng||this.resolvedLanguage||this.languages[0],ct=this.options?this.options.fallbackLng:!1,dt=this.languages[this.languages.length-1];if(ut.toLowerCase()==="cimode")return!0;const ft=(mt,pt)=>{const gt=this.services.backendConnector.state[`${mt}|${pt}`];return gt===-1||gt===2};if(lt.precheck){const mt=lt.precheck(this,ft);if(mt!==void 0)return mt}return!!(this.hasResourceBundle(ut,at)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||ft(ut,at)&&(!ct||ft(dt,at)))}loadNamespaces(at,lt){const ut=defer();return this.options.ns?(typeof at=="string"&&(at=[at]),at.forEach(ct=>{this.options.ns.indexOf(ct)<0&&this.options.ns.push(ct)}),this.loadResources(ct=>{ut.resolve(),lt&&lt(ct)}),ut):(lt&&lt(),Promise.resolve())}loadLanguages(at,lt){const ut=defer();typeof at=="string"&&(at=[at]);const ct=this.options.preload||[],dt=at.filter(ft=>ct.indexOf(ft)<0);return dt.length?(this.options.preload=ct.concat(dt),this.loadResources(ft=>{ut.resolve(),lt&&lt(ft)}),ut):(lt&&lt(),Promise.resolve())}dir(at){if(at||(at=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!at)return"rtl";const lt=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],ut=this.services&&this.services.languageUtils||new LanguageUtil(get());return lt.indexOf(ut.getLanguagePartFromCode(at))>-1||at.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},lt=arguments.length>1?arguments[1]:void 0;return new I18n(at,lt)}cloneInstance(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:noop;const ut=at.forkResourceStore;ut&&delete at.forkResourceStore;const ct={...this.options,...at,isClone:!0},dt=new I18n(ct);return(at.debug!==void 0||at.prefix!==void 0)&&(dt.logger=dt.logger.clone(at)),["store","services","language"].forEach(mt=>{dt[mt]=this[mt]}),dt.services={...this.services},dt.services.utils={hasLoadedNamespace:dt.hasLoadedNamespace.bind(dt)},ut&&(dt.store=new ResourceStore(this.store.data,ct),dt.services.resourceStore=dt.store),dt.translator=new Translator(dt.services,ct),dt.translator.on("*",function(mt){for(var pt=arguments.length,gt=new Array(pt>1?pt-1:0),vt=1;vt<pt;vt++)gt[vt-1]=arguments[vt];dt.emit(mt,...gt)}),dt.init(ct,lt),dt.translator.options=ct,dt.translator.backendConnector.services.utils={hasLoadedNamespace:dt.hasLoadedNamespace.bind(dt)},dt}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const instance=I18n.createInstance();instance.createInstance=I18n.createInstance;instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;function _typeof$2(it){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(at){return typeof at}:function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at},_typeof$2(it)}var arr$1=[],each$1=arr$1.forEach,slice$1=arr$1.slice;function defaults$1(it){return each$1.call(slice$1.call(arguments,1),function(at){if(at)for(var lt in at)it[lt]===void 0&&(it[lt]=at[lt])}),it}function hasXMLHttpRequest(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":_typeof$2(XMLHttpRequest))==="object"}function isPromise(it){return!!it&&typeof it.then=="function"}function makePromise(it){return isPromise(it)?it:Promise.resolve(it)}var getFetch$1={exports:{}},browserPonyfill={exports:{}},hasRequiredBrowserPonyfill;function requireBrowserPonyfill(){return hasRequiredBrowserPonyfill||(hasRequiredBrowserPonyfill=1,function(it,at){var lt=typeof self<"u"?self:commonjsGlobal,ut=function(){function dt(){this.fetch=!1,this.DOMException=lt.DOMException}return dt.prototype=lt,new dt}();(function(dt){(function(ft){var mt={searchParams:"URLSearchParams"in dt,iterable:"Symbol"in dt&&"iterator"in Symbol,blob:"FileReader"in dt&&"Blob"in dt&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in dt,arrayBuffer:"ArrayBuffer"in dt};function pt(Nt){return Nt&&DataView.prototype.isPrototypeOf(Nt)}if(mt.arrayBuffer)var gt=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],vt=ArrayBuffer.isView||function(Nt){return Nt&&gt.indexOf(Object.prototype.toString.call(Nt))>-1};function wt(Nt){if(typeof Nt!="string"&&(Nt=String(Nt)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(Nt))throw new TypeError("Invalid character in header field name");return Nt.toLowerCase()}function yt(Nt){return typeof Nt!="string"&&(Nt=String(Nt)),Nt}function bt(Nt){var Gt={next:function(){var tn=Nt.shift();return{done:tn===void 0,value:tn}}};return mt.iterable&&(Gt[Symbol.iterator]=function(){return Gt}),Gt}function Ct(Nt){this.map={},Nt instanceof Ct?Nt.forEach(function(Gt,tn){this.append(tn,Gt)},this):Array.isArray(Nt)?Nt.forEach(function(Gt){this.append(Gt[0],Gt[1])},this):Nt&&Object.getOwnPropertyNames(Nt).forEach(function(Gt){this.append(Gt,Nt[Gt])},this)}Ct.prototype.append=function(Nt,Gt){Nt=wt(Nt),Gt=yt(Gt);var tn=this.map[Nt];this.map[Nt]=tn?tn+", "+Gt:Gt},Ct.prototype.delete=function(Nt){delete this.map[wt(Nt)]},Ct.prototype.get=function(Nt){return Nt=wt(Nt),this.has(Nt)?this.map[Nt]:null},Ct.prototype.has=function(Nt){return this.map.hasOwnProperty(wt(Nt))},Ct.prototype.set=function(Nt,Gt){this.map[wt(Nt)]=yt(Gt)},Ct.prototype.forEach=function(Nt,Gt){for(var tn in this.map)this.map.hasOwnProperty(tn)&&Nt.call(Gt,this.map[tn],tn,this)},Ct.prototype.keys=function(){var Nt=[];return this.forEach(function(Gt,tn){Nt.push(tn)}),bt(Nt)},Ct.prototype.values=function(){var Nt=[];return this.forEach(function(Gt){Nt.push(Gt)}),bt(Nt)},Ct.prototype.entries=function(){var Nt=[];return this.forEach(function(Gt,tn){Nt.push([tn,Gt])}),bt(Nt)},mt.iterable&&(Ct.prototype[Symbol.iterator]=Ct.prototype.entries);function Et(Nt){if(Nt.bodyUsed)return Promise.reject(new TypeError("Already read"));Nt.bodyUsed=!0}function kt(Nt){return new Promise(function(Gt,tn){Nt.onload=function(){Gt(Nt.result)},Nt.onerror=function(){tn(Nt.error)}})}function xt(Nt){var Gt=new FileReader,tn=kt(Gt);return Gt.readAsArrayBuffer(Nt),tn}function St(Nt){var Gt=new FileReader,tn=kt(Gt);return Gt.readAsText(Nt),tn}function Ot(Nt){for(var Gt=new Uint8Array(Nt),tn=new Array(Gt.length),ln=0;ln<Gt.length;ln++)tn[ln]=String.fromCharCode(Gt[ln]);return tn.join("")}function At(Nt){if(Nt.slice)return Nt.slice(0);var Gt=new Uint8Array(Nt.byteLength);return Gt.set(new Uint8Array(Nt)),Gt.buffer}function Tt(){return this.bodyUsed=!1,this._initBody=function(Nt){this._bodyInit=Nt,Nt?typeof Nt=="string"?this._bodyText=Nt:mt.blob&&Blob.prototype.isPrototypeOf(Nt)?this._bodyBlob=Nt:mt.formData&&FormData.prototype.isPrototypeOf(Nt)?this._bodyFormData=Nt:mt.searchParams&&URLSearchParams.prototype.isPrototypeOf(Nt)?this._bodyText=Nt.toString():mt.arrayBuffer&&mt.blob&&pt(Nt)?(this._bodyArrayBuffer=At(Nt.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):mt.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(Nt)||vt(Nt))?this._bodyArrayBuffer=At(Nt):this._bodyText=Nt=Object.prototype.toString.call(Nt):this._bodyText="",this.headers.get("content-type")||(typeof Nt=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):mt.searchParams&&URLSearchParams.prototype.isPrototypeOf(Nt)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},mt.blob&&(this.blob=function(){var Nt=Et(this);if(Nt)return Nt;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?Et(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(xt)}),this.text=function(){var Nt=Et(this);if(Nt)return Nt;if(this._bodyBlob)return St(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Ot(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},mt.formData&&(this.formData=function(){return this.text().then(It)}),this.json=function(){return this.text().then(JSON.parse)},this}var $t=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Lt(Nt){var Gt=Nt.toUpperCase();return $t.indexOf(Gt)>-1?Gt:Nt}function Rt(Nt,Gt){Gt=Gt||{};var tn=Gt.body;if(Nt instanceof Rt){if(Nt.bodyUsed)throw new TypeError("Already read");this.url=Nt.url,this.credentials=Nt.credentials,Gt.headers||(this.headers=new Ct(Nt.headers)),this.method=Nt.method,this.mode=Nt.mode,this.signal=Nt.signal,!tn&&Nt._bodyInit!=null&&(tn=Nt._bodyInit,Nt.bodyUsed=!0)}else this.url=String(Nt);if(this.credentials=Gt.credentials||this.credentials||"same-origin",(Gt.headers||!this.headers)&&(this.headers=new Ct(Gt.headers)),this.method=Lt(Gt.method||this.method||"GET"),this.mode=Gt.mode||this.mode||null,this.signal=Gt.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&tn)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(tn)}Rt.prototype.clone=function(){return new Rt(this,{body:this._bodyInit})};function It(Nt){var Gt=new FormData;return Nt.trim().split("&").forEach(function(tn){if(tn){var ln=tn.split("="),nn=ln.shift().replace(/\+/g," "),on=ln.join("=").replace(/\+/g," ");Gt.append(decodeURIComponent(nn),decodeURIComponent(on))}}),Gt}function Ft(Nt){var Gt=new Ct,tn=Nt.replace(/\r?\n[\t ]+/g," ");return tn.split(/\r?\n/).forEach(function(ln){var nn=ln.split(":"),on=nn.shift().trim();if(on){var rn=nn.join(":").trim();Gt.append(on,rn)}}),Gt}Tt.call(Rt.prototype);function Mt(Nt,Gt){Gt||(Gt={}),this.type="default",this.status=Gt.status===void 0?200:Gt.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in Gt?Gt.statusText:"OK",this.headers=new Ct(Gt.headers),this.url=Gt.url||"",this._initBody(Nt)}Tt.call(Mt.prototype),Mt.prototype.clone=function(){return new Mt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Ct(this.headers),url:this.url})},Mt.error=function(){var Nt=new Mt(null,{status:0,statusText:""});return Nt.type="error",Nt};var Ht=[301,302,303,307,308];Mt.redirect=function(Nt,Gt){if(Ht.indexOf(Gt)===-1)throw new RangeError("Invalid status code");return new Mt(null,{status:Gt,headers:{location:Nt}})},ft.DOMException=dt.DOMException;try{new ft.DOMException}catch{ft.DOMException=function(Gt,tn){this.message=Gt,this.name=tn;var ln=Error(Gt);this.stack=ln.stack},ft.DOMException.prototype=Object.create(Error.prototype),ft.DOMException.prototype.constructor=ft.DOMException}function Vt(Nt,Gt){return new Promise(function(tn,ln){var nn=new Rt(Nt,Gt);if(nn.signal&&nn.signal.aborted)return ln(new ft.DOMException("Aborted","AbortError"));var on=new XMLHttpRequest;function rn(){on.abort()}on.onload=function(){var Jt={status:on.status,statusText:on.statusText,headers:Ft(on.getAllResponseHeaders()||"")};Jt.url="responseURL"in on?on.responseURL:Jt.headers.get("X-Request-URL");var Zt="response"in on?on.response:on.responseText;tn(new Mt(Zt,Jt))},on.onerror=function(){ln(new TypeError("Network request failed"))},on.ontimeout=function(){ln(new TypeError("Network request failed"))},on.onabort=function(){ln(new ft.DOMException("Aborted","AbortError"))},on.open(nn.method,nn.url,!0),nn.credentials==="include"?on.withCredentials=!0:nn.credentials==="omit"&&(on.withCredentials=!1),"responseType"in on&&mt.blob&&(on.responseType="blob"),nn.headers.forEach(function(Jt,Zt){on.setRequestHeader(Zt,Jt)}),nn.signal&&(nn.signal.addEventListener("abort",rn),on.onreadystatechange=function(){on.readyState===4&&nn.signal.removeEventListener("abort",rn)}),on.send(typeof nn._bodyInit>"u"?null:nn._bodyInit)})}return Vt.polyfill=!0,dt.fetch||(dt.fetch=Vt,dt.Headers=Ct,dt.Request=Rt,dt.Response=Mt),ft.Headers=Ct,ft.Request=Rt,ft.Response=Mt,ft.fetch=Vt,Object.defineProperty(ft,"__esModule",{value:!0}),ft})({})})(ut),ut.fetch.ponyfill=!0,delete ut.fetch.polyfill;var ct=ut;at=ct.fetch,at.default=ct.fetch,at.fetch=ct.fetch,at.Headers=ct.Headers,at.Request=ct.Request,at.Response=ct.Response,it.exports=at}(browserPonyfill,browserPonyfill.exports)),browserPonyfill.exports}(function(it,at){var lt;if(typeof fetch=="function"&&(typeof commonjsGlobal<"u"&&commonjsGlobal.fetch?lt=commonjsGlobal.fetch:typeof window<"u"&&window.fetch?lt=window.fetch:lt=fetch),typeof commonjsRequire<"u"&&(typeof window>"u"||typeof window.document>"u")){var ut=lt||requireBrowserPonyfill();ut.default&&(ut=ut.default),at.default=ut,it.exports=at.default}})(getFetch$1,getFetch$1.exports);var getFetchExports=getFetch$1.exports;const getFetch=getDefaultExportFromCjs(getFetchExports),fetchNode=_mergeNamespaces({__proto__:null,default:getFetch},[getFetchExports]);function _typeof$1(it){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(at){return typeof at}:function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at},_typeof$1(it)}var fetchApi;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?fetchApi=global.fetch:typeof window<"u"&&window.fetch?fetchApi=window.fetch:fetchApi=fetch);var XmlHttpRequestApi;hasXMLHttpRequest()&&(typeof global<"u"&&global.XMLHttpRequest?XmlHttpRequestApi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(XmlHttpRequestApi=window.XMLHttpRequest));var ActiveXObjectApi;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ActiveXObjectApi=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ActiveXObjectApi=window.ActiveXObject));!fetchApi&&fetchNode&&!XmlHttpRequestApi&&!ActiveXObjectApi&&(fetchApi=getFetch||fetchNode);typeof fetchApi!="function"&&(fetchApi=void 0);var addQueryString=function it(at,lt){if(lt&&_typeof$1(lt)==="object"){var ut="";for(var ct in lt)ut+="&"+encodeURIComponent(ct)+"="+encodeURIComponent(lt[ct]);if(!ut)return at;at=at+(at.indexOf("?")!==-1?"&":"?")+ut.slice(1)}return at},fetchIt=function it(at,lt,ut){fetchApi(at,lt).then(function(ct){if(!ct.ok)return ut(ct.statusText||"Error",{status:ct.status});ct.text().then(function(dt){ut(null,{status:ct.status,data:dt})}).catch(ut)}).catch(ut)},omitFetchOptions=!1,requestWithFetch=function it(at,lt,ut,ct){at.queryStringParams&&(lt=addQueryString(lt,at.queryStringParams));var dt=defaults$1({},typeof at.customHeaders=="function"?at.customHeaders():at.customHeaders);ut&&(dt["Content-Type"]="application/json");var ft=typeof at.requestOptions=="function"?at.requestOptions(ut):at.requestOptions,mt=defaults$1({method:ut?"POST":"GET",body:ut?at.stringify(ut):void 0,headers:dt},omitFetchOptions?{}:ft);try{fetchIt(lt,mt,ct)}catch(pt){if(!ft||Object.keys(ft).length===0||!pt.message||pt.message.indexOf("not implemented")<0)return ct(pt);try{Object.keys(ft).forEach(function(gt){delete mt[gt]}),fetchIt(lt,mt,ct),omitFetchOptions=!0}catch(gt){ct(gt)}}},requestWithXmlHttpRequest=function it(at,lt,ut,ct){ut&&_typeof$1(ut)==="object"&&(ut=addQueryString("",ut).slice(1)),at.queryStringParams&&(lt=addQueryString(lt,at.queryStringParams));try{var dt;XmlHttpRequestApi?dt=new XmlHttpRequestApi:dt=new ActiveXObjectApi("MSXML2.XMLHTTP.3.0"),dt.open(ut?"POST":"GET",lt,1),at.crossDomain||dt.setRequestHeader("X-Requested-With","XMLHttpRequest"),dt.withCredentials=!!at.withCredentials,ut&&dt.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),dt.overrideMimeType&&dt.overrideMimeType("application/json");var ft=at.customHeaders;if(ft=typeof ft=="function"?ft():ft,ft)for(var mt in ft)dt.setRequestHeader(mt,ft[mt]);dt.onreadystatechange=function(){dt.readyState>3&&ct(dt.status>=400?dt.statusText:null,{status:dt.status,data:dt.responseText})},dt.send(ut)}catch(pt){console&&console.log(pt)}},request=function it(at,lt,ut,ct){if(typeof ut=="function"&&(ct=ut,ut=void 0),ct=ct||function(){},fetchApi&&lt.indexOf("file:")!==0)return requestWithFetch(at,lt,ut,ct);if(hasXMLHttpRequest()||typeof ActiveXObject=="function")return requestWithXmlHttpRequest(at,lt,ut,ct);ct(new Error("No fetch and no xhr implementation found!"))};function _typeof(it){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(at){return typeof at}:function(at){return at&&typeof Symbol=="function"&&at.constructor===Symbol&&at!==Symbol.prototype?"symbol":typeof at},_typeof(it)}function _classCallCheck(it,at){if(!(it instanceof at))throw new TypeError("Cannot call a class as a function")}function _defineProperties(it,at){for(var lt=0;lt<at.length;lt++){var ut=at[lt];ut.enumerable=ut.enumerable||!1,ut.configurable=!0,"value"in ut&&(ut.writable=!0),Object.defineProperty(it,_toPropertyKey(ut.key),ut)}}function _createClass(it,at,lt){return at&&_defineProperties(it.prototype,at),lt&&_defineProperties(it,lt),Object.defineProperty(it,"prototype",{writable:!1}),it}function _defineProperty(it,at,lt){return at=_toPropertyKey(at),at in it?Object.defineProperty(it,at,{value:lt,enumerable:!0,configurable:!0,writable:!0}):it[at]=lt,it}function _toPropertyKey(it){var at=_toPrimitive(it,"string");return _typeof(at)==="symbol"?at:String(at)}function _toPrimitive(it,at){if(_typeof(it)!=="object"||it===null)return it;var lt=it[Symbol.toPrimitive];if(lt!==void 0){var ut=lt.call(it,at||"default");if(_typeof(ut)!=="object")return ut;throw new TypeError("@@toPrimitive must return a primitive value.")}return(at==="string"?String:Number)(it)}var getDefaults$1=function it(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(lt){return JSON.parse(lt)},stringify:JSON.stringify,parsePayload:function(lt,ut,ct){return _defineProperty({},ut,ct||"")},parseLoadPayload:function(lt,ut){},request,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Backend=function(){function it(at){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_classCallCheck(this,it),this.services=at,this.options=lt,this.allOptions=ut,this.type="backend",this.init(at,lt,ut)}return _createClass(it,[{key:"init",value:function(lt){var ut=this,ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=lt,this.options=defaults$1(ct,this.options||{},getDefaults$1()),this.allOptions=dt,this.services&&this.options.reloadInterval&&setInterval(function(){return ut.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(lt,ut,ct){this._readAny(lt,lt,ut,ut,ct)}},{key:"read",value:function(lt,ut,ct){this._readAny([lt],lt,[ut],ut,ct)}},{key:"_readAny",value:function(lt,ut,ct,dt,ft){var mt=this,pt=this.options.loadPath;typeof this.options.loadPath=="function"&&(pt=this.options.loadPath(lt,ct)),pt=makePromise(pt),pt.then(function(gt){if(!gt)return ft(null,{});var vt=mt.services.interpolator.interpolate(gt,{lng:lt.join("+"),ns:ct.join("+")});mt.loadUrl(vt,ft,ut,dt)})}},{key:"loadUrl",value:function(lt,ut,ct,dt){var ft=this,mt=typeof ct=="string"?[ct]:ct,pt=typeof dt=="string"?[dt]:dt,gt=this.options.parseLoadPayload(mt,pt);this.options.request(this.options,lt,gt,function(vt,wt){if(wt&&(wt.status>=500&&wt.status<600||!wt.status))return ut("failed loading "+lt+"; status code: "+wt.status,!0);if(wt&&wt.status>=400&&wt.status<500)return ut("failed loading "+lt+"; status code: "+wt.status,!1);if(!wt&&vt&&vt.message&&vt.message.indexOf("Failed to fetch")>-1)return ut("failed loading "+lt+": "+vt.message,!0);if(vt)return ut(vt,!1);var yt,bt;try{typeof wt.data=="string"?yt=ft.options.parse(wt.data,ct,dt):yt=wt.data}catch{bt="failed parsing "+lt+" to json"}if(bt)return ut(bt,!1);ut(null,yt)})}},{key:"create",value:function(lt,ut,ct,dt,ft){var mt=this;if(this.options.addPath){typeof lt=="string"&&(lt=[lt]);var pt=this.options.parsePayload(ut,ct,dt),gt=0,vt=[],wt=[];lt.forEach(function(yt){var bt=mt.options.addPath;typeof mt.options.addPath=="function"&&(bt=mt.options.addPath(yt,ut));var Ct=mt.services.interpolator.interpolate(bt,{lng:yt,ns:ut});mt.options.request(mt.options,Ct,pt,function(Et,kt){gt+=1,vt.push(Et),wt.push(kt),gt===lt.length&&typeof ft=="function"&&ft(vt,wt)})})}}},{key:"reload",value:function(){var lt=this,ut=this.services,ct=ut.backendConnector,dt=ut.languageUtils,ft=ut.logger,mt=ct.language;if(!(mt&&mt.toLowerCase()==="cimode")){var pt=[],gt=function(wt){var yt=dt.toResolveHierarchy(wt);yt.forEach(function(bt){pt.indexOf(bt)<0&&pt.push(bt)})};gt(mt),this.allOptions.preload&&this.allOptions.preload.forEach(function(vt){return gt(vt)}),pt.forEach(function(vt){lt.allOptions.ns.forEach(function(wt){ct.read(vt,wt,"read",null,null,function(yt,bt){yt&&ft.warn("loading namespace ".concat(wt," for language ").concat(vt," failed"),yt),!yt&&bt&&ft.log("loaded namespace ".concat(wt," for language ").concat(vt),bt),ct.loaded("".concat(vt,"|").concat(wt),yt,bt)})})})}}}]),it}();Backend.type="backend";var arr=[],each=arr.forEach,slice=arr.slice;function defaults(it){return each.call(slice.call(arguments,1),function(at){if(at)for(var lt in at)it[lt]===void 0&&(it[lt]=at[lt])}),it}var fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,serializeCookie=function it(at,lt,ut){var ct=ut||{};ct.path=ct.path||"/";var dt=encodeURIComponent(lt),ft="".concat(at,"=").concat(dt);if(ct.maxAge>0){var mt=ct.maxAge-0;if(Number.isNaN(mt))throw new Error("maxAge should be a Number");ft+="; Max-Age=".concat(Math.floor(mt))}if(ct.domain){if(!fieldContentRegExp.test(ct.domain))throw new TypeError("option domain is invalid");ft+="; Domain=".concat(ct.domain)}if(ct.path){if(!fieldContentRegExp.test(ct.path))throw new TypeError("option path is invalid");ft+="; Path=".concat(ct.path)}if(ct.expires){if(typeof ct.expires.toUTCString!="function")throw new TypeError("option expires is invalid");ft+="; Expires=".concat(ct.expires.toUTCString())}if(ct.httpOnly&&(ft+="; HttpOnly"),ct.secure&&(ft+="; Secure"),ct.sameSite){var pt=typeof ct.sameSite=="string"?ct.sameSite.toLowerCase():ct.sameSite;switch(pt){case!0:ft+="; SameSite=Strict";break;case"lax":ft+="; SameSite=Lax";break;case"strict":ft+="; SameSite=Strict";break;case"none":ft+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return ft},cookie={create:function it(at,lt,ut,ct){var dt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};ut&&(dt.expires=new Date,dt.expires.setTime(dt.expires.getTime()+ut*60*1e3)),ct&&(dt.domain=ct),document.cookie=serializeCookie(at,encodeURIComponent(lt),dt)},read:function it(at){for(var lt="".concat(at,"="),ut=document.cookie.split(";"),ct=0;ct<ut.length;ct++){for(var dt=ut[ct];dt.charAt(0)===" ";)dt=dt.substring(1,dt.length);if(dt.indexOf(lt)===0)return dt.substring(lt.length,dt.length)}return null},remove:function it(at){this.create(at,"",-1)}},cookie$1={name:"cookie",lookup:function it(at){var lt;if(at.lookupCookie&&typeof document<"u"){var ut=cookie.read(at.lookupCookie);ut&&(lt=ut)}return lt},cacheUserLanguage:function it(at,lt){lt.lookupCookie&&typeof document<"u"&&cookie.create(lt.lookupCookie,at,lt.cookieMinutes,lt.cookieDomain,lt.cookieOptions)}},querystring={name:"querystring",lookup:function it(at){var lt;if(typeof window<"u"){var ut=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(ut=window.location.hash.substring(window.location.hash.indexOf("?")));for(var ct=ut.substring(1),dt=ct.split("&"),ft=0;ft<dt.length;ft++){var mt=dt[ft].indexOf("=");if(mt>0){var pt=dt[ft].substring(0,mt);pt===at.lookupQuerystring&&(lt=dt[ft].substring(mt+1))}}}return lt}},hasLocalStorageSupport=null,localStorageAvailable=function it(){if(hasLocalStorageSupport!==null)return hasLocalStorageSupport;try{hasLocalStorageSupport=window!=="undefined"&&window.localStorage!==null;var at="i18next.translate.boo";window.localStorage.setItem(at,"foo"),window.localStorage.removeItem(at)}catch{hasLocalStorageSupport=!1}return hasLocalStorageSupport},localStorage$1={name:"localStorage",lookup:function it(at){var lt;if(at.lookupLocalStorage&&localStorageAvailable()){var ut=window.localStorage.getItem(at.lookupLocalStorage);ut&&(lt=ut)}return lt},cacheUserLanguage:function it(at,lt){lt.lookupLocalStorage&&localStorageAvailable()&&window.localStorage.setItem(lt.lookupLocalStorage,at)}},hasSessionStorageSupport=null,sessionStorageAvailable=function it(){if(hasSessionStorageSupport!==null)return hasSessionStorageSupport;try{hasSessionStorageSupport=window!=="undefined"&&window.sessionStorage!==null;var at="i18next.translate.boo";window.sessionStorage.setItem(at,"foo"),window.sessionStorage.removeItem(at)}catch{hasSessionStorageSupport=!1}return hasSessionStorageSupport},sessionStorage={name:"sessionStorage",lookup:function it(at){var lt;if(at.lookupSessionStorage&&sessionStorageAvailable()){var ut=window.sessionStorage.getItem(at.lookupSessionStorage);ut&&(lt=ut)}return lt},cacheUserLanguage:function it(at,lt){lt.lookupSessionStorage&&sessionStorageAvailable()&&window.sessionStorage.setItem(lt.lookupSessionStorage,at)}},navigator$1={name:"navigator",lookup:function it(at){var lt=[];if(typeof navigator<"u"){if(navigator.languages)for(var ut=0;ut<navigator.languages.length;ut++)lt.push(navigator.languages[ut]);navigator.userLanguage&&lt.push(navigator.userLanguage),navigator.language&&lt.push(navigator.language)}return lt.length>0?lt:void 0}},htmlTag={name:"htmlTag",lookup:function it(at){var lt,ut=at.htmlTag||(typeof document<"u"?document.documentElement:null);return ut&&typeof ut.getAttribute=="function"&&(lt=ut.getAttribute("lang")),lt}},path={name:"path",lookup:function it(at){var lt;if(typeof window<"u"){var ut=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(ut instanceof Array)if(typeof at.lookupFromPathIndex=="number"){if(typeof ut[at.lookupFromPathIndex]!="string")return;lt=ut[at.lookupFromPathIndex].replace("/","")}else lt=ut[0].replace("/","")}return lt}},subdomain={name:"subdomain",lookup:function it(at){var lt=typeof at.lookupFromSubdomainIndex=="number"?at.lookupFromSubdomainIndex+1:1,ut=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(ut)return ut[lt]}};function getDefaults(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(at){return at}}}var Browser=function(){function it(at){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$1(this,it),this.type="languageDetector",this.detectors={},this.init(at,lt)}return _createClass$1(it,[{key:"init",value:function(lt){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=lt||{languageUtils:{}},this.options=defaults(ut,this.options||{},getDefaults()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(dt){return dt.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=ct,this.addDetector(cookie$1),this.addDetector(querystring),this.addDetector(localStorage$1),this.addDetector(sessionStorage),this.addDetector(navigator$1),this.addDetector(htmlTag),this.addDetector(path),this.addDetector(subdomain)}},{key:"addDetector",value:function(lt){this.detectors[lt.name]=lt}},{key:"detect",value:function(lt){var ut=this;lt||(lt=this.options.order);var ct=[];return lt.forEach(function(dt){if(ut.detectors[dt]){var ft=ut.detectors[dt].lookup(ut.options);ft&&typeof ft=="string"&&(ft=[ft]),ft&&(ct=ct.concat(ft))}}),ct=ct.map(function(dt){return ut.options.convertDetectedLanguage(dt)}),this.services.languageUtils.getBestMatchFromCodes?ct:ct.length>0?ct[0]:null}},{key:"cacheUserLanguage",value:function(lt,ut){var ct=this;ut||(ut=this.options.caches),ut&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(lt)>-1||ut.forEach(function(dt){ct.detectors[dt]&&ct.detectors[dt].cacheUserLanguage(lt,ct.options)}))}}]),it}();Browser.type="languageDetector";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var __assign=function(){return __assign=Object.assign||function(at){for(var lt,ut=1,ct=arguments.length;ut<ct;ut++){lt=arguments[ut];for(var dt in lt)Object.prototype.hasOwnProperty.call(lt,dt)&&(at[dt]=lt[dt])}return at},__assign.apply(this,arguments)};function createCommonjsModule(it){var at={exports:{}};return it(at,at.exports),at.exports}/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/createCommonjsModule(function(it){(function(){var at={}.hasOwnProperty;function lt(){for(var ut=[],ct=0;ct<arguments.length;ct++){var dt=arguments[ct];if(dt){var ft=typeof dt;if(ft==="string"||ft==="number")ut.push(dt);else if(Array.isArray(dt)&&dt.length){var mt=lt.apply(null,dt);mt&&ut.push(mt)}else if(ft==="object")for(var pt in dt)at.call(dt,pt)&&dt[pt]&&ut.push(pt)}}return ut.join(" ")}it.exports?(lt.default=lt,it.exports=lt):window.classNames=lt})()});function SvgBe(it){return reactExports.createElement("svg",__assign({width:"1em",height:"1em",viewBox:"0 0 512 336",xmlns:"http://www.w3.org/2000/svg"},it),reactExports.createElement("g",{fill:"none"},reactExports.createElement("path",{d:"M170.667 335.724H8.828A8.829 8.829 0 010 326.896V9.103A8.829 8.829 0 018.828.275h161.839v335.449z",fill:"#464655"}),reactExports.createElement("path",{fill:"#FFE15A",d:"M170.67.276h170.67v335.448H170.67z"}),reactExports.createElement("path",{d:"M503.172 335.724H341.333V.276h161.839A8.829 8.829 0 01512 9.104v317.793a8.828 8.828 0 01-8.828 8.827z",fill:"#FF4B55"})))}function SvgFr(it){return reactExports.createElement("svg",__assign({width:"1em",height:"1em",viewBox:"0 0 512 336",xmlns:"http://www.w3.org/2000/svg"},it),reactExports.createElement("g",{fill:"none"},reactExports.createElement("path",{d:"M170.667 335.724H8.828A8.829 8.829 0 010 326.896V9.103A8.829 8.829 0 018.828.275h161.839v335.449z",fill:"#41479B"}),reactExports.createElement("path",{fill:"#F5F5F5",d:"M170.67.276h170.67v335.448H170.67z"}),reactExports.createElement("path",{d:"M503.172 335.724H341.333V.276h161.839A8.829 8.829 0 01512 9.104v317.793a8.828 8.828 0 01-8.828 8.827z",fill:"#FF4B55"})))}function SvgUs(it){return reactExports.createElement("svg",__assign({width:"1em",height:"1em",viewBox:"0 0 512 336",xmlns:"http://www.w3.org/2000/svg"},it),reactExports.createElement("g",{fill:"none"},reactExports.createElement("path",{d:"M503.172 335.724H8.828A8.829 8.829 0 010 326.896V9.103A8.829 8.829 0 018.828.275h494.345a8.829 8.829 0 018.828 8.828v317.793a8.83 8.83 0 01-8.829 8.828z",fill:"#F5F5F5"}),reactExports.createElement("path",{d:"M512.001 26.08H0V9.103A8.829 8.829 0 018.828.275h494.345a8.829 8.829 0 018.828 8.828V26.08zM0 103.492h512v25.804H0zm0-51.608h512v25.804H0zm512 129.018H8.828A8.829 8.829 0 010 172.074v-16.977h512v25.805zM0 258.317h512v25.804H0zm503.172 77.407H8.828A8.829 8.829 0 010 326.896V309.92h512v16.977a8.828 8.828 0 01-8.828 8.827zM0 206.709h512v25.804H0z",fill:"#FF4B55"}),reactExports.createElement("path",{d:"M229.517.276H8.828A8.828 8.828 0 000 9.103v162.97a8.829 8.829 0 008.828 8.828h220.69a8.829 8.829 0 008.828-8.828V9.103a8.83 8.83 0 00-8.829-8.827z",fill:"#41479B"}),reactExports.createElement("path",{d:"M24.789 20.537l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928L24 34.842l-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.76 1.324-.76 1.578-.001zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928L24 65.496l-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.324-.759 1.578-.001zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928L24 96.15l-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.324-.759 1.578-.001zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928L24 126.805l-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.76 1.324-.76 1.578-.001zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928L24 157.459l-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.761 1.324-.761 1.578-.001zM48.582 35.566l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.758 1.325-.758 1.578 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.165-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.758 1.325-.758 1.578 0zM72.375 20.537l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.758 1.325-.758 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.758 1.325-.758 1.578 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.76 1.325-.76 1.578 0zM96.169 35.566l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928L95.38 49.87l-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.758 1.325-.758 1.578 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.165-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.758 1.325-.758 1.578 0zm23.793-106.992l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.026-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.759 1.326-.759 1.579 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.026-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.758 1.326-.758 1.579 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.026-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.758 1.326-.758 1.579 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.026-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.759 1.326-.759 1.579 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.026-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.76 1.326-.76 1.579 0zm23.793-107.588l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.758 1.325-.758 1.578 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.165-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.253-.758 1.325-.758 1.578 0zm23.794-106.992l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.758 1.325-.758 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.758 1.325-.758 1.578 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.759 1.325-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.251-.76 1.325-.76 1.578 0zm23.793-107.588l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.758 1.326-.758 1.578 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.165-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.326-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.326-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.758 1.326-.758 1.578 0zm23.794-106.992l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.324-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.758 1.324-.758 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.758 1.324-.758 1.578 0zm0 30.655l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.759 1.324-.759 1.578 0zm0 30.654l1.954 5.86 6.177.047c.8.007 1.131 1.027.488 1.502l-4.969 3.67 1.864 5.889c.242.762-.627 1.394-1.278.928l-5.025-3.592-5.025 3.592c-.651.465-1.518-.166-1.278-.928l1.864-5.889-4.969-3.67c-.643-.476-.312-1.495.488-1.502l6.177-.047 1.954-5.86c.252-.76 1.324-.76 1.578 0z",fill:"#F5F5F5"})))}function styleInject(it,at){at===void 0&&(at={});var lt=at.insertAt;if(!(!it||typeof document>"u")){var ut=document.head||document.getElementsByTagName("head")[0],ct=document.createElement("style");ct.type="text/css",lt==="top"&&ut.firstChild?ut.insertBefore(ct,ut.firstChild):ut.appendChild(ct),ct.styleSheet?ct.styleSheet.cssText=it:ct.appendChild(document.createTextNode(it))}}var css_248z=`.ReactFlagsSelect-module_flagsSelect__2pfa2 {
  position: relative;
  vertical-align: inherit;
  padding-bottom: 5px;
  text-align: left; }

.ReactFlagsSelect-module_flagsSelectInline__cUnnz {
  display: inline-block; }

.ReactFlagsSelect-module_selectBtn__19wW7 {
  cursor: pointer;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  font-family: inherit;
  color: #4d4d4d;
  border: thin solid rgba(77, 77, 77, 0.3);
  border-radius: 4px;
  background: transparent; }
  .ReactFlagsSelect-module_selectBtn__19wW7:after, .ReactFlagsSelect-module_selectBtn__19wW7[aria-expanded="true"]:after {
    content: " ";
    width: 0;
    height: 0;
    display: inline-block;
    margin-left: 5px; }
  .ReactFlagsSelect-module_selectBtn__19wW7:after {
    border-top: 5px solid #4d4d4d;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 0; }
  .ReactFlagsSelect-module_selectBtn__19wW7[aria-expanded="true"]:after {
    border-top: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #4d4d4d; }

.ReactFlagsSelect-module_disabledBtn__3A4GF {
  background: #eaeaea;
  cursor: default; }

.ReactFlagsSelect-module_label__27pw9, .ReactFlagsSelect-module_secondaryLabel__37t1D {
  font-size: 1em;
  padding-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis; }

.ReactFlagsSelect-module_secondaryLabel__37t1D {
  color: #707070;
  padding-left: 5px; }

.ReactFlagsSelect-module_selectValue__152eS,
.ReactFlagsSelect-module_selectOption__3pcgW {
  cursor: pointer;
  padding: 0 8px;
  margin: 4px 0;
  white-space: nowrap; }

.ReactFlagsSelect-module_selectValue__152eS {
  pointer-events: none;
  display: flex;
  align-items: center; }

.ReactFlagsSelect-module_selectOption__3pcgW {
  padding: 2px 18px; }
  .ReactFlagsSelect-module_selectOption__3pcgW:hover, .ReactFlagsSelect-module_selectOption__3pcgW:focus {
    outline: none;
    background: #eaeaea; }

.ReactFlagsSelect-module_selectFlag__2q5gC {
  display: inline-flex;
  font-size: 1.2em; }

.ReactFlagsSelect-module_selectOptionValue__vS99- {
  display: flex;
  align-items: center; }

.ReactFlagsSelect-module_selectOptionWithlabel__2GpmM {
  padding: 4px 10px; }

.ReactFlagsSelect-module_selectOptions__3LNBJ {
  position: absolute;
  z-index: 999999;
  border: 1px solid #bdbbbb;
  border-radius: 3px;
  background: #ffffff;
  margin-top: 8px;
  padding: 8px 0;
  max-height: 180px;
  overflow: auto; }

.ReactFlagsSelect-module_selectOptionsWithSearch__1W03w {
  padding: 0 0 8px 0; }

.ReactFlagsSelect-module_fullWidthOptions__1XeR6 {
  right: 0;
  left: 0; }

.ReactFlagsSelect-module_alignOptionsToRight__3Qvq2 {
  right: 0; }

.ReactFlagsSelect-module_filterBox__3m8EU {
  position: sticky;
  top: 0;
  width: 100%;
  padding-top: 8px;
  background: #ffffff; }
  .ReactFlagsSelect-module_filterBox__3m8EU input {
    width: calc(100% - 20px);
    margin: 0 10px;
    padding: 8px;
    box-sizing: border-box; }
    .ReactFlagsSelect-module_filterBox__3m8EU input:focus {
      outline: none; }
`;styleInject(css_248z);const availableLanguages=[{code:"nl",name:"Nederlands",flag:jsxRuntimeExports.jsx(SvgBe,{})},{code:"en",name:"English",flag:jsxRuntimeExports.jsx(SvgUs,{})},{code:"fr",name:"Français",flag:jsxRuntimeExports.jsx(SvgFr,{})}];instance.use(Backend).use(Browser).use(initReactI18next).init({supportedLngs:availableLanguages.map(it=>it.code),fallbackLng:"nl",debug:!1,ns:"external",defaultNS:"external",interpolation:{escapeValue:!1},backend:{loadPath:()=>`${Config.baseUrl}/locales/{{lng}}/{{ns}}.json`}});const LanguageSelector=({onChange:it,initialLanguage:at,hideFlag:lt,changeLanguageOfSystem:ut=!0,...ct})=>{const{i18n:dt}=useTranslation(),ft=availableLanguages.find(pt=>pt.code===(at||dt.language.slice(0,2).toLocaleLowerCase()))||availableLanguages[0],mt=pt=>{ut&&dt.changeLanguage(pt.target.value),it&&it(pt.target.value)};return jsxRuntimeExports.jsxs("div",{className:"d-flex justify-content-center align-items-center pe-1",...ct,children:[!lt&&jsxRuntimeExports.jsx("div",{className:"ps-3 pe-2",children:ft.flag}),jsxRuntimeExports.jsx("select",{onChange:mt,className:"form-select form-select-sm text-center text-muted",style:{width:"60px",border:"none",outline:"none",backgroundColor:"transparent"},value:ft.code,children:availableLanguages.map(pt=>jsxRuntimeExports.jsx("option",{value:pt.code,children:pt.code.toUpperCase()},pt.code))})]})},useSearchQuery=()=>{const{search:it}=useLocation();return b$2.useMemo(()=>new URLSearchParams(it),[it])};var webfontloader={exports:{}};(function(it){(function(){function at(fn,xn,Kn){return fn.call.apply(fn.bind,arguments)}function lt(fn,xn,Kn){if(!fn)throw Error();if(2<arguments.length){var _n=Array.prototype.slice.call(arguments,2);return function(){var gn=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(gn,_n),fn.apply(xn,gn)}}return function(){return fn.apply(xn,arguments)}}function ut(fn,xn,Kn){return ut=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?at:lt,ut.apply(null,arguments)}var ct=Date.now||function(){return+new Date};function dt(fn,xn){this.a=fn,this.o=xn||fn,this.c=this.o.document}var ft=!!window.FontFace;function mt(fn,xn,Kn,_n){if(xn=fn.c.createElement(xn),Kn)for(var gn in Kn)Kn.hasOwnProperty(gn)&&(gn=="style"?xn.style.cssText=Kn[gn]:xn.setAttribute(gn,Kn[gn]));return _n&&xn.appendChild(fn.c.createTextNode(_n)),xn}function pt(fn,xn,Kn){fn=fn.c.getElementsByTagName(xn)[0],fn||(fn=document.documentElement),fn.insertBefore(Kn,fn.lastChild)}function gt(fn){fn.parentNode&&fn.parentNode.removeChild(fn)}function vt(fn,xn,Kn){xn=xn||[],Kn=Kn||[];for(var _n=fn.className.split(/\s+/),gn=0;gn<xn.length;gn+=1){for(var vn=!1,qn=0;qn<_n.length;qn+=1)if(xn[gn]===_n[qn]){vn=!0;break}vn||_n.push(xn[gn])}for(xn=[],gn=0;gn<_n.length;gn+=1){for(vn=!1,qn=0;qn<Kn.length;qn+=1)if(_n[gn]===Kn[qn]){vn=!0;break}vn||xn.push(_n[gn])}fn.className=xn.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function wt(fn,xn){for(var Kn=fn.className.split(/\s+/),_n=0,gn=Kn.length;_n<gn;_n++)if(Kn[_n]==xn)return!0;return!1}function yt(fn){return fn.o.location.hostname||fn.a.location.hostname}function bt(fn,xn,Kn){function _n(){Yn&&gn&&vn&&(Yn(qn),Yn=null)}xn=mt(fn,"link",{rel:"stylesheet",href:xn,media:"all"});var gn=!1,vn=!0,qn=null,Yn=Kn||null;ft?(xn.onload=function(){gn=!0,_n()},xn.onerror=function(){gn=!0,qn=Error("Stylesheet failed to load"),_n()}):setTimeout(function(){gn=!0,_n()},0),pt(fn,"head",xn)}function Ct(fn,xn,Kn,_n){var gn=fn.c.getElementsByTagName("head")[0];if(gn){var vn=mt(fn,"script",{src:xn}),qn=!1;return vn.onload=vn.onreadystatechange=function(){qn||this.readyState&&this.readyState!="loaded"&&this.readyState!="complete"||(qn=!0,Kn&&Kn(null),vn.onload=vn.onreadystatechange=null,vn.parentNode.tagName=="HEAD"&&gn.removeChild(vn))},gn.appendChild(vn),setTimeout(function(){qn||(qn=!0,Kn&&Kn(Error("Script load timeout")))},_n||5e3),vn}return null}function Et(){this.a=0,this.c=null}function kt(fn){return fn.a++,function(){fn.a--,St(fn)}}function xt(fn,xn){fn.c=xn,St(fn)}function St(fn){fn.a==0&&fn.c&&(fn.c(),fn.c=null)}function Ot(fn){this.a=fn||"-"}Ot.prototype.c=function(fn){for(var xn=[],Kn=0;Kn<arguments.length;Kn++)xn.push(arguments[Kn].replace(/[\W_]+/g,"").toLowerCase());return xn.join(this.a)};function At(fn,xn){this.c=fn,this.f=4,this.a="n";var Kn=(xn||"n4").match(/^([nio])([1-9])$/i);Kn&&(this.a=Kn[1],this.f=parseInt(Kn[2],10))}function Tt(fn){return Rt(fn)+" "+(fn.f+"00")+" 300px "+$t(fn.c)}function $t(fn){var xn=[];fn=fn.split(/,\s*/);for(var Kn=0;Kn<fn.length;Kn++){var _n=fn[Kn].replace(/['"]/g,"");_n.indexOf(" ")!=-1||/^\d/.test(_n)?xn.push("'"+_n+"'"):xn.push(_n)}return xn.join(",")}function Lt(fn){return fn.a+fn.f}function Rt(fn){var xn="normal";return fn.a==="o"?xn="oblique":fn.a==="i"&&(xn="italic"),xn}function It(fn){var xn=4,Kn="n",_n=null;return fn&&((_n=fn.match(/(normal|oblique|italic)/i))&&_n[1]&&(Kn=_n[1].substr(0,1).toLowerCase()),(_n=fn.match(/([1-9]00|normal|bold)/i))&&_n[1]&&(/bold/i.test(_n[1])?xn=7:/[1-9]00/.test(_n[1])&&(xn=parseInt(_n[1].substr(0,1),10)))),Kn+xn}function Ft(fn,xn){this.c=fn,this.f=fn.o.document.documentElement,this.h=xn,this.a=new Ot("-"),this.j=xn.events!==!1,this.g=xn.classes!==!1}function Mt(fn){fn.g&&vt(fn.f,[fn.a.c("wf","loading")]),Vt(fn,"loading")}function Ht(fn){if(fn.g){var xn=wt(fn.f,fn.a.c("wf","active")),Kn=[],_n=[fn.a.c("wf","loading")];xn||Kn.push(fn.a.c("wf","inactive")),vt(fn.f,Kn,_n)}Vt(fn,"inactive")}function Vt(fn,xn,Kn){fn.j&&fn.h[xn]&&(Kn?fn.h[xn](Kn.c,Lt(Kn)):fn.h[xn]())}function Nt(){this.c={}}function Gt(fn,xn,Kn){var _n=[],gn;for(gn in xn)if(xn.hasOwnProperty(gn)){var vn=fn.c[gn];vn&&_n.push(vn(xn[gn],Kn))}return _n}function tn(fn,xn){this.c=fn,this.f=xn,this.a=mt(this.c,"span",{"aria-hidden":"true"},this.f)}function ln(fn){pt(fn.c,"body",fn.a)}function nn(fn){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+$t(fn.c)+";"+("font-style:"+Rt(fn)+";font-weight:"+(fn.f+"00")+";")}function on(fn,xn,Kn,_n,gn,vn){this.g=fn,this.j=xn,this.a=_n,this.c=Kn,this.f=gn||3e3,this.h=vn||void 0}on.prototype.start=function(){var fn=this.c.o.document,xn=this,Kn=ct(),_n=new Promise(function(qn,Yn){function Sr(){ct()-Kn>=xn.f?Yn():fn.fonts.load(Tt(xn.a),xn.h).then(function(Tr){1<=Tr.length?qn():setTimeout(Sr,25)},function(){Yn()})}Sr()}),gn=null,vn=new Promise(function(qn,Yn){gn=setTimeout(Yn,xn.f)});Promise.race([vn,_n]).then(function(){gn&&(clearTimeout(gn),gn=null),xn.g(xn.a)},function(){xn.j(xn.a)})};function rn(fn,xn,Kn,_n,gn,vn,qn){this.v=fn,this.B=xn,this.c=Kn,this.a=_n,this.s=qn||"BESbswy",this.f={},this.w=gn||3e3,this.u=vn||null,this.m=this.j=this.h=this.g=null,this.g=new tn(this.c,this.s),this.h=new tn(this.c,this.s),this.j=new tn(this.c,this.s),this.m=new tn(this.c,this.s),fn=new At(this.a.c+",serif",Lt(this.a)),fn=nn(fn),this.g.a.style.cssText=fn,fn=new At(this.a.c+",sans-serif",Lt(this.a)),fn=nn(fn),this.h.a.style.cssText=fn,fn=new At("serif",Lt(this.a)),fn=nn(fn),this.j.a.style.cssText=fn,fn=new At("sans-serif",Lt(this.a)),fn=nn(fn),this.m.a.style.cssText=fn,ln(this.g),ln(this.h),ln(this.j),ln(this.m)}var Jt={D:"serif",C:"sans-serif"},Zt=null;function Wt(){if(Zt===null){var fn=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);Zt=!!fn&&(536>parseInt(fn[1],10)||parseInt(fn[1],10)===536&&11>=parseInt(fn[2],10))}return Zt}rn.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=ct(),Bt(this)};function jt(fn,xn,Kn){for(var _n in Jt)if(Jt.hasOwnProperty(_n)&&xn===fn.f[Jt[_n]]&&Kn===fn.f[Jt[_n]])return!0;return!1}function Bt(fn){var xn=fn.g.a.offsetWidth,Kn=fn.h.a.offsetWidth,_n;(_n=xn===fn.f.serif&&Kn===fn.f["sans-serif"])||(_n=Wt()&&jt(fn,xn,Kn)),_n?ct()-fn.A>=fn.w?Wt()&&jt(fn,xn,Kn)&&(fn.u===null||fn.u.hasOwnProperty(fn.a.c))?zt(fn,fn.v):zt(fn,fn.B):Dt(fn):zt(fn,fn.v)}function Dt(fn){setTimeout(ut(function(){Bt(this)},fn),50)}function zt(fn,xn){setTimeout(ut(function(){gt(this.g.a),gt(this.h.a),gt(this.j.a),gt(this.m.a),xn(this.a)},fn),0)}function Kt(fn,xn,Kn){this.c=fn,this.a=xn,this.f=0,this.m=this.j=!1,this.s=Kn}var en=null;Kt.prototype.g=function(fn){var xn=this.a;xn.g&&vt(xn.f,[xn.a.c("wf",fn.c,Lt(fn).toString(),"active")],[xn.a.c("wf",fn.c,Lt(fn).toString(),"loading"),xn.a.c("wf",fn.c,Lt(fn).toString(),"inactive")]),Vt(xn,"fontactive",fn),this.m=!0,sn(this)},Kt.prototype.h=function(fn){var xn=this.a;if(xn.g){var Kn=wt(xn.f,xn.a.c("wf",fn.c,Lt(fn).toString(),"active")),_n=[],gn=[xn.a.c("wf",fn.c,Lt(fn).toString(),"loading")];Kn||_n.push(xn.a.c("wf",fn.c,Lt(fn).toString(),"inactive")),vt(xn.f,_n,gn)}Vt(xn,"fontinactive",fn),sn(this)};function sn(fn){--fn.f==0&&fn.j&&(fn.m?(fn=fn.a,fn.g&&vt(fn.f,[fn.a.c("wf","active")],[fn.a.c("wf","loading"),fn.a.c("wf","inactive")]),Vt(fn,"active")):Ht(fn.a))}function cn(fn){this.j=fn,this.a=new Nt,this.h=0,this.f=this.g=!0}cn.prototype.load=function(fn){this.c=new dt(this.j,fn.context||this.j),this.g=fn.events!==!1,this.f=fn.classes!==!1,Tn(this,new Ft(this.c,fn),fn)};function bn(fn,xn,Kn,_n,gn){var vn=--fn.h==0;(fn.f||fn.g)&&setTimeout(function(){var qn=gn||null,Yn=_n||null||{};if(Kn.length===0&&vn)Ht(xn.a);else{xn.f+=Kn.length,vn&&(xn.j=vn);var Sr,Tr=[];for(Sr=0;Sr<Kn.length;Sr++){var Ln=Kn[Sr],er=Yn[Ln.c],hr=xn.a,ur=Ln;if(hr.g&&vt(hr.f,[hr.a.c("wf",ur.c,Lt(ur).toString(),"loading")]),Vt(hr,"fontloading",ur),hr=null,en===null)if(window.FontFace){var ur=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),_r=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);en=ur?42<parseInt(ur[1],10):!_r}else en=!1;en?hr=new on(ut(xn.g,xn),ut(xn.h,xn),xn.c,Ln,xn.s,er):hr=new rn(ut(xn.g,xn),ut(xn.h,xn),xn.c,Ln,xn.s,qn,er),Tr.push(hr)}for(Sr=0;Sr<Tr.length;Sr++)Tr[Sr].start()}},0)}function Tn(fn,xn,Kn){var gn=[],_n=Kn.timeout;Mt(xn);var gn=Gt(fn.a,Kn,fn.c),vn=new Kt(fn.c,xn,_n);for(fn.h=gn.length,xn=0,Kn=gn.length;xn<Kn;xn++)gn[xn].load(function(qn,Yn,Sr){bn(fn,vn,qn,Yn,Sr)})}function kn(fn,xn){this.c=fn,this.a=xn}kn.prototype.load=function(fn){function xn(){if(vn["__mti_fntLst"+_n]){var qn=vn["__mti_fntLst"+_n](),Yn=[],Sr;if(qn)for(var Tr=0;Tr<qn.length;Tr++){var Ln=qn[Tr].fontfamily;qn[Tr].fontStyle!=null&&qn[Tr].fontWeight!=null?(Sr=qn[Tr].fontStyle+qn[Tr].fontWeight,Yn.push(new At(Ln,Sr))):Yn.push(new At(Ln))}fn(Yn)}else setTimeout(function(){xn()},50)}var Kn=this,_n=Kn.a.projectId,gn=Kn.a.version;if(_n){var vn=Kn.c.o;Ct(this.c,(Kn.a.api||"https://fast.fonts.net/jsapi")+"/"+_n+".js"+(gn?"?v="+gn:""),function(qn){qn?fn([]):(vn["__MonotypeConfiguration__"+_n]=function(){return Kn.a},xn())}).id="__MonotypeAPIScript__"+_n}else fn([])};function In(fn,xn){this.c=fn,this.a=xn}In.prototype.load=function(fn){var xn,Kn,_n=this.a.urls||[],gn=this.a.families||[],vn=this.a.testStrings||{},qn=new Et;for(xn=0,Kn=_n.length;xn<Kn;xn++)bt(this.c,_n[xn],kt(qn));var Yn=[];for(xn=0,Kn=gn.length;xn<Kn;xn++)if(_n=gn[xn].split(":"),_n[1])for(var Sr=_n[1].split(","),Tr=0;Tr<Sr.length;Tr+=1)Yn.push(new At(_n[0],Sr[Tr]));else Yn.push(new At(_n[0]));xt(qn,function(){fn(Yn,vn)})};function Hn(fn,xn){fn?this.c=fn:this.c=Fn,this.a=[],this.f=[],this.g=xn||""}var Fn="https://fonts.googleapis.com/css";function wn(fn,xn){for(var Kn=xn.length,_n=0;_n<Kn;_n++){var gn=xn[_n].split(":");gn.length==3&&fn.f.push(gn.pop());var vn="";gn.length==2&&gn[1]!=""&&(vn=":"),fn.a.push(gn.join(vn))}}function Mn(fn){if(fn.a.length==0)throw Error("No fonts to load!");if(fn.c.indexOf("kit=")!=-1)return fn.c;for(var xn=fn.a.length,Kn=[],_n=0;_n<xn;_n++)Kn.push(fn.a[_n].replace(/ /g,"+"));return xn=fn.c+"?family="+Kn.join("%7C"),0<fn.f.length&&(xn+="&subset="+fn.f.join(",")),0<fn.g.length&&(xn+="&text="+encodeURIComponent(fn.g)),xn}function Dn(fn){this.f=fn,this.a=[],this.c={}}var Un={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Sn={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},On={i:"i",italic:"i",n:"n",normal:"n"},Cn=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Pn(fn){for(var xn=fn.f.length,Kn=0;Kn<xn;Kn++){var _n=fn.f[Kn].split(":"),gn=_n[0].replace(/\+/g," "),vn=["n4"];if(2<=_n.length){var qn,Yn=_n[1];if(qn=[],Yn)for(var Yn=Yn.split(","),Sr=Yn.length,Tr=0;Tr<Sr;Tr++){var Ln;if(Ln=Yn[Tr],Ln.match(/^[\w-]+$/)){var er=Cn.exec(Ln.toLowerCase());if(er==null)Ln="";else{if(Ln=er[2],Ln=Ln==null||Ln==""?"n":On[Ln],er=er[1],er==null||er=="")er="4";else var hr=Sn[er],er=hr||(isNaN(er)?"4":er.substr(0,1));Ln=[Ln,er].join("")}}else Ln="";Ln&&qn.push(Ln)}0<qn.length&&(vn=qn),_n.length==3&&(_n=_n[2],qn=[],_n=_n?_n.split(","):qn,0<_n.length&&(_n=Un[_n[0]])&&(fn.c[gn]=_n))}for(fn.c[gn]||(_n=Un[gn])&&(fn.c[gn]=_n),_n=0;_n<vn.length;_n+=1)fn.a.push(new At(gn,vn[_n]))}}function Xn(fn,xn){this.c=fn,this.a=xn}var Qn={Arimo:!0,Cousine:!0,Tinos:!0};Xn.prototype.load=function(fn){var xn=new Et,Kn=this.c,_n=new Hn(this.a.api,this.a.text),gn=this.a.families;wn(_n,gn);var vn=new Dn(gn);Pn(vn),bt(Kn,Mn(_n),kt(xn)),xt(xn,function(){fn(vn.a,vn.c,Qn)})};function sr(fn,xn){this.c=fn,this.a=xn}sr.prototype.load=function(fn){var xn=this.a.id,Kn=this.c.o;xn?Ct(this.c,(this.a.api||"https://use.typekit.net")+"/"+xn+".js",function(_n){if(_n)fn([]);else if(Kn.Typekit&&Kn.Typekit.config&&Kn.Typekit.config.fn){_n=Kn.Typekit.config.fn;for(var gn=[],vn=0;vn<_n.length;vn+=2)for(var qn=_n[vn],Yn=_n[vn+1],Sr=0;Sr<Yn.length;Sr++)gn.push(new At(qn,Yn[Sr]));try{Kn.Typekit.load({events:!1,classes:!1,async:!0})}catch{}fn(gn)}},2e3):fn([])};function pr(fn,xn){this.c=fn,this.f=xn,this.a=[]}pr.prototype.load=function(fn){var xn=this.f.id,Kn=this.c.o,_n=this;xn?(Kn.__webfontfontdeckmodule__||(Kn.__webfontfontdeckmodule__={}),Kn.__webfontfontdeckmodule__[xn]=function(gn,vn){for(var qn=0,Yn=vn.fonts.length;qn<Yn;++qn){var Sr=vn.fonts[qn];_n.a.push(new At(Sr.name,It("font-weight:"+Sr.weight+";font-style:"+Sr.style)))}fn(_n.a)},Ct(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+yt(this.c)+"/"+xn+".js",function(gn){gn&&fn([])})):fn([])};var or=new cn(window);or.a.c.custom=function(fn,xn){return new In(xn,fn)},or.a.c.fontdeck=function(fn,xn){return new pr(xn,fn)},or.a.c.monotype=function(fn,xn){return new kn(xn,fn)},or.a.c.typekit=function(fn,xn){return new sr(xn,fn)},or.a.c.google=function(fn,xn){return new Xn(xn,fn)};var br={load:ut(or.load,or)};it.exports?it.exports=br:(window.WebFont=br,window.WebFontConfig&&or.load(window.WebFontConfig))})()})(webfontloader);var webfontloaderExports=webfontloader.exports;const WebFont=getDefaultExportFromCjs(webfontloaderExports),index="",style="",addLinkElement=it=>{const at=document.createElement("link");at.href=it,at.rel="stylesheet",document.head.appendChild(at)},Container=({autoInjectCss:it,children:at})=>(reactExports.useEffect(()=>{WebFont.load({google:{families:["Poppins:300","Poppins:400","Poppins:500","Poppins:600","Poppins:700"]}}),addLinkElement("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"),it&&addLinkElement(`${Config.baseUrl}/Container-${Config.buildNumber}.css`)},[]),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Loading,{}),children:jsxRuntimeExports.jsx("div",{style:{fontFamily:"Poppins"},children:at})}));export{Validators as $,Anchor$1 as A,Button$1 as B,Col$1 as C,DateTime as D,Input as E,useFetch as F,Config as G,React as H,IconButton as I,useLocation as J,Modules as K,Link as L,MoneyFormat as M,Badge as N,Outlet as O,PropTypes as P,Q,Row$1 as R,Swal as S,Trans as T,Permissions as U,ModuleType as V,useSearchQuery as W,getLocalstorageItem as X,ToastContainer as Y,ReactFinalForm as Z,Field as _,useBootstrapPrefix as a,useWaitForDOMRef as a$,Label as a0,Select as a1,Alert$1 as a2,setLocalstorageItem as a3,Settings as a4,BrowserRouter as a5,Routes as a6,Route as a7,Navigate as a8,createRoot as a9,_isObject as aA,_Stack as aB,_baseIsEqual as aC,isObject_1 as aD,keys_1 as aE,isArray_1 as aF,_MapCache as aG,_Symbol as aH,isArguments_1 as aI,_isIndex as aJ,isLength_1 as aK,_Set as aL,_setToArray as aM,_SetCache as aN,_cacheHas as aO,_isArray as aP,_arrayPush as aQ,isArrayLike_1 as aR,_baseUnary as aS,_getNative as aT,eq_1 as aU,_root as aV,commonjsRequire as aW,_arraySome as aX,canUseDOM as aY,ownerDocument as aZ,style$1 as a_,CookiesProvider as aa,AuthContextProvider as ab,Container as ac,Loading as ad,lodashExports as ae,useParams as af,Interval as ag,useSearchParams as ah,getDefaultExportFromCjs as ai,_isFunction as aj,_overArg as ak,_baseGetTag as al,isObjectLike_1 as am,_isEqual as an,commonjsGlobal as ao,Pdf as ap,_typeof$3 as aq,_extends$3 as ar,styles as as,ErrorText as at,_toPropertyKey$1 as au,_setPrototypeOf as av,_objectWithoutPropertiesLoose$3 as aw,reactDomExports as ax,_classCallCheck$1 as ay,_createClass$1 as az,useButtonProps as b,useMounted as b0,listen as b1,contains as b2,useWillUnmount as b3,isEscKey as b4,renderTransition as b5,ReactDOM as b6,hasClass as b7,CloseButton$1 as b8,divWithClassName as b9,removeEventListener as ba,Fade$1 as bb,transitionEnd as bc,fieldSubscriptionItems as bd,useForm as be,useField as bf,version$1 as bg,version as bh,ARRAY_ERROR as bi,Qe as bj,__awaiter$1 as bk,__generator as bl,__spreadArray$1 as bm,__read as bn,styles$3 as bo,ReactQuill$1 as bp,classNames as c,useCallbackRef as d,usePopper as e,useClickOutside as f,b$2 as g,useWindow as h,addEventListener as i,jsxRuntimeExports as j,useMergedRefs as k,useIsomorphicEffect as l,mergeOptionsWithPopperConfig as m,useUncontrolled as n,useIsRTL as o,useTranslation as p,Button as q,reactExports as r,useNavigate as s,AuthContext as t,useEventCallback as u,Container$2 as v,LanguageSelector as w,Card as x,formatMoney as y,Colors as z};
//# sourceMappingURL=Container-6a128264.js.map
