/*! For license information please see vendors-main.js.LICENSE.txt */
(self.webpackChunk_depicter_editor=self.webpackChunk_depicter_editor||[]).push([[827],{45293:(e,t,n)=>{"use strict";function r(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}n.d(t,{k:()=>r})},57320:(e,t,n)=>{"use strict";function r(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}n.d(t,{w:()=>r})},82863:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>s,rg:()=>i});var r=n(2784);const o=(0,r.createContext)(null);function i({clientId:e,onScriptLoadSuccess:t,onScriptLoadError:n,children:i}){const a=function(e={}){const{onScriptLoadSuccess:t,onScriptLoadError:n}=e,[o,i]=(0,r.useState)(!1),a=(0,r.useRef)(t);a.current=t;const s=(0,r.useRef)(n);return s.current=n,(0,r.useEffect)((()=>{const e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.onload=()=>{var e;i(!0),null===(e=a.current)||void 0===e||e.call(a)},e.onerror=()=>{var e;i(!1),null===(e=s.current)||void 0===e||e.call(s)},document.body.appendChild(e),()=>{document.body.removeChild(e)}}),[]),o}({onScriptLoadSuccess:t,onScriptLoadError:n}),s=(0,r.useMemo)((()=>({clientId:e,scriptLoadedSuccessfully:a})),[e,a]);return r.createElement(o.Provider,{value:s},i)}function a(){const e=(0,r.useContext)(o);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function s({flow:e="implicit",scope:t="",onSuccess:n,onError:o,...i}){const{clientId:s,scriptLoadedSuccessfully:l}=a(),u=(0,r.useRef)(),c=(0,r.useRef)(n);c.current=n;const d=(0,r.useRef)(o);d.current=o,(0,r.useEffect)((()=>{var n;if(!l)return;const r="implicit"===e?"initTokenClient":"initCodeClient",o=null===(n=window.google)||void 0===n?void 0:n.accounts.oauth2[r]({client_id:s,scope:`openid profile email ${t}`,callback:e=>{var t,n;if(e.error)return null===(t=d.current)||void 0===t?void 0:t.call(d,e);null===(n=c.current)||void 0===n||n.call(c,e)},...i});u.current=o}),[s,l,e,t]);const f=(0,r.useCallback)((e=>u.current.requestAccessToken(e)),[]),h=(0,r.useCallback)((()=>u.current.requestCode()),[]);return"implicit"===e?f:h}},81559:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[G]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===q}(e)||Array.isArray(e)||!!e[V]||!!(null===(t=e.constructor)||void 0===t?void 0:t[V])||f(e)||h(e))}function a(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:Y)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[G];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:f(e)?2:h(e)?3:0}function l(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function c(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function d(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){return H&&e instanceof Map}function h(e){return W&&e instanceof Set}function p(e){return e.o||e.t}function g(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[G];for(var n=Y(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),y(e)||o(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return m(t,!0)}),!0)),e}function v(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=X[e];return t||r(18,e),t}function w(e,t){X[e]||(X[e]=t)}function x(){return z}function S(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){E(e),e.p.forEach(C),e.p=null}function E(e){e===z&&(z=e.l)}function k(e){return z={p:[],l:z,h:e,m:!0,_:0}}function C(e){var t=e[G];0===t.i||1===t.i?t.j():t.g=!0}function A(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,o),o?(n[G].P&&(_(t),r(4)),i(e)&&(e=T(t,e),t.l||M(t,e)),t.u&&b("Patches").M(n[G].t,e,t.u,t.s)):e=T(t,n,[]),_(t),t.u&&t.v(t.u,t.s),e!==Z?e:void 0}function T(e,t,n){if(y(t))return t;var r=t[G];if(!r)return a(t,(function(o,i){return O(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return M(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=g(r.k):r.o,i=o,s=!1;3===r.i&&(i=new Set(o),o.clear(),s=!0),a(i,(function(t,i){return O(e,r,o,t,i,n,s)})),M(e,o,!1),n&&e.u&&b("Patches").N(r,n,e.u,e.s)}return r.o}function O(e,t,n,r,a,s,u){if(o(a)){var d=T(e,a,s&&t&&3!==t.i&&!l(t.R,r)?s.concat(r):void 0);if(c(n,r,d),!o(d))return;e.m=!1}else u&&n.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;T(e,a),t&&t.A.l||M(e,a)}}function M(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&m(t,n)}function R(e,t){var n=e[G];return(n?p(n):e)[t]}function L(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function D(e){e.P||(e.P=!0,e.l&&D(e.l))}function P(e){e.o||(e.o=g(e.t))}function j(e,t,n){var r=f(t)?b("MapSet").F(t,n):h(t)?b("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Q;n&&(o=[r],i=J);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):b("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function I(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[G],o=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=$(t,o),r.I=!1}else n=$(t,o);return a(n,(function(t,o){r&&u(r.t,t)===o||c(n,t,e(o))})),3===o?new Set(n):n}(e)}function $(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return g(e)}function N(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[G];return Q.get(t,e)},set:function(t){var n=this[G];Q.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][G];if(!o.P)switch(o.i){case 5:r(o)&&D(o);break;case 4:n(o)&&D(o)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==G){var a=t[i];if(void 0===a&&!l(t,i))return!0;var s=n[i],u=s&&s[G];if(u?u.t!==a:!d(s,a))return!0}}var c=!!t[G];return r.length!==Y(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};w("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=K(n);delete i[G];for(var a=Y(i),s=0;s<a.length;s++){var l=a[s];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:x(),P:!1,I:!1,R:{},l:n,t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,G,{value:i,writable:!0}),o},S:function(e,n,i){i?o(n)&&n[G].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[G];if(n){var o=n.t,i=n.k,s=n.R,u=n.i;if(4===u)a(i,(function(t){t!==G&&(void 0!==o[t]||l(o,t)?s[t]||e(i[t]):(s[t]=!0,D(n)))})),a(o,(function(e){void 0!==i[e]||l(i,e)||(s[e]=!1,D(n))}));else if(5===u){if(r(n)&&(D(n),s.length=!0),i.length<o.length)for(var c=i.length;c<o.length;c++)s[c]=!1;else for(var d=o.length;d<i.length;d++)s[d]=!0;for(var f=Math.min(i.length,o.length),h=0;h<f;h++)i.hasOwnProperty(h)||(s[h]=!0),void 0===s[h]&&e(i[h])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,{xC:()=>Oe,PH:()=>Me,Lq:()=>Le,oM:()=>De,x0:()=>Pe});var F,z,B="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,W="undefined"!=typeof Set,U="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Z=B?Symbol.for("immer-nothing"):((F={})["immer-nothing"]=!0,F),V=B?Symbol.for("immer-draftable"):"__$immer_draftable",G=B?Symbol.for("immer-state"):"__$immer_state",q=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},X={},Q={get:function(e,t){if(t===G)return e;var n=p(e);if(!l(n,t))return function(e,t,n){var r,o=L(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===R(e.t,t)?(P(e),e.o[t]=j(e.A.h,r,e)):r},has:function(e,t){return t in p(e)},ownKeys:function(e){return Reflect.ownKeys(p(e))},set:function(e,t,n){var r=L(p(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=R(p(e),t),i=null==o?void 0:o[G];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(d(n,o)&&(void 0!==n||l(e.t,t)))return!0;P(e),D(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==R(e.t,t)||t in e.t?(e.R[t]=!1,P(e),D(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=p(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},J={};a(Q,(function(e,t){J[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),J.deleteProperty=function(e,t){return J.set.call(this,e,t,void 0)},J.set=function(e,t,n){return Q.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.O=U,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var l;if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var u=k(t),c=j(t,e,void 0),d=!0;try{l=n(c),d=!1}finally{d?_(u):E(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return S(u,o),A(e,u)}),(function(e){throw _(u),e})):(S(u,o),A(l,u))}if(!e||"object"!=typeof e){if(void 0===(l=n(e))&&(l=e),l===Z&&(l=void 0),t.D&&m(l,!0),o){var f=[],h=[];b("Patches").M(e,l,f,h),o(f,h)}return l}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(e=I(e));var t=k(this),n=j(this,e,void 0);return n[G].C=!0,E(t),n},t.finishDraft=function(e,t){var n=(e&&e[G]).A;return S(n,t),A(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!U&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=b("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);const re=ne;var oe=n(18717);function ie(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var ae=ie();ae.withExtraArgument=ie;const se=ae;var le,ue=(le=function(e,t){return le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},le(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}le(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ce=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},de=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},fe=Object.defineProperty,he=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ye=function(e,t,n){return t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},be=function(e,t){for(var n in t||(t={}))me.call(t,n)&&ye(e,n,t[n]);if(ge)for(var r=0,o=ge(t);r<o.length;r++){n=o[r];ve.call(t,n)&&ye(e,n,t[n])}return e},we=function(e,t){return he(e,pe(t))},xe=function(e,t,n){return new Promise((function(r,o){var i=function(e){try{s(n.next(e))}catch(e){o(e)}},a=function(e){try{s(n.throw(e))}catch(e){o(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};s((n=n.apply(e,t)).next())}))},Se="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?oe.qC:oe.qC.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function _e(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var Ee=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return ue(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,de([void 0],e[0].concat(this)))):new(t.bind.apply(t,de([void 0],e.concat(this))))},t}(Array),ke=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return ue(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,de([void 0],e[0].concat(this)))):new(t.bind.apply(t,de([void 0],e.concat(this))))},t}(Array);function Ce(e){return i(e)?re(e,(function(){})):e}function Ae(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new Ee);n&&(!function(e){return"boolean"==typeof e}(n)?r.push(se.withExtraArgument(n.extraArgument)):r.push(se));0;return r}(e)}}var Te=!0;function Oe(e){var t,n=Ae(),r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,l=r.devTools,u=void 0===l||l,c=r.preloadedState,d=void 0===c?void 0:c,f=r.enhancers,h=void 0===f?void 0:f;if("function"==typeof i)t=i;else{if(!_e(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=(0,oe.UY)(i)}var p=s;if("function"==typeof p&&(p=p(n),!Te&&!Array.isArray(p)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Te&&p.some((function(e){return"function"!=typeof e})))throw new Error("each middleware provided to configureStore must be a function");var g=oe.md.apply(void 0,p),m=oe.qC;u&&(m=Se(be({trace:!Te},"object"==typeof u&&u)));var v=new ke(g),y=v;Array.isArray(h)?y=de([g],h):"function"==typeof h&&(y=h(v));var b=m.apply(void 0,y);return(0,oe.MT)(t,d,b)}function Me(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return be(be({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function Re(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function Le(e,t,n,r){void 0===n&&(n=[]);var a,s="function"==typeof t?Re(t):[t,n,r],l=s[0],u=s[1],c=s[2];if(function(e){return"function"==typeof e}(e))a=function(){return Ce(e())};else{var d=Ce(e);a=function(){return d}}function f(e,t){void 0===e&&(e=a());var n=de([l[t.type]],u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[c]),n.reduce((function(e,n){if(n){var r;if(o(e))return void 0===(r=n(e,t))?e:r;if(i(e))return re(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return f.getInitialState=a,f}function De(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:Ce(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},s={},l={};function u(){var t="function"==typeof e.extraReducers?Re(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,l=t[2],u=void 0===l?void 0:l,c=be(be({},o),s);return Le(r,(function(e){for(var t in c)e.addCase(t,c[t]);for(var n=0,r=a;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}u&&e.addDefaultCase(u)}))}return i.forEach((function(e){var n,r,i=o[e],u=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,s[u]=n,l[e]=r?Me(u,r):Me(u)})),{name:t,reducer:function(e,t){return n||(n=u()),n(e,t)},actions:l,caseReducers:a,getInitialState:function(){return n||(n=u()),n.getInitialState()}}}var Pe=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},je=["name","message","stack","code"],Ie=function(e,t){this.payload=e,this.meta=t},$e=function(e,t){this.payload=e,this.meta=t},Ne=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=je;n<r.length;n++){var o=r[n];"string"==typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Me(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:we(be({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=Me(e+"/pending",(function(e,t,n){return{payload:void 0,meta:we(be({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=Me(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||Ne)(e||"Rejected"),meta:we(be({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,l,u){var c,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Pe(),f=new a;function h(e){c=e,f.abort()}var p=function(){return xe(this,null,(function(){var a,p,g,m,v,y;return ce(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}(m=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:u}))?[4,m]:[3,2];case 1:m=b.sent(),b.label=2;case 2:if(!1===m||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,v=new Promise((function(e,t){return f.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:c||"Aborted"})}))})),s(o(d,e,null==(p=null==n?void 0:n.getPendingMeta)?void 0:p.call(n,{requestId:d,arg:e},{getState:l,extra:u}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:d,signal:f.signal,abort:h,rejectWithValue:function(e,t){return new Ie(e,t)},fulfillWithValue:function(e,t){return new $e(e,t)}})).then((function(t){if(t instanceof Ie)throw t;return t instanceof $e?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return g=b.sent(),[3,5];case 4:return y=b.sent(),g=y instanceof Ie?i(null,d,e,y.payload,y.meta):i(y,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(g)&&g.meta.condition||s(g),[2,g]}}))}))}();return Object.assign(p,{abort:h,requestId:d,arg:e,unwrap:function(){return p.then(Fe)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function Fe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var ze="listenerMiddleware";Me(ze+"/add"),Me(ze+"/removeAll"),Me(ze+"/remove");"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==n.g?n.g:globalThis);var Be,He=function(e){return function(t){setTimeout(t,e)}};"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:He(10);N()},21994:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{g:()=>r,v:()=>o})},99641:(e,t,n)=>{"use strict";n.d(t,{B:()=>f});var r=n(21994),o=n(2784),i=n(28316),a=n(78067),s=n(60585),l=n(82819),u=n(25202),c=n(28227),d=["aria-label","className","containerProps","initialMounted","unmountOnClose","transition","transitionTimeout","boundingBoxRef","boundingBoxPadding","reposition","submenuOpenDelay","submenuCloseDelay","skipOpen","viewScroll","portal","theming","onItemClick","onClose"],f=(0,o.forwardRef)((function(e,t){var n=e["aria-label"],u=e.className,f=e.containerProps,h=e.initialMounted,p=e.unmountOnClose,g=e.transition,m=e.transitionTimeout,v=e.boundingBoxRef,y=e.boundingBoxPadding,b=e.reposition,w=e.submenuOpenDelay,x=e.submenuCloseDelay,S=e.skipOpen,_=e.viewScroll,E=e.portal,k=e.theming,C=e.onItemClick,A=e.onClose,T=(0,r.v)(e,d),O=(0,o.useRef)(null),M=(0,o.useRef)(null),R=(0,o.useRef)(null),L=T.anchorRef,D=T.state,P=(0,o.useMemo)((function(){return{initialMounted:h,unmountOnClose:p,transition:g,transitionTimeout:m,boundingBoxRef:v,boundingBoxPadding:y,rootMenuRef:O,rootAnchorRef:L,scrollingRef:M,anchorScrollingRef:R,reposition:b,viewScroll:_}}),[h,p,g,m,L,v,y,b,_]),j=(0,o.useMemo)((function(){return{submenuOpenDelay:w,submenuCloseDelay:x}}),[w,x]),I=(0,o.useMemo)((function(){return{handleClick:function(e,t){e.stopPropagation||(0,c.Dx)(C,e);var n=e.keepOpen;void 0===n&&(n=t&&e.key===l.R8.SPACE),n||(0,c.Dx)(A,{value:e.value,key:e.key,reason:l.GB.CLICK})},handleClose:function(e){(0,c.Dx)(A,{key:e,reason:l.GB.CLICK})}}}),[C,A]),$=(0,c.us)(g,"item"),N=(0,o.useMemo)((function(){return{theme:k,itemTransition:$}}),[k,$]),F=(0,c.Q)({onKeyDown:function(e){var t=e.key;if(t===l.R8.ESC)(0,c.Dx)(A,{key:t,reason:l.GB.CANCEL})},onBlur:function(e){(0,c.tr)(D)&&!e.currentTarget.contains(e.relatedTarget||document.activeElement)&&((0,c.Dx)(A,{reason:l.GB.BLUR}),S&&(S.current=!0,setTimeout((function(){return S.current=!1}),300)))}},f),z=o.createElement("div",(0,r.g)({},f,F,{className:(0,s.l)({block:l.Kk,modifiers:N,className:u}),ref:O}),D&&o.createElement(l.J6.Provider,{value:P},o.createElement(l.Bs.Provider,{value:j},o.createElement(l.AH.Provider,{value:I},o.createElement(a.q,(0,r.g)({},T,{ariaLabel:n||"Menu",externalRef:t,containerRef:O,onClose:A}))))));return E?(0,i.createPortal)(z,document.body):z}));f.defaultProps=(0,r.g)({},u.ao,{menuItemFocus:{}})},88344:(e,t,n)=>{"use strict";n.d(t,{v:()=>p});var r=n(21994),o=n(2784),i=n(99641),a=n(69530),s=n(14073),l=n(28227),u=n(8950),c=n(25202),d=n(82819),f=["aria-label","captureFocus","menuButton","instanceRef","onMenuChange"],h=["openMenu","toggleMenu"],p=(0,o.forwardRef)((function(e,t){var n=e["aria-label"],c=e.menuButton,p=e.instanceRef,g=e.onMenuChange,m=(0,r.v)(e,f),v=(0,a.i)(m),y=v.openMenu,b=v.toggleMenu,w=(0,r.v)(v,h),x=(0,l.tr)(w.state),S=(0,o.useRef)(!1),_=(0,o.useRef)(null),E=(0,o.useCallback)((function(e){b(!1),e.key&&_.current.focus()}),[b]),k=(0,l.Dx)(c,{open:x});if(!k)throw new Error("Menu requires a menuButton prop.");var C=(0,r.g)({ref:(0,s.Q)(k.ref,_)},(0,l.Q)({onClick:function(e){S.current||y(0===e.detail?d.td.FIRST:void 0)},onKeyDown:function(e){var t=!1;switch(e.key){case d.R8.UP:y(d.td.LAST),t=!0;break;case d.R8.DOWN:y(d.td.FIRST),t=!0}t&&e.preventDefault()}},k.props));"MenuButton"===(0,l.oY)(k.type)&&(C.isOpen=x);var A=(0,o.cloneElement)(k,C);(0,u.F)(g,x),(0,o.useImperativeHandle)(p,(function(){return{openMenu:y,closeMenu:function(){return b(!1)}}}));var T=(0,r.g)({},m,w,{"aria-label":n||("string"==typeof k.props.children?k.props.children:"Menu"),anchorRef:_,ref:t,onClose:E,skipOpen:S});return o.createElement(o.Fragment,null,A,o.createElement(i.B,T))}));p.defaultProps=c.ao},2756:(e,t,n)=>{"use strict";n.d(t,{R:()=>u});var r=n(21994),o=n(2784),i=n(60585),a=n(82819),s=n(55930),l=["className","styles"],u=(0,o.memo)((0,o.forwardRef)((function(e,t){var n=e.className,u=e.styles,c=(0,r.v)(e,l);return o.createElement("li",(0,r.g)({role:"separator"},c,{ref:t,className:(0,i.l)({block:a.nJ,element:a.IK,className:n}),style:(0,s.N)(u)}))})))},99174:(e,t,n)=>{"use strict";n.d(t,{t:()=>u});var r=n(21994),o=n(2784),i=n(60585),a=n(82819),s=n(55930),l=["className","styles"],u=(0,o.memo)((0,o.forwardRef)((function(e,t){var n=e.className,u=e.styles,c=(0,r.v)(e,l);return o.createElement("li",(0,r.g)({role:"presentation"},c,{ref:t,className:(0,i.l)({block:a.nJ,element:a.Vg,className:n}),style:(0,s.N)(u)}))})))},34362:(e,t,n)=>{"use strict";n.d(t,{s:()=>p});var r=n(21994),o=n(2784),i=n(26617),a=n(82819),s=n(2710),l=n(14073),u=n(60585),c=n(55930),d=n(28227),f=["className","styles","value","href","type","checked","disabled","index","children","onClick","isHovering","externalRef"],h=["isActive","onKeyUp","onBlur"],p=(0,i.m)((0,o.memo)((function(e){var t=e.className,n=e.styles,i=e.value,p=e.href,g=e.type,m=e.checked,v=e.disabled,y=e.index,b=e.children,w=e.onClick,x=e.isHovering,S=e.externalRef,_=(0,r.v)(e,f),E=!!v;(0,d.Ls)(y,E,b);var k=(0,o.useRef)(),C=function(e,t,n,r){var i=(0,o.useContext)(a.Bs).submenuCloseDelay,s=(0,o.useContext)(a._X),l=s.isParentOpen,u=s.isSubmenuOpen,c=s.dispatch,d=(0,o.useRef)(0),f=function(){n||r||c({type:a.Ay.SET,index:t})};return(0,o.useEffect)((function(){return function(){return clearTimeout(d.current)}}),[]),(0,o.useEffect)((function(){n&&l&&e.current&&e.current.focus()}),[e,n,l]),{setHover:f,onBlur:function(e){n&&!e.currentTarget.contains(e.relatedTarget)&&c({type:a.Ay.UNSET,index:t})},onMouseMove:function(){u?d.current||(d.current=setTimeout((function(){d.current=0,f()}),i)):f()},onMouseLeave:function(e,n){d.current&&(clearTimeout(d.current),d.current=0),n||c({type:a.Ay.UNSET,index:t})}}}(k,y,x,E),A=C.setHover,T=C.onBlur,O=C.onMouseMove,M=C.onMouseLeave,R=(0,o.useContext)(a.AH),L=(0,o.useContext)(a.L1),D=(0,s.z)(x,E),P=D.isActive,j=D.onKeyUp,I=D.onBlur,$=(0,r.v)(D,h),N="radio"===g,F="checkbox"===g,z=!(!p||E||N||F),B=N?L.value===i:!!F&&!!m,H=function(e){if(E)return e.stopPropagation(),void e.preventDefault();var t={value:i,syntheticEvent:e};void 0!==e.key&&(t.key=e.key),F&&(t.checked=!B),N&&(t.name=L.name),(0,d.Dx)(w,t),N&&(0,d.Dx)(L.onRadioChange,t),R.handleClick(t,F||N)},W=(0,o.useMemo)((function(){return Object.freeze({type:g,disabled:E,hover:x,active:P,checked:B,anchor:z})}),[g,E,x,P,B,z]),U=(0,d.Q)((0,r.g)({},$,{onMouseMove:O,onMouseLeave:M,onMouseDown:A,onKeyUp:function(e){if(P)switch(j(e),e.key){case a.R8.ENTER:case a.R8.SPACE:z?k.current.click():H(e)}},onBlur:function(e){I(e),T(e)},onClick:H}),_),Z=(0,r.g)({role:N?"menuitemradio":F?"menuitemcheckbox":"menuitem","aria-checked":N||F?B:void 0},(0,d.$7)(E,x),_,U,{ref:(0,l.Q)(S,k),className:(0,u.l)({block:a.nJ,element:a.np,modifiers:W,className:t}),style:(0,c.N)(n,W)}),V=(0,o.useMemo)((function(){return(0,d.Dx)(b,W)}),[b,W]);return z?o.createElement("li",{role:"presentation"},o.createElement("a",(0,r.g)({},Z,{href:p}),V)):o.createElement("li",Z,V)})),"MenuItem")},78067:(e,t,n)=>{"use strict";n.d(t,{q:()=>m});var r=n(21994),o=n(2784),i=n(28316),a=n(82819),s=n(28227),l=function e(t,n,r){void 0===n&&(n=0);var i=n,a=!1;return{items:o.Children.map(t,(function(t){if(null==t)return null;if(!t.type)return t;var n=(0,s.oY)(t.type);switch(n){case"MenuItem":if(r){var l={type:"radio"};return t.props.disabled||(l.index=i++),(0,o.cloneElement)(t,l)}case"SubMenu":case"FocusableItem":return t.props.disabled?t:(0,o.cloneElement)(t,{index:i++});default:var u=t.props.children;if(null===u||"object"!=typeof u)return t;var c=e(u,i,r||"MenuRadioGroup"===n);if(i=c.index,"MenuGroup"===n){var d=!!t.props.takeOverflow,f=c.descendOverflow;0,a=a||f||d}return(0,o.cloneElement)(t,{children:c.items})}})),index:i,descendOverflow:a}},u=function(e){var t,n,r,o=e.anchorRect,i=e.containerRect,a=e.menuRect,s=e.placeLeftorRightY,l=e.placeLeftX,u=e.placeRightX,c=e.getLeftOverflow,d=e.getRightOverflow,f=e.confineHorizontally,h=e.confineVertically,p=e.arrowRef,g=e.arrow,m=e.direction,v=e.position,y=m,b=s;"initial"!==v&&(b=h(b),"anchor"===v&&(b=Math.min(b,o.bottom-i.top),b=Math.max(b,o.top-i.top-a.height))),"left"===y?(t=l,"initial"!==v&&(n=c(t))<0&&((r=d(u))<=0||-n>r)&&(t=u,y="right")):(t=u,"initial"!==v&&(r=d(t))>0&&((n=c(l))>=0||-n<r)&&(t=l,y="left")),"auto"===v&&(t=f(t));var w=g?function(e){var t=e.arrowRef,n=e.menuY,r=e.anchorRect,o=e.containerRect,i=e.menuRect,a=r.top-o.top-n+r.height/2,s=1.25*t.current.offsetHeight;return a=Math.max(s,a),Math.min(a,i.height-s)}({menuY:b,arrowRef:p,anchorRect:o,containerRect:i,menuRect:a}):void 0;return{arrowY:w,x:t,y:b,computedDirection:y}},c=function(e){var t,n,r,o=e.anchorRect,i=e.containerRect,a=e.menuRect,s=e.placeToporBottomX,l=e.placeTopY,u=e.placeBottomY,c=e.getTopOverflow,d=e.getBottomOverflow,f=e.confineHorizontally,h=e.confineVertically,p=e.arrowRef,g=e.arrow,m=e.direction,v=e.position,y="top"===m?"top":"bottom",b=s;"initial"!==v&&(b=f(b),"anchor"===v&&(b=Math.min(b,o.right-i.left),b=Math.max(b,o.left-i.left-a.width))),"top"===y?(t=l,"initial"!==v&&(n=c(t))<0&&((r=d(u))<=0||-n>r)&&(t=u,y="bottom")):(t=u,"initial"!==v&&(r=d(t))>0&&((n=c(l))>=0||-n<r)&&(t=l,y="top")),"auto"===v&&(t=h(t));var w=g?function(e){var t=e.arrowRef,n=e.menuX,r=e.anchorRect,o=e.containerRect,i=e.menuRect,a=r.left-o.left-n+r.width/2,s=1.25*t.current.offsetWidth;return a=Math.max(s,a),Math.min(a,i.width-s)}({menuX:b,arrowRef:p,anchorRect:o,containerRect:i,menuRect:a}):void 0;return{arrowX:w,x:b,y:t,computedDirection:y}},d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect,f=n(60585),h=n(55930),p=n(14073),g=["ariaLabel","menuClassName","menuStyles","arrowClassName","arrowStyles","anchorPoint","anchorRef","containerRef","externalRef","parentScrollingRef","arrow","align","direction","position","overflow","repositionFlag","captureFocus","state","endTransition","isDisabled","menuItemFocus","offsetX","offsetY","children","onClose"],m=function(e){var t=e.ariaLabel,n=e.menuClassName,m=e.menuStyles,b=e.arrowClassName,w=e.arrowStyles,x=e.anchorPoint,S=e.anchorRef,_=e.containerRef,E=e.externalRef,k=e.parentScrollingRef,C=e.arrow,A=e.align,T=e.direction,O=e.position,M=e.overflow,R=e.repositionFlag,L=e.captureFocus,D=void 0===L||L,P=e.state,j=e.endTransition,I=e.isDisabled,$=e.menuItemFocus,N=e.offsetX,F=e.offsetY,z=e.children,B=e.onClose,H=(0,r.v)(e,g),W=(0,o.useState)({x:0,y:0}),U=W[0],Z=W[1],V=(0,o.useState)({}),G=V[0],q=V[1],Y=(0,o.useState)(),K=Y[0],X=Y[1],Q=(0,o.useState)(T),J=Q[0],ee=Q[1],te=(0,o.useContext)(a.J6),ne=te.transition,re=te.boundingBoxRef,oe=te.boundingBoxPadding,ie=te.rootMenuRef,ae=te.rootAnchorRef,se=te.scrollingRef,le=te.anchorScrollingRef,ue=te.reposition,ce=te.viewScroll,de=(0,o.useContext)(a.b7).reposSubmenu||R,fe=(0,o.useRef)(null),he=(0,o.useRef)(null),pe=(0,o.useRef)(!1),ge=(0,o.useRef)({width:0,height:0}),me=(0,o.useRef)((function(){})),ve=(0,s.tr)(P),ye=(0,s.us)(ne,"open"),be=(0,s.us)(ne,"close"),we=(0,o.useMemo)((function(){return l(z)}),[z]),xe=we.items,Se=we.index,_e=we.descendOverflow,Ee=(0,o.useReducer)((function(e,t){var n=e.hoverIndex,r=e.openSubmenuCount;return{hoverIndex:v(n,t,Se),openSubmenuCount:y(r,t)}}),{hoverIndex:a.bz,openSubmenuCount:0}),ke=Ee[0],Ce=ke.hoverIndex,Ae=ke.openSubmenuCount,Te=Ee[1],Oe=(0,o.useReducer)((function(e){return e+1}),1),Me=Oe[0],Re=Oe[1],Le=(0,o.useCallback)((function(){if(_.current){se.current||(se.current=re?re.current:(0,s.GZ)(ie.current));var e=function(e){var t=e.menuRef,n=e.containerRef,r=e.scrollingRef,o=e.boundingBoxPadding,i=t.current.getBoundingClientRect(),a=n.current.getBoundingClientRect(),l=r.current===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:r.current.getBoundingClientRect(),u=(0,s.dj)(o),c=function(e){return e+a.left-l.left-u.left},d=function(e){return e+a.left+i.width-l.right+u.right},f=function(e){return e+a.top-l.top-u.top},h=function(e){return e+a.top+i.height-l.bottom+u.bottom};return{menuRect:i,containerRect:a,getLeftOverflow:c,getRightOverflow:d,getTopOverflow:f,getBottomOverflow:h,confineHorizontally:function(e){var t=c(e);if(t<0)e-=t;else{var n=d(e);n>0&&(t=c(e-=n))<0&&(e-=t)}return e},confineVertically:function(e){var t=f(e);if(t<0)e-=t;else{var n=h(e);n>0&&(t=f(e-=n))<0&&(e-=t)}return e}}}({menuRef:fe,containerRef:_,scrollingRef:se,boundingBoxPadding:oe}),t=e.menuRect,n={computedDirection:"bottom"};x?n=function(e){var t,n,r=e.positionHelpers,o=e.anchorPoint,i=r.menuRect,a=r.containerRect,s=r.getLeftOverflow,l=r.getRightOverflow,u=r.getTopOverflow,c=r.getBottomOverflow,d=r.confineHorizontally,f=r.confineVertically;t=o.x-a.left,n=o.y-a.top;var h=l(t);if(h>0){var p=t-i.width,g=s(p);(g>=0||-g<h)&&(t=p),t=d(t)}var m="bottom",v=c(n);if(v>0){var y=n-i.height,b=u(y);(b>=0||-b<v)&&(n=y,m="top"),n=f(n)}return{x:t,y:n,computedDirection:m}}({positionHelpers:e,anchorPoint:x}):S&&(n=function(e){var t=e.arrow,n=e.align,o=e.direction,i=e.offsetX,a=e.offsetY,s=e.position,l=e.anchorRef,d=e.arrowRef,f=e.positionHelpers,h=f.menuRect,p=f.containerRect,g=i,m=a;t&&("left"===o||"right"===o?g+=d.current.offsetWidth:m+=d.current.offsetHeight);var v,y,b=l.current.getBoundingClientRect(),w=b.left-p.left-h.width-g,x=b.right-p.left+g,S=b.top-p.top-h.height-m,_=b.bottom-p.top+m;"end"===n?(v=b.right-p.left-h.width,y=b.bottom-p.top-h.height):"center"===n?(v=b.left-p.left-(h.width-b.width)/2,y=b.top-p.top-(h.height-b.height)/2):(v=b.left-p.left,y=b.top-p.top),v+=g,y+=m;var E=(0,r.g)({},f,{anchorRect:b,placeLeftX:w,placeRightX:x,placeLeftorRightY:y,placeTopY:S,placeBottomY:_,placeToporBottomX:v,arrowRef:d,arrow:t,direction:o,position:s});switch(o){case"left":case"right":return u(E);default:return c(E)}}({arrow:C,align:A,direction:T,offsetX:N,offsetY:F,position:O,anchorRef:S,arrowRef:he,positionHelpers:e}));var o=n,i=o.arrowX,a=o.arrowY,l=o.x,d=o.y,f=o.computedDirection,h=t.height;if("visible"!==M){var p,g,m=e.getTopOverflow,v=e.getBottomOverflow,y=ge.current.height,b=v(d);if(b>0||(0,s.eO)(b,0)&&(0,s.eO)(h,y))p=h-b,g=b;else{var w=m(d);(w<0||(0,s.eO)(w,0)&&(0,s.eO)(h,y))&&(g=0-w,(p=h+w)>=0&&(d-=w))}p>=0?(h=p,X({height:p,overflowAmt:g})):X()}C&&q({x:i,y:a}),Z({x:l,y:d}),ee(f),ge.current={width:t.width,height:h}}}),[C,A,oe,T,N,F,O,M,x,S,_,re,ie,se]);d((function(){ve&&(Le(),pe.current&&Re()),pe.current=ve,me.current=Le}),[ve,Le,de]),d((function(){K&&!_e&&(fe.current.scrollTop=0)}),[K,_e]),(0,o.useEffect)((function(){if(ve){!le.current&&ae&&ae.current.tagName&&(le.current=(0,s.GZ)(ae.current));var e=se.current,t=e&&e.addEventListener?e:window,n=le.current||t,r=ce;if(n!==t&&"initial"===r&&(r="auto"),"initial"!==r){"auto"===r&&"visible"!==M&&(r="close");var o=function(){"auto"===r?(0,s.MA)(Le):(0,s.Dx)(B,{reason:a.GB.SCROLL})},i=n!==t&&"initial"!==ce?[n,t]:[n];return i.forEach((function(e){return e.addEventListener("scroll",o)})),function(){return i.forEach((function(e){return e.removeEventListener("scroll",o)}))}}}}),[ae,le,se,ve,M,B,ce,Le]);var De=!!K&&K.overflowAmt>0;(0,o.useEffect)((function(){if(!De&&ve&&k){var e=function(){return(0,s.MA)(Le)},t=k.current;return t.addEventListener("scroll",e),function(){return t.removeEventListener("scroll",e)}}}),[ve,De,k,Le]),(0,o.useEffect)((function(){if("function"==typeof ResizeObserver&&"initial"!==ue){var e=new ResizeObserver((function(e){var t,n,r=e[0],o=r.borderBoxSize,a=r.target;if(o){var l=o[0]||o;t=l.inlineSize,n=l.blockSize}else{var u=a.getBoundingClientRect();t=u.width,n=u.height}0!==t&&0!==n&&((0,s.eO)(t,ge.current.width,1)&&(0,s.eO)(n,ge.current.height,1)||(0,i.flushSync)((function(){me.current(),Re()})))})),t=fe.current;return e.observe(t,{box:"border-box"}),function(){return e.unobserve(t)}}}),[ue]),(0,o.useEffect)((function(){if(!ve)return Te({type:a.Ay.RESET}),void(be||X());var e=$||{},t=e.position,n=e.alwaysUpdate,r=function(){t===a.td.FIRST?Te({type:a.Ay.FIRST}):t===a.td.LAST?Te({type:a.Ay.LAST}):t>=0&&t<Se&&Te({type:a.Ay.SET,index:t})};if(n)r();else if(D){var o=setTimeout((function(){fe.current&&!fe.current.contains(document.activeElement)&&(fe.current.focus(),r())}),ye?170:100);return function(){return clearTimeout(o)}}}),[ye,be,D,ve,$,Se]);var Pe,je,Ie=Ae>0,$e=(0,o.useMemo)((function(){return{parentMenuRef:fe,parentOverflow:M,isParentOpen:ve,isSubmenuOpen:Ie,dispatch:Te}}),[ve,Ie,M]);K&&(_e?je=K.overflowAmt:Pe=K.height);var Ne=(0,o.useMemo)((function(){return{reposSubmenu:Me,overflow:M,overflowAmt:je}}),[Me,M,je]),Fe=Pe>=0?{maxHeight:Pe,overflow:M}:void 0,ze=(0,o.useMemo)((function(){return{state:P,dir:J}}),[P,J]),Be=(0,o.useMemo)((function(){return Object.freeze({dir:J})}),[J]),He=(0,f.l)({block:a.nJ,element:a.fM,modifiers:Be,className:b}),We=(0,h.N)(w,Be),Ue=(0,s.Q)({onKeyDown:function(e){var t=!1;switch(e.key){case a.R8.HOME:Te({type:a.Ay.FIRST}),t=!0;break;case a.R8.END:Te({type:a.Ay.LAST}),t=!0;break;case a.R8.UP:Te({type:a.Ay.DECREASE}),t=!0;break;case a.R8.DOWN:Te({type:a.Ay.INCREASE}),t=!0;break;case a.R8.SPACE:e.target&&-1!==e.target.className.indexOf(a.nJ)&&e.preventDefault()}t&&(e.preventDefault(),e.stopPropagation())},onAnimationEnd:function(){"closing"===P&&X(),(0,s.Dx)(j)}},H);return o.createElement("ul",(0,r.g)({role:"menu","aria-label":t},(0,s.$7)(I),H,Ue,{ref:(0,p.Q)(E,fe),className:(0,f.l)({block:a.nJ,modifiers:ze,className:n}),style:(0,r.g)({},(0,h.N)(m,ze),Fe,{left:U.x,top:U.y})}),C&&o.createElement("div",{className:He,style:(0,r.g)({},We,{left:G.x,top:G.y}),ref:he}),o.createElement(a.b7.Provider,{value:Ne},o.createElement(a._X.Provider,{value:$e},o.createElement(a.R9.Provider,{value:Ce},xe))))};function v(e,t,n){var r=t.type,o=t.index;switch(r){case a.Ay.RESET:return a.bz;case a.Ay.SET:return o;case a.Ay.UNSET:return e===o?a.bz:e;case a.Ay.DECREASE:var i=e;return--i<0&&(i=n-1),i;case a.Ay.INCREASE:var s=e;return++s>=n&&(s=0),s;case a.Ay.FIRST:return n>0?0:a.bz;case a.Ay.LAST:return n>0?n-1:a.bz;default:return e}}function y(e,t){switch(t.type){case a.kY.OPEN:return e+1;case a.kY.CLOSE:return Math.max(e-1,0);default:return e}}},61791:(e,t,n)=>{"use strict";n.d(t,{W:()=>x});var r=n(21994),o=n(2784),i=n(28316),a=n(78067),s=n(26617),l=n(28227),u=n(69530),c=n(2710),d=n(8950),f=n(60585),h=n(82819),p=n(14073),g=n(55930),m=n(25202),v=["aria-label","className","disabled","label","index","openTrigger","onMenuChange","isHovering","instanceRef","captureFocus","repositionFlag","itemProps"],y=["openMenu","toggleMenu","state"],b=["isActive","onKeyUp"],w=["ref","className","styles"],x=(0,s.m)((0,o.memo)((function(e){var t=e["aria-label"],n=e.className,s=e.disabled,m=e.label,x=e.index,S=e.openTrigger,_=e.onMenuChange,E=e.isHovering,k=e.instanceRef,C=e.itemProps,A=void 0===C?{}:C,T=(0,r.v)(e,v),O=!!s;(0,l.Ls)(x,O,m);var M=(0,o.useContext)(h.J6),R=M.initialMounted,L=M.unmountOnClose,D=M.transition,P=M.transitionTimeout,j=M.rootMenuRef,I=(0,o.useContext)(h.Bs),$=I.submenuOpenDelay,N=I.submenuCloseDelay,F=(0,o.useContext)(h._X),z=F.parentMenuRef,B=F.parentOverflow,H=F.isParentOpen,W=F.isSubmenuOpen,U=F.dispatch,Z="visible"!==B,V=(0,u.i)({initialMounted:R,unmountOnClose:L,transition:D,transitionTimeout:P}),G=V.openMenu,q=V.toggleMenu,Y=V.state,K=(0,r.v)(V,y),X=(0,l.tr)(Y),Q=(0,c.z)(E,O,h.R8.RIGHT),J=Q.isActive,ee=Q.onKeyUp,te=(0,r.v)(Q,b),ne=(0,o.useRef)(null),re=(0,o.useRef)(null),oe=(0,o.useRef)(0),ie=function(){oe.current&&(clearTimeout(oe.current),oe.current=0)},ae=function(){ie(),!O&&G.apply(void 0,arguments)},se=function(){return!E&&!O&&U({type:h.Ay.SET,index:x})},le=function(e){se(),S||(oe.current=setTimeout((function(){return(0,l.MA)(ae)}),Math.max(e,0)))};(0,o.useEffect)((function(){return function(){return clearTimeout(oe.current)}}),[]),(0,o.useEffect)((function(){E&&H?re.current.focus():q(!1)}),[E,H,q]),(0,o.useEffect)((function(){U({type:X?h.kY.OPEN:h.kY.CLOSE})}),[U,X]),(0,d.F)(_,X),(0,o.useImperativeHandle)(k,(function(){return{openMenu:function(){H&&(se(),ae.apply(void 0,arguments))},closeMenu:function(){X&&(re.current.focus(),q(!1))}}}));var ue,ce=(0,o.useMemo)((function(){return Object.freeze({open:X,hover:E,active:J,disabled:O,submenu:!0})}),[X,E,J,O]),de=A.ref,fe=A.className,he=A.styles,pe=(0,r.v)(A,w),ge=(0,l.Q)((0,r.g)({},te,{onMouseMove:function(){oe.current||X||O||(W?oe.current=setTimeout((function(){return le($-N)}),N):le($))},onMouseLeave:function(){ie(),X||U({type:h.Ay.UNSET,index:x})},onMouseDown:se,onClick:function(){return"none"!==S&&ae()},onKeyUp:function(e){if(J)switch(ee(e),e.key){case h.R8.ENTER:case h.R8.SPACE:case h.R8.RIGHT:"none"!==S&&ae(h.td.FIRST)}}}),pe);return o.createElement("li",{className:(0,f.l)({block:h.nJ,element:h.uQ,className:n}),role:"presentation",ref:ne,onKeyDown:function(e){var t=!1;switch(e.key){case h.R8.LEFT:X&&(re.current.focus(),q(!1),t=!0);break;case h.R8.RIGHT:X||(t=!0)}t&&(e.preventDefault(),e.stopPropagation())}},o.createElement("div",(0,r.g)({role:"menuitem","aria-haspopup":!0,"aria-expanded":X},(0,l.$7)(O,E),pe,ge,{ref:(0,p.Q)(de,re),className:(0,f.l)({block:h.nJ,element:h.np,modifiers:ce,className:fe}),style:(0,g.N)(he,ce)}),(0,o.useMemo)((function(){return(0,l.Dx)(m,ce)}),[m,ce])),Y&&(ue=o.createElement(a.q,(0,r.g)({},T,K,{state:Y,ariaLabel:t||("string"==typeof m?m:"Submenu"),anchorRef:re,containerRef:Z?j:ne,parentScrollingRef:Z&&z,isDisabled:O})),Z?(0,i.createPortal)(ue,j.current):ue))})),"SubMenu");x.defaultProps=(0,r.g)({},m.Rw,{direction:"right"})},2710:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(2784),o=n(82819),i=function(e,t,n){var i=(0,r.useState)(!1),a=i[0],s=i[1],l=[o.R8.ENTER,o.R8.SPACE].concat(n),u=function(){return a&&s(!1)};return{isActive:a,onPointerDown:function(){t||s(!0)},onPointerUp:u,onPointerLeave:u,onKeyDown:function(n){a||!e||t||-1===l.indexOf(n.key)||s(!0)},onKeyUp:function(e){-1!==l.indexOf(e.key)&&s(!1)},onBlur:function(e){a&&!e.currentTarget.contains(e.relatedTarget)&&s(!1)}}}},60585:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(2784),o=function(e){var t=e.block,n=e.element,o=e.modifiers,i=e.className;return(0,r.useMemo)((function(){for(var e=n?t+"__"+n:t,r=e,a=0,s=Object.keys(o||{});a<s.length;a++){var l=s[a],u=o[l];u&&(r+=" "+e+"--",r+=!0===u?l:l+"-"+u)}var c="function"==typeof i?i(o):i;return"string"==typeof c&&(c=c.trim())&&(r+=" "+c),r}),[t,n,o,i])}},14073:(e,t,n)=>{"use strict";n.d(t,{Q:()=>i});var r=n(2784),o=function(e,t){"function"==typeof e?e(t):e&&(e.current=t)},i=function(e,t){return(0,r.useMemo)((function(){return e?t?function(n){o(e,n),o(t,n)}:e:t}),[e,t])}},55930:(e,t,n)=>{"use strict";n.d(t,{N:()=>s});var r=n(21994),o=n(2784),i=function(e){return e&&"object"==typeof e},a=function(e){return"$"===e[0]?e.slice(1):e},s=function(e,t){return(0,o.useMemo)((function(){if("function"==typeof e)return e(t);if(i(e)){if(!t)return e;for(var n={},o=0,s=Object.keys(e);o<s.length;o++){var l=s[o],u=e[l];if(i(u)){var c=t[a(l)];if("string"==typeof c)for(var d=0,f=Object.keys(u);d<f.length;d++){var h=f[d],p=u[h];i(p)?a(h)===c&&(n=(0,r.g)({},n,p)):n[h]=p}else c&&(n=(0,r.g)({},n,u))}else n[l]=u}return n}}),[e,t])}},8950:(e,t,n)=>{"use strict";n.d(t,{F:()=>i});var r=n(2784),o=n(28227),i=function(e,t){var n=(0,r.useRef)(t);(0,r.useEffect)((function(){n.current!==t&&(0,o.Dx)(e,{open:t}),n.current=t}),[e,t])}},24554:(e,t,n)=>{"use strict";n.d(t,{w:()=>u});var r=n(2784),o=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],i=function(e){return e?6:5},a=function(e,t,n,r,i){clearTimeout(r.current),t(e),n.current=e,i&&i({state:o[e]})},s=n(28227),l=n(82819),u=function(e){var t=void 0===e?{}:e,n=t.initialMounted,u=t.unmountOnClose,c=t.transition,d=function(e){var t,n,s=void 0===e?{}:e,l=s.enter,u=void 0===l||l,c=s.exit,d=void 0===c||c,f=s.preEnter,h=s.preExit,p=s.timeout,g=s.initialEntered,m=s.mountOnEnter,v=s.unmountOnExit,y=s.onChange,b=(0,r.useState)(g?2:i(m)),w=b[0],x=b[1],S=(0,r.useRef)(w),_=(0,r.useRef)();"object"==typeof p?(t=p.enter,n=p.exit):t=n=p;var E=(0,r.useCallback)((function(){var e;switch(S.current){case 1:case 0:e=2;break;case 4:case 3:e=i(v)}void 0!==e&&a(e,x,S,_,y)}),[y,v]),k=(0,r.useCallback)((function(e){var r=function e(r){switch(a(r,x,S,_,y),r){case 1:t>=0&&(_.current=setTimeout(E,t));break;case 4:n>=0&&(_.current=setTimeout(E,n));break;case 0:case 3:_.current=setTimeout((function(){return e(r+1)}),0)}},o=S.current<=2;"boolean"!=typeof e&&(e=!o),e?o||r(u?f?0:1:2):o&&r(d?h?3:4:i(v))}),[E,y,u,d,f,h,t,n,v]);return(0,r.useEffect)((function(){return function(){return clearTimeout(_.current)}}),[]),[o[w],k,E]}({mountOnEnter:!n,unmountOnExit:u,timeout:t.transitionTimeout,enter:(0,s.us)(c,"open"),exit:(0,s.us)(c,"close")}),f=d[0],h=d[1],p=d[2];return{state:l._f[f],toggleMenu:h,endTransition:p}}},69530:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(21994),o=n(2784),i=n(24554),a=function(e){var t=(0,i.w)(e),n=(0,o.useState)(),a=n[0],s=n[1];return(0,r.g)({},t,{openMenu:function(e,n){s({position:e,alwaysUpdate:n}),t.toggleMenu(!0)},menuItemFocus:a})}},82819:(e,t,n)=>{"use strict";n.d(t,{AH:()=>g,Ay:()=>w,Bs:()=>y,GB:()=>S,IK:()=>l,J6:()=>v,Kk:()=>o,L1:()=>m,R8:()=>b,R9:()=>f,Vg:()=>u,_X:()=>h,_f:()=>E,b7:()=>p,bz:()=>d,fM:()=>a,kY:()=>x,nJ:()=>i,np:()=>s,td:()=>_,uQ:()=>c});var r=n(2784),o="szh-menu-container",i="szh-menu",a="arrow",s="item",l="divider",u="header",c="submenu",d=-1,f=(0,r.createContext)(d),h=(0,r.createContext)({}),p=(0,r.createContext)({}),g=(0,r.createContext)({}),m=(0,r.createContext)({}),v=(0,r.createContext)({}),y=(0,r.createContext)({}),b=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),w=Object.freeze({RESET:"HOVER_RESET",SET:"HOVER_SET",UNSET:"HOVER_UNSET",INCREASE:"HOVER_INCREASE",DECREASE:"HOVER_DECREASE",FIRST:"HOVER_FIRST",LAST:"HOVER_LAST"}),x=Object.freeze({OPEN:"SUBMENU_OPEN",CLOSE:"SUBMENU_CLOSE"}),S=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),_=Object.freeze({INITIAL:"initial",FIRST:"first",LAST:"last"}),E=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"})},25202:(e,t,n)=>{"use strict";n.d(t,{Rw:()=>s,ao:()=>l});var r=n(21994),o=n(13980),i=function(e){var t;return(t={})[e?e+"ClassName":"className"]=(0,o.oneOfType)([o.string,o.func]),t[e?e+"Styles":"styles"]=(0,o.oneOfType)([o.object,o.func]),t},a=(0,r.g)({className:o.string},i("menu"),i("arrow"),{arrow:o.bool,offsetX:o.number,offsetY:o.number,align:(0,o.oneOf)(["start","center","end"]),direction:(0,o.oneOf)(["left","right","top","bottom"]),position:(0,o.oneOf)(["auto","anchor","initial"]),overflow:(0,o.oneOf)(["auto","visible","hidden"])}),s=(o.object,o.bool,o.bool,o.bool,o.bool,o.bool,o.bool,o.number,o.object,o.string,o.string,o.number,o.number,o.number,o.bool,o.string,o.func,o.object,o.func,o.func,{offsetX:0,offsetY:0,align:"start",direction:"bottom",position:"auto",overflow:"visible"}),l=(0,r.g)({},s,{reposition:"auto",viewScroll:"initial",transitionTimeout:500,submenuOpenDelay:300,submenuCloseDelay:150})},28227:(e,t,n)=>{"use strict";n.d(t,{$7:()=>m,Dx:()=>l,GZ:()=>p,Ls:()=>g,MA:()=>i,Q:()=>f,YJ:()=>d,dj:()=>h,eO:()=>a,oY:()=>u,tr:()=>o,us:()=>s,zi:()=>c});var r=n(28316),o=function(e){return!!e&&"o"===e[0]},i=r.unstable_batchedUpdates||function(e){return e()},a=(Object.values,function(e,t,n){return void 0===n&&(n=1e-4),Math.abs(e-t)<n}),s=function(e,t){return!(!e||!e[t])||!0===e},l=function(e,t){return"function"==typeof e?e(t):e},u=function(e){return e&&e._szhsinMenu},c=function(e,t){return t?Object.defineProperty(e,"_szhsinMenu",{value:t}):e},d=function(e){return function(t){return c(t,u(e))}},f=function(e,t){if(!t)return e;for(var n={},r=function(r,o){var i=o[r],a=e[i],s=t[i],l=void 0;l="function"==typeof s?function(e){s(e),a(e)}:a,n[i]=l},o=0,i=Object.keys(e);o<i.length;o++)r(o,i);return n},h=function(e){if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};var t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?n:t[1];return{top:n,right:r,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?r:t[3]}},p=function(e){for(;e&&e!==document.body;){var t=getComputedStyle(e),n=t.overflow,r=t.overflowX,o=t.overflowY;if(/auto|scroll|overlay|hidden/.test(n+o+r))return e;e=e.parentNode}return window},g=function(e,t,n){};function m(e,t){return{"aria-disabled":e||void 0,tabIndex:e?void 0:t?0:-1}}},26617:(e,t,n)=>{"use strict";n.d(t,{m:()=>s});var r=n(21994),o=n(2784),i=n(82819),a=n(28227),s=function(e,t){var n=(0,a.zi)((0,o.forwardRef)((function(t,n){return o.createElement(e,(0,r.g)({},t,{externalRef:n,isHovering:(0,o.useContext)(i.R9)===t.index}))})),t);return n.displayName="WithHovering("+t+")",n}},18057:(e,t,n)=>{"use strict";n.d(t,{Z:()=>X});var r=n(2784);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new C(o||[]);return r(a,"_invoke",{value:S(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function p(){}function g(){}var m={};u(m,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(A([])));y&&y!==t&&n.call(y,i)&&(m=y);var b=g.prototype=h.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,s){var l=d(e[r],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?t.resolve(c.__await).then((function(e){o("next",e,a,s)}),(function(e){o("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return o("throw",e,a,s)}))}s(l.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function S(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:p,configurable:!0}),p.displayName=u(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,s,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),u(b,l,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function s(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,l,"next",e)}function l(e){s(i,r,o,a,l,"throw",e)}a(void 0)}))}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function g(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function m(e,t,n){return m=g()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&p(o,n.prototype),o},m.apply(null,arguments)}function v(e){var t="function"==typeof Map?new Map:void 0;return v=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return m(e,arguments,h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},v(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){var t=g();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,n)}}function w(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var x=void 0!==n.g&&"[object global]"==={}.toString.call(n.g);function S(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function _(e){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(e)}function E(e){return/^https:\/\/player\.vimeo\.com\/video\/\d+/.test(e)}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.url,r=t||n;if(!r)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(function(e){return!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e}(r))return"https://vimeo.com/".concat(r);if(_(r))return r.replace("http:","https:");if(t)throw new TypeError("“".concat(t,"” is not a valid video id."));throw new TypeError("“".concat(r,"” is not a vimeo.com url."))}var C=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",i="string"==typeof t?[t]:t;return i.forEach((function(t){e[r](t,n)})),{cancel:function(){return i.forEach((function(t){return e[o](t,n)}))}}},A=void 0!==Array.prototype.indexOf,T="undefined"!=typeof window&&void 0!==window.postMessage;if(!(x||A&&T))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id","_WeakMap"+"_"+i()+"."+i()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!o(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function i(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",(function(e){if(n(this,"delete"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),r(e.prototype,"get",(function(e){if(n(this,"get"),o(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),r(e.prototype,"has",(function(e){if(n(this,"has"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),r(e.prototype,"set",(function(e,t){if(n(this,"set"),!o(e))throw new TypeError("Invalid value used as weak map key");var i=e[this._id];return i&&i[0]===e?(i[1]=t,this):(r(e,this._id,[e,t]),this)})),r(e,"_polyfill",!0),e}()}function o(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:O);var M=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function i(e,r){n.add(e,r),t||(t=o(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var r,o;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=a(r))?o.call(r,n.resolve,n.reject):n.resolve(r)}catch(e){n.reject(e)}}function u(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?i((function(){var r=new f(n);try{t.call(e,(function(){u.apply(r,arguments)}),(function(){c.apply(r,arguments)}))}catch(e){c.call(r,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&i(s,n))}catch(e){c.call(new f(n),e)}}}function c(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&i(s,t))}function d(e,t,n,r){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){n(o,e)}),r)}(o)}function f(e){this.def=e,this.triggered=!1}function h(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new h(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t})),t.chain.push(r),0!==t.state&&i(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){u.call(t,e)}),(function(e){c.call(t,e)}))}catch(e){c.call(t,e)}}n=function(){var e,n,r;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,i){r=new o(t,i),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var g=e({},"constructor",p,!1);return p.prototype=g,e(g,"__NPO__",0,!1),e(p,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(p,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(p,"all",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var o=e.length,i=Array(o),a=0;d(t,e,(function(e,t){i[e]=t,++a===o&&n(i)}),r)}))})),e(p,"race",(function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t((function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");d(t,e,(function(e,t){n(t)}),r)}))})),p},(n=O)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])})),R=new WeakMap;function L(e,t,n){var r=R.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),R.set(e.element,r)}function D(e,t){return(R.get(e.element)||{})[t]||[]}function P(e,t,n){var r=R.get(e.element)||{};if(!r[t])return!0;if(!n)return r[t]=[],R.set(e.element,r),!0;var o=r[t].indexOf(n);return-1!==o&&r[t].splice(o,1),R.set(e.element,r),r[t]&&0===r[t].length}function j(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function I(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var r={method:t};void 0!==n&&(r.value=n);var o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}}function $(e,t){var n,r=[];if((t=j(t)).event){if("error"===t.event)D(e,t.data.method).forEach((function(n){var r=new Error(t.data.message);r.name=t.data.name,n.reject(r),P(e,t.data.method,n)}));r=D(e,"event:".concat(t.event)),n=t.data}else if(t.method){var o=function(e,t){var n=D(e,t);if(n.length<1)return!1;var r=n.shift();return P(e,t,r),r}(e,t.method);o&&(r.push(o),n=t.value)}r.forEach((function(t){try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}}))}var N=["autopause","autoplay","background","byline","color","colors","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N.reduce((function(t,n){var r=e.getAttribute("data-vimeo-".concat(n));return(r||""===r)&&(t[n]=""===r?1:r),t}),t)}function z(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(r,o){if(!_(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var i="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(e));for(var a in t)t.hasOwnProperty(a)&&(i+="&".concat(a,"=").concat(encodeURIComponent(t[a])));var s="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;s.open("GET",i,!0),s.onload=function(){if(404!==s.status)if(403!==s.status)try{var t=JSON.parse(s.responseText);if(403===t.domain_status_code)return z(t,n),void o(new Error("“".concat(e,"” is not embeddable.")));r(t)}catch(e){o(e)}else o(new Error("“".concat(e,"” is not embeddable.")));else o(new Error("“".concat(e,"” was not found.")))},s.onerror=function(){var e=s.status?" (".concat(s.status,")"):"";o(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},s.send()}))}var H={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(s,e);var t,n,r,o=b(s);function s(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=arguments.length>3?arguments[3]:void 0;return u(this,s),f(y(n=o.call(this)),"logger",void 0),f(y(n),"speedAdjustment",0),f(y(n),"adjustSpeed",function(){var e=l(a().mark((function e(t,r){var o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.speedAdjustment!==r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=n.speedAdjustment,e.t2=e.t0-e.t1,e.t3=r,o=e.t2+e.t3,n.log("New playbackRate:  ".concat(o)),e.next=12,t.setPlaybackRate(o);case 12:n.speedAdjustment=r;case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),n.logger=c,n.init(t,e,i(i({},H),r)),n}return d(s,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(r=l(a().mark((function e(t,n,r){var o,i,s,l=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==r.role){e.next=10;break}return e.next=5,this.updatePlayer(t,n,r);case 5:o=C(t,"change",(function(){return l.updatePlayer(t,n,r)})),i=this.maintainPlaybackPosition(t,n,r),this.addEventListener("disconnect",(function(){i.cancel(),o.cancel()})),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:s=C(n,["seeked","play","pause","ratechange"],(function(){return l.updateTimingObject(t,n)}),"on","off"),this.addEventListener("disconnect",(function(){return s.cancel()}));case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateTimingObject",value:(n=l(a().mark((function e(t,n){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"updatePlayer",value:(t=l(a().mark((function e(t,n,r){var o,i,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.query(),i=o.position,s=o.velocity,"number"==typeof i&&n.setCurrentTime(i),"number"!=typeof s){e.next=25;break}if(0!==s){e.next=11;break}return e.next=6,n.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(!(s>0)){e.next=25;break}return e.next=14,n.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,n.play().catch(function(){var e=l(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"!==t.name||!r.autoPlayMuted){e.next=5;break}return e.next=3,n.setMuted(!0);case 3:return e.next=5,n.play().catch((function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,n,r);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=s,e.t2===e.t3){e.next=25;break}n.setPlaybackRate(s);case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,n){var r=this,o=n.allowedDrift,i=n.maxAllowedDrift,s=n.minCheckInterval,u=n.maxRateAdjustment,c=n.maxTimeToCatchUp,d=1e3*Math.min(c,Math.max(s,i)),f=function(){var n=l(a().mark((function n(){var s,l,d,f,h;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,s=n.t2-n.t3,l=Math.abs(s),r.log("Drift: ".concat(s)),!(l>i)){n.next=22;break}return n.next=18,r.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),r.log("Resync by currentTime"),n.next=29;break;case 22:if(!(l>o)){n.next=29;break}return h=(d=l/c)<(f=u)?(f-d)/2:f,n.next=28,r.adjustSpeed(t,h*Math.sign(s));case 28:r.log("Resync by playbackRate");case 29:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),h=setInterval((function(){return f()}),d);return{cancel:function(){return clearInterval(h)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise((function(n){!function r(){e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})}()}))}}]),s}(v(EventTarget)),U=new WeakMap,Z=new WeakMap,V={},G=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==t.nodeName){var o=t.querySelector("iframe");o&&(t=o)}if("IFRAME"===t.nodeName&&!_(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(U.has(t))return U.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var i=new M((function(e,o){if(n._onMessage=function(t){if(_(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var r=j(t.data);if(r&&"error"===r.event&&r.data&&"ready"===r.data.method){var i=new Error(r.data.message);return i.name=r.data.name,void o(i)}var a=r&&"ready"===r.event,s=r&&"ping"===r.method;if(a||s)return n.element.setAttribute("data-ready","true"),void e();$(n,r)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var i=F(t,r);B(k(i),i,t).then((function(e){var r,o,i,a=z(e,t);return n.element=a,n._originalElement=t,r=t,o=a,i=R.get(r),R.set(o,i),R.delete(r),U.set(n.element,n),e})).catch(o)}}));if(Z.set(this,i),U.set(this.element,this),"IFRAME"===this.element.nodeName&&I(this,"ping"),V.isEnabled){var a=function(){return V.exit()};this.fullscreenchangeHandler=function(){V.isFullscreen?L(n,"event:exitFullscreen",a):P(n,"event:exitFullscreen",a),n.ready().then((function(){I(n,"fullscreenchange",V.isFullscreen)}))},V.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t;return d(e,[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new M((function(r,o){return t.ready().then((function(){L(t,e,{resolve:r,reject:o}),I(t,e,n)})).catch(o)}))}},{key:"get",value:function(e){var t=this;return new M((function(n,r){return e=S(e,"get"),t.ready().then((function(){L(t,e,{resolve:n,reject:r}),I(t,e)})).catch(r)}))}},{key:"set",value:function(e,t){var n=this;return new M((function(r,o){if(e=S(e,"set"),null==t)throw new TypeError("There must be a value to set.");return n.ready().then((function(){L(n,e,{resolve:r,reject:o}),I(n,e,t)})).catch(o)}))}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===D(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch((function(){})),L(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");P(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch((function(e){}))}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=Z.get(this)||new M((function(e,t){t(new Error("Unknown player. Probably unloaded."))}));return M.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return V.isEnabled?V.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return V.isEnabled?V.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return V.isEnabled?M.resolve(V.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new M((function(t){if(Z.delete(e),U.delete(e.element),e._originalElement&&(U.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),V.isEnabled&&V.off("fullscreenchange",e.fullscreenchangeHandler),t()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return M.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new M((function(e,t){return t(new TypeError("Argument must be an array."))}));var t=new M((function(e){return e(null)})),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return M.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(t=l(a().mark((function e(t,n){var r,o=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return r=new W(this,t,n),I(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",(function(){return I(o,"notifyTimingObjectDisconnect")})),e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}();x||(V=function(){var e=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,r=t.length,o={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise((function(r,o){var i=function e(){n.off("fullscreenchange",e),r()};n.on("fullscreenchange",i);var a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(i).catch(o)}))},exit:function(){return new Promise((function(t,r){if(n.isFullscreen){var o=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",o);var i=document[e.exitFullscreen]();i instanceof Promise&&i.then(o).catch(r)}else t()}))},on:function(e,n){var r=t[e];r&&document.addEventListener(r,n)},off:function(e,n){var r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach((function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=F(e);B(k(t),t,e).then((function(t){return z(t,e)})).catch(n)}catch(e){n(e)}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",(function(t){if(_(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){n[r].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}})))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",(function(t){if(_(t.origin)){var n=j(t.data);if(n&&"ready"===n.event)for(var r=e.querySelectorAll("iframe"),o=0;o<r.length;o++){var i=r[o],a=i.contentWindow===t.source;E(i.src)&&a&&new G(i).callMethod("appendVideoMetadata",window.location.href)}}})))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",(function(n){if(_(n.origin)){var r=j(n.data);if(r&&"ready"===r.event)for(var o=e.querySelectorAll("iframe"),i=function(){var e=o[a],r=e.contentWindow===n.source;if(E(e.src)&&r){var i=new G(e);i.getVideoId().then((function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);i.setCurrentTime(n)}})).catch(t)}},a=0;a<o.length;a++)i()}}))}}());const q=G;function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}var K={play:"onPlay",playing:"onPlaying",pause:"onPause",ended:"onEnd",timeupdate:"onTimeUpdate",progress:"onProgress",seeked:"onSeeked",texttrackchange:"onTextTrackChange",cuechange:"onCueChange",cuepoint:"onCuePoint",volumechange:"onVolumeChange",playbackratechange:"onPlaybackRateChange",error:"onError",loaded:"onLoaded"},X=function(e){var t,n;function o(t){var n;return(n=e.call(this,t)||this).refContainer=n.refContainer.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,Y(t,n);var i=o.prototype;return i.componentDidMount=function(){this.createPlayer()},i.componentDidUpdate=function(e){var t=this,n=Object.keys(this.props).filter((function(n){return t.props[n]!==e[n]}));this.updateProps(n)},i.componentWillUnmount=function(){this.player.destroy()},i.getInitialOptions=function(){var e,t=this.props.video;return(e={})[/^https?:/i.test(t)?"url":"id"]=t,e.width=this.props.width,e.height=this.props.height,e.autopause=this.props.autopause,e.autoplay=this.props.autoplay,e.byline=this.props.showByline,e.color=this.props.color,e.controls=this.props.controls,e.loop=this.props.loop,e.portrait=this.props.showPortrait,e.title=this.props.showTitle,e.muted=this.props.muted,e.background=this.props.background,e.responsive=this.props.responsive,e.dnt=this.props.dnt,e.speed=this.props.speed,e.keyboard=this.props.keyboard,e.pip=this.props.pip,e.playsinline=this.props.playsInline,e.quality=this.props.quality,e.texttrack=this.props.textTrack,e.transparent=this.props.transparent,e},i.updateProps=function(e){var t=this,n=this.player;e.forEach((function(e){var r=t.props[e];switch(e){case"autopause":n.setAutopause(r);break;case"color":n.setColor(r);break;case"loop":n.setLoop(r);break;case"volume":n.setVolume(r);break;case"paused":n.getPaused().then((function(e){return r&&!e?n.pause():!r&&e?n.play():null}));break;case"width":case"height":n.element[e]=r;break;case"video":if(r){var o=t.props.start,i=n.loadVideo(r);"number"==typeof o&&i.then((function(){n.setCurrentTime(o)}))}else n.unload();break;case"playbackRate":n.setPlaybackRate(r);break;case"quality":n.setQuality(r)}}))},i.createPlayer=function(){var e=this,t=this.props,n=t.start,r=t.volume,o=t.playbackRate;this.player=new q(this.container,this.getInitialOptions()),Object.keys(K).forEach((function(t){var n=K[t];e.player.on(t,(function(t){var r=e.props[n];r&&r(t)}))}));var i=this.props,a=i.onError,s=i.onReady;this.player.ready().then((function(){s&&s(e.player)}),(function(e){if(!a)throw e;a(e)})),"number"==typeof n&&this.player.setCurrentTime(n),"number"==typeof r&&this.updateProps(["volume"]),"number"==typeof o&&this.updateProps(["playbackRate"])},i.refContainer=function(e){this.container=e},i.render=function(){var e=this.props,t=e.id,n=e.className,o=e.style;return r.createElement("div",{id:t,className:n,style:o,ref:this.refContainer})},o}(r.Component);X.defaultProps={autopause:!0,autoplay:!1,showByline:!0,controls:!0,loop:!1,showPortrait:!0,showTitle:!0,muted:!1,background:!1,responsive:!1,dnt:!1,speed:!1,keyboard:!0,pip:!1,playsInline:!0,transparent:!0}},95095:(e,t,n)=>{e=n.nmd(e),function(){var e=function(){return this}();e||"undefined"==typeof window||(e=window);var t=function(e,n,r){"string"==typeof e?(2==arguments.length&&(r=n),t.modules[e]||(t.payloads[e]=r,t.modules[e]=null)):t.original?t.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};t.modules={},t.payloads={};var n,r,o=function(e,t,n){if("string"==typeof t){var r=s(e,t);if(null!=r)return n&&n(),r}else if("[object Array]"===Object.prototype.toString.call(t)){for(var o=[],a=0,l=t.length;a<l;++a){var u=s(e,t[a]);if(null==u&&i.original)return;o.push(u)}return n&&n.apply(null,o)||!0}},i=function(e,t){var n=o("",e,t);return null==n&&i.original?i.original.apply(this,arguments):n},a=function(e,t){if(-1!==t.indexOf("!")){var n=t.split("!");return a(e,n[0])+"!"+a(e,n[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&r!=t;){var r=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},s=function(e,n){n=a(e,n);var r=t.modules[n];if(!r){if("function"==typeof(r=t.payloads[n])){var i={},s={id:n,uri:"",exports:i,packaged:!0};i=r((function(e,t){return o(n,e,t)}),i,s)||s.exports,t.modules[n]=i,delete t.payloads[n]}r=t.modules[n]=i||r}return r};r=e,(n="ace")&&(e[n]||(e[n]={}),r=e[n]),r.define&&r.define.packaged||(t.original=r.define,r.define=t,r.define.packaged=!0),r.require&&r.require.packaged||(i.original=r.require,r.require=i,r.require.packaged=!0)}(),ace.define("ace/lib/es6-shim",["require","exports","module"],(function(e,t,n){function r(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}String.prototype.startsWith||r(String.prototype,"startsWith",(function(e,t){return t=t||0,this.lastIndexOf(e,t)===t})),String.prototype.endsWith||r(String.prototype,"endsWith",(function(e,t){var n=this;(void 0===t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t})),String.prototype.repeat||r(String.prototype,"repeat",(function(e){for(var t="",n=this;e>0;)1&e&&(t+=n),(e>>=1)&&(n+=n);return t})),String.prototype.includes||r(String.prototype,"includes",(function(e,t){return-1!=this.indexOf(e,t)})),Object.assign||(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];null!=r&&Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t}),Object.values||(Object.values=function(e){return Object.keys(e).map((function(t){return e[t]}))}),Array.prototype.find||r(Array.prototype,"find",(function(e){for(var t=this.length,n=arguments[1],r=0;r<t;r++){var o=this[r];if(e.call(n,o,r,this))return o}})),Array.prototype.findIndex||r(Array.prototype,"findIndex",(function(e){for(var t=this.length,n=arguments[1],r=0;r<t;r++){var o=this[r];if(e.call(n,o,r,this))return r}})),Array.prototype.includes||r(Array.prototype,"includes",(function(e,t){return-1!=this.indexOf(e,t)})),Array.prototype.fill||r(Array.prototype,"fill",(function(e){for(var t=this,n=t.length>>>0,r=arguments[1]>>0,o=r<0?Math.max(n+r,0):Math.min(r,n),i=arguments[2],a=void 0===i?n:i>>0,s=a<0?Math.max(n+a,0):Math.min(a,n);o<s;)t[o]=e,o++;return t})),Array.of||r(Array,"of",(function(){return Array.prototype.slice.call(arguments)}))})),ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/es6-shim"],(function(e,t,n){"use strict";e("./es6-shim")})),ace.define("ace/lib/deep_copy",["require","exports","module"],(function(e,t,n){t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var n;if(Array.isArray(t)){n=[];for(var r=0;r<t.length;r++)n[r]=e(t[r]);return n}if("[object Object]"!==Object.prototype.toString.call(t))return t;for(var r in n={},t)n[r]=e(t[r]);return n}})),ace.define("ace/lib/lang",["require","exports","module","ace/lib/deep_copy"],(function(e,t,n){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var n="";t>0;)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,o=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(o,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;n<r;n++)e[n]&&"object"==typeof e[n]?t[n]=this.copyObject(e[n]):t[n]=e[n];return t},t.deepCopy=e("./deep_copy").deepCopy,t.arrayToMap=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var n in e)t[n]=e[n];return t},t.arrayRemove=function(e,t){for(var n=0;n<=e.length;n++)t===e[n]&&e.splice(n,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return(""+e).replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var n=[];return e.replace(t,(function(e){n.push({offset:arguments[arguments.length-2],length:e.length})})),n},t.deferredCall=function(e){var t=null,n=function(){t=null,e()},r=function(e){return r.cancel(),t=setTimeout(n,e||0),r};return r.schedule=r,r.call=function(){return this.cancel(),e(),r},r.cancel=function(){return clearTimeout(t),t=null,r},r.isPending=function(){return t},r},t.delayedCall=function(e,t){var n=null,r=function(){n=null,e()},o=function(e){null==n&&(n=setTimeout(r,e||t))};return o.delay=function(e){n&&clearTimeout(n),n=setTimeout(r,e||t)},o.schedule=o,o.call=function(){this.cancel(),e()},o.cancel=function(){n&&clearTimeout(n),n=null},o.isPending=function(){return n},o},t.supportsLookbehind=function(){try{new RegExp("(?<=.)")}catch(e){return!1}return!0},t.supportsUnicodeFlag=function(){try{new RegExp("^.$","u")}catch(e){return!1}return!0}})),ace.define("ace/lib/useragent",["require","exports","module"],(function(e,t,n){"use strict";t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS};var r="object"==typeof navigator?navigator:{},o=(/mac|win|linux/i.exec(r.platform)||["other"])[0].toLowerCase(),i=r.userAgent||"",a=r.appName||"";t.isWin="win"==o,t.isMac="mac"==o,t.isLinux="linux"==o,t.isIE="Microsoft Internet Explorer"==a||a.indexOf("MSAppHost")>=0?parseFloat((i.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((i.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=i.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(i.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(i.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(i.split(" Edge/")[1])||void 0,t.isAIR=i.indexOf("AdobeAIR")>=0,t.isAndroid=i.indexOf("Android")>=0,t.isChromeOS=i.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(i)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid})),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r,o=e("./useragent");t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var o=document.createTextNode(t);return n&&n.appendChild(o),o}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var i=[],a=0;a<t.length;a++){var s=e(t[a],n,r);s&&i.push(s)}return i}var l=document.createElement(t[0]),u=t[1],c=1;u&&"object"==typeof u&&!Array.isArray(u)&&(c=2);for(a=c;a<t.length;a++)e(t[a],l,r);return 2==c&&Object.keys(u).forEach((function(e){var t=u[e];"class"===e?l.className=Array.isArray(t)?t.join(" "):t:"function"==typeof t||"value"==e||"$"==e[0]?l[e]=t:"ref"===e?r&&(r[t]=l):"style"===e?"string"==typeof t&&(l.style.cssText=t):null!=t&&l.setAttribute(e,t)})),n&&n.appendChild(l),l},t.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},t.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||"http://www.w3.org/1999/xhtml",e):document.createElement(e)},t.removeChildren=function(e){e.innerHTML=""},t.createTextNode=function(e,t){return(t?t.ownerDocument:document).createTextNode(e)},t.createFragment=function(e){return(e?e.ownerDocument:document).createDocumentFragment()},t.hasCssClass=function(e,t){return-1!==(e.className+"").split(/\s+/g).indexOf(t)},t.addCssClass=function(e,n){t.hasCssClass(e,n)||(e.className+=" "+n)},t.removeCssClass=function(e,t){for(var n=e.className.split(/\s+/g);;){var r=n.indexOf(t);if(-1==r)break;n.splice(r,1)}e.className=n.join(" ")},t.toggleCssClass=function(e,t){for(var n=e.className.split(/\s+/g),r=!0;;){var o=n.indexOf(t);if(-1==o)break;r=!1,n.splice(o,1)}return r&&n.push(t),e.className=n.join(" "),r},t.setCssClass=function(e,n,r){r?t.addCssClass(e,n):t.removeCssClass(e,n)},t.hasCssString=function(e,t){var n,r=0;if(n=(t=t||document).querySelectorAll("style"))for(;r<n.length;)if(n[r++].id===e)return!0},t.removeElementById=function(e,t){(t=t||document).getElementById(e)&&t.getElementById(e).remove()};var i=[];function a(){var e=i;i=null,e&&e.forEach((function(e){s(e[0],e[1])}))}function s(e,n,o){if("undefined"!=typeof document){if(i)if(o)a();else if(!1===o)return i.push([e,n]);if(!r){var s=o;o&&o.getRootNode&&(s=o.getRootNode())&&s!=o||(s=document);var l=s.ownerDocument||s;if(n&&t.hasCssString(n,s))return null;n&&(e+="\n/*# sourceURL=ace/css/"+n+" */");var u=t.createElement("style");u.appendChild(l.createTextNode(e)),n&&(u.id=n),s==l&&(s=t.getDocumentHead(l)),s.insertBefore(u,s.firstChild)}}}if(t.useStrictCSP=function(e){r=e,0==e?a():i||(i=[])},t.importCssString=s,t.importCssStylsheet=function(e,n){t.buildDom(["link",{rel:"stylesheet",href:e}],t.getDocumentHead(n))},t.scrollbarWidth=function(e){var n=t.createElement("ace_inner");n.style.width="100%",n.style.minWidth="0px",n.style.height="200px",n.style.display="block";var r=t.createElement("ace_outer"),o=r.style;o.position="absolute",o.left="-10000px",o.overflow="hidden",o.width="200px",o.minWidth="0px",o.height="150px",o.display="block",r.appendChild(n);var i=e&&e.documentElement||document&&document.documentElement;if(!i)return 0;i.appendChild(r);var a=n.offsetWidth;o.overflow="scroll";var s=n.offsetWidth;return a===s&&(s=r.clientWidth),i.removeChild(r),a-s},t.computedStyle=function(e,t){return window.getComputedStyle(e,"")||{}},t.setStyle=function(e,t,n){e[t]!==n&&(e[t]=n)},t.HAS_CSS_ANIMATION=!1,t.HAS_CSS_TRANSFORMS=!1,t.HI_DPI=!o.isWin||"undefined"!=typeof window&&window.devicePixelRatio>=1.5,o.isChromeOS&&(t.HI_DPI=!1),"undefined"!=typeof document){var l=document.createElement("div");t.HI_DPI&&void 0!==l.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),o.isEdge||void 0===l.style.animationName||(t.HAS_CSS_ANIMATION=!0),l=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}})),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./dom");t.get=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)},t.loadScript=function(e,t){var n=r.getDocumentHead(),o=document.createElement("script");o.src=e,n.appendChild(o),o.onload=o.onreadystatechange=function(e,n){!n&&o.readyState&&"loaded"!=o.readyState&&"complete"!=o.readyState||(o=o.onload=o.onreadystatechange=null,n||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}})),ace.define("ace/lib/oop",["require","exports","module"],(function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}})),ace.define("ace/lib/event_emitter",["require","exports","module"],(function(e,t,n){"use strict";var r={},o=function(){this.propagationStopped=!0},i=function(){this.defaultPrevented=!0};r._emit=r._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var n=this._eventRegistry[e]||[],r=this._defaultHandlers[e];if(n.length||r){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=o),t.preventDefault||(t.preventDefault=i),n=n.slice();for(var a=0;a<n.length&&(n[a](t,this),!t.propagationStopped);a++);return r&&!t.defaultPrevented?r(t,this):void 0}},r._signal=function(e,t){var n=(this._eventRegistry||{})[e];if(n){n=n.slice();for(var r=0;r<n.length;r++)n[r](t,this)}},r.once=function(e,t){var n=this;if(this.on(e,(function r(){n.off(e,r),t.apply(null,arguments)})),!t)return new Promise((function(e){t=e}))},r.setDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n||(n=this._defaultHandlers={_disabled_:{}}),n[e]){var r=n[e],o=n._disabled_[e];o||(n._disabled_[e]=o=[]),o.push(r);var i=o.indexOf(t);-1!=i&&o.splice(i,1)}n[e]=t},r.removeDefaultHandler=function(e,t){var n=this._defaultHandlers;if(n){var r=n._disabled_[e];if(n[e]==t)r&&this.setDefaultHandler(e,r.pop());else if(r){var o=r.indexOf(t);-1!=o&&r.splice(o,1)}}},r.on=r.addEventListener=function(e,t,n){this._eventRegistry=this._eventRegistry||{};var r=this._eventRegistry[e];return r||(r=this._eventRegistry[e]=[]),-1==r.indexOf(t)&&r[n?"unshift":"push"](t),t},r.off=r.removeListener=r.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];if(n){var r=n.indexOf(t);-1!==r&&n.splice(r,1)}},r.removeAllListeners=function(e){e||(this._eventRegistry=this._defaultHandlers=void 0),this._eventRegistry&&(this._eventRegistry[e]=void 0),this._defaultHandlers&&(this._defaultHandlers[e]=void 0)},t.EventEmitter=r})),ace.define("ace/lib/report_error",["require","exports","module"],(function(e,t,n){t.reportError=function(e,t){var n=new Error(e);n.data=t,"object"==typeof console&&console.error&&console.error(n),setTimeout((function(){throw n}))}})),ace.define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/report_error"],(function(e,t,n){var r,o=e("./oop"),i=e("./event_emitter").EventEmitter,a=e("./report_error").reportError,s={setOptions:function(e){Object.keys(e).forEach((function(t){this.setOption(t,e[t])}),this)},getOptions:function(e){var t={};if(e)Array.isArray(e)||(t=e,e=Object.keys(t));else{var n=this.$options;e=Object.keys(n).filter((function(e){return!n[e].hidden}))}return e.forEach((function(e){t[e]=this.getOption(e)}),this),t},setOption:function(e,t){if(this["$"+e]!==t){var n=this.$options[e];if(!n)return l('misspelled option "'+e+'"');if(n.forwardTo)return this[n.forwardTo]&&this[n.forwardTo].setOption(e,t);n.handlesSet||(this["$"+e]=t),n&&n.set&&n.set.call(this,t)}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:l('misspelled option "'+e+'"')}};function l(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}var u=function(){function e(){this.$defaultOptions={}}return e.prototype.defineOptions=function(e,t,n){return e.$options||(this.$defaultOptions[t]=e.$options={}),Object.keys(n).forEach((function(t){var r=n[t];"string"==typeof r&&(r={forwardTo:r}),r.name||(r.name=t),e.$options[r.name]=r,"initialValue"in r&&(e["$"+r.name]=r.initialValue)})),o.implement(e,s),this},e.prototype.resetOptions=function(e){Object.keys(e.$options).forEach((function(t){var n=e.$options[t];"value"in n&&e.setOption(t,n.value)}))},e.prototype.setDefaultValue=function(e,t,n){if(!e){for(e in this.$defaultOptions)if(this.$defaultOptions[e][t])break;if(!this.$defaultOptions[e][t])return!1}var r=this.$defaultOptions[e]||(this.$defaultOptions[e]={});r[t]&&(r.forwardTo?this.setDefaultValue(r.forwardTo,t,n):r[t].value=n)},e.prototype.setDefaultValues=function(e,t){Object.keys(t).forEach((function(n){this.setDefaultValue(e,n,t[n])}),this)},e.prototype.setMessages=function(e){r=e},e.prototype.nls=function(e,t){r&&!r[e]&&l("No message found for '"+e+"' in the provided messages, falling back to default English message.");var n=r&&r[e]||e;return t&&(n=n.replace(/\$(\$|[\d]+)/g,(function(e,n){return"$"==n?"$":t[n]}))),n},e}();u.prototype.warn=l,u.prototype.reportError=a,o.implement(u.prototype,i),t.AppConfig=u})),ace.define("ace/theme/textmate-css",["require","exports","module"],(function(e,t,n){n.exports='.ace-tm .ace_gutter {\n  background: #f0f0f0;\n  color: #333;\n}\n\n.ace-tm .ace_print-margin {\n  width: 1px;\n  background: #e8e8e8;\n}\n\n.ace-tm .ace_fold {\n    background-color: #6B72E6;\n}\n\n.ace-tm {\n  background-color: #FFFFFF;\n  color: black;\n}\n\n.ace-tm .ace_cursor {\n  color: black;\n}\n        \n.ace-tm .ace_invisible {\n  color: rgb(191, 191, 191);\n}\n\n.ace-tm .ace_storage,\n.ace-tm .ace_keyword {\n  color: blue;\n}\n\n.ace-tm .ace_constant {\n  color: rgb(197, 6, 11);\n}\n\n.ace-tm .ace_constant.ace_buildin {\n  color: rgb(88, 72, 246);\n}\n\n.ace-tm .ace_constant.ace_language {\n  color: rgb(88, 92, 246);\n}\n\n.ace-tm .ace_constant.ace_library {\n  color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_invalid {\n  background-color: rgba(255, 0, 0, 0.1);\n  color: red;\n}\n\n.ace-tm .ace_support.ace_function {\n  color: rgb(60, 76, 114);\n}\n\n.ace-tm .ace_support.ace_constant {\n  color: rgb(6, 150, 14);\n}\n\n.ace-tm .ace_support.ace_type,\n.ace-tm .ace_support.ace_class {\n  color: rgb(109, 121, 222);\n}\n\n.ace-tm .ace_keyword.ace_operator {\n  color: rgb(104, 118, 135);\n}\n\n.ace-tm .ace_string {\n  color: rgb(3, 106, 7);\n}\n\n.ace-tm .ace_comment {\n  color: rgb(76, 136, 107);\n}\n\n.ace-tm .ace_comment.ace_doc {\n  color: rgb(0, 102, 255);\n}\n\n.ace-tm .ace_comment.ace_doc.ace_tag {\n  color: rgb(128, 159, 191);\n}\n\n.ace-tm .ace_constant.ace_numeric {\n  color: rgb(0, 0, 205);\n}\n\n.ace-tm .ace_variable {\n  color: rgb(49, 132, 149);\n}\n\n.ace-tm .ace_xml-pe {\n  color: rgb(104, 104, 91);\n}\n\n.ace-tm .ace_entity.ace_name.ace_function {\n  color: #0000A2;\n}\n\n\n.ace-tm .ace_heading {\n  color: rgb(12, 7, 255);\n}\n\n.ace-tm .ace_list {\n  color:rgb(185, 6, 144);\n}\n\n.ace-tm .ace_meta.ace_tag {\n  color:rgb(0, 22, 142);\n}\n\n.ace-tm .ace_string.ace_regex {\n  color: rgb(255, 0, 0)\n}\n\n.ace-tm .ace_marker-layer .ace_selection {\n  background: rgb(181, 213, 255);\n}\n.ace-tm.ace_multiselect .ace_selection.ace_start {\n  box-shadow: 0 0 3px 0px white;\n}\n.ace-tm .ace_marker-layer .ace_step {\n  background: rgb(252, 255, 0);\n}\n\n.ace-tm .ace_marker-layer .ace_stack {\n  background: rgb(164, 229, 101);\n}\n\n.ace-tm .ace_marker-layer .ace_bracket {\n  margin: -1px 0 0 -1px;\n  border: 1px solid rgb(192, 192, 192);\n}\n\n.ace-tm .ace_marker-layer .ace_active-line {\n  background: rgba(0, 0, 0, 0.07);\n}\n\n.ace-tm .ace_gutter-active-line {\n    background-color : #dcdcdc;\n}\n\n.ace-tm .ace_marker-layer .ace_selected-word {\n  background: rgb(250, 250, 255);\n  border: 1px solid rgb(200, 200, 250);\n}\n\n.ace-tm .ace_indent-guide {\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;\n}\n\n.ace-tm .ace_indent-guide-active {\n  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAAZSURBVHjaYvj///9/hivKyv8BAAAA//8DACLqBhbvk+/eAAAAAElFTkSuQmCC") right repeat-y;\n}\n'})),ace.define("ace/theme/textmate",["require","exports","module","ace/theme/textmate-css","ace/lib/dom"],(function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText=e("./textmate-css"),t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/net","ace/lib/dom","ace/lib/app_config","ace/theme/textmate"],(function(e,t,n){var r=e("./lib/lang"),o=e("./lib/net"),i=e("./lib/dom"),a=e("./lib/app_config").AppConfig;n.exports=t=new a;var s={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{},loadWorkerFromBlob:!0,sharedPopups:!1,useStrictCSP:null};t.get=function(e){if(!s.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return s[e]},t.set=function(e,t){if(s.hasOwnProperty(e))s[e]=t;else if(0==this.setDefaultValue("",e,t))throw new Error("Unknown config key: "+e);"useStrictCSP"==e&&i.useStrictCSP(t)},t.all=function(){return r.copyObject(s)},t.$modes={},t.moduleUrl=function(e,t){if(s.$moduleUrls[e])return s.$moduleUrls[e];var n=e.split("/"),r="snippets"==(t=t||n[n.length-2]||"")?"/":"-",o=n[n.length-1];if("worker"==t&&"-"==r){var i=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");o=o.replace(i,"")}(!o||o==t)&&n.length>1&&(o=n[n.length-2]);var a=s[t+"Path"];return null==a?a=s.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+o+this.get("suffix")},t.setModuleUrl=function(e,t){return s.$moduleUrls[e]=t};var l;t.setLoader=function(e){l=e},t.dynamicModules=Object.create(null),t.$loading={},t.$loaded={},t.loadModule=function(n,r){var i,a;Array.isArray(n)&&(a=n[0],n=n[1]);var s=function(i){if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){!function(t,n){"ace/theme/textmate"===t||"./theme/textmate"===t?n(null,e("./theme/textmate")):l?l(t,n):console.error("loader is not configured")}(n,(function(e,r){r&&(t.$loaded[n]=r),t._emit("load.module",{name:n,module:r});var o=t.$loading[n];t.$loading[n]=null,o.forEach((function(e){e&&e(r)}))}))};if(!t.get("packaged"))return s();o.loadScript(t.moduleUrl(n,a),s),u()}};if(t.dynamicModules[n])t.dynamicModules[n]().then((function(e){e.default?s(e.default):s(e)}));else{try{i=this.$require(n)}catch(e){}s(i||t.$loaded[n])}},t.$require=function(e){if("function"==typeof n.require){return n.require(e)}},t.setModuleLoader=function(e,n){t.dynamicModules[e]=n};var u=function(){s.basePath||s.workerPath||s.modePath||s.themePath||Object.keys(s.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};t.version="1.28.0"})),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],(function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var o=e("./config");o.setLoader((function(t,n){e([t],(function(e){n(null,e)}))}));var i=function(){return this||"undefined"!=typeof window&&window}();function a(t){if(i&&i.document){o.set("packaged",t||e.packaged||r.packaged||i.define&&n.amdD.packaged);var a={},s="",l=document.currentScript||document._currentScript,u=l&&l.ownerDocument||document;l&&l.src&&(s=l.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var c,d=u.getElementsByTagName("script"),f=0;f<d.length;f++){var h=d[f],p=h.src||h.getAttribute("src");if(p){for(var g=h.attributes,m=0,v=g.length;m<v;m++){var y=g[m];0===y.name.indexOf("data-ace-")&&(a[(c=y.name.replace(/^data-ace-/,""),c.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=y.value)}var b=p.match(/^(.*)\/ace([\-.]\w+)?\.js(\?|$)/);b&&(s=b[1])}}for(var w in s&&(a.base=a.base||s,a.packaged=!0),a.basePath=a.base,a.workerPath=a.workerPath||a.base,a.modePath=a.modePath||a.base,a.themePath=a.themePath||a.base,delete a.base,a)void 0!==a[w]&&o.set(w,a[w])}}r.exports=function(t){o.init=a,o.$require=e,t.require=e,t.define=n.amdD},a(!0)})),ace.define("ace/range",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){function e(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}}return e.prototype.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},e.prototype.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},e.prototype.contains=function(e,t){return 0==this.compare(e,t)},e.prototype.compareRange=function(e){var t,n=e.end,r=e.start;return 1==(t=this.compare(n.row,n.column))?1==(t=this.compare(r.row,r.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(r.row,r.column))?-1:1==t?42:0},e.prototype.comparePoint=function(e){return this.compare(e.row,e.column)},e.prototype.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},e.prototype.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},e.prototype.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},e.prototype.isStart=function(e,t){return this.start.row==e&&this.start.column==t},e.prototype.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},e.prototype.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},e.prototype.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},e.prototype.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},e.prototype.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},e.prototype.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},e.prototype.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},e.prototype.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},e.prototype.clipRows=function(t,n){if(this.end.row>n)var r={row:n+1,column:0};else if(this.end.row<t)r={row:t,column:0};if(this.start.row>n)var o={row:n+1,column:0};else if(this.start.row<t)o={row:t,column:0};return e.fromPoints(o||this.start,r||this.end)},e.prototype.extend=function(t,n){var r=this.compare(t,n);if(0==r)return this;if(-1==r)var o={row:t,column:n};else var i={row:t,column:n};return e.fromPoints(o||this.start,i||this.end)},e.prototype.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},e.prototype.isMultiLine=function(){return this.start.row!==this.end.row},e.prototype.clone=function(){return e.fromPoints(this.start,this.end)},e.prototype.collapseRows=function(){return 0==this.end.column?new e(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new e(this.start.row,0,this.end.row,0)},e.prototype.toScreenRange=function(t){var n=t.documentToScreenPosition(this.start),r=t.documentToScreenPosition(this.end);return new e(n.row,n.column,r.row,r.column)},e.prototype.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t},e}();r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r})),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./oop"),o=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",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"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.PRINTABLE_KEYS[173]="-",n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n.return,n.escape=n.esc,n.del=n.delete,function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter((function(e){return t&n.KEY_MODS[e]})).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,o),t.default=t,t.keyCodeToString=function(e){var t=o[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}})),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,o=e("./keys"),i=e("./useragent"),a=null,s=0;function l(){return null==r&&function(){r=!1;try{document.createComment("").addEventListener("test",(function(){}),{get passive(){r={passive:!1}}})}catch(e){}}(),r}function u(e,t,n){this.elem=e,this.type=t,this.callback=n}u.prototype.destroy=function(){d(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var c=t.addListener=function(e,t,n,r){e.addEventListener(t,n,l()),r&&r.$toDestroy.push(new u(e,t,n))},d=t.removeListener=function(e,t,n){e.removeEventListener(t,n,l())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||i.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var r=e&&e.ownerDocument||document;function o(e){t&&t(e),n&&n(e),d(r,"mousemove",t),d(r,"mouseup",o),d(r,"dragstart",o)}return c(r,"mousemove",t),c(r,"mouseup",o),c(r,"dragstart",o),o},t.addMouseWheelListener=function(e,t,n){c(e,"wheel",(function(e){var n=e.deltaX||0,r=e.deltaY||0;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.15*n,e.wheelY=.15*r;break;case e.DOM_DELTA_LINE:e.wheelX=15*n,e.wheelY=15*r;break;case e.DOM_DELTA_PAGE:e.wheelX=150*n,e.wheelY=150*r}t(e)}),n)},t.addMultiMouseDownListener=function(e,n,r,o,a){var s,l,u,d=0,f={2:"dblclick",3:"tripleclick",4:"quadclick"};function h(e){if(0!==t.getButton(e)?d=0:e.detail>1?++d>4&&(d=1):d=1,i.isIE){var a=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-l)>5;u&&!a||(d=1),u&&clearTimeout(u),u=setTimeout((function(){u=null}),n[d-1]||600),1==d&&(s=e.clientX,l=e.clientY)}if(e._clicks=d,r[o]("mousedown",e),d>4)d=0;else if(d>1)return r[o](f[d],e)}Array.isArray(e)||(e=[e]),e.forEach((function(e){c(e,"mousedown",h,a)}))};var f=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function h(e,t,n){var r=f(t);if(!i.isMac&&a){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==a[n]&&(s=t.timeStamp);else if(18===n&&3===r&&2===l){t.timeStamp-s<50&&(a.altGr=!0)}}}if((n in o.MODIFIER_KEYS&&(n=-1),!r&&13===n)&&(3===(l="location"in t?t.location:t.keyLocation)&&(e(t,r,-n),t.defaultPrevented)))return;if(i.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in o.FUNCTION_KEYS||n in o.PRINTABLE_KEYS)&&e(t,r,n)}function p(){a=Object.create(null)}if(t.getModifierString=function(e){return o.KEY_MODS[f(e)]},t.addCommandKeyListener=function(e,n,r){if(i.isOldGecko||i.isOpera&&!("KeyboardEvent"in window)){var o=null;c(e,"keydown",(function(e){o=e.keyCode}),r),c(e,"keypress",(function(e){return h(n,e,o)}),r)}else{var s=null;c(e,"keydown",(function(e){a[e.keyCode]=(a[e.keyCode]||0)+1;var t=h(n,e,e.keyCode);return s=e.defaultPrevented,t}),r),c(e,"keypress",(function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)}),r),c(e,"keyup",(function(e){a[e.keyCode]=null}),r),a||(p(),c(window,"focus",p))}},"object"==typeof window&&window.postMessage&&!i.isOldIE){var g=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+g++,o=function(i){i.data==r&&(t.stopPropagation(i),d(n,"message",o),e())};c(n,"message",o),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout((function n(){t.$idleBlocked?setTimeout(n,100):e()}),n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout((function(){t.$idleBlocked=!1}),e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}})),ace.define("ace/clipboard",["require","exports","module"],(function(e,t,n){"use strict";var r;n.exports={lineMode:!1,pasteCancelled:function(){return!!(r&&r>Date.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}})),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var r=e("../lib/event"),o=e("../config").nls,i=e("../lib/useragent"),a=e("../lib/dom"),s=e("../lib/lang"),l=e("../clipboard"),u=i.isChrome<18,c=i.isIE,d=i.isChrome>63,f=400,h=e("../lib/keys"),p=h.KEY_MODS,g=i.isIOS,m=g?/\s/:/\n/,v=i.isMobile;t.TextInput=function(e,t){var n=a.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var y=!1,b=!1,w=!1,x=!1,S="";v||(n.style.fontSize="1px");var _=!1,E=!1,k="",C=0,A=0,T=0,O=Number.MAX_SAFE_INTEGER,M=Number.MIN_SAFE_INTEGER,R=0;try{var L=document.activeElement===n}catch(e){}this.setNumberOfExtraLines=function(e){O=Number.MAX_SAFE_INTEGER,M=Number.MIN_SAFE_INTEGER,R=e<0?0:e},this.setAriaOptions=function(e){if(e.activeDescendant?(n.setAttribute("aria-haspopup","true"),n.setAttribute("aria-autocomplete",e.inline?"both":"list"),n.setAttribute("aria-activedescendant",e.activeDescendant)):(n.setAttribute("aria-haspopup","false"),n.setAttribute("aria-autocomplete","both"),n.removeAttribute("aria-activedescendant")),e.role&&n.setAttribute("role",e.role),e.setLabel&&(n.setAttribute("aria-roledescription",o("editor")),t.session)){var r=t.session.selection.cursor.row;n.setAttribute("aria-label",o("Cursor at row $0",[r+1]))}},this.setAriaOptions({role:"textbox"}),r.addListener(n,"blur",(function(e){E||(t.onBlur(e),L=!1)}),t),r.addListener(n,"focus",(function(e){if(!E){if(L=!0,i.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),i.isEdge?setTimeout(P):P()}}),t),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:t.renderer.enableKeyboardAccessibility}),S||d||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var r=0!=n.getBoundingClientRect().top}catch(e){return}var o=[];if(r)for(var i=n.parentElement;i&&1==i.nodeType;)o.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement;n.focus({preventScroll:!0}),r&&o.forEach((function(e){e.removeAttribute("ace_nocontext")})),setTimeout((function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)}),0)},this.blur=function(){n.blur()},this.isFocused=function(){return L},t.on("beforeEndOperation",(function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var o=r&&(e.docChanged||e.selectionChanged);w&&o&&(k=n.value="",Z()),P()}}));var D=function(e,n){for(var r=n,o=1;o<=e-O&&o<2*R+1;o++)r+=t.session.getLine(e-o).length+1;return r},P=g?function(e){if(L&&(!y||e)&&!x){e||(e="");var r="\n ab"+e+"cde fg\n";r!=n.value&&(n.value=k=r);var o=4+(e.length||(t.selection.isEmpty()?0:1));4==C&&A==o||n.setSelectionRange(4,o),C=4,A=o}}:function(){if(!w&&!x&&(L||I)){w=!0;var e=0,r=0,o="";if(t.session){var i=t.selection,a=i.getRange(),s=i.cursor.row;s===M+1?M=(O=M+1)+2*R:s===O-1?O=(M=O-1)-2*R:(s<O-1||s>M+1)&&(O=s>R?s-R:0,M=s>R?s+R:2*R);for(var l=[],u=O;u<=M;u++)l.push(t.session.getLine(u));if(o=l.join("\n"),e=D(a.start.row,a.start.column),r=D(a.end.row,a.end.column),a.start.row<O){var c=t.session.getLine(O-1);e=a.start.row<O-1?0:e,r+=c.length+1,o=c+"\n"+o}else if(a.end.row>M){var d=t.session.getLine(M+1);r=a.end.row>M+1?d.length:a.end.column,r+=o.length+1,o=o+"\n"+d}else v&&s>0&&(o="\n"+o,r+=1,e+=1);o.length>f&&(e<f&&r<f?o=o.slice(0,f):(o="\n",e==r?e=r=0:(e=0,r=1)));var h=o+"\n\n";h!=k&&(n.value=k=h,C=A=h.length)}if(I&&(C=n.selectionStart,A=n.selectionEnd),A!=r||C!=e||n.selectionEnd!=A)try{n.setSelectionRange(e,r),C=e,A=r}catch(e){}w=!1}};this.resetSelection=P,L&&t.onFocus();var j=null;this.setInputHandler=function(e){j=e},this.getInputHandler=function(){return j};var I=!1,$=function(e,r){if(I&&(I=!1),b)return P(),e&&t.onPaste(e),b=!1,"";for(var o=n.selectionStart,a=n.selectionEnd,s=C,l=k.length-A,u=e,c=e.length-o,d=e.length-a,f=0;s>0&&k[f]==e[f];)f++,s--;for(u=u.slice(f),f=1;l>0&&k.length-f>C-1&&k[k.length-f]==e[e.length-f];)f++,l--;c-=f-1,d-=f-1;var h=u.length-f+1;if(h<0&&(s=-h,h=0),u=u.slice(0,h),!(r||u||c||s||l||d))return"";x=!0;var p=!1;return i.isAndroid&&". "==u&&(u="  ",p=!0),u&&!s&&!l&&!c&&!d||_?t.onTextInput(u):t.onTextInput(u,{extendLeft:s,extendRight:l,restoreStart:c,restoreEnd:d}),x=!1,k=e,C=o,A=a,T=d,p?"\n":u},N=function(e){if(w)return U();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,o=$(r,!0);(r.length>500||m.test(o)||v&&C<1&&C==A)&&P()},F=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!u){var o=c||n?"Text":"text/plain";try{return t?!1!==r.setData(o,t):r.getData(o)}catch(e){if(!n)return F(e,t,!0)}}},z=function(e,o){var i=t.getCopyText();if(!i)return r.preventDefault(e);F(e,i)?(g&&(P(i),y=i,setTimeout((function(){y=!1}),10)),o?t.onCut():t.onCopy(),r.preventDefault(e)):(y=!0,n.value=i,n.select(),setTimeout((function(){y=!1,P(),o?t.onCut():t.onCopy()})))},B=function(e){z(e,!0)},H=function(e){z(e,!1)},W=function(e){var o=F(e);l.pasteCancelled()||("string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(P),r.preventDefault(e)):(n.value="",b=!0))};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,"select",(function(e){w||(y?y=!1:!function(e){return 0===e.selectionStart&&e.selectionEnd>=k.length&&e.value===k&&k&&e.selectionEnd!==A}(n)?v&&n.selectionStart!=C&&P():(t.selectAll(),P()))}),t),r.addListener(n,"input",N,t),r.addListener(n,"cut",B,t),r.addListener(n,"copy",H,t),r.addListener(n,"paste",W,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",(function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:H(e);break;case 86:W(e);break;case 88:B(e)}}),t);var U=function(){if(w&&t.onCompositionUpdate&&!t.$readOnly){if(_)return V();if(w.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;$(e),w.markerRange&&(w.context&&(w.markerRange.start.column=w.selectionStart=w.context.compositionStartOffset),w.markerRange.end.column=w.markerRange.start.column+A-w.selectionStart+T)}}},Z=function(e){t.onCompositionEnd&&!t.$readOnly&&(w=!1,t.onCompositionEnd(),t.off("mousedown",V),e&&N())};function V(){E=!0,n.blur(),n.focus(),E=!1}var G,q=s.delayedCall(U,50).schedule.bind(null,null);function Y(){clearTimeout(G),G=setTimeout((function(){S&&(n.style.cssText=S,S=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()}),0)}r.addListener(n,"compositionstart",(function(e){if(!w&&t.onCompositionStart&&!t.$readOnly&&(w={},!_)){e.data&&(w.useTextareaForIME=!1),setTimeout(U,0),t._signal("compositionStart"),t.on("mousedown",V);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,w.markerRange=r,w.selectionStart=C,t.onCompositionStart(w),w.useTextareaForIME?(k=n.value="",C=0,A=0):(n.msGetInputContext&&(w.context=n.msGetInputContext()),n.getInputContext&&(w.context=n.getInputContext()))}}),t),r.addListener(n,"compositionupdate",U,t),r.addListener(n,"keyup",(function(e){27==e.keyCode&&n.value.length<n.selectionStart&&(w||(k=n.value),C=A=-1,P()),q()}),t),r.addListener(n,"keydown",q,t),r.addListener(n,"compositionend",Z,t),this.getElement=function(){return n},this.setCommandMode=function(e){_=e,n.readOnly=!1},this.setReadOnly=function(e){_||(n.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){I=!0,P(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,o){S||(S=n.style.cssText),n.style.cssText=(o?"z-index:100000;":"")+(i.isIE?"opacity:0.1;":"")+"text-indent: -"+(C+A)*t.renderer.characterWidth*.5+"px;";var s=t.container.getBoundingClientRect(),l=a.computedStyle(t.container),u=s.top+(parseInt(l.borderTopWidth)||0),c=s.left+(parseInt(s.borderLeftWidth)||0),d=s.bottom-u-n.clientHeight-2,f=function(e){a.translate(n,e.clientX-c-2,Math.min(e.clientY-u-2,d))};f(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(G),i.isWin&&r.capture(t.container,f,Y))},this.onContextMenuClose=Y;var K=function(e){t.textInput.onContextMenu(e),Y()};r.addListener(n,"mouseup",K,t),r.addListener(n,"mousedown",(function(e){e.preventDefault(),Y()}),t),r.addListener(t.renderer.scroller,"contextmenu",K,t),r.addListener(n,"contextmenu",K,t),g&&function(e,t,n){var r=null,o=!1;n.addEventListener("keydown",(function(e){r&&clearTimeout(r),o=!0}),!0),n.addEventListener("keyup",(function(e){r=setTimeout((function(){o=!1}),100)}),!0);var i=function(e){if(document.activeElement===n&&!(o||w||t.$mouseHandler.isMousePressed||y)){var r=n.selectionStart,i=n.selectionEnd,a=null,s=0;if(0==r?a=h.up:1==r?a=h.home:i>A&&"\n"==k[i]?a=h.end:r<C&&" "==k[r-1]?(a=h.left,s=p.option):r<C||r==C&&A!=C&&r==i?a=h.left:i>A&&k.slice(0,i).split("\n").length>2?a=h.down:i>A&&" "==k[i-1]?(a=h.right,s=p.option):(i>A||i==A&&A!=C&&r==i)&&(a=h.right),r!==i&&(s|=p.shift),a){if(!t.onCommandKey({},s,a)&&t.commands){a=h.keyCodeToString(a);var l=t.commands.findKeyCommand(s,a);l&&t.execCommand(l)}C=r,A=i,P("")}}};document.addEventListener("selectionchange",i),t.on("destroy",(function(){document.removeEventListener("selectionchange",i)}))}(0,t,n),this.destroy=function(){n.parentElement&&n.parentElement.removeChild(n)}},t.$setUserAgentForTests=function(e,t){v=e,g=t}})),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/useragent"),o=function(){function e(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach((function(t){e[t]=this[t]}),this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}return e.prototype.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var o=this.editor,i=e.getButton();return 0!==i?((o.getSelectionRange().isEmpty()||1==i)&&o.selection.moveToPosition(n),void(2==i&&(o.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))):(this.mousedownEvent.time=Date.now(),!t||o.isFocused()||(o.focus(),!this.$focusTimeout||this.$clickSelection||o.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e)))},e.prototype.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.setStyle("ace_selecting"),this.setState("select"))},e.prototype.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var o=i(this.$clickSelection,n);n=o.cursor,e=o.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},e.prototype.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),o=n.selection[e](r.row,r.column);if(this.$clickSelection){var a=this.$clickSelection.comparePoint(o.start),s=this.$clickSelection.comparePoint(o.end);if(-1==a&&s<=0)t=this.$clickSelection.end,o.end.row==r.row&&o.end.column==r.column||(r=o.start);else if(1==s&&a>=0)t=this.$clickSelection.start,o.start.row==r.row&&o.start.column==r.column||(r=o.end);else if(-1==a&&1==s)r=o.end,t=o.start;else{var l=i(this.$clickSelection,r);r=l.cursor,t=l.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},e.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},e.prototype.focusWait=function(){var e,t,n,r,o=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,n=this.x,r=this.y,Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))),i=Date.now();(o>0||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},e.prototype.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session.getBracketRange(t);r?(r.isEmpty()&&(r.start.column--,r.end.column++),this.setState("select")):(r=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=r,this.select()},e.prototype.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},e.prototype.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},e.prototype.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,o=r-n.t,i=o?e.wheelX/o:n.vx,a=o?e.wheelY/o:n.vy;o<550&&(i=(i+n.vx)/2,a=(a+n.vy)/2);var s=Math.abs(i/a),l=!1;if(s>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),s<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l)n.allowed=r;else if(r-n.allowed<550){Math.abs(i)<=1.5*Math.abs(n.vx)&&Math.abs(a)<=1.5*Math.abs(n.vy)?(l=!0,n.allowed=r):n.allowed=0}return n.t=r,n.vx=i,n.vy=a,l?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},e}();function i(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}o.prototype.selectEnd=o.prototype.selectByLinesEnd,o.prototype.selectAllEnd=o.prototype.selectByLinesEnd,o.prototype.selectByWordsEnd=o.prototype.selectByLinesEnd,t.DefaultHandlers=o})),ace.define("ace/tooltip",["require","exports","module","ace/lib/dom","ace/range"],(function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=e("./lib/dom"),s=e("./range").Range,l="ace_tooltip",u=function(){function e(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}return e.prototype.$init=function(){return this.$element=a.createElement("div"),this.$element.className=l,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},e.prototype.getElement=function(){return this.$element||this.$init()},e.prototype.setText=function(e){this.getElement().textContent=e},e.prototype.setHtml=function(e){this.getElement().innerHTML=e},e.prototype.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},e.prototype.setClassName=function(e){a.addCssClass(this.getElement(),e)},e.prototype.setTheme=function(e){this.$element.className=l+" "+(e.isDark?"ace_dark ":"")+(e.cssClass||"")},e.prototype.show=function(e,t,n){null!=e&&this.setText(e),null!=t&&null!=n&&this.setPosition(t,n),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},e.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=l,this.isOpen=!1)},e.prototype.getHeight=function(){return this.getElement().offsetHeight},e.prototype.getWidth=function(){return this.getElement().offsetWidth},e.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},e}(),c=new(function(){function e(){this.popups=[]}return e.prototype.addPopup=function(e){this.popups.push(e),this.updatePopups()},e.prototype.removePopup=function(e){var t=this.popups.indexOf(e);-1!==t&&(this.popups.splice(t,1),this.updatePopups())},e.prototype.updatePopups=function(){var e,t,n,r;this.popups.sort((function(e,t){return t.priority-e.priority}));var o=[];try{for(var a=i(this.popups),s=a.next();!s.done;s=a.next()){var l=s.value,u=!0;try{for(var c=(n=void 0,i(o)),d=c.next();!d.done;d=c.next()){var f=d.value;if(this.doPopupsOverlap(f,l)){u=!1;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}u?o.push(l):l.hide()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}},e.prototype.doPopupsOverlap=function(e,t){var n=e.getElement().getBoundingClientRect(),r=t.getElement().getBoundingClientRect();return n.left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top},e}());t.popupManager=c,t.Tooltip=u;var d=function(e){function t(t){void 0===t&&(t=document.body);var n=e.call(this,t)||this;n.timeout=void 0,n.lastT=0,n.idleTime=350,n.lastEvent=void 0,n.onMouseOut=n.onMouseOut.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.waitForHover=n.waitForHover.bind(n),n.hide=n.hide.bind(n);var r=n.getElement();return r.style.whiteSpace="pre-wrap",r.style.pointerEvents="auto",r.addEventListener("mouseout",n.onMouseOut),r.tabIndex=-1,r.addEventListener("blur",function(){r.contains(document.activeElement)||this.hide()}.bind(n)),n}return o(t,e),t.prototype.addToEditor=function(e){e.on("mousemove",this.onMouseMove),e.on("mousedown",this.hide),e.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},t.prototype.removeFromEditor=function(e){e.off("mousemove",this.onMouseMove),e.off("mousedown",this.hide),e.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},t.prototype.onMouseMove=function(e,t){this.lastEvent=e,this.lastT=Date.now();var n=t.$mouseHandler.isMousePressed;if(this.isOpen){var r=this.lastEvent&&this.lastEvent.getDocumentPosition();this.range&&this.range.contains(r.row,r.column)&&!n&&!this.isOutsideOfText(this.lastEvent)||this.hide()}this.timeout||n||(this.lastEvent=e,this.timeout=setTimeout(this.waitForHover,this.idleTime))},t.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var e=Date.now()-this.lastT;this.idleTime-e>10?this.timeout=setTimeout(this.waitForHover,this.idleTime-e):(this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor))},t.prototype.isOutsideOfText=function(e){var t=e.editor,n=e.getDocumentPosition(),r=t.session.getLine(n.row);if(n.column==r.length){var o=t.renderer.pixelToScreenCoordinates(e.clientX,e.clientY),i=t.session.documentToScreenPosition(n.row,n.column);if(i.column!=o.column||i.row!=o.row)return!0}return!1},t.prototype.setDataProvider=function(e){this.$gatherData=e},t.prototype.showForRange=function(e,t,n,r){if(!(r&&r!=this.lastEvent||this.isOpen&&document.activeElement==this.getElement())){var o=e.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(o.theme)),this.isOpen=!0,this.addMarker(t,e.session),this.range=s.fromPoints(t.start,t.end);var i=this.getElement();i.innerHTML="",i.appendChild(n),i.style.display="block";var a=o.textToScreenCoordinates(t.start.row,t.start.column),l=i.clientHeight,u=o.scroller.getBoundingClientRect(),d=!0;a.pageY-l<0&&(d=!1),d?a.pageY-=l:a.pageY+=o.lineHeight,i.style.maxWidth=u.width-(a.pageX-u.left)+"px",this.setPosition(a.pageX,a.pageY)}},t.prototype.addMarker=function(e,t){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=t,this.marker=t&&t.addMarker(e,"ace_highlight-marker","text")},t.prototype.hide=function(e){(e||document.activeElement!=this.getElement())&&(e&&e.target&&("keydown"!=e.type||e.ctrlKey||e.metaKey)&&this.$element.contains(e.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this))))},t.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},t.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},t.prototype.onMouseOut=function(e){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&e.relatedTarget&&e.relatedTarget!=this.getElement()&&(e&&e.currentTarget.contains(e.relatedTarget)||e.relatedTarget.classList.contains("ace_content")||this.hide())},t}(u);t.HoverTooltip=d})),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],(function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=e("../lib/dom"),s=e("../lib/event"),l=e("../tooltip").Tooltip,u=e("../config").nls;t.GutterHandler=function(e){var t,n,r=e.editor,o=r.renderer.$gutterLayer,i=new c(r);function l(){t&&(t=clearTimeout(t)),i.isOpen&&(i.hideTooltip(),r.off("mousewheel",l))}function u(e){i.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",(function(t){if(r.isFocused()&&0==t.getButton()&&"foldWidgets"!=o.getRegion(t)){var n=t.getDocumentPosition().row,i=r.session.selection;if(t.getShiftKey())i.selectTo(n,0);else{if(2==t.domEvent.detail)return r.selectAll(),t.preventDefault();e.$clickSelection=r.selection.getLineRange(n)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}})),e.editor.setDefaultHandler("guttermousemove",(function(s){var c=s.domEvent.target||s.domEvent.srcElement;if(a.hasCssClass(c,"ace_fold-widget"))return l();i.isOpen&&e.$tooltipFollowsMouse&&u(s),n=s,t||(t=setTimeout((function(){t=null,n&&!e.isMousePressed?function(){var t=n.getDocumentPosition().row;if(t==r.session.getLength()){var a=r.renderer.pixelToScreenCoordinates(0,n.y).row,s=n.$pos;if(a>r.session.documentToScreenRow(s.row,s.column))return l()}if(i.showTooltip(t),i.isOpen)if(r.on("mousewheel",l),e.$tooltipFollowsMouse)u(n);else{var c=n.getGutterRow(),d=o.$lines.get(c);if(d){var f=d.element.querySelector(".ace_gutter_annotation").getBoundingClientRect(),h=i.getElement().style;h.left=f.right+"px",h.top=f.bottom+"px"}else u(n)}}():l()}),50))})),s.addListener(r.renderer.$gutter,"mouseout",(function(e){n=null,i.isOpen&&!t&&(t=setTimeout((function(){t=null,l()}),50))}),r),r.on("changeSession",l),r.on("input",l)};var c=function(e){function t(t){var n=e.call(this,t.container)||this;return n.editor=t,n}return o(t,e),t.prototype.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,o=this.getWidth(),i=this.getHeight();(e+=15)+o>n&&(e-=e+o-n),(t+=15)+i>r&&(t-=20+i),l.prototype.setPosition.call(this,e,t)},Object.defineProperty(t,"annotationLabels",{get:function(){return{error:{singular:u("error"),plural:u("errors")},warning:{singular:u("warning"),plural:u("warnings")},info:{singular:u("information message"),plural:u("information messages")}}},enumerable:!1,configurable:!0}),t.prototype.showTooltip=function(e){var n,r=this.editor.renderer.$gutterLayer,o=r.$annotations[e];n=o?{text:Array.from(o.text),type:Array.from(o.type)}:{text:[],type:[]};var i=r.session.getFoldLine(e);if(i&&r.$showFoldedAnnotations){for(var a,s={error:[],warning:[],info:[]},l=e+1;l<=i.end.row;l++)if(r.$annotations[l])for(var u=0;u<r.$annotations[l].text.length;u++){var c=r.$annotations[l].type[u];s[c].push(r.$annotations[l].text[u]),"error"!==c?"warning"!==c||(a="warning_fold"):a="error_fold"}if("error_fold"===a||"warning_fold"===a){var d="".concat(t.annotationsToSummaryString(s)," in folded code.");n.text.push(d),n.type.push(a)}}if(0===n.text.length)return this.hide();var f={error:[],warning:[],info:[]},h=r.$useSvgGutterIcons?"ace_icon_svg":"ace_icon";for(l=0;l<n.text.length;l++){var p="<span class='ace_".concat(n.type[l]," ").concat(h,"' aria-label='").concat(t.annotationLabels[n.type[l].replace("_fold","")].singular,"' role=img> </span> ").concat(n.text[l]);f[n.type[l].replace("_fold","")].push(p)}var g=[].concat(f.error,f.warning,f.info).join("<br>");this.setHtml(g),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},t.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},t.annotationsToSummaryString=function(e){var n,r,o=[];try{for(var a=i(["error","warning","info"]),s=a.next();!s.done;s=a.next()){var l=s.value;if(e[l].length){var u=1===e[l].length?t.annotationLabels[l].singular:t.annotationLabels[l].plural;o.push("".concat(e[l].length," ").concat(u))}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o.join(", ")},t}(l);t.GutterTooltip=c})),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/event"),o=e("../lib/useragent"),i=function(){function e(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return e.prototype.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},e.prototype.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},e.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},e.prototype.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},e.prototype.getGutterRow=function(){var e=this.getDocumentPosition().row;return this.editor.session.documentToScreenRow(e,0)-this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0)},e.prototype.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},e.prototype.getButton=function(){return r.getButton(this.domEvent)},e.prototype.getShiftKey=function(){return this.domEvent.shiftKey},e.prototype.getAccelKey=function(){return o.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},e}();t.MouseEvent=i})),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=e("../lib/event"),i=e("../lib/useragent");function a(e){var t=e.editor,n=r.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent=" ";["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach((function(t){e[t]=this[t]}),this),t.on("mousedown",this.onMouseDown.bind(e));var a,l,u,c,d,f,h,p,g,m,v,y=t.container,b=0;function w(){var e=f;(function(e,n){var r=Date.now(),o=!n||e.row!=n.row,i=!n||e.column!=n.column;!m||o||i?(t.moveCursorToPosition(e),m=r,v={x:l,y:u}):s(v.x,v.y,l,u)>5?m=null:r-m>=200&&(t.renderer.scrollCursorIntoView(),m=null)})(f=t.renderer.screenToTextCoordinates(l,u),e),function(e,n){var r=Date.now(),o=t.renderer.layerConfig.lineHeight,i=t.renderer.layerConfig.characterWidth,a=t.renderer.scroller.getBoundingClientRect(),s={x:{left:l-a.left,right:a.right-l},y:{top:u-a.top,bottom:a.bottom-u}},c=Math.min(s.x.left,s.x.right),d=Math.min(s.y.top,s.y.bottom),f={row:e.row,column:e.column};c/i<=2&&(f.column+=s.x.left<s.x.right?-3:2),d/o<=1&&(f.row+=s.y.top<s.y.bottom?-1:1);var h=e.row!=f.row,p=e.column!=f.column,m=!n||e.row!=n.row;h||p&&!m?g?r-g>=200&&t.renderer.scrollCursorIntoView(f):g=r:g=null}(f,e)}function x(){d=t.selection.toOrientedRange(),a=t.session.addMarker(d,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(c),w(),c=setInterval(w,20),b=0,o.addListener(document,"mousemove",E)}function S(){clearInterval(c),t.session.removeMarker(a),a=null,t.selection.fromOrientedRange(d),t.isFocused()&&!p&&t.$resetCursorStyle(),d=null,f=null,b=0,g=null,m=null,o.removeListener(document,"mousemove",E)}this.onDragStart=function(e){if(this.cancelDrag||!y.draggable){var r=this;return setTimeout((function(){r.startSelect(),r.captureMouse(e)}),0),e.preventDefault()}d=t.getSelectionRange();var o=e.dataTransfer;o.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),o.setDragImage&&o.setDragImage(n,0,0),setTimeout((function(){t.container.removeChild(n)})),o.clearData(),o.setData("Text",t.session.getTextRange()),p=!0,this.setState("drag")},this.onDragEnd=function(e){if(y.draggable=!1,p=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;h||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return l=e.clientX,u=e.clientY,a||x(),b++,e.dataTransfer.dropEffect=h=C(e),o.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&k(e.dataTransfer))return l=e.clientX,u=e.clientY,a||(x(),b++),null!==_&&(_=null),e.dataTransfer.dropEffect=h=C(e),o.preventDefault(e)},this.onDragLeave=function(e){if(--b<=0&&a)return S(),h=null,o.preventDefault(e)},this.onDrop=function(e){if(f){var n=e.dataTransfer;if(p)switch(h){case"move":d=d.contains(f.row,f.column)?{start:f,end:f}:t.moveText(d,f);break;case"copy":d=t.moveText(d,f,!0)}else{var r=n.getData("Text");d={start:f,end:t.session.insert(f,r)},t.focus(),h=null}return S(),o.preventDefault(e)}},o.addListener(y,"dragstart",this.onDragStart.bind(e),t),o.addListener(y,"dragend",this.onDragEnd.bind(e),t),o.addListener(y,"dragenter",this.onDragEnter.bind(e),t),o.addListener(y,"dragover",this.onDragOver.bind(e),t),o.addListener(y,"dragleave",this.onDragLeave.bind(e),t),o.addListener(y,"drop",this.onDrop.bind(e),t);var _=null;function E(){null==_&&(_=setTimeout((function(){null!=_&&a&&S()}),20))}function k(e){var t=e.types;return!t||Array.prototype.some.call(t,(function(e){return"text/plain"==e||"Text"==e}))}function C(e){var t=["copy","copymove","all","uninitialized"],n=i.isMac?e.altKey:e.ctrlKey,r="uninitialized";try{r=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var o="none";return n&&t.indexOf(r)>=0?o="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(r)>=0?o="move":t.indexOf(r)>=0&&(o="copy"),o}}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=i.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;i.isIE&&"dragReady"==this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>3&&t.dragDrop());"dragWait"===this.state&&(s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton();if(1===(e.domEvent.detail||1)&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var o=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in o&&(o.unselectable="on"),t.getDragDelay()){if(i.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(a.prototype),t.DragdropHandler=a})),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,o=e("../lib/event"),i=e("../lib/dom");t.addTouchListeners=function(e,t){var n,a,s,l,u,c,d,f,h,p="scroll",g=0,m=0,v=0,y=0;function b(){var e=window.navigator&&window.navigator.clipboard,n=!1,r=function(r){var o,a,s=r.target.getAttribute("action");if("more"==s||!n)return n=!n,o=t.getCopyText(),a=t.session.getUndoManager().hasUndo(),void h.replaceChild(i.buildDom(n?["span",!o&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],o&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],o&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],a&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),h.firstChild);"paste"==s?e.readText().then((function(e){t.execCommand(s,e)})):s&&("cut"!=s&&"copy"!=s||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(s)),h.firstChild.style.display="none",n=!1,"openCommandPallete"!=s&&t.focus()};h=i.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),r(e)},onclick:r},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function w(){h||b();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.renderer.textToScreenCoordinates(0,0).pageX,o=t.renderer.scrollLeft,i=t.container.getBoundingClientRect();h.style.top=n.pageY-i.top-3+"px",n.pageX-i.left<i.width-70?(h.style.left="",h.style.right="10px"):(h.style.right="",h.style.left=r+o-i.left+"px"),h.style.display="",h.firstChild.style.display="none",t.on("input",x)}function x(e){h&&(h.style.display="none"),t.off("input",x)}function S(){u=null,clearTimeout(u);var e=t.selection.getRange(),n=e.contains(d.row,d.column);!e.isEmpty()&&n||(t.selection.moveToPosition(d),t.selection.selectWord()),p="wait",w()}o.addListener(e,"contextmenu",(function(e){f&&t.textInput.getElement().focus()}),t),o.addListener(e,"touchstart",(function(e){var o=e.touches;if(u||o.length>1)return clearTimeout(u),u=null,s=-1,void(p="zoom");f=t.$mouseHandler.isMousePressed=!0;var i=t.renderer.layerConfig.lineHeight,c=t.renderer.layerConfig.lineHeight,h=e.timeStamp;l=h;var b=o[0],w=b.clientX,x=b.clientY;Math.abs(n-w)+Math.abs(a-x)>i&&(s=-1),n=e.clientX=w,a=e.clientY=x,v=y=0;var _=new r(e,t);if(d=_.getDocumentPosition(),h-s<500&&1==o.length&&!g)m++,e.preventDefault(),e.button=0,function(){u=null,clearTimeout(u),t.selection.moveToPosition(d);var e=m>=2?t.selection.getLineRange(d.row):t.session.getBracketRange(d);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}();else{m=0;var E=t.selection.cursor,k=t.selection.isEmpty()?E:t.selection.anchor,C=t.renderer.$cursorLayer.getPixelPosition(E,!0),A=t.renderer.$cursorLayer.getPixelPosition(k,!0),T=t.renderer.scroller.getBoundingClientRect(),O=t.renderer.layerConfig.offset,M=t.renderer.scrollLeft,R=function(e,t){return(e/=c)*e+(t=t/i-.75)*t};if(e.clientX<T.left)return void(p="zoom");var L=R(e.clientX-T.left-C.left+M,e.clientY-T.top-C.top+O),D=R(e.clientX-T.left-A.left+M,e.clientY-T.top-A.top+O);L<3.5&&D<3.5&&(p=L>D?"cursor":"anchor"),p=D<3.5?"anchor":L<3.5?"cursor":"scroll",u=setTimeout(S,450)}s=h}),t),o.addListener(e,"touchend",(function(e){f=t.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),"zoom"==p?(p="",g=0):u?(t.selection.moveToPosition(d),g=0,w()):"scroll"==p?(g+=60,c=setInterval((function(){g--<=0&&(clearInterval(c),c=null),Math.abs(v)<.01&&(v=0),Math.abs(y)<.01&&(y=0),g<20&&(v*=.9),g<20&&(y*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*y),e==t.session.getScrollTop()&&(g=0)}),10),x()):w(),clearTimeout(u),u=null}),t),o.addListener(e,"touchmove",(function(e){u&&(clearTimeout(u),u=null);var o=e.touches;if(!(o.length>1||"zoom"==p)){var i=o[0],s=n-i.clientX,c=a-i.clientY;if("wait"==p){if(!(s*s+c*c>4))return e.preventDefault();p="cursor"}n=i.clientX,a=i.clientY,e.clientX=i.clientX,e.clientY=i.clientY;var d=e.timeStamp,f=d-l;if(l=d,"scroll"==p){var h=new r(e,t);h.speed=1,h.wheelX=s,h.wheelY=c,10*Math.abs(s)<Math.abs(c)&&(s=0),10*Math.abs(c)<Math.abs(s)&&(c=0),0!=f&&(v=s/f,y=c/f),t._emit("mousewheel",h),h.propagationStopped||(v=y=0)}else{var g=new r(e,t).getDocumentPosition();"cursor"==p?t.selection.moveCursorToPosition(g):"anchor"==p&&t.selection.setSelectionAnchor(g.row,g.column),t.renderer.scrollCursorIntoView(g),e.preventDefault()}}}),t)}})),ace.define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/mouse/touch_handler","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/event"),o=e("../lib/useragent"),i=e("./default_handlers").DefaultHandlers,a=e("./default_gutter_handler").GutterHandler,s=e("./mouse_event").MouseEvent,l=e("./dragdrop_handler").DragdropHandler,u=e("./touch_handler").addTouchListeners,c=e("../config"),d=function(){function e(e){var t=this;this.editor=e,new i(this),new a(this),new l(this);var n=function(t){(!document.hasFocus||!document.hasFocus()||!e.isFocused()&&document.activeElement==(e.textInput&&e.textInput.getElement()))&&window.focus(),e.focus(),setTimeout((function(){e.isFocused()||e.focus()}))},s=e.renderer.getMouseEventTarget();r.addListener(s,"click",this.onMouseEvent.bind(this,"click"),e),r.addListener(s,"mousemove",this.onMouseMove.bind(this,"mousemove"),e),r.addMultiMouseDownListener([s,e.renderer.scrollBarV&&e.renderer.scrollBarV.inner,e.renderer.scrollBarH&&e.renderer.scrollBarH.inner,e.textInput&&e.textInput.getElement()].filter(Boolean),[400,300,250],this,"onMouseEvent",e),r.addMouseWheelListener(e.container,this.onMouseWheel.bind(this,"mousewheel"),e),u(e.container,e);var c=e.renderer.$gutter;r.addListener(c,"mousedown",this.onMouseEvent.bind(this,"guttermousedown"),e),r.addListener(c,"click",this.onMouseEvent.bind(this,"gutterclick"),e),r.addListener(c,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick"),e),r.addListener(c,"mousemove",this.onMouseEvent.bind(this,"guttermousemove"),e),r.addListener(s,"mousedown",n,e),r.addListener(c,"mousedown",n,e),o.isIE&&e.renderer.scrollBarV&&(r.addListener(e.renderer.scrollBarV.element,"mousedown",n,e),r.addListener(e.renderer.scrollBarH.element,"mousedown",n,e)),e.on("mousemove",(function(n){if(!t.state&&!t.$dragDelay&&t.$dragEnabled){var r=e.renderer.screenToTextCoordinates(n.x,n.y),o=e.session.selection.getRange(),i=e.renderer;!o.isEmpty()&&o.insideStart(r.row,r.column)?i.setCursorStyle("default"):i.setCursorStyle("")}}),e)}return e.prototype.onMouseEvent=function(e,t){this.editor.session&&this.editor._emit(e,new s(t,this.editor))},e.prototype.onMouseMove=function(e,t){var n=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;n&&n.length&&this.editor._emit(e,new s(t,this.editor))},e.prototype.onMouseWheel=function(e,t){var n=new s(t,this.editor);n.speed=2*this.$scrollSpeed,n.wheelX=t.wheelX,n.wheelY=t.wheelY,this.editor._emit(e,n)},e.prototype.setState=function(e){this.state=e},e.prototype.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var n=this.editor,i=this.editor.renderer;i.$isMousePressed=!0;var a=this,l=function(e){if(e){if(o.isWebKit&&!e.which&&a.releaseMouse)return a.releaseMouse();a.x=e.clientX,a.y=e.clientY,t&&t(e),a.mouseEvent=new s(e,a.editor),a.$mouseMoved=!0}},u=function(e){n.off("beforeEndOperation",d),clearInterval(f),n.session&&c(),a[a.state+"End"]&&a[a.state+"End"](e),a.state="",a.isMousePressed=i.$isMousePressed=!1,i.$keepTextAreaAtCursor&&i.$moveTextAreaToCursor(),a.$onCaptureMouseMove=a.releaseMouse=null,e&&a.onMouseEvent("mouseup",e),n.endOperation()},c=function(){a[a.state]&&a[a.state](),a.$mouseMoved=!1};if(o.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout((function(){u(e)}));var d=function(e){a.releaseMouse&&n.curOp.command.name&&n.curOp.selectionChanged&&(a[a.state+"End"]&&a[a.state+"End"](),a.state="",a.releaseMouse())};n.on("beforeEndOperation",d),n.startOperation({command:{name:"mouse"}}),a.$onCaptureMouseMove=l,a.releaseMouse=r.capture(this.editor.container,l,u);var f=setInterval(c,20)},e.prototype.cancelContextMenu=function(){var e=function(t){t&&t.domEvent&&"contextmenu"!=t.domEvent.type||(this.editor.off("nativecontextmenu",e),t&&t.domEvent&&r.stopEvent(t.domEvent))}.bind(this);setTimeout(e,10),this.editor.on("nativecontextmenu",e)},e.prototype.destroy=function(){this.releaseMouse&&this.releaseMouse()},e}();d.prototype.releaseMouse=null,c.defineOptions(d.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:o.isMac?150:0},dragEnabled:{initialValue:!0},focusTimeout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=d})),ace.define("ace/mouse/fold_handler",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=function(e){e.on("click",(function(t){var n=t.getDocumentPosition(),o=e.session,i=o.getFoldAt(n.row,n.column,1);i&&(t.getAccelKey()?o.removeFold(i):o.expandFold(i),t.stop());var a=t.domEvent&&t.domEvent.target;a&&r.hasCssClass(a,"ace_inline_button")&&r.hasCssClass(a,"ace_toggle_wrap")&&(o.setOption("wrap",!o.getUseWrapMode()),e.renderer.scrollCursorIntoView())})),e.on("gutterclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session;r.foldWidgets&&r.foldWidgets[n]&&e.session.onFoldWidgetClick(n,t),e.isFocused()||e.focus(),t.stop()}})),e.on("gutterdblclick",(function(t){if("foldWidgets"==e.renderer.$gutterLayer.getRegion(t)){var n=t.getDocumentPosition().row,r=e.session,o=r.getParentFoldRangeData(n,!0),i=o.range||o.firstRange;if(i){n=i.start.row;var a=r.getFoldAt(n,r.getLine(n).length,1);a?r.removeFold(a):(r.addFold("...",i),e.renderer.scrollCursorIntoView({row:i.start.row,column:0}))}t.stop()}}))};t.FoldHandler=o})),ace.define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],(function(e,t,n){"use strict";var r=e("../lib/keys"),o=e("../lib/event"),i=function(){function e(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)}return e.prototype.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},e.prototype.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},e.prototype.addKeyboardHandler=function(e,t){if(e){"function"!=typeof e||e.handleKeyboard||(e.handleKeyboard=e);var n=this.$handlers.indexOf(e);-1!=n&&this.$handlers.splice(n,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==n&&e.attach&&e.attach(this.$editor)}},e.prototype.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},e.prototype.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},e.prototype.getStatusText=function(){var e=this.$data,t=e.editor;return this.$handlers.map((function(n){return n.getStatusText&&n.getStatusText(t,e)||""})).filter(Boolean).join(" ")},e.prototype.$callKeyboardHandlers=function(e,t,n,r){for(var i,a=!1,s=this.$editor.commands,l=this.$handlers.length;l--&&!((i=this.$handlers[l].handleKeyboard(this.$data,e,t,n,r))&&i.command&&((a="null"==i.command||s.exec(i.command,this.$editor,i.args,r))&&r&&-1!=e&&1!=i.passEvent&&1!=i.command.passEvent&&o.stopEvent(r),a)););return a||-1!=e||(i={command:"insertstring"},a=s.exec("insertstring",this.$editor,t)),a&&this.$editor._signal&&this.$editor._signal("keyboardActivity",i),a},e.prototype.onCommandKey=function(e,t,n){var o=r.keyCodeToString(n);return this.$callKeyboardHandlers(t,o,n,e)},e.prototype.onTextInput=function(e){return this.$callKeyboardHandlers(-1,e)},e}();t.KeyBinding=i})),ace.define("ace/lib/bidiutil",["require","exports","module"],(function(e,t,n){"use strict";var r=0,o=0,i=!1,a=!1,s=!1,l=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],u=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],c=0,d=1,f=2,h=3,p=4,g=5,m=6,v=7,y=8,b=9,w=10,x=11,S=12,_=13,E=14,k=15,C=16,A=17,T=18,O=[T,T,T,T,T,T,T,T,T,m,g,m,y,g,T,T,T,T,T,T,T,T,T,T,T,T,T,T,g,g,g,m,y,p,p,x,x,x,p,p,p,p,p,w,b,w,b,b,f,f,f,f,f,f,f,f,f,f,b,p,p,p,p,p,p,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,p,p,p,p,p,p,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,p,p,p,p,T,T,T,T,T,T,g,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,b,p,x,x,x,x,p,p,p,p,c,p,p,T,p,p,x,x,f,f,p,c,p,p,p,f,c,p,p,p,p,p],M=[y,y,y,y,y,y,y,y,y,y,y,T,T,T,c,d,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,y,g,_,E,k,C,A,b,x,x,x,x,x,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,b,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,p,y];function R(e,t,n){if(!(o<e))if(1!=e||1!=r||a)for(var i,s,l,u,c=n.length,d=0;d<c;){if(t[d]>=e){for(i=d+1;i<c&&t[i]>=e;)i++;for(s=d,l=i-1;s<l;s++,l--)u=n[s],n[s]=n[l],n[l]=u;d=i}d++}else n.reverse()}function L(e,t,n,o){var l,u,O,M,R=t[o];switch(R){case c:case d:i=!1;case p:case h:return R;case f:return i?h:f;case v:return i=!0,!0,d;case y:return p;case b:return o<1||o+1>=t.length||(l=n[o-1])!=f&&l!=h||(u=t[o+1])!=f&&u!=h?p:(i&&(u=h),u==l?u:p);case w:return(l=o>0?n[o-1]:g)==f&&o+1<t.length&&t[o+1]==f?f:p;case x:if(o>0&&n[o-1]==f)return f;if(i)return p;for(M=o+1,O=t.length;M<O&&t[M]==x;)M++;return M<O&&t[M]==f?f:p;case S:for(O=t.length,M=o+1;M<O&&t[M]==S;)M++;if(M<O){var L=e[o],D=L>=1425&&L<=2303||64286==L;if(l=t[M],D&&(l==d||l==v))return d}return o<1||(l=t[o-1])==g?p:n[o-1];case g:return i=!1,a=!0,r;case m:return s=!0,p;case _:case E:case C:case A:case k:i=!1;case T:return p}}function D(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?c:O[t]:5==n?/[\u0591-\u05f4]/.test(e)?d:c:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?S:/[\u0660-\u0669\u066b-\u066c]/.test(e)?h:1642==t?x:/[\u06f0-\u06f9]/.test(e)?f:v:32==n&&t<=8287?M[255&t]:254==n&&t>=65136?v:p}t.L=c,t.R=d,t.EN=f,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="·",t.doBidiReorder=function(e,n,c){if(e.length<2)return{};var f=e.split(""),b=new Array(f.length),w=new Array(f.length),x=[];r=c?1:0,function(e,t,n,c){var d=r?u:l,f=null,h=null,p=null,v=0,b=null,w=-1,x=null,S=null,_=[];if(!c)for(x=0,c=[];x<n;x++)c[x]=D(e[x]);for(o=r,i=!1,!1,a=!1,s=!1,S=0;S<n;S++){if(f=v,_[S]=h=L(e,c,_,S),b=240&(v=d[f][h]),v&=15,t[S]=p=d[v][5],b>0)if(16==b){for(x=w;x<S;x++)t[x]=1;w=-1}else w=-1;if(d[v][6])-1==w&&(w=S);else if(w>-1){for(x=w;x<S;x++)t[x]=p;w=-1}c[S]==g&&(t[S]=0),o|=p}if(s)for(x=0;x<n;x++)if(c[x]==m){t[x]=r;for(var E=x-1;E>=0&&c[E]==y;E--)t[E]=r}}(f,x,f.length,n);for(var S=0;S<b.length;b[S]=S,S++);R(2,x,b),R(1,x,b);for(S=0;S<b.length-1;S++)n[S]===h?x[S]=t.AN:x[S]===d&&(n[S]>v&&n[S]<_||n[S]===p||n[S]===T)?x[S]=t.ON_R:S>0&&"ل"===f[S-1]&&/\u0622|\u0623|\u0625|\u0627/.test(f[S])&&(x[S-1]=x[S]=t.R_H,S++);f[f.length-1]===t.DOT&&(x[f.length-1]=t.B),"‫"===f[0]&&(x[0]=t.RLE);for(S=0;S<b.length;S++)w[S]=x[b[S]];return{logicalFromVisual:b,bidiLevels:w}},t.hasBidiCharacters=function(e,t){for(var n=!1,r=0;r<e.length;r++)t[r]=D(e.charAt(r)),n||t[r]!=d&&t[r]!=v&&t[r]!=h||(n=!0);return n},t.getVisualFromLogicalIdx=function(e,t){for(var n=0;n<t.logicalFromVisual.length;n++)if(t.logicalFromVisual[n]==e)return n;return 0}})),ace.define("ace/bidihandler",["require","exports","module","ace/lib/bidiutil","ace/lib/lang"],(function(e,t,n){"use strict";var r=e("./lib/bidiutil"),o=e("./lib/lang"),i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\u202B]/,a=function(){function e(e){this.session=e,this.bidiMap={},this.currentRow=null,this.bidiUtil=r,this.charWidths=[],this.EOL="¬",this.showInvisibles=!0,this.isRtlDir=!1,this.$isRtl=!1,this.line="",this.wrapIndent=0,this.EOF="¶",this.RLE="‫",this.contentWidth=0,this.fontMetrics=null,this.rtlLineOffset=0,this.wrapOffset=0,this.isMoveLeftOperation=!1,this.seenBidi=i.test(e.getValue())}return e.prototype.isBidiRow=function(e,t,n){return!!this.seenBidi&&(e!==this.currentRow&&(this.currentRow=e,this.updateRowLine(t,n),this.updateBidiMap()),this.bidiMap.bidiLevels)},e.prototype.onChange=function(e){this.seenBidi?this.currentRow=null:"insert"==e.action&&i.test(e.lines.join("\n"))&&(this.seenBidi=!0,this.currentRow=null)},e.prototype.getDocumentRow=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n=this.session.$getRowCacheIndex(t,this.currentRow);n>=0&&(e=this.session.$docRowCache[n])}return e},e.prototype.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var n,r=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===r;)r=n,e++;else e=this.currentRow;return e},e.prototype.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var i=this.session.$wrapData[e];i&&(void 0===t&&(t=this.getSplitIndex()),t>0&&i.length?(this.wrapIndent=i.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=t<i.length?this.line.substring(i[t-1],i[t]):this.line.substring(i[i.length-1])):this.line=this.line.substring(0,i[t]),t==i.length&&(this.line+=this.showInvisibles?n:r.DOT))}else this.line+=this.showInvisibles?n:r.DOT;var a,s=this.session,l=0;this.line=this.line.replace(/\t|[\u1100-\u2029, \u202F-\uFFE6]/g,(function(e,t){return"\t"===e||s.isFullWidth(e.charCodeAt(0))?(a="\t"===e?s.getScreenTabSize(t+l):2,l+=a-1,o.stringRepeat(r.DOT,a)):e})),this.isRtlDir&&(this.fontMetrics.$main.textContent=this.line.charAt(this.line.length-1)==r.DOT?this.line.substr(0,this.line.length-1):this.line,this.rtlLineOffset=this.contentWidth-this.fontMetrics.$main.getBoundingClientRect().width)},e.prototype.updateBidiMap=function(){var e=[];r.hasBidiCharacters(this.line,e)||this.isRtlDir?this.bidiMap=r.doBidiReorder(this.line,e,this.isRtlDir):this.bidiMap={}},e.prototype.markAsDirty=function(){this.currentRow=null},e.prototype.updateCharacterWidths=function(e){if(this.characterWidth!==e.$characterSize.width){this.fontMetrics=e;var t=this.characterWidth=e.$characterSize.width,n=e.$measureCharWidth("ה");this.charWidths[r.L]=this.charWidths[r.EN]=this.charWidths[r.ON_R]=t,this.charWidths[r.R]=this.charWidths[r.AN]=n,this.charWidths[r.R_H]=.45*n,this.charWidths[r.B]=this.charWidths[r.RLE]=0,this.currentRow=null}},e.prototype.setShowInvisibles=function(e){this.showInvisibles=e,this.currentRow=null},e.prototype.setEolChar=function(e){this.EOL=e},e.prototype.setContentWidth=function(e){this.contentWidth=e},e.prototype.isRtlLine=function(e){return!!this.$isRtl||(null!=e?this.session.getLine(e).charAt(0)==this.RLE:this.isRtlDir)},e.prototype.setRtlDirection=function(e,t){for(var n=e.getCursorPosition(),r=e.selection.getSelectionAnchor().row;r<=n.row;r++)t||e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE?t&&e.session.getLine(r).charAt(0)!==e.session.$bidiHandler.RLE&&e.session.doc.insert({column:0,row:r},e.session.$bidiHandler.RLE):e.session.doc.removeInLine(r,0,1)},e.prototype.getPosLeft=function(e){e-=this.wrapIndent;var t=this.line.charAt(0)===this.RLE?1:0,n=e>t?this.session.getOverwrite()?e:e-1:t,o=r.getVisualFromLogicalIdx(n,this.bidiMap),i=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&i[o]%2!=0&&o++;for(var s=0;s<o;s++)a+=this.charWidths[i[s]];return!this.session.getOverwrite()&&e>t&&i[o]%2==0&&(a+=this.charWidths[i[o]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},e.prototype.getSelections=function(e,t){var n,r=this.bidiMap,o=r.bidiLevels,i=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,u=!1,c=!1,d=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,h=0;h<o.length;h++)f=r.logicalFromVisual[h],n=o[h],(u=f>=s&&f<l)&&!c?d=a:!u&&c&&i.push({left:d,width:a-d}),a+=this.charWidths[n],c=u;if(u&&h===o.length&&i.push({left:d,width:a-d}),this.isRtlDir)for(var p=0;p<i.length;p++)i[p].left+=this.rtlLineOffset;return i},e.prototype.offsetToCol=function(e){this.isRtlDir&&(e-=this.rtlLineOffset);var t=0,n=(e=Math.max(e,0),0),r=0,o=this.bidiMap.bidiLevels,i=this.charWidths[o[r]];for(this.wrapIndent&&(e-=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);e>n+i/2;){if(n+=i,r===o.length-1){i=0;break}i=this.charWidths[o[++r]]}return r>0&&o[r-1]%2!=0&&o[r]%2==0?(e<n&&r--,t=this.bidiMap.logicalFromVisual[r]):r>0&&o[r-1]%2==0&&o[r]%2!=0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===o.length-1&&0===i&&o[r-1]%2==0||!this.isRtlDir&&0===r&&o[r]%2!=0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&o[r-1]%2!=0&&0!==i&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent},e}();t.BidiHandler=a})),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/lang"),i=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(){function e(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",(function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)})),this.anchor.on("change",(function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")}))}return e.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},e.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},e.prototype.getCursor=function(){return this.lead.getPosition()},e.prototype.setAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},e.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},e.prototype.getSelectionLead=function(){return this.lead.getPosition()},e.prototype.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},e.prototype.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},e.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},e.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},e.prototype.setRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},e.prototype.$setSelection=function(e,t,n,r){if(!this.$silent){var o=this.$isEmpty,i=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||o!=this.$isEmpty||i)&&this._emit("changeSelection")}},e.prototype.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},e.prototype.selectTo=function(e,t){this.$moveSelection((function(){this.moveCursorTo(e,t)}))},e.prototype.selectToPosition=function(e){this.$moveSelection((function(){this.moveCursorToPosition(e)}))},e.prototype.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},e.prototype.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},e.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},e.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},e.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},e.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},e.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},e.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},e.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},e.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},e.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},e.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},e.prototype.getWordRange=function(e,t){if(void 0===t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},e.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},e.prototype.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},e.prototype.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,o=this.session.getFoldLine(r);return o?(r=o.start.row,n=o.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},e.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},e.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},e.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},e.prototype.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,o=e.column+t;return n<0&&(r=e.column-t,o=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,o).split(" ").length-1==t},e.prototype.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},e.prototype.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var n=this.session.getTabSize();t=this.lead;this.wouldMoveIntoSoftTab(t,n,1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,n):this.moveCursorBy(0,1)}},e.prototype.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,n=this.session.documentToScreenRow(e,t),r=this.session.screenToDocumentPosition(n,0),o=this.session.getDisplayLine(e,null,r.row,r.column).match(/^\s*/);o[0].length==t||this.session.$useEmacsStyleLineStart||(r.column+=o[0].length),this.moveCursorToPosition(r)},e.prototype.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var n=this.session.getLine(t.row);if(t.column==n.length){var r=n.search(/\s+$/);r>0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},e.prototype.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},e.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},e.prototype.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var o=this.session.getFoldAt(e,t,1);if(o)this.moveCursorTo(o.end.row,o.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(r)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},e.prototype.moveCursorLongWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))this.moveCursorTo(e.start.row,e.start.column);else{var r=this.session.getFoldStringAt(t,n,-1);null==r&&(r=this.doc.getLine(t).substring(0,n));var i=o.stringReverse(r);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(i)&&(n-=this.session.nonTokenRe.lastIndex,i=i.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),n<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(t>0&&this.moveCursorWordLeft());this.session.tokenRe.exec(i)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},e.prototype.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,o=this.session.tokenRe;if(o.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{for(;(t=e[n])&&r.test(t);)n++;if(n<1)for(o.lastIndex=0;(t=e[n])&&!o.test(t);)if(o.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}for(;(t=e[n])&&r.test(t);)n++;if(n>2)break}}return o.lastIndex=0,n},e.prototype.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),o=this.session.getFoldAt(e,t,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(t==n.length){var i=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e<i&&/^\s*$/.test(r));/^\s+/.test(r)||(r=""),t=0}var a=this.$shortWordEndIndex(r);this.moveCursorTo(e,t+a)},e.prototype.moveCursorShortWordLeft=function(){var e,t=this.lead.row,n=this.lead.column;if(e=this.session.getFoldAt(t,n,-1))return this.moveCursorTo(e.start.row,e.start.column);var r=this.session.getLine(t).substring(0,n);if(0===n){do{t--,r=this.doc.getLine(t)}while(t>0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var i=o.stringReverse(r),a=this.$shortWordEndIndex(i);return this.moveCursorTo(t,n-a)},e.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},e.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},e.prototype.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var o=this.session.lineWidgets[this.lead.row];e<0?e-=o.rowsAbove||0:e>0&&(e+=o.rowCount-(o.rowsAbove||0))}var i=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&i.row===this.lead.row&&(i.column,this.lead.column),this.moveCursorTo(i.row,i.column+t,0===t)},e.prototype.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},e.prototype.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(o.charAt(t))&&o.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},e.prototype.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},e.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},e.prototype.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},e.prototype.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},e.prototype.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},e.prototype.toJSON=function(){if(this.rangeCount)var e=this.ranges.map((function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t}));else(e=this.getRange()).isBackwards=this.isBackwards();return e},e.prototype.fromJSON=function(e){if(null==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},e.prototype.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0},e}();s.prototype.setSelectionAnchor=s.prototype.setAnchor,s.prototype.getSelectionAnchor=s.prototype.getAnchor,s.prototype.setSelectionRange=s.prototype.setRange,r.implement(s.prototype,i),t.Selection=s})),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],(function(e,t,n){"use strict";var r=e("./lib/report_error").reportError,o=2e3,i=function(){function e(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],o=0,i=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l<n.length;l++){var u=n[l];if(u.defaultToken&&(i.defaultToken=u.defaultToken),u.caseInsensitive&&-1===a.indexOf("i")&&(a+="i"),u.unicode&&-1===a.indexOf("u")&&(a+="u"),null!=u.regex){u.regex instanceof RegExp&&(u.regex=u.regex.toString().slice(1,-1));var c=u.regex,d=new RegExp("(?:("+c+")|(.))").exec("a").length-2;Array.isArray(u.token)?1==u.token.length||1==d?u.token=u.token[0]:d-1!=u.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:u,groupCount:d-1}),u.token=u.token[0]):(u.tokenArray=u.token,u.token=null,u.onMatch=this.$arrayTokens):"function"!=typeof u.token||u.onMatch||(u.onMatch=d>1?this.$applyToken:u.token),d>1&&(/\\\d/.test(u.regex)?c=u.regex.replace(/\\([0-9]+)/g,(function(e,t){return"\\"+(parseInt(t,10)+o+1)})):(d=1,c=this.removeCapturingGroups(u.regex)),u.splitRegex||"string"==typeof u.token||s.push(u)),i[o]=l,o+=d,r.push(c),u.onMatch||(u.onMatch=null)}}r.length||(i[0]=0,r.push("$")),s.forEach((function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)}),this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}}return e.prototype.$setMaxTokenCount=function(e){o=0|e},e.prototype.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"==typeof n)return[{type:n,value:e}];for(var r=[],o=0,i=n.length;o<i;o++)t[o]&&(r[r.length]={type:n[o],value:t[o]});return r},e.prototype.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var n=[],r=this.tokenArray,o=0,i=r.length;o<i;o++)t[o+1]&&(n[n.length]={type:r[o],value:t[o+1]});return n},e.prototype.removeCapturingGroups=function(e){return e.replace(/\\.|\[(?:\\.|[^\\\]])*|\(\?[:=!<]|(\()/g,(function(e,t){return t?"(?:":e}))},e.prototype.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var n=0,r=!1,o={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,(function(e,t,i,a,s,l){return r?r="]"!=s:s?r=!0:a?(n==o.stack&&(o.end=l+1,o.stack=-1),n--):i&&(n++,1!=i.length&&(o.stack=n,o.start=l)),e})),null!=o.end&&/^\)*$/.test(e.substr(o.end))&&(e=e.substring(0,o.start)+e.substr(o.end))}return"^"!=e.charAt(0)&&(e="^"+e),"$"!=e.charAt(e.length-1)&&(e+="$"),new RegExp(e,(t||"").replace("g",""))},e.prototype.getLineTokens=function(e,t){if(t&&"string"!=typeof t){var n=t.slice(0);"#tmp"===(t=n[0])&&(n.shift(),t=n.shift())}else n=[];var r=t||"start",i=this.states[r];i||(r="start",i=this.states[r]);var a=this.matchMappings[r],s=this.regExps[r];s.lastIndex=0;for(var l,u=[],c=0,d=0,f={type:null,value:""};l=s.exec(e);){var h=a.defaultToken,p=null,g=l[0],m=s.lastIndex;if(m-g.length>c){var v=e.substring(c,m-g.length);f.type==h?f.value+=v:(f.type&&u.push(f),f={type:h,value:v})}for(var y=0;y<l.length-2;y++)if(void 0!==l[y+1]){h=(p=i[a[y]]).onMatch?p.onMatch(g,r,n,e):p.token,p.next&&(r="string"==typeof p.next?p.next:p.next(r,n),(i=this.states[r])||(this.reportError("state doesn't exist",r),r="start",i=this.states[r]),a=this.matchMappings[r],c=m,(s=this.regExps[r]).lastIndex=m),p.consumeLineEnd&&(c=m);break}if(g)if("string"==typeof h)p&&!1===p.merge||f.type!==h?(f.type&&u.push(f),f={type:h,value:g}):f.value+=g;else if(h){f.type&&u.push(f),f={type:null,value:""};for(y=0;y<h.length;y++)u.push(h[y])}if(c==e.length)break;if(c=m,d++>o){for(d>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)f.type&&u.push(f),f={value:e.substring(c,c+=500),type:"overflow"};r="start",n=[];break}}return f.type&&u.push(f),n.length>1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:u,state:n.length?n:r}},e}();i.prototype.reportError=r,t.Tokenizer=i})),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],(function(e,t,n){"use strict";var r=e("../lib/deep_copy").deepCopy,o=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],o=0;o<r.length;o++){var i=r[o];(i.next||i.onMatch)&&("string"==typeof i.next&&0!==i.next.indexOf(t)&&(i.next=t+i.next),i.nextState&&0!==i.nextState.indexOf(t)&&(i.nextState=t+i.nextState))}this.$rules[t+n]=r}else for(var n in e)this.$rules[n]=e[n]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,n,o,i){var a="function"==typeof e?(new e).getRules():e;if(o)for(var s=0;s<o.length;s++)o[s]=t+o[s];else for(var l in o=[],a)o.push(t+l);if(this.addRules(a,t),n){var u=Array.prototype[i?"push":"unshift"];for(s=0;s<o.length;s++)u.apply(this.$rules[o[s]],r(n))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var e=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},t=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var n=0,r=this.$rules;Object.keys(r).forEach((function o(i){var a=r[i];a.processed=!0;for(var s=0;s<a.length;s++){var l=a[s],u=null;Array.isArray(l)&&(u=l,l={}),!l.regex&&l.start&&(l.regex=l.start,l.next||(l.next=[]),l.next.push({defaultToken:l.token},{token:l.token+".end",regex:l.end||l.start,next:"pop"}),l.token=l.token+".start",l.push=!0);var c=l.next||l.push;if(c&&Array.isArray(c)){var d=l.stateName;d||("string"!=typeof(d=l.token)&&(d=d[0]||""),r[d]&&(d+=n++)),r[d]=c,l.next=d,o(d)}else"pop"==c&&(l.next=t);if(l.push&&(l.nextState=l.next||l.push,l.next=e,delete l.push),l.rules)for(var f in l.rules)r[f]?r[f].push&&r[f].push.apply(r[f],l.rules[f]):r[f]=l.rules[f];var h="string"==typeof l?l:l.include;if(h&&("$self"===h&&(h="start"),u=Array.isArray(h)?h.map((function(e){return r[e]})):r[h]),u){var p=[s,1].concat(u);l.noEscape&&(p=p.filter((function(e){return!e.next}))),a.splice.apply(a,p),s--}l.keywordMap&&(l.token=this.createKeywordMapper(l.keywordMap,l.defaultToken||"text",l.caseInsensitive),delete l.defaultToken)}}),this)},this.createKeywordMapper=function(e,t,n,r){var o=Object.create(null);return this.$keywordList=[],Object.keys(e).forEach((function(t){for(var i=e[t].split(r||"|"),a=i.length;a--;){var s=i[a];this.$keywordList.push(s),n&&(s=s.toLowerCase()),o[s]=t}}),this),e=null,n?function(e){return o[e.toLowerCase()]||t}:function(e){return o[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(o.prototype),t.TextHighlightRules=o})),ace.define("ace/mode/behaviour",["require","exports","module"],(function(e,t,n){"use strict";var r=function(){this.$behaviours={}};(function(){this.add=function(e,t,n){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=n},this.addBehaviours=function(e){for(var t in e)for(var n in e[t])this.add(t,n,e[t][n])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var n=(new e).getBehaviours(t);else n=e.getBehaviours(t);this.addBehaviours(n)},this.getBehaviours=function(e){if(e){for(var t={},n=0;n<e.length;n++)this.$behaviours[e[n]]&&(t[e[n]]=this.$behaviours[e[n]]);return t}return this.$behaviours}}).call(r.prototype),t.Behaviour=r})),ace.define("ace/token_iterator",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range,o=function(){function e(e,t,n){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var r=e.getTokenAt(t,n);this.$tokenIndex=r?r.index:-1}return e.prototype.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},e.prototype.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},e.prototype.getCurrentTokenRow=function(){return this.$row},e.prototype.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;for(n=0;t>0;)n+=e[t-=1].value.length;return n},e.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},e.prototype.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)},e}();t.TokenIterator=o})),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],(function(e,t,n){"use strict";var r,o=e("../../lib/oop"),i=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],u=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c={},d={'"':'"',"'":"'"},f=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,c.rangeCount!=e.multiSelect.rangeCount&&(c={rangeCount:e.multiSelect.rangeCount})),c[t])return r=c[t];r=c[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},h=function(e,t,n,r){var o=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,o,e.end.column+(o?0:1)]}},p=function(e){e=e||{},this.add("braces","insertion",(function(t,n,o,i,a){var l=o.getCursorPosition(),u=i.doc.getLine(l.row);if("{"==a){f(o);var c=o.getSelectionRange(),d=i.doc.getTextRange(c);if(""!==d&&"{"!==d&&o.getWrapBehavioursEnabled())return h(c,d,"{","}");if(p.isSaneInsertion(o,i))return/[\]\}\)]/.test(u[l.column])||o.inMultiSelectMode||e.braces?(p.recordAutoInsert(o,i,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(o,i,"{"),{text:"{",selection:[1,1]})}else if("}"==a){if(f(o),"}"==u.substring(l.column,l.column+1))if(null!==i.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&p.isAutoInsertedClosing(l,u,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else{if("\n"==a||"\r\n"==a){f(o);var g="";if(p.isMaybeInsertedClosing(l,u)&&(g=s.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing()),"}"===u.substring(l.column,l.column+1)){var m=i.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!m)return null;var v=this.$getIndent(i.getLine(m.row))}else{if(!g)return void p.clearMaybeInsertedClosing();v=this.$getIndent(u)}var y=v+i.getTabString();return{text:"\n"+y+"\n"+v+g,selection:[1,y.length,1,y.length]}}p.clearMaybeInsertedClosing()}})),this.add("braces","deletion",(function(e,t,n,o,i){var a=o.doc.getTextRange(i);if(!i.isMultiLine()&&"{"==a){if(f(n),"}"==o.doc.getLine(i.start.row).substring(i.end.column,i.end.column+1))return i.end.column++,i;r.maybeInsertedBrackets--}})),this.add("parens","insertion",(function(e,t,n,r,o){if("("==o){f(n);var i=n.getSelectionRange(),a=r.doc.getTextRange(i);if(""!==a&&n.getWrapBehavioursEnabled())return h(i,a,"(",")");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==o){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if(")"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket(")",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("parens","deletion",(function(e,t,n,r,o){var i=r.doc.getTextRange(o);if(!o.isMultiLine()&&"("==i&&(f(n),")"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("brackets","insertion",(function(e,t,n,r,o){if("["==o){f(n);var i=n.getSelectionRange(),a=r.doc.getTextRange(i);if(""!==a&&n.getWrapBehavioursEnabled())return h(i,a,"[","]");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==o){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row);if("]"==l.substring(s.column,s.column+1))if(null!==r.$findOpeningBracket("]",{column:s.column+1,row:s.row})&&p.isAutoInsertedClosing(s,l,o))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}})),this.add("brackets","deletion",(function(e,t,n,r,o){var i=r.doc.getTextRange(o);if(!o.isMultiLine()&&"["==i&&(f(n),"]"==r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)))return o.end.column++,o})),this.add("string_dquotes","insertion",(function(e,t,n,r,o){var i=r.$mode.$quotes||d;if(1==o.length&&i[o]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(o))return;f(n);var a=o,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&i[l])&&n.getWrapBehavioursEnabled())return h(s,l,a,a);if(!l){var u=n.getCursorPosition(),c=r.doc.getLine(u.row),p=c.substring(u.column-1,u.column),g=c.substring(u.column,u.column+1),m=r.getTokenAt(u.row,u.column),v=r.getTokenAt(u.row,u.column+1);if("\\"==p&&m&&/escape/.test(m.type))return null;var y,b=m&&/string|escape/.test(m.type),w=!v||/string|escape/.test(v.type);if(g==a)(y=b!==w)&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!w)return null;if(b&&w)return null;var x=r.$mode.tokenRe;x.lastIndex=0;var S=x.test(p);x.lastIndex=0;var _=x.test(g),E=r.$mode.$pairQuotesAfter;if(!(E&&E[a]&&E[a].test(p))&&S||_)return null;if(g&&!/[\s;,.})\]\\]/.test(g))return null;var k=c[u.column-2];if(p==a&&(k==a||x.test(k)))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}})),this.add("string_dquotes","deletion",(function(e,t,n,r,o){var i=r.$mode.$quotes||d,a=r.doc.getTextRange(o);if(!o.isMultiLine()&&i.hasOwnProperty(a)&&(f(n),r.doc.getLine(o.start.row).substring(o.start.column+1,o.start.column+2)==a))return o.end.column++,o})),!1!==e.closeDocComment&&this.add("doc comment end","insertion",(function(e,t,n,r,o){if("doc-start"===e&&("\n"===o||"\r\n"===o)&&n.selection.isEmpty()){var i=n.getCursorPosition(),a=r.doc.getLine(i.row),s=r.doc.getLine(i.row+1),l=this.$getIndent(a);if(/\s*\*/.test(s))return/^\s*\*/.test(a)?{text:o+l+"* ",selection:[1,3+l.length,1,3+l.length]}:{text:o+l+" * ",selection:[1,3+l.length,1,3+l.length]};if(/\/\*\*/.test(a.substring(0,i.column)))return{text:o+l+" * "+o+" "+l+"*/",selection:[1,4+l.length,1,4+l.length]}}}))};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var o=new a(t,n.row,n.column+1);if(!this.$matchTokenType(o.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",u)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var o=e.getCursorPosition(),i=t.doc.getLine(o.row);this.isAutoInsertedClosing(o,i,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=o.row,r.autoInsertedLineEnd=n+i.substr(o.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var o=e.getCursorPosition(),i=t.doc.getLine(o.row);this.isMaybeInsertedClosing(o,i)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=o.row,r.maybeInsertedLineStart=i.substr(0,o.column)+n,r.maybeInsertedLineEnd=i.substr(o.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},o.inherits(p,i),t.CstyleBehaviour=p})),ace.define("ace/unicode",["require","exports","module"],(function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],o=0,i=[],a=0;a<r.length;a+=2)i.push(o+=r[a]),r[a+1]&&i.push(45,o+=r[a+1]);t.wordChars=String.fromCharCode.apply(null,i)})),ace.define("ace/mode/text",["require","exports","module","ace/config","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../config"),o=e("../tokenizer").Tokenizer,i=e("./text_highlight_rules").TextHighlightRules,a=e("./behaviour/cstyle").CstyleBehaviour,s=e("../unicode"),l=e("../lib/lang"),u=e("../token_iterator").TokenIterator,c=e("../range").Range,d=function(){this.HighlightRules=i};(function(){this.$defaultBehaviour=new a,this.tokenRe=new RegExp("^["+s.wordChars+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+s.wordChars+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new o(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,t,n,r){var o=t.doc,i=!0,a=!0,s=1/0,u=t.getTabSize(),c=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))g=this.lineCommentStart.map(l.escapeRegExp).join("|"),h=this.lineCommentStart[0];else g=l.escapeRegExp(this.lineCommentStart),h=this.lineCommentStart;g=new RegExp("^(\\s*)(?:"+g+") ?"),c=t.getUseSoftTabs();y=function(e,t){var n=e.match(g);if(n){var r=n[1].length,i=n[0].length;f(e,r,i)||" "!=n[0][i-1]||i--,o.removeInLine(t,r,i)}};var d=h+" ",f=(v=function(e,t){i&&!/\S/.test(e)||(f(e,s,s)?o.insertInLine({row:t,column:s},d):o.insertInLine({row:t,column:s},h))},b=function(e,t){return g.test(e)},function(e,t,n){for(var r=0;t--&&" "==e.charAt(t);)r++;if(r%u!=0)return!1;for(r=0;" "==e.charAt(n++);)r++;return u>2?r%u!=u-1:r%u==0})}else{if(!this.blockComment)return!1;var h=this.blockComment.start,p=this.blockComment.end,g=new RegExp("^(\\s*)(?:"+l.escapeRegExp(h)+")"),m=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(e,t){b(e,t)||i&&!/\S/.test(e)||(o.insertInLine({row:t,column:e.length},p),o.insertInLine({row:t,column:s},h))},y=function(e,t){var n;(n=e.match(m))&&o.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(g))&&o.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(g.test(e))return!0;for(var r=t.getTokens(n),o=0;o<r.length;o++)if("comment"===r[o].type)return!0}}function w(e){for(var t=n;t<=r;t++)e(o.getLine(t),t)}var x=1/0;w((function(e,t){var n=e.search(/\S/);-1!==n?(n<s&&(s=n),a&&!b(e,t)&&(a=!1)):x>e.length&&(x=e.length)})),s==1/0&&(s=x,i=!1,a=!1),c&&s%u!=0&&(s=Math.floor(s/u)*u),w(a?y:v)},this.toggleBlockComment=function(e,t,n,r){var o=this.blockComment;if(o){!o.start&&o[0]&&(o=o[0]);var i,a,s=(g=new u(t,r.row,r.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(s&&/comment/.test(s.type)){for(var d,f;s&&/comment/.test(s.type);){if(-1!=(m=s.value.indexOf(o.start))){var h=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+m;d=new c(h,p,h,p+o.start.length);break}s=g.stepBackward()}var g;for(s=(g=new u(t,r.row,r.column)).getCurrentToken();s&&/comment/.test(s.type);){var m;if(-1!=(m=s.value.indexOf(o.end))){h=g.getCurrentTokenRow(),p=g.getCurrentTokenColumn()+m;f=new c(h,p,h,p+o.end.length);break}s=g.stepForward()}f&&t.remove(f),d&&(t.remove(d),i=d.start.row,a=-o.start.length)}else a=o.start.length,i=n.start.row,t.insert(n.end,o.end),t.insert(n.start,o.start);l.start.row==i&&(l.start.column+=a),l.end.row==i&&(l.end.column+=a),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],o=n.prototype.$id,i=r.$modes[o];i||(r.$modes[o]=i=new n),r.$modes[t]||(r.$modes[t]=i),this.$embeds.push(t),this.$modes[t]=i}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;t<a.length;t++)!function(e){var n=a[t],r=e[n];e[a[t]]=function(){return this.$delegator(n,arguments,r)}}(this)},this.$delegator=function(e,t,n){var r=t[0]||"start";if("string"!=typeof r){if(Array.isArray(r[2])){var o=r[2][r[2].length-1];if(a=this.$modes[o])return a[e].apply(a,[r[1]].concat([].slice.call(t,1)))}r=r[0]||"start"}for(var i=0;i<this.$embeds.length;i++)if(this.$modes[this.$embeds[i]]){var a,s=r.split(this.$embeds[i]);if(!s[0]&&s[1])return t[0]=s[1],(a=this.$modes[this.$embeds[i]])[e].apply(a,t)}var l=n.apply(this,t);return n?l:void 0},this.transformAction=function(e,t,n,r,o){if(this.$behaviour){var i=this.$behaviour.getBehaviours();for(var a in i)if(i[a][t]){var s=i[a][t].apply(this,arguments);if(s)return s}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,n=[];for(var r in t)for(var o=t[r],i=0,a=o.length;i<a;i++)if("string"==typeof o[i].token)/keyword|support|storage/.test(o[i].token)&&n.push(o[i].regex);else if("object"==typeof o[i].token)for(var s=0,l=o[i].token.length;s<l;s++)if(/keyword|support|storage/.test(o[i].token[s])){r=o[i].regex.match(/\(.+?\)/g)[s];n.push(r.substr(1,r.length-2))}this.completionKeywords=n}return e?n.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,n,r){return(this.$keywordList||this.$createKeywordList()).map((function(e){return{name:e,value:e,score:0,meta:"keyword"}}))},this.$id="ace/mode/text"}).call(d.prototype),t.Mode=d})),ace.define("ace/apply_delta",["require","exports","module"],(function(e,t,n){"use strict";t.applyDelta=function(e,t,n){var r=t.start.row,o=t.start.column,i=e[r]||"";switch(t.action){case"insert":if(1===t.lines.length)e[r]=i.substring(0,o)+t.lines[0]+i.substring(o);else{var a=[r,1].concat(t.lines);e.splice.apply(e,a),e[r]=i.substring(0,o)+e[r],e[r+t.lines.length-1]+=i.substring(o)}break;case"remove":var s=t.end.column,l=t.end.row;r===l?e[r]=i.substring(0,o)+i.substring(s):e.splice(r,l-r+1,i.substring(0,o)+e[l].substring(s))}}})),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,i=function(){function e(e,t,n){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===n?this.setPosition(t.row,t.column):this.setPosition(t,n)}return e.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},e.prototype.getDocument=function(){return this.document},e.prototype.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t=function(e,t,n){var r="insert"==e.action,o=(r?1:-1)*(e.end.row-e.start.row),i=(r?1:-1)*(e.end.column-e.start.column),s=e.start,l=r?s:e.end;if(a(t,s,n))return{row:t.row,column:t.column};if(a(l,t,!n))return{row:t.row+o,column:t.column+(t.row==l.row?i:0)};return{row:s.row,column:s.column}}(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(t.row,t.column,!0)}},e.prototype.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var o={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:o,value:r})}},e.prototype.detach=function(){this.document.off("change",this.$onChange)},e.prototype.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},e.prototype.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n},e}();function a(e,t,n){var r=n?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&r}i.prototype.$insertRight=!1,r.implement(i.prototype,o),t.Anchor=i})),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./apply_delta").applyDelta,i=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(){function e(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}return e.prototype.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},e.prototype.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},e.prototype.createAnchor=function(e,t){return new s(this,e,t)},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},e.prototype.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},e.prototype.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},e.prototype.getNewLineMode=function(){return this.$newLineMode},e.prototype.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},e.prototype.getLine=function(e){return this.$lines[e]||""},e.prototype.getLines=function(e,t){return this.$lines.slice(e,t+1)},e.prototype.getAllLines=function(){return this.getLines(0,this.getLength())},e.prototype.getLength=function(){return this.$lines.length},e.prototype.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},e.prototype.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},e.prototype.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},e.prototype.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},e.prototype.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},e.prototype.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},e.prototype.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},e.prototype.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return null==t&&(t=r.length),{row:e,column:t=Math.min(Math.max(t,0),r.length)}},e.prototype.clonePos=function(e){return{row:e.row,column:e.column}},e.prototype.pos=function(e,t){return{row:e,column:t}},e.prototype.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},e.prototype.insertFullLines=function(e,t){var n=0;(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),n=0):(t=[""].concat(t),e--,n=this.$lines[e].length),this.insertMergedLines({row:e,column:n},t)},e.prototype.insertMergedLines=function(e,t){var n=this.clippedPos(e.row,e.column),r={row:n.row+t.length-1,column:(1==t.length?n.column:0)+t[t.length-1].length};return this.applyDelta({start:n,end:r,action:"insert",lines:t}),this.clonePos(r)},e.prototype.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),n=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:n,action:"remove",lines:this.getLinesForRange({start:t,end:n})}),this.clonePos(t)},e.prototype.removeInLine=function(e,t,n){var r=this.clippedPos(e,t),o=this.clippedPos(e,n);return this.applyDelta({start:r,end:o,action:"remove",lines:this.getLinesForRange({start:r,end:o})},!0),this.clonePos(r)},e.prototype.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var n=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&e>0,r=t<this.getLength()-1,o=n?e-1:e,i=n?this.getLine(o).length:0,s=r?t+1:t,l=r?0:this.getLine(s).length,u=new a(o,i,s,l),c=this.$lines.slice(e,t+1);return this.applyDelta({start:u.start,end:u.end,action:"remove",lines:this.getLinesForRange(u)}),c},e.prototype.removeNewLine=function(e){e<this.getLength()-1&&e>=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},e.prototype.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},e.prototype.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},e.prototype.revertDeltas=function(e){for(var t=e.length-1;t>=0;t--)this.revertDelta(e[t])},e.prototype.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(o(this.$lines,e,t),this._signal("change",e)))},e.prototype.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row<t&&e.end.row<t||"insert"==e.action&&e.start.row<=t)&&this.applyDelta(e)},e.prototype.$splitAndapplyLargeDelta=function(e,t){for(var n=e.lines,r=n.length-t+1,o=e.start.row,i=e.start.column,a=0,s=0;a<r;a=s){s+=t-1;var l=n.slice(a,s);l.push(""),this.applyDelta({start:this.pos(o+a,i),end:this.pos(o+s,i=0),action:e.action,lines:l},!0)}e.lines=n.slice(a),e.start.row=o+a,e.start.column=i,this.applyDelta(e,!0)},e.prototype.revertDelta=function(e){this.$safeApplyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},e.prototype.indexToPosition=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=t||0,i=n.length;o<i;o++)if((e-=n[o].length+r)<0)return{row:o,column:e+n[o].length+r};return{row:i-1,column:e+n[i-1].length+r}},e.prototype.positionToIndex=function(e,t){for(var n=this.$lines||this.getAllLines(),r=this.getNewLineCharacter().length,o=0,i=Math.min(e.row,n.length),a=t||0;a<i;++a)o+=n[a].length+r;return o+e.column},e.prototype.$split=function(e){return e.split(/\r\n|\r|\n/)},e}();l.prototype.$autoNewLine="",l.prototype.$newLineMode="auto",r.implement(l.prototype,i),t.Document=l})),ace.define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,i=function(){function e(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var n=this;this.$worker=function(){if(n.running){for(var e=new Date,t=n.currentLine,r=-1,o=n.doc,i=t;n.lines[t];)t++;var a=o.getLength(),s=0;for(n.running=!1;t<a;){n.$tokenizeRow(t),r=t;do{t++}while(n.lines[t]);if(++s%5==0&&new Date-e>20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),i<=r&&n.fireUpdateEvent(i,r)}}}return e.prototype.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},e.prototype.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},e.prototype.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},e.prototype.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},e.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},e.prototype.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},e.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},e.prototype.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},e.prototype.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},e.prototype.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!=r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens},e.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},e}();r.implement(i.prototype,o),t.BackgroundTokenizer=i})),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),o=e("./range").Range,i=function(){function e(e,t,n){void 0===n&&(n="text"),this.setRegexp(e),this.clazz=t,this.type=n}return e.prototype.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},e.prototype.update=function(e,t,n,i){if(this.regExp)for(var a=i.firstRow,s=i.lastRow,l={},u=a;u<=s;u++){var c=this.cache[u];null==c&&((c=r.getMatchOffsets(n.getLine(u),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map((function(e){return new o(u,e.offset,u,e.offset+e.length)})),this.cache[u]=c.length?c:"");for(var d=c.length;d--;){var f=c[d].toScreenRange(n),h=f.toString();l[h]||(l[h]=!0,t.drawSingleLineMarker(e,f,this.clazz,i))}}},e}();i.prototype.MAX_RANGES=500,t.SearchHighlight=i})),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,o=function(){function e(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach((function(e){e.setFoldLine(this)}),this)}return e.prototype.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach((function(t){t.start.row+=e,t.end.row+=e}))},e.prototype.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort((function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)})),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},e.prototype.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},e.prototype.walk=function(e,t,n){var r,o,i=0,a=this.folds,s=!0;null==t&&(t=this.end.row,n=this.end.column);for(var l=0;l<a.length;l++){if(-1==(o=(r=a[l]).range.compareStart(t,n)))return void e(null,t,n,i,s);if(!e(null,r.start.row,r.start.column,i,s)&&e(r.placeholder,r.start.row,r.start.column,i)||0===o)return;s=!r.sameRow,i=r.end.column}e(null,t,n,i,s)},e.prototype.getNextFoldTo=function(e,t){for(var n,r,o=0;o<this.folds.length;o++){if(-1==(r=(n=this.folds[o]).range.compareEnd(e,t)))return{fold:n,kind:"after"};if(0===r)return{fold:n,kind:"inside"}}return null},e.prototype.addRemoveChars=function(e,t,n){var r,o,i=this.getNextFoldTo(e,t);if(i)if(r=i.fold,"inside"==i.kind&&r.start.column!=t&&r.start.row!=e)window.console&&window.console.log(e,t,r);else if(r.start.row==e){var a=(o=this.folds).indexOf(r);for(0===a&&(this.start.column+=n);a<o.length;a++){if((r=o[a]).start.column+=n,!r.sameRow)return;r.end.column+=n}this.end.column+=n}},e.prototype.split=function(t,n){var r=this.getNextFoldTo(t,n);if(!r||"inside"==r.kind)return null;var o=r.fold,i=this.folds,a=this.foldData,s=i.indexOf(o),l=i[s-1];this.end.row=l.end.row,this.end.column=l.end.column;var u=new e(a,i=i.splice(s,i.length-s));return a.splice(a.indexOf(this)+1,0,u),u},e.prototype.merge=function(e){for(var t=e.folds,n=0;n<t.length;n++)this.addFold(t[n]);var r=this.foldData;r.splice(r.indexOf(e),1)},e.prototype.toString=function(){var e=[this.range.toString()+": ["];return this.folds.forEach((function(t){e.push("  "+t.toString())})),e.push("]"),e.join("\n")},e.prototype.idxToPosition=function(e){for(var t=0,n=0;n<this.folds.length;n++){var r=this.folds[n];if((e-=r.start.column-t)<0)return{row:r.start.row,column:r.start.column+e};if((e-=r.placeholder.length)<0)return r.start;t=r.end.column}return{row:this.end.row,column:this.end.column+e}},e}();t.FoldLine=o})),ace.define("ace/range_list",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("./range").Range.comparePoints,o=function(){function e(){this.ranges=[],this.$bias=1}return e.prototype.pointIndex=function(e,t,n){for(var o=this.ranges,i=n||0;i<o.length;i++){var a=o[i],s=r(e,a.end);if(!(s>0)){var l=r(e,a.start);return 0===s?t&&0!==l?-i-2:i:l>0||0===l&&!t?i:-i-1}}return-i-1},e.prototype.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},e.prototype.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},e.prototype.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},e.prototype.merge=function(){for(var e,t=[],n=this.ranges,o=(n=n.sort((function(e,t){return r(e.start,t.start)})))[0],i=1;i<n.length;i++){e=o,o=n[i];var a=r(e.end,o.start);a<0||(0!=a||e.isEmpty()||o.isEmpty())&&(r(e.end,o.end)<0&&(e.end.row=o.end.row,e.end.column=o.end.column),n.splice(i,1),t.push(o),o=e,i--)}return this.ranges=n,t},e.prototype.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},e.prototype.containsPoint=function(e){return this.pointIndex(e)>=0},e.prototype.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},e.prototype.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row<e)return[];var r=this.pointIndex({row:e,column:0});r<0&&(r=-r-1);var o=this.pointIndex({row:t,column:0},r);o<0&&(o=-o-1);for(var i=[],a=r;a<o;a++)i.push(n[a]);return i},e.prototype.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},e.prototype.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},e.prototype.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},e.prototype.$onChange=function(e){for(var t=e.start,n=e.end,r=t.row,o=n.row,i=this.ranges,a=0,s=i.length;a<s;a++){if((c=i[a]).end.row>=r)break}if("insert"==e.action)for(var l=o-r,u=-t.column+n.column;a<s;a++){if((c=i[a]).start.row>r)break;if(c.start.row==r&&c.start.column>=t.column&&(c.start.column==t.column&&this.$bias<=0||(c.start.column+=u,c.start.row+=l)),c.end.row==r&&c.end.column>=t.column){if(c.end.column==t.column&&this.$bias<0)continue;c.end.column==t.column&&u>0&&a<s-1&&c.end.column>c.start.column&&c.end.column==i[a+1].start.column&&(c.end.column-=u),c.end.column+=u,c.end.row+=l}}else for(l=r-o,u=t.column-n.column;a<s;a++){if((c=i[a]).start.row>o)break;c.end.row<o&&(r<c.end.row||r==c.end.row&&t.column<c.end.column)?(c.end.row=r,c.end.column=t.column):c.end.row==o?c.end.column<=n.column?(l||c.end.column>t.column)&&(c.end.column=t.column,c.end.row=t.row):(c.end.column+=u,c.end.row+=l):c.end.row>o&&(c.end.row+=l),c.start.row<o&&(r<c.start.row||r==c.start.row&&t.column<c.start.column)?(c.start.row=r,c.start.column=t.column):c.start.row==o?c.start.column<=n.column?(l||c.start.column>t.column)&&(c.start.column=t.column,c.start.row=t.row):(c.start.column+=u,c.start.row+=l):c.start.row>o&&(c.start.row+=l)}if(0!=l&&a<s)for(;a<s;a++){var c;(c=i[a]).start.row+=l,c.end.row+=l}},e}();o.prototype.comparePoints=r,t.RangeList=o})),ace.define("ace/edit_session/fold",["require","exports","module","ace/range_list"],(function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(e){function t(t,n){var r=e.call(this)||this;return r.foldLine=null,r.placeholder=n,r.range=t,r.start=t.start,r.end=t.end,r.sameRow=t.start.row==t.end.row,r.subFolds=r.ranges=[],r}return o(t,e),t.prototype.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},t.prototype.setFoldLine=function(e){this.foldLine=e,this.subFolds.forEach((function(t){t.setFoldLine(e)}))},t.prototype.clone=function(){var e=new t(this.range.clone(),this.placeholder);return this.subFolds.forEach((function(t){e.subFolds.push(t.clone())})),e.collapseChildren=this.collapseChildren,e},t.prototype.addSubFold=function(e){if(!this.range.isEqual(e)){var t,n;t=e,n=this.start,a(t.start,n),a(t.end,n);for(var r=e.start.row,o=e.start.column,i=0,s=-1;i<this.subFolds.length&&1==(s=this.subFolds[i].range.compare(r,o));i++);var l=this.subFolds[i],u=0;if(0==s){if(l.range.containsRange(e))return l.addSubFold(e);u=1}r=e.range.end.row,o=e.range.end.column;var c=i;for(s=-1;c<this.subFolds.length&&1==(s=this.subFolds[c].range.compare(r,o));c++);0==s&&c++;for(var d=this.subFolds.splice(i,c-i,e),f=0==s?d.length-1:d.length,h=u;h<f;h++)e.addSubFold(d[h]);return e.setFoldLine(this.foldLine),e}},t.prototype.restoreRange=function(e){return function(e,t){s(e.start,t),s(e.end,t)}(e,this.start)},t}(e("../range_list").RangeList);function a(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function s(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}t.Fold=i})),ace.define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator","ace/mouse/mouse_event"],(function(e,t,n){"use strict";var r=e("../range").Range,o=e("./fold_line").FoldLine,i=e("./fold").Fold,a=e("../token_iterator").TokenIterator,s=e("../mouse/mouse_event").MouseEvent;t.Folding=function(){this.getFoldAt=function(e,t,n){var r=this.getFoldLine(e);if(!r)return null;for(var o=r.folds,i=0;i<o.length;i++){var a=o[i].range;if(a.contains(e,t)){if(1==n&&a.isEnd(e,t)&&!a.isEmpty())continue;if(-1==n&&a.isStart(e,t)&&!a.isEmpty())continue;return o[i]}}},this.getFoldsInRange=function(e){var t=e.start,n=e.end,r=this.$foldData,o=[];t.column+=1,n.column-=1;for(var i=0;i<r.length;i++){var a=r[i].range.compareRange(e);if(2!=a){if(-2==a)break;for(var s=r[i].folds,l=0;l<s.length;l++){var u=s[l];if(-2==(a=u.range.compareRange(e)))break;if(2!=a){if(42==a)break;o.push(u)}}}}return t.column-=1,n.column+=1,o},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach((function(e){t=t.concat(this.getFoldsInRange(e))}),this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,n=0;n<t.length;n++)for(var r=0;r<t[n].folds.length;r++)e.push(t[n].folds[r]);return e},this.getFoldStringAt=function(e,t,n,r){if(!(r=r||this.getFoldLine(e)))return null;for(var o,i,a={end:{column:0}},s=0;s<r.folds.length;s++){var l=(i=r.folds[s]).range.compareEnd(e,t);if(-1==l){o=this.getLine(i.start.row).substring(a.end.column,i.start.column);break}if(0===l)return null;a=i}return o||(o=this.getLine(i.start.row).substring(a.end.column)),-1==n?o.substring(0,t-a.end.column):1==n?o.substring(t-a.end.column):o},this.getFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var o=n[r];if(o.start.row<=e&&o.end.row>=e)return o;if(o.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0);r<n.length;r++){var o=n[r];if(o.end.row>=e)return o}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,o=0;o<n.length;o++){var i=n[o],a=i.end.row,s=i.start.row;if(a>=t){s<t&&(s>=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort((function(e,t){return e.start.row-t.start.row})),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof i?n=e:(n=new i(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,u=n.end.row,c=n.end.column,d=this.getFoldAt(s,l,1),f=this.getFoldAt(u,c,-1);if(d&&f==d)return d.addSubFold(n);d&&!d.range.isStart(s,l)&&this.removeFold(d),f&&!f.range.isEnd(u,c)&&this.removeFold(f);var h=this.getFoldsInRange(n.range);h.length>0&&(this.removeFolds(h),n.collapseChildren||h.forEach((function(e){n.addSubFold(e)})));for(var p=0;p<r.length;p++){var g=r[p];if(u==g.start.row){g.addFold(n),a=!0;break}if(s==g.end.row){if(g.addFold(n),a=!0,!n.sameRow){var m=r[p+1];if(m&&m.start.row==u){g.merge(m);break}}break}if(u<=g.start.row)break}return a||(g=this.$addFoldLine(new o(this.$foldData,n))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._signal("changeFold",{data:n,action:"add"}),n},this.addFolds=function(e){e.forEach((function(e){this.addFold(e)}),this)},this.removeFold=function(e){var t=e.foldLine,n=t.start.row,r=t.end.row,o=this.$foldData,i=t.folds;if(1==i.length)o.splice(o.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))i.pop(),t.end.row=i[i.length-1].end.row,t.end.column=i[i.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))i.shift(),t.start.row=i[0].start.row,t.start.column=i[0].start.column;else if(e.sameRow)i.splice(i.indexOf(e),1);else{var a=t.split(e.start.row,e.start.column);(i=a.folds).shift(),a.start.row=i[0].start.row,a.start.column=i[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(n,r):this.$updateRowLengthCache(n,r)),this.$modified=!0,this._signal("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);t.forEach((function(e){this.removeFold(e)}),this),this.$modified=!0},this.expandFold=function(e){this.removeFold(e),e.subFolds.forEach((function(t){e.restoreRange(t),this.addFold(t)}),this),e.collapseChildren>0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach((function(e){this.expandFold(e)}),this)},this.unfold=function(e,t){var n,o;if(null==e)n=new r(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new r(e,0,e,this.getLine(e).length);else if("row"in e)n=r.fromPoints(e,e);else{if(Array.isArray(e))return o=[],e.forEach((function(e){o=o.concat(this.unfold(e))}),this),o;n=e}for(var i=o=this.getFoldsInRangeList(n);1==o.length&&r.comparePoints(o[0].start,n.start)<0&&r.comparePoints(o[0].end,n.end)>0;)this.expandFolds(o),o=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(o):this.expandFolds(o),i.length)return i},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,o){null==r&&(r=e.start.row),null==o&&(o=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var i=this.doc,a="";return e.walk((function(e,t,n,s){if(!(t<r)){if(t==r){if(n<o)return;s=Math.max(o,s)}a+=null!=e?e:i.getLine(t).substring(s,n)}}),t,n),a},this.getDisplayLine=function(e,t,n,r){var o,i=this.getFoldLine(e);return i?this.getFoldDisplayLine(i,e,t,n,r):(o=this.doc.getLine(e)).substring(r||0,t||o.length)},this.$cloneFoldData=function(){var e=[];return e=this.$foldData.map((function(t){var n=t.folds.map((function(e){return e.clone()}));return new o(e,n)}))},this.toggleFold=function(e){var t,n,r=this.selection.getRange();if(r.isEmpty()){var o=r.start;if(t=this.getFoldAt(o.row,o.column))return void this.expandFold(t);(n=this.findMatchingBracket(o))?1==r.comparePoint(n)?r.end=n:(r.start=n,r.start.column++,r.end.column--):(n=this.findMatchingBracket({row:o.row,column:o.column+1}))?(1==r.comparePoint(n)?r.end=n:r.start=n,r.start.column++):r=this.getCommentFoldRange(o.row,o.column)||r}else{var i=this.getFoldsInRange(r);if(e&&i.length)return void this.expandFolds(i);1==i.length&&(t=i[0])}if(t||(t=this.getFoldAt(r.start.row,r.start.column)),t&&t.range.toString()==r.toString())this.expandFold(t);else{var a="...";if(!r.isMultiLine()){if((a=this.getTextRange(r)).length<4)return;a=a.trim().substring(0,2)+".."}this.addFold(a,r)}},this.getCommentFoldRange=function(e,t,n){var o=new a(this,e,t),i=o.getCurrentToken(),s=i&&i.type;if(i&&/^comment|string/.test(s)){"comment"==(s=s.match(/comment|string/)[0])&&(s+="|doc-start|\\.doc");var l=new RegExp(s),u=new r;if(1!=n){do{i=o.stepBackward()}while(i&&l.test(i.type)&&!/^comment.end/.test(i.type));i=o.stepForward()}if(u.start.row=o.getCurrentTokenRow(),u.start.column=o.getCurrentTokenColumn()+(/^comment.start/.test(i.type)?i.value.length:2),o=new a(this,e,t),-1!=n){var c=-1;do{if(i=o.stepForward(),-1==c){var d=this.getState(o.$row);l.test(d)||(c=o.$row)}else if(o.$row>c)break}while(i&&l.test(i.type)&&!/^comment.start/.test(i.type));i=o.stepBackward()}else i=o.getCurrentToken();return u.end.row=o.getCurrentTokenRow(),u.end.column=o.getCurrentTokenColumn(),/^comment.end/.test(i.type)||(u.end.column+=i.value.length-2),u}},this.foldAll=function(e,t,n,r){null==n&&(n=1e5);var o=this.foldWidgets;if(o){t=t||this.getLength();for(var i=e=e||0;i<t;i++)if(null==o[i]&&(o[i]=this.getFoldWidget(i)),"start"==o[i]&&(!r||r(i))){var a=this.getFoldWidgetRange(i);a&&a.isMultiLine()&&a.end.row<=t&&a.start.row>=e&&(i=a.end.row,a.collapseChildren=n,this.addFold("...",a))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,(function(t){for(var n=e.getTokens(t),r=0;r<n.length;r++){var o=n[r];if("text"!=o.type||!/^\s+$/.test(o.value))return!!/comment/.test(o.type)}}))},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){this.$foldStyle=e,"manual"==e&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var n=this.foldWidgets;if(!n||t&&n[e])return{};for(var r,o=e-1;o>=0;){var i=n[o];if(null==i&&(i=n[o]=this.getFoldWidget(o)),"start"==i){var a=this.getFoldWidgetRange(o);if(r||(r=a),a&&a.end.row>=e)break}o--}return{range:-1!==o&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){t instanceof s&&(t=t.domEvent);var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,n)){var r=t.target||t.srcElement;r&&/ace_fold-widget/.test(r.className)&&(r.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),o="end"===n?-1:1,i=this.getFoldAt(e,-1===o?0:r.length,o);if(i)return t.children||t.all?this.removeFold(i):this.expandFold(i),i;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(i=this.getFoldAt(a.start.row,a.start.column,1))&&a.isEqual(i.range))return this.removeFold(i),i;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,u=s.range.end.row;this.foldAll(l,u,t.all?1e4:0)}else t.children?(u=a?a.end.row:this.getLength(),this.foldAll(e+1,u,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange){t=n.start.row;var o=this.getFoldAt(t,this.getLine(t).length,1);o?this.removeFold(o):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}})),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],(function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,o=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,i=n.charAt(e.column-1),a=i&&i.match(/([\(\[\{])|([\)\]\}])/);if(a||(i=n.charAt(e.column),e={row:e.row,column:e.column+1},a=i&&i.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){if(!(s=this.$findClosingBracket(a[1],e)))return null;t=o.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{var s;if(!(s=this.$findOpeningBracket(a[2],e)))return null;t=o.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var n=this.getLine(e.row),r=/([\(\[\{])|([\)\]\}])/,i=!t&&n.charAt(e.column-1),a=i&&i.match(r);if(a||(i=(void 0===t||t)&&n.charAt(e.column),e={row:e.row,column:e.column+1},a=i&&i.match(r)),!a)return null;var s=new o(e.row,e.column-1,e.row,e.column),l=a[1]?this.$findClosingBracket(a[1],e):this.$findOpeningBracket(a[2],e);return l?[s,new o(l.row,l.column,l.row,l.column+1)]:[s]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var o=this.$brackets[e],i=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var l=t.column-a.getCurrentTokenColumn()-2,u=s.value;;){for(;l>=0;){var c=u.charAt(l);if(c==o){if(0==(i-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else c==e&&(i+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;l=(u=s.value).length-1}return null}},this.$findClosingBracket=function(e,t,n){var o=this.$brackets[e],i=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var l=t.column-a.getCurrentTokenColumn();;){for(var u=s.value,c=u.length;l<c;){var d=u.charAt(l);if(d==o){if(0==(i-=1))return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else d==e&&(i+=1);l+=1}do{s=a.stepForward()}while(s&&!n.test(s.type));if(null==s)break;l=0}return null}},this.getMatchingTags=function(e){var t=new r(this,e.row,e.column),n=this.$findTagName(t);if(n)return"<"===t.stepBackward().value?this.$findClosingTag(t,n):this.$findOpeningTag(t,n)},this.$findTagName=function(e){var t=e.getCurrentToken(),n=!1,r=!1;if(t&&-1===t.type.indexOf("tag-name"))do{(t=r?e.stepBackward():e.stepForward())&&("/>"===t.value?r=!0:-1!==t.type.indexOf("tag-name")&&(n=!0))}while(t&&!n);return t},this.$findClosingTag=function(e,t){var n,r=t.value,i=t.value,a=0,s=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),u=!1;do{if(n=t,t=e.stepForward()){if(">"===t.value&&!u){var c=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);u=!0}if(-1!==t.type.indexOf("tag-name")){if(i===(r=t.value))if("<"===n.value)a++;else if("</"===n.value&&--a<0){e.stepBackward();var d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2);t=e.stepForward();var f=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if(!(t=e.stepForward())||">"!==t.value)return;var h=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else if(i===r&&"/>"===t.value&&--a<0)h=f=d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),c=new o(l.end.row,l.end.column,l.end.row,l.end.column+1)}}while(t&&a>=0);if(s&&c&&d&&h&&l&&f)return{openTag:new o(s.start.row,s.start.column,c.end.row,c.end.column),closeTag:new o(d.start.row,d.start.column,h.end.row,h.end.column),openTagName:l,closeTagName:f}},this.$findOpeningTag=function(e,t){var n=e.getCurrentToken(),r=t.value,i=0,a=e.getCurrentTokenRow(),s=e.getCurrentTokenColumn(),l=s+2,u=new o(a,s,a,l);e.stepForward();var c=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if((t=e.stepForward())&&">"===t.value){var d=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do{if(t=n,a=e.getCurrentTokenRow(),l=(s=e.getCurrentTokenColumn())+t.value.length,n=e.stepBackward(),t)if(-1!==t.type.indexOf("tag-name")){if(r===t.value)if("<"===n.value){if(++i>0){var f=new o(a,s,a,l),h=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do{t=e.stepForward()}while(t&&">"!==t.value);var p=new o(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else"</"===n.value&&i--}else if("/>"===t.value){for(var g=0,m=n;m;){if(-1!==m.type.indexOf("tag-name")&&m.value===r){i--;break}if("<"===m.value)break;m=e.stepBackward(),g++}for(var v=0;v<g;v++)e.stepForward()}}while(n&&i<=0);return h&&p&&u&&d&&f&&c?{openTag:new o(h.start.row,h.start.column,p.end.row,p.end.column),closeTag:new o(u.start.row,u.start.column,d.end.row,d.end.column),openTagName:f,closeTagName:c}:void 0}}}})),ace.define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/bidihandler","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/lang"),i=e("./bidihandler").BidiHandler,a=e("./config"),s=e("./lib/event_emitter").EventEmitter,l=e("./selection").Selection,u=e("./mode/text").Mode,c=e("./range").Range,d=e("./document").Document,f=e("./background_tokenizer").BackgroundTokenizer,h=e("./search_highlight").SearchHighlight,p=function(){function e(t,n){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.id="session"+ ++e.$uid,this.$foldData.toString=function(){return this.join("\n")},this.bgTokenizer=new f((new u).getTokenizer(),this);var r=this;this.bgTokenizer.on("update",(function(e){r._signal("tokenizerUpdate",e)})),this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof t&&t.getLine||(t=new d(t)),this.setDocument(t),this.selection=new l(this),this.$bidiHandler=new i(this),a.resetOptions(this),this.setMode(n),a._signal("session",this),this.destroyed=!1}return e.prototype.setDocument=function(e){this.doc&&this.doc.off("change",this.$onChange),this.doc=e,e.on("change",this.$onChange,!0),this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},e.prototype.getDocument=function(){return this.doc},e.prototype.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,n=this.$getRowCacheIndex(this.$docRowCache,e)+1;t>n&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},e.prototype.$getRowCacheIndex=function(e,t){for(var n=0,r=e.length-1;n<=r;){var o=n+r>>1,i=e[o];if(t>i)n=o+1;else{if(!(t<i))return o;r=o-1}}return n-1},e.prototype.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.destroyed||this.bgTokenizer.start(0)},e.prototype.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},e.prototype.onChange=function(e){this.$modified=!0,this.$bidiHandler.onChange(e),this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&(t&&t.length&&(this.$undoManager.add({action:"removeFolds",folds:t},this.mergeUndoDeltas),this.mergeUndoDeltas=!0),this.$undoManager.add(e,this.mergeUndoDeltas),this.mergeUndoDeltas=!0,this.$informUndoManager.schedule()),this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},e.prototype.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},e.prototype.toString=function(){return this.doc.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.getState=function(e){return this.bgTokenizer.getState(e)},e.prototype.getTokens=function(e){return this.bgTokenizer.getTokens(e)},e.prototype.getTokenAt=function(e,t){var n,r=this.bgTokenizer.getTokens(e),o=0;if(null==t){var i=r.length-1;o=this.getLine(e).length}else for(i=0;i<r.length&&!((o+=r[i].value.length)>=t);i++);return(n=r[i])?(n.index=i,n.start=o-n.value.length,n):null},e.prototype.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=o.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},e.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},e.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},e.prototype.getTabString=function(){return this.getUseSoftTabs()?o.stringRepeat(" ",this.getTabSize()):"\t"},e.prototype.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},e.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},e.prototype.setTabSize=function(e){this.setOption("tabSize",e)},e.prototype.getTabSize=function(){return this.$tabSize},e.prototype.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},e.prototype.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},e.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},e.prototype.setOverwrite=function(e){this.setOption("overwrite",e)},e.prototype.getOverwrite=function(){return this.$overwrite},e.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},e.prototype.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},e.prototype.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},e.prototype.getBreakpoints=function(){return this.$breakpoints},e.prototype.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},e.prototype.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},e.prototype.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},e.prototype.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},e.prototype.addMarker=function(e,t,n,r){var o=this.$markerId++,i={range:e,type:n||"line",renderer:"function"==typeof n?n:null,clazz:t,inFront:!!r,id:o};return r?(this.$frontMarkers[o]=i,this._signal("changeFrontMarker")):(this.$backMarkers[o]=i,this._signal("changeBackMarker")),o},e.prototype.addDynamicMarker=function(e,t){if(e.update){var n=this.$markerId++;return e.id=n,e.inFront=!!t,t?(this.$frontMarkers[n]=e,this._signal("changeFrontMarker")):(this.$backMarkers[n]=e,this._signal("changeBackMarker")),e}},e.prototype.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];t&&(delete(t.inFront?this.$frontMarkers:this.$backMarkers)[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))},e.prototype.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},e.prototype.highlight=function(e){if(!this.$searchHighlight){var t=new h(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},e.prototype.highlightLines=function(e,t,n,r){"number"!=typeof t&&(n=t,t=e),n||(n="ace_step");var o=new c(e,0,t,1/0);return o.id=this.addMarker(o,n,"fullLine",r),o},e.prototype.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},e.prototype.getAnnotations=function(){return this.$annotations||[]},e.prototype.clearAnnotations=function(){this.setAnnotations([])},e.prototype.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},e.prototype.getWordRange=function(e,t){var n=this.getLine(e),r=!1;if(t>0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var o=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))o=/\s/;else o=this.nonTokenRe;var i=t;if(i>0){do{i--}while(i>=0&&n.charAt(i).match(o));i++}for(var a=t;a<n.length&&n.charAt(a).match(o);)a++;return new c(e,i,e,a)},e.prototype.getAWordRange=function(e,t){for(var n=this.getWordRange(e,t),r=this.getLine(n.end.row);r.charAt(n.end.column).match(/[ \t]/);)n.end.column+=1;return n},e.prototype.setNewLineMode=function(e){this.doc.setNewLineMode(e)},e.prototype.getNewLineMode=function(){return this.doc.getNewLineMode()},e.prototype.setUseWorker=function(e){this.setOption("useWorker",e)},e.prototype.getUseWorker=function(){return this.$useWorker},e.prototype.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},e.prototype.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var n=e,r=n.path}else r=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new u),this.$modes[r]&&!n)return this.$onChangeMode(this.$modes[r]),void(t&&t());this.$modeId=r,a.loadModule(["mode",r],function(e){if(this.$modeId!==r)return t&&t();this.$modes[r]&&!n?this.$onChangeMode(this.$modes[r]):e&&e.Mode&&(e=new e.Mode(n),n||(this.$modes[r]=e,e.$id=r),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},e.prototype.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){var n=this.$mode;this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var r=e.getTokenizer();if(void 0!==r.on){var o=this.onReloadTokenizer.bind(this);r.on("update",o)}this.bgTokenizer.setTokenizer(r),this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode",{oldMode:n,mode:e}))}},e.prototype.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},e.prototype.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){a.warn("Could not load worker",e),this.$worker=null}},e.prototype.getMode=function(){return this.$mode},e.prototype.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},e.prototype.getScrollTop=function(){return this.$scrollTop},e.prototype.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},e.prototype.getScrollLeft=function(){return this.$scrollLeft},e.prototype.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},e.prototype.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var e=0;return this.lineWidgets.forEach((function(t){t&&t.screenWidth>e&&(e=t.screenWidth)})),this.lineWidgetWidth=e},e.prototype.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,o=0,i=this.$foldData[o],a=i?i.start.row:1/0,s=t.length,l=0;l<s;l++){if(l>a){if((l=i.end.row+1)>=s)break;a=(i=this.$foldData[o++])?i.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},e.prototype.getLine=function(e){return this.doc.getLine(e)},e.prototype.getLines=function(e,t){return this.doc.getLines(e,t)},e.prototype.getLength=function(){return this.doc.getLength()},e.prototype.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},e.prototype.insert=function(e,t){return this.doc.insert(e,t)},e.prototype.remove=function(e){return this.doc.remove(e)},e.prototype.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},e.prototype.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},e.prototype.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;n<e.length;n++){var r=e[n];"insert"!=r.action&&"remove"!=r.action||this.doc.$safeApplyDelta(r)}!t&&this.$undoSelect&&(e.selectionAfter?this.selection.fromJSON(e.selectionAfter):this.selection.setRange(this.$getUndoSelection(e,!1))),this.$fromUndo=!1}},e.prototype.setUndoSelect=function(e){this.$undoSelect=e},e.prototype.$getUndoSelection=function(e,t){function n(e){return t?"insert"!==e.action:"insert"===e.action}for(var r,o,i=0;i<e.length;i++){var a=e[i];a.start&&(r?n(a)?(o=a.start,-1==r.compare(o.row,o.column)&&r.setStart(o),o=a.end,1==r.compare(o.row,o.column)&&r.setEnd(o)):(o=a.start,-1==r.compare(o.row,o.column)&&(r=c.fromPoints(a.start,a.start))):r=n(a)?c.fromPoints(a.start,a.end):c.fromPoints(a.start,a.start))}return r},e.prototype.replace=function(e,t){return this.doc.replace(e,t)},e.prototype.moveText=function(e,t,n){var r=this.getTextRange(e),o=this.getFoldsInRange(e),i=c.fromPoints(t,t);if(!n){this.remove(e);var a=e.start.row-e.end.row;(u=a?-e.end.column:e.start.column-e.end.column)&&(i.start.row==e.end.row&&i.start.column>e.end.column&&(i.start.column+=u),i.end.row==e.end.row&&i.end.column>e.end.column&&(i.end.column+=u)),a&&i.start.row>=e.end.row&&(i.start.row+=a,i.end.row+=a)}if(i.end=this.insert(i.start,r),o.length){var s=e.start,l=i.start,u=(a=l.row-s.row,l.column-s.column);this.addFolds(o.map((function(e){return(e=e.clone()).start.row==s.row&&(e.start.column+=u),e.end.row==s.row&&(e.end.column+=u),e.start.row+=a,e.end.row+=a,e})))}return i},e.prototype.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},e.prototype.outdentRows=function(e){for(var t=e.collapseRows(),n=new c(0,0,0,0),r=this.getTabSize(),o=t.start.row;o<=t.end.row;++o){var i=this.getLine(o);n.start.row=o,n.end.row=o;for(var a=0;a<r&&" "==i.charAt(a);++a);a<r&&"\t"==i.charAt(a)?(n.start.column=a,n.end.column=a+1):(n.start.column=0,n.end.column=a),this.remove(n)}},e.prototype.$moveLines=function(e,t,n){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),n<0){if((o=this.getRowFoldStart(e+n))<0)return 0;var r=o-e}else if(n>0){var o;if((o=this.getRowFoldEnd(t+n))>this.doc.getLength()-1)return 0;r=o-t}else{e=this.$clipRowToDocument(e);r=(t=this.$clipRowToDocument(t))-e+1}var i=new c(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(i).map((function(e){return(e=e.clone()).start.row+=r,e.end.row+=r,e})),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+r,s),a.length&&this.addFolds(a),r},e.prototype.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},e.prototype.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},e.prototype.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},e.prototype.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},e.prototype.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},e.prototype.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},e.prototype.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},e.prototype.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},e.prototype.getUseWrapMode=function(){return this.$useWrapMode},e.prototype.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},e.prototype.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},e.prototype.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},e.prototype.getWrapLimit=function(){return this.$wrapLimit},e.prototype.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},e.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},e.prototype.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,o=e.end,i=r.row,a=o.row,s=a-i,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(i,s);var u=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var c=0;if(g=this.getFoldLine(o.row)){g.addRemoveChars(o.row,o.column,r.column-o.column),g.shiftRow(-s);var d=this.getFoldLine(i);d&&d!==g&&(d.merge(g),g=d),c=u.indexOf(g)+1}for(;c<u.length;c++){(g=u[c]).start.row>=o.row&&g.shiftRow(-s)}a=i}else{var f=Array(s);f.unshift(i,0);var h=t?this.$wrapData:this.$rowLengthCache;h.splice.apply(h,f);u=this.$foldData,c=0;if(g=this.getFoldLine(i)){var p=g.range.compareInside(r.row,r.column);0==p?(g=g.split(r.row,r.column))&&(g.shiftRow(s),g.addRemoveChars(a,0,o.column-r.column)):-1==p&&(g.addRemoveChars(i,0,o.column-r.column),g.shiftRow(s)),c=u.indexOf(g)+1}for(;c<u.length;c++){var g;(g=u[c]).start.row>=i&&g.shiftRow(s)}}else s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s),(g=this.getFoldLine(i))&&g.addRemoveChars(i,r.column,s);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(i,a):this.$updateRowLengthCache(i,a),l},e.prototype.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},e.prototype.$updateWrapData=function(e,t){var n,r,o=this.doc.getAllLines(),i=this.getTabSize(),a=this.$wrapData,s=this.$wrapLimit,l=e;for(t=Math.min(t,o.length-1);l<=t;)(r=this.getFoldLine(l,r))?(n=[],r.walk(function(e,t,r,i){var a;if(null!=e){(a=this.$getDisplayTokens(e,n.length))[0]=v;for(var s=1;s<a.length;s++)a[s]=y}else a=this.$getDisplayTokens(o[t].substring(i,r),n.length);n=n.concat(a)}.bind(this),r.end.row,o[r.end.row].length+1),a[r.start.row]=this.$computeWrapSplits(n,s,i),l=r.end.row+1):(n=this.$getDisplayTokens(o[l]),a[l]=this.$computeWrapSplits(n,s,i),l++)},e.prototype.$computeWrapSplits=function(e,t,n){if(0==e.length)return[];var r=[],o=e.length,i=0,a=0,s=this.$wrapAsCode,l=this.$indentedSoftWrap,u=t<=Math.max(2*n,8)||!1===l?0:Math.floor(t/2);function c(t){for(var o=t-i,c=i;c<t;c++){var f=e[c];12!==f&&2!==f||(o-=1)}r.length||(d=function(){var t=0;if(0===u)return t;if(l)for(var r=0;r<e.length;r++){var o=e[r];if(o==w)t+=1;else{if(o!=x){if(o==S)continue;break}t+=n}}return s&&!1!==l&&(t+=n),Math.min(t,u)}(),r.indent=d),a+=o,r.push(a),i=t}for(var d=0;o-i>t-d;){var f=i+t-d;if(e[f-1]>=w&&e[f]>=w)c(f);else if(e[f]!=v&&e[f]!=y){for(var h=Math.max(f-(t-(t>>2)),i-1);f>h&&e[f]<v;)f--;if(s){for(;f>h&&e[f]<v;)f--;for(;f>h&&e[f]==b;)f--}else for(;f>h&&e[f]<w;)f--;f>h?c(++f):(e[f=i+t]==m&&f--,c(f-d))}else{for(;f!=i-1&&e[f]!=v;f--);if(f>i){c(f);continue}for(f=i+t;f<e.length&&e[f]==y;f++);if(f==e.length)break;c(f)}}return r},e.prototype.$getDisplayTokens=function(e,t){var n,r=[];t=t||0;for(var o=0;o<e.length;o++){var i=e.charCodeAt(o);if(9==i){n=this.getScreenTabSize(r.length+t),r.push(x);for(var a=1;a<n;a++)r.push(S)}else 32==i?r.push(w):i>39&&i<48||i>57&&i<64?r.push(b):i>=4352&&_(i)?r.push(g,m):r.push(g)}return r},e.prototype.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var r,o;for(null==t&&(t=1/0),n=n||0,o=0;o<e.length&&(9==(r=e.charCodeAt(o))?n+=this.getScreenTabSize(n):r>=4352&&_(r)?n+=2:n+=1,!(n>t));o++);return[n,o]},e.prototype.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},e.prototype.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},e.prototype.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]<t.column?n.indent:0}return 0},e.prototype.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},e.prototype.getDocumentLastRowColumn=function(e,t){var n=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(n)},e.prototype.getDocumentLastRowColumnPosition=function(e,t){var n=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(n,Number.MAX_VALUE/10)},e.prototype.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},e.prototype.getScreenTabSize=function(e){return this.$tabSize-(e%this.$tabSize|0)},e.prototype.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},e.prototype.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},e.prototype.screenToDocumentPosition=function(e,t,n){if(e<0)return{row:0,column:0};var r,o,i=0,a=0,s=0,l=0,u=this.$screenRowCache,c=this.$getRowCacheIndex(u,e),d=u.length;if(d&&c>=0){s=u[c],i=this.$docRowCache[c];var f=e>u[d-1]}else f=!d;for(var h=this.getLength()-1,p=this.getNextFoldLine(i),g=p?p.start.row:1/0;s<=e&&!(s+(l=this.getRowLength(i))>e||i>=h);)s+=l,++i>g&&(i=p.end.row+1,g=(p=this.getNextFoldLine(i,p))?p.start.row:1/0),f&&(this.$docRowCache.push(i),this.$screenRowCache.push(s));if(p&&p.start.row<=i)r=this.getFoldDisplayLine(p),i=p.start.row;else{if(s+l<=e||i>h)return{row:h,column:this.getLine(h).length};r=this.getLine(i),p=null}var m=0,v=Math.floor(e-s);if(this.$useWrapMode){var y=this.$wrapData[i];y&&(o=y[v],v>0&&y.length&&(m=y.indent,a=y[v-1]||y[y.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,i,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-m)[1],this.$useWrapMode&&a>=o&&(a=o-1),p?p.idxToPosition(a):{row:i,column:a}},e.prototype.documentToScreenPosition=function(e,t){if(void 0===t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r,o=0,i=null;(r=this.getFoldAt(e,t,1))&&(e=r.start.row,t=r.start.column);var a,s=0,l=this.$docRowCache,u=this.$getRowCacheIndex(l,e),c=l.length;if(c&&u>=0){s=l[u],o=this.$screenRowCache[u];var d=e>l[c-1]}else d=!c;for(var f=this.getNextFoldLine(s),h=f?f.start.row:1/0;s<e;){if(s>=h){if((a=f.end.row+1)>e)break;h=(f=this.getNextFoldLine(a,f))?f.start.row:1/0}else a=s+1;o+=this.getRowLength(s),s=a,d&&(this.$docRowCache.push(s),this.$screenRowCache.push(o))}var p="";f&&s>=h?(p=this.getFoldDisplayLine(f,e,t),i=f.start.row):(p=this.getLine(e).substring(0,t),i=e);var g=0;if(this.$useWrapMode){var m=this.$wrapData[i];if(m){for(var v=0;p.length>=m[v];)o++,v++;p=p.substring(m[v-1]||0,p.length),g=v>0?m.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(o+=this.lineWidgets[s].rowsAbove),{row:o,column:g+this.$getStringScreenWidth(p)[0]}},e.prototype.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},e.prototype.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},e.prototype.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var n=this.$wrapData.length,r=0,o=(s=0,(t=this.$foldData[s++])?t.start.row:1/0);r<n;){var i=this.$wrapData[r];e+=i?i.length+1:1,++r>o&&(r=t.end.row+1,o=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;s<a.length;s++)e-=(t=a[s]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},e.prototype.$setFontMetrics=function(e){this.$enableVarChar&&(this.$getStringScreenWidth=function(t,n,r){if(0===n)return[0,0];var o,i;for(n||(n=1/0),r=r||0,i=0;i<t.length&&!((r+="\t"===(o=t.charAt(i))?this.getScreenTabSize(r):e.getCharacterWidth(o))>n);i++);return[r,i]})},e.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},e}();p.$uid=0,p.prototype.$modes=a.$modes,p.prototype.getValue=p.prototype.toString,p.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},p.prototype.$overwrite=!1,p.prototype.$mode=null,p.prototype.$modeId=null,p.prototype.$scrollTop=0,p.prototype.$scrollLeft=0,p.prototype.$wrapLimit=80,p.prototype.$useWrapMode=!1,p.prototype.$wrapLimitRange={min:null,max:null},p.prototype.lineWidgets=null,p.prototype.isFullWidth=_,r.implement(p.prototype,s);var g=1,m=2,v=3,y=4,b=9,w=10,x=11,S=12;function _(e){return!(e<4352)&&(e>=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p})),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],(function(e,t,n){"use strict";var r=e("./lib/lang"),o=e("./lib/oop"),i=e("./range").Range,a=function(){function e(){this.$options={}}return e.prototype.set=function(e){return o.mixin(this.$options,e),this},e.prototype.getOptions=function(){return r.copyObject(this.$options)},e.prototype.setOptions=function(e){this.$options=e},e.prototype.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach((function(e,n,o,a){return r=new i(e,n,o,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)})),r},e.prototype.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,o=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,u=s.length,c=o.length-u;e:for(var d=s.offset||0;d<=c;d++){for(var f=0;f<u;f++)if(-1==o[d+f].search(s[f]))continue e;var h=o[d],p=o[d+u-1],g=h.length-h.match(s[0])[0].length,m=p.match(s[u-1])[0].length;l&&l.end.row===d&&l.end.column>g||(a.push(l=new i(d,g,d+u-1,m)),u>2&&(d=d+u-2))}}else for(var v=0;v<o.length;v++){var y=r.getMatchOffsets(o[v],s);for(f=0;f<y.length;f++){var b=y[f];a.push(new i(v,b.offset,v,b.offset+b.length))}}if(n){var w=n.start.column,x=n.end.column;for(v=0,f=a.length-1;v<f&&a[v].start.column<w&&0==a[v].start.row;)v++;for(var S=n.end.row-n.start.row;v<f&&a[f].end.column>x&&a[f].end.row==S;)f--;for(a=a.slice(v,f+1),v=0,f=a.length;v<f;v++)a[v].start.row+=n.start.row,a[v].end.row+=n.start.row}return a},e.prototype.replace=function(e,t){var n=this.$options,r=this.$assembleRegExp(n);if(n.$isMultiLine)return t;if(r){var o=r.exec(e);if(!o||o[0].length!=e.length)return null;if(t=e.replace(r,t),n.preserveCase){t=t.split("");for(var i=Math.min(e.length,e.length);i--;){var a=e[i];a&&a.toLowerCase()!=a?t[i]=t[i].toUpperCase():t[i]=t[i].toLowerCase()}t=t.join("")}return t}},e.prototype.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var n=e.needle;if(!e.needle)return e.re=!1;void 0===e.$supportsUnicodeFlag&&(e.$supportsUnicodeFlag=r.supportsUnicodeFlag());try{new RegExp(n,"u")}catch(t){e.$supportsUnicodeFlag=!1}e.regExp||(n=r.escapeRegExp(n)),e.wholeWord&&(n=function(e,t){var n=r.supportsLookbehind();function o(e,r){return void 0===r&&(r=!0),(n&&t.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w")).test(e)||t.regExp?n&&t.$supportsUnicodeFlag?r?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var i=Array.from(e),a=i[0],s=i[i.length-1];return o(a)+e+o(s,!1)}(n,e));var o=e.caseSensitive?"gm":"gmi";if(e.$supportsUnicodeFlag&&(o+="u"),e.$isMultiLine=!t&&/[\n\r]/.test(n),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(n,o);try{var i=new RegExp(n,o)}catch(e){i=!1}return e.re=i},e.prototype.$assembleMultilineRegExp=function(e,t){for(var n=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),r=[],o=0;o<n.length;o++)try{r.push(new RegExp(n[o],t))}catch(e){return!1}return r},e.prototype.$matchIterator=function(e,t){var n=this.$assembleRegExp(t);if(!n)return!1;var r=1==t.backwards,o=0!=t.skipCurrent,i=t.range,a=t.start;a||(a=i?i[r?"end":"start"]:e.selection.getRange()),a.start&&(a=a[o!=r?"end":"start"]);var s=i?i.start.row:0,l=i?i.end.row:e.getLength()-1;if(r)var u=function(e){var n=a.row;if(!d(n,a.column,e)){for(n--;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(d(n,Number.MAX_VALUE,e))return}};else u=function(e){var n=a.row;if(!d(n,a.column,e)){for(n+=1;n<=l;n++)if(d(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(d(n,0,e))return}};if(t.$isMultiLine)var c=n.length,d=function(t,o,i){var a=r?t-c+1:t;if(!(a<0||a+c>e.getLength())){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&l<o||-1===l)){for(var u=1;u<c;u++)if(-1==(s=e.getLine(a+u)).search(n[u]))return;var d=s.match(n[c-1])[0].length;if(!(r&&d>o))return!!i(a,l,a+c-1,d)||void 0}}};else if(r)d=function(t,r,o){var i,a=e.getLine(t),s=[],l=0;for(n.lastIndex=0;i=n.exec(a);){var u=i[0].length;if(l=i.index,!u){if(l>=a.length)break;n.lastIndex=l+=1}if(i.index+u>r)break;s.push(i.index,u)}for(var c=s.length-1;c>=0;c-=2){var d=s[c-1];if(o(t,d,t,d+(u=s[c])))return!0}};else d=function(t,r,o){var i,a,s=e.getLine(t);for(n.lastIndex=r;a=n.exec(s);){var l=a[0].length;if(o(t,i=a.index,t,i+l))return!0;if(!l&&(n.lastIndex=i+=1,i>=s.length))return!1}};return{forEach:u}},e}();t.Search=a})),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],(function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=e("../lib/keys"),a=e("../lib/useragent"),s=i.KEY_MODS,l=function(){function e(e,t){this.$init(e,t,!1)}return e.prototype.$init=function(e,t,n){this.platform=t||(a.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=n},e.prototype.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},e.prototype.removeCommand=function(e,t){var n=e&&("string"==typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var o in r){var i=r[o];if(i==e)delete r[o];else if(Array.isArray(i)){var a=i.indexOf(e);-1!=a&&(i.splice(a,1),1==i.length&&(r[o]=i[0]))}}},e.prototype.bindKey=function(e,t,n){if("object"==typeof e&&e&&(null==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach((function(e){var r="";if(-1!=e.indexOf(" ")){var o=e.split(/\s+/);e=o.pop(),o.forEach((function(e){var t=this.parseKeys(e),n=s[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")}),this),r+=" "}var i=this.parseKeys(e),a=s[i.hashId]+i.key;this._addCommandToBinding(r+a,t,n)}),this)},e.prototype._addCommandToBinding=function(e,t,n){var r,o=this.commandKeyBinding;if(t)if(!o[e]||this.$singleCommand)o[e]=t;else{Array.isArray(o[e])?-1!=(r=o[e].indexOf(t))&&o[e].splice(r,1):o[e]=[o[e]],"number"!=typeof n&&(n=u(t));var i=o[e];for(r=0;r<i.length;r++){if(u(i[r])>n)break}i.splice(r,0,t)}else delete o[e]},e.prototype.addCommands=function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];if(n){if("string"==typeof n)return this.bindKey(n,t);"function"==typeof n&&(n={exec:n}),"object"==typeof n&&(n.name||(n.name=t),this.addCommand(n))}}),this)},e.prototype.removeCommands=function(e){Object.keys(e).forEach((function(t){this.removeCommand(e[t])}),this)},e.prototype.bindKeys=function(e){Object.keys(e).forEach((function(t){this.bindKey(t,e[t])}),this)},e.prototype._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},e.prototype.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter((function(e){return e})),n=t.pop(),r=i[n];if(i.FUNCTION_KEYS[r])n=i.FUNCTION_KEYS[r].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=i.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;o|=s}return{key:n,hashId:o}},e.prototype.findKeyCommand=function(e,t){var n=s[e]+t;return this.commandKeyBinding[n]},e.prototype.handleKeyboard=function(e,t,n,r){if(!(r<0)){var o=s[t]+n,i=this.commandKeyBinding[o];return e.$keyChain&&(e.$keyChain+=" "+o,i=this.commandKeyBinding[e.$keyChain]||i),!i||"chainKeys"!=i&&"chainKeys"!=i[i.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-o.length-1)),{command:i}):(e.$keyChain=e.$keyChain||o,{command:"null"})}},e.prototype.getStatusText=function(e,t){return t.$keyChain||""},e}();function u(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}var c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.$singleCommand=!0,r}return o(t,e),t}(l);c.call=function(e,t,n){l.prototype.$init.call(e,t,n,!0)},l.call=function(e,t,n){l.prototype.$init.call(e,t,n,!1)},t.HashHandler=c,t.MultiHashHandler=l})),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=e("../lib/oop"),a=e("../keyboard/hash_handler").MultiHashHandler,s=e("../lib/event_emitter").EventEmitter,l=function(e){function t(t,n){var r=e.call(this,n,t)||this;return r.byName=r.commands,r.setDefaultHandler("exec",(function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)})),r}return o(t,e),t.prototype.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var o={editor:t,command:e,args:n};return o.returnValue=this._emit("exec",o),this._signal("afterExec",o),!1!==o.returnValue},t.prototype.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},t.prototype.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach((function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])}),this)}finally{this.$inReplay=!1}}},t.prototype.trimMacro=function(e){return e.map((function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e}))},t}(a);i.implement(l.prototype,s),t.CommandManager=l})),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],(function(e,t,n){"use strict";var r=e("../lib/lang"),o=e("../config"),i=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){o.loadModule("ace/ext/settings_menu",(function(t){t.init(e),e.showSettingsMenu()}))},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(e){o.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,1)}))},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){o.loadModule("ace/ext/error_marker",(function(t){t.showErrorMarker(e,-1)}))},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e)}))},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){o.loadModule("ace/ext/searchbox",(function(t){t.Search(e,!0)}))}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:a("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),o=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(n.row),u=n.row+1;u<=o.row+1;u++){var c=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(u)));0!==c.length&&(c=" "+c),l+=c}o.row+1<e.session.doc.getLength()-1&&(l+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new i(n.row,0,o.row+2,0),l),s>0?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+s)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,o=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a<r.length;a++)a==r.length-1&&(r[a].end.row===t&&r[a].end.column===n||o.push(new i(r[a].end.row,r[a].end.column,t,n))),0===a?0===r[a].start.row&&0===r[a].start.column||o.push(new i(0,0,r[a].start.row,r[a].start.column)):o.push(new i(r[a-1].end.row,r[a-1].end.column,r[a].start.row,r[a].start.column));e.exitMultiSelectMode(),e.clearSelection();for(a=0;a<o.length;a++)e.selection.addRange(o[a],!1)},readOnly:!0,scrollIntoView:"none"},{name:"addLineAfter",description:"Add new line after the current line",exec:function(e){e.selection.clearSelection(),e.navigateLineEnd(),e.insert("\n")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"addLineBefore",description:"Add new line before the current line",exec:function(e){e.selection.clearSelection();var t=e.getCursorPosition();e.selection.moveTo(t.row-1,Number.MAX_VALUE),e.insert("\n"),0===t.row&&e.navigateUp()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"openCommandPallete",description:"Open command palette",bindKey:a("F1","F1"),exec:function(e){e.prompt({$type:"commands"})},readOnly:!0},{name:"modeSelect",description:"Change language mode...",bindKey:a(null,null),exec:function(e){e.prompt({$type:"modes"})},readOnly:!0}];for(var s=1;s<9;s++)t.commands.push({name:"foldToLevel"+s,description:"Fold To Level "+s,level:s,exec:function(e){e.session.foldToLevel(this.level)},scrollIntoView:"center",readOnly:!0})})),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("./lib/dom"),o=function(){function e(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}return e.prototype.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},e.prototype.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach((function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)})),e},e.prototype.$onChangeEditor=function(e){this.attach(e.editor)},e.prototype.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},e.prototype.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach((function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))}))}},e.prototype.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,o=r.start.row,i=r.end.row,a="add"==e.action,s=o+1;s<i;s++)n[s]&&(n[s].hidden=a);n[i]&&(a?n[o]?n[i].hidden=a:n[o]=n[i]:(n[o]==n[i]&&(n[o]=void 0),n[i].hidden=a))}},e.prototype.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var n=e.start.row,r=e.end.row-n;if(0===r);else if("remove"==e.action){var o=t.splice(n+1,r);!t[n]&&o[o.length-1]&&(t[n]=o.pop()),o.forEach((function(e){e&&this.removeLineWidget(e)}),this),this.$updateRows()}else{var i=new Array(r);t[n]&&null!=t[n].column&&e.start.column>t[n].column&&n++,i.unshift(n,0),t.splice.apply(t,i),this.$updateRows()}}},e.prototype.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach((function(e,n){if(e)for(t=!1,e.row=n;e.$oldWidget;)e.$oldWidget.row=n,e=e.$oldWidget})),t&&(this.session.lineWidgets=null)}},e.prototype.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},e.prototype.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.text&&!e.el&&(e.el=r.createElement("div"),e.el.textContent=e.text),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.className&&r.addCssClass(e.el,e.className),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var o=this.session.lineWidgets;e.row!=n.end.row||o[n.start.row]?e.hidden=!0:o[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},e.prototype.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},e.prototype.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,n=t&&t[e],r=[];n;)r.push(n),n=n.$oldWidget;return r},e.prototype.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},e.prototype.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var o=1/0,i=0;i<n.length;i++){var a=n[i];if(a&&a.el&&a.session==this.session){if(!a._inDocument){if(this.session.lineWidgets[a.row]!=a)continue;a._inDocument=!0,t.container.appendChild(a.el)}a.h=a.el.offsetHeight,a.fixedWidth||(a.w=a.el.offsetWidth,a.screenWidth=Math.ceil(a.w/r.characterWidth));var s=a.h/r.lineHeight;a.coverLine&&(s-=this.session.getRowLineCount(a.row))<0&&(s=0),a.rowCount!=s&&(a.rowCount=s,a.row<o&&(o=a.row))}}o!=1/0&&(this.session._emit("changeFold",{data:{start:{row:o}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},e.prototype.renderWidgets=function(e,t){var n=t.layerConfig,r=this.session.lineWidgets;if(r){for(var o=Math.min(this.firstRow,n.firstRow),i=Math.max(this.lastRow,n.lastRow,r.length);o>0&&!r[o];)o--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=o;a<=i;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var u=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(u-=t.scrollLeft),s.el.style.left=u+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}},e}();t.LineWidgets=o})),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],(function(e,t,n){"use strict";var r=e("../lib/keys"),o=e("../mouse/default_gutter_handler").GutterTooltip,i=function(){function e(e){this.editor=e,this.gutterLayer=e.renderer.$gutterLayer,this.element=e.renderer.$gutter,this.lines=e.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new o(this.editor)}return e.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},e.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},e.prototype.$onGutterKeyDown=function(e){if(this.annotationTooltip.isOpen)return e.preventDefault(),void(e.keyCode===r.escape&&this.annotationTooltip.hideTooltip());if(e.target===this.element){if(e.keyCode!=r.enter)return;e.preventDefault();var t=this.editor.getCursorPosition().row;return this.editor.isRowVisible(t)||this.editor.scrollToLine(t,!0,!0),void setTimeout(function(){var e=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),t=this.$findNearestFoldWidget(e),n=this.$findNearestAnnotation(e);if(null!==t||null!==n)return null===t&&null!==n?(this.activeRowIndex=n,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):null!==t&&null===n?(this.activeRowIndex=t,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex)):Math.abs(n-e)<Math.abs(t-e)?(this.activeRowIndex=n,this.activeLane="annotation",void this.$focusAnnotation(this.activeRowIndex)):(this.activeRowIndex=t,this.activeLane="fold",void this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10)}this.$handleGutterKeyboardInteraction(e),setTimeout(function(){this.editor._signal("gutterkeydown",new a(e,this))}.bind(this),10)},e.prototype.$handleGutterKeyboardInteraction=function(e){if(e.keyCode!==r.tab){if(e.keyCode===r.escape)return e.preventDefault(),this.$blurGutter(),this.element.focus(),void(this.lane=null);if(e.keyCode!==r.up)if(e.keyCode!==r.down){if(e.keyCode===r.left)return e.preventDefault(),void this.$switchLane("annotation");if(e.keyCode===r.right)return e.preventDefault(),void this.$switchLane("fold");if(e.keyCode!==r.enter&&e.keyCode!==r.space);else switch(e.preventDefault(),this.activeLane){case"fold":if("start"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)]){var t=this.$rowIndexToRow(this.activeRowIndex);this.editor.session.onFoldWidgetClick(this.$rowIndexToRow(this.activeRowIndex),e),setTimeout(function(){this.$rowIndexToRow(this.activeRowIndex)!==t&&(this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=this.$rowToRowIndex(t),this.$focusFoldWidget(this.activeRowIndex))}.bind(this),10);break}if("end"===this.gutterLayer.session.foldWidgets[this.$rowIndexToRow(this.activeRowIndex)])break;return;case"annotation":var n=this.lines.cells[this.activeRowIndex].element.childNodes[2].getBoundingClientRect(),o=this.annotationTooltip.getElement().style;o.left=n.right+"px",o.top=n.bottom+"px",this.annotationTooltip.showTooltip(this.$rowIndexToRow(this.activeRowIndex))}}else switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetDown();break;case"annotation":this.$moveAnnotationDown()}else switch(e.preventDefault(),this.activeLane){case"fold":this.$moveFoldWidgetUp();break;case"annotation":this.$moveAnnotationUp()}}else e.preventDefault()},e.prototype.$blurGutter=function(){if(null!==this.activeRowIndex)switch(this.activeLane){case"fold":this.$blurFoldWidget(this.activeRowIndex);break;case"annotation":this.$blurAnnotation(this.activeRowIndex)}this.annotationTooltip.isOpen&&this.annotationTooltip.hideTooltip()},e.prototype.$isFoldWidgetVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n="none"!==this.$getFoldWidget(e).style.display;return t&&n},e.prototype.$isAnnotationVisible=function(e){var t=this.editor.isRowFullyVisible(this.$rowIndexToRow(e)),n="none"!==this.$getAnnotation(e).style.display;return t&&n},e.prototype.$getFoldWidget=function(e){return this.lines.get(e).element.childNodes[1]},e.prototype.$getAnnotation=function(e){return this.lines.get(e).element.childNodes[2]},e.prototype.$findNearestFoldWidget=function(e){if(this.$isFoldWidgetVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isFoldWidgetVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(e+t))return e+t}return null},e.prototype.$findNearestAnnotation=function(e){if(this.$isAnnotationVisible(e))return e;for(var t=0;e-t>0||e+t<this.lines.getLength()-1;){if(e-++t>=0&&this.$isAnnotationVisible(e-t))return e-t;if(e+t<=this.lines.getLength()-1&&this.$isAnnotationVisible(e+t))return e+t}return null},e.prototype.$focusFoldWidget=function(e){if(null!=e){var t=this.$getFoldWidget(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$focusAnnotation=function(e){if(null!=e){var t=this.$getAnnotation(e);t.classList.add(this.editor.renderer.keyboardFocusClassName),t.focus()}},e.prototype.$blurFoldWidget=function(e){var t=this.$getFoldWidget(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$blurAnnotation=function(e){var t=this.$getAnnotation(e);t.classList.remove(this.editor.renderer.keyboardFocusClassName),t.blur()},e.prototype.$moveFoldWidgetUp=function(){for(var e=this.activeRowIndex;e>0;)if(e--,this.$isFoldWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveFoldWidgetDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isFoldWidgetVisible(e))return this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=e,void this.$focusFoldWidget(this.activeRowIndex)},e.prototype.$moveAnnotationUp=function(){for(var e=this.activeRowIndex;e>0;)if(e--,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$moveAnnotationDown=function(){for(var e=this.activeRowIndex;e<this.lines.getLength()-1;)if(e++,this.$isAnnotationVisible(e))return this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=e,void this.$focusAnnotation(this.activeRowIndex)},e.prototype.$switchLane=function(e){switch(e){case"annotation":if("annotation"===this.activeLane)break;var t=this.$findNearestAnnotation(this.activeRowIndex);if(null==t)break;this.activeLane="annotation",this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=t,this.$focusAnnotation(this.activeRowIndex);break;case"fold":if("fold"===this.activeLane)break;var n=this.$findNearestFoldWidget(this.activeRowIndex);if(null==n)break;this.activeLane="fold",this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=n,this.$focusFoldWidget(this.activeRowIndex)}},e.prototype.$rowIndexToRow=function(e){var t=this.lines.get(e);return t?t.row:null},e.prototype.$rowToRowIndex=function(e){for(var t=0;t<this.lines.getLength();t++){if(this.lines.get(t).row==e)return t}return null},e}();t.GutterKeyboardHandler=i;var a=function(){function e(e,t){this.gutterKeyboardHandler=t,this.domEvent=e}return e.prototype.getKey=function(){return r.keyCodeToString(this.domEvent.keyCode)},e.prototype.getRow=function(){return this.gutterKeyboardHandler.$rowIndexToRow(this.gutterKeyboardHandler.activeRowIndex)},e.prototype.isInAnnotationLane=function(){return"annotation"===this.gutterKeyboardHandler.activeLane},e.prototype.isInFoldLane=function(){return"fold"===this.gutterKeyboardHandler.activeLane},e}();t.GutterKeyboardEvent=a})),ace.define("ace/editor",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator","ace/line_widgets","ace/keyboard/gutter_handler","ace/config","ace/clipboard","ace/lib/keys"],(function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=e("./lib/oop"),i=e("./lib/dom"),a=e("./lib/lang"),s=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,u=e("./mouse/mouse_handler").MouseHandler,c=e("./mouse/fold_handler").FoldHandler,d=e("./keyboard/keybinding").KeyBinding,f=e("./edit_session").EditSession,h=e("./search").Search,p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,m=e("./commands/command_manager").CommandManager,v=e("./commands/default_commands").commands,y=e("./config"),b=e("./token_iterator").TokenIterator,w=e("./line_widgets").LineWidgets,x=e("./keyboard/gutter_handler").GutterKeyboardHandler,S=e("./config").nls,_=e("./clipboard"),E=e("./lib/keys"),k=function(){function e(t,n,r){this.$toDestroy=[];var o=t.getContainerElement();this.container=o,this.renderer=t,this.id="editor"+ ++e.$uid,this.commands=new m(s.isMac?"mac":"win",v),"object"==typeof document&&(this.textInput=new l(t.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new u(this),new c(this)),this.keyBinding=new d(this),this.$search=(new h).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=a.delayedCall(function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",(function(e,t){t._$emitInputEvent.schedule(31)})),this.setSession(n||r&&r.session||new f("")),y.resetOptions(this),r&&this.setOptions(r),y._signal("editor",this)}return e.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=a.delayedCall(this.endOperation.bind(this,!0)),this.on("change",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}.bind(this),!0)},e.prototype.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},e.prototype.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if(1==e&&this.curOp.command&&"mouse"==this.curOp.command.name)return;if(this._signal("beforeEndOperation"),!this.curOp)return;var t=this.curOp.command,n=t&&t.scrollIntoView;if(n){switch(n){case"center-animate":n="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var r=this.selection.getRange(),o=this.renderer.layerConfig;(r.start.row>=o.lastRow||r.end.row<=o.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var i=this.selection.toJSON();this.curOp.selectionAfter=i,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(i),this.prevOp=this.curOp,this.curOp=null}},e.prototype.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var o=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(o)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},e.prototype.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;y.loadModule(["keybinding",e],(function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()}))}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},e.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},e.prototype.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},e.prototype.getSession=function(){return this.session},e.prototype.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},e.prototype.getValue=function(){return this.session.getValue()},e.prototype.getSelection=function(){return this.selection},e.prototype.resize=function(e){this.renderer.onResize(e)},e.prototype.setTheme=function(e,t){this.renderer.setTheme(e,t)},e.prototype.getTheme=function(){return this.renderer.getTheme()},e.prototype.setStyle=function(e){this.renderer.setStyle(e)},e.prototype.unsetStyle=function(e){this.renderer.unsetStyle(e)},e.prototype.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container).fontSize},e.prototype.setFontSize=function(e){this.setOption("fontSize",e)},e.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout((function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach((function(e){t.removeMarker(e)})),t.$bracketHighlight=null);var n=e.getCursorPosition(),r=e.getKeyboardHandler(),o=r&&r.$getDirectionForHighlight&&r.$getDirectionForHighlight(e),i=t.getMatchingBracketRanges(n,o);if(!i){var a=new b(t,n.row,n.column).getCurrentToken();if(a&&/\b(?:tag-open|tag-name)/.test(a.type)){var s=t.getMatchingTags(n);s&&(i=[s.openTagName,s.closeTagName])}}if(!i&&t.$mode.getMatching&&(i=t.$mode.getMatching(e.session)),i){var l="ace_bracket";Array.isArray(i)?1==i.length&&(l="ace_error_bracket"):i=[i],2==i.length&&(0==p.comparePoints(i[0].end,i[1].start)?i=[p.fromPoints(i[0].start,i[1].end)]:0==p.comparePoints(i[0].start,i[1].end)&&(i=[p.fromPoints(i[1].start,i[0].end)])),t.$bracketHighlight={ranges:i,markerIds:i.map((function(e){return t.addMarker(e,l,"text")}))},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}else e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}}),50)}},e.prototype.focus=function(){this.textInput.focus()},e.prototype.isFocused=function(){return this.textInput.isFocused()},e.prototype.blur=function(){this.textInput.blur()},e.prototype.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},e.prototype.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},e.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},e.prototype.onDocumentChange=function(e){var t=this.session.$useWrapMode,n=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,n,t),this._signal("change",e),this.$cursorChange()},e.prototype.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},e.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},e.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},e.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},e.prototype.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),!this.renderer.$maxLines||1!==this.session.getLength()||this.renderer.$minLines>1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new p(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},e.prototype.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var o=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(o),this._signal("changeSelection")},e.prototype.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,o=e.getLine(t.start.row),i=o.substring(n,r);if(!(i.length>5e3)&&/[\w\d]/.test(i)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:i}),s=o.substring(n-1,r+1);if(a.test(s))return a}}},e.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},e.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},e.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},e.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},e.prototype.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},e.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},e.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},e.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},e.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},e.prototype.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),o=0;o<r.length;o++){var i=r[o];o&&r[o-1].start.row==i.start.row||(e+=this.session.getLine(i.start.row)+t)}}var a={text:e};return this._signal("copy",a),_.lineMode=!!n&&a.text,a.text},e.prototype.onCopy=function(){this.commands.exec("copy",this)},e.prototype.onCut=function(){this.commands.exec("cut",this)},e.prototype.onPaste=function(e,t){var n={text:e,event:t};this.commands.exec("paste",this,n)},e.prototype.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text,n=t===_.lineMode,r=this.session;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)n?r.insert({row:this.selection.lead.row,column:0},t):this.insert(t);else if(n)this.selection.rangeList.ranges.forEach((function(e){r.insert({row:e.start.row,column:0},t)}));else{var o=t.split(/\r\n|\r|\n/),i=this.selection.rangeList.ranges,a=!(2!=o.length||o[0]&&o[1]);if(o.length!=i.length||a)return this.commands.exec("insertstring",this,t);for(var s=i.length;s--;){var l=i[s];l.isEmpty()||r.remove(l),r.insert(l.start,o[s])}}},e.prototype.execCommand=function(e,t){return this.commands.exec(e,this,t)},e.prototype.insert=function(e,t){var n=this.session,r=n.getMode(),o=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var i=r.transformAction(n.getState(o.row),"insertion",this,n,e);i&&(e!==i.text&&(this.inVirtualSelectionMode||(this.session.mergeUndoDeltas=!1,this.mergeNextCommand=!1)),e=i.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&-1==e.indexOf("\n")){(a=new p.fromPoints(o,o)).end.column+=e.length,this.session.remove(a)}}else{var a=this.getSelectionRange();o=this.session.remove(a),this.clearSelection()}if("\n"==e||"\r\n"==e){var s=n.getLine(o.row);if(o.column>s.search(/\S|$/)){var l=s.substr(o.column).search(/\S|$/);n.doc.removeInLine(o.row,o.column,o.column+l)}}this.clearSelection();var u=o.column,c=n.getState(o.row),d=(s=n.getLine(o.row),r.checkOutdent(c,s,e));if(n.insert(o,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new p(o.row,u+i.selection[0],o.row,u+i.selection[1])):this.selection.setSelectionRange(new p(o.row+i.selection[0],i.selection[1],o.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var f=r.getNextLineIndent(c,s.slice(0,o.column),n.getTabString());n.insert({row:o.row+1,column:0},f)}d&&r.autoOutdent(c,n,o.row)}},e.prototype.autoIndent=function(){var e,t,n=this.session,r=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var o=this.getSelectionRange();e=o.start.row,t=o.end.row}for(var i,a,s,l="",u="",c="",d=n.getTabString(),f=e;f<=t;f++)f>0&&(l=n.getState(f-1),u=n.getLine(f-1),c=r.getNextLineIndent(l,u,d)),i=n.getLine(f),c!==(a=r.$getIndent(i))&&(a.length>0&&(s=new p(f,0,f,a.length),n.remove(s)),c.length>0&&n.insert({row:f,column:0},c)),r.autoOutdent(l,n,f)},e.prototype.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},e.prototype.applyComposition=function(e,t){var n;(t.extendLeft||t.extendRight)&&((n=this.selection.getRange()).start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove());(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd)&&((n=this.selection.getRange()).start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n))},e.prototype.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},e.prototype.setOverwrite=function(e){this.session.setOverwrite(e)},e.prototype.getOverwrite=function(){return this.session.getOverwrite()},e.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},e.prototype.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},e.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},e.prototype.setDragDelay=function(e){this.setOption("dragDelay",e)},e.prototype.getDragDelay=function(){return this.getOption("dragDelay")},e.prototype.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},e.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},e.prototype.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},e.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},e.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},e.prototype.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},e.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},e.prototype.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},e.prototype.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},e.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},e.prototype.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},e.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},e.prototype.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},e.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},e.prototype.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},e.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},e.prototype.setReadOnly=function(e){this.setOption("readOnly",e)},e.prototype.getReadOnly=function(){return this.getOption("readOnly")},e.prototype.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},e.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},e.prototype.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},e.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},e.prototype.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},e.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),o=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var i=n.getTextRange(t);if("\n"==i[i.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}o&&(t=o)}this.session.remove(t),this.clearSelection()},e.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},e.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},e.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},e.prototype.setGhostText=function(e,t){this.session.widgetManager||(this.session.widgetManager=new w(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(e,t)},e.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},e.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,o=this.session.getLine(e.row);t<o.length?(n=o.charAt(t)+o.charAt(t-1),r=new p(e.row,t-1,e.row,t+1)):(n=o.charAt(t-1)+o.charAt(t-2),r=new p(e.row,t-2,e.row,t)),this.session.replace(r,n),this.session.selection.moveToPosition(r.end)}}},e.prototype.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toLowerCase()),this.selection.setSelectionRange(e)},e.prototype.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),n=this.session.getTextRange(t);this.session.replace(t,n.toUpperCase()),this.selection.setSelectionRange(e)},e.prototype.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var n=e.getTextRange(t);if(!/^\s+$/.test(n)){c=this.$getSelectedRows();return void e.indentRows(c.first,c.last,"\t")}}var r=e.getLine(t.start.row),o=t.start,i=e.getTabSize(),s=e.documentToScreenColumn(o.row,o.column);if(this.session.getUseSoftTabs())var l=i-s%i,u=a.stringRepeat(" ",l);else{for(l=s%i;" "==r[t.start.column-1]&&l;)t.start.column--,l--;this.selection.setSelectionRange(t),u="\t"}return this.insert(u)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},e.prototype.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},e.prototype.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},e.prototype.sortLines=function(){for(var e=this.$getSelectedRows(),t=this.session,n=[],r=e.first;r<=e.last;r++)n.push(t.getLine(r));n.sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0}));var o=new p(0,0,0,0);for(r=e.first;r<=e.last;r++){var i=t.getLine(r);o.start.row=r,o.end.row=r,o.end.column=i.length,t.replace(o,n[r-e.first])}},e.prototype.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},e.prototype.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},e.prototype.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;for(var r=this.session.getLine(e);n.lastIndex<t;){var o=n.exec(r);if(o.index<=t&&o.index+o[0].length>=t)return{value:o[0],start:o.index,end:o.index+o[0].length}}return null},e.prototype.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new p(t,n-1,t,n),o=this.session.getTextRange(r);if(!isNaN(parseFloat(o))&&isFinite(o)){var i=this.getNumberAt(t,n);if(i){var a=i.value.indexOf(".")>=0?i.start+i.value.indexOf(".")+1:i.end,s=i.start+i.value.length-a,l=parseFloat(i.value);l*=Math.pow(10,s),a!==i.end&&n<a?e*=Math.pow(10,i.end-n-1):e*=Math.pow(10,i.end-n),l+=e;var u=(l/=Math.pow(10,s)).toFixed(s),c=new p(t,i.start,t,i.end);this.session.replace(c,u),this.moveCursorTo(t,Math.max(i.start+1,n+u.length-i.value.length))}}else this.toggleWord()},e.prototype.toggleWord=function(){var e=this.selection.getCursor().row,t=this.selection.getCursor().column;this.selection.selectWord();var n=this.getSelectedText(),r=this.selection.getWordRange().start.column,o=n.replace(/([a-z]+|[A-Z]+)(?=[A-Z_]|$)/g,"$1 ").split(/\s/),i=t-r-1;i<0&&(i=0);var s=0,l=0,u=this;n.match(/[A-Za-z0-9_]+/)&&o.forEach((function(t,o){l=s+t.length,i>=s&&i<=l&&(n=t,u.selection.clearSelection(),u.moveCursorTo(e,s+r),u.selection.selectTo(e,l+r)),s=l}));for(var c,d=this.$toggleWordPairs,f=0;f<d.length;f++)for(var h=d[f],p=0;p<=1;p++){var g=+!p,m=n.match(new RegExp("^\\s?_?("+a.escapeRegExp(h[p])+")\\s?$","i"));if(m)n.match(new RegExp("([_]|^|\\s)("+a.escapeRegExp(m[1])+")($|\\s)","g"))&&(c=n.replace(new RegExp(a.escapeRegExp(h[p]),"i"),(function(e){var t=h[g];return e.toUpperCase()==e?t=t.toUpperCase():e.charAt(0).toUpperCase()==e.charAt(0)&&(t=t.substr(0,0)+h[g].charAt(0).toUpperCase()+t.substr(1)),t})),this.insert(c),c="")}},e.prototype.findLinkAt=function(e,t){var n,o,i=this.session.getLine(e).split(/((?:https?|ftp):\/\/[\S]+)/),a=t;a<0&&(a=0);var s,l=0,u=0;try{for(var c=r(i),d=c.next();!d.done;d=c.next()){var f=d.value;if(u=l+f.length,a>=l&&a<=u&&f.match(/((?:https?|ftp):\/\/[\S]+)/)){s=f.replace(/[\s:.,'";}\]]+$/,"");break}l=u}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return s},e.prototype.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,"_blank"),null!=t},e.prototype.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},e.prototype.duplicateSelection=function(){var e=this.selection,t=this.session,n=e.getRange(),r=e.isBackwards();if(n.isEmpty()){var o=n.start.row;t.duplicateLines(o,o)}else{var i=r?n.start:n.end,a=t.insert(i,t.getTextRange(n),!1);n.start=i,n.end=a,e.setSelectionRange(n,r)}},e.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},e.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},e.prototype.moveText=function(e,t,n){return this.session.moveText(e,t,n)},e.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},e.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},e.prototype.$moveLines=function(e,t){var n,r,o=this.selection;if(!o.inMultiSelectMode||this.inVirtualSelectionMode){var i=o.toOrientedRange();n=this.$getSelectedRows(i),r=this.session.$moveLines(n.first,n.last,t?0:e),t&&-1==e&&(r=0),i.moveBy(r,0),o.fromOrientedRange(i)}else{var a=o.rangeList.ranges;o.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var s=0,l=0,u=a.length,c=0;c<u;c++){var d=c;a[c].moveBy(s,0);for(var f=(n=this.$getSelectedRows(a[c])).first,h=n.last;++c<u;){l&&a[c].moveBy(l,0);var p=this.$getSelectedRows(a[c]);if(t&&p.first!=h)break;if(!t&&p.first>h+1)break;h=p.last}for(c--,s=this.session.$moveLines(f,h,t?0:e),t&&-1==e&&(d=c+1);d<=c;)a[d].moveBy(s,0),d++;t||(s=0),l+=s}o.fromOrientedRange(o.ranges[0]),o.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},e.prototype.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},e.prototype.onCompositionStart=function(e){this.renderer.showComposition(e)},e.prototype.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},e.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},e.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},e.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},e.prototype.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},e.prototype.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},e.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},e.prototype.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,o=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection((function(){this.moveCursorBy(o,0)})):!1===t&&(this.selection.moveCursorBy(o,0),this.selection.clearSelection());var i=n.scrollTop;n.scrollBy(0,o*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(i)},e.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},e.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},e.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},e.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},e.prototype.scrollPageDown=function(){this.$moveByPage(1)},e.prototype.scrollPageUp=function(){this.$moveByPage(-1)},e.prototype.scrollToRow=function(e){this.renderer.scrollToRow(e)},e.prototype.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},e.prototype.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},e.prototype.getCursorPosition=function(){return this.selection.getCursor()},e.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},e.prototype.getSelectionRange=function(){return this.selection.getRange()},e.prototype.selectAll=function(){this.selection.selectAll()},e.prototype.clearSelection=function(){this.selection.clearSelection()},e.prototype.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},e.prototype.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},e.prototype.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new b(this.session,n.row,n.column),o=r.getCurrentToken(),i=0;o&&-1!==o.type.indexOf("tag-name")&&(o=r.stepBackward());var a=o||r.stepForward();if(a){var s,l,u=!1,c={},d=n.column-a.start,f={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(a.value.match(/[{}()\[\]]/g)){for(;d<a.value.length&&!u;d++)if(f[a.value[d]])switch(l=f[a.value[d]]+"."+a.type.replace("rparen","lparen"),isNaN(c[l])&&(c[l]=0),a.value[d]){case"(":case"[":case"{":c[l]++;break;case")":case"]":case"}":c[l]--,-1===c[l]&&(s="bracket",u=!0)}}else-1!==a.type.indexOf("tag-name")&&(isNaN(c[a.value])&&(c[a.value]=0),"<"===o.value&&i>1?c[a.value]++:"</"===o.value&&c[a.value]--,-1===c[a.value]&&(s="tag",u=!0));u||(o=a,i++,a=r.stepForward(),d=0)}while(a&&!u);if(s){var h,g;if("bracket"===s)(h=this.session.getBracketRange(n))||(g=(h=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()+d-1,r.getCurrentTokenRow(),r.getCurrentTokenColumn()+d-1)).start,(t||g.row===n.row&&Math.abs(g.column-n.column)<2)&&(h=this.session.getBracketRange(g)));else if("tag"===s){if(!a||-1===a.type.indexOf("tag-name"))return;if(0===(h=new p(r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2,r.getCurrentTokenRow(),r.getCurrentTokenColumn()-2)).compare(n.row,n.column)){var m=this.session.getMatchingTags(n);m&&(m.openTag.contains(n.row,n.column)?g=(h=m.closeTag).start:(h=m.openTag,g=m.closeTag.start.row===n.row&&m.closeTag.start.column===n.column?h.end:h.start))}g=g||h.start}(g=h&&h.cursor||g)&&(e?h&&t?this.selection.setRange(h):h&&h.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},e.prototype.gotoLine=function(e,t,n){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,n)},e.prototype.navigateTo=function(e,t){this.selection.moveTo(e,t)},e.prototype.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},e.prototype.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},e.prototype.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},e.prototype.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},e.prototype.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},e.prototype.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},e.prototype.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},e.prototype.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},e.prototype.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},e.prototype.replace=function(e,t){t&&this.$search.set(t);var n=this.$search.find(this.session),r=0;return n?(this.$tryReplace(n,e)&&(r=1),this.selection.setSelectionRange(n),this.renderer.scrollSelectionIntoView(n.start,n.end),r):r},e.prototype.replaceAll=function(e,t){t&&this.$search.set(t);var n=this.$search.findAll(this.session),r=0;if(!n.length)return r;var o=this.getSelectionRange();this.selection.moveTo(0,0);for(var i=n.length-1;i>=0;--i)this.$tryReplace(n[i],e)&&r++;return this.selection.setSelectionRange(o),r},e.prototype.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return null!==(t=this.$search.replace(n,t))?(e.end=this.session.replace(e,t),e):null},e.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},e.prototype.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&o.mixin(t,e);var r=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(r)||this.$search.$options.needle)||(r=this.session.getWordRange(r.start.row,r.start.column),e=this.session.getTextRange(r)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:r});var i=this.$search.find(this.session);return t.preventScroll?i:i?(this.revealRange(i,n),i):(t.backwards?r.start=r.end:r.end=r.start,void this.selection.setRange(r))},e.prototype.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},e.prototype.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},e.prototype.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},e.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},e.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach((function(e){e.destroy()})),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},e.prototype.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var o=this.$scrollAnchor;o.style.cssText="position:absolute",this.container.insertBefore(o,this.container.firstChild);var i=this.on("changeSelection",(function(){r=!0})),a=this.renderer.on("beforeRender",(function(){r&&(t=n.renderer.container.getBoundingClientRect())})),s=this.renderer.on("afterRender",(function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,i=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=i.top-a.offset;null!=(r=i.top>=0&&s+t.top<0||!(i.top<a.height&&i.top+t.top+a.lineHeight>window.innerHeight)&&null)&&(o.style.top=s+"px",o.style.left=i.left+"px",o.style.height=a.lineHeight+"px",o.scrollIntoView(r)),r=t=null}}));this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",i),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},e.prototype.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},e.prototype.prompt=function(e,t,n){var r=this;y.loadModule("ace/ext/prompt",(function(o){o.prompt(r,e,t,n)}))},e}();k.$uid=0,k.prototype.curOp=null,k.prototype.prevOp={},k.prototype.$mergeableCommands=["backspace","del","insertstring"],k.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],o.implement(k.prototype,g),y.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?C.attach(this):C.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?C.attach(this):C.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),i.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),i.addCssClass(this.container,"ace_hasPlaceholder");var t=i.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(e){var t,n={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(e){e.blur(),e.renderer.scroller.focus()},readOnly:!0},r=function(e){if(e.target==this.renderer.scroller&&e.keyCode===E.enter){e.preventDefault();var t=this.getCursorPosition().row;this.isRowVisible(t)||this.scrollToLine(t,!0,!0),this.focus()}};e?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(s.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",S("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",S("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",r.bind(this)),this.commands.addCommand(n),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",S("editor")),this.renderer.$gutter.setAttribute("aria-label",S("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),t||(t=new x(this)),t.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",r.bind(this)),this.commands.removeCommand(n),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),t&&t.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var C={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=k})),ace.define("ace/undomanager",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=function(){function e(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return e.prototype.addSession=function(e){this.$session=e},e.prototype.add=function(e,t,n){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!this.lastDeltas){this.lastDeltas=[];var r=this.$undoStack.length;r>this.$undoDepth-1&&this.$undoStack.splice(0,r-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev}"remove"!=e.action&&"insert"!=e.action||(this.$lastDelta=e),this.lastDeltas.push(e)}},e.prototype.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},e.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},e.prototype.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=n.length;r--;){var o=n[r][0];if(o.id<=e)break;o.id<t&&(o.ignore=!0)}this.lastDeltas=null},e.prototype.getSelection=function(e,t){for(var n=this.selections,r=n.length;r--;){var o=n[r];if(o.rev<e)return t&&(o=n[r+1]),o}},e.prototype.getRevision=function(){return this.$rev},e.prototype.getDeltas=function(e,t){null==t&&(t=this.$rev+1);for(var n=this.$undoStack,r=null,o=0,i=n.length;i--;){var a=n[i][0];if(a.id<t&&!r&&(r=i+1),a.id<=e){o=i+1;break}}return n.slice(o,r)},e.prototype.getChangedRanges=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.getChangedLines=function(e,t){null==t&&(t=this.$rev+1)},e.prototype.undo=function(e,t){this.lastDeltas=null;var n=this.$undoStack;if(function(e,t){for(var n=t;n--;){var r=e[n];if(r&&!r[0].ignore){for(;n<t-1;){var o=c(e[n],e[n+1]);e[n]=o[0],e[n+1]=o[1],n++}return!0}}}(n,n.length)){e||(e=this.$session),this.$redoStackBaseRev!==this.$rev&&this.$redoStack.length&&(this.$redoStack=[]),this.$fromUndo=!0;var r=n.pop(),o=null;return r&&(o=e.undoChanges(r,t),this.$redoStack.push(r),this.$syncRev()),this.$fromUndo=!1,o}},e.prototype.redo=function(e,t){if(this.lastDeltas=null,e||(e=this.$session),this.$fromUndo=!0,this.$redoStackBaseRev!=this.$rev){var n=this.getDeltas(this.$redoStackBaseRev,this.$rev+1);!function(e,t){for(var n=0;n<t.length;n++)for(var r=t[n],o=0;o<r.length;o++)g(e,r[o])}(this.$redoStack,n),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach((function(e){e[0].id=++this.$maxRev}),this)}var r=this.$redoStack.pop(),o=null;return r&&(o=e.redoChanges(r,t),this.$undoStack.push(r),this.$syncRev()),this.$fromUndo=!1,o},e.prototype.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],n=t&&t[0].id||0;this.$redoStackBaseRev=n,this.$rev=n},e.prototype.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},e.prototype.canUndo=function(){return this.$undoStack.length>0},e.prototype.canRedo=function(){return this.$redoStack.length>0},e.prototype.bookmark=function(e){null==e&&(e=this.$rev),this.mark=e},e.prototype.isAtBookmark=function(){return this.$rev===this.mark},e.prototype.toJSON=function(){},e.prototype.fromJSON=function(){},e.prototype.$prettyPrint=function(e){return e?s(e):s(this.$undoStack)+"\n---\n"+s(this.$redoStack)},e}();r.prototype.hasUndo=r.prototype.canUndo,r.prototype.hasRedo=r.prototype.canRedo,r.prototype.isClean=r.prototype.isAtBookmark,r.prototype.markClean=r.prototype.bookmark;var o=e("./range").Range,i=o.comparePoints;o.comparePoints;function a(e){return{row:e.row,column:e.column}}function s(e){if(e=e||this,Array.isArray(e))return e.map(s).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function u(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(i(t.start,e.end)>=0)f(t,e,-1);else{if(!(i(t.start,e.start)<=0))return null;f(e,t,1)}else if(n&&!r)if(i(t.start,e.end)>=0)f(t,e,-1);else{if(!(i(t.end,e.start)<=0))return null;f(e,t,-1)}else if(!n&&r)if(i(t.start,e.start)>=0)f(t,e,1);else{if(!(i(t.start,e.start)<=0))return null;f(e,t,1)}else if(!n&&!r)if(i(t.start,e.start)>=0)f(t,e,1);else{if(!(i(t.end,e.start)<=0))return null;f(e,t,-1)}return[t,e]}function c(e,t){for(var n=e.length;n--;)for(var r=0;r<t.length;r++)if(!u(e[n],t[r])){for(;n<e.length;){for(;r--;)u(t[r],e[n]);r=t.length,n++}return[e,t]}return e.selectionBefore=t.selectionBefore=e.selectionAfter=t.selectionAfter=null,[t,e]}function d(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)i(e.start,t.start)<0?f(t,e,1):f(e,t,1);else if(n&&!r)i(e.start,t.end)>=0?f(e,t,-1):(i(e.start,t.start)<=0||f(e,o.fromPoints(t.start,e.start),-1),f(t,e,1));else if(!n&&r)i(t.start,e.end)>=0?f(t,e,-1):(i(t.start,e.start)<=0||f(t,o.fromPoints(e.start,t.start),-1),f(e,t,1));else if(!n&&!r)if(i(t.start,e.end)>=0)f(t,e,-1);else{var a,s;if(!(i(t.end,e.start)<=0))return i(e.start,t.start)<0&&(a=e,e=p(e,t.start)),i(e.end,t.end)>0&&(s=p(e,t.end)),h(t.end,e.start,e.end,-1),s&&!a&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,a,s].filter(Boolean);f(e,t,-1)}return[t,e]}function f(e,t,n){h(e.start,t.start,t.end,n),h(e.end,t.start,t.end,n)}function h(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function p(e,t){var n=e.lines,r=e.end;e.end=a(t);var o=e.end.row-e.start.row,i=n.splice(o,n.length),s=o?t.column:t.column-e.start.column;return n.push(i[0].substring(0,s)),i[0]=i[0].substr(s),{start:a(t),end:r,lines:i,action:e.action}}function g(e,t){t=function(e){return{start:a(e.start),end:a(e.end),action:e.action,lines:e.lines.slice()}}(t);for(var n=e.length;n--;){for(var r=e[n],o=0;o<r.length;o++){var i=d(r[o],t);t=i[0],2!=i.length&&(i[2]?(r.splice(o+1,1,i[1],i[2]),o++):i[1]||(r.splice(o,1),o--))}r.length||e.splice(n,1)}return e}t.UndoManager=r})),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=function(){function e(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0}return e.prototype.moveContainer=function(e){r.translate(this.element,0,-e.firstRowScreen*e.lineHeight%this.canvasHeight-e.offset*this.$offsetCoefficient)},e.prototype.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},e.prototype.computeLineTop=function(e,t,n){var r=t.firstRowScreen*t.lineHeight,o=Math.floor(r/this.canvasHeight);return n.documentToScreenRow(e,0)*t.lineHeight-o*this.canvasHeight},e.prototype.computeLineHeight=function(e,t,n){return t.lineHeight*n.getRowLineCount(e)},e.prototype.getLength=function(){return this.cells.length},e.prototype.get=function(e){return this.cells[e]},e.prototype.shift=function(){this.$cacheCell(this.cells.shift())},e.prototype.pop=function(){this.$cacheCell(this.cells.pop())},e.prototype.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.appendChild(t)}else this.cells.push(e),this.element.appendChild(e.element)},e.prototype.unshift=function(e){if(Array.isArray(e)){this.cells.unshift.apply(this.cells,e);for(var t=r.createFragment(this.element),n=0;n<e.length;n++)t.appendChild(e[n].element);this.element.firstChild?this.element.insertBefore(t,this.element.firstChild):this.element.appendChild(t)}else this.cells.unshift(e),this.element.insertAdjacentElement("afterbegin",e.element)},e.prototype.last=function(){return this.cells.length?this.cells[this.cells.length-1]:null},e.prototype.$cacheCell=function(e){e&&(e.element.remove(),this.cellCache.push(e))},e.prototype.createCell=function(e,t,n,o){var i=this.cellCache.pop();if(!i){var a=r.createElement("div");o&&o(a),this.element.appendChild(a),i={element:a,text:"",row:e}}return i.row=e,i},e}();t.Lines=o})),ace.define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/layer/lines","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=e("../lib/oop"),i=e("../lib/lang"),a=e("../lib/event_emitter").EventEmitter,s=e("./lines").Lines,l=e("../config").nls,u=function(){function e(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$lines=new s(this.element),this.$lines.$offsetCoefficient=1}return e.prototype.setSession=function(e){this.session&&this.session.off("change",this.$updateAnnotations),this.session=e,e&&e.on("change",this.$updateAnnotations)},e.prototype.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},e.prototype.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var n=e[t],r=n.row,o=this.$annotations[r];o||(o=this.$annotations[r]={text:[],type:[]});var a=n.text,s=n.type;a=a?i.escapeHTML(a):n.html||"",-1===o.text.indexOf(a)&&(o.text.push(a),o.type.push(s));var l=n.className;l?o.className=l:"error"==s?o.className=" ace_error":"warning"==s&&" ace_error"!=o.className?o.className=" ace_warning":"info"!=s||o.className||(o.className=" ace_info")}},e.prototype.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,n=e.end.row-t;if(0===n);else if("remove"==e.action)this.$annotations.splice(t,n+1,null);else{var r=new Array(n+1);r.unshift(t,1),this.$annotations.splice.apply(this.$annotations,r)}}},e.prototype.update=function(e){this.config=e;var t=this.session,n=e.firstRow,r=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1);this.oldLastRow=r,this.config=e,this.$lines.moveContainer(e),this.$updateCursorRow();for(var o=t.getNextFoldLine(n),i=o?o.start.row:1/0,a=null,s=-1,l=n;;){if(l>i&&(l=o.end.row+1,i=(o=t.getNextFoldLine(l,o))?o.start.row:1/0),l>r){for(;this.$lines.getLength()>s+1;)this.$lines.pop();break}(a=this.$lines.get(++s))?a.row=l:(a=this.$lines.createCell(l,e,this.session,c),this.$lines.push(a)),this.$renderCell(a,e,o,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},e.prototype.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,o=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(o=t.getLength()+r-1);var i=n?n.getWidth(t,o,e):o.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();(i+=a.left+a.right)===this.gutterWidth||isNaN(i)||(this.gutterWidth=i,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",i))},e.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},e.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n<t.length;n++){var r=t[n];if(r.row>=this.$cursorRow){if(r.row>this.$cursorRow){var o=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&o&&o.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(r>n)for(o=this.session.getFoldedRowCount(n+1,r);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLines(e,e.firstRow,t.firstRow-1)),n>r&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},e.prototype.$renderLines=function(e,t,n){for(var r=[],o=t,i=this.session.getNextFoldLine(o),a=i?i.start.row:1/0;o>a&&(o=i.end.row+1,a=(i=this.session.getNextFoldLine(o,i))?i.start.row:1/0),!(o>n);){var s=this.$lines.createCell(o,e,this.session,c);this.$renderCell(s,e,i,o),r.push(s),o++}return r},e.prototype.$renderCell=function(e,t,n,o){var i=e.element,a=this.session,s=i.childNodes[0],u=i.childNodes[1],c=i.childNodes[2],d=c.firstChild,f=a.$firstLineNumber,h=a.$breakpoints,p=a.$decorations,g=a.gutterRenderer||this.$renderer,m=this.$showFoldWidgets&&a.foldWidgets,v=n?n.start.row:Number.MAX_VALUE,y=t.lineHeight+"px",b=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",w=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",x=(g?g.getText(a,o):o+f).toString();if(this.$highlightGutterLine&&(o==this.$cursorRow||n&&o<this.$cursorRow&&o>=v&&this.$cursorRow<=n.end.row)&&(b+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),h[o]&&(b+=h[o]),p[o]&&(b+=p[o]),this.$annotations[o]&&o!==v&&(b+=this.$annotations[o].className),m){var S=m[o];null==S&&(S=m[o]=a.getFoldWidget(o))}if(S){var _="ace_fold-widget ace_"+S,E="start"==S&&o==v&&o<n.end.row;if(E){_+=" ace_closed";for(var k="",C=!1,A=o+1;A<=n.end.row;A++)if(this.$annotations[A]){if(" ace_error"===this.$annotations[A].className){C=!0,k=" ace_error_fold";break}" ace_warning"!==this.$annotations[A].className||(C=!0,k=" ace_warning_fold")}b+=k}else _+=" ace_open";u.className!=_&&(u.className=_),r.setStyle(u.style,"height",y),r.setStyle(u.style,"display","inline-block"),u.setAttribute("role","button"),u.setAttribute("tabindex","-1");var T=a.getFoldWidgetRange(o);T?u.setAttribute("aria-label",l("Toggle code folding, rows $0 through $1",[T.start.row+1,T.end.row+1])):n?u.setAttribute("aria-label",l("Toggle code folding, rows $0 through $1",[n.start.row+1,n.end.row+1])):u.setAttribute("aria-label",l("Toggle code folding, row $0",[o+1])),E?(u.setAttribute("aria-expanded","false"),u.setAttribute("title",l("Unfold code"))):(u.setAttribute("aria-expanded","true"),u.setAttribute("title",l("Fold code")))}else u&&(r.setStyle(u.style,"display","none"),u.setAttribute("tabindex","0"),u.removeAttribute("role"),u.removeAttribute("aria-label"));return C&&this.$showFoldedAnnotations?(c.className="ace_gutter_annotation",d.className=w,d.className+=k,r.setStyle(d.style,"height",y),r.setStyle(c.style,"display","block"),r.setStyle(c.style,"height",y),c.setAttribute("aria-label",l("Read annotations row $0",[x])),c.setAttribute("tabindex","-1"),c.setAttribute("role","button")):this.$annotations[o]?(c.className="ace_gutter_annotation",d.className=w,this.$useSvgGutterIcons?d.className+=this.$annotations[o].className:i.classList.add(this.$annotations[o].className.replace(" ","")),r.setStyle(d.style,"height",y),r.setStyle(c.style,"display","block"),r.setStyle(c.style,"height",y),c.setAttribute("aria-label",l("Read annotations row $0",[x])),c.setAttribute("tabindex","-1"),c.setAttribute("role","button")):(r.setStyle(c.style,"display","none"),c.removeAttribute("aria-label"),c.removeAttribute("role"),c.setAttribute("tabindex","0")),x!==s.data&&(s.data=x),i.className!=b&&(i.className=b),r.setStyle(e.element.style,"height",this.$lines.computeLineHeight(o,t,a)+"px"),r.setStyle(e.element.style,"top",this.$lines.computeLineTop(o,t,a)+"px"),e.text=x,"none"===c.style.display&&"none"===u.style.display?e.element.setAttribute("aria-hidden",!0):e.element.setAttribute("aria-hidden",!1),e},e.prototype.setHighlightGutterLine=function(e){this.$highlightGutterLine=e},e.prototype.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return 0},getText:function(){return""}}},e.prototype.getShowLineNumbers=function(){return this.$showLineNumbers},e.prototype.setShowFoldWidgets=function(e){e?r.addCssClass(this.element,"ace_folding-enabled"):r.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},e.prototype.getShowFoldWidgets=function(){return this.$showFoldWidgets},e.prototype.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=r.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=(parseInt(e.borderLeftWidth)||0)+(parseInt(e.paddingLeft)||0)+1,this.$padding.right=(parseInt(e.borderRightWidth)||0)+(parseInt(e.paddingRight)||0),this.$padding},e.prototype.getRegion=function(e){var t=this.$padding||this.$computePadding(),n=this.element.getBoundingClientRect();return e.x<t.left+n.left?"markers":this.$showFoldWidgets&&e.x>n.right-t.right?"foldWidgets":void 0},e}();function c(e){var t=document.createTextNode("");e.appendChild(t);var n=r.createElement("span");e.appendChild(n);var o=r.createElement("span");e.appendChild(o);var i=r.createElement("span");return o.appendChild(i),e}u.prototype.$fixedWidth=!1,u.prototype.$highlightGutterLine=!0,u.prototype.$renderer="",u.prototype.$showLineNumbers=!0,u.prototype.$showFoldWidgets=!0,o.implement(u.prototype,a),t.Gutter=u})),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../range").Range,o=e("../lib/dom"),i=function(){function e(e){this.element=o.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}return e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setMarkers=function(e){this.markers=e},e.prototype.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},e.prototype.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var o=r.range.clipRows(e.firstRow,e.lastRow);if(!o.isEmpty())if(o=o.toScreenRange(this.session),r.renderer){var i=this.$getTop(o.start.row,e),a=this.$padding+o.start.column*e.characterWidth;r.renderer(t,o,a,i,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,o,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,o,r.clazz,e):o.isMultiLine()?"text"==r.type?this.drawTextMarker(t,o,r.clazz,e):this.drawMultiLineMarker(t,o,r.clazz,e):this.drawSingleLineMarker(t,o,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.i<this.element.childElementCount;)this.element.removeChild(this.element.lastChild)}},e.prototype.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},e.prototype.drawTextMarker=function(e,t,n,o,i){for(var a=this.session,s=t.start.row,l=t.end.row,u=s,c=0,d=0,f=a.getScreenLastRowColumn(u),h=new r(u,t.start.column,u,d);u<=l;u++)h.start.row=h.end.row=u,h.start.column=u==s?t.start.column:a.getRowWrapIndent(u),h.end.column=f,c=d,d=f,f=u+1<l?a.getScreenLastRowColumn(u+1):u==l?0:t.end.column,this.drawSingleLineMarker(e,h,n+(u==s?" ace_start":"")+" ace_br"+((u==s||u==s+1&&t.start.column?1:0)|(c<d?2:0)|(d>f?4:0)|(u==l?8:0)),o,u==l?0:1,i)},e.prototype.drawMultiLineMarker=function(e,t,n,r,o){var i=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=i+t.start.column*r.characterWidth;(o=o||"",this.session.$bidiHandler.isBidiRow(t.start.row))?((u=t.clone()).end.row=u.start.row,u.end.column=this.session.getLine(u.start.row).length,this.drawBidiSingleLineMarker(e,u,n+" ace_br1 ace_start",r,null,o)):this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(o||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var u;(u=t.clone()).start.row=u.end.row,u.start.column=0,this.drawBidiSingleLineMarker(e,u,n+" ace_br12",r,null,o)}else{s=this.$getTop(t.end.row,r);var c=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+c+"px;top:"+s+"px;left:"+i+"px;"+(o||""))}if(!((a=(t.end.row-t.start.row-1)*r.lineHeight)<=0)){s=this.$getTop(t.start.row+1,r);var d=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(d?" ace_br"+d:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+i+"px;"+(o||""))}},e.prototype.drawSingleLineMarker=function(e,t,n,r,o,i){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,o,i);var a=r.lineHeight,s=(t.end.column+(o||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),u=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+u+"px;"+(i||""))},e.prototype.drawBidiSingleLineMarker=function(e,t,n,r,o,i){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach((function(e){this.elt(n,"height:"+a+"px;width:"+(e.width+(o||0))+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(i||""))}),this)},e.prototype.drawFullLineMarker=function(e,t,n,r,o){var i=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-i),this.elt(n,"height:"+a+"px;top:"+i+"px;left:0;right:0;"+(o||""))},e.prototype.drawScreenLineMarker=function(e,t,n,r,o){var i=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+i+"px;left:0;right:0;"+(o||""))},e}();i.prototype.$padding=0,t.Marker=i})),ace.define("ace/layer/text_util",["require","exports","module"],(function(e,t,n){var r=new Set(["text","rparen","lparen"]);t.isTextToken=function(e){return r.has(e)}})),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../lib/dom"),i=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=e("../config").nls,u=e("./text_util").isTextToken,c=function(){function e(e){this.dom=o,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)}return e.prototype.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},e.prototype.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},e.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},e.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},e.prototype.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},e.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},e.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},e.prototype.setSession=function(e){this.session=e,e&&this.$computeTabString()},e.prototype.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},e.prototype.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},e.prototype.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},e.prototype.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;n<e+1;n++){if(this.showTabs)(r=this.dom.createElement("span")).className="ace_invisible ace_invisible_tab",r.textContent=i.stringRepeat(this.TAB_CHAR,n),t.push(r);else t.push(this.dom.createTextNode(i.stringRepeat(" ",n),this.element))}if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var r,o="ace_indent-guide",a=this.showSpaces?" ace_invisible ace_invisible_space":"",s=this.showSpaces?i.stringRepeat(this.SPACE_CHAR,this.tabSize):i.stringRepeat(" ",this.tabSize),l=this.showTabs?" ace_invisible ace_invisible_tab":"",u=this.showTabs?i.stringRepeat(this.TAB_CHAR,this.tabSize):s;(r=this.dom.createElement("span")).className=o+a,r.textContent=s,this.$tabStrings[" "]=r,(r=this.dom.createElement("span")).className=o+l,r.textContent=u,this.$tabStrings["\t"]=r}},e.prototype.updateLines=function(e,t,n){if(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)return this.update(e);this.config=e;for(var r=Math.max(t,e.firstRow),o=Math.min(n,e.lastRow),i=this.element.childNodes,a=0,s=e.firstRow;s<r;s++){if(l=this.session.getFoldLine(s)){if(l.containsRow(r)){r=l.start.row;break}s=l.end.row}a++}for(var l,u=!1,c=(s=r,(l=this.session.getNextFoldLine(s))?l.start.row:1/0);s>c&&(s=l.end.row+1,c=(l=this.session.getNextFoldLine(s,l))?l.start.row:1/0),!(s>o);){var d=i[a++];if(d){this.dom.removeChildren(d),this.$renderLine(d,s,s==c&&l),u&&(d.style.top=this.$lines.computeLineTop(s,e,this.session)+"px");var f=e.lineHeight*this.session.getRowLength(s)+"px";d.style.height!=f&&(u=!0,d.style.height=f)}s++}if(u)for(;a<this.$lines.cells.length;){var h=this.$lines.cells[a++];h.element.style.top=this.$lines.computeLineTop(h.row,e,this.session)+"px"}},e.prototype.scrollLines=function(e){var t=this.config;if(this.config=e,this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=e.lastRow,r=t?t.lastRow:-1;if(!t||r<e.firstRow)return this.update(e);if(n<t.firstRow)return this.update(e);if(!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);if(t.firstRow<e.firstRow)for(var o=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);o>0;o--)this.$lines.shift();if(t.lastRow>e.lastRow)for(o=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);o>0;o--)this.$lines.pop();e.firstRow<t.firstRow&&this.$lines.unshift(this.$renderLinesFragment(e,e.firstRow,t.firstRow-1)),e.lastRow>t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},e.prototype.$renderLinesFragment=function(e,t,n){for(var r=[],i=t,a=this.session.getNextFoldLine(i),s=a?a.start.row:1/0;i>s&&(i=a.end.row+1,s=(a=this.session.getNextFoldLine(i,a))?a.start.row:1/0),!(i>n);){var l=this.$lines.createCell(i,e,this.session),u=l.element;this.dom.removeChildren(u),o.setStyle(u.style,"height",this.$lines.computeLineHeight(i,e,this.session)+"px"),o.setStyle(u.style,"top",this.$lines.computeLineTop(i,e,this.session)+"px"),this.$renderLine(u,i,i==s&&a),this.$useLineGroups()?u.className="ace_line_group":u.className="ace_line",r.push(l),i++}return r},e.prototype.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,n=e.lastRow,r=this.$lines;r.getLength();)r.pop();r.push(this.$renderLinesFragment(e,t,n))},e.prototype.$renderToken=function(e,t,n,r){for(var o,a=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,c=this.dom.createFragment(this.element),d=0;o=s.exec(r);){var f=o[1],h=o[2],p=o[3],g=o[4],m=o[5];if(a.showSpaces||!h){var v=d!=o.index?r.slice(d,o.index):"";if(d=o.index+o[0].length,v&&c.appendChild(this.dom.createTextNode(v,this.element)),f){var y=a.session.getScreenTabSize(t+o.index);c.appendChild(a.$tabStrings[y].cloneNode(!0)),t+=y-1}else if(h){if(a.showSpaces)(w=this.dom.createElement("span")).className="ace_invisible ace_invisible_space",w.textContent=i.stringRepeat(a.SPACE_CHAR,h.length),c.appendChild(w);else c.appendChild(this.dom.createTextNode(h,this.element))}else if(p){(w=this.dom.createElement("span")).className="ace_invisible ace_invisible_space ace_invalid",w.textContent=i.stringRepeat(a.SPACE_CHAR,p.length),c.appendChild(w)}else if(g){t+=1,(w=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",w.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",w.textContent=a.showSpaces?a.SPACE_CHAR:g,c.appendChild(w)}else if(m){t+=1,(w=this.dom.createElement("span")).style.width=2*a.config.characterWidth+"px",w.className="ace_cjk",w.textContent=m,c.appendChild(w)}}}if(c.appendChild(this.dom.createTextNode(d?r.slice(d):r,this.element)),u(n.type))e.appendChild(c);else{var b="ace_"+n.type.replace(/\./g," ace_"),w=this.dom.createElement("span");"fold"==n.type&&(w.style.width=n.value.length*this.config.characterWidth+"px",w.setAttribute("title",l("Unfold code"))),w.className=b,w.appendChild(c),e.appendChild(w)}return t+r.length},e.prototype.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){for(var o=(r-=r%this.tabSize)/this.tabSize,i=0;i<o;i++)e.appendChild(this.$tabStrings[" "].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(r)}if("\t"==t[0]){for(i=0;i<r;i++)e.appendChild(this.$tabStrings["\t"].cloneNode(!0));return this.$highlightIndentGuide(),t.substr(r)}return this.$highlightIndentGuide(),t},e.prototype.$highlightIndentGuide=function(){if(this.$highlightIndentGuides&&this.displayIndentGuides){this.$highlightIndentGuideMarker={indentLevel:void 0,start:void 0,end:void 0,dir:void 0};var e=this.session.doc.$lines;if(e){var t=this.session.selection.getCursor(),n=/^\s*/.exec(this.session.doc.getLine(t.row))[0].length,r=Math.floor(n/this.tabSize);if(this.$highlightIndentGuideMarker={indentLevel:r,start:t.row},this.session.$bracketHighlight)for(var o=this.session.$bracketHighlight.ranges,i=0;i<o.length;i++)if(t.row!==o[i].start.row){this.$highlightIndentGuideMarker.end=o[i].start.row,t.row>o[i].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length){this.$highlightIndentGuideMarker.dir=1;for(i=t.row+1;i<e.length;i++){var a=e[i],s=/^\s*/.exec(a)[0].length;if(""!==a&&(this.$highlightIndentGuideMarker.end=i,s<=n))break}}this.$renderHighlightIndentGuide()}}},e.prototype.$clearActiveIndentGuide=function(){for(var e=this.$lines.cells,t=0;t<e.length;t++){var n=e[t].element.childNodes;if(n.length>0)for(var r=0;r<n.length;r++)if(n[r].classList&&n[r].classList.contains("ace_indent-guide-active")){n[r].classList.remove("ace_indent-guide-active");break}}},e.prototype.$setIndentGuideActive=function(e,t){if(""!==this.session.doc.getLine(e.row)){var n=e.element.childNodes;if(n){var r=n[t-1];r&&r.classList&&r.classList.contains("ace_indent-guide")&&r.classList.add("ace_indent-guide-active")}}},e.prototype.$renderHighlightIndentGuide=function(){if(this.$lines){var e=this.$lines.cells;this.$clearActiveIndentGuide();var t=this.$highlightIndentGuideMarker.indentLevel;if(0!==t)if(1===this.$highlightIndentGuideMarker.dir)for(var n=0;n<e.length;n++){var r=e[n];if(this.$highlightIndentGuideMarker.end&&r.row>=this.$highlightIndentGuideMarker.start+1){if(r.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(r,t)}}else for(n=e.length-1;n>=0;n--){r=e[n];if(this.$highlightIndentGuideMarker.end&&r.row<this.$highlightIndentGuideMarker.start){if(r.row<=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(r,t)}}}},e.prototype.$createLineElement=function(e){var t=this.dom.createElement("div");return t.className="ace_line",t.style.height=this.config.lineHeight+"px",t},e.prototype.$renderWrappedLine=function(e,t,n){var r=0,o=0,a=n[0],s=0,l=this.$createLineElement();e.appendChild(l);for(var u=0;u<t.length;u++){var c=t[u],d=c.value;if(0==u&&this.displayIndentGuides){if(r=d.length,!(d=this.renderIndentGuide(l,d,a)))continue;r-=d.length}if(r+d.length<a)s=this.$renderToken(l,s,c,d),r+=d.length;else{for(;r+d.length>=a;)s=this.$renderToken(l,s,c,d.substring(0,a-r)),d=d.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(i.stringRepeat(" ",n.indent),this.element)),s=0,a=n[++o]||Number.MAX_VALUE;0!=d.length&&(r+=d.length,s=this.$renderToken(l,s,c,d))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},e.prototype.$renderSimpleLine=function(e,t){for(var n=0,r=0;r<t.length;r++){var o=t[r],i=o.value;if(0!=r||!this.displayIndentGuides||(i=this.renderIndentGuide(e,i))){if(n+i.length>this.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,o,i);n=this.$renderToken(e,n,o,i)}}},e.prototype.$renderOverflowMessage=function(e,t,n,r,o){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=o?"<hide>":"<click to see more...>",e.appendChild(i)},e.prototype.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var o=e;if(r.length){var i=this.session.getRowSplitData(t);if(i&&i.length){this.$renderWrappedLine(e,r,i);o=e.lastChild}else{o=e;this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,r)}}else this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o));if(this.showEOL&&o){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(a)}},e.prototype.$getFoldLineTokens=function(e,t){var n=this.session,r=[];var o=n.getTokens(e);return t.walk((function(e,t,i,a,s){null!=e?r.push({type:"fold",value:e}):(s&&(o=n.getTokens(t)),o.length&&function(e,t,n){for(var o=0,i=0;i+e[o].value.length<t;)if(i+=e[o].value.length,++o==e.length)return;for(i!=t&&((a=e[o].value.substring(t-i)).length>n-t&&(a=a.substring(0,n-t)),r.push({type:e[o].type,value:a}),i=t+a.length,o+=1);i<n&&o<e.length;){var a;(a=e[o].value).length+i>n?r.push({type:e[o].type,value:a.substring(0,n-i)}):r.push(e[o]),i+=a.length,o+=1}}(o,a,i))}),t.end.row,this.session.getLine(t.end.row).length),r},e.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},e}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,r.implement(c.prototype,s),t.Text=c})),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=function(){function e(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return e.prototype.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},e.prototype.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},e.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,r.removeCssClass(this.element,"ace_animate-blinking")},e.prototype.setPadding=function(e){this.$padding=e},e.prototype.setSession=function(e){this.session=e},e.prototype.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},e.prototype.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},e.prototype.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},e.prototype.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},e.prototype.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},e.prototype.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},e.prototype.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,r.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout((function(){e(!1)}),.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval((function(){e(!0),t()}),this.blinkInterval),t()}else this.$stopCssAnimation()},e.prototype.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),top:(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},e.prototype.isCursorInView=function(e,t){return e.top>=0&&e.top<t.maxHeight},e.prototype.update=function(e){this.config=e;var t=this.session.$selectionMarkers,n=0,o=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);n=0;for(var i=t.length;n<i;n++){var a=this.getPixelPosition(t[n].cursor,!0);if(!((a.top>e.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[o++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}for(;this.cursors.length>o;)this.removeCursor();var u=this.session.getOverwrite();this.$setOverwrite(u),this.$pixelPos=a,this.restartTimer()},e.prototype.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},e.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},e}();o.prototype.$padding=0,o.prototype.drawCursor=null,t.Cursor=o})),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=e("./lib/oop"),a=e("./lib/dom"),s=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter,u=32768,c=function(){function e(e,t){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+t,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();i.implement(c.prototype,l);var d=function(e){function t(t,n){var r=e.call(this,t,"-v")||this;return r.scrollTop=0,r.scrollHeight=0,n.$scrollbarWidth=r.width=a.scrollbarWidth(t.ownerDocument),r.inner.style.width=r.element.style.width=(r.width||15)+5+"px",r.$minWidth=0,r}return o(t,e),t.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.element.style.height=e+"px"},t.prototype.setScrollHeight=function(e){this.scrollHeight=e,e>u?(this.coeff=u/e,e=u):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},t.prototype.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)},t}(c);d.prototype.setInnerHeight=d.prototype.setScrollHeight;var f=function(e){function t(t,n){var r=e.call(this,t,"-h")||this;return r.scrollLeft=0,r.height=n.$scrollbarWidth,r.inner.style.height=r.element.style.height=(r.height||15)+5+"px",r}return o(t,e),t.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.setWidth=function(e){this.element.style.width=e+"px"},t.prototype.setInnerWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollWidth=function(e){this.inner.style.width=e+"px"},t.prototype.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)},t}(c);t.ScrollBar=d,t.ScrollBarV=d,t.ScrollBarH=f,t.VScrollBar=d,t.HScrollBar=f})),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=e("./lib/oop"),a=e("./lib/dom"),s=e("./lib/event"),l=e("./lib/event_emitter").EventEmitter;a.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n  position: absolute;\n  background: rgba(128, 128, 128, 0.6);\n  -moz-box-sizing: border-box;\n  box-sizing: border-box;\n  border: 1px solid #bbb;\n  border-radius: 2px;\n  z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n  position: absolute;\n  z-index: 6;\n  background: none;\n  overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n  z-index: 6;\n  right: 0;\n  top: 0;\n  width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n  z-index: 8;\n  right: 0;\n  width: 100%;\n}\n.ace_editor>.ace_sb-h {\n  bottom: 0;\n  left: 0;\n  height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n  bottom: 0;\n  height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n  z-index: 8;\n  background: #000;\n}","ace_scrollbar.css",!1);var u=function(){function e(e,t){this.element=a.createElement("div"),this.element.className="ace_sb"+t,this.inner=a.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return e.prototype.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1},e}();i.implement(u.prototype,l);var c=function(e){function t(t,n){var r=e.call(this,t,"-v")||this;return r.scrollTop=0,r.scrollHeight=0,r.parent=t,r.width=r.VScrollWidth,r.renderer=n,r.inner.style.width=r.element.style.width=(r.width||15)+"px",r.$minWidth=0,r}return o(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===s.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,r=t.clientY,o=t.clientY,i=this.thumbTop;s.capture(this.inner,(function(e){r=e.clientY}),(function(){clearInterval(a)}));var a=setInterval((function(){if(void 0!==r){var e=n.scrollTopFromThumbTop(i+r-o);e!==n.scrollTop&&n._emit("scroll",{data:e})}}),20);return s.preventDefault(t)}var l=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(l)}),s.preventDefault(t)}},t.prototype.getHeight=function(){return this.height},t.prototype.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(t>>=0)<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},t.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},t.prototype.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},t.prototype.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},t.prototype.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},t}(u);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var d=function(e){function t(t,n){var r=e.call(this,t,"-h")||this;return r.scrollLeft=0,r.scrollWidth=0,r.height=r.HScrollHeight,r.inner.style.height=r.element.style.height=(r.height||12)+"px",r.renderer=n,r}return o(t,e),t.prototype.onMouseDown=function(e,t){if("mousedown"===e&&0===s.getButton(t)&&2!==t.detail){if(t.target===this.inner){var n=this,r=t.clientX,o=t.clientX,i=this.thumbLeft;s.capture(this.inner,(function(e){r=e.clientX}),(function(){clearInterval(a)}));var a=setInterval((function(){if(void 0!==r){var e=n.scrollLeftFromThumbLeft(i+r-o);e!==n.scrollLeft&&n._emit("scroll",{data:e})}}),20);return s.preventDefault(t)}var l=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(l)}),s.preventDefault(t)}},t.prototype.getHeight=function(){return this.isVisible?this.height:0},t.prototype.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(t>>=0)<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},t.prototype.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},t.prototype.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},t.prototype.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},t}(u);d.prototype.setInnerWidth=d.prototype.setScrollWidth,t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=d,t.VScrollBar=c,t.HScrollBar=d})),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],(function(e,t,n){"use strict";var r=e("./lib/event"),o=function(){function e(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}}return e.prototype.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},e.prototype.clear=function(e){var t=this.changes;return this.changes=0,t},e}();t.RenderLoop=o})),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],(function(e,t,n){var r=e("../lib/oop"),o=e("../lib/dom"),i=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,u=512,c="function"==typeof ResizeObserver,d=200,f=function(){function e(e){this.el=o.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=o.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=o.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=i.stringRepeat("X",u),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return e.prototype.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},e.prototype.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},e.prototype.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver((function(t){e.checkForSizeChanges()})),this.$observer.observe(this.$measureNode)},e.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle((function t(){e.checkForSizeChanges(),a.onIdle(t,500)}),500)},e.prototype.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},e.prototype.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/u};return 0===t.width||0===t.height?null:t},e.prototype.$measureCharWidth=function(e){return this.$main.textContent=i.stringRepeat(e,u),this.$main.getBoundingClientRect().width/u},e.prototype.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},e.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.$getZoom=function(e){return e&&e.parentElement?(window.getComputedStyle(e).zoom||1)*this.$getZoom(e.parentElement):1},e.prototype.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=o.buildDom([e(0,0),e(d,0),e(0,d),e(d,d)],this.el)},e.prototype.transformCoordinates=function(e,t){e&&(e=i(1/this.$getZoom(this.el),e));function n(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function r(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function i(e,t){return[e*t[0],e*t[1]]}function a(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var s=a(this.els[0]),l=a(this.els[1]),u=a(this.els[2]),c=a(this.els[3]),f=n(r(c,l),r(c,u),r(o(l,u),o(c,s))),h=i(1+f[0],r(l,s)),p=i(1+f[1],r(u,s));if(t){var g=t,m=f[0]*g[0]/d+f[1]*g[1]/d+1,v=o(i(g[0],h),i(g[1],p));return o(i(1/m/d,v),s)}var y=r(e,s),b=n(r(h,i(f[0],y)),r(p,i(f[1],y)),y);return i(d,b)},e}();f.prototype.$characterSize={width:0,height:0},r.implement(f.prototype,l),t.FontMetrics=f})),ace.define("ace/css/editor-css",["require","exports","module"],(function(e,t,n){n.exports='\n.ace_br1 {border-top-left-radius    : 3px;}\n.ace_br2 {border-top-right-radius   : 3px;}\n.ace_br3 {border-top-left-radius    : 3px; border-top-right-radius:    3px;}\n.ace_br4 {border-bottom-right-radius: 3px;}\n.ace_br5 {border-top-left-radius    : 3px; border-bottom-right-radius: 3px;}\n.ace_br6 {border-top-right-radius   : 3px; border-bottom-right-radius: 3px;}\n.ace_br7 {border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px;}\n.ace_br8 {border-bottom-left-radius : 3px;}\n.ace_br9 {border-top-left-radius    : 3px; border-bottom-left-radius:  3px;}\n.ace_br10{border-top-right-radius   : 3px; border-bottom-left-radius:  3px;}\n.ace_br11{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-left-radius:  3px;}\n.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}\n.ace_br13{border-top-left-radius    : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}\n.ace_br14{border-top-right-radius   : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius:  3px;}\n.ace_br15{border-top-left-radius    : 3px; border-top-right-radius:    3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}\n\n\n.ace_editor {\n    position: relative;\n    overflow: hidden;\n    padding: 0;\n    font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'Source Code Pro\', \'source-code-pro\', monospace;\n    direction: ltr;\n    text-align: left;\n    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\n.ace_scroller {\n    position: absolute;\n    overflow: hidden;\n    top: 0;\n    bottom: 0;\n    background-color: inherit;\n    -ms-user-select: none;\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    user-select: none;\n    cursor: text;\n}\n\n.ace_content {\n    position: absolute;\n    box-sizing: border-box;\n    min-width: 100%;\n    contain: style size layout;\n    font-variant-ligatures: no-common-ligatures;\n}\n\n.ace_keyboard-focus:focus {\n    box-shadow: inset 0 0 0 2px #5E9ED6;\n    outline: none;\n}\n\n.ace_dragging .ace_scroller:before{\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    bottom: 0;\n    content: \'\';\n    background: rgba(250, 250, 250, 0.01);\n    z-index: 1000;\n}\n.ace_dragging.ace_dark .ace_scroller:before{\n    background: rgba(0, 0, 0, 0.01);\n}\n\n.ace_gutter {\n    position: absolute;\n    overflow : hidden;\n    width: auto;\n    top: 0;\n    bottom: 0;\n    left: 0;\n    cursor: default;\n    z-index: 4;\n    -ms-user-select: none;\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    user-select: none;\n    contain: style size layout;\n}\n\n.ace_gutter-active-line {\n    position: absolute;\n    left: 0;\n    right: 0;\n}\n\n.ace_scroller.ace_scroll-left:after {\n    content: "";\n    position: absolute;\n    top: 0;\n    right: 0;\n    bottom: 0;\n    left: 0;\n    box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;\n    pointer-events: none;\n}\n\n.ace_gutter-cell, .ace_gutter-cell_svg-icons {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    padding-left: 19px;\n    padding-right: 6px;\n    background-repeat: no-repeat;\n}\n\n.ace_gutter-cell_svg-icons .ace_gutter_annotation {\n    margin-left: -14px;\n    float: left;\n}\n\n.ace_gutter-cell .ace_gutter_annotation {\n    margin-left: -19px;\n    float: left;\n}\n\n.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");\n    background-repeat: no-repeat;\n    background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");\n    background-repeat: no-repeat;\n    background-position: 2px center;\n}\n\n.ace_gutter-cell.ace_info, .ace_icon.ace_info {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");\n    background-repeat: no-repeat;\n    background-position: 2px center;\n}\n.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");\n}\n\n.ace_icon_svg.ace_error {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+");\n    background-color: crimson;\n}\n.ace_icon_svg.ace_warning {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg==");\n    background-color: darkorange;\n}\n.ace_icon_svg.ace_info {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg==");\n    background-color: royalblue;\n}\n\n.ace_icon_svg.ace_error_fold {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4=");\n    background-color: crimson;\n}\n.ace_icon_svg.ace_warning_fold {\n    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4=");\n    background-color: darkorange;\n}\n\n.ace_scrollbar {\n    contain: strict;\n    position: absolute;\n    right: 0;\n    bottom: 0;\n    z-index: 6;\n}\n\n.ace_scrollbar-inner {\n    position: absolute;\n    cursor: text;\n    left: 0;\n    top: 0;\n}\n\n.ace_scrollbar-v{\n    overflow-x: hidden;\n    overflow-y: scroll;\n    top: 0;\n}\n\n.ace_scrollbar-h {\n    overflow-x: scroll;\n    overflow-y: hidden;\n    left: 0;\n}\n\n.ace_print-margin {\n    position: absolute;\n    height: 100%;\n}\n\n.ace_text-input {\n    position: absolute;\n    z-index: 0;\n    width: 0.5em;\n    height: 1em;\n    opacity: 0;\n    background: transparent;\n    -moz-appearance: none;\n    appearance: none;\n    border: none;\n    resize: none;\n    outline: none;\n    overflow: hidden;\n    font: inherit;\n    padding: 0 1px;\n    margin: 0 -1px;\n    contain: strict;\n    -ms-user-select: text;\n    -moz-user-select: text;\n    -webkit-user-select: text;\n    user-select: text;\n    /*with `pre-line` chrome inserts &nbsp; instead of space*/\n    white-space: pre!important;\n}\n.ace_text-input.ace_composition {\n    background: transparent;\n    color: inherit;\n    z-index: 1000;\n    opacity: 1;\n}\n.ace_composition_placeholder { color: transparent }\n.ace_composition_marker { \n    border-bottom: 1px solid;\n    position: absolute;\n    border-radius: 0;\n    margin-top: 1px;\n}\n\n[ace_nocontext=true] {\n    transform: none!important;\n    filter: none!important;\n    clip-path: none!important;\n    mask : none!important;\n    contain: none!important;\n    perspective: none!important;\n    mix-blend-mode: initial!important;\n    z-index: auto;\n}\n\n.ace_layer {\n    z-index: 1;\n    position: absolute;\n    overflow: hidden;\n    /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/\n    word-wrap: normal;\n    white-space: pre;\n    height: 100%;\n    width: 100%;\n    box-sizing: border-box;\n    /* setting pointer-events: auto; on node under the mouse, which changes\n        during scroll, will break mouse wheel scrolling in Safari */\n    pointer-events: none;\n}\n\n.ace_gutter-layer {\n    position: relative;\n    width: auto;\n    text-align: right;\n    pointer-events: auto;\n    height: 1000000px;\n    contain: style size layout;\n}\n\n.ace_text-layer {\n    font: inherit !important;\n    position: absolute;\n    height: 1000000px;\n    width: 1000000px;\n    contain: style size layout;\n}\n\n.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {\n    contain: style size layout;\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n    contain: strict;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n    contain: strict;\n}\n\n.ace_cjk {\n    display: inline-block;\n    text-align: center;\n}\n\n.ace_cursor-layer {\n    z-index: 4;\n}\n\n.ace_cursor {\n    z-index: 4;\n    position: absolute;\n    box-sizing: border-box;\n    border-left: 2px solid;\n    /* workaround for smooth cursor repaintng whole screen in chrome */\n    transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n    border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n    border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n    border-left-width: 0;\n    border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n    opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n    opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n    transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n    animation-duration: 1000ms;\n    animation-timing-function: step-end;\n    animation-name: blink-ace-animate;\n    animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n    animation-duration: 1000ms;\n    animation-timing-function: ease-in-out;\n    animation-name: blink-ace-animate-smooth;\n}\n    \n@keyframes blink-ace-animate {\n    from, to { opacity: 1; }\n    60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n    from, to { opacity: 1; }\n    45% { opacity: 1; }\n    60% { opacity: 0; }\n    85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n    position: absolute;\n    z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n    position: absolute;\n    z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n    position: absolute;\n    z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n    position: absolute;\n    border-bottom: 1px solid #DE5555;\n    border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n    position: absolute;\n    z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n    position: absolute;\n    z-index: 4;\n    box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n    box-sizing: border-box;\n\n    display: inline-block;\n    height: 11px;\n    margin-top: -2px;\n    vertical-align: middle;\n\n    background-image:\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n    background-repeat: no-repeat, repeat-x;\n    background-position: center center, top left;\n    color: transparent;\n\n    border: 1px solid black;\n    border-radius: 2px;\n\n    cursor: pointer;\n    pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n    background-image:\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n        url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n    background-color: #f5f5f5;\n    border: 1px solid gray;\n    border-radius: 1px;\n    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n    color: black;\n    max-width: 100%;\n    padding: 3px 4px;\n    position: fixed;\n    z-index: 999999;\n    box-sizing: border-box;\n    cursor: default;\n    white-space: pre;\n    word-wrap: break-word;\n    line-height: normal;\n    font-style: normal;\n    font-weight: normal;\n    letter-spacing: normal;\n    pointer-events: none;\n}\n\n.ace_tooltip.ace_dark {\n    background-color: #636363;\n    color: #fff;\n}\n\n.ace_tooltip:focus {\n    outline: 1px solid #5E9ED6;\n}\n\n.ace_icon {\n    display: inline-block;\n    width: 18px;\n    vertical-align: top;\n}\n\n.ace_icon_svg {\n    display: inline-block;\n    width: 12px;\n    vertical-align: top;\n    -webkit-mask-repeat: no-repeat;\n    -webkit-mask-size: 12px;\n    -webkit-mask-position: center;\n}\n\n.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons {\n    padding-right: 13px;\n}\n\n.ace_fold-widget {\n    box-sizing: border-box;\n\n    margin: 0 -12px 0 1px;\n    display: none;\n    width: 11px;\n    vertical-align: top;\n\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n    background-repeat: no-repeat;\n    background-position: center;\n\n    border-radius: 3px;\n    \n    border: 1px solid transparent;\n    cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n    display: inline-block;   \n}\n\n.ace_fold-widget.ace_end {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n    border: 1px solid rgba(0, 0, 0, 0.3);\n    background-color: rgba(255, 255, 255, 0.2);\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n    border: 1px solid rgba(0, 0, 0, 0.4);\n    background-color: rgba(0, 0, 0, 0.05);\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n    background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n    border: 1px solid lightgray;\n    display: inline-block;\n    margin: -1px 8px;\n    padding: 0 5px;\n    pointer-events: auto;\n    cursor: pointer;\n}\n.ace_inline_button:hover {\n    border-color: gray;\n    background: rgba(200,200,200,0.2);\n    display: inline-block;\n    pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n    background-color: #FFB4B4;\n    border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n    transition: opacity 0.4s ease 0.05s;\n    opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n    transition: opacity 0.05s ease 0.05s;\n    opacity:1;\n}\n\n.ace_underline {\n    text-decoration: underline;\n}\n\n.ace_bold {\n    font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n    font-weight: normal;\n}\n\n.ace_italic {\n    font-style: italic;\n}\n\n\n.ace_error-marker {\n    background-color: rgba(255, 0, 0,0.2);\n    position: absolute;\n    z-index: 9;\n}\n\n.ace_highlight-marker {\n    background-color: rgba(255, 255, 0,0.2);\n    position: absolute;\n    z-index: 8;\n}\n\n.ace_mobile-menu {\n    position: absolute;\n    line-height: 1.5;\n    border-radius: 4px;\n    -ms-user-select: none;\n    -moz-user-select: none;\n    -webkit-user-select: none;\n    user-select: none;\n    background: white;\n    box-shadow: 1px 3px 2px grey;\n    border: 1px solid #dcdcdc;\n    color: black;\n}\n.ace_dark > .ace_mobile-menu {\n    background: #333;\n    color: #ccc;\n    box-shadow: 1px 3px 2px grey;\n    border: 1px solid #444;\n\n}\n.ace_mobile-button {\n    padding: 2px;\n    cursor: pointer;\n    overflow: hidden;\n}\n.ace_mobile-button:hover {\n    background-color: #eee;\n    opacity:1;\n}\n.ace_mobile-button:active {\n    background-color: #ddd;\n}\n\n.ace_placeholder {\n    font-family: arial;\n    transform: scale(0.9);\n    transform-origin: left;\n    white-space: pre;\n    opacity: 0.7;\n    margin: 0 10px;\n}\n\n.ace_ghost_text {\n    opacity: 0.5;\n    font-style: italic;\n    white-space: pre;\n}'})),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],(function(e,t,n){"use strict";var r=e("../lib/dom"),o=e("../lib/oop"),i=e("../lib/event_emitter").EventEmitter,a=function(){function e(e,t){this.canvas=r.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)}return e.prototype.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)*this.lineHeight<this.canvasHeight?this.heightRatio=1:this.heightRatio=this.canvasHeight/this.maxHeight);var n=this.canvas.getContext("2d");var r=this.renderer.session.$annotations;if(n.clearRect(0,0,this.canvas.width,this.canvas.height),r){var o={info:1,warning:2,error:3};r.forEach((function(e){e.priority=o[e.type]||null})),r=r.sort((function(e,t){return e.priority<t.priority?-1:e.priority>t.priority?1:0}));for(var i=this.renderer.session.$foldData,a=0;a<r.length;a++){var s=r[a].row,l=this.compensateFoldRows(s,i),u=Math.round((s-l)*this.lineHeight*this.heightRatio),c=Math.round((s-l)*this.lineHeight*this.heightRatio),d=Math.round(((s-l)*this.lineHeight+this.lineHeight)*this.heightRatio);if(d-c<this.minDecorationHeight){var f=(c+d)/2|0;f<this.halfMinDecorationHeight?f=this.halfMinDecorationHeight:f+this.halfMinDecorationHeight>this.canvasHeight&&(f=this.canvasHeight-this.halfMinDecorationHeight),c=Math.round(f-this.halfMinDecorationHeight),d=Math.round(f+this.halfMinDecorationHeight)}n.fillStyle=t[r[a].type]||null,n.fillRect(0,u,this.canvasWidth,d-c)}}var h=this.renderer.session.selection.getCursor();if(h){l=this.compensateFoldRows(h.row,i),u=Math.round((h.row-l)*this.lineHeight*this.heightRatio);n.fillStyle="rgba(0, 0, 0, 0.5)",n.fillRect(0,u,this.canvasWidth,2)}},e.prototype.compensateFoldRows=function(e,t){var n=0;if(t&&t.length>0)for(var r=0;r<t.length;r++)e>t[r].start.row&&e<t[r].end.row?n+=e-t[r].start.row:e>=t[r].end.row&&(n+=t[r].end.row-t[r].start.row);return n},e}();o.implement(a.prototype,i),t.Decorator=a})),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=e("./lib/dom"),i=e("./lib/lang"),a=e("./config"),s=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,u=e("./layer/text").Text,c=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,f=e("./scrollbar").VScrollBar,h=e("./scrollbar_custom").HScrollBar,p=e("./scrollbar_custom").VScrollBar,g=e("./renderloop").RenderLoop,m=e("./layer/font_metrics").FontMetrics,v=e("./lib/event_emitter").EventEmitter,y=e("./css/editor-css"),b=e("./layer/decorators").Decorator,w=e("./lib/useragent");o.importCssString(y,"ace_editor.css",!1);var x=function(){function e(e,t){var n=this;this.container=e||o.createElement("div"),o.addCssClass(this.container,"ace_editor"),o.HI_DPI&&o.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==a.get("useStrictCSP")&&a.set("useStrictCSP",!1),this.$gutter=o.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=o.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=o.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new s(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var r=this.$textLayer=new u(this.content);this.canvas=r.element,this.$markerFront=new l(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new f(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)})),this.scrollBarH.on("scroll",(function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)})),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",(function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)})),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),a.resetOptions(this),a._signal("renderer",this)}return e.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),o.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},e.prototype.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},e.prototype.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!n)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},e.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},e.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},e.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},e.prototype.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},e.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},e.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},e.prototype.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var o=this.container;r||(r=o.clientHeight||o.scrollHeight),n||(n=o.clientWidth||o.scrollWidth);var i=this.$updateCachedSize(e,t,n,r);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(i|this.$changes,!0):this.$loop.schedule(i|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},e.prototype.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var i=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,i|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(a.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",i|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){i|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,o.setStyle(this.scrollBarH.element.style,"left",t+"px"),o.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),o.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";o.setStyle(this.scrollBarH.element.style,"right",l),o.setStyle(this.scroller.style,"right",l),o.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(a.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(i|=this.CHANGE_FULL)}return a.$dirty=!n||!r,i&&this._signal("resize",s),i},e.prototype.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()||this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},e.prototype.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},e.prototype.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},e.prototype.getAnimatedScroll=function(){return this.$animatedScroll},e.prototype.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},e.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},e.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},e.prototype.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},e.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},e.prototype.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},e.prototype.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},e.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},e.prototype.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},e.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},e.prototype.getShowGutter=function(){return this.getOption("showGutter")},e.prototype.setShowGutter=function(e){return this.setOption("showGutter",e)},e.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},e.prototype.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},e.prototype.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},e.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},e.prototype.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=o.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=o.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},e.prototype.getContainerElement=function(){return this.container},e.prototype.getMouseEventTarget=function(){return this.scroller},e.prototype.getTextAreaContainer=function(){return this.container},e.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,i=n.top,a=n.left;i-=r.offset;var s=t&&t.useTextareaForIME||w.isMobile?this.lineHeight:1;if(i<0||i>r.height-s)o.translate(this.textarea,0,0);else{var l=1,u=this.$size.height-s;if(t)if(t.useTextareaForIME){var c=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(c)[0]}else i+=this.lineHeight+2;else i+=this.lineHeight;(a-=this.scrollLeft)>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,o.setStyle(e,"height",s+"px"),o.setStyle(e,"width",l+"px"),o.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(i,u))}}}else o.translate(this.textarea,-100,0)}},e.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},e.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},e.prototype.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},e.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},e.prototype.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},e.prototype.setScrollMargin=function(e,t,n,r){var o=this.scrollMargin;o.top=0|e,o.bottom=0|t,o.right=0|r,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,o.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-o.top),this.updateFull()},e.prototype.setMargin=function(e,t,n,r){var o=this.margin;o.top=0|e,o.bottom=0|t,o.right=0|r,o.left=0|n,o.v=o.top+o.bottom,o.h=o.left+o.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},e.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},e.prototype.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},e.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},e.prototype.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},e.prototype.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},e.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},e.prototype.freeze=function(){this.$frozen=!0},e.prototype.unfreeze=function(){this.$frozen=!1},e.prototype.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),o.translate(this.content,-this.scrollLeft,-n.offset);var i=n.width+2*this.$padding+"px",a=n.minHeight+"px";o.setStyle(this.content.style,"width",i),o.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(o.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(n)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},e.prototype.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=!(n<=2*this.lineHeight)&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||r!=this.$vScroll){r!=this.$vScroll&&(this.$vScroll=r,this.scrollBarV.setVisible(r));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},e.prototype.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength()*this.lineHeight,o=this.$getLongestLine(),i=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),a=this.$horizScroll!==i;a&&(this.$horizScroll=i,this.scrollBarH.setVisible(i));var s=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var l=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;r+=u;var c=this.scrollMargin;this.session.setScrollTop(Math.max(-c.top,Math.min(this.scrollTop,r-t.scrollerHeight+c.bottom))),this.session.setScrollLeft(Math.max(-c.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+c.right)));var d=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-r+u<0||this.scrollTop>c.top),f=s!==d;f&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var h,p,g=this.scrollTop%this.lineHeight,m=Math.ceil(l/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-g)/this.lineHeight)),y=v+m,b=this.lineHeight;v=e.screenToDocumentRow(v,0);var w=e.getFoldLine(v);w&&(v=w.start.row),h=e.documentToScreenRow(v,0),p=e.getRowLength(v)*b,y=Math.min(e.screenToDocumentRow(y,0),e.getLength()-1),l=t.scrollerHeight+e.getRowLength(y)*b+p,g=this.scrollTop-h*b;var x=0;return(this.layerConfig.width!=o||a)&&(x=this.CHANGE_H_SCROLL),(a||f)&&(x|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),f&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:v,firstRowScreen:h,lastRow:y,lineHeight:b,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:g,gutterOffset:b?Math.max(0,Math.ceil((g+t.height-t.scrollerHeight)/b)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),x},e.prototype.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1||t<n.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(n),void this.$textLayer.update(n)):(this.$textLayer.updateLines(n,e,t),!0)}},e.prototype.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),this.$textLayer&&e>this.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},e.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},e.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},e.prototype.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},e.prototype.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},e.prototype.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},e.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},e.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},e.prototype.showCursor=function(){this.$cursorLayer.showCursor()},e.prototype.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},e.prototype.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),o=r.left,i=r.top,a=n&&n.top||0,s=n&&n.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>i?(t&&l+a>i+this.lineHeight&&(i-=t*this.$size.scrollerHeight),0===i&&(i=-this.scrollMargin.top),this.session.setScrollTop(i)):l+this.$size.scrollerHeight-s<i+this.lineHeight&&(t&&l+this.$size.scrollerHeight-s<i-this.lineHeight&&(i+=t*this.$size.scrollerHeight),this.session.setScrollTop(i+this.lineHeight+s-this.$size.scrollerHeight));var u=this.scrollLeft,c=2*this.layerConfig.characterWidth;o-c<u?((o-=c)<this.$padding+c&&(o=-this.scrollMargin.left),this.session.setScrollLeft(o)):(o+=c,u+this.$size.scrollerWidth<o+this.characterWidth?this.session.setScrollLeft(Math.round(o+this.characterWidth-this.$size.scrollerWidth)):u<=this.$padding&&o-u<this.characterWidth&&this.session.setScrollLeft(0))}},e.prototype.getScrollTop=function(){return this.session.getScrollTop()},e.prototype.getScrollLeft=function(){return this.session.getScrollLeft()},e.prototype.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},e.prototype.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},e.prototype.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},e.prototype.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var n=this.$cursorLayer.getPixelPosition(e),r=this.$size.scrollerHeight-this.lineHeight,o=n.top-r*(t||0);return this.session.setScrollTop(o),o},e.prototype.$calcSteps=function(e,t){var n=0,r=this.STEPS,o=[],i=function(e,t,n){return n*(Math.pow(e-1,3)+1)+t};for(n=0;n<r;++n)o.push(i(n/this.STEPS,e,t-e));return o},e.prototype.scrollToLine=function(e,t,n,r){var o=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(o-=this.$size.scrollerHeight/2);var i=this.scrollTop;this.session.setScrollTop(o),!1!==n&&this.animateScrolling(i,r)},e.prototype.animateScrolling=function(e,t){var n=this.scrollTop;if(this.$animatedScroll){var r=this;if(e!=n){if(this.$scrollAnimation){var o=this.$scrollAnimation.steps;if(o.length&&(e=o[0])==n)return}var i=r.$calcSteps(e,n);this.$scrollAnimation={from:e,to:n,steps:i},clearInterval(this.$timer),r.session.setScrollTop(i.shift()),r.session.$scrollTop=n,this.$timer=setInterval((function(){if(!r.$stopAnimation)return r.session?void(i.length?(r.session.setScrollTop(i.shift()),r.session.$scrollTop=n):null!=n?(r.session.$scrollTop=-1,r.session.setScrollTop(n),n=null):a()):clearInterval(r.$timer);a()}),10)}}function a(){r.$timer=clearInterval(r.$timer),r.$scrollAnimation=null,r.$stopAnimation=!1,t&&t()}},e.prototype.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},e.prototype.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},e.prototype.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(e)},e.prototype.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},e.prototype.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},e.prototype.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,i=o/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(i):Math.round(i);return{row:a,column:s,side:i-s>0?1:-1,offsetX:o}},e.prototype.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var o=e+this.scrollLeft-n.left-this.$padding,i=o/this.characterWidth,a=this.$blockCursor?Math.floor(i):Math.round(i),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),o)},e.prototype.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),o=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),i=r.row*this.lineHeight;return{pageX:n.left+o-this.scrollLeft,pageY:n.top+i-this.scrollTop}},e.prototype.visualizeFocus=function(){o.addCssClass(this.container,"ace_focus")},e.prototype.visualizeBlur=function(){o.removeCssClass(this.container,"ace_focus")},e.prototype.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),null==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(o.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},e.prototype.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},e.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),o.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},e.prototype.setGhostText=function(e,t){var n=this.session.selection.cursor,r=t||{row:n.row,column:n.column};this.removeGhostText();var o=e.split("\n");this.addToken(o[0],"ghost_text",r.row,r.column),this.$ghostText={text:e,position:{row:r.row,column:r.column}},o.length>1&&(this.$ghostTextWidget={text:o.slice(1).join("\n"),row:r.row,column:r.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},e.prototype.removeGhostText=function(){if(this.$ghostText){var e=this.$ghostText.position;this.removeExtraToken(e.row,e.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},e.prototype.addToken=function(e,t,n,r){var o=this.session;o.bgTokenizer.lines[n]=null;var i={type:t,value:e},a=o.getTokens(n);if(null!=r&&a.length)for(var s=0,l=0;l<a.length;l++){var u=a[l];if(r<=(s+=u.value.length)){var c=u.value.length-(s-r),d=u.value.slice(0,c),f=u.value.slice(c);a.splice(l,1,{type:u.type,value:d},i,{type:u.type,value:f});break}}else a.push(i);this.updateLines(n,n)},e.prototype.removeExtraToken=function(e,t){this.session.bgTokenizer.lines[e]=null,this.updateLines(e,e)},e.prototype.setTheme=function(e,t){var n=this;if(this.$themeId=e,n._dispatchEvent("themeChange",{theme:e}),e&&"string"!=typeof e)i(e);else{var r=e||this.$options.theme.initialValue;a.loadModule(["theme",r],i)}function i(r){if(n.$themeId!=e)return t&&t();if(!r||!r.cssClass)throw new Error("couldn't load module "+e+" or it didn't call define");r.$id&&(n.$themeId=r.$id),o.importCssString(r.cssText,r.cssClass,n.container),n.theme&&o.removeCssClass(n.container,n.theme.cssClass);var i="padding"in r?r.padding:"padding"in(n.theme||{})?4:n.$padding;n.$padding&&i!=n.$padding&&n.setPadding(i),n.$theme=r.cssClass,n.theme=r,o.addCssClass(n.container,r.cssClass),o.setCssClass(n.container,"ace_dark",r.isDark),n.$size&&(n.$size.width=0,n.$updateSizeAsync()),n._dispatchEvent("themeLoaded",{theme:r}),t&&t()}},e.prototype.getTheme=function(){return this.$themeId},e.prototype.setStyle=function(e,t){o.setCssClass(this.container,e,!1!==t)},e.prototype.unsetStyle=function(e){o.removeCssClass(this.container,e)},e.prototype.setCursorStyle=function(e){o.setStyle(this.scroller.style,"cursor",e)},e.prototype.setMouseCursor=function(e){o.setStyle(this.scroller.style,"cursor",e)},e.prototype.attachToShadowRoot=function(){o.importCssString(y,"ace_editor.css",this.container)},e.prototype.destroy=function(){this.freeze(),this.$fontMetrics.destroy(),this.$cursorLayer.destroy(),this.removeAllListeners(),this.container.textContent="",this.setOption("useResizeObserver",!1)},e.prototype.$updateCustomScrollbar=function(e){var t=this;this.$horizScroll=this.$vScroll=null,this.scrollBarV.element.remove(),this.scrollBarH.element.remove(),this.$scrollDecorator&&delete this.$scrollDecorator,!0===e?(this.scrollBarV=new p(this.container,this),this.scrollBarH=new h(this.container,this),this.scrollBarV.setHeight(this.$size.scrollerHeight),this.scrollBarH.setWidth(this.$size.scrollerWidth),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})),this.$scrollDecorator=new b(this.scrollBarV,this),this.$scrollDecorator.$updateDecorators()):(this.scrollBarV=new f(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollTop(e.data-t.scrollMargin.top)})),this.scrollBarH.addEventListener("scroll",(function(e){t.$scrollAnimation||t.session.setScrollLeft(e.data-t.scrollMargin.left)})))},e.prototype.$addResizeObserver=function(){if(window.ResizeObserver&&!this.$resizeObserver){var e=this;this.$resizeTimer=i.delayedCall((function(){e.destroyed||e.onResize()}),50),this.$resizeObserver=new window.ResizeObserver((function(t){var n=t[0].contentRect.width,r=t[0].contentRect.height;Math.abs(e.$size.width-n)>1||Math.abs(e.$size.height-r)>1?e.$resizeTimer.delay():e.$resizeTimer.cancel()})),this.$resizeObserver.observe(this.container)}},e}();x.prototype.CHANGE_CURSOR=1,x.prototype.CHANGE_MARKER=2,x.prototype.CHANGE_GUTTER=4,x.prototype.CHANGE_SCROLL=8,x.prototype.CHANGE_LINES=16,x.prototype.CHANGE_TEXT=32,x.prototype.CHANGE_SIZE=64,x.prototype.CHANGE_MARKER_BACK=128,x.prototype.CHANGE_MARKER_FRONT=256,x.prototype.CHANGE_FULL=512,x.prototype.CHANGE_H_SCROLL=1024,x.prototype.$changes=0,x.prototype.$padding=null,x.prototype.$frozen=!1,x.prototype.STEPS=8,r.implement(x.prototype,v),a.defineOptions(x.prototype,"renderer",{useResizeObserver:{set:function(e){!e&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):e&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(e){this.$gutterLayer.$useSvgGutterIcons=e},initialValue:!1},showFoldedAnnotations:{set:function(e){this.$gutterLayer.$showFoldedAnnotations=e},initialValue:!1},fadeFoldWidgets:{set:function(e){o.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(e){1==this.$textLayer.setHighlightIndentGuides(e)?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(e){this.$gutterLayer.setHighlightGutterLine(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(e){this.$hScrollBarAlwaysVisible&&this.$horizScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){this.$vScrollBarAlwaysVisible&&this.$vScroll||this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(e){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(e){this.$updateCustomScrollbar(e)},initialValue:!1},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!w.isMobile&&!w.isIE}}),t.VirtualRenderer=x})),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("../lib/net"),i=e("../lib/event_emitter").EventEmitter,a=e("../config");function s(e){if("undefined"==typeof Worker)return{postMessage:function(){},terminate:function(){}};if(a.get("loadWorkerFromBlob")){var t=function(e){var t="importScripts('"+o.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var n=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return n.append(t),n.getBlob("application/javascript")}}(e),n=(window.URL||window.webkitURL).createObjectURL(t);return new Worker(n)}return new Worker(e)}var l=function(e){e.postMessage||(e=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=e,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){r.implement(this,i),this.$createWorkerFromOldConfig=function(t,n,r,o,i){if(e.nameToUrl&&!e.toUrl&&(e.toUrl=e.nameToUrl),a.get("packaged")||!e.toUrl)o=o||a.moduleUrl(n,"worker");else{var l=this.$normalizePath;o=o||l(e.toUrl("ace/worker/worker.js",null,"_"));var u={};t.forEach((function(t){u[t]=l(e.toUrl(t,null,"_").replace(/(\.js)?(\?.*)?$/,""))}))}return this.$worker=s(o),i&&this.send("importScripts",i),this.$worker.postMessage({init:!0,tlns:u,module:n,classname:r}),this.$worker},this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var n=this.callbacks[t.id];n&&(n(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return o.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(e){e.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,n){if(n){var r=this.callbackId++;this.callbacks[r]=n,t.push(r)}this.send(e,t)},this.emit=function(e,t){try{t.data&&t.data.err&&(t.data.err={message:t.data.err.message,stack:t.data.err.stack,code:t.data.err.code}),this.$worker&&this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener,!0)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,e.length>50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype);t.UIWorkerClient=function(e,t,n){var r=null,o=!1,s=Object.create(i),u=[],c=new l({messageBuffer:u,terminate:function(){},postMessage:function(e){u.push(e),r&&(o?setTimeout(d):d())}});c.setEmitSync=function(e){o=e};var d=function(){var e=u.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};return s.postMessage=function(e){c.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],(function(e){for(r=new e[n](s);u.length;)d()})),c},t.WorkerClient=l,t.createWorker=s})),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],(function(e,t,n){"use strict";var r=e("./range").Range,o=e("./lib/event_emitter").EventEmitter,i=e("./lib/oop"),a=function(){function e(e,t,n,r,o,i){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=o,this.othersClass=i,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=r,this.$onCursorChange=function(){setTimeout((function(){a.onCursorChange()}))},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}return e.prototype.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var o=this.pos;o.$insertRight=!0,o.detach(),o.markerId=n.addMarker(new r(o.row,o.column,o.row,o.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach((function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)})),n.setUndoSelect(!1)},e.prototype.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach((function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)}))}},e.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},e.prototype.onUpdate=function(e){if(this.$updating)return this.updateAnchors(e);var t=e;if(t.start.row===t.end.row&&t.start.row===this.pos.row){this.$updating=!0;var n="insert"===e.action?t.end.column-t.start.column:t.start.column-t.end.column,o=t.start.column>=this.pos.column&&t.start.column<=this.pos.column+this.length+1,i=t.start.column-this.pos.column;if(this.updateAnchors(e),o&&(this.length+=n),o&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s={row:(l=this.others[a]).row,column:l.column+i};this.doc.insertMergedLines(s,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){var l;s={row:(l=this.others[a]).row,column:l.column+i};this.doc.remove(new r(s.row,s.column,s.row,s.column-n))}this.$updating=!1,this.updateMarkers()}},e.prototype.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},e.prototype.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,o){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),o,null,!1)};n(this.pos,this.mainClass);for(var o=this.others.length;o--;)n(this.others[o],this.othersClass)}},e.prototype.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},e.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},e.prototype.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n<t;n++)e.undo(this.session,!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}},e}();i.implement(a.prototype,o),t.PlaceHolder=a})),ace.define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],(function(e,t,n){var r=e("../lib/event"),o=e("../lib/useragent");function i(e,t){return e.row==t.row&&e.column==t.column}t.onMouseDown=function(e){var t=e.domEvent,n=t.altKey,a=t.shiftKey,s=t.ctrlKey,l=e.getAccelKey(),u=e.getButton();if(s&&o.isMac&&(u=t.button),e.editor.inMultiSelectMode&&2==u)e.editor.textInput.onContextMenu(e.domEvent);else if(s||n||l){if(0===u){var c,d=e.editor,f=d.selection,h=d.inMultiSelectMode,p=e.getDocumentPosition(),g=f.getCursor(),m=e.inSelection()||f.isEmpty()&&i(p,g),v=e.x,y=e.y,b=d.session,w=d.renderer.pixelToScreenCoordinates(v,y),x=w;if(d.$mouseHandler.$enableJumpToDef)s&&n||l&&n?c=a?"block":"add":n&&d.$blockSelectEnabled&&(c="block");else if(l&&!n){if(c="add",!h&&a)return}else n&&d.$blockSelectEnabled&&(c="block");if(c&&o.isMac&&t.ctrlKey&&d.$mouseHandler.cancelContextMenu(),"add"==c){if(!h&&m)return;if(!h){var S=f.toOrientedRange();d.addSelectionMarker(S)}var _=f.rangeList.rangeAtPoint(p);d.inVirtualSelectionMode=!0,a&&(_=null,S=f.ranges[0]||S,d.removeSelectionMarker(S)),d.once("mouseup",(function(){var e=f.toOrientedRange();_&&e.isEmpty()&&i(_.cursor,e.cursor)?f.substractPoint(e.cursor):(a?f.substractPoint(S.cursor):S&&(d.removeSelectionMarker(S),f.addRange(S)),f.addRange(e)),d.inVirtualSelectionMode=!1}))}else if("block"==c){var E;e.stop(),d.inVirtualSelectionMode=!0;var k=[],C=function(){var e=d.renderer.pixelToScreenCoordinates(v,y),t=b.screenToDocumentPosition(e.row,e.column,e.offsetX);i(x,e)&&i(t,f.lead)||(x=e,d.selection.moveToPosition(t),d.renderer.scrollCursorIntoView(),d.removeSelectionMarkers(k),k=f.rectangularRangeBlock(x,w),d.$mouseHandler.$clickSelection&&1==k.length&&k[0].isEmpty()&&(k[0]=d.$mouseHandler.$clickSelection.clone()),k.forEach(d.addSelectionMarker,d),d.updateSelectionMarkers())};h&&!l?f.toSingleRange():!h&&l&&(E=f.toOrientedRange(),d.addSelectionMarker(E)),a?w=b.documentToScreenPosition(f.lead):f.moveToPosition(p),x={row:-1,column:-1};var A=C;r.capture(d.container,(function(e){v=e.clientX,y=e.clientY}),(function(e){C(),clearInterval(T),d.removeSelectionMarkers(k),k.length||(k=[f.toOrientedRange()]),E&&(d.removeSelectionMarker(E),f.toSingleRange(E));for(var t=0;t<k.length;t++)f.addRange(k[t]);d.inVirtualSelectionMode=!1,d.$mouseHandler.$clickSelection=null}));var T=setInterval((function(){A()}),20);return e.preventDefault()}}}else 0===u&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}})),ace.define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],(function(e,t,n){t.defaultCommands=[{name:"addCursorAbove",description:"Add cursor above",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",description:"Add cursor below",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",description:"Add cursor above (skip current)",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",description:"Add cursor below (skip current)",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",description:"Select more before",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",description:"Select more after",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",description:"Select next before",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",description:"Select next after",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"toggleSplitSelectionIntoLines",description:"Split selection into lines",exec:function(e){e.multiSelect.rangeCount>1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)})),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],(function(e,t,n){var r=e("./range_list").RangeList,o=e("./range").Range,i=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),l=e("./lib/lang"),u=e("./commands/multi_select_commands");t.commands=u.defaultCommands.concat(u.multiSelectCommands);var c=new(0,e("./search").Search);var d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n<e.length;n++){var r=e[n],i=r.start.row,a=r.end.row;if(i===a)t.push(r.clone());else{for(t.push(new o(i,r.start.column,i,this.session.getLine(i).length));++i<a;)t.push(this.getLineRange(i,!0));t.push(new o(a,0,a,r.end.column))}0!=n||this.isBackwards()||(t=t.reverse())}this.toSingleRange();for(n=t.length;n--;)this.addRange(t[n])},this.joinSelections=function(){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)},this.toggleBlockSelection=function(){if(this.rangeCount>1){var e=this.rangeList.ranges,t=e[e.length-1],n=o.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),i=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(r,i).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],i=e.column<t.column;if(i)var a=e.column,s=t.column,l=e.offsetX,u=t.offsetX;else a=t.column,s=e.column,l=t.offsetX,u=e.offsetX;var c,d,f,h=e.row<t.row;if(h)var p=e.row,g=t.row;else p=t.row,g=e.row;a<0&&(a=0),p<0&&(p=0),p==g&&(n=!0);for(var m=p;m<=g;m++){var v=o.fromPoints(this.session.screenToDocumentPosition(m,a,l),this.session.screenToDocumentPosition(m,s,u));if(v.isEmpty()){if(c&&(d=v.end,f=c,d.row==f.row&&d.column==f.column))break;c=v.end}v.cursor=i?v.start:v.end,r.push(v)}if(h&&r.reverse(),!n){for(var y=r.length-1;r[y].isEmpty()&&y>0;)y--;if(y>0)for(var b=0;r[b].isEmpty();)b++;for(var w=y;w>=b;w--)r[w].isEmpty()&&r.splice(w,1)}return r}}.call(i.prototype);var f=e("./editor").Editor;function h(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(u.defaultCommands),function(e){if(!e.textInput)return;var t=e.textInput.getElement(),n=!1;function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}s.addListener(t,"keydown",(function(t){var o=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&o?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()}),e),s.addListener(t,"keyup",r,e),s.addListener(t,"blur",r,e)}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var o=t.indexOf(r);-1!=o&&t.splice(o,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(u.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(u.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,o=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,u=l.rangeList,c=(o?l:u).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var d=l._eventRegistry;l._eventRegistry={};var f=new i(s);this.inVirtualSelectionMode=!0;for(var h=c.length;h--;){if(a)for(;h>0&&c[h].start.row==c[h-1].end.row;)h--;f.fromOrientedRange(c[h]),f.index=h,this.selection=s.selection=f;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),f.toOrientedRange(c[h])}f.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=d,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var g=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),g&&g.from==g.to&&this.renderer.animateScrolling(g.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;r<t.length;r++)n.push(this.session.getTextRange(t[r]));var o=this.session.getDocument().getNewLineCharacter();(e=n.join(o)).length==(n.length-1)*o.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var n=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var r=t==this.multiSelect.anchor?n.cursor==n.start?n.end:n.start:n.cursor;r.row!=t.row||this.session.$clipPositionToDocument(r.row,r.column).column!=t.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(e,t,n){if((t=t||{}).needle=e||t.needle,null==t.needle){var r=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(r)}this.$search.set(t);var o=this.$search.findAll(this.session);if(!o.length)return 0;var i=this.multiSelect;n||i.toSingleRange(o[0]);for(var a=o.length;a--;)i.addRange(o[a],!0);return r&&i.rangeList.rangeAtPoint(r.start)&&i.addRange(r,!0),o.length},this.selectMoreLines=function(e,t){var n=this.selection.toOrientedRange(),r=n.cursor==n.end,i=this.session.documentToScreenPosition(n.cursor);this.selection.$desiredColumn&&(i.column=this.selection.$desiredColumn);var a,s=this.session.screenToDocumentPosition(i.row+e,i.column);if(n.isEmpty())u=s;else var l=this.session.documentToScreenPosition(r?n.end:n.start),u=this.session.screenToDocumentPosition(l.row+e,l.column);r?(a=o.fromPoints(s,u)).cursor=a.start:(a=o.fromPoints(u,s)).cursor=a.end;if(a.desiredColumn=i.column,this.selection.inMultiSelectMode){if(t)var c=n.cursor}else this.selection.addRange(n);this.selection.addRange(a),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,n=t.multiSelect,r=n.ranges,o=r.length;o--;){if((s=r[o]).isEmpty()){var i=t.getWordRange(s.start.row,s.start.column);s.start.row=i.start.row,s.start.column=i.start.column,s.end.row=i.end.row,s.end.column=i.end.column}}n.mergeOverlappingRanges();var a=[];for(o=r.length;o--;){var s=r[o];a.unshift(t.getTextRange(s))}e<0?a.unshift(a.pop()):a.push(a.shift());for(o=r.length;o--;){i=(s=r[o]).clone();t.replace(s,a[o]),s.start.row=i.start.row,s.start.column=i.start.column}n.fromOrientedRange(n.ranges[0])},this.selectMore=function(e,t,n){var r=this.session,o=r.multiSelect.toOrientedRange();if(!o.isEmpty()||((o=r.getWordRange(o.start.row,o.start.column)).cursor=-1==e?o.start:o.end,this.multiSelect.addRange(o),!n)){var i=r.getTextRange(o),a=function(e,t,n){return c.$options.wrap=!0,c.$options.needle=t,c.$options.backwards=-1==n,c.find(e)}(r,i,e);a&&(a.cursor=-1==e?a.start:a.end,this.session.unfold(a),this.multiSelect.addRange(a),this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(o.cursor)}},this.alignCursors=function(){var e=this.session,t=e.multiSelect,n=t.ranges,r=-1,i=n.filter((function(e){if(e.cursor.row==r)return!0;r=e.cursor.row}));if(n.length&&i.length!=n.length-1){i.forEach((function(e){t.substractPoint(e.cursor)}));var a=0,s=1/0,u=n.map((function(t){var n=t.cursor,r=e.getLine(n.row).substr(n.column).search(/\S/g);return-1==r&&(r=0),n.column>a&&(a=n.column),r<s&&(s=r),r}));n.forEach((function(t,n){var r=t.cursor,i=a-r.column,c=u[n]-s;i>c?e.insert(r,l.stringRepeat(" ",i-c)):e.remove(new o(r.row,r.column,r.row,r.column-i+c)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end})),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),d=c.start.row,f=c.end.row,h=d==f;if(h){var p,g=this.session.getLength();do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&++f<g);do{p=this.session.getLine(d)}while(/[=:]/.test(p)&&--d>0);d<0&&(d=0),f>=g&&(f=g-1)}var m=this.session.removeFullLines(d,f);m=this.$reAlignText(m,h),this.session.insert({row:d,column:0},m.join("\n")+"\n"),h||(c.start.column=0,c.end.column=m[m.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(e,t){var n,r,o,i=!0,a=!0;return e.map((function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,o=t[3].length,t):(n+r+o!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(i=!1),n>t[1].length&&(n=t[1].length),r<t[2].length&&(r=t[2].length),o>t[3].length&&(o=t[3].length),t):[e]})).map(t?u:i?a?function(e){return e[2]?s(n+r-e[2].length)+e[2]+s(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:u:function(e){return e[2]?s(n)+e[2]+s(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function s(e){return l.stringRepeat(" ",e)}function u(e){return e[2]?s(n)+e[2]+s(r-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(f.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=h,e("./config").defineOptions(f.prototype,"editor",{enableMultiselect:{set:function(e){h(this),e?this.on("mousedown",a):this.off("mousedown",a)},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})})),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../../range").Range,o=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var o=/\S/,i=e.getLine(t),a=i.search(o);if(-1!=a){for(var s=n||i.length,l=e.getLength(),u=t,c=t;++t<l;){var d=e.getLine(t).search(o);if(-1!=d){if(d<=a){var f=e.getTokenAt(t,0);if(!f||"string"!==f.type)break}c=t}}if(c>u){var h=e.getLine(c).length;return new r(u,s,c,h)}}},this.openingBracketBlock=function(e,t,n,o,i){var a={row:n,column:o+1},s=e.$findClosingBracket(t,a,i);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,o,i){var a={row:n,column:o},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(o.prototype)})),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],(function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,o=e("../lib/dom"),i=e("../range").Range,a=e("../config").nls;t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var s=e.getCursorPosition(),l=s.row,u=n.widgetManager.getWidgetsAtRow(l).filter((function(e){return"errorMarker"==e.type}))[0];u?u.destroy():l-=t;var c,d=function(e,t,n){var r=e.getAnnotations().sort(i.comparePoints);if(r.length){var o=function(e,t,n){for(var r=0,o=e.length-1;r<=o;){var i=r+o>>1,a=n(t,e[i]);if(a>0)r=i+1;else{if(!(a<0))return i;o=i-1}}return-(r+1)}(r,{row:t,column:-1},i.comparePoints);o<0&&(o=-o-1),o>=r.length?o=n>0?0:r.length-1:0===o&&n<0&&(o=r.length-1);var a=r[o];if(a&&n){if(a.row===t){do{a=r[o+=n]}while(a&&a.row===t);if(!a)return r.slice()}var s=[];t=a.row;do{s[n<0?"unshift":"push"](a),a=r[o+=n]}while(a&&a.row==t);return s.length&&s}}}(n,l,t);if(d){var f=d[0];s.column=(f.pos&&"number"!=typeof f.column?f.pos.sc:f.column)||0,s.row=f.row,c=e.renderer.$gutterLayer.$annotations[s.row]}else{if(u)return;c={text:[a("Looks good!")],className:"ace_ok"}}e.session.unfold(s.row),e.selection.moveToPosition(s);var h={row:s.row,fixedWidth:!0,coverGutter:!0,el:o.createElement("div"),type:"errorMarker"},p=h.el.appendChild(o.createElement("div")),g=h.el.appendChild(o.createElement("div"));g.className="error_widget_arrow "+c.className;var m=e.renderer.$cursorLayer.getPixelPosition(s).left;g.style.left=m+e.renderer.gutterWidth-5+"px",h.el.className="error_widget_wrapper",p.className="error_widget "+c.className,p.innerHTML=c.text.join("<br>"),p.appendChild(o.createElement("div"));var v=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return h.destroy(),{command:"null"}};h.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(v),n.widgetManager.removeLineWidget(h),e.off("changeSelection",h.destroy),e.off("changeSession",h.destroy),e.off("mouseup",h.destroy),e.off("change",h.destroy))},e.keyBinding.addKeyboardHandler(v),e.on("changeSelection",h.destroy),e.on("changeSession",h.destroy),e.on("mouseup",h.destroy),e.on("change",h.destroy),e.session.widgetManager.addLineWidget(h),h.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:h.el.offsetHeight})},o.importCssString("\n    .error_widget_wrapper {\n        background: inherit;\n        color: inherit;\n        border:none\n    }\n    .error_widget {\n        border-top: solid 2px;\n        border-bottom: solid 2px;\n        margin: 5px 0;\n        padding: 10px 40px;\n        white-space: pre-wrap;\n    }\n    .error_widget.ace_error, .error_widget_arrow.ace_error{\n        border-color: #ff5a5a\n    }\n    .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n        border-color: #F1D817\n    }\n    .error_widget.ace_info, .error_widget_arrow.ace_info{\n        border-color: #5a5a5a\n    }\n    .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n        border-color: #5aaa5a\n    }\n    .error_widget_arrow {\n        position: absolute;\n        border: solid 5px;\n        border-top-color: transparent!important;\n        border-right-color: transparent!important;\n        border-left-color: transparent!important;\n        top: -5px;\n    }\n","error_marker.css",!1)})),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],(function(e,t,n){"use strict";e("./loader_build")(t);var r=e("./lib/dom"),o=e("./range").Range,i=e("./editor").Editor,a=e("./edit_session").EditSession,s=e("./undomanager").UndoManager,l=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,n){if("string"==typeof e){var o=e;if(!(e=document.getElementById(o)))throw new Error("ace.edit can't find div #"+o)}if(e&&e.env&&e.env.editor instanceof i)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var s=e;a=s.value,e=r.createElement("pre"),s.parentNode.replaceChild(e,s)}else e&&(a=e.textContent,e.innerHTML="");var u=t.createEditSession(a),c=new i(new l(e),u,n),d={document:u,editor:c,onResize:c.resize.bind(c,null)};return s&&(d.textarea=s),c.on("destroy",(function(){d.editor.container.env=null})),c.container.env=c.env=d,c},t.createEditSession=function(e,t){var n=new a(e,t);return n.setUndoManager(new s),n},t.Range=o,t.Editor=i,t.EditSession=a,t.UndoManager=s,t.VirtualRenderer=l,t.version=t.config.version})),ace.require(["ace/ace"],(function(t){t&&(t.config.init(!0),t.define=ace.define);var n=function(){return this}();for(var r in n||"undefined"==typeof window||(n=window),n||"undefined"==typeof self||(n=self),n.ace||(n.ace=t),t)t.hasOwnProperty(r)&&(n.ace[r]=t[r]);n.ace.default=n.ace,e&&(e.exports=n.ace)}))},59910:(e,t,n)=>{e=n.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],(function(e,t,n){"use strict";var r=e("./lib/dom"),o=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,a=e("./lib/lang"),s=e("./range").Range,l=e("./range_list").RangeList,u=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,d=e("./clipboard"),f={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var r=e.session.getTextRange();return n?r.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):r},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return d.getText&&d.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:h.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:h.bind(null,{year:"2-digit"}),CURRENT_MONTH:h.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:h.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:h.bind(null,{month:"short"}),CURRENT_DATE:h.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:h.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:h.bind(null,{weekday:"short"}),CURRENT_HOUR:h.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:h.bind(null,{minute:"2-digit"}),CURRENT_SECOND:h.bind(null,{second:"2-digit"})};function h(e){var t=(new Date).toLocaleString("en-us",e);return 1==t.length?"0"+t:t}f.SELECTED_TEXT=f.SELECTION;var p=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=f}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return e=e.substr(1),/^\d+$/.test(e)?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function n(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var r={regex:"/("+n("/")+"+)/",onMatch:function(e,t,n){var r=n[0];return r.fmtString=!0,r.guard=e.slice(1,-1),r.flag="",""},next:"formatString"};return e.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return("}"==r&&n.length||-1!="`$\\".indexOf(r))&&(e=r),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,n,r){var o=t(e.substr(1));return r.unshift(o[0]),o},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+n("\\|")+"*\\|",onMatch:function(e,t,n){var r=e.slice(1,-1).replace(/\\[,|\\]|,/g,(function(e){return 2==e.length?e[1]:"\0"})).split("\0").map((function(e){return{value:e}}));return n[0].choices=r,[r[0]]},next:"start"},r,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var r=e[1];return"}"==r&&n.length||-1!="`$\\".indexOf(r)?e=r:"n"==r?e="\n":"t"==r?e="\t":-1!="ulULE".indexOf(r)&&(e={changeCase:r,local:r>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var r=n.shift();return r&&(r.flag=e.slice(1,-1)),this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var r={text:e.slice(2)};return n.unshift(r),[r]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var r=n.shift();return this.next=r&&r.tabstopId?"start":"",[r||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},r,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map((function(e){return e.value||e}))},e.prototype.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var r=this.variables[t];return"function"==typeof r&&(r=this.variables[t](e,t,n)),null==r?"":r},e.prototype.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var r=t.flag||"",o=t.guard;o=new RegExp(o,r.replace(/[^gim]/g,""));var i="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,a=this,s=e.replace(o,(function(){var e=a.variables.__;a.variables.__=[].slice.call(arguments);for(var t=a.resolveVariables(i,n),r="E",o=0;o<t.length;o++){var s=t[o];if("object"==typeof s)if(t[o]="",s.changeCase&&s.local){var l=t[o+1];l&&"string"==typeof l&&("u"==s.changeCase?t[o]=l[0].toUpperCase():t[o]=l[0].toLowerCase(),t[o+1]=l.substr(1))}else s.changeCase&&(r=s.changeCase);else"U"==r?t[o]=s.toUpperCase():"L"==r&&(t[o]=s.toLowerCase())}return a.variables.__=e,t.join("")}));return s},e.prototype.tmFormatFunction=function(e,t,n){return"upcase"==t.formatFunction?e.toUpperCase():"downcase"==t.formatFunction?e.toLowerCase():e},e.prototype.resolveVariables=function(e,t){for(var n=[],r="",o=!0,i=0;i<e.length;i++){var a=e[i];if("string"!=typeof a){if(a){if(o=!1,a.fmtString){var s=e.indexOf(a,i+1);-1==s&&(s=e.length),a.fmt=e.slice(i+1,s),i=s}if(a.text){var l=this.getVariableValue(t,a.text,r)+"";a.fmtString&&(l=this.tmStrFormat(l,a,t)),a.formatFunction&&(l=this.tmFormatFunction(l,a,t)),l&&!a.ifEnd?(n.push(l),u(a)):!l&&a.ifEnd&&u(a.ifEnd)}else a.elseEnd?u(a.elseEnd):(null!=a.tabstopId||null!=a.changeCase)&&n.push(a)}}else n.push(a),"\n"==a?(o=!0,r=""):o&&(r=/^\t*/.exec(a)[0],o=/\S/.test(a))}function u(t){var n=e.indexOf(t,i+1);-1!=n&&(i=n)}return n},e.prototype.getDisplayTextForSnippet=function(e,t){return g.call(this,e,t).text},e.prototype.insertSnippetForSelection=function(e,t,n){void 0===n&&(n={});var r=g.call(this,e,t,n),o=e.getSelectionRange(),i=e.session.replace(o,r.text),a=new m(e),s=e.inVirtualSelectionMode&&e.selection.index;a.addTabstops(r.tabstops,o.start,i,s)},e.prototype.insertSnippet=function(e,t,n){void 0===n&&(n={});var r=this;if(e.inVirtualSelectionMode)return r.insertSnippetForSelection(e,t,n);e.forEachSelection((function(){r.insertSnippetForSelection(e,t,n)}),null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},e.prototype.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),r=e.session.getState(n.row);"object"==typeof r&&(r=r[0]),r.substring&&("js-"==r.substring(0,3)?t="javascript":"css-"==r.substring(0,4)?t="css":"php-"==r.substring(0,4)&&(t="php"))}return t},e.prototype.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],r=this.snippetMap;return r[t]&&r[t].includeScopes&&n.push.apply(n,r[t].includeScopes),n.push("_"),n},e.prototype.expandWithTab=function(e,t){var n=this,r=e.forEachSelection((function(){return n.expandSnippetForSelection(e,t)}),null,{keepOrder:!0});return r&&e.tabstopManager&&e.tabstopManager.tabNext(),r},e.prototype.expandSnippetForSelection=function(e,t){var n,r=e.getCursorPosition(),o=e.session.getLine(r.row),i=o.substring(0,r.column),a=o.substr(r.column),s=this.snippetMap;return this.getActiveScopes(e).some((function(e){var t=s[e];return t&&(n=this.findMatchingSnippet(t,i,a)),!!n}),this),!!n&&(t&&t.dryRun||(e.session.doc.removeInLine(r.row,r.column-n.replaceBefore.length,r.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null),!0)},e.prototype.findMatchingSnippet=function(e,t,n){for(var r=e.length;r--;){var o=e[r];if((!o.startRe||o.startRe.test(t))&&((!o.endRe||o.endRe.test(n))&&(o.startRe||o.endRe)))return o.matchBefore=o.startRe?o.startRe.exec(t):[""],o.matchAfter=o.endRe?o.endRe.exec(n):[""],o.replaceBefore=o.triggerRe?o.triggerRe.exec(t)[0]:"",o.replaceAfter=o.endTriggerRe?o.endTriggerRe.exec(n)[0]:"",o}},e.prototype.register=function(e,t){var n=this.snippetMap,r=this.snippetNameMap,o=this;function i(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function s(e,t,n){return e=i(e),t=i(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),t=e.scope,n[t]||(n[t]=[],r[t]={});var i=r[t];if(e.name){var l=i[e.name];l&&o.unregister(l),i[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=a.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=s(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=s(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}e||(e=[]),Array.isArray(e)?e.forEach(l):Object.keys(e).forEach((function(t){l(e[t])})),this._signal("registerSnippets",{scope:t})},e.prototype.unregister=function(e,t){var n=this.snippetMap,r=this.snippetNameMap;function o(e){var o=r[e.scope||t];if(o&&o[e.name]){delete o[e.name];var i=n[e.scope||t],a=i&&i.indexOf(e);a>=0&&i.splice(a,1)}}e.content?o(e):Array.isArray(e)&&e.forEach(o)},e.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],r={},o=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=o.exec(e);){if(t[1])try{r=JSON.parse(t[1]),n.push(r)}catch(e){}if(t[4])r.content=t[4].replace(/^\t/gm,""),n.push(r),r={};else{var i=t[2],a=t[3];if("regex"==i){var s=/\/((?:[^\/\\]|\\.)*)|$/g;r.guard=s.exec(a)[1],r.trigger=s.exec(a)[1],r.endTrigger=s.exec(a)[1],r.endGuard=s.exec(a)[1]}else"snippet"==i?(r.tabTrigger=a.match(/^\S*/)[0],r.name||(r.name=a)):i&&(r[i]=a)}}return n},e.prototype.getSnippetByName=function(e,t){var n,r=this.snippetNameMap;return this.getActiveScopes(t).some((function(t){var o=r[t];return o&&(n=o[e]),!!n}),this),n},e}();o.implement(p.prototype,i);var g=function(e,t,n){void 0===n&&(n={});var r=e.getCursorPosition(),o=e.session.getLine(r.row),i=e.session.getTabString(),a=o.match(/^\s*/)[0];r.column<a.length&&(a=a.slice(0,r.column)),t=t.replace(/\r/g,"");var s=this.tokenizeTmSnippet(t);s=(s=this.resolveVariables(s,e)).map((function(e){return"\n"!=e||n.excludeExtraIndent?"string"==typeof e?e.replace(/\t/g,i):e:e+a}));var l=[];s.forEach((function(e,t){if("object"==typeof e){var n=e.tabstopId,r=l[n];if(r||((r=l[n]=[]).index=n,r.value="",r.parents={}),-1===r.indexOf(e)){e.choices&&!r.choices&&(r.choices=e.choices),r.push(e);var o=s.indexOf(e,t+1);if(-1!==o){var i=s.slice(t+1,o);i.some((function(e){return"object"==typeof e}))&&!r.value?r.value=i:!i.length||r.value&&"string"==typeof r.value||(r.value=i.join(""))}}}})),l.forEach((function(e){e.length=0}));var u={};function c(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if("object"==typeof r){if(u[r.tabstopId])continue;r=t[e.lastIndexOf(r,n-1)]||{tabstopId:r.tabstopId}}t[n]=r}return t}for(var d=0;d<s.length;d++){var f=s[d];if("object"==typeof f){var h=f.tabstopId,p=l[h],g=s.indexOf(f,d+1);if(u[h])u[h]===f&&(delete u[h],Object.keys(u).forEach((function(e){p.parents[e]=!0})));else{u[h]=f;var m=p.value;"string"!=typeof m?m=c(m):f.fmt&&(m=this.tmStrFormat(m,f,e)),s.splice.apply(s,[d+1,Math.max(0,g-d)].concat(m,f)),-1===p.indexOf(f)&&p.push(f)}}}var v=0,y=0,b="";return s.forEach((function(e){if("string"==typeof e){var t=e.split("\n");t.length>1?(y=t[t.length-1].length,v+=t.length-1):y+=e.length,b+=e}else e&&(e.start?e.end={row:v,column:y}:e.start={row:v,column:y})})),{text:b,tabstops:l,tokens:s}},m=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=a.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},r=n.parents||{},o=this.tabstops.slice(),i=0;i<o.length;i++){var a=o[i],s=a==n||r[a.index];if(a.rangeList.$bias=s?0:1,"remove"==e.action&&a!==n){var l=a.parents&&a.parents[n.index],u=a.rangeList.pointIndex(e.start,l);u=u<0?-u-1:u+1;var c=a.rangeList.pointIndex(e.end,l);c=c<0?-c-1:c-1;for(var d=a.rangeList.ranges.slice(u,c),f=0;f<d.length;f++)this.removeRange(d[f])}a.rangeList.$onChange(e)}var h=this.session;this.$inChange||!t||1!=h.getLength()||h.getValue()||this.detach()},e.prototype.updateLinkedFields=function(){var e=this.selectedTabstop;if(e&&e.hasLinkedRanges&&e.firstNonLinked){this.$inChange=!0;for(var n=this.session,r=n.getTextRange(e.firstNonLinked),o=0;o<e.length;o++){var i=e[o];if(i.linked){var a=i.original,s=t.snippetManager.tmStrFormat(r,a,this.editor);n.replace(i,s)}}this.$inChange=!1}},e.prototype.onAfterExec=function(e){e.command&&!e.command.readOnly&&this.updateLinkedFields()},e.prototype.onChangeSelection=function(){if(this.editor){for(var e=this.editor.selection.lead,t=this.editor.selection.anchor,n=this.editor.selection.isEmpty(),r=0;r<this.ranges.length;r++)if(!this.ranges[r].linked){var o=this.ranges[r].contains(e.row,e.column),i=n||this.ranges[r].contains(t.row,t.column);if(o&&i)return}this.detach()}},e.prototype.onChangeSession=function(){this.detach()},e.prototype.tabNext=function(e){var t=this.tabstops.length,n=this.index+(e||1);(n=Math.min(Math.max(n,1),t))==t&&(n=0),this.selectTabstop(n),0===n&&this.detach()},e.prototype.selectTabstop=function(e){this.$openTabstops=null;var t=this.tabstops[this.index];if(t&&this.addTabstopMarkers(t),this.index=e,(t=this.tabstops[this.index])&&t.length){this.selectedTabstop=t;var n=t.firstNonLinked||t;if(t.choices&&(n.cursor=n.start),this.editor.inVirtualSelectionMode)this.editor.selection.fromOrientedRange(n);else{var r=this.editor.multiSelect;r.toSingleRange(n);for(var o=0;o<t.length;o++)t.hasLinkedRanges&&t[o].linked||r.addRange(t[o].clone(),!0)}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler),this.selectedTabstop&&this.selectedTabstop.choices&&this.editor.execCommand("startAutocomplete",{matches:this.selectedTabstop.choices})}},e.prototype.addTabstops=function(e,t,n){var r=this.useLink||!this.editor.getOption("enableMultiselect");if(this.$openTabstops||(this.$openTabstops=[]),!e[0]){var o=s.fromPoints(n,n);y(o.start,t),y(o.end,t),e[0]=[o],e[0].index=0}var i=[this.index+1,0],a=this.ranges;e.forEach((function(e,n){for(var o=this.$openTabstops[n]||e,u=0;u<e.length;u++){var c=e[u],d=s.fromPoints(c.start,c.end||c.start);v(d.start,t),v(d.end,t),d.original=c,d.tabstop=o,a.push(d),o!=e?o.unshift(d):o[u]=d,c.fmtString||o.firstNonLinked&&r?(d.linked=!0,o.hasLinkedRanges=!0):o.firstNonLinked||(o.firstNonLinked=d)}o.firstNonLinked||(o.hasLinkedRanges=!1),o===e&&(i.push(o),this.$openTabstops[n]=o),this.addTabstopMarkers(o),o.rangeList=o.rangeList||new l,o.rangeList.$bias=0,o.rangeList.addList(o)}),this),i.length>2&&(this.tabstops.length&&i.push(i.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,i))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))}))},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach((function(e){t.removeMarker(e.markerId),e.markerId=null}))},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();m.prototype.keyboardHandler=new u,m.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var v=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},y=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};r.importCssString("\n.ace_snippet-marker {\n    -moz-box-sizing: border-box;\n    box-sizing: border-box;\n    background: rgba(194, 193, 208, 0.09);\n    border: 1px dotted rgba(211, 208, 235, 0.62);\n    position: absolute;\n}","snippets.css",!1),t.snippetManager=new p;var b=e("./editor").Editor;(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(b.prototype)})),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],(function(e,t,n){"use strict";var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),s=e("../lib/lang"),l=e("../lib/dom"),u=e("../config").nls,c=function(e){return"suggest-aria-id:".concat(e)},d=function(e){var t=new r(e);t.$maxLines=4;var n=new o(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n},f=function(e){var t=l.createElement("div"),n=new d(t);e&&e.appendChild(t),t.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.renderer.$textLayer.element.setAttribute("role","listbox"),n.renderer.$textLayer.element.setAttribute("aria-label",u("Autocomplete suggestions")),n.renderer.textarea.setAttribute("aria-hidden","true"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r,o=function(){};n.focus=o,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=o,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",(function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),h.start.row=h.end.row=t.row,e.stop()}));var f=new i(-1,0,-1,1/0),h=new i(-1,0,-1,1/0);h.id=n.session.addMarker(h,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?f.id&&(n.session.removeMarker(f.id),f.id=null):f.id=n.session.addMarker(f,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",(function(e){if(r){if(r.x!=e.x||r.y!=e.y){(r=e).scrollTop=n.renderer.scrollTop;var t=r.getDocumentPosition().row;f.start.row!=t&&(f.id||n.setRow(t),g(t))}}else r=e})),n.renderer.on("beforeRender",(function(){if(r&&-1!=f.start.row){r.$pos=null;var e=r.getDocumentPosition().row;f.id||n.setRow(e),g(e,!0)}})),n.renderer.on("afterRender",(function(){var e=n.getRow(),t=n.renderer.$textLayer,r=t.element.childNodes[e-t.config.firstRow],o=document.activeElement;if(r!==t.selectedNode&&t.selectedNode&&(l.removeCssClass(t.selectedNode,"ace_selected"),o.removeAttribute("aria-activedescendant"),t.selectedNode.removeAttribute("id")),t.selectedNode=r,r){l.addCssClass(r,"ace_selected");var i=c(e);r.id=i,t.element.setAttribute("aria-activedescendant",i),o.setAttribute("aria-activedescendant",i),r.setAttribute("role","option"),r.setAttribute("aria-label",n.getData(e).value),r.setAttribute("aria-setsize",n.data.length),r.setAttribute("aria-posinset",e+1),r.setAttribute("aria-describedby","doc-tooltip")}}));var p=function(){g(-1)},g=function(e,t){e!==f.start.row&&(f.start.row=f.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return f.start.row},a.addListener(n.container,"mouseout",p),n.on("hide",p),n.on("changeSelection",p),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var m=n.session.bgTokenizer;return m.$tokenizeRow=function(e){var t=n.data[e],r=[];if(!t)return r;"string"==typeof t&&(t={value:t});var o=t.caption||t.value||t.name;function i(e,n){e&&r.push({type:(t.className||"")+(n||""),value:e})}for(var a=o.toLowerCase(),s=(n.filterText||"").toLowerCase(),l=0,u=0,c=0;c<=s.length;c++)if(c!=u&&(t.matchMask&1<<c||c==s.length)){var d=s.slice(u,c);u=c;var f=a.indexOf(d,l);if(-1==f)continue;i(o.slice(l,f),""),l=f+d.length,i(o.slice(f,l),"completion-highlight")}return i(o.slice(l,o.length),""),r.push({type:"completion-spacer",value:" "}),t.meta&&r.push({type:"completion-meta",value:t.meta}),t.message&&r.push({type:"completion-message",value:t.message}),r},m.$updateOnChange=o,m.start=o,n.session.$computeWidth=function(){return this.screenWidth=0},n.isOpen=!1,n.isTopdown=!1,n.autoSelect=!0,n.filterText="",n.data=[],n.setData=function(e,t){n.filterText=t||"",n.setValue(s.stringRepeat("\n",e.length),-1),n.data=e||[],n.setRow(0)},n.getData=function(e){return n.data[e]},n.getRow=function(){return h.start.row},n.setRow=function(e){e=Math.max(this.autoSelect?0:-1,Math.min(this.data.length-1,e)),h.start.row!=e&&(n.selection.clearSelection(),h.start.row=h.end.row=e||0,n.session._emit("changeBackMarker"),n.moveCursorTo(e||0,0),n.isOpen&&n._signal("select"))},n.on("changeSelection",(function(){n.isOpen&&n.setRow(n.selection.lead.row),n.renderer.scrollCursorIntoView()})),n.hide=function(){this.container.style.display="none",n.anchorPos=null,n.anchor=null,n.isOpen&&(n.isOpen=!1,this._signal("hide"))},n.tryShow=function(e,t,o,i){if(!i&&n.isOpen&&n.anchorPos&&n.anchor&&n.anchorPos.top===e.top&&n.anchorPos.left===e.left&&n.anchor===o)return!0;var a=this.container,s=window.innerHeight,l=window.innerWidth,u=this.renderer,c=u.$maxLines*t*1.4,d={top:0,bottom:0,left:0},f=s-e.top-3*this.$borderSize-t,h=e.top-3*this.$borderSize;o||(o=h<=f||f>=c?"bottom":"top"),"top"===o?(d.bottom=e.top-this.$borderSize,d.top=d.bottom-c):"bottom"===o&&(d.top=e.top+t+this.$borderSize,d.bottom=d.top+c);var p=d.top>=0&&d.bottom<=s;if(!i&&!p)return!1;u.$maxPixelHeight=p?null:"top"===o?h:f,"top"===o?(a.style.top="",a.style.bottom=s-d.bottom+"px",n.isTopdown=!1):(a.style.top=d.top+"px",a.style.bottom="",n.isTopdown=!0),a.style.display="";var g=e.left;return g+a.offsetWidth>l&&(g=l-a.offsetWidth),a.style.left=g+"px",a.style.right="",n.isOpen||(n.isOpen=!0,this._signal("show"),r=null),n.anchorPos=e,n.anchor=o,!0},n.show=function(e,t,n){this.tryShow(e,t,n?"bottom":void 0,!0)},n.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n};l.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n    background-color: #CAD6FA;\n    z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n    background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n    border: 1px solid #abbffe;\n    margin-top: -1px;\n    background: rgba(233,233,253,0.4);\n    position: absolute;\n    z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n    border: 1px solid rgba(109, 150, 13, 0.8);\n    background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n    opacity: 0.5;\n    margin-left: 0.9em;\n}\n.ace_completion-message {\n    color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n    color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n    color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n    width: 300px;\n    z-index: 200000;\n    border: 1px lightgray solid;\n    position: fixed;\n    box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n    line-height: 1.4;\n    background: #fefefe;\n    color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n    border: 1px #484747 solid;\n    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n    line-height: 1.4;\n    background: #25282c;\n    color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer  {\n    width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n    display: flex;\n    align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n    min-width: 0;\n    flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n    flex: 0 1 auto;\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n    flex: 1;\n}\n","autocompletion.css",!1),t.AcePopup=f,t.$singleLineEditor=d,t.getAriaId=c})),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,o=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,n){if(n=n||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null),!e||!t)return!1;var o=t.snippet?r.getDisplayTextForSnippet(e,t.snippet):t.value;return!(t.hideInlinePreview||!o||!o.startsWith(n))&&(this.editor=e,""===(o=o.slice(n.length))?e.removeGhostText():e.setGhostText(o),!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null},e}();t.AceInline=o})),ace.define("ace/autocomplete/util",["require","exports","module"],(function(e,t,n){"use strict";t.parForEach=function(e,t,n){var r=0,o=e.length;0===o&&n();for(var i=0;i<o;i++)t(e[i],(function(e,t){++r===o&&n(e,t)}))};var r=/[a-zA-Z_0-9\$\-\u00A2-\u2000\u2070-\uFFFF]/;t.retrievePrecedingIdentifier=function(e,t,n){n=n||r;for(var o=[],i=t-1;i>=0&&n.test(e[i]);i--)o.push(e[i]);return o.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||r;for(var o=[],i=t;i<e.length&&n.test(e[i]);i++)o.push(e[i]);return o},t.getCompletionPrefix=function(e){var t,n=e.getCursorPosition(),r=e.session.getLine(n.row);return e.completers.forEach(function(e){e.identifierRegexps&&e.identifierRegexps.forEach(function(e){!t&&e&&(t=this.retrievePrecedingIdentifier(r,n.column,e))}.bind(this))}.bind(this)),t||this.retrievePrecedingIdentifier(r,n.column)},t.triggerAutocomplete=function(e){var t=e.getCursorPosition(),n=e.session.getLine(t.row)[0===t.column?0:t.column-1];return e.completers.some((function(e){if(e.triggerCharacters&&Array.isArray(e.triggerCharacters))return e.triggerCharacters.includes(n)}))}})),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/inline","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/lang","ace/lib/dom","ace/snippets","ace/config"],(function(e,t,n){"use strict";var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/inline").AceInline,a=e("./autocomplete/popup").getAriaId,s=e("./autocomplete/util"),l=e("./lib/lang"),u=e("./lib/dom"),c=e("./snippets").snippetManager,d=e("./config"),f=function(e,t){t.completer&&t.completer.destroy()},h=function(){function e(){this.autoInsert=!1,this.autoSelect=!0,this.autoShown=!1,this.exactMatch=!1,this.inlineEnabled=!1,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.parentNode=null,this.setSelectOnHover=!1,this.stickySelectionDelay=500,this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.onLayoutChange=this.onLayoutChange.bind(this),this.changeTimer=l.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=l.delayedCall(this.updateDocTooltip.bind(this),50),this.stickySelectionTimer=l.delayedCall(function(){this.stickySelection=!0}.bind(this),this.stickySelectionDelay)}return e.prototype.$init=function(){return this.popup=new o(this.parentNode||document.body||document.documentElement),this.popup.on("click",function(e){this.insertMatch(),e.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.$onPopupShow.bind(this)),this.popup.on("hide",this.$onHidePopup.bind(this)),this.popup.on("select",this.$onPopupChange.bind(this)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},e.prototype.$initInline=function(){if(this.inlineEnabled&&!this.inlineRenderer)return this.inlineRenderer=new i,this.inlineRenderer},e.prototype.getPopup=function(){return this.popup||this.$init()},e.prototype.$onHidePopup=function(){this.inlineRenderer&&this.inlineRenderer.hide(),this.hideDocTooltip(),this.stickySelectionTimer.cancel(),this.stickySelection=!1},e.prototype.$onPopupChange=function(e){if(this.inlineRenderer&&this.inlineEnabled){var t=e?null:this.popup.getData(this.popup.getRow()),n=s.getCompletionPrefix(this.editor);this.inlineRenderer.show(this.editor,t,n)||this.inlineRenderer.hide(),this.$updatePopupPosition()}this.tooltipTimer.call(null,null)},e.prototype.$onPopupShow=function(e){this.$onPopupChange(e),this.stickySelection=!1,this.stickySelectionDelay>=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},e.prototype.observeLayoutChanges=function(){if(!this.$elements&&this.editor){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var e=this.editor.container.parentNode,t=[];e;)t.push(e),e.addEventListener("scroll",this.onLayoutChange,{passive:!0}),e=e.parentNode;this.$elements=t}},e.prototype.unObserveLayoutChanges=function(){var e=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach((function(t){t.removeEventListener("scroll",e.onLayoutChange,{passive:!0})})),this.$elements=null},e.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},e.prototype.$updatePopupPosition=function(){var e=this.editor,t=e.renderer,n=t.layerConfig.lineHeight,r=t.$cursorLayer.getPixelPosition(this.base,!0);r.left-=this.popup.getTextLeftOffset();var o=e.container.getBoundingClientRect();r.top+=o.top-t.layerConfig.offset,r.left+=o.left-e.renderer.scrollLeft,r.left+=t.gutterWidth;var i={top:r.top,left:r.left};t.$ghostText&&t.$ghostTextWidget&&this.base.row===t.$ghostText.position.row&&(i.top+=t.$ghostTextWidget.el.offsetHeight),this.popup.tryShow(i,n,"bottom")||this.popup.tryShow(r,n,"top")||this.popup.show(r,n)},e.prototype.openPopup=function(e,t,n){this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var r=this.popup.data[this.popup.getRow()];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:a(this.popup.getRow()),inline:this.inlineEnabled}),e.keyBinding.addKeyboardHandler(this.keyboardHandler);var o=this.popup.data.indexOf(r);o&&this.stickySelection?this.popup.setRow(this.autoSelect?o:-1):this.popup.setRow(this.autoSelect?0:-1),n?n&&!t&&this.detach():(this.popup.setTheme(e.getTheme()),this.popup.setFontSize(e.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},e.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},e.prototype.changeListener=function(e){var t=this.editor.selection.lead;(t.row!=this.base.row||t.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},e.prototype.blurListener=function(e){var t=document.activeElement,n=this.editor.textInput.getElement(),r=e.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(e.relatedTarget),o=this.popup&&this.popup.container;t==n||t.parentNode==o||r||t==this.tooltipNode||e.relatedTarget==n||this.detach()},e.prototype.mousedownListener=function(e){this.detach()},e.prototype.mousewheelListener=function(e){this.detach()},e.prototype.goTo=function(e){this.popup.goTo(e)},e.prototype.insertMatch=function(e,t){if(e||(e=this.popup.getData(this.popup.getRow())),!e)return!1;if(""===e.value)return this.detach();var n=this.completions,r=this.getCompletionProvider().insertMatch(this.editor,e,n.filterText,t);return this.completions==n&&this.detach(),r},e.prototype.showPopup=function(e,t){this.editor&&this.detach(),this.activated=!0,this.editor=e,e.completer!=this&&(e.completer&&e.completer.detach(),e.completer=this),e.on("changeSelection",this.changeListener),e.on("blur",this.blurListener),e.on("mousedown",this.mousedownListener),e.on("mousewheel",this.mousewheelListener),this.updateCompletions(!1,t)},e.prototype.getCompletionProvider=function(e){return this.completionProvider||(this.completionProvider=new p(e)),this.completionProvider},e.prototype.gatherCompletions=function(e,t){return this.getCompletionProvider().gatherCompletions(e,t)},e.prototype.updateCompletions=function(e,t){if(e&&this.base&&this.completions){var n=this.editor.getCursorPosition();if((o=this.editor.session.getTextRange({start:this.base,end:n}))==this.completions.filterText)return;return this.completions.setFilter(o),this.completions.filtered.length?1!=this.completions.filtered.length||this.completions.filtered[0].value!=o||this.completions.filtered[0].snippet?void this.openPopup(this.editor,o,e):this.detach():this.detach()}if(t&&t.matches){n=this.editor.getSelectionRange().start;return this.base=this.editor.session.doc.createAnchor(n.row,n.column),this.base.$insertRight=!0,this.completions=new g(t.matches),this.openPopup(this.editor,"",e)}var r=this.editor.getSession(),o=(n=this.editor.getCursorPosition(),s.getCompletionPrefix(this.editor));this.base=r.doc.createAnchor(n.row,n.column-o.length),this.base.$insertRight=!0;var i={exactMatch:this.exactMatch};this.getCompletionProvider({prefix:o,pos:n}).provideCompletions(this.editor,i,function(t,n,r){var o=n.filtered,i=s.getCompletionPrefix(this.editor);if(r){if(!o.length){var a=!this.autoShown&&this.emptyMessage;if("function"==typeof a&&(a=this.emptyMessage(i)),a){var l=[{caption:this.emptyMessage(i),value:""}];return this.completions=new g(l),void this.openPopup(this.editor,i,e)}return this.detach()}if(1==o.length&&o[0].value==i&&!o[0].snippet)return this.detach();if(this.autoInsert&&!this.autoShown&&1==o.length)return this.insertMatch(o[0])}this.completions=n,this.openPopup(this.editor,i,e)}.bind(this))},e.prototype.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},e.prototype.updateDocTooltip=function(){var e=this.popup,t=e.data,n=t&&(t[e.getHoveredRow()]||t[e.getRow()]),r=null;if(!n||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();for(var o=this.editor.completers.length,i=0;i<o;i++){var a=this.editor.completers[i];if(a.getDocTooltip&&n.completerId===a.id){r=a.getDocTooltip(n);break}}if(r||"string"==typeof n||(r=n),"string"==typeof r&&(r={docText:r}),!r||!r.docHTML&&!r.docText)return this.hideDocTooltip();this.showDocTooltip(r)},e.prototype.showDocTooltip=function(e){this.tooltipNode||(this.tooltipNode=u.createElement("div"),this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this),this.tooltipNode.id="doc-tooltip",this.tooltipNode.setAttribute("role","tooltip"));var t=this.editor.renderer.theme;this.tooltipNode.className="ace_tooltip ace_doc-tooltip "+(t.isDark?"ace_dark ":"")+(t.cssClass||"");var n=this.tooltipNode;e.docHTML?n.innerHTML=e.docHTML:e.docText&&(n.textContent=e.docText),n.parentNode||this.popup.container.appendChild(this.tooltipNode);var r=this.popup,o=r.container.getBoundingClientRect();n.style.top=r.container.style.top,n.style.bottom=r.container.style.bottom,n.style.display="block",window.innerWidth-o.right<320?o.left<320?r.isTopdown?(n.style.top=o.bottom+"px",n.style.left=o.left+"px",n.style.right="",n.style.bottom=""):(n.style.top=r.container.offsetTop-n.offsetHeight+"px",n.style.left=o.left+"px",n.style.right="",n.style.bottom=""):(n.style.right=window.innerWidth-o.left+"px",n.style.left=""):(n.style.left=o.right+1+"px",n.style.right="")},e.prototype.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),this.tooltipNode){var e=this.tooltipNode;this.editor.isFocused()||document.activeElement!=e||this.editor.focus(),this.tooltipNode=null,e.parentNode&&e.parentNode.removeChild(e)}},e.prototype.onTooltipClick=function(e){for(var t=e.target;t&&t!=this.tooltipNode;){if("A"==t.nodeName&&t.href){t.rel="noreferrer",t.target="_blank";break}t=t.parentNode}},e.prototype.destroy=function(){if(this.detach(),this.popup){this.popup.destroy();var e=this.popup.container;e&&e.parentNode&&e.parentNode.removeChild(e)}this.editor&&this.editor.completer==this&&(this.editor.off("destroy",f),this.editor.completer=null),this.inlineRenderer=this.popup=this.editor=null},e}();h.prototype.commands={Up:function(e){e.completer.goTo("up")},Down:function(e){e.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(e){e.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(e){e.completer.goTo("end")},Esc:function(e){e.completer.detach()},Return:function(e){return e.completer.insertMatch()},"Shift-Return":function(e){e.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(e){var t=e.completer.insertMatch();if(t||e.tabstopManager)return t;e.completer.goTo("down")},PageUp:function(e){e.completer.popup.gotoPageUp()},PageDown:function(e){e.completer.popup.gotoPageDown()}},h.for=function(e){return e.completer instanceof h||(e.completer&&(e.completer.destroy(),e.completer=null),d.get("sharedPopups")?(h.$sharedInstance||(h.$sharedInstance=new h),e.completer=h.$sharedInstance):(e.completer=new h,e.once("destroy",f))),e.completer},h.startCommand={name:"startAutocomplete",exec:function(e,t){var n=h.for(e);n.autoInsert=!1,n.autoSelect=!0,n.autoShown=!1,n.showPopup(e,t),n.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var p=function(){function e(e){this.initialPosition=e,this.active=!0}return e.prototype.insertByIndex=function(e,t,n){return!(!this.completions||!this.completions.filtered)&&this.insertMatch(e,this.completions.filtered[t],n)},e.prototype.insertMatch=function(e,t,n){if(!t)return!1;if(e.startOperation({command:{name:"insertMatch"}}),t.completer&&t.completer.insertMatch)t.completer.insertMatch(e,t);else{if(!this.completions)return!1;var r=this.completions.filterText.length,o=0;if(t.range&&t.range.start.row===t.range.end.row&&(r-=this.initialPosition.prefix.length,r+=this.initialPosition.pos.column-t.range.start.column,o+=t.range.end.column-this.initialPosition.pos.column),r||o){var i;i=e.selection.getAllRanges?e.selection.getAllRanges():[e.getSelectionRange()];for(var a,s=0;a=i[s];s++)a.start.column-=r,a.end.column+=o,e.session.remove(a)}t.snippet?c.insertSnippet(e,t.snippet):this.$insertString(e,t),t.command&&"startAutocomplete"===t.command&&e.execCommand(t.command)}return e.endOperation(),!0},e.prototype.$insertString=function(e,t){var n=t.value||t;e.execCommand("insertstring",n)},e.prototype.gatherCompletions=function(e,t){var n=e.getSession(),r=e.getCursorPosition(),o=s.getCompletionPrefix(e),i=[];this.completers=e.completers;var a=e.completers.length;return e.completers.forEach((function(l,u){l.getCompletions(e,n,r,o,(function(n,r){l.hideInlinePreview&&(r=r.map((function(e){return Object.assign(e,{hideInlinePreview:l.hideInlinePreview})}))),!n&&r&&(i=i.concat(r)),t(null,{prefix:s.getCompletionPrefix(e),matches:i,finished:0==--a})}))})),!0},e.prototype.provideCompletions=function(e,t,n){var r=function(e){var r=e.prefix,o=e.matches;this.completions=new g(o),t.exactMatch&&(this.completions.exactMatch=!0),t.ignoreCaption&&(this.completions.ignoreCaption=!0),this.completions.setFilter(r),(e.finished||this.completions.filtered.length)&&n(null,this.completions,e.finished)}.bind(this),o=!0,i=null;if(this.gatherCompletions(e,function(e,t){this.active&&(e&&(n(e,[],!0),this.detach()),0===t.prefix.indexOf(t.prefix)&&(o?i=t:r(t)))}.bind(this)),o=!1,i){var a=i;i=null,r(a)}},e.prototype.detach=function(){this.active=!1,this.completers&&this.completers.forEach((function(e){"function"==typeof e.cancel&&e.cancel()}))},e}(),g=function(){function e(e,t){this.all=e,this.filtered=e,this.filterText=t||"",this.exactMatch=!1,this.ignoreCaption=!1}return e.prototype.setFilter=function(e){if(e.length>this.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else t=this.all;this.filterText=e,t=(t=this.filterCompletions(t,this.filterText)).sort((function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)}));var n=null;t=t.filter((function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)})),this.filtered=t},e.prototype.filterCompletions=function(e,t){var n=[],r=t.toUpperCase(),o=t.toLowerCase();e:for(var i,a=0;i=e[a];a++){var s=!this.ignoreCaption&&i.caption||i.value||i.snippet;if(s){var l,u,c=-1,d=0,f=0;if(this.exactMatch){if(t!==s.substr(0,t.length))continue e}else{var h=s.toLowerCase().indexOf(o);if(h>-1)f=h;else for(var p=0;p<t.length;p++){var g=s.indexOf(o[p],c+1),m=s.indexOf(r[p],c+1);if((l=g>=0&&(m<0||g<m)?g:m)<0)continue e;(u=l-c-1)>0&&(-1===c&&(f+=10),f+=u,d|=1<<p),c=l}}i.matchMask=d,i.exactMatch=f?0:1,i.$score=(i.score||0)-f,n.push(i)}}return n},e}();t.Autocomplete=h,t.CompletionProvider=p,t.FilteredList=g})),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],(function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(e,t){var n=function(e,t){return e.getTextRange(r.fromPoints({row:0,column:0},t)).split(o).length-1}(e,t),i=e.getValue().split(o),a=Object.create(null),s=i[n];return i.forEach((function(e,t){if(e&&e!==s){var r=Math.abs(n-t),o=i.length-r;a[e]?a[e]=Math.max(o,a[e]):a[e]=o}})),a}t.getCompletions=function(e,t,n,r,o){var a=i(t,n);o(null,Object.keys(a).map((function(e){return{caption:e,value:e,score:a[e],meta:"local"}})))}})),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],(function(e,t,n){"use strict";var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),s=e("../autocomplete/util"),l=e("../autocomplete/text_completer"),u={getCompletions:function(e,t,n,r,o){if(t.$mode.completer)return t.$mode.completer.getCompletions(e,t,n,r,o);var i=e.session.getState(n.row),a=t.$mode.getCompletions(i,t,n,r);o(null,a=a.map((function(e){return e.completerId=u.id,e})))},id:"keywordCompleter"},c={getCompletions:function(e,t,n,o,i){var a=[],s=t.getTokenAt(n.row,n.column);s&&s.type.match(/(tag-name|tag-open|tag-whitespace|attribute-name|attribute-value)\.xml$/)?a.push("html-tag"):a=r.getActiveScopes(e);var l=r.snippetMap,u=[];a.forEach((function(e){for(var t=l[e]||[],n=t.length;n--;){var r=t[n],o=r.name||r.tabTrigger;o&&u.push({caption:o,snippet:r.content,meta:r.tabTrigger&&!r.name?r.tabTrigger+"⇥ ":"snippet",completerId:c.id})}}),this),i(null,u)},getDocTooltip:function(e){var t,n;e.snippet&&!e.docHTML&&(e.docHTML=["<b>",a.escapeHTML(e.caption),"</b>","<hr></hr>",a.escapeHTML((t=e.snippet,n={},t.replace(/\${(\d+)(:(.*?))?}/g,(function(e,t,r,o){return n[t]=o||""})).replace(/\$(\d+?)/g,(function(e,t){return n[t]}))))].join(""))},id:"snippetCompleter"},d=[c,l,u];t.setCompleters=function(e){d.length=0,e&&d.push.apply(d,e)},t.addCompleter=function(e){d.push(e)},t.textCompleter=l,t.keyWordCompleter=u,t.snippetCompleter=c;var f,h={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},p=function(e,t){g(t.session.$mode)},g=function(e){"string"==typeof e&&(e=i.$modes[e]),e&&(r.files||(r.files={}),m(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(g))},m=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},i.loadModule(t,(function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach((function(e){g("ace/mode/"+e)}))))})))},v=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!s.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&!n){f=e;var r=e.editor.$liveAutocompletionDelay;r?y.delay(r):b(e)}},y=a.delayedCall((function(){b(f)}),0),b=function(e){var t=e.editor,n=s.getCompletionPrefix(t),r=s.triggerAutocomplete(t);if(n&&n.length>=t.$liveAutocompletionThreshold||r){var i=o.for(t);i.autoShown=!0,i.showPopup(t)}},w=e("../editor").Editor;e("../config").defineOptions(w.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:d),this.commands.on("afterExec",v)):this.commands.off("afterExec",v)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(h),this.on("changeMode",p),p(0,this)):(this.commands.removeCommand(h),this.off("changeMode",p))},value:!1}})})),ace.require(["ace/ext/language_tools"],(function(t){e&&(e.exports=t)}))},57740:(e,t,n)=>{e=n.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],(function(e,t,n){"use strict";var r=e("./lib/oop"),o=(e("./lib/lang"),e("./lib/event_emitter").EventEmitter),i=e("./editor").Editor,a=e("./virtual_renderer").VirtualRenderer,s=e("./edit_session").EditSession,l=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",function(e){this.$cEditor=e}.bind(this))};(function(){r.implement(this,o),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new i(new a(e,this.$theme));return t.on("focus",function(){this._emit("focus",t)}.bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<e;)t=this.$editors[this.$splits],this.$container.appendChild(t.container),t.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<e;)this.$createEditor(),this.$splits++}else for(;this.$splits>e;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach((function(t){t.setTheme(e)}))},this.setKeyboardHandler=function(e){this.$editors.forEach((function(t){t.setKeyboardHandler(e)}))},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach((function(t){t.setFontSize(e)}))},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors[t];var r=this.$editors.some((function(t){return t.session===e}));return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=r+"px",e.container.style.top="0px",e.container.style.left=o*r+"px",e.container.style.height=n+"px",e.resize();else{var i=n/this.$splits;for(o=0;o<this.$splits;o++)(e=this.$editors[o]).container.style.width=t+"px",e.container.style.top=o*i+"px",e.container.style.left="0px",e.container.style.height=i+"px",e.resize()}}}).call(l.prototype),t.Split=l})),ace.define("ace/ext/split",["require","exports","module","ace/split"],(function(e,t,n){"use strict";n.exports=e("../split")})),ace.require(["ace/ext/split"],(function(t){e&&(e.exports=t)}))},56997:(e,t,n)=>{e=n.nmd(e),ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),i=t.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",a=t.supportFunction="rgb|rgba|url|attr|counter|counters",s=t.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",l=t.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",u=t.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=t.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",d=t.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",f=t.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",h=function(){var e=this.createKeywordMapper({"support.function":a,"support.constant":s,"support.type":i,"support.constant.color":l,"support.constant.fonts":u},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:d},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:f},{include:"url"},{token:e,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};r.inherits(h,o),t.CssHighlightRules=h})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,i=e.findMatchingBracket({row:t,column:o});if(!i||i.row==t)return 0;var a=this.$getIndent(e.getLine(i.row));e.replace(new r(t,0,t,o-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/css_completions",["require","exports","module"],(function(e,t,n){"use strict";var r={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},o=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var e=document.createElement("c").style;for(var t in e)if("string"==typeof e[t]){var n=t.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}));r.hasOwnProperty(n)||(r[n]=1)}}this.completionsDefined=!0},this.getCompletions=function(e,t,n,r){if(this.completionsDefined||this.defineCompletions(),"ruleset"===e||"ace/mode/scss"==t.$mode.$id){var o=t.getLine(n.row).substr(0,n.column),i=/\([^)]*$/.test(o);return i&&(o=o.substr(o.lastIndexOf("(")+1)),/:[^;]+$/.test(o)?(/([\w\-]+):[^:]*$/.test(o),this.getPropertyValueCompletions(e,t,n,r)):this.getPropertyCompletions(e,t,n,r,i)}return[]},this.getPropertyCompletions=function(e,t,n,o,i){return i=i||!1,Object.keys(r).map((function(e){return{caption:e,snippet:e+": $0"+(i?"":";"),meta:"property",score:1e6}}))},this.getPropertyValueCompletions=function(e,t,n,o){var i=t.getLine(n.row).substr(0,n.column),a=(/([\w\-]+):[^:]*$/.exec(i)||{})[1];if(!a)return[];var s=[];return a in r&&"object"==typeof r[a]&&(s=Object.keys(r[a])),s.map((function(e){return{caption:e,snippet:e,meta:"property value",score:1e6}}))}}).call(o.prototype),t.CssCompletions=o})),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),o=(e("../behaviour").Behaviour,e("./cstyle").CstyleBehaviour),i=e("../../token_iterator").TokenIterator,a=function(){this.inherit(o),this.add("colon","insertion",(function(e,t,n,r,o){if(":"===o&&n.selection.isEmpty()){var a=n.getCursorPosition(),s=new i(r,a.row,a.column),l=s.getCurrentToken();if(l&&l.value.match(/\s+/)&&(l=s.stepBackward()),l&&"support.type"===l.type){var u=r.doc.getLine(a.row);if(":"===u.substring(a.column,a.column+1))return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(u.substring(a.column)))return{text:":;",selection:[1,1]}}}})),this.add("colon","deletion",(function(e,t,n,r,o){var a=r.doc.getTextRange(o);if(!o.isMultiLine()&&":"===a){var s=n.getCursorPosition(),l=new i(r,s.row,s.column),u=l.getCurrentToken();if(u&&u.value.match(/\s+/)&&(u=l.stepBackward()),u&&"support.type"===u.type)if(";"===r.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o}})),this.add("semicolon","insertion",(function(e,t,n,r,o){if(";"===o&&n.selection.isEmpty()){var i=n.getCursorPosition();if(";"===r.doc.getLine(i.row).substring(i.column,i.column+1))return{text:"",selection:[1,1]}}})),this.add("!important","insertion",(function(e,t,n,r,o){if("!"===o&&n.selection.isEmpty()){var i=n.getCursorPosition(),a=r.doc.getLine(i.row);if(/^\s*(;|}|$)/.test(a.substring(i.column)))return{text:"!important",selection:[10,10]}}}))};r.inherits(a,o),t.CssBehaviour=a})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(r)?"start":o},this.getFoldWidgetRange=function(e,t,n,r){var o,i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);if(o=i.match(this.foldingStartMarker)){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t&&(o=i.match(this.foldingStopMarker))){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),i=t,a=n.length,s=t+=1,l=e.getLength();++t<l;){var u=(n=e.getLine(t)).search(/\S/);if(-1!==u){if(r>u)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=i)break;if(c.isMultiLine())t=c.end.row;else if(r==u)break}s=t}}return new o(i,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),i=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<i;){t=e.getLine(n);var u=s.exec(t);if(u&&(u[1]?l--:l++,!l))break}if(n>a)return new o(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text").Mode,i=e("./css_highlight_rules").CssHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,l=e("./css_completions").CssCompletions,u=e("./behaviour/css").CssBehaviour,c=e("./folding/cstyle").FoldMode,d=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new u,this.$completer=new l,this.foldingRules=new c};r.inherits(d,o),function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e).tokens;return o.length&&"comment"==o[o.length-1].type||t.match(/^.*\{\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.getCompletions=function(e,t,n,r){return this.$completer.getCompletions(e,t,n,r)},this.createWorker=function(e){var t=new s(["ace"],"ace/mode/css_worker","Worker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}.call(d.prototype),t.Mode=d})),ace.require(["ace/mode/css"],(function(t){e&&(e.exports=t)}))},50021:(e,t,n)=>{e=n.nmd(e),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},i.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};r.inherits(i,o),i.getTagRule=function(e){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},i.getStartRule=function(e){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:e}},i.getEndRule=function(e){return{token:"comment.doc",regex:"\\*\\/",next:e}},t.JsDocCommentHighlightRules=i})),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,i=e("./text_highlight_rules").TextHighlightRules,a="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",s=function(e){var t=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),n="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[o.getStartRule("doc-start"),u("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+a+")(\\.)(prototype)(\\.)("+a+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+a+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+a+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:"from(?=\\s*('|\"))"},{token:"keyword",regex:"(?:case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void)\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:t,regex:a},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+a+")(\\.)("+a+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:a},{regex:"",token:"empty",next:"no_regex"}],start:[o.getStartRule("doc-start"),u("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[u("function_arguments"),{token:"variable.parameter",regex:a},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:n},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},e&&e.noES6||(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(e,t,n){if(this.next="{"==e?this.nextState:"","{"==e&&n.length)n.unshift("start",t);else if("}"==e&&n.length&&(n.shift(),this.next=n.shift(),-1!=this.next.indexOf("string")||-1!=this.next.indexOf("jsx")))return"paren.quasi.end";return"{"==e?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:n},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+a+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),e&&0==e.jsx||l.call(this)),this.embedRules(o,"doc-",[o.getEndRule("no_regex")]),this.normalizeRules()};function l(){var e=a.replace("\\d","\\d\\-"),t={onMatch:function(e,t,n){var r="/"==e.charAt(1)?2:1;return 1==r?(t!=this.nextState?n.unshift(this.next,this.nextState,0):n.unshift(this.next),n[2]++):2==r&&t==this.nextState&&(n[1]--,(!n[1]||n[1]<0)&&(n.shift(),n.shift())),[{type:"meta.tag.punctuation."+(1==r?"":"end-")+"tag-open.xml",value:e.slice(0,r)},{type:"meta.tag.tag-name.xml",value:e.substr(r)}]},regex:"</?"+e,next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(t);var n={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[n,t,{include:"reference"},{defaultToken:"string"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(e,t,n){return t==n[0]&&n.shift(),2==e.length&&(n[0]==this.nextState&&n[1]--,(!n[1]||n[1]<0)&&n.splice(0,2)),this.next=n[0]||"start",[{type:this.token,value:e}]},nextState:"jsx"},n,u("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:e},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},t],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function u(e){return[{token:"comment",regex:/\/\*/,next:[o.getTagRule(),{token:"comment",regex:"\\*\\/",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[o.getTagRule(),{token:"comment",regex:"$|^",next:e||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.inherits(s,i),t.JavaScriptHighlightRules=s})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,i=e.findMatchingBracket({row:t,column:o});if(!i||i.row==t)return 0;var a=this.$getIndent(e.getLine(i.row));e.replace(new r(t,0,t,o-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(r)?"start":o},this.getFoldWidgetRange=function(e,t,n,r){var o,i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);if(o=i.match(this.foldingStartMarker)){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t&&(o=i.match(this.foldingStopMarker))){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),i=t,a=n.length,s=t+=1,l=e.getLength();++t<l;){var u=(n=e.getLine(t)).search(/\S/);if(-1!==u){if(r>u)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=i)break;if(c.isMultiLine())t=c.end.row;else if(r==u)break}s=t}}return new o(i,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),i=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<i;){t=e.getLine(n);var u=s.exec(t);if(u&&(u[1]?l--:l++,!l))break}if(n>a)return new o(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text").Mode,i=e("./javascript_highlight_rules").JavaScriptHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("../worker/worker_client").WorkerClient,l=e("./behaviour/cstyle").CstyleBehaviour,u=e("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new u};r.inherits(c,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t),o=this.getTokenizer().getLineTokens(t,e),i=o.tokens,a=o.state;if(i.length&&"comment"==i[i.length-1].type)return r;if("start"==e||"no_regex"==e)(s=t.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/))&&(r+=n);else if("doc-start"==e){if("start"==a||"no_regex"==a)return"";var s;(s=t.match(/^\s*(\/?)\*/))&&(s[1]&&(r+=" "),r+="* ")}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new s(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}.call(c.prototype),t.Mode=c})),ace.require(["ace/mode/javascript"],(function(t){e&&(e.exports=t)}))},8170:(e,t,n)=>{e=n.nmd(e),ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"punctuation.operator",regex:/[,]/},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){"use strict";var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,i=e.findMatchingBracket({row:t,column:o});if(!i||i.row==t)return 0;var a=this.$getIndent(e.getLine(i.row));e.replace(new r(t,0,t,o-1),a)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){"use strict";var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var o=this._getFoldWidgetBase(e,t,n);return!o&&this.startRegionRe.test(r)?"start":o},this.getFoldWidgetRange=function(e,t,n,r){var o,i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);if(o=i.match(this.foldingStartMarker)){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t&&(o=i.match(this.foldingStopMarker))){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}},this.getSectionRange=function(e,t){for(var n=e.getLine(t),r=n.search(/\S/),i=t,a=n.length,s=t+=1,l=e.getLength();++t<l;){var u=(n=e.getLine(t)).search(/\S/);if(-1!==u){if(r>u)break;var c=this.getFoldWidgetRange(e,"all",t);if(c){if(c.start.row<=i)break;if(c.isMultiLine())t=c.end.row;else if(r==u)break}s=t}}return new o(i,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var r=t.search(/\s*$/),i=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++n<i;){t=e.getLine(n);var u=s.exec(t);if(u&&(u[1]?l--:l++,!l))break}if(n>a)return new o(a,r,n,t.length)}}.call(a.prototype)})),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],(function(e,t,n){"use strict";var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./folding/cstyle").FoldMode,l=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new s};r.inherits(u,o),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);"start"==e&&(t.match(/^.*[\{\(\[]\s*$/)&&(r+=n));return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",(function(t){e.setAnnotations(t.data)})),t.on("terminate",(function(){e.clearAnnotations()})),t},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u})),ace.require(["ace/mode/json"],(function(t){e&&(e.exports=t)}))},34266:(e,t,n)=>{e=n.nmd(e),ace.define("ace/theme/tomorrow_night-css",["require","exports","module"],(function(e,t,n){n.exports=".ace-tomorrow-night .ace_gutter {\n  background: #25282c;\n  color: #C5C8C6\n}\n\n.ace-tomorrow-night .ace_print-margin {\n  width: 1px;\n  background: #25282c\n}\n\n.ace-tomorrow-night {\n  background-color: #1D1F21;\n  color: #C5C8C6\n}\n\n.ace-tomorrow-night .ace_cursor {\n  color: #AEAFAD\n}\n\n.ace-tomorrow-night .ace_marker-layer .ace_selection {\n  background: #373B41\n}\n\n.ace-tomorrow-night.ace_multiselect .ace_selection.ace_start {\n  box-shadow: 0 0 3px 0px #1D1F21;\n}\n\n.ace-tomorrow-night .ace_marker-layer .ace_step {\n  background: rgb(102, 82, 0)\n}\n\n.ace-tomorrow-night .ace_marker-layer .ace_bracket {\n  margin: -1px 0 0 -1px;\n  border: 1px solid #4B4E55\n}\n\n.ace-tomorrow-night .ace_marker-layer .ace_active-line {\n  background: #282A2E\n}\n\n.ace-tomorrow-night .ace_gutter-active-line {\n  background-color: #282A2E\n}\n\n.ace-tomorrow-night .ace_marker-layer .ace_selected-word {\n  border: 1px solid #373B41\n}\n\n.ace-tomorrow-night .ace_invisible {\n  color: #4B4E55\n}\n\n.ace-tomorrow-night .ace_keyword,\n.ace-tomorrow-night .ace_meta,\n.ace-tomorrow-night .ace_storage,\n.ace-tomorrow-night .ace_storage.ace_type,\n.ace-tomorrow-night .ace_support.ace_type {\n  color: #B294BB\n}\n\n.ace-tomorrow-night .ace_keyword.ace_operator {\n  color: #8ABEB7\n}\n\n.ace-tomorrow-night .ace_constant.ace_character,\n.ace-tomorrow-night .ace_constant.ace_language,\n.ace-tomorrow-night .ace_constant.ace_numeric,\n.ace-tomorrow-night .ace_keyword.ace_other.ace_unit,\n.ace-tomorrow-night .ace_support.ace_constant,\n.ace-tomorrow-night .ace_variable.ace_parameter {\n  color: #DE935F\n}\n\n.ace-tomorrow-night .ace_constant.ace_other {\n  color: #CED1CF\n}\n\n.ace-tomorrow-night .ace_invalid {\n  color: #CED2CF;\n  background-color: #DF5F5F\n}\n\n.ace-tomorrow-night .ace_invalid.ace_deprecated {\n  color: #CED2CF;\n  background-color: #B798BF\n}\n\n.ace-tomorrow-night .ace_fold {\n  background-color: #81A2BE;\n  border-color: #C5C8C6\n}\n\n.ace-tomorrow-night .ace_entity.ace_name.ace_function,\n.ace-tomorrow-night .ace_support.ace_function,\n.ace-tomorrow-night .ace_variable {\n  color: #81A2BE\n}\n\n.ace-tomorrow-night .ace_support.ace_class,\n.ace-tomorrow-night .ace_support.ace_type {\n  color: #F0C674\n}\n\n.ace-tomorrow-night .ace_heading,\n.ace-tomorrow-night .ace_markup.ace_heading,\n.ace-tomorrow-night .ace_string {\n  color: #B5BD68\n}\n\n.ace-tomorrow-night .ace_entity.ace_name.ace_tag,\n.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name,\n.ace-tomorrow-night .ace_meta.ace_tag,\n.ace-tomorrow-night .ace_string.ace_regexp,\n.ace-tomorrow-night .ace_variable {\n  color: #CC6666\n}\n\n.ace-tomorrow-night .ace_comment {\n  color: #969896\n}\n\n.ace-tomorrow-night .ace_indent-guide {\n  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y\n}\n\n.ace-tomorrow-night .ace_indent-guide-active {\n  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;\n}\n"})),ace.define("ace/theme/tomorrow_night",["require","exports","module","ace/theme/tomorrow_night-css","ace/lib/dom"],(function(e,t,n){t.isDark=!0,t.cssClass="ace-tomorrow-night",t.cssText=e("./tomorrow_night-css"),e("../lib/dom").importCssString(t.cssText,t.cssClass,!1)})),ace.require(["ace/theme/tomorrow_night"],(function(t){e&&(e.exports=t)}))},55759:e=>{var t={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};e.exports=function(e,n){return"number"!=typeof n||t[e]?n:n+"px"}},28826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>se});var r={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},o={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},i=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],a={CSS:{},springs:{}};function s(e,t,n){return Math.min(Math.max(e,t),n)}function l(e,t){return e.indexOf(t)>-1}function u(e,t){return e.apply(null,t)}var c={arr:function(e){return Array.isArray(e)},obj:function(e){return l(Object.prototype.toString.call(e),"Object")},pth:function(e){return c.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||c.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return c.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return c.hex(e)||c.rgb(e)||c.hsl(e)},key:function(e){return!r.hasOwnProperty(e)&&!o.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function d(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function f(e,t){var n=d(e),r=s(c.und(n[0])?1:n[0],.1,100),o=s(c.und(n[1])?100:n[1],.1,100),i=s(c.und(n[2])?10:n[2],.1,100),l=s(c.und(n[3])?0:n[3],.1,100),u=Math.sqrt(o/r),f=i/(2*Math.sqrt(o*r)),h=f<1?u*Math.sqrt(1-f*f):0,p=1,g=f<1?(f*u-l)/h:-l+u;function m(e){var n=t?t*e/1e3:e;return n=f<1?Math.exp(-n*f*u)*(p*Math.cos(h*n)+g*Math.sin(h*n)):(p+g*n)*Math.exp(-n*u),0===e||1===e?e:1-n}return t?m:function(){var t=a.springs[e];if(t)return t;for(var n=1/6,r=0,o=0;;)if(1===m(r+=n)){if(++o>=16)break}else o=0;var i=r*n*1e3;return a.springs[e]=i,i}}function h(e){return void 0===e&&(e=10),function(t){return Math.ceil(s(t,1e-6,1)*e)*(1/e)}}var p,g,m=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function o(e,o,i){return((t(o,i)*e+n(o,i))*e+r(o))*e}function i(e,o,i){return 3*t(o,i)*e*e+2*n(o,i)*e+r(o)}return function(t,n,r,a){if(0<=t&&t<=1&&0<=r&&r<=1){var s=new Float32Array(11);if(t!==n||r!==a)for(var l=0;l<11;++l)s[l]=o(l*e,t,r);return function(e){return t===n&&r===a||0===e||1===e?e:o(u(e),n,a)}}function u(n){for(var a=0,l=1;10!==l&&s[l]<=n;++l)a+=e;--l;var u=a+(n-s[l])/(s[l+1]-s[l])*e,c=i(u,t,r);return c>=.001?function(e,t,n,r){for(var a=0;a<4;++a){var s=i(t,n,r);if(0===s)return t;t-=(o(t,n,r)-e)/s}return t}(n,u,t,r):0===c?u:function(e,t,n,r,i){var a,s,l=0;do{(a=o(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(a)>1e-7&&++l<10);return s}(n,a,a+e,t,r)}}}(),v=(p={linear:function(){return function(e){return e}}},g={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=s(e,1,10),r=s(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){g[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(g).forEach((function(e){var t=g[e];p["easeIn"+e]=t,p["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},p["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}},p["easeOutIn"+e]=function(e,n){return function(r){return r<.5?(1-t(e,n)(1-2*r))/2:(t(e,n)(2*r-1)+1)/2}}})),p);function y(e,t){if(c.fnc(e))return e;var n=e.split("(")[0],r=v[n],o=d(e);switch(n){case"spring":return f(e,t);case"cubicBezier":return u(m,o);case"steps":return u(h,o);default:return u(r,o)}}function b(e){try{return document.querySelectorAll(e)}catch(e){return}}function w(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,o=[],i=0;i<n;i++)if(i in e){var a=e[i];t.call(r,a,i,e)&&o.push(a)}return o}function x(e){return e.reduce((function(e,t){return e.concat(c.arr(t)?x(t):t)}),[])}function S(e){return c.arr(e)?e:(c.str(e)&&(e=b(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function _(e,t){return e.some((function(e){return e===t}))}function E(e){var t={};for(var n in e)t[n]=e[n];return t}function k(e,t){var n=E(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function C(e,t){var n=E(e);for(var r in t)n[r]=c.und(e[r])?t[r]:e[r];return n}function A(e){return c.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:c.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):c.hsl(e)?function(e){var t,n,r,o=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),i=parseInt(o[1],10)/360,a=parseInt(o[2],10)/100,s=parseInt(o[3],10)/100,l=o[4]||1;function u(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=r=s;else{var c=s<.5?s*(1+a):s+a-s*a,d=2*s-c;t=u(d,c,i+1/3),n=u(d,c,i),r=u(d,c,i-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+l+")"}(e):void 0;var t,n}function T(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function O(e,t){return c.fnc(e)?e(t.target,t.id,t.total):e}function M(e,t){return e.getAttribute(t)}function R(e,t,n){if(_([n,"deg","rad","turn"],T(t)))return t;var r=a.CSS[t+n];if(!c.und(r))return r;var o=document.createElement(e.tagName),i=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+n;var s=100/o.offsetWidth;i.removeChild(o);var l=s*parseFloat(t);return a.CSS[t+n]=l,l}function L(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?R(e,o,n):o}}function D(e,t){return c.dom(e)&&!c.inp(e)&&(!c.nil(M(e,t))||c.svg(e)&&e[t])?"attribute":c.dom(e)&&_(i,t)?"transform":c.dom(e)&&"transform"!==t&&L(e,t)?"css":null!=e[t]?"object":void 0}function P(e){if(c.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,o=new Map;t=r.exec(n);)o.set(t[1],t[2]);return o}}function j(e,t,n,r){var o=l(t,"scale")?1:0+function(e){return l(e,"translate")||"perspective"===e?"px":l(e,"rotate")||l(e,"skew")?"deg":void 0}(t),i=P(e).get(t)||o;return n&&(n.transforms.list.set(t,i),n.transforms.last=t),r?R(e,i,r):i}function I(e,t,n,r){switch(D(e,t)){case"transform":return j(e,t,r,n);case"css":return L(e,t,n);case"attribute":return M(e,t);default:return e[t]||0}}function $(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=T(e)||0,o=parseFloat(t),i=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return o+i+r;case"-":return o-i+r;case"*":return o*i+r}}function N(e,t){if(c.col(e))return A(e);if(/\s/g.test(e))return e;var n=T(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function F(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function z(e){for(var t,n=e.points,r=0,o=0;o<n.numberOfItems;o++){var i=n.getItem(o);o>0&&(r+=F(t,i)),t=i}return r}function B(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*M(e,"r")}(e);case"rect":return function(e){return 2*M(e,"width")+2*M(e,"height")}(e);case"line":return function(e){return F({x:M(e,"x1"),y:M(e,"y1")},{x:M(e,"x2"),y:M(e,"y2")})}(e);case"polyline":return z(e);case"polygon":return function(e){var t=e.points;return z(e)+F(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function H(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;c.svg(t)&&c.svg(t.parentNode);)t=t.parentNode;return t}(e),o=r.getBoundingClientRect(),i=M(r,"viewBox"),a=o.width,s=o.height,l=n.viewBox||(i?i.split(" "):[0,0,a,s]);return{el:r,viewBox:l,x:l[0]/1,y:l[1]/1,w:a,h:s,vW:l[2],vH:l[3]}}function W(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var o=H(e.el,e.svg),i=r(),a=r(-1),s=r(1),l=n?1:o.w/o.vW,u=n?1:o.h/o.vH;switch(e.property){case"x":return(i.x-o.x)*l;case"y":return(i.y-o.y)*u;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function U(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=N(c.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:c.str(e)||t?r.split(n):[]}}function Z(e){return w(e?x(c.arr(e)?e.map(S):S(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function V(e){var t=Z(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:P(e)}}}))}function G(e,t){var n=E(t);if(/^spring/.test(n.easing)&&(n.duration=f(n.easing)),c.arr(e)){var r=e.length;2===r&&!c.obj(e[0])?e={value:e}:c.fnc(t.duration)||(n.duration=t.duration/r)}var o=c.arr(e)?e:[e];return o.map((function(e,n){var r=c.obj(e)&&!c.pth(e)?e:{value:e};return c.und(r.delay)&&(r.delay=n?0:t.delay),c.und(r.endDelay)&&(r.endDelay=n===o.length-1?t.endDelay:0),r})).map((function(e){return C(e,n)}))}function q(e,t){var n=[],r=t.keyframes;for(var o in r&&(t=C(function(e){for(var t=w(x(e.map((function(e){return Object.keys(e)}))),(function(e){return c.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var o=t[r];n[o]=e.map((function(e){var t={};for(var n in e)c.key(n)?n==o&&(t.value=e[n]):t[n]=e[n];return t}))},o=0;o<t.length;o++)r(o);return n}(r),t)),t)c.key(o)&&n.push({name:o,tweens:G(t[o],e)});return n}function Y(e,t){var n;return e.tweens.map((function(r){var o=function(e,t){var n={};for(var r in e){var o=O(e[r],t);c.arr(o)&&1===(o=o.map((function(e){return O(e,t)}))).length&&(o=o[0]),n[r]=o}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,t),i=o.value,a=c.arr(i)?i[1]:i,s=T(a),l=I(t.target,e.name,s,t),u=n?n.to.original:l,d=c.arr(i)?i[0]:u,f=T(d)||T(l),h=s||f;return c.und(a)&&(a=u),o.from=U(d,h),o.to=U($(a,d),h),o.start=n?n.end:0,o.end=o.start+o.delay+o.duration+o.endDelay,o.easing=y(o.easing,o.duration),o.isPath=c.pth(i),o.isPathTargetInsideSVG=o.isPath&&c.svg(t.target),o.isColor=c.col(o.from.original),o.isColor&&(o.round=1),n=o,o}))}var K={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,o){if(r.list.set(t,n),t===r.last||o){var i="";r.list.forEach((function(e,t){i+=t+"("+e+") "})),e.style.transform=i}}};function X(e,t){V(e).forEach((function(e){for(var n in t){var r=O(t[n],e),o=e.target,i=T(r),a=I(o,n,i,e),s=$(N(r,i||T(a)),a),l=D(o,n);K[l](o,n,s,e.transforms,!0)}}))}function Q(e,t){return w(x(e.map((function(e){return t.map((function(t){return function(e,t){var n=D(e.target,t.name);if(n){var r=Y(t,e),o=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:o.end,delay:r[0].delay,endDelay:o.endDelay}}}(e,t)}))}))),(function(e){return!c.und(e)}))}function J(e,t){var n=e.length,r=function(e){return e.timelineOffset?e.timelineOffset:0},o={};return o.duration=n?Math.max.apply(Math,e.map((function(e){return r(e)+e.duration}))):t.duration,o.delay=n?Math.min.apply(Math,e.map((function(e){return r(e)+e.delay}))):t.delay,o.endDelay=n?o.duration-Math.max.apply(Math,e.map((function(e){return r(e)+e.duration-e.endDelay}))):t.endDelay,o}var ee=0;var te=[],ne=function(){var e;function t(n){for(var r=te.length,o=0;o<r;){var i=te[o];i.paused?(te.splice(o,1),r--):(i.tick(n),o++)}e=o>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){oe.suspendWhenDocumentHidden&&(re()?e=cancelAnimationFrame(e):(te.forEach((function(e){return e._onDocumentVisibility()})),ne()))})),function(){e||re()&&oe.suspendWhenDocumentHidden||!(te.length>0)||(e=requestAnimationFrame(t))}}();function re(){return!!document&&document.hidden}function oe(e){void 0===e&&(e={});var t,n=0,i=0,a=0,l=0,u=null;function c(e){var t=window.Promise&&new Promise((function(e){return u=e}));return e.finished=t,t}var d=function(e){var t=k(r,e),n=k(o,e),i=q(n,e),a=V(e.targets),s=Q(a,i),l=J(s,n),u=ee;return ee++,C(t,{id:u,children:[],animatables:a,animations:s,duration:l.duration,delay:l.delay,endDelay:l.endDelay})}(e);c(d);function f(){var e=d.direction;"alternate"!==e&&(d.direction="normal"!==e?"normal":"reverse"),d.reversed=!d.reversed,t.forEach((function(e){return e.reversed=d.reversed}))}function h(e){return d.reversed?d.duration-e:e}function p(){n=0,i=h(d.currentTime)*(1/oe.speed)}function g(e,t){t&&t.seek(e-t.timelineOffset)}function m(e){for(var t=0,n=d.animations,r=n.length;t<r;){var o=n[t],i=o.animatable,a=o.tweens,l=a.length-1,u=a[l];l&&(u=w(a,(function(t){return e<t.end}))[0]||u);for(var c=s(e-u.start-u.delay,0,u.duration)/u.duration,f=isNaN(c)?1:u.easing(c),h=u.to.strings,p=u.round,g=[],m=u.to.numbers.length,v=void 0,y=0;y<m;y++){var b=void 0,x=u.to.numbers[y],S=u.from.numbers[y]||0;b=u.isPath?W(u.value,f*x,u.isPathTargetInsideSVG):S+f*(x-S),p&&(u.isColor&&y>2||(b=Math.round(b*p)/p)),g.push(b)}var _=h.length;if(_){v=h[0];for(var E=0;E<_;E++){h[E];var k=h[E+1],C=g[E];isNaN(C)||(v+=k?C+k:C+" ")}}else v=g[0];K[o.type](i.target,o.property,v,i.transforms),o.currentValue=v,t++}}function v(e){d[e]&&!d.passThrough&&d[e](d)}function y(e){var r=d.duration,o=d.delay,p=r-d.endDelay,y=h(e);d.progress=s(y/r*100,0,100),d.reversePlayback=y<d.currentTime,t&&function(e){if(d.reversePlayback)for(var n=l;n--;)g(e,t[n]);else for(var r=0;r<l;r++)g(e,t[r])}(y),!d.began&&d.currentTime>0&&(d.began=!0,v("begin")),!d.loopBegan&&d.currentTime>0&&(d.loopBegan=!0,v("loopBegin")),y<=o&&0!==d.currentTime&&m(0),(y>=p&&d.currentTime!==r||!r)&&m(r),y>o&&y<p?(d.changeBegan||(d.changeBegan=!0,d.changeCompleted=!1,v("changeBegin")),v("change"),m(y)):d.changeBegan&&(d.changeCompleted=!0,d.changeBegan=!1,v("changeComplete")),d.currentTime=s(y,0,r),d.began&&v("update"),e>=r&&(i=0,d.remaining&&!0!==d.remaining&&d.remaining--,d.remaining?(n=a,v("loopComplete"),d.loopBegan=!1,"alternate"===d.direction&&f()):(d.paused=!0,d.completed||(d.completed=!0,v("loopComplete"),v("complete"),!d.passThrough&&"Promise"in window&&(u(),c(d)))))}return d.reset=function(){var e=d.direction;d.passThrough=!1,d.currentTime=0,d.progress=0,d.paused=!0,d.began=!1,d.loopBegan=!1,d.changeBegan=!1,d.completed=!1,d.changeCompleted=!1,d.reversePlayback=!1,d.reversed="reverse"===e,d.remaining=d.loop,t=d.children;for(var n=l=t.length;n--;)d.children[n].reset();(d.reversed&&!0!==d.loop||"alternate"===e&&1===d.loop)&&d.remaining++,m(d.reversed?d.duration:0)},d._onDocumentVisibility=p,d.set=function(e,t){return X(e,t),d},d.tick=function(e){a=e,n||(n=a),y((a+(i-n))*oe.speed)},d.seek=function(e){y(h(e))},d.pause=function(){d.paused=!0,p()},d.play=function(){d.paused&&(d.completed&&d.reset(),d.paused=!1,te.push(d),p(),ne())},d.reverse=function(){f(),d.completed=!d.reversed,p()},d.restart=function(){d.reset(),d.play()},d.remove=function(e){ae(Z(e),d)},d.reset(),d.autoplay&&d.play(),d}function ie(e,t){for(var n=t.length;n--;)_(e,t[n].animatable.target)&&t.splice(n,1)}function ae(e,t){var n=t.animations,r=t.children;ie(e,n);for(var o=r.length;o--;){var i=r[o],a=i.animations;ie(e,a),a.length||i.children.length||r.splice(o,1)}n.length||r.length||t.pause()}oe.version="3.2.1",oe.speed=1,oe.suspendWhenDocumentHidden=!0,oe.running=te,oe.remove=function(e){for(var t=Z(e),n=te.length;n--;){ae(t,te[n])}},oe.get=I,oe.set=X,oe.convertPx=R,oe.path=function(e,t){var n=c.str(e)?b(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:H(n),totalLength:B(n)*(r/100)}}},oe.setDashoffset=function(e){var t=B(e);return e.setAttribute("stroke-dasharray",t),t},oe.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?y(t.easing):null,o=t.grid,i=t.axis,a=t.from||0,s="first"===a,l="center"===a,u="last"===a,d=c.arr(e),f=d?parseFloat(e[0]):parseFloat(e),h=d?parseFloat(e[1]):0,p=T(d?e[1]:e)||0,g=t.start||0+(d?f:0),m=[],v=0;return function(e,t,c){if(s&&(a=0),l&&(a=(c-1)/2),u&&(a=c-1),!m.length){for(var y=0;y<c;y++){if(o){var b=l?(o[0]-1)/2:a%o[0],w=l?(o[1]-1)/2:Math.floor(a/o[0]),x=b-y%o[0],S=w-Math.floor(y/o[0]),_=Math.sqrt(x*x+S*S);"x"===i&&(_=-x),"y"===i&&(_=-S),m.push(_)}else m.push(Math.abs(a-y));v=Math.max.apply(Math,m)}r&&(m=m.map((function(e){return r(e/v)*v}))),"reverse"===n&&(m=m.map((function(e){return i?e<0?-1*e:-e:Math.abs(v-e)})))}return g+(d?(h-f)/v:f)*(Math.round(100*m[t])/100)+p}},oe.timeline=function(e){void 0===e&&(e={});var t=oe(e);return t.duration=0,t.add=function(n,r){var i=te.indexOf(t),a=t.children;function s(e){e.passThrough=!0}i>-1&&te.splice(i,1);for(var l=0;l<a.length;l++)s(a[l]);var u=C(n,k(o,e));u.targets=u.targets||e.targets;var d=t.duration;u.autoplay=!1,u.direction=t.direction,u.timelineOffset=c.und(r)?d:$(r,d),s(t),t.seek(u.timelineOffset);var f=oe(u);s(f),a.push(f);var h=J(a,e);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},oe.easing=y,oe.penner=v,oe.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const se=oe},66897:(e,t,n)=>{var r;window,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/index.js")}({"./node_modules/cache-control-esm/index.js":function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.r(t),n.d(t,"CacheControl",(function(){return S})),n.d(t,"parse",(function(){return _})),n.d(t,"format",(function(){return E})),n("./node_modules/core-js/modules/es6.array.from.js"),n("./node_modules/core-js/modules/es6.function.name.js"),n("./node_modules/core-js/modules/es6.object.to-string.js"),n("./node_modules/core-js/modules/web.dom.iterable.js"),n("./node_modules/core-js/modules/es7.symbol.async-iterator.js"),n("./node_modules/core-js/modules/es6.symbol.js"),n("./node_modules/core-js/modules/es6.regexp.split.js"),n("./node_modules/core-js/modules/es6.number.is-finite.js");var a=/([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?/g,s="max-age",l="s-maxage",u="max-stale",c="min-fresh",d="immutable",f="must-revalidate",h="no-cache",p="no-store",g="no-transform",m="only-if-cached",v="private",y="proxy-revalidate",b="public";function w(e){return null===e}function x(e){if(!e)return null;var t=parseInt(e,10);return!Number.isFinite(t)||t<0?null:t}var S=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxAge=null,this.sharedMaxAge=null,this.maxStale=null,this.maxStaleDuration=null,this.minFresh=null,this.immutable=null,this.mustRevalidate=null,this.noCache=null,this.noStore=null,this.noTransform=null,this.onlyIfCached=null,this.private=null,this.proxyRevalidate=null,this.public=null}var t,n,o;return t=e,(n=[{key:"parse",value:function(e){if(!e||0===e.length)return this;var t={},n=e.match(a)||[];return Array.prototype.forEach.call(n,(function(e){var n=e.split("=",2),o=r(n,1)[0],i=null;n.length>1&&(i=n[1].trim()),t[o.toLowerCase()]=i})),this.maxAge=x(t[s]),this.sharedMaxAge=x(t[l]),this.maxStale=w(t[u]),this.maxStaleDuration=x(t[u]),this.maxStaleDuration&&(this.maxStale=!0),this.minFresh=x(t[c]),this.immutable=w(t[d]),this.mustRevalidate=w(t[f]),this.noCache=w(t[h]),this.noStore=w(t[p]),this.noTransform=w(t[g]),this.onlyIfCached=w(t[m]),this.private=w(t[v]),this.proxyRevalidate=w(t[y]),this.public=w(t[b]),this}},{key:"format",value:function(){var e=[];return this.maxAge&&e.push("".concat(s,"=").concat(this.maxAge)),this.sharedMaxAge&&e.push("".concat(l,"=").concat(this.sharedMaxAge)),this.maxStale&&(this.maxStaleDuration?e.push("".concat(u,"=").concat(this.maxStaleDuration)):e.push(u)),this.minFresh&&e.push("".concat(c,"=").concat(this.minFresh)),this.immutable&&e.push(d),this.mustRevalidate&&e.push(f),this.noCache&&e.push(h),this.noStore&&e.push(p),this.noTransform&&e.push(g),this.onlyIfCached&&e.push(m),this.private&&e.push(v),this.proxyRevalidate&&e.push(y),this.public&&e.push(b),e.join(", ")}}])&&i(t.prototype,n),o&&i(t,o),e}();function _(e){return(new S).parse(e)}function E(e){return e instanceof S?e.format():S.prototype.format.call(e)}t.default={CacheControl:S,parse:_,format:E}},"./node_modules/charenc/charenc.js":function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},"./node_modules/core-js/modules/_a-function.js":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"./node_modules/core-js/modules/_add-to-unscopables.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_wks.js")("unscopables"),o=Array.prototype;null==o[r]&&n("./node_modules/core-js/modules/_hide.js")(o,r,{}),e.exports=function(e){o[r][e]=!0}},"./node_modules/core-js/modules/_advance-string-index.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_string-at.js")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"./node_modules/core-js/modules/_an-object.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_is-object.js");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},"./node_modules/core-js/modules/_array-includes.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_to-iobject.js"),o=n("./node_modules/core-js/modules/_to-length.js"),i=n("./node_modules/core-js/modules/_to-absolute-index.js");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=o(l.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"./node_modules/core-js/modules/_classof.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_cof.js"),o=n("./node_modules/core-js/modules/_wks.js")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},"./node_modules/core-js/modules/_cof.js":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"./node_modules/core-js/modules/_core.js":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"./node_modules/core-js/modules/_create-property.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_object-dp.js"),o=n("./node_modules/core-js/modules/_property-desc.js");e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},"./node_modules/core-js/modules/_ctx.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_a-function.js");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"./node_modules/core-js/modules/_defined.js":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},"./node_modules/core-js/modules/_descriptors.js":function(e,t,n){e.exports=!n("./node_modules/core-js/modules/_fails.js")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/modules/_dom-create.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_is-object.js"),o=n("./node_modules/core-js/modules/_global.js").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"./node_modules/core-js/modules/_enum-bug-keys.js":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"./node_modules/core-js/modules/_enum-keys.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-keys.js"),o=n("./node_modules/core-js/modules/_object-gops.js"),i=n("./node_modules/core-js/modules/_object-pie.js");e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},"./node_modules/core-js/modules/_export.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_global.js"),o=n("./node_modules/core-js/modules/_core.js"),i=n("./node_modules/core-js/modules/_hide.js"),a=n("./node_modules/core-js/modules/_redefine.js"),s=n("./node_modules/core-js/modules/_ctx.js"),l="prototype",u=function(e,t,n){var c,d,f,h,p=e&u.F,g=e&u.G,m=e&u.S,v=e&u.P,y=e&u.B,b=g?r:m?r[t]||(r[t]={}):(r[t]||{})[l],w=g?o:o[t]||(o[t]={}),x=w[l]||(w[l]={});for(c in g&&(n=t),n)f=((d=!p&&b&&void 0!==b[c])?b:n)[c],h=y&&d?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,b&&a(b,c,f,e&u.U),w[c]!=f&&i(w,c,h),v&&x[c]!=f&&(x[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"./node_modules/core-js/modules/_fails-is-regexp.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_wks.js")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},"./node_modules/core-js/modules/_fails.js":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/modules/_fix-re-wks.js":function(e,t,n){"use strict";n("./node_modules/core-js/modules/es6.regexp.exec.js");var r=n("./node_modules/core-js/modules/_redefine.js"),o=n("./node_modules/core-js/modules/_hide.js"),i=n("./node_modules/core-js/modules/_fails.js"),a=n("./node_modules/core-js/modules/_defined.js"),s=n("./node_modules/core-js/modules/_wks.js"),l=n("./node_modules/core-js/modules/_regexp-exec.js"),u=s("species"),c=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),h=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[f](""),!t})):void 0;if(!h||!p||"replace"===e&&!c||"split"===e&&!d){var g=/./[f],m=n(a,f,""[e],(function(e,t,n,r,o){return t.exec===l?h&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=m[0],y=m[1];r(String.prototype,e,v),o(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"./node_modules/core-js/modules/_flags.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_an-object.js");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"./node_modules/core-js/modules/_function-to-string.js":function(e,t,n){e.exports=n("./node_modules/core-js/modules/_shared.js")("native-function-to-string",Function.toString)},"./node_modules/core-js/modules/_global.js":function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"./node_modules/core-js/modules/_has.js":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"./node_modules/core-js/modules/_hide.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-dp.js"),o=n("./node_modules/core-js/modules/_property-desc.js");e.exports=n("./node_modules/core-js/modules/_descriptors.js")?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"./node_modules/core-js/modules/_html.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_global.js").document;e.exports=r&&r.documentElement},"./node_modules/core-js/modules/_ie8-dom-define.js":function(e,t,n){e.exports=!n("./node_modules/core-js/modules/_descriptors.js")&&!n("./node_modules/core-js/modules/_fails.js")((function(){return 7!=Object.defineProperty(n("./node_modules/core-js/modules/_dom-create.js")("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/modules/_iobject.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_cof.js");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"./node_modules/core-js/modules/_is-array-iter.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_iterators.js"),o=n("./node_modules/core-js/modules/_wks.js")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},"./node_modules/core-js/modules/_is-array.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_cof.js");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"./node_modules/core-js/modules/_is-object.js":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"./node_modules/core-js/modules/_is-regexp.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_is-object.js"),o=n("./node_modules/core-js/modules/_cof.js"),i=n("./node_modules/core-js/modules/_wks.js")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},"./node_modules/core-js/modules/_iter-call.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_an-object.js");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},"./node_modules/core-js/modules/_iter-create.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_object-create.js"),o=n("./node_modules/core-js/modules/_property-desc.js"),i=n("./node_modules/core-js/modules/_set-to-string-tag.js"),a={};n("./node_modules/core-js/modules/_hide.js")(a,n("./node_modules/core-js/modules/_wks.js")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},"./node_modules/core-js/modules/_iter-define.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_library.js"),o=n("./node_modules/core-js/modules/_export.js"),i=n("./node_modules/core-js/modules/_redefine.js"),a=n("./node_modules/core-js/modules/_hide.js"),s=n("./node_modules/core-js/modules/_iterators.js"),l=n("./node_modules/core-js/modules/_iter-create.js"),u=n("./node_modules/core-js/modules/_set-to-string-tag.js"),c=n("./node_modules/core-js/modules/_object-gpo.js"),d=n("./node_modules/core-js/modules/_wks.js")("iterator"),f=!([].keys&&"next"in[].keys()),h="keys",p="values",g=function(){return this};e.exports=function(e,t,n,m,v,y,b){l(n,t,m);var w,x,S,_=function(e){if(!f&&e in A)return A[e];switch(e){case h:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",k=v==p,C=!1,A=e.prototype,T=A[d]||A["@@iterator"]||v&&A[v],O=T||_(v),M=v?k?_("entries"):O:void 0,R="Array"==t&&A.entries||T;if(R&&(S=c(R.call(new e)))!==Object.prototype&&S.next&&(u(S,E,!0),r||"function"==typeof S[d]||a(S,d,g)),k&&T&&T.name!==p&&(C=!0,O=function(){return T.call(this)}),r&&!b||!f&&!C&&A[d]||a(A,d,O),s[t]=O,s[E]=g,v)if(w={values:k?O:_(p),keys:y?O:_(h),entries:M},b)for(x in w)x in A||i(A,x,w[x]);else o(o.P+o.F*(f||C),t,w);return w}},"./node_modules/core-js/modules/_iter-detect.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_wks.js")("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},"./node_modules/core-js/modules/_iter-step.js":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"./node_modules/core-js/modules/_iterators.js":function(e,t){e.exports={}},"./node_modules/core-js/modules/_library.js":function(e,t){e.exports=!1},"./node_modules/core-js/modules/_meta.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_uid.js")("meta"),o=n("./node_modules/core-js/modules/_is-object.js"),i=n("./node_modules/core-js/modules/_has.js"),a=n("./node_modules/core-js/modules/_object-dp.js").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("./node_modules/core-js/modules/_fails.js")((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!i(e,r)&&c(e),e}}},"./node_modules/core-js/modules/_object-create.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_an-object.js"),o=n("./node_modules/core-js/modules/_object-dps.js"),i=n("./node_modules/core-js/modules/_enum-bug-keys.js"),a=n("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("./node_modules/core-js/modules/_dom-create.js")("iframe"),r=i.length;for(t.style.display="none",n("./node_modules/core-js/modules/_html.js").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u[l][i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},"./node_modules/core-js/modules/_object-dp.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_an-object.js"),o=n("./node_modules/core-js/modules/_ie8-dom-define.js"),i=n("./node_modules/core-js/modules/_to-primitive.js"),a=Object.defineProperty;t.f=n("./node_modules/core-js/modules/_descriptors.js")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"./node_modules/core-js/modules/_object-dps.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-dp.js"),o=n("./node_modules/core-js/modules/_an-object.js"),i=n("./node_modules/core-js/modules/_object-keys.js");e.exports=n("./node_modules/core-js/modules/_descriptors.js")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},"./node_modules/core-js/modules/_object-gopd.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-pie.js"),o=n("./node_modules/core-js/modules/_property-desc.js"),i=n("./node_modules/core-js/modules/_to-iobject.js"),a=n("./node_modules/core-js/modules/_to-primitive.js"),s=n("./node_modules/core-js/modules/_has.js"),l=n("./node_modules/core-js/modules/_ie8-dom-define.js"),u=Object.getOwnPropertyDescriptor;t.f=n("./node_modules/core-js/modules/_descriptors.js")?u:function(e,t){if(e=i(e),t=a(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},"./node_modules/core-js/modules/_object-gopn-ext.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_to-iobject.js"),o=n("./node_modules/core-js/modules/_object-gopn.js").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},"./node_modules/core-js/modules/_object-gopn.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-keys-internal.js"),o=n("./node_modules/core-js/modules/_enum-bug-keys.js").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"./node_modules/core-js/modules/_object-gops.js":function(e,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/modules/_object-gpo.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_has.js"),o=n("./node_modules/core-js/modules/_to-object.js"),i=n("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"./node_modules/core-js/modules/_object-keys-internal.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_has.js"),o=n("./node_modules/core-js/modules/_to-iobject.js"),i=n("./node_modules/core-js/modules/_array-includes.js")(!1),a=n("./node_modules/core-js/modules/_shared-key.js")("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(u,n)||u.push(n));return u}},"./node_modules/core-js/modules/_object-keys.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-keys-internal.js"),o=n("./node_modules/core-js/modules/_enum-bug-keys.js");e.exports=Object.keys||function(e){return r(e,o)}},"./node_modules/core-js/modules/_object-pie.js":function(e,t){t.f={}.propertyIsEnumerable},"./node_modules/core-js/modules/_own-keys.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-gopn.js"),o=n("./node_modules/core-js/modules/_object-gops.js"),i=n("./node_modules/core-js/modules/_an-object.js"),a=n("./node_modules/core-js/modules/_global.js").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},"./node_modules/core-js/modules/_property-desc.js":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"./node_modules/core-js/modules/_redefine.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_global.js"),o=n("./node_modules/core-js/modules/_hide.js"),i=n("./node_modules/core-js/modules/_has.js"),a=n("./node_modules/core-js/modules/_uid.js")("src"),s=n("./node_modules/core-js/modules/_function-to-string.js"),l="toString",u=(""+s).split(l);n("./node_modules/core-js/modules/_core.js").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"./node_modules/core-js/modules/_regexp-exec-abstract.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_classof.js"),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"./node_modules/core-js/modules/_regexp-exec.js":function(e,t,n){"use strict";var r,o,i=n("./node_modules/core-js/modules/_flags.js"),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,u="lastIndex",c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r[u]||0!==o[u]),d=void 0!==/()??/.exec("")[1];(c||d)&&(l=function(e){var t,n,r,o,l=this;return d&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l[u]),r=a.call(l,e),c&&r&&(l[u]=l.global?r.index+r[0].length:t),d&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=l},"./node_modules/core-js/modules/_set-to-string-tag.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-dp.js").f,o=n("./node_modules/core-js/modules/_has.js"),i=n("./node_modules/core-js/modules/_wks.js")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},"./node_modules/core-js/modules/_shared-key.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_shared.js")("keys"),o=n("./node_modules/core-js/modules/_uid.js");e.exports=function(e){return r[e]||(r[e]=o(e))}},"./node_modules/core-js/modules/_shared.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_core.js"),o=n("./node_modules/core-js/modules/_global.js"),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("./node_modules/core-js/modules/_library.js")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/modules/_species-constructor.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_an-object.js"),o=n("./node_modules/core-js/modules/_a-function.js"),i=n("./node_modules/core-js/modules/_wks.js")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},"./node_modules/core-js/modules/_string-at.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_to-integer.js"),o=n("./node_modules/core-js/modules/_defined.js");e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),u=s.length;return l<0||l>=u?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},"./node_modules/core-js/modules/_string-context.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_is-regexp.js"),o=n("./node_modules/core-js/modules/_defined.js");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},"./node_modules/core-js/modules/_to-absolute-index.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_to-integer.js"),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},"./node_modules/core-js/modules/_to-integer.js":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"./node_modules/core-js/modules/_to-iobject.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_iobject.js"),o=n("./node_modules/core-js/modules/_defined.js");e.exports=function(e){return r(o(e))}},"./node_modules/core-js/modules/_to-length.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_to-integer.js"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},"./node_modules/core-js/modules/_to-object.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_defined.js");e.exports=function(e){return Object(r(e))}},"./node_modules/core-js/modules/_to-primitive.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_is-object.js");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/modules/_uid.js":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"./node_modules/core-js/modules/_wks-define.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_global.js"),o=n("./node_modules/core-js/modules/_core.js"),i=n("./node_modules/core-js/modules/_library.js"),a=n("./node_modules/core-js/modules/_wks-ext.js"),s=n("./node_modules/core-js/modules/_object-dp.js").f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"./node_modules/core-js/modules/_wks-ext.js":function(e,t,n){t.f=n("./node_modules/core-js/modules/_wks.js")},"./node_modules/core-js/modules/_wks.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_shared.js")("wks"),o=n("./node_modules/core-js/modules/_uid.js"),i=n("./node_modules/core-js/modules/_global.js").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},"./node_modules/core-js/modules/core.get-iterator-method.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_classof.js"),o=n("./node_modules/core-js/modules/_wks.js")("iterator"),i=n("./node_modules/core-js/modules/_iterators.js");e.exports=n("./node_modules/core-js/modules/_core.js").getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},"./node_modules/core-js/modules/es6.array.from.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_ctx.js"),o=n("./node_modules/core-js/modules/_export.js"),i=n("./node_modules/core-js/modules/_to-object.js"),a=n("./node_modules/core-js/modules/_iter-call.js"),s=n("./node_modules/core-js/modules/_is-array-iter.js"),l=n("./node_modules/core-js/modules/_to-length.js"),u=n("./node_modules/core-js/modules/_create-property.js"),c=n("./node_modules/core-js/modules/core.get-iterator-method.js");o(o.S+o.F*!n("./node_modules/core-js/modules/_iter-detect.js")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,d,f=i(e),h="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=c(f);if(m&&(g=r(g,p>2?arguments[2]:void 0,2)),null==y||h==Array&&s(y))for(n=new h(t=l(f.length));t>v;v++)u(n,v,m?g(f[v],v):f[v]);else for(d=y.call(f),n=new h;!(o=d.next()).done;v++)u(n,v,m?a(d,g,[o.value,v],!0):o.value);return n.length=v,n}})},"./node_modules/core-js/modules/es6.array.iterator.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_add-to-unscopables.js"),o=n("./node_modules/core-js/modules/_iter-step.js"),i=n("./node_modules/core-js/modules/_iterators.js"),a=n("./node_modules/core-js/modules/_to-iobject.js");e.exports=n("./node_modules/core-js/modules/_iter-define.js")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},"./node_modules/core-js/modules/es6.function.name.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_object-dp.js").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,a="name";a in o||n("./node_modules/core-js/modules/_descriptors.js")&&r(o,a,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},"./node_modules/core-js/modules/es6.number.is-finite.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_export.js"),o=n("./node_modules/core-js/modules/_global.js").isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},"./node_modules/core-js/modules/es6.object.to-string.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_classof.js"),o={};o[n("./node_modules/core-js/modules/_wks.js")("toStringTag")]="z",o+""!="[object z]"&&n("./node_modules/core-js/modules/_redefine.js")(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},"./node_modules/core-js/modules/es6.regexp.exec.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_regexp-exec.js");n("./node_modules/core-js/modules/_export.js")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},"./node_modules/core-js/modules/es6.regexp.split.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_is-regexp.js"),o=n("./node_modules/core-js/modules/_an-object.js"),i=n("./node_modules/core-js/modules/_species-constructor.js"),a=n("./node_modules/core-js/modules/_advance-string-index.js"),s=n("./node_modules/core-js/modules/_to-length.js"),l=n("./node_modules/core-js/modules/_regexp-exec-abstract.js"),u=n("./node_modules/core-js/modules/_regexp-exec.js"),c=n("./node_modules/core-js/modules/_fails.js"),d=Math.min,f=[].push,h="split",p="length",g="lastIndex",m=4294967295,v=!c((function(){RegExp(m,"y")}));n("./node_modules/core-js/modules/_fix-re-wks.js")("split",2,(function(e,t,n,c){var y;return y="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[p]||2!="ab"[h](/(?:ab)*/)[p]||4!="."[h](/(.?)(.?)/)[p]||"."[h](/()()/)[p]>1||""[h](/.?/)[p]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,s,l=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=void 0===t?m:t>>>0,v=new RegExp(e.source,c+"g");(i=u.call(v,o))&&!((a=v[g])>d&&(l.push(o.slice(d,i.index)),i[p]>1&&i.index<o[p]&&f.apply(l,i.slice(1)),s=i[0][p],d=a,l[p]>=h));)v[g]===i.index&&v[g]++;return d===o[p]?!s&&v.test("")||l.push(""):l.push(o.slice(d)),l[p]>h?l.slice(0,h):l}:"0"[h](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):y.call(String(o),n,r)},function(e,t){var r=c(y,e,this,t,y!==n);if(r.done)return r.value;var u=o(e),f=String(this),h=i(u,RegExp),p=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new h(v?u:"^(?:"+u.source+")",g),w=void 0===t?m:t>>>0;if(0===w)return[];if(0===f.length)return null===l(b,f)?[f]:[];for(var x=0,S=0,_=[];S<f.length;){b.lastIndex=v?S:0;var E,k=l(b,v?f:f.slice(S));if(null===k||(E=d(s(b.lastIndex+(v?0:S)),f.length))===x)S=a(f,S,p);else{if(_.push(f.slice(x,S)),_.length===w)return _;for(var C=1;C<=k.length-1;C++)if(_.push(k[C]),_.length===w)return _;S=x=E}}return _.push(f.slice(x)),_}]}))},"./node_modules/core-js/modules/es6.string.includes.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_export.js"),o=n("./node_modules/core-js/modules/_string-context.js"),i="includes";r(r.P+r.F*n("./node_modules/core-js/modules/_fails-is-regexp.js")(i),"String",{includes:function(e){return!!~o(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es6.symbol.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_global.js"),o=n("./node_modules/core-js/modules/_has.js"),i=n("./node_modules/core-js/modules/_descriptors.js"),a=n("./node_modules/core-js/modules/_export.js"),s=n("./node_modules/core-js/modules/_redefine.js"),l=n("./node_modules/core-js/modules/_meta.js").KEY,u=n("./node_modules/core-js/modules/_fails.js"),c=n("./node_modules/core-js/modules/_shared.js"),d=n("./node_modules/core-js/modules/_set-to-string-tag.js"),f=n("./node_modules/core-js/modules/_uid.js"),h=n("./node_modules/core-js/modules/_wks.js"),p=n("./node_modules/core-js/modules/_wks-ext.js"),g=n("./node_modules/core-js/modules/_wks-define.js"),m=n("./node_modules/core-js/modules/_enum-keys.js"),v=n("./node_modules/core-js/modules/_is-array.js"),y=n("./node_modules/core-js/modules/_an-object.js"),b=n("./node_modules/core-js/modules/_is-object.js"),w=n("./node_modules/core-js/modules/_to-object.js"),x=n("./node_modules/core-js/modules/_to-iobject.js"),S=n("./node_modules/core-js/modules/_to-primitive.js"),_=n("./node_modules/core-js/modules/_property-desc.js"),E=n("./node_modules/core-js/modules/_object-create.js"),k=n("./node_modules/core-js/modules/_object-gopn-ext.js"),C=n("./node_modules/core-js/modules/_object-gopd.js"),A=n("./node_modules/core-js/modules/_object-gops.js"),T=n("./node_modules/core-js/modules/_object-dp.js"),O=n("./node_modules/core-js/modules/_object-keys.js"),M=C.f,R=T.f,L=k.f,D=r.Symbol,P=r.JSON,j=P&&P.stringify,I="prototype",$=h("_hidden"),N=h("toPrimitive"),F={}.propertyIsEnumerable,z=c("symbol-registry"),B=c("symbols"),H=c("op-symbols"),W=Object[I],U="function"==typeof D&&!!A.f,Z=r.QObject,V=!Z||!Z[I]||!Z[I].findChild,G=i&&u((function(){return 7!=E(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=M(W,t);r&&delete W[t],R(e,t,n),r&&e!==W&&R(W,t,r)}:R,q=function(e){var t=B[e]=E(D[I]);return t._k=e,t},Y=U&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},K=function(e,t,n){return e===W&&K(H,t,n),y(e),t=S(t,!0),y(n),o(B,t)?(n.enumerable?(o(e,$)&&e[$][t]&&(e[$][t]=!1),n=E(n,{enumerable:_(0,!1)})):(o(e,$)||R(e,$,_(1,{})),e[$][t]=!0),G(e,t,n)):R(e,t,n)},X=function(e,t){y(e);for(var n,r=m(t=x(t)),o=0,i=r.length;i>o;)K(e,n=r[o++],t[n]);return e},Q=function(e){var t=F.call(this,e=S(e,!0));return!(this===W&&o(B,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(B,e)||o(this,$)&&this[$][e])||t)},J=function(e,t){if(e=x(e),t=S(t,!0),e!==W||!o(B,t)||o(H,t)){var n=M(e,t);return!n||!o(B,t)||o(e,$)&&e[$][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=L(x(e)),r=[],i=0;n.length>i;)o(B,t=n[i++])||t==$||t==l||r.push(t);return r},te=function(e){for(var t,n=e===W,r=L(n?H:x(e)),i=[],a=0;r.length>a;)!o(B,t=r[a++])||n&&!o(W,t)||i.push(B[t]);return i};U||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(H,n),o(this,$)&&o(this[$],e)&&(this[$][e]=!1),G(this,e,_(1,n))};return i&&V&&G(W,e,{configurable:!0,set:t}),q(e)},s(D[I],"toString",(function(){return this._k})),C.f=J,T.f=K,n("./node_modules/core-js/modules/_object-gopn.js").f=k.f=ee,n("./node_modules/core-js/modules/_object-pie.js").f=Q,A.f=te,i&&!n("./node_modules/core-js/modules/_library.js")&&s(W,"propertyIsEnumerable",Q,!0),p.f=function(e){return q(h(e))}),a(a.G+a.W+a.F*!U,{Symbol:D});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var oe=O(h.store),ie=0;oe.length>ie;)g(oe[ie++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return o(z,e+="")?z[e]:z[e]=D(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!U,"Object",{create:function(e,t){return void 0===t?E(e):X(E(e),t)},defineProperty:K,defineProperties:X,getOwnPropertyDescriptor:J,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=u((function(){A.f(1)}));a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return A.f(w(e))}}),P&&a(a.S+a.F*(!U||u((function(){var e=D();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,j.apply(P,r)}}),D[I][N]||n("./node_modules/core-js/modules/_hide.js")(D[I],N,D[I].valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},"./node_modules/core-js/modules/es7.array.includes.js":function(e,t,n){"use strict";var r=n("./node_modules/core-js/modules/_export.js"),o=n("./node_modules/core-js/modules/_array-includes.js")(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n("./node_modules/core-js/modules/_add-to-unscopables.js")("includes")},"./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js":function(e,t,n){var r=n("./node_modules/core-js/modules/_export.js"),o=n("./node_modules/core-js/modules/_own-keys.js"),i=n("./node_modules/core-js/modules/_to-iobject.js"),a=n("./node_modules/core-js/modules/_object-gopd.js"),s=n("./node_modules/core-js/modules/_create-property.js");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),l=a.f,u=o(r),c={},d=0;u.length>d;)void 0!==(n=l(r,t=u[d++]))&&s(c,t,n);return c}})},"./node_modules/core-js/modules/es7.symbol.async-iterator.js":function(e,t,n){n("./node_modules/core-js/modules/_wks-define.js")("asyncIterator")},"./node_modules/core-js/modules/web.dom.iterable.js":function(e,t,n){for(var r=n("./node_modules/core-js/modules/es6.array.iterator.js"),o=n("./node_modules/core-js/modules/_object-keys.js"),i=n("./node_modules/core-js/modules/_redefine.js"),a=n("./node_modules/core-js/modules/_global.js"),s=n("./node_modules/core-js/modules/_hide.js"),l=n("./node_modules/core-js/modules/_iterators.js"),u=n("./node_modules/core-js/modules/_wks.js"),c=u("iterator"),d=u("toStringTag"),f=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(h),g=0;g<p.length;g++){var m,v=p[g],y=h[v],b=a[v],w=b&&b.prototype;if(w&&(w[c]||s(w,c,f),w[d]||s(w,d,v),l[v]=f,y))for(m in r)w[m]||i(w,m,r[m],!0)}},"./node_modules/crypt/crypt.js":function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?t.push(n.charAt(o>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(e.charAt(r))>>>6-2*o);return t}},e.exports=r},"./node_modules/is-buffer/index.js":function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},"./node_modules/md5/md5.js":function(e,t,n){var r,o,i,a,s;r=n("./node_modules/crypt/crypt.js"),o=n("./node_modules/charenc/charenc.js").utf8,i=n("./node_modules/is-buffer/index.js"),a=n("./node_modules/charenc/charenc.js").bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),l=8*e.length,u=1732584193,c=-271733879,d=-1732584194,f=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[l>>>5]|=128<<l%32,n[14+(l+64>>>9<<4)]=l;var p=s._ff,g=s._gg,m=s._hh,v=s._ii;for(h=0;h<n.length;h+=16){var y=u,b=c,w=d,x=f;u=p(u,c,d,f,n[h+0],7,-680876936),f=p(f,u,c,d,n[h+1],12,-389564586),d=p(d,f,u,c,n[h+2],17,606105819),c=p(c,d,f,u,n[h+3],22,-1044525330),u=p(u,c,d,f,n[h+4],7,-176418897),f=p(f,u,c,d,n[h+5],12,1200080426),d=p(d,f,u,c,n[h+6],17,-1473231341),c=p(c,d,f,u,n[h+7],22,-45705983),u=p(u,c,d,f,n[h+8],7,1770035416),f=p(f,u,c,d,n[h+9],12,-1958414417),d=p(d,f,u,c,n[h+10],17,-42063),c=p(c,d,f,u,n[h+11],22,-1990404162),u=p(u,c,d,f,n[h+12],7,1804603682),f=p(f,u,c,d,n[h+13],12,-40341101),d=p(d,f,u,c,n[h+14],17,-1502002290),u=g(u,c=p(c,d,f,u,n[h+15],22,1236535329),d,f,n[h+1],5,-165796510),f=g(f,u,c,d,n[h+6],9,-1069501632),d=g(d,f,u,c,n[h+11],14,643717713),c=g(c,d,f,u,n[h+0],20,-373897302),u=g(u,c,d,f,n[h+5],5,-701558691),f=g(f,u,c,d,n[h+10],9,38016083),d=g(d,f,u,c,n[h+15],14,-660478335),c=g(c,d,f,u,n[h+4],20,-405537848),u=g(u,c,d,f,n[h+9],5,568446438),f=g(f,u,c,d,n[h+14],9,-1019803690),d=g(d,f,u,c,n[h+3],14,-187363961),c=g(c,d,f,u,n[h+8],20,1163531501),u=g(u,c,d,f,n[h+13],5,-1444681467),f=g(f,u,c,d,n[h+2],9,-51403784),d=g(d,f,u,c,n[h+7],14,1735328473),u=m(u,c=g(c,d,f,u,n[h+12],20,-1926607734),d,f,n[h+5],4,-378558),f=m(f,u,c,d,n[h+8],11,-2022574463),d=m(d,f,u,c,n[h+11],16,1839030562),c=m(c,d,f,u,n[h+14],23,-35309556),u=m(u,c,d,f,n[h+1],4,-1530992060),f=m(f,u,c,d,n[h+4],11,1272893353),d=m(d,f,u,c,n[h+7],16,-155497632),c=m(c,d,f,u,n[h+10],23,-1094730640),u=m(u,c,d,f,n[h+13],4,681279174),f=m(f,u,c,d,n[h+0],11,-358537222),d=m(d,f,u,c,n[h+3],16,-722521979),c=m(c,d,f,u,n[h+6],23,76029189),u=m(u,c,d,f,n[h+9],4,-640364487),f=m(f,u,c,d,n[h+12],11,-421815835),d=m(d,f,u,c,n[h+15],16,530742520),u=v(u,c=m(c,d,f,u,n[h+2],23,-995338651),d,f,n[h+0],6,-198630844),f=v(f,u,c,d,n[h+7],10,1126891415),d=v(d,f,u,c,n[h+14],15,-1416354905),c=v(c,d,f,u,n[h+5],21,-57434055),u=v(u,c,d,f,n[h+12],6,1700485571),f=v(f,u,c,d,n[h+3],10,-1894986606),d=v(d,f,u,c,n[h+10],15,-1051523),c=v(c,d,f,u,n[h+1],21,-2054922799),u=v(u,c,d,f,n[h+8],6,1873313359),f=v(f,u,c,d,n[h+15],10,-30611744),d=v(d,f,u,c,n[h+6],15,-1560198380),c=v(c,d,f,u,n[h+13],21,1309151649),u=v(u,c,d,f,n[h+4],6,-145523070),f=v(f,u,c,d,n[h+11],10,-1120210379),d=v(d,f,u,c,n[h+2],15,718787259),c=v(c,d,f,u,n[h+9],21,-343485551),u=u+y>>>0,c=c+b>>>0,d=d+w>>>0,f=f+x>>>0}return r.endian([u,c,d,f])})._ff=function(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._gg=function(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._hh=function(e,t,n,r,o,i,a){var s=e+(t^n^r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._ii=function(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},"./node_modules/regenerator-runtime/runtime.js":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new T(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:f,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",g={};function m(){}function v(){}function y(){}var b={};b[i]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(O([])));x&&x!==n&&r.call(x,i)&&(b=x);var S=y.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function O(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:t,done:!0}}return v.prototype=S.constructor=y,y.constructor=v,v.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},_(E.prototype),E.prototype[a]=function(){return this},e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(S),l(S,s,"Generator"),S[i]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"./src/api.js":function(e,t,n){"use strict";n.r(t),n.d(t,"setup",(function(){return g})),n.d(t,"setupCache",(function(){return p})),n("./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js"),n("./node_modules/core-js/modules/es6.symbol.js"),n("./node_modules/core-js/modules/es6.array.iterator.js"),n("./node_modules/core-js/modules/es6.object.to-string.js"),n("./node_modules/regenerator-runtime/runtime.js");var r=n("axios"),o=n.n(r),i=n("./src/request.js"),a=n("./src/cache.js");n.d(t,"serializeQuery",(function(){return a.serializeQuery}));var s=n("./src/config.js"),l=n("./src/utilities.js");function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function t(){var n;return n=regeneratorRuntime.mark((function t(n){var r,o,a,u;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object(s.mergeRequestConfig)(e,n),t.next=3,Object(i.default)(r,n);case 3:if(o=t.sent,a=o.next,Object(l.isFunction)(a)){t.next=7;break}return t.abrupt("return",a);case 7:return t.prev=7,t.next=10,r.adapter(n);case 10:o=t.sent,t.next=16;break;case 13:t.prev=13,t.t0=t.catch(7),u=t.t0;case 16:if(!u){t.next=31;break}if(!(Object(l.isFunction)(r.readOnError)?r.readOnError(u,n):r.readOnError)){t.next=30;break}return t.prev=19,r.acceptStale=!0,t.next=23,Object(i.default)(r,n);case 23:return(o=t.sent).next.request.stale=!0,t.abrupt("return",o.next);case 28:t.prev=28,t.t1=t.catch(19);case 30:throw u;case 31:return t.abrupt("return",a(o));case 32:case"end":return t.stop()}}),t,null,[[7,13],[19,28]])})),t=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){h(i,r,o,a,s,"next",e)}function s(e){h(i,r,o,a,s,"throw",e)}a(void 0)}))},t.apply(this,arguments)}return{adapter:function(e){return t.apply(this,arguments)},config:e=Object(s.makeConfig)(e),store:e.store}}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=d(d(d({},s.defaults.axios),e),{},{cache:d(d({},s.defaults.axios.cache),e.cache)}),n=p(t.cache),r=(t.cache,u(t,["cache"])),i=o.a.create(d(d({},r),{},{adapter:n.adapter}));return i.cache=n.store,i}t.default={setup:g,setupCache:p,serializeQuery:a.serializeQuery}},"./src/cache.js":function(e,t,n){"use strict";n.r(t),n.d(t,"read",(function(){return d})),n.d(t,"write",(function(){return u})),n.d(t,"key",(function(){return h})),n.d(t,"invalidate",(function(){return m})),n.d(t,"serializeQuery",(function(){return v})),n("./node_modules/core-js/modules/es7.array.includes.js"),n("./node_modules/core-js/modules/es6.string.includes.js"),n("./node_modules/regenerator-runtime/runtime.js"),n("./node_modules/core-js/modules/es6.array.iterator.js"),n("./node_modules/core-js/modules/es6.object.to-string.js");var r=n("./src/utilities.js"),o=n("./node_modules/md5/md5.js"),i=n.n(o),a=n("./src/serialize.js");function s(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,l,"next",e)}function l(e){s(i,r,o,a,l,"throw",e)}a(void 0)}))}}function u(e,t,n){return c.apply(this,arguments)}function c(){return(c=l(regeneratorRuntime.mark((function e(t,n,r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o={expires:t.expires,data:Object(a.default)(t,n,r)},e.next=4,t.store.setItem(t.uuid,o);case 4:e.next=19;break;case 6:if(e.prev=6,e.t0=e.catch(0),t.debug("Could not store response",e.t0),!t.clearOnError){e.next=18;break}return e.prev=10,e.next=13,t.store.clear();case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(10),t.debug("Could not clear store",e.t1);case 18:return e.abrupt("return",!1);case 19:return e.abrupt("return",!0);case 20:case"end":return e.stop()}}),e,null,[[0,6],[10,15]])})))).apply(this,arguments)}function d(e,t){return f.apply(this,arguments)}function f(){return(f=l(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.uuid,o=t.ignoreCache,e.next=3,t.store.getItem(r);case 3:if(i=e.sent,!o&&i&&i.data){e.next=10;break}throw t.debug("cache-miss",n.url),(a=new Error).reason="cache-miss",a.message="Entry not found from cache",a;case 10:if(s=i.expires,l=i.data,"undefined"!=typeof navigator&&"onLine"in navigator&&!navigator.onLine||t.acceptStale||0===s||!(s<Date.now())){e.next=18;break}throw t.debug("cache-stale",n.url),(u=new Error).reason="cache-stale",u.message="Entry is stale",u;case 18:return t.debug(t.acceptStale?"cache-hit-stale":"cache-hit",n.url),e.abrupt("return",l);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return Object(r.isFunction)(e.key)?e.key:(t=Object(r.isString)(e.key)?function(t){var n="".concat(t.baseURL?t.baseURL:"").concat(t.url),r="".concat(e.key,"/").concat(n).concat(v(t));return t.data?r+i()(t.data):r}:function(e){var t="".concat(e.baseURL?e.baseURL:"").concat(e.url)+v(e);return e.data?t+i()(e.data):t},t);var t}function p(e,t){return g.apply(this,arguments)}function g(){return(g=l(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.method.toLowerCase(),!t.exclude.methods.includes(r)){e.next=4;break}return e.next=4,t.store.removeItem(t.uuid);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(r.isFunction)(e.invalidate)?e.invalidate:p}function v(e){if(!e.params)return"";if("undefined"==typeof URLSearchParams)return JSON.stringify(e.params);var t=e.params;return e.params instanceof URLSearchParams||(t=new URLSearchParams,Object.keys(e.params).forEach((function(n){return t.append(n,e.params[n])}))),"?".concat(t.toString())}t.default={read:d,write:u,key:h,invalidate:m,serializeQuery:v}},"./src/config.js":function(e,t,n){"use strict";n.r(t),n.d(t,"defaults",(function(){return f})),n.d(t,"makeConfig",(function(){return p})),n.d(t,"mergeRequestConfig",(function(){return g})),n("./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js"),n("./node_modules/core-js/modules/es6.symbol.js"),n("./node_modules/core-js/modules/es6.array.iterator.js"),n("./node_modules/core-js/modules/es6.object.to-string.js");var r=n("axios"),o=n.n(r),i=n("./src/memory.js"),a=n("./src/cache.js");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){},d=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).log.apply(e,["[axios-cache-adapter]"].concat(n))},f={cache:{maxAge:0,limit:!1,store:null,key:null,invalidate:null,exclude:{paths:[],query:!0,filter:null,methods:["post","patch","put","delete"]},adapter:o.a.defaults.adapter,clearOnStale:!0,clearOnError:!0,readOnError:!1,readHeaders:!1,debug:!1,ignoreCache:!1},axios:{cache:{maxAge:9e5}}},h=["limit","store","adapter","uuid","acceptStale"],p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(l(l({},f.cache),e),{},{exclude:l(l({},f.cache.exclude),e.exclude)});return t.key=Object(a.key)(t),t.invalidate=Object(a.invalidate)(t),!1!==t.debug?t.debug="function"==typeof t.debug?t.debug:d:t.debug=c,t.store||(t.store=new i.default),t.debug("Global cache config",t),t},g=function(e,t){var n=t.cache||{};n&&h.forEach((function(e){return n[e]?delete n[e]:void 0}));var r=l(l(l({},e),n),{},{exclude:l(l({},e.exclude),n.exclude)});return!0===r.debug&&(r.debug=d),n.key&&(r.key=Object(a.key)(n)),r.uuid=r.key(t),e.debug("Request config for ".concat(t.url),r),r};t.default={defaults:f,makeConfig:p,mergeRequestConfig:g}},"./src/exclude.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/core-js/modules/es6.array.iterator.js"),n("./node_modules/core-js/modules/es6.object.to-string.js"),n("./node_modules/core-js/modules/es7.array.includes.js"),n("./node_modules/core-js/modules/es6.string.includes.js");var r=n("./src/utilities.js");t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.exclude,o=void 0===n?{}:n,i=e.debug,a=t.method.toLowerCase();if("head"===a||o.methods.includes(a))return i("Excluding request by HTTP method ".concat(t.url)),!0;if("function"==typeof o.filter&&o.filter(t))return i("Excluding request by filter ".concat(t.url)),!0;var s=/\?.*$/.test(t.url)||Object(r.isObject)(t.params)&&0!==Object.keys(t.params).length||"undefined"!=typeof URLSearchParams&&t.params instanceof URLSearchParams;return o.query&&s?(i("Excluding request by query ".concat(t.url)),!0):!!(o.paths||[]).some((function(e){return t.url.match(e)}))&&(i("Excluding request by url match ".concat(t.url)),!0)}},"./src/index.js":function(e,t,n){"use strict";n.r(t);var r=n("./src/api.js");n.d(t,"setup",(function(){return r.setup})),n.d(t,"setupCache",(function(){return r.setupCache})),n.d(t,"serializeQuery",(function(){return r.serializeQuery})),n.d(t,"default",(function(){return r.default}))},"./src/limit.js":function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function o(){var e;return e=regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.store.length();case 2:if(!((n=e.sent)<t.limit)){e.next=5;break}return e.abrupt("return");case 5:return t.debug("Current store size: ".concat(n)),e.next=8,t.store.iterate((function(e,t){r||(r={value:e,key:t}),e.expires<r.value.expires&&(r={value:e,key:t})}));case 8:if(!r){e.next=12;break}return t.debug("Removing item: ".concat(r.key)),e.next=12,t.store.removeItem(r.key);case 12:case"end":return e.stop()}}),e)})),o=function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)}))},o.apply(this,arguments)}n.r(t),n("./node_modules/regenerator-runtime/runtime.js"),n("./node_modules/core-js/modules/es6.object.to-string.js"),t.default=function(e){return o.apply(this,arguments)}},"./src/memory.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/core-js/modules/es6.array.iterator.js"),n("./node_modules/core-js/modules/es6.object.to-string.js"),n("./node_modules/regenerator-runtime/runtime.js");var r=n("./src/utilities.js");function o(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,l,"next",e)}function l(e){o(a,r,i,s,l,"throw",e)}s(void 0)}))}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store={}}var t,n,o,s,l,u,c,d;return t=e,n=[{key:"getItem",value:(d=i(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.store[t]||null,e.abrupt("return",JSON.parse(n));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"setItem",value:(c=i(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.store[t]=JSON.stringify(n),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"removeItem",value:(u=i(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete this.store[t];case 1:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"clear",value:(l=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.store={};case 1:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"length",value:(s=i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object.keys(this.store).length);case 1:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"iterate",value:function(e){return Promise.all(Object(r.mapObject)(this.store,e))}}],n&&a(t.prototype,n),o&&a(t,o),e}();t.default=s},"./src/request.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/regenerator-runtime/runtime.js"),n("./node_modules/core-js/modules/es6.object.to-string.js");var r=n("./src/response.js"),o=n("./src/exclude.js"),i=n("./src/cache.js");function a(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function s(){var e;return e=regeneratorRuntime.mark((function e(t,n){var a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=function(){return t.excludeFromCache=!0,{config:t,next:a}},t.debug("uuid",t.uuid),a=function(){for(var e=arguments.length,o=new Array(e),i=0;i<e;i++)o[i]=arguments[i];return r.default.apply(void 0,[t,n].concat(o))},e.next=5,t.invalidate(t,n);case 5:if(!Object(o.default)(t,n)){e.next=7;break}return e.abrupt("return",l());case 7:return e.prev=7,e.next=10,Object(i.read)(t,n);case 10:return(s=e.sent).config=n,s.request={fromCache:!0},e.abrupt("return",{config:t,next:s});case 16:if(e.prev=16,e.t0=e.catch(7),!t.clearOnStale||"cache-stale"!==e.t0.reason){e.next=21;break}return e.next=21,t.store.removeItem(t.uuid);case 21:return e.abrupt("return",{config:t,next:a});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})),s=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)}))},s.apply(this,arguments)}t.default=function(e,t){return s.apply(this,arguments)}},"./src/response.js":function(e,t,n){"use strict";n.r(t),n("./node_modules/regenerator-runtime/runtime.js"),n("./node_modules/core-js/modules/es6.object.to-string.js");var r=n("./src/limit.js"),o=n("./src/cache.js"),i=n("./node_modules/cache-control-esm/index.js");function a(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function s(){var e;return e=regeneratorRuntime.mark((function e(t,n,a){var s,l,u,c,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=a.request,l=void 0===s?{}:s,u=a.headers,c=void 0===u?{}:u,!(["arraybuffer","blob"].indexOf(l.responseType)>-1)){e.next=3;break}return e.abrupt("return",a);case 3:if(d={},t.readHeaders&&(c["cache-control"]?((d=Object(i.parse)(c["cache-control"])).noCache||d.noStore)&&(t.excludeFromCache=!0):c.expires?t.expires=new Date(c.expires).getTime():t.expires=(new Date).getTime()),t.excludeFromCache){e.next=15;break}if(d.maxAge||0===d.maxAge?t.expires=Date.now()+1e3*d.maxAge:t.readHeaders||(t.expires=0===t.maxAge?Date.now():Date.now()+t.maxAge),!t.limit){e.next=11;break}return t.debug("Detected limit: ".concat(t.limit)),e.next=11,Object(r.default)(t);case 11:return e.next=13,Object(o.write)(t,n,a);case 13:e.next=16;break;case 15:a.request.excludedFromCache=!0;case 16:return e.abrupt("return",a);case 17:case"end":return e.stop()}}),e)})),s=function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,l,"next",e)}function l(e){a(i,r,o,s,l,"throw",e)}s(void 0)}))},s.apply(this,arguments)}t.default=function(e,t,n){return s.apply(this,arguments)}},"./src/serialize.js":function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.r(t),n("./node_modules/core-js/modules/es6.symbol.js"),n("./node_modules/core-js/modules/es6.array.iterator.js"),n("./node_modules/core-js/modules/es6.object.to-string.js"),t.default=function(e,t,n){if(n.data)try{n.data=JSON.parse(n.data)}catch(t){e.debug("Could not parse data as JSON",t)}return n.request,n.config,r(n,["request","config"])}},"./src/utilities.js":function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=r(e);return null!=e&&("object"===t||"function"===t)}function i(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function a(e){if(!o(e))return!1;var t=i(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}function s(e){var t=r(e);return"string"===t||"object"===t&&null!=e&&!Array.isArray(e)&&"[object String]"===i(e)}function l(e,t){return o(e)?Object.keys(e).map((function(n){return t(e[n],n)})):[]}n.r(t),n.d(t,"isObject",(function(){return o})),n.d(t,"getTag",(function(){return i})),n.d(t,"isFunction",(function(){return a})),n.d(t,"isString",(function(){return s})),n.d(t,"mapObject",(function(){return l})),n("./node_modules/core-js/modules/es7.symbol.async-iterator.js"),n("./node_modules/core-js/modules/es6.symbol.js"),n("./node_modules/core-js/modules/es6.array.iterator.js"),n("./node_modules/core-js/modules/es6.object.to-string.js")},axios:function(t,n){t.exports=e}})},e.exports=r(n(89644))},89644:(e,t,n)=>{e.exports=n(25644)},70353:(e,t,n)=>{"use strict";var r=n(93044),o=n(86955),i=n(92233),a=n(68030),s=n(97948),l=n(51875),u=n(60842),c=n(88618);e.exports=function(e){return new Promise((function(t,n){var d=e.data,f=e.headers,h=e.responseType;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.Authorization="Basic "+btoa(g+":"+m)}var v=s(e.baseURL,e.url);function y(){if(p){var r="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,i={data:h&&"text"!==h&&"json"!==h?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};o(t,n,i),p=null}}if(p.open(e.method.toUpperCase(),a(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(v))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}"setRequestHeader"in p&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),h&&"json"!==h&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},25644:(e,t,n)=>{"use strict";var r=n(93044),o=n(73644),i=n(62215),a=n(92937);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(n(1439));l.Axios=i,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(26714),l.CancelToken=n(34089),l.isCancel=n(98041),l.all=function(e){return Promise.all(e)},l.spread=n(70783),l.isAxiosError=n(65587),e.exports=l,e.exports.default=l},26714:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},34089:(e,t,n)=>{"use strict";var r=n(26714);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},98041:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},62215:(e,t,n)=>{"use strict";var r=n(93044),o=n(68030),i=n(946),a=n(6895),s=n(92937),l=n(17525),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(i),o=Promise.resolve(e);c.length;)o=o.then(c.shift(),c.shift());return o}for(var d=e;n.length;){var f=n.shift(),h=n.shift();try{d=f(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},c.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},946:(e,t,n)=>{"use strict";var r=n(93044);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97948:(e,t,n)=>{"use strict";var r=n(99192),o=n(48762);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},88618:(e,t,n)=>{"use strict";var r=n(11935);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},6895:(e,t,n)=>{"use strict";var r=n(93044),o=n(38556),i=n(98041),a=n(1439);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},11935:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},92937:(e,t,n)=>{"use strict";var r=n(93044);e.exports=function(e,t){t=t||{};var n={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(e[o],t[o])}r.forEach(o,(function(e){r.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),r.forEach(i,u),r.forEach(a,(function(o){r.isUndefined(t[o])?r.isUndefined(e[o])||(n[o]=l(void 0,e[o])):n[o]=l(void 0,t[o])})),r.forEach(s,(function(r){r in t?n[r]=l(e[r],t[r]):r in e&&(n[r]=l(void 0,e[r]))}));var c=o.concat(i).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(d,u),n}},86955:(e,t,n)=>{"use strict";var r=n(88618);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},38556:(e,t,n)=>{"use strict";var r=n(93044),o=n(1439);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},1439:(e,t,n)=>{"use strict";var r=n(93044),o=n(98868),i=n(11935),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=n(70353)),l),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},73644:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},68030:(e,t,n)=>{"use strict";var r=n(93044);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},48762:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},92233:(e,t,n)=>{"use strict";var r=n(93044);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},99192:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},65587:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},60842:(e,t,n)=>{"use strict";var r=n(93044);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},98868:(e,t,n)=>{"use strict";var r=n(93044);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},51875:(e,t,n)=>{"use strict";var r=n(93044),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},70783:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},17525:(e,t,n)=>{"use strict";var r=n(19521),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=r.version.split(".");function s(e,t){for(var n=t?t.split("."):a,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]<r[o])return!1}return!1}o.transitional=function(e,t,n){var o=t&&s(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new Error(a(r," has been removed in "+t));return o&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={isOlderVersion:s,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=void 0===s||a(s,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},93044:(e,t,n)=>{"use strict";var r=n(73644),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:l,isUndefined:a,isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){l(t[r])&&l(n)?t[r]=e(t[r],n):l(n)?t[r]=e({},n):i(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},59083:(e,t,n)=>{"use strict";var r=n(38594);function o(){var e={},t=0,n=0,r=0;return{add:function(o,i){i||(i=o,o=0),o>n?n=o:o<r&&(r=o),e[o]||(e[o]=[]),e[o].push(i),t++},process:function(){for(var t=r;t<=n;t++)for(var o=e[t],i=0;i<o.length;i++){(0,o[i])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=r.getOption(e,"async",!0),i=r.getOption(e,"auto",!0);i&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var a,s=o(),l=!1;function u(){for(l=!0;s.size();){var e=s;s=o(),e.process()}l=!1}function c(){var e;e=u,a=setTimeout(e,0)}return{add:function(e,t){!l&&i&&n&&0===s.size()&&c(),s.add(e,t)},force:function(e){l||(void 0===e&&(e=n),a&&(clearTimeout(a),a=null),e?c():u())}}}},38594:e=>{"use strict";(e.exports={}).getOption=function(e,t,n){var r=e[t];if(null==r&&void 0!==n)return n;return r}},5792:e=>{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},72779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},96206:(e,t,n)=>{"use strict";const r=n(52844),o=n(91366),i=n(36633);function a(e,t){switch(o(e)){case"object":return function(e,t){if("function"==typeof t)return t(e);if(t||i(e)){const n=new e.constructor;for(let r in e)n[r]=a(e[r],t);return n}return e}(e,t);case"array":return function(e,t){const n=new e.constructor(e.length);for(let r=0;r<e.length;r++)n[r]=a(e[r],t);return n}(e,t);default:return r(e)}}e.exports=a},36633:(e,t,n)=>{"use strict";var r=n(98558);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&("function"==typeof(t=e.constructor)&&(!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},50381:(e,t,n)=>{"use strict";var r=n(91706),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},15592:(e,t,n)=>{"use strict";var r=n(37320),o={};var i=function(e){};function a(e,t,n,r,o,a,s,l){if(i(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,s,l],d=0;(u=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}var s="mixins";e.exports=function(e,t,n){var i=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},u={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)f(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in c),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return a("DEFINE_MANY_MERGED"===(u.hasOwnProperty(n)?u[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=p(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function d(e,t){var n=l.hasOwnProperty(t)?l[t]:null;b.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function f(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var i in n.hasOwnProperty(s)&&c.mixins(e,n.mixins),n)if(n.hasOwnProperty(i)&&i!==s){var u=n[i],f=r.hasOwnProperty(i);if(d(f,i),c.hasOwnProperty(i))c[i](e,u);else{var h=l.hasOwnProperty(i);if("function"==typeof u&&!h&&!f&&!1!==n.autobind)o.push(i,u),r[i]=u;else if(f){var m=l[i];a(h&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,i),"DEFINE_MANY_MERGED"===m?r[i]=p(r[i],u):"DEFINE_MANY"===m&&(r[i]=g(r[i],u))}else r[i]=u}}}else;}function h(e,t){for(var n in a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return h(o,n),h(o,r),o}}function g(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function m(e,t){return t.bind(e)}var v={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},b={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return r(w.prototype,e.prototype,b),function(e){var t=function(e,r,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=m(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=i||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;a("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i.forEach(f.bind(null,t)),f(t,v),f(t,e),f(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},58335:(e,t,n)=>{"use strict";var r=n(2784),o=n(15592);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},96279:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;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?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=p(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=c(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),y.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];x.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new x(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=f,e.Request=b,e.Response=x),t.Headers=f,t.Request=b,t.Response=x,t.fetch=_,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},19562:e=>{var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}},e.exports=n},42747:e=>{e.exports=function(){function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return o(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}return e}()({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parse=n.PeggySyntaxError=void 0;let r=e("../util");function o(e,t,n){return n=n||" ",e.length>t?e:(t-=e.length,e+(n+=n.repeat(t)).slice(0,t))}class i extends Error{static buildMessage(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+n(e))).replace(/[\x10-\x1F\x7F-\x9F]/g,(e=>"\\x"+n(e)))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(e=>"\\x0"+n(e))).replace(/[\x10-\x1F\x7F-\x9F]/g,(e=>"\\x"+n(e)))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":const t=e.parts.map((e=>Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}function a(e){const t=e.map(i);let n,r;if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}function s(e){return e?'"'+r(e)+'"':"end of input"}return"Expected "+a(e)+" but "+s(t)+" found."}constructor(e,t,n,r){super(),this.message=e,this.expected=t,this.found=n,this.location=r,this.name="PeggySyntaxError","function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(this,i.prototype):this.__proto__=i.prototype,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}format(e){let t="Error: "+this.message;if(this.location){let n,r=null;for(n=0;n<e.length;n++)if(e[n].grammarSource===this.location.source){r=e[n].text.split(/\r\n|\n|\r/g);break}let i=this.location.start,a=this.location.source+":"+i.line+":"+i.column;if(r){let e=this.location.end,n=o("",i.line.toString().length," "),s=r[i.line-1],l=i.line===e.line?e.column:s.length+1;t+="\n --\x3e "+a+"\n"+n+" |\n"+i.line+" | "+s+"\n"+n+" | "+o("",i.column-1," ")+o("",l-i.column,"^")}else t+="\n at "+a}return t}}function a(e,t){const n={},o=(t=void 0!==t?t:{}).grammarSource,a={start:Z};let s=Z;const l="",u=function(){return[]},c=",",d=N(",",!1),f=function(e,t){return[e].concat(t)},h=function(e){return[e]},p=function(e,t){return{url:e,format:t}},g=function(e){return{url:e}},m="url(",v=N("url(",!1),y=")",b=N(")",!1),w=function(e){return e},x="format(",S=N("format(",!1),_="local(",E=N("local(",!1),k=function(e){return{local:e}},C=/^[^)]/,A=F([")"],!0,!1),T=function(e){return r.extractValue(e.join(""))},O=/^[ \t\r\n\f]/,M=F([" ","\t","\r","\n","\f"],!1,!1);let R=0,L=0;const D=[{line:1,column:1}];let P,j=0,I=[],$=0;if(void 0!==t.startRule){if(!(t.startRule in a))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=a[t.startRule]}function N(e,t){return{type:"literal",text:e,ignoreCase:t}}function F(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function z(){return{type:"end"}}function B(t){let n,r=D[t];if(r)return r;for(n=t-1;!D[n];)n--;for(r=D[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return D[t]=r,r}function H(e,t){const n=B(e),r=B(t);return{source:o,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function W(e){R<j||(R>j&&(j=R,I=[]),I.push(e))}function U(e,t,n){return new i(i.buildMessage(e,t),e,t,n)}function Z(){let e,t;return e=V(),e===n&&(e=R,t=l,t!==n&&(L=e,t=u()),e=t),e}function V(){let t,r,o,i,a,s;if(t=R,r=G(),r!==n){for(o=[],i=J();i!==n;)o.push(i),i=J();if(o!==n)if(44===e.charCodeAt(R)?(i=c,R++):(i=n,0===$&&W(d)),i!==n){for(a=[],s=J();s!==n;)a.push(s),s=J();a!==n?(s=V(),s!==n?(L=t,r=f(r,s),t=r):(R=t,t=n)):(R=t,t=n)}else R=t,t=n;else R=t,t=n}else R=t,t=n;return t===n&&(t=R,r=G(),r!==n&&(L=t,r=h(r)),t=r),t}function G(){let e;return e=q(),e===n&&(e=X()),e}function q(){let e,t,r,o;if(e=R,t=Y(),t!==n){if(r=[],o=J(),o!==n)for(;o!==n;)r.push(o),o=J();else r=n;r!==n?(o=K(),o!==n?(L=e,t=p(t,o),e=t):(R=e,e=n)):(R=e,e=n)}else R=e,e=n;return e===n&&(e=R,t=Y(),t!==n&&(L=e,t=g(t)),e=t),e}function Y(){let t,r,o,i;return t=R,e.substr(R,4)===m?(r=m,R+=4):(r=n,0===$&&W(v)),r!==n?(o=Q(),o!==n?(41===e.charCodeAt(R)?(i=y,R++):(i=n,0===$&&W(b)),i!==n?(L=t,r=w(o),t=r):(R=t,t=n)):(R=t,t=n)):(R=t,t=n),t}function K(){let t,r,o,i;return t=R,e.substr(R,7)===x?(r=x,R+=7):(r=n,0===$&&W(S)),r!==n?(o=Q(),o!==n?(41===e.charCodeAt(R)?(i=y,R++):(i=n,0===$&&W(b)),i!==n?(L=t,r=w(o),t=r):(R=t,t=n)):(R=t,t=n)):(R=t,t=n),t}function X(){let t,r,o,i;return t=R,e.substr(R,6)===_?(r=_,R+=6):(r=n,0===$&&W(E)),r!==n?(o=Q(),o!==n?(41===e.charCodeAt(R)?(i=y,R++):(i=n,0===$&&W(b)),i!==n?(L=t,r=k(o),t=r):(R=t,t=n)):(R=t,t=n)):(R=t,t=n),t}function Q(){let t,r,o;if(t=R,r=[],C.test(e.charAt(R))?(o=e.charAt(R),R++):(o=n,0===$&&W(A)),o!==n)for(;o!==n;)r.push(o),C.test(e.charAt(R))?(o=e.charAt(R),R++):(o=n,0===$&&W(A));else r=n;return r!==n&&(L=t,r=T(r)),t=r,t}function J(){let t;return O.test(e.charAt(R))?(t=e.charAt(R),R++):(t=n,0===$&&W(M)),t}if(P=s(),P!==n&&R===e.length)return P;throw P!==n&&R<e.length&&W(z()),U(I,j<e.length?e.charAt(j):null,j<e.length?H(j,j+1):H(j,j))}n.PeggySyntaxError=i,n.parse=a},{"../util":3}],2:[function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(n,"__esModule",{value:!0}),n.serialize=n.parse=n.SyntaxError=void 0;const a=i(e("./grammar/index"));class s extends Error{constructor(e,t){super(e),this.name=s.name,this.location=t}}function l(e){try{return a.parse(e)}catch(e){const t=e;throw new s(t.message,t.location)}}function u(e){return e.map((e=>{let t;return e.url?(t=`url("${e.url}")`,e.format&&(t=`${t} format("${e.format}")`)):t=`local("${e.local}")`,t})).join(", ")}n.SyntaxError=s,n.parse=l,n.serialize=u},{"./grammar/index":1}],3:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.extractValue=void 0;const r=/^[\t\r\f\n ]*(.+?)[\t\r\f\n ]*$/,o=/^"(.*)"$/,i=/^'(.*)'$/;function a(e){return e.replace(r,"$1")}function s(e){return o.test(e)?e.replace(o,"$1"):i.test(e)?e.replace(i,"$1"):e}function l(e){return s(a(e))}n.extractValue=l},{}]},{},[2])(2)},58165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1799),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,".szh-menu-container {\n  position: relative;\n  width: 0px;\n  height: 0px;\n}\n\n.szh-menu {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  box-sizing: border-box;\n  width: max-content;\n  position: absolute;\n  z-index: 100;\n  border: 1px solid rgba(0, 0, 0, 0.1);\n  background-color: #fff;\n}\n.szh-menu:focus {\n  outline: none;\n}\n.szh-menu--state-closed {\n  display: none;\n}\n.szh-menu__arrow {\n  box-sizing: border-box;\n  width: 0.75rem;\n  height: 0.75rem;\n  background-color: #fff;\n  border: 1px solid transparent;\n  border-left-color: rgba(0, 0, 0, 0.1);\n  border-top-color: rgba(0, 0, 0, 0.1);\n  position: absolute;\n  z-index: -1;\n}\n.szh-menu__arrow--dir-left {\n  right: -0.375rem;\n  transform: translateY(-50%) rotate(135deg);\n}\n.szh-menu__arrow--dir-right {\n  left: -0.375rem;\n  transform: translateY(-50%) rotate(-45deg);\n}\n.szh-menu__arrow--dir-top {\n  bottom: -0.375rem;\n  transform: translateX(-50%) rotate(-135deg);\n}\n.szh-menu__arrow--dir-bottom {\n  top: -0.375rem;\n  transform: translateX(-50%) rotate(45deg);\n}\n.szh-menu__item {\n  cursor: pointer;\n}\n.szh-menu__item:focus {\n  outline: none;\n}\n.szh-menu__item--hover {\n  background-color: #ebebeb;\n}\n.szh-menu__item--focusable {\n  cursor: default;\n  background-color: inherit;\n}\n.szh-menu__item--disabled {\n  cursor: default;\n  color: #aaa;\n}\n.szh-menu__submenu {\n  position: relative;\n}\n.szh-menu__group {\n  box-sizing: border-box;\n}\n.szh-menu__radio-group {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n.szh-menu__divider {\n  height: 1px;\n  margin: 0.5rem 0;\n  background-color: rgba(0, 0, 0, 0.12);\n}\n\n.szh-menu-button {\n  box-sizing: border-box;\n}\n","",{version:3,sources:["webpack://./../../node_modules/@szhsin/react-menu/dist/core.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,UAAU;EACV,WAAW;AACb;;AAEA;EACE,SAAS;EACT,UAAU;EACV,gBAAgB;EAChB,sBAAsB;EACtB,kBAAkB;EAClB,kBAAkB;EAClB,YAAY;EACZ,oCAAoC;EACpC,sBAAsB;AACxB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,sBAAsB;EACtB,cAAc;EACd,eAAe;EACf,sBAAsB;EACtB,6BAA6B;EAC7B,qCAAqC;EACrC,oCAAoC;EACpC,kBAAkB;EAClB,WAAW;AACb;AACA;EACE,gBAAgB;EAChB,0CAA0C;AAC5C;AACA;EACE,eAAe;EACf,0CAA0C;AAC5C;AACA;EACE,iBAAiB;EACjB,2CAA2C;AAC7C;AACA;EACE,cAAc;EACd,yCAAyC;AAC3C;AACA;EACE,eAAe;AACjB;AACA;EACE,aAAa;AACf;AACA;EACE,yBAAyB;AAC3B;AACA;EACE,eAAe;EACf,yBAAyB;AAC3B;AACA;EACE,eAAe;EACf,WAAW;AACb;AACA;EACE,kBAAkB;AACpB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,SAAS;EACT,UAAU;EACV,gBAAgB;AAClB;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,qCAAqC;AACvC;;AAEA;EACE,sBAAsB;AACxB",sourcesContent:[".szh-menu-container {\n  position: relative;\n  width: 0px;\n  height: 0px;\n}\n\n.szh-menu {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  box-sizing: border-box;\n  width: max-content;\n  position: absolute;\n  z-index: 100;\n  border: 1px solid rgba(0, 0, 0, 0.1);\n  background-color: #fff;\n}\n.szh-menu:focus {\n  outline: none;\n}\n.szh-menu--state-closed {\n  display: none;\n}\n.szh-menu__arrow {\n  box-sizing: border-box;\n  width: 0.75rem;\n  height: 0.75rem;\n  background-color: #fff;\n  border: 1px solid transparent;\n  border-left-color: rgba(0, 0, 0, 0.1);\n  border-top-color: rgba(0, 0, 0, 0.1);\n  position: absolute;\n  z-index: -1;\n}\n.szh-menu__arrow--dir-left {\n  right: -0.375rem;\n  transform: translateY(-50%) rotate(135deg);\n}\n.szh-menu__arrow--dir-right {\n  left: -0.375rem;\n  transform: translateY(-50%) rotate(-45deg);\n}\n.szh-menu__arrow--dir-top {\n  bottom: -0.375rem;\n  transform: translateX(-50%) rotate(-135deg);\n}\n.szh-menu__arrow--dir-bottom {\n  top: -0.375rem;\n  transform: translateX(-50%) rotate(45deg);\n}\n.szh-menu__item {\n  cursor: pointer;\n}\n.szh-menu__item:focus {\n  outline: none;\n}\n.szh-menu__item--hover {\n  background-color: #ebebeb;\n}\n.szh-menu__item--focusable {\n  cursor: default;\n  background-color: inherit;\n}\n.szh-menu__item--disabled {\n  cursor: default;\n  color: #aaa;\n}\n.szh-menu__submenu {\n  position: relative;\n}\n.szh-menu__group {\n  box-sizing: border-box;\n}\n.szh-menu__radio-group {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n.szh-menu__divider {\n  height: 1px;\n  margin: 0.5rem 0;\n  background-color: rgba(0, 0, 0, 0.12);\n}\n\n.szh-menu-button {\n  box-sizing: border-box;\n}\n"],sourceRoot:""}]);const s=a},18875:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1799),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,"@keyframes szh-menu-show-slide-left {\n  from {\n    opacity: 0;\n    transform: translateX(0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-left {\n  to {\n    opacity: 0;\n    transform: translateX(0.75rem);\n  }\n}\n@keyframes szh-menu-show-slide-right {\n  from {\n    opacity: 0;\n    transform: translateX(-0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-right {\n  to {\n    opacity: 0;\n    transform: translateX(-0.75rem);\n  }\n}\n@keyframes szh-menu-show-slide-top {\n  from {\n    opacity: 0;\n    transform: translateY(0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-top {\n  to {\n    opacity: 0;\n    transform: translateY(0.75rem);\n  }\n}\n@keyframes szh-menu-show-slide-bottom {\n  from {\n    opacity: 0;\n    transform: translateY(-0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-bottom {\n  to {\n    opacity: 0;\n    transform: translateY(-0.75rem);\n  }\n}\n.szh-menu--state-opening.szh-menu--dir-left {\n  animation: szh-menu-show-slide-left 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-left {\n  animation: szh-menu-hide-slide-left 0.15s ease-in forwards;\n}\n\n.szh-menu--state-opening.szh-menu--dir-right {\n  animation: szh-menu-show-slide-right 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-right {\n  animation: szh-menu-hide-slide-right 0.15s ease-in forwards;\n}\n\n.szh-menu--state-opening.szh-menu--dir-top {\n  animation: szh-menu-show-slide-top 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-top {\n  animation: szh-menu-hide-slide-top 0.15s ease-in forwards;\n}\n\n.szh-menu--state-opening.szh-menu--dir-bottom {\n  animation: szh-menu-show-slide-bottom 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-bottom {\n  animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;\n}\n","",{version:3,sources:["webpack://./../../node_modules/@szhsin/react-menu/dist/transitions/slide.css"],names:[],mappings:"AAAA;EACE;IACE,UAAU;IACV,8BAA8B;EAChC;AACF;AACA;EACE;IACE,UAAU;IACV,8BAA8B;EAChC;AACF;AACA;EACE;IACE,UAAU;IACV,+BAA+B;EACjC;AACF;AACA;EACE;IACE,UAAU;IACV,+BAA+B;EACjC;AACF;AACA;EACE;IACE,UAAU;IACV,8BAA8B;EAChC;AACF;AACA;EACE;IACE,UAAU;IACV,8BAA8B;EAChC;AACF;AACA;EACE;IACE,UAAU;IACV,+BAA+B;EACjC;AACF;AACA;EACE;IACE,UAAU;IACV,+BAA+B;EACjC;AACF;AACA;EACE,kDAAkD;AACpD;;AAEA;EACE,0DAA0D;AAC5D;;AAEA;EACE,mDAAmD;AACrD;;AAEA;EACE,2DAA2D;AAC7D;;AAEA;EACE,iDAAiD;AACnD;;AAEA;EACE,yDAAyD;AAC3D;;AAEA;EACE,oDAAoD;AACtD;;AAEA;EACE,4DAA4D;AAC9D",sourcesContent:["@keyframes szh-menu-show-slide-left {\n  from {\n    opacity: 0;\n    transform: translateX(0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-left {\n  to {\n    opacity: 0;\n    transform: translateX(0.75rem);\n  }\n}\n@keyframes szh-menu-show-slide-right {\n  from {\n    opacity: 0;\n    transform: translateX(-0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-right {\n  to {\n    opacity: 0;\n    transform: translateX(-0.75rem);\n  }\n}\n@keyframes szh-menu-show-slide-top {\n  from {\n    opacity: 0;\n    transform: translateY(0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-top {\n  to {\n    opacity: 0;\n    transform: translateY(0.75rem);\n  }\n}\n@keyframes szh-menu-show-slide-bottom {\n  from {\n    opacity: 0;\n    transform: translateY(-0.75rem);\n  }\n}\n@keyframes szh-menu-hide-slide-bottom {\n  to {\n    opacity: 0;\n    transform: translateY(-0.75rem);\n  }\n}\n.szh-menu--state-opening.szh-menu--dir-left {\n  animation: szh-menu-show-slide-left 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-left {\n  animation: szh-menu-hide-slide-left 0.15s ease-in forwards;\n}\n\n.szh-menu--state-opening.szh-menu--dir-right {\n  animation: szh-menu-show-slide-right 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-right {\n  animation: szh-menu-hide-slide-right 0.15s ease-in forwards;\n}\n\n.szh-menu--state-opening.szh-menu--dir-top {\n  animation: szh-menu-show-slide-top 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-top {\n  animation: szh-menu-hide-slide-top 0.15s ease-in forwards;\n}\n\n.szh-menu--state-opening.szh-menu--dir-bottom {\n  animation: szh-menu-show-slide-bottom 0.15s ease-out;\n}\n\n.szh-menu--state-closing.szh-menu--dir-bottom {\n  animation: szh-menu-hide-slide-bottom 0.15s ease-in forwards;\n}\n"],sourceRoot:""}]);const s=a},23366:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1799),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,".rdp {\n  --rdp-cell-size: 40px;\n  --rdp-caption-font-size: 18px;\n  --rdp-accent-color: #0000ff;\n  --rdp-background-color: #e7edff;\n  --rdp-accent-color-dark: #3003e1;\n  --rdp-background-color-dark: #180270;\n  --rdp-outline: 2px solid var(--rdp-accent-color); /* Outline border for focused elements */\n  --rdp-outline-selected: 3px solid var(--rdp-accent-color); /* Outline border for focused _and_ selected elements */\n\n  margin: 1em;\n}\n\n/* Hide elements for devices that are not screen readers */\n.rdp-vhidden {\n  box-sizing: border-box;\n  padding: 0;\n  margin: 0;\n  background: transparent;\n  border: 0;\n  -moz-appearance: none;\n  -webkit-appearance: none;\n  appearance: none;\n  position: absolute !important;\n  top: 0;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  overflow: hidden !important;\n  clip: rect(1px, 1px, 1px, 1px) !important;\n  border: 0 !important;\n}\n\n/* Buttons */\n.rdp-button_reset {\n  appearance: none;\n  position: relative;\n  margin: 0;\n  padding: 0;\n  cursor: default;\n  color: inherit;\n  background: none;\n  font: inherit;\n\n  -moz-appearance: none;\n  -webkit-appearance: none;\n}\n\n.rdp-button_reset:focus-visible {\n  /* Make sure to reset outline only when :focus-visible is supported */\n  outline: none;\n}\n\n.rdp-button {\n  border: 2px solid transparent;\n}\n\n.rdp-button[disabled]:not(.rdp-day_selected) {\n  opacity: 0.25;\n}\n\n.rdp-button:not([disabled]) {\n  cursor: pointer;\n}\n\n.rdp-button:focus-visible:not([disabled]) {\n  color: inherit;\n  background-color: var(--rdp-background-color);\n  border: var(--rdp-outline);\n}\n\n.rdp-button:hover:not([disabled]):not(.rdp-day_selected) {\n  background-color: var(--rdp-background-color);\n}\n\n.rdp-months {\n  display: flex;\n}\n\n.rdp-month {\n  margin: 0 1em;\n}\n\n.rdp-month:first-child {\n  margin-left: 0;\n}\n\n.rdp-month:last-child {\n  margin-right: 0;\n}\n\n.rdp-table {\n  margin: 0;\n  max-width: calc(var(--rdp-cell-size) * 7);\n  border-collapse: collapse;\n}\n\n.rdp-with_weeknumber .rdp-table {\n  max-width: calc(var(--rdp-cell-size) * 8);\n  border-collapse: collapse;\n}\n\n.rdp-caption {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 0;\n  text-align: left;\n}\n\n.rdp-multiple_months .rdp-caption {\n  position: relative;\n  display: block;\n  text-align: center;\n}\n\n.rdp-caption_dropdowns {\n  position: relative;\n  display: inline-flex;\n}\n\n.rdp-caption_label {\n  position: relative;\n  z-index: 1;\n  display: inline-flex;\n  align-items: center;\n  margin: 0;\n  padding: 0 0.25em;\n  white-space: nowrap;\n  color: currentColor;\n  border: 0;\n  border: 2px solid transparent;\n  font-family: inherit;\n  font-size: var(--rdp-caption-font-size);\n  font-weight: bold;\n}\n\n.rdp-nav {\n  white-space: nowrap;\n}\n\n.rdp-multiple_months .rdp-caption_start .rdp-nav {\n  position: absolute;\n  top: 50%;\n  left: 0;\n  transform: translateY(-50%);\n}\n\n.rdp-multiple_months .rdp-caption_end .rdp-nav {\n  position: absolute;\n  top: 50%;\n  right: 0;\n  transform: translateY(-50%);\n}\n\n.rdp-nav_button {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  width: var(--rdp-cell-size);\n  height: var(--rdp-cell-size);\n  padding: 0.25em;\n  border-radius: 100%;\n}\n\n/* ---------- */\n/* Dropdowns  */\n/* ---------- */\n\n.rdp-dropdown_year,\n.rdp-dropdown_month {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n}\n\n.rdp-dropdown {\n  appearance: none;\n  position: absolute;\n  z-index: 2;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  margin: 0;\n  padding: 0;\n  cursor: inherit;\n  opacity: 0;\n  border: none;\n  background-color: transparent;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: inherit;\n}\n\n.rdp-dropdown[disabled] {\n  opacity: unset;\n  color: unset;\n}\n\n.rdp-dropdown:focus-visible:not([disabled]) + .rdp-caption_label {\n  background-color: var(--rdp-background-color);\n  border: var(--rdp-outline);\n  border-radius: 6px;\n}\n\n.rdp-dropdown_icon {\n  margin: 0 0 0 5px;\n}\n\n.rdp-head {\n  border: 0;\n}\n\n.rdp-head_row,\n.rdp-row {\n  height: 100%;\n}\n\n.rdp-head_cell {\n  vertical-align: middle;\n  font-size: 0.75em;\n  font-weight: 700;\n  text-align: center;\n  height: 100%;\n  height: var(--rdp-cell-size);\n  padding: 0;\n  text-transform: uppercase;\n}\n\n.rdp-tbody {\n  border: 0;\n}\n\n.rdp-tfoot {\n  margin: 0.5em;\n}\n\n.rdp-cell {\n  width: var(--rdp-cell-size);\n  height: 100%;\n  height: var(--rdp-cell-size);\n  padding: 0;\n  text-align: center;\n}\n\n.rdp-weeknumber {\n  font-size: 0.75em;\n}\n\n.rdp-weeknumber,\n.rdp-day {\n  display: flex;\n  overflow: hidden;\n  align-items: center;\n  justify-content: center;\n  box-sizing: border-box;\n  width: var(--rdp-cell-size);\n  max-width: var(--rdp-cell-size);\n  height: var(--rdp-cell-size);\n  margin: 0;\n  border: 2px solid transparent;\n  border-radius: 100%;\n}\n\n.rdp-day_today:not(.rdp-day_outside) {\n  font-weight: bold;\n}\n\n.rdp-day_selected,\n.rdp-day_selected:focus-visible,\n.rdp-day_selected:hover {\n  color: white;\n  opacity: 1;\n  background-color: var(--rdp-accent-color);\n}\n\n.rdp-day_outside {\n  opacity: 0.5;\n}\n\n.rdp-day_selected:focus-visible {\n  /* Since the background is the same use again the outline */\n  outline: var(--rdp-outline);\n  outline-offset: 2px;\n  z-index: 1;\n}\n\n.rdp:not([dir='rtl']) .rdp-day_range_start:not(.rdp-day_range_end) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.rdp:not([dir='rtl']) .rdp-day_range_end:not(.rdp-day_range_start) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.rdp[dir='rtl'] .rdp-day_range_start:not(.rdp-day_range_end) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.rdp[dir='rtl'] .rdp-day_range_end:not(.rdp-day_range_start) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.rdp-day_range_end.rdp-day_range_start {\n  border-radius: 100%;\n}\n\n.rdp-day_range_middle {\n  border-radius: 0;\n}\n\n/*# sourceMappingURL=style.css.map */","",{version:3,sources:["webpack://./../../node_modules/react-day-picker/dist/style.css"],names:[],mappings:"AAAA;EACE,qBAAqB;EACrB,6BAA6B;EAC7B,2BAA2B;EAC3B,+BAA+B;EAC/B,gCAAgC;EAChC,oCAAoC;EACpC,gDAAgD,EAAE,wCAAwC;EAC1F,yDAAyD,EAAE,uDAAuD;;EAElH,WAAW;AACb;;AAEA,0DAA0D;AAC1D;EACE,sBAAsB;EACtB,UAAU;EACV,SAAS;EACT,uBAAuB;EACvB,SAAS;EACT,qBAAqB;EACrB,wBAAwB;EACxB,gBAAgB;EAChB,6BAA6B;EAC7B,MAAM;EACN,qBAAqB;EACrB,sBAAsB;EACtB,qBAAqB;EACrB,2BAA2B;EAC3B,yCAAyC;EACzC,oBAAoB;AACtB;;AAEA,YAAY;AACZ;EACE,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;EACT,UAAU;EACV,eAAe;EACf,cAAc;EACd,gBAAgB;EAChB,aAAa;;EAEb,qBAAqB;EACrB,wBAAwB;AAC1B;;AAEA;EACE,qEAAqE;EACrE,aAAa;AACf;;AAEA;EACE,6BAA6B;AAC/B;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,cAAc;EACd,6CAA6C;EAC7C,0BAA0B;AAC5B;;AAEA;EACE,6CAA6C;AAC/C;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,SAAS;EACT,yCAAyC;EACzC,yBAAyB;AAC3B;;AAEA;EACE,yCAAyC;EACzC,yBAAyB;AAC3B;;AAEA;EACE,aAAa;EACb,mBAAmB;EACnB,8BAA8B;EAC9B,UAAU;EACV,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,cAAc;EACd,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,oBAAoB;AACtB;;AAEA;EACE,kBAAkB;EAClB,UAAU;EACV,oBAAoB;EACpB,mBAAmB;EACnB,SAAS;EACT,iBAAiB;EACjB,mBAAmB;EACnB,mBAAmB;EACnB,SAAS;EACT,6BAA6B;EAC7B,oBAAoB;EACpB,uCAAuC;EACvC,iBAAiB;AACnB;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,OAAO;EACP,2BAA2B;AAC7B;;AAEA;EACE,kBAAkB;EAClB,QAAQ;EACR,QAAQ;EACR,2BAA2B;AAC7B;;AAEA;EACE,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;EACvB,2BAA2B;EAC3B,4BAA4B;EAC5B,eAAe;EACf,mBAAmB;AACrB;;AAEA,eAAe;AACf,eAAe;AACf,eAAe;;AAEf;;EAEE,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,UAAU;EACV,MAAM;EACN,SAAS;EACT,OAAO;EACP,WAAW;EACX,SAAS;EACT,UAAU;EACV,eAAe;EACf,UAAU;EACV,YAAY;EACZ,6BAA6B;EAC7B,oBAAoB;EACpB,kBAAkB;EAClB,oBAAoB;AACtB;;AAEA;EACE,cAAc;EACd,YAAY;AACd;;AAEA;EACE,6CAA6C;EAC7C,0BAA0B;EAC1B,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;EACE,SAAS;AACX;;AAEA;;EAEE,YAAY;AACd;;AAEA;EACE,sBAAsB;EACtB,iBAAiB;EACjB,gBAAgB;EAChB,kBAAkB;EAClB,YAAY;EACZ,4BAA4B;EAC5B,UAAU;EACV,yBAAyB;AAC3B;;AAEA;EACE,SAAS;AACX;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,2BAA2B;EAC3B,YAAY;EACZ,4BAA4B;EAC5B,UAAU;EACV,kBAAkB;AACpB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;;EAEE,aAAa;EACb,gBAAgB;EAChB,mBAAmB;EACnB,uBAAuB;EACvB,sBAAsB;EACtB,2BAA2B;EAC3B,+BAA+B;EAC/B,4BAA4B;EAC5B,SAAS;EACT,6BAA6B;EAC7B,mBAAmB;AACrB;;AAEA;EACE,iBAAiB;AACnB;;AAEA;;;EAGE,YAAY;EACZ,UAAU;EACV,yCAAyC;AAC3C;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,2DAA2D;EAC3D,2BAA2B;EAC3B,mBAAmB;EACnB,UAAU;AACZ;;AAEA;EACE,0BAA0B;EAC1B,6BAA6B;AAC/B;;AAEA;EACE,yBAAyB;EACzB,4BAA4B;AAC9B;;AAEA;EACE,yBAAyB;EACzB,4BAA4B;AAC9B;;AAEA;EACE,0BAA0B;EAC1B,6BAA6B;AAC/B;;AAEA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA,oCAAoC",sourcesContent:[".rdp {\n  --rdp-cell-size: 40px;\n  --rdp-caption-font-size: 18px;\n  --rdp-accent-color: #0000ff;\n  --rdp-background-color: #e7edff;\n  --rdp-accent-color-dark: #3003e1;\n  --rdp-background-color-dark: #180270;\n  --rdp-outline: 2px solid var(--rdp-accent-color); /* Outline border for focused elements */\n  --rdp-outline-selected: 3px solid var(--rdp-accent-color); /* Outline border for focused _and_ selected elements */\n\n  margin: 1em;\n}\n\n/* Hide elements for devices that are not screen readers */\n.rdp-vhidden {\n  box-sizing: border-box;\n  padding: 0;\n  margin: 0;\n  background: transparent;\n  border: 0;\n  -moz-appearance: none;\n  -webkit-appearance: none;\n  appearance: none;\n  position: absolute !important;\n  top: 0;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  overflow: hidden !important;\n  clip: rect(1px, 1px, 1px, 1px) !important;\n  border: 0 !important;\n}\n\n/* Buttons */\n.rdp-button_reset {\n  appearance: none;\n  position: relative;\n  margin: 0;\n  padding: 0;\n  cursor: default;\n  color: inherit;\n  background: none;\n  font: inherit;\n\n  -moz-appearance: none;\n  -webkit-appearance: none;\n}\n\n.rdp-button_reset:focus-visible {\n  /* Make sure to reset outline only when :focus-visible is supported */\n  outline: none;\n}\n\n.rdp-button {\n  border: 2px solid transparent;\n}\n\n.rdp-button[disabled]:not(.rdp-day_selected) {\n  opacity: 0.25;\n}\n\n.rdp-button:not([disabled]) {\n  cursor: pointer;\n}\n\n.rdp-button:focus-visible:not([disabled]) {\n  color: inherit;\n  background-color: var(--rdp-background-color);\n  border: var(--rdp-outline);\n}\n\n.rdp-button:hover:not([disabled]):not(.rdp-day_selected) {\n  background-color: var(--rdp-background-color);\n}\n\n.rdp-months {\n  display: flex;\n}\n\n.rdp-month {\n  margin: 0 1em;\n}\n\n.rdp-month:first-child {\n  margin-left: 0;\n}\n\n.rdp-month:last-child {\n  margin-right: 0;\n}\n\n.rdp-table {\n  margin: 0;\n  max-width: calc(var(--rdp-cell-size) * 7);\n  border-collapse: collapse;\n}\n\n.rdp-with_weeknumber .rdp-table {\n  max-width: calc(var(--rdp-cell-size) * 8);\n  border-collapse: collapse;\n}\n\n.rdp-caption {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 0;\n  text-align: left;\n}\n\n.rdp-multiple_months .rdp-caption {\n  position: relative;\n  display: block;\n  text-align: center;\n}\n\n.rdp-caption_dropdowns {\n  position: relative;\n  display: inline-flex;\n}\n\n.rdp-caption_label {\n  position: relative;\n  z-index: 1;\n  display: inline-flex;\n  align-items: center;\n  margin: 0;\n  padding: 0 0.25em;\n  white-space: nowrap;\n  color: currentColor;\n  border: 0;\n  border: 2px solid transparent;\n  font-family: inherit;\n  font-size: var(--rdp-caption-font-size);\n  font-weight: bold;\n}\n\n.rdp-nav {\n  white-space: nowrap;\n}\n\n.rdp-multiple_months .rdp-caption_start .rdp-nav {\n  position: absolute;\n  top: 50%;\n  left: 0;\n  transform: translateY(-50%);\n}\n\n.rdp-multiple_months .rdp-caption_end .rdp-nav {\n  position: absolute;\n  top: 50%;\n  right: 0;\n  transform: translateY(-50%);\n}\n\n.rdp-nav_button {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  width: var(--rdp-cell-size);\n  height: var(--rdp-cell-size);\n  padding: 0.25em;\n  border-radius: 100%;\n}\n\n/* ---------- */\n/* Dropdowns  */\n/* ---------- */\n\n.rdp-dropdown_year,\n.rdp-dropdown_month {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n}\n\n.rdp-dropdown {\n  appearance: none;\n  position: absolute;\n  z-index: 2;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  width: 100%;\n  margin: 0;\n  padding: 0;\n  cursor: inherit;\n  opacity: 0;\n  border: none;\n  background-color: transparent;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: inherit;\n}\n\n.rdp-dropdown[disabled] {\n  opacity: unset;\n  color: unset;\n}\n\n.rdp-dropdown:focus-visible:not([disabled]) + .rdp-caption_label {\n  background-color: var(--rdp-background-color);\n  border: var(--rdp-outline);\n  border-radius: 6px;\n}\n\n.rdp-dropdown_icon {\n  margin: 0 0 0 5px;\n}\n\n.rdp-head {\n  border: 0;\n}\n\n.rdp-head_row,\n.rdp-row {\n  height: 100%;\n}\n\n.rdp-head_cell {\n  vertical-align: middle;\n  font-size: 0.75em;\n  font-weight: 700;\n  text-align: center;\n  height: 100%;\n  height: var(--rdp-cell-size);\n  padding: 0;\n  text-transform: uppercase;\n}\n\n.rdp-tbody {\n  border: 0;\n}\n\n.rdp-tfoot {\n  margin: 0.5em;\n}\n\n.rdp-cell {\n  width: var(--rdp-cell-size);\n  height: 100%;\n  height: var(--rdp-cell-size);\n  padding: 0;\n  text-align: center;\n}\n\n.rdp-weeknumber {\n  font-size: 0.75em;\n}\n\n.rdp-weeknumber,\n.rdp-day {\n  display: flex;\n  overflow: hidden;\n  align-items: center;\n  justify-content: center;\n  box-sizing: border-box;\n  width: var(--rdp-cell-size);\n  max-width: var(--rdp-cell-size);\n  height: var(--rdp-cell-size);\n  margin: 0;\n  border: 2px solid transparent;\n  border-radius: 100%;\n}\n\n.rdp-day_today:not(.rdp-day_outside) {\n  font-weight: bold;\n}\n\n.rdp-day_selected,\n.rdp-day_selected:focus-visible,\n.rdp-day_selected:hover {\n  color: white;\n  opacity: 1;\n  background-color: var(--rdp-accent-color);\n}\n\n.rdp-day_outside {\n  opacity: 0.5;\n}\n\n.rdp-day_selected:focus-visible {\n  /* Since the background is the same use again the outline */\n  outline: var(--rdp-outline);\n  outline-offset: 2px;\n  z-index: 1;\n}\n\n.rdp:not([dir='rtl']) .rdp-day_range_start:not(.rdp-day_range_end) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.rdp:not([dir='rtl']) .rdp-day_range_end:not(.rdp-day_range_start) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.rdp[dir='rtl'] .rdp-day_range_start:not(.rdp-day_range_end) {\n  border-top-left-radius: 0;\n  border-bottom-left-radius: 0;\n}\n\n.rdp[dir='rtl'] .rdp-day_range_end:not(.rdp-day_range_start) {\n  border-top-right-radius: 0;\n  border-bottom-right-radius: 0;\n}\n\n.rdp-day_range_end.rdp-day_range_start {\n  border-radius: 100%;\n}\n\n.rdp-day_range_middle {\n  border-radius: 0;\n}\n"],sourceRoot:""}]);const s=a},21069:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1799),o=n.n(r),i=n(82609),a=n.n(i)()(o());a.push([e.id,"@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{animation:Toastify__trackProgress linear 1 forwards}","",{version:3,sources:["webpack://./../../node_modules/react-toastify/dist/ReactToastify.minimal.css"],names:[],mappings:"AAAA,mCAAmC,GAAG,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,CAAC,wBAAwB,mDAAmD",sourcesContent:["@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{animation:Toastify__trackProgress linear 1 forwards}"],sourceRoot:""}]);const s=a},82609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},1799:e=>{"use strict";function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n=t(e,4),r=n[1],o=n[3];if(!o)return r;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),s="/*# ".concat(a," */"),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[r].concat(l).concat([s]).join("\n")}return[r].join("\n")}},39714:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var u=l;e.exports=u},35431:(e,t,n)=>{var r,o;!function(i,a){"use strict";void 0===(o="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=o)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}}))},30730:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=window.CustomEvent;function o(e,t){var n="on"+t.type.toLowerCase();return"function"==typeof e[n]&&e[n](t),e.dispatchEvent(t)}function i(e){for(;e;){if("dialog"===e.localName)return e;e=e.parentElement?e.parentElement:e.parentNode?e.parentNode.host:null}return null}function a(e){for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;e&&e.blur&&e!==document.body&&e.blur()}function s(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1}function l(e){return!(!e||!e.hasAttribute("method"))&&"dialog"===e.getAttribute("method").toLowerCase()}function u(e){var t=["button","input","keygen","select","textarea"].map((function(e){return e+":not([disabled])"}));t.push('[tabindex]:not([disabled]):not([tabindex=""])');var n=e.querySelector(t.join(", "));if(!n&&"attachShadow"in Element.prototype)for(var r=e.querySelectorAll("*"),o=0;o<r.length&&!(r[o].tagName&&r[o].shadowRoot&&(n=u(r[o].shadowRoot)));o++);return n}function c(e){return e.isConnected||document.body.contains(e)}function d(e){if(e.submitter)return e.submitter;var t=e.target;if(!(t instanceof HTMLFormElement))return null;var n=p.formSubmitter;if(!n){var r=e.target;n=("getRootNode"in r&&r.getRootNode()||document).activeElement}return n&&n.form===t?n:null}function f(e){if(!e.defaultPrevented){var t=e.target,n=p.imagemapUseValue,r=d(e);null===n&&r&&(n=r.value);var o=i(t);if(o)"dialog"===(r&&r.getAttribute("formmethod")||t.getAttribute("method"))&&(e.preventDefault(),null!=n?o.close(n):o.close())}}function h(e){if(this.dialog_=e,this.replacedStyleTop_=!1,this.openAsModal_=!1,e.hasAttribute("role")||e.setAttribute("role","dialog"),e.show=this.show.bind(this),e.showModal=this.showModal.bind(this),e.close=this.close.bind(this),e.addEventListener("submit",f,!1),"returnValue"in e||(e.returnValue=""),"MutationObserver"in window){new MutationObserver(this.maybeHideModal.bind(this)).observe(e,{attributes:!0,attributeFilter:["open"]})}else{var t,n=!1,r=function(){n?this.downgradeModal():this.maybeHideModal(),n=!1}.bind(this),o=function(o){if(o.target===e){var i="DOMNodeRemoved";n|=o.type.substr(0,14)===i,window.clearTimeout(t),t=window.setTimeout(r,0)}};["DOMAttrModified","DOMNodeRemoved","DOMNodeRemovedFromDocument"].forEach((function(t){e.addEventListener(t,o)}))}Object.defineProperty(e,"open",{set:this.setOpen.bind(this),get:e.hasAttribute.bind(e,"open")}),this.backdrop_=document.createElement("div"),this.backdrop_.className="backdrop",this.backdrop_.addEventListener("mouseup",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("mousedown",this.backdropMouseEvent_.bind(this)),this.backdrop_.addEventListener("click",this.backdropMouseEvent_.bind(this))}r&&"object"!=typeof r||((r=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail||null),n}).prototype=window.Event.prototype),h.prototype={get dialog(){return this.dialog_},maybeHideModal:function(){this.dialog_.hasAttribute("open")&&c(this.dialog_)||this.downgradeModal()},downgradeModal:function(){this.openAsModal_&&(this.openAsModal_=!1,this.dialog_.style.zIndex="",this.replacedStyleTop_&&(this.dialog_.style.top="",this.replacedStyleTop_=!1),this.backdrop_.parentNode&&this.backdrop_.parentNode.removeChild(this.backdrop_),p.dm.removeDialog(this))},setOpen:function(e){e?this.dialog_.hasAttribute("open")||this.dialog_.setAttribute("open",""):(this.dialog_.removeAttribute("open"),this.maybeHideModal())},backdropMouseEvent_:function(e){if(this.dialog_.hasAttribute("tabindex"))this.dialog_.focus();else{var t=document.createElement("div");this.dialog_.insertBefore(t,this.dialog_.firstChild),t.tabIndex=-1,t.focus(),this.dialog_.removeChild(t)}var n=document.createEvent("MouseEvents");n.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),this.dialog_.dispatchEvent(n),e.stopPropagation()},focus_:function(){var e=this.dialog_.querySelector("[autofocus]:not([disabled])");!e&&this.dialog_.tabIndex>=0&&(e=this.dialog_),e||(e=u(this.dialog_)),a(document.activeElement),e&&e.focus()},updateZIndex:function(e,t){if(e<t)throw new Error("dialogZ should never be < backdropZ");this.dialog_.style.zIndex=e,this.backdrop_.style.zIndex=t},show:function(){this.dialog_.open||(this.setOpen(!0),this.focus_())},showModal:function(){if(this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'showModal' on dialog: The element is already open, and therefore cannot be opened modally.");if(!c(this.dialog_))throw new Error("Failed to execute 'showModal' on dialog: The element is not in a Document.");if(!p.dm.pushDialog(this))throw new Error("Failed to execute 'showModal' on dialog: There are too many open modal dialogs.");(function(e){for(;e&&e!==document.body;){var t=window.getComputedStyle(e),n=function(e,n){return!(void 0===t[e]||t[e]===n)};if(t.opacity<1||n("zIndex","auto")||n("transform","none")||n("mixBlendMode","normal")||n("filter","none")||n("perspective","none")||"isolate"===t.isolation||"fixed"===t.position||"touch"===t.webkitOverflowScrolling)return!0;e=e.parentElement}return!1})(this.dialog_.parentElement)&&console.warn("A dialog is being shown inside a stacking context. This may cause it to be unusable. For more information, see this link: https://github.com/GoogleChrome/dialog-polyfill/#stacking-context"),this.setOpen(!0),this.openAsModal_=!0,p.needsCentering(this.dialog_)?(p.reposition(this.dialog_),this.replacedStyleTop_=!0):this.replacedStyleTop_=!1,this.dialog_.parentNode.insertBefore(this.backdrop_,this.dialog_.nextSibling),this.focus_()},close:function(e){if(!this.dialog_.hasAttribute("open"))throw new Error("Failed to execute 'close' on dialog: The element does not have an 'open' attribute, and therefore cannot be closed.");this.setOpen(!1),void 0!==e&&(this.dialog_.returnValue=e);var t=new r("close",{bubbles:!1,cancelable:!1});o(this.dialog_,t)}};var p={reposition:function(e){var t=document.body.scrollTop||document.documentElement.scrollTop,n=t+(window.innerHeight-e.offsetHeight)/2;e.style.top=Math.max(t,n)+"px"},isInlinePositionSetByStylesheet:function(e){for(var t=0;t<document.styleSheets.length;++t){var n=document.styleSheets[t],r=null;try{r=n.cssRules}catch(e){}if(r)for(var o=0;o<r.length;++o){var i=r[o],a=null;try{a=document.querySelectorAll(i.selectorText)}catch(e){}if(a&&s(a,e)){var l=i.style.getPropertyValue("top"),u=i.style.getPropertyValue("bottom");if(l&&"auto"!==l||u&&"auto"!==u)return!0}}}return!1},needsCentering:function(e){return"absolute"===window.getComputedStyle(e).position&&(!("auto"!==e.style.top&&""!==e.style.top||"auto"!==e.style.bottom&&""!==e.style.bottom)&&!p.isInlinePositionSetByStylesheet(e))},forceRegisterDialog:function(e){if((window.HTMLDialogElement||e.showModal)&&console.warn("This browser already supports <dialog>, the polyfill may not work correctly",e),"dialog"!==e.localName)throw new Error("Failed to register dialog: The element is not a dialog.");new h(e)},registerDialog:function(e){e.showModal||p.forceRegisterDialog(e)},DialogManager:function(){this.pendingDialogStack=[];var e=this.checkDOM_.bind(this);this.overlay=document.createElement("div"),this.overlay.className="_dialog_overlay",this.overlay.addEventListener("click",function(t){this.forwardTab_=void 0,t.stopPropagation(),e([])}.bind(this)),this.handleKey_=this.handleKey_.bind(this),this.handleFocus_=this.handleFocus_.bind(this),this.zIndexLow_=1e5,this.zIndexHigh_=100150,this.forwardTab_=void 0,"MutationObserver"in window&&(this.mo_=new MutationObserver((function(t){var n=[];t.forEach((function(e){for(var t,r=0;t=e.removedNodes[r];++r)t instanceof Element&&("dialog"===t.localName&&n.push(t),n=n.concat(t.querySelectorAll("dialog")))})),n.length&&e(n)})))}};if(p.DialogManager.prototype.blockDocument=function(){document.documentElement.addEventListener("focus",this.handleFocus_,!0),document.addEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.observe(document,{childList:!0,subtree:!0})},p.DialogManager.prototype.unblockDocument=function(){document.documentElement.removeEventListener("focus",this.handleFocus_,!0),document.removeEventListener("keydown",this.handleKey_),this.mo_&&this.mo_.disconnect()},p.DialogManager.prototype.updateStacking=function(){for(var e,t=this.zIndexHigh_,n=0;e=this.pendingDialogStack[n];++n)e.updateZIndex(--t,--t),0===n&&(this.overlay.style.zIndex=--t);var r=this.pendingDialogStack[0];r?(r.dialog.parentNode||document.body).appendChild(this.overlay):this.overlay.parentNode&&this.overlay.parentNode.removeChild(this.overlay)},p.DialogManager.prototype.containedByTopDialog_=function(e){for(;e=i(e);){for(var t,n=0;t=this.pendingDialogStack[n];++n)if(t.dialog===e)return 0===n;e=e.parentElement}return!1},p.DialogManager.prototype.handleFocus_=function(e){var t=e.composedPath?e.composedPath()[0]:e.target;if(!this.containedByTopDialog_(t)&&document.activeElement!==document.documentElement&&(e.preventDefault(),e.stopPropagation(),a(t),void 0!==this.forwardTab_)){var n=this.pendingDialogStack[0];return n.dialog.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING&&(this.forwardTab_?n.focus_():t!==document.documentElement&&document.documentElement.focus()),!1}},p.DialogManager.prototype.handleKey_=function(e){if(this.forwardTab_=void 0,27===e.keyCode){e.preventDefault(),e.stopPropagation();var t=new r("cancel",{bubbles:!1,cancelable:!0}),n=this.pendingDialogStack[0];n&&o(n.dialog,t)&&n.dialog.close()}else 9===e.keyCode&&(this.forwardTab_=!e.shiftKey)},p.DialogManager.prototype.checkDOM_=function(e){this.pendingDialogStack.slice().forEach((function(t){-1!==e.indexOf(t.dialog)?t.downgradeModal():t.maybeHideModal()}))},p.DialogManager.prototype.pushDialog=function(e){var t=(this.zIndexHigh_-this.zIndexLow_)/2-1;return!(this.pendingDialogStack.length>=t)&&(1===this.pendingDialogStack.unshift(e)&&this.blockDocument(),this.updateStacking(),!0)},p.DialogManager.prototype.removeDialog=function(e){var t=this.pendingDialogStack.indexOf(e);-1!==t&&(this.pendingDialogStack.splice(t,1),0===this.pendingDialogStack.length&&this.unblockDocument(),this.updateStacking())},p.dm=new p.DialogManager,p.formSubmitter=null,p.imagemapUseValue=null,void 0===window.HTMLDialogElement){var g=document.createElement("form");if(g.setAttribute("method","dialog"),"dialog"!==g.method){var m=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"method");if(m){var v=m.get;m.get=function(){return l(this)?"dialog":v.call(this)};var y=m.set;m.set=function(e){return"string"==typeof e&&"dialog"===e.toLowerCase()?this.setAttribute("method",e):y.call(this,e)},Object.defineProperty(HTMLFormElement.prototype,"method",m)}}document.addEventListener("click",(function(e){if(p.formSubmitter=null,p.imagemapUseValue=null,!e.defaultPrevented){var t=e.target;if("composedPath"in e)t=e.composedPath().shift()||t;if(t&&l(t.form)){if(!("submit"===t.type&&["button","input"].indexOf(t.localName)>-1)){if("input"!==t.localName||"image"!==t.type)return;p.imagemapUseValue=e.offsetX+","+e.offsetY}i(t)&&(p.formSubmitter=t)}}}),!1),document.addEventListener("submit",(function(e){var t=e.target;if(!i(t)){var n=d(e);"dialog"===(n&&n.getAttribute("formmethod")||t.getAttribute("method"))&&e.preventDefault()}}));var b=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){if(!l(this))return b.call(this);var e=i(this);e&&e.close()}}const w=p},11427:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,s=this.diff_commonPrefix(e,n),l=e.substring(0,s);e=e.substring(s),n=n.substring(s),s=this.diff_commonSuffix(e,n);var u=e.substring(e.length-s);e=e.substring(0,e.length-s),n=n.substring(0,n.length-s);var c=this.diff_compute_(e,n,a,i);return l&&c.unshift(new t.Diff(0,l)),u&&c.push(new t.Diff(0,u)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,r,o,i){var a;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var s=e.length>r.length?e:r,l=e.length>r.length?r:e,u=s.indexOf(l);if(-1!=u)return a=[new t.Diff(1,s.substring(0,u)),new t.Diff(0,l),new t.Diff(1,s.substring(u+l.length))],e.length>r.length&&(a[0][0]=a[2][0]=n),a;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,r)];var c=this.diff_halfMatch_(e,r);if(c){var d=c[0],f=c[1],h=c[2],p=c[3],g=c[4],m=this.diff_main(d,h,o,i),v=this.diff_main(f,p,o,i);return m.concat([new t.Diff(0,g)],v)}return o&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,i):this.diff_bisect_(e,r,i)},t.prototype.diff_lineMode_=function(e,r,o){var i=this.diff_linesToChars_(e,r);e=i.chars1,r=i.chars2;var a=i.lineArray,s=this.diff_main(e,r,!1,o);this.diff_charsToLines_(s,a),this.diff_cleanupSemantic(s),s.push(new t.Diff(0,""));for(var l=0,u=0,c=0,d="",f="";l<s.length;){switch(s[l][0]){case 1:c++,f+=s[l][1];break;case n:u++,d+=s[l][1];break;case 0:if(u>=1&&c>=1){s.splice(l-u-c,u+c),l=l-u-c;for(var h=this.diff_main(d,f,!1,o),p=h.length-1;p>=0;p--)s.splice(l,0,h[p]);l+=h.length}c=0,u=0,d="",f=""}l++}return s.pop(),s},t.prototype.diff_bisect_=function(e,r,o){for(var i=e.length,a=r.length,s=Math.ceil((i+a)/2),l=s,u=2*s,c=new Array(u),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[l+1]=0,d[l+1]=0;for(var h=i-a,p=h%2!=0,g=0,m=0,v=0,y=0,b=0;b<s&&!((new Date).getTime()>o);b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=l+w,S=(A=w==-b||w!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;A<i&&S<a&&e.charAt(A)==r.charAt(S);)A++,S++;if(c[x]=A,A>i)m+=2;else if(S>a)g+=2;else if(p){if((k=l+h-w)>=0&&k<u&&-1!=d[k])if(A>=(E=i-d[k]))return this.diff_bisectSplit_(e,r,A,S,o)}}for(var _=-b+v;_<=b-y;_+=2){for(var E,k=l+_,C=(E=_==-b||_!=b&&d[k-1]<d[k+1]?d[k+1]:d[k-1]+1)-_;E<i&&C<a&&e.charAt(i-E-1)==r.charAt(a-C-1);)E++,C++;if(d[k]=E,E>i)y+=2;else if(C>a)v+=2;else if(!p){if((x=l+h-_)>=0&&x<u&&-1!=c[x]){var A;S=l+(A=c[x])-x;if(A>=(E=i-E))return this.diff_bisectSplit_(e,r,A,S,o)}}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=this.diff_main(i,a,!1,o),c=this.diff_main(s,l,!1,o);return u.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,s=n.length;a<e.length-1;){-1==(a=e.indexOf("\n",o))&&(a=e.length-1);var l=e.substring(o,a+1);(r.hasOwnProperty?r.hasOwnProperty(l):void 0!==r[l])?t+=String.fromCharCode(r[l]):(s==i&&(l=e.substring(o),a=e.length),t+=String.fromCharCode(s),r[l]=s,n[s++]=l),o=a+1}return t}n[0]="";var i=4e4,a=o(e);return i=65535,{chars1:a,chars2:o(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],o=[],i=0;i<r.length;i++)o[i]=t[r.charCodeAt(i)];e[n][1]=o.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var o=Math.min(n,r);if(e==t)return o;for(var i=0,a=1;;){var s=e.substring(o-a),l=t.indexOf(s);if(-1==l)return i;a+=l,0!=l&&e.substring(o-a)!=t.substring(0,a)||(i=a,a++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;var o=this;function i(e,t,n){for(var r,i,a,s,l=e.substring(n,n+Math.floor(e.length/4)),u=-1,c="";-1!=(u=t.indexOf(l,u+1));){var d=o.diff_commonPrefix(e.substring(n),t.substring(u)),f=o.diff_commonSuffix(e.substring(0,n),t.substring(0,u));c.length<f+d&&(c=t.substring(u-f,u)+t.substring(u,u+d),r=e.substring(0,n-f),i=e.substring(n+d),a=t.substring(0,u-f),s=t.substring(u+d))}return 2*c.length>=e.length?[r,i,a,s,c]:null}var a,s,l,u,c,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));return d||f?(a=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(s=a[0],l=a[1],u=a[2],c=a[3]):(u=a[0],c=a[1],s=a[2],l=a[3]),[s,l,u,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,o=[],i=0,a=null,s=0,l=0,u=0,c=0,d=0;s<e.length;)0==e[s][0]?(o[i++]=s,l=c,u=d,c=0,d=0,a=e[s][1]):(1==e[s][0]?c+=e[s][1].length:d+=e[s][1].length,a&&a.length<=Math.max(l,u)&&a.length<=Math.max(c,d)&&(e.splice(o[i-1],0,new t.Diff(n,a)),e[o[i-1]+1][0]=1,i--,s=--i>0?o[i-1]:-1,l=0,u=0,c=0,d=0,a=null,r=!0)),s++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s<e.length;){if(e[s-1][0]==n&&1==e[s][0]){var f=e[s-1][1],h=e[s][1],p=this.diff_commonOverlap_(f,h),g=this.diff_commonOverlap_(h,f);p>=g?(p>=f.length/2||p>=h.length/2)&&(e.splice(s,0,new t.Diff(0,h.substring(0,p))),e[s-1][1]=f.substring(0,f.length-p),e[s+1][1]=h.substring(p),s++):(g>=f.length/2||g>=h.length/2)&&(e.splice(s,0,new t.Diff(0,f.substring(0,g))),e[s-1][0]=1,e[s-1][1]=h.substring(0,h.length-g),e[s+1][0]=n,e[s+1][1]=f.substring(g),s++),s++}s++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),o=n.charAt(0),i=r.match(t.nonAlphaNumericRegex_),a=o.match(t.nonAlphaNumericRegex_),s=i&&r.match(t.whitespaceRegex_),l=a&&o.match(t.whitespaceRegex_),u=s&&r.match(t.linebreakRegex_),c=l&&o.match(t.linebreakRegex_),d=u&&e.match(t.blanklineEndRegex_),f=c&&n.match(t.blanklineStartRegex_);return d||f?5:u||c?4:i&&!s&&l?3:s||l?2:i||a?1:0}for(var r=1;r<e.length-1;){if(0==e[r-1][0]&&0==e[r+1][0]){var o=e[r-1][1],i=e[r][1],a=e[r+1][1],s=this.diff_commonSuffix(o,i);if(s){var l=i.substring(i.length-s);o=o.substring(0,o.length-s),i=l+i.substring(0,i.length-s),a=l+a}for(var u=o,c=i,d=a,f=n(o,i)+n(i,a);i.charAt(0)===a.charAt(0);){o+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var h=n(o,i)+n(i,a);h>=f&&(f=h,u=o,c=i,d=a)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,o=[],i=0,a=null,s=0,l=!1,u=!1,c=!1,d=!1;s<e.length;)0==e[s][0]?(e[s][1].length<this.Diff_EditCost&&(c||d)?(o[i++]=s,l=c,u=d,a=e[s][1]):(i=0,a=null),c=d=!1):(e[s][0]==n?d=!0:c=!0,a&&(l&&u&&c&&d||a.length<this.Diff_EditCost/2&&l+u+c+d==3)&&(e.splice(o[i-1],0,new t.Diff(n,a)),e[o[i-1]+1][0]=1,i--,a=null,l&&u?(c=d=!0,i=0):(s=--i>0?o[i-1]:-1,c=d=!1),r=!0)),s++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,o=0,i=0,a=0,s="",l="";o<e.length;)switch(e[o][0]){case 1:a++,l+=e[o][1],o++;break;case n:i++,s+=e[o][1],o++;break;case 0:i+a>1?(0!==i&&0!==a&&(0!==(r=this.diff_commonPrefix(l,s))&&(o-i-a>0&&0==e[o-i-a-1][0]?e[o-i-a-1][1]+=l.substring(0,r):(e.splice(0,0,new t.Diff(0,l.substring(0,r))),o++),l=l.substring(r),s=s.substring(r)),0!==(r=this.diff_commonSuffix(l,s))&&(e[o][1]=l.substring(l.length-r)+e[o][1],l=l.substring(0,l.length-r),s=s.substring(0,s.length-r))),o-=i+a,e.splice(o,i+a),s.length&&(e.splice(o,0,new t.Diff(n,s)),o++),l.length&&(e.splice(o,0,new t.Diff(1,l)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,a=0,i=0,s="",l=""}""===e[e.length-1][1]&&e.pop();var u=!1;for(o=1;o<e.length-1;)0==e[o-1][0]&&0==e[o+1][0]&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),u=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),u=!0)),o++;u&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var r,o=0,i=0,a=0,s=0;for(r=0;r<e.length&&(1!==e[r][0]&&(o+=e[r][1].length),e[r][0]!==n&&(i+=e[r][1].length),!(o>t));r++)a=o,s=i;return e.length!=r&&e[r][0]===n?s:s+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,o=/</g,i=/>/g,a=/\n/g,s=0;s<e.length;s++){var l=e[s][0],u=e[s][1].replace(r,"&amp;").replace(o,"&lt;").replace(i,"&gt;").replace(a,"&para;<br>");switch(l){case 1:t[s]='<ins style="background:#e6ffe6;">'+u+"</ins>";break;case n:t[s]='<del style="background:#ffe6e6;">'+u+"</del>";break;case 0:t[s]="<span>"+u+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],r=0;r<e.length;r++)e[r][0]!==n&&(t[r]=e[r][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,r=0,o=0,i=0;i<e.length;i++){var a=e[i][0],s=e[i][1];switch(a){case 1:r+=s.length;break;case n:o+=s.length;break;case 0:t+=Math.max(r,o),r=0,o=0}}return t+=Math.max(r,o)},t.prototype.diff_toDelta=function(e){for(var t=[],r=0;r<e.length;r++)switch(e[r][0]){case 1:t[r]="+"+encodeURI(e[r][1]);break;case n:t[r]="-"+e[r][1].length;break;case 0:t[r]="="+e[r][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,r){for(var o=[],i=0,a=0,s=r.split(/\t/g),l=0;l<s.length;l++){var u=s[l].substring(1);switch(s[l].charAt(0)){case"+":try{o[i++]=new t.Diff(1,decodeURI(u))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+u)}break;case"-":case"=":var c=parseInt(u,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+u);var d=e.substring(a,a+=c);"="==s[l].charAt(0)?o[i++]=new t.Diff(0,d):o[i++]=new t.Diff(n,d);break;default:if(s[l])throw new Error("Invalid diff operation in diff_fromDelta: "+s[l])}}if(a!=e.length)throw new Error("Delta length ("+a+") does not equal source text length ("+e.length+").");return o},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(i(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,s),a)));var l,u,c=1<<t.length-1;s=-1;for(var d,f=t.length+e.length,h=0;h<t.length;h++){for(l=0,u=f;l<u;)i(h,n+u)<=a?l=u:f=u,u=Math.floor((f-l)/2+l);f=u;var p=Math.max(1,n-u+1),g=Math.min(n+u,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<h)-1;for(var v=g;v>=p;v--){var y=r[e.charAt(v-1)];if(m[v]=0===h?(m[v+1]<<1|1)&y:(m[v+1]<<1|1)&y|(d[v+1]|d[v])<<1|1|d[v+1],m[v]&c){var b=i(h,v-1);if(b<=a){if(a=b,!((s=v-1)>n))break;p=Math.max(1,2*n-s)}}}if(i(h+1,n)>a)break;d=m}return s},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var r=n.substring(e.start2,e.start2+e.length1),o=0;n.indexOf(r)!=n.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)o+=this.Patch_Margin,r=n.substring(e.start2-o,e.start2+e.length1+o);o+=this.Patch_Margin;var i=n.substring(e.start2-o,e.start2);i&&e.diffs.unshift(new t.Diff(0,i));var a=n.substring(e.start2+e.length1,e.start2+e.length1+o);a&&e.diffs.push(new t.Diff(0,a)),e.start1-=i.length,e.start2-=i.length,e.length1+=i.length+a.length,e.length2+=i.length+a.length}},t.prototype.patch_make=function(e,r,o){var i,a;if("string"==typeof e&&"string"==typeof r&&void 0===o)i=e,(a=this.diff_main(i,r,!0)).length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===r&&void 0===o)a=e,i=this.diff_text1(a);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===o)i=e,a=r;else{if("string"!=typeof e||"string"!=typeof r||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");i=e,a=o}if(0===a.length)return[];for(var s=[],l=new t.patch_obj,u=0,c=0,d=0,f=i,h=i,p=0;p<a.length;p++){var g=a[p][0],m=a[p][1];switch(u||0===g||(l.start1=c,l.start2=d),g){case 1:l.diffs[u++]=a[p],l.length2+=m.length,h=h.substring(0,d)+m+h.substring(d);break;case n:l.length1+=m.length,l.diffs[u++]=a[p],h=h.substring(0,d)+h.substring(d+m.length);break;case 0:m.length<=2*this.Patch_Margin&&u&&a.length!=p+1?(l.diffs[u++]=a[p],l.length1+=m.length,l.length2+=m.length):m.length>=2*this.Patch_Margin&&u&&(this.patch_addContext_(l,f),s.push(l),l=new t.patch_obj,u=0,f=h,c=d)}1!==g&&(c+=m.length),g!==n&&(d+=m.length)}return u&&(this.patch_addContext_(l,f),s.push(l)),s},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=new t.patch_obj;i.diffs=[];for(var a=0;a<o.diffs.length;a++)i.diffs[a]=new t.Diff(o.diffs[a][0],o.diffs[a][1]);i.start1=o.start1,i.start2=o.start2,i.length1=o.length1,i.length2=o.length2,n[r]=i}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var r=this.patch_addPadding(e);t=r+t+r,this.patch_splitMax(e);for(var o=0,i=[],a=0;a<e.length;a++){var s,l,u=e[a].start2+o,c=this.diff_text1(e[a].diffs),d=-1;if(c.length>this.Match_MaxBits?-1!=(s=this.match_main(t,c.substring(0,this.Match_MaxBits),u))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),u+c.length-this.Match_MaxBits))||s>=d)&&(s=-1):s=this.match_main(t,c,u),-1==s)i[a]=!1,o-=e[a].length2-e[a].length1;else if(i[a]=!0,o=s-u,c==(l=-1==d?t.substring(s,s+c.length):t.substring(s,d+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[a].diffs)+t.substring(s+c.length);else{var f=this.diff_main(c,l,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(f);for(var h,p=0,g=0;g<e[a].diffs.length;g++){var m=e[a].diffs[g];0!==m[0]&&(h=this.diff_xIndex(f,p)),1===m[0]?t=t.substring(0,s+h)+m[1]+t.substring(s+h):m[0]===n&&(t=t.substring(0,s+h)+t.substring(s+this.diff_xIndex(f,p+m[1].length))),m[0]!==n&&(p+=m[1].length)}}}}return[t=t.substring(r.length,t.length-r.length),i]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,r="",o=1;o<=n;o++)r+=String.fromCharCode(o);for(o=0;o<e.length;o++)e[o].start1+=n,e[o].start2+=n;var i=e[0],a=i.diffs;if(0==a.length||0!=a[0][0])a.unshift(new t.Diff(0,r)),i.start1-=n,i.start2-=n,i.length1+=n,i.length2+=n;else if(n>a[0][1].length){var s=n-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new t.Diff(0,r)),i.length1+=n,i.length2+=n;else if(n>a[a.length-1][1].length){s=n-a[a.length-1][1].length;a[a.length-1][1]+=r.substring(0,s),i.length1+=s,i.length2+=s}return r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,o=0;o<e.length;o++)if(!(e[o].length1<=r)){var i=e[o];e.splice(o--,1);for(var a=i.start1,s=i.start2,l="";0!==i.diffs.length;){var u=new t.patch_obj,c=!0;for(u.start1=a-l.length,u.start2=s-l.length,""!==l&&(u.length1=u.length2=l.length,u.diffs.push(new t.Diff(0,l)));0!==i.diffs.length&&u.length1<r-this.Patch_Margin;){var d=i.diffs[0][0],f=i.diffs[0][1];1===d?(u.length2+=f.length,s+=f.length,u.diffs.push(i.diffs.shift()),c=!1):d===n&&1==u.diffs.length&&0==u.diffs[0][0]&&f.length>2*r?(u.length1+=f.length,a+=f.length,c=!1,u.diffs.push(new t.Diff(d,f)),i.diffs.shift()):(f=f.substring(0,r-u.length1-this.Patch_Margin),u.length1+=f.length,a+=f.length,0===d?(u.length2+=f.length,s+=f.length):c=!1,u.diffs.push(new t.Diff(d,f)),f==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(f.length))}l=(l=this.diff_text2(u.diffs)).substring(l.length-this.Patch_Margin);var h=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==h&&(u.length1+=h.length,u.length2+=h.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=h:u.diffs.push(new t.Diff(0,h))),c||e.splice(++o,0,u)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var r=[];if(!e)return r;for(var o=e.split("\n"),i=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<o.length;){var s=o[i].match(a);if(!s)throw new Error("Invalid patch string: "+o[i]);var l=new t.patch_obj;for(r.push(l),l.start1=parseInt(s[1],10),""===s[2]?(l.start1--,l.length1=1):"0"==s[2]?l.length1=0:(l.start1--,l.length1=parseInt(s[2],10)),l.start2=parseInt(s[3],10),""===s[4]?(l.start2--,l.length2=1):"0"==s[4]?l.length2=0:(l.start2--,l.length2=parseInt(s[4],10)),i++;i<o.length;){var u=o[i].charAt(0);try{var c=decodeURI(o[i].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==u)l.diffs.push(new t.Diff(n,c));else if("+"==u)l.diffs.push(new t.Diff(1,c));else if(" "==u)l.diffs.push(new t.Diff(0,c));else{if("@"==u)break;if(""!==u)throw new Error('Invalid patch mode "'+u+'" in: '+c)}i++}}return r},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case 1:e="+";break;case n:e="-";break;case 0:e=" "}t[r+1]=e+encodeURI(this.diffs[r][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},64427:(e,t,n)=>{var r=n(58453),o=n(8942),i={float:"cssFloat"},a=n(55759);function s(e,t,n){var s=i[t];if(void 0===s&&(s=function(e){var t=o(e),n=r(t);return i[t]=i[e]=i[n]=n,n}(t)),s){if(void 0===n)return e.style[s];e.style[s]=a(s,n)}}function l(){2===arguments.length?"string"==typeof arguments[1]?arguments[0].style.cssText=arguments[1]:function(e,t){for(var n in t)t.hasOwnProperty(n)&&s(e,n,t[n])}(arguments[0],arguments[1]):s(arguments[0],arguments[1],arguments[2])}e.exports=l,e.exports.set=l,e.exports.get=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=s(e,n||""),t}),{}):s(e,t||"")}},72516:e=>{"use strict";var t=e.exports={};t.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:undefined}());var t},t.isLegacyOpera=function(){return!!window.opera}},67473:e=>{"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var r=t(e[n]);if(r)return r}}},14281:(e,t,n)=>{"use strict";var r=n(72516);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function i(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function a(e){return o(e).object}return{makeDetectable:function(e,a,s){s||(s=a,a=e,e=null),(e=e||{}).debug,r.isIE(8)?s(a):function(a,s){var l=i(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(a),d=a.offsetWidth,f=a.offsetHeight;function h(){function n(){if("static"===c.position){a.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,r,o){var i=r[o];"auto"!==i&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(i)&&(t.warn("An element that is positioned static has style."+o+"="+i+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+o+" will be set to 0. Element: ",n),n.style.setProperty(o,"0",e.important?"important":""))};n(t,a,c,"top"),n(t,a,c,"right"),n(t,a,c,"bottom"),n(t,a,c,"left")}}""!==c.position&&(n(),u=!0);var i=document.createElement("object");i.style.cssText=l,i.tabIndex=-1,i.type="text/html",i.setAttribute("aria-hidden","true"),i.onload=function(){u||n(),function e(t,n){if(!t.contentDocument){var r=o(t);return r.checkForObjectDocumentTimeoutId&&window.clearTimeout(r.checkForObjectDocumentTimeoutId),void(r.checkForObjectDocumentTimeoutId=setTimeout((function(){r.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(a)}))},r.isIE()||(i.data="about:blank"),o(a)&&(a.appendChild(i),o(a).object=i,r.isIE()&&(i.data="about:blank"))}o(a).startSize={width:d,height:f},n?n.add(h):h()}(a,s)},addListener:function(e,t){function n(){t(e)}if(r.isIE(8))o(e).object={proxy:n},e.attachEvent("onresize",n);else{var i=a(e);if(!i)throw new Error("Element is not detectable by this strategy.");i.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(o(e)){var t=a(e);t&&(r.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),o(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(o(e).checkForObjectDocumentTimeoutId),delete o(e).object)}}}}},66599:(e,t,n)=>{"use strict";var r=n(67473).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,o=e.stateHandler.getState,i=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var a=function(){var e=500,t=500,n=document.createElement("div");n.style.cssText=u(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var r=document.createElement("div");r.style.cssText=u(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),r.appendChild(n),document.body.insertBefore(r,document.body.firstChild);var o=e-r.clientWidth,i=t-r.clientHeight;return document.body.removeChild(r),{width:o,height:i}}(),s="erd_scroll_detection_container";function l(e){!function(e,t,n){function r(n,r){r=r||function(t){e.head.appendChild(t)};var o=e.createElement("style");return o.innerHTML=n,o.id=t,r(o),o}if(!e.getElementById(t)){var o=n+"_animation",i=n+"_animation_active",a="/* Created by the element-resize-detector library. */\n";a+="."+n+" > div::-webkit-scrollbar { "+u(["display: none"])+" }\n\n",a+="."+i+" { "+u(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+o,"animation-name: "+o])+" }\n",a+="@-webkit-keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",r(a+="@keyframes "+o+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style",s)}function u(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function c(e,n,r){if(e.addEventListener)e.addEventListener(n,r);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,r)}}function d(e,n,r){if(e.removeEventListener)e.removeEventListener(n,r);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,r)}}function f(e){return o(e).container.childNodes[0].childNodes[0].childNodes[0]}function h(e){return o(e).container.childNodes[0].childNodes[0].childNodes[1]}return l(window.document),{makeDetectable:function(e,l,d){function p(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(i.get(l),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var r=0;r<n.length;r++)t.log(n[r])}}function g(e){var t=o(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function m(){var e=window.getComputedStyle(l),t={};return t.position=e.position,t.width=l.offsetWidth,t.height=l.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function v(){if(p("storeStyle invoked."),o(l)){var e=m();o(l).style=e}else p("Aborting because element has been uninstalled")}function y(e,t,n){o(e).lastWidth=t,o(e).lastHeight=n}function b(){return 2*a.width+1}function w(){return 2*a.height+1}function x(e){return e+10+b()}function S(e){return e+10+w()}function _(e,t,n){var r=f(e),o=h(e),i=x(t),a=S(n),s=function(e){return 2*e+b()}(t),l=function(e){return 2*e+w()}(n);r.scrollLeft=i,r.scrollTop=a,o.scrollLeft=s,o.scrollTop=l}function E(){var e=o(l).container;if(!e){(e=document.createElement("div")).className=s,e.style.cssText=u(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),o(l).container=e,function(e){e.className+=" "+s+"_animation_active"}(e),l.appendChild(e);var t=function(){o(l).onRendered&&o(l).onRendered()};c(e,"animationstart",t),o(l).onAnimationStart=t}return e}function k(){if(p("Injecting elements"),o(l)){!function(){var n=o(l).style;if("static"===n.position){l.style.setProperty("position","relative",e.important?"important":"");var r=function(e,t,n,r){var o=n[r];"auto"!==o&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(o)&&(e.warn("An element that is positioned static has style."+r+"="+o+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+r+" will be set to 0. Element: ",t),t.style[r]=0)};r(t,l,n,"top"),r(t,l,n,"right"),r(t,l,n,"bottom"),r(t,l,n,"left")}}();var n=o(l).container;n||(n=E());var r,i,d,f,h=a.width,g=a.height,m=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),v=u(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(r=(r=-(1+h))?r+"px":"0"),"top: "+(i=(i=-(1+g))?i+"px":"0"),"right: "+(f=(f=-h)?f+"px":"0"),"bottom: "+(d=(d=-g)?d+"px":"0")])),y=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=u(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),w=u(["position: absolute","left: 0","top: 0"]),x=u(["position: absolute","width: 200%","height: 200%"]),S=document.createElement("div"),_=document.createElement("div"),k=document.createElement("div"),C=document.createElement("div"),A=document.createElement("div"),T=document.createElement("div");S.dir="ltr",S.style.cssText=m,S.className=s,_.className=s,_.style.cssText=v,k.style.cssText=y,C.style.cssText=w,A.style.cssText=b,T.style.cssText=x,k.appendChild(C),A.appendChild(T),_.appendChild(k),_.appendChild(A),S.appendChild(_),n.appendChild(S),c(k,"scroll",O),c(A,"scroll",M),o(l).onExpandScroll=O,o(l).onShrinkScroll=M}else p("Aborting because element has been uninstalled");function O(){var e=o(l);e&&e.onExpand?e.onExpand():p("Aborting expand scroll handler: element has been uninstalled")}function M(){var e=o(l);e&&e.onShrink?e.onShrink():p("Aborting shrink scroll handler: element has been uninstalled")}}function C(){function a(t,n,r){var o=function(e){return f(e).childNodes[0]}(t),i=x(n),a=S(r);o.style.setProperty("width",i+"px",e.important?"important":""),o.style.setProperty("height",a+"px",e.important?"important":"")}function s(r){var s=l.offsetWidth,c=l.offsetHeight,d=s!==o(l).lastWidth||c!==o(l).lastHeight;p("Storing current size",s,c),y(l,s,c),n.add(0,(function(){if(d)if(o(l))if(u()){if(e.debug){var n=l.offsetWidth,r=l.offsetHeight;n===s&&r===c||t.warn(i.get(l),"Scroll: Size changed before updating detector elements.")}a(l,s,c)}else p("Aborting because element container has not been initialized");else p("Aborting because element has been uninstalled")})),n.add(1,(function(){o(l)?u()?_(l,s,c):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),d&&r&&n.add(2,(function(){o(l)?u()?r():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function u(){return!!o(l).container}function c(){p("notifyListenersIfNeeded invoked");var e=o(l);return void 0===o(l).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void r(o(l).listeners,(function(e){e(l)})))}function d(){p("Scroll detected."),g(l)?p("Scroll event fired while unrendered. Ignoring..."):s(c)}if(p("registerListenersAndPositionElements invoked."),o(l)){o(l).onRendered=function(){if(p("startanimation triggered."),g(l))p("Ignoring since element is still unrendered...");else{p("Element rendered.");var e=f(l),t=h(l);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),s(c))}},o(l).onExpand=d,o(l).onShrink=d;var m=o(l).style;a(l,m.width,m.height)}else p("Aborting because element has been uninstalled")}function A(){if(p("finalizeDomMutation invoked."),o(l)){var e=o(l).style;y(l,e.width,e.height),_(l,e.width,e.height)}else p("Aborting because element has been uninstalled")}function T(){d(l)}function O(){var e;p("Installing..."),o(l).listeners=[],e=m(),o(l).startSize={width:e.width,height:e.height},p("Element start size",o(l).startSize),n.add(0,v),n.add(1,k),n.add(2,C),n.add(3,A),n.add(4,T)}d||(d=l,l=e,e=null),e=e||{},p("Making detectable..."),!function(e){return!function(e){var t=e.getRootNode&&e.getRootNode().contains(e);return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)||t}(e)||null===window.getComputedStyle(e)}(l)?O():(p("Element is detached"),E(),p("Waiting until element is attached..."),o(l).onRendered=function(){p("Element is now attached"),O()})},addListener:function(e,t){if(!o(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");o(e).listeners.push(t)},uninstall:function(e){var t=o(e);t&&(t.onExpandScroll&&d(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&d(h(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&d(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:l}}},200:(e,t,n)=>{"use strict";var r=n(67473).forEach,o=n(40987),i=n(38090),a=n(13992),s=n(80076),l=n(53183),u=n(72516),c=n(59083),d=n(86502),f=n(14281),h=n(66599);function p(e){return Array.isArray(e)||void 0!==e.length}function g(e){if(Array.isArray(e))return e;var t=[];return r(e,(function(e){t.push(e)})),t}function m(e){return e&&1===e.nodeType}function v(e,t,n){var r=e[t];return null==r&&void 0!==n?n:r}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=a(),y=s({idGenerator:n,stateHandler:d});t=y}var b=e.reporter;b||(b=l(!1===b));var w=v(e,"batchProcessor",c({reporter:b})),x={};x.callOnAdd=!!v(e,"callOnAdd",!0),x.debug=!!v(e,"debug",!1);var S,_=i(t),E=o({stateHandler:d}),k=v(e,"strategy","object"),C=v(e,"important",!1),A={reporter:b,batchProcessor:w,stateHandler:d,idHandler:t,important:C};if("scroll"===k&&(u.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),k="object"):u.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),k="object")),"scroll"===k)S=h(A);else{if("object"!==k)throw new Error("Invalid strategy name: "+k);S=f(A)}var T={};return{listenTo:function(e,n,o){function i(e){var t=_.get(e);r(t,(function(t){t(e)}))}function a(e,t,n){_.add(t,n),e&&n(t)}if(o||(o=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!o)throw new Error("Listener required.");if(m(n))n=[n];else{if(!p(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=g(n)}var s=0,l=v(e,"callOnAdd",x.callOnAdd),u=v(e,"onReady",(function(){})),c=v(e,"debug",x.debug);r(n,(function(e){d.getState(e)||(d.initState(e),t.set(e));var f=t.get(e);if(c&&b.log("Attaching listener to element",f,e),!E.isDetectable(e))return c&&b.log(f,"Not detectable."),E.isBusy(e)?(c&&b.log(f,"System busy making it detectable"),a(l,e,o),T[f]=T[f]||[],void T[f].push((function(){++s===n.length&&u()}))):(c&&b.log(f,"Making detectable..."),E.markBusy(e,!0),S.makeDetectable({debug:c,important:C},e,(function(e){if(c&&b.log(f,"onElementDetectable"),d.getState(e)){E.markAsDetectable(e),E.markBusy(e,!1),S.addListener(e,i),a(l,e,o);var t=d.getState(e);if(t&&t.startSize){var h=e.offsetWidth,p=e.offsetHeight;t.startSize.width===h&&t.startSize.height===p||i(e)}T[f]&&r(T[f],(function(e){e()}))}else c&&b.log(f,"Element uninstalled before being detectable.");delete T[f],++s===n.length&&u()})));c&&b.log(f,"Already detecable, adding listener."),a(l,e,o),s++})),s===n.length&&u()},removeListener:_.removeListener,removeAllListeners:_.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(m(e))e=[e];else{if(!p(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=g(e)}r(e,(function(e){_.removeAllListeners(e),S.uninstall(e),d.cleanState(e)}))},initDocument:function(e){S.initDocument&&S.initDocument(e)}}}},40987:e=>{"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},13992:e=>{"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},80076:e=>{"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var r=n(e);if(!r)throw new Error("setId required the element to have a resize detection state.");var o=t.generate();return r.id=o,o}}}},38090:e=>{"use strict";e.exports=function(e){var t={};function n(n){var r=e.get(n);return void 0===r?[]:t[r]||[]}return{get:n,add:function(n,r){var o=e.get(n);t[o]||(t[o]=[]),t[o].push(r)},removeListener:function(e,t){for(var r=n(e),o=0,i=r.length;o<i;++o)if(r[o]===t){r.splice(o,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},53183:e=>{"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var r=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};r(n,"log"),r(n,"warn"),r(n,"error")}return n}},86502:e=>{"use strict";var t="_erd";function n(e){return e[t]}e.exports={initState:function(e){return e[t]={},n(e)},getState:n,cleanState:function(e){delete e[t]}}},62584:function(e,t,n){var r,o;"undefined"!=typeof window&&window,void 0===(o="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],o=0;o<n.length;o++){var i=n[o];r&&r[i]&&(this.off(e,i),delete r[i]),i.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=o)},49385:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(p&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}},69378:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},63966:(e,t,n)=>{var r,o;!function(i,a){r=[n(35431)],o=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var o=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&o.push(e);for(var n=e.querySelectorAll(r),i=0;i<n.length;i++)o.push(n[i])}else o.push(e)})),o},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],o=t+"Timeout";e.prototype[t]=function(){var e=this[o];clearTimeout(e);var t=arguments,i=this;this[o]=setTimeout((function(){r.apply(i,t),delete i[o]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var o=e.console;return n.htmlInit=function(t,r){n.docReady((function(){var i=n.toDashed(r),a="data-"+i,s=document.querySelectorAll("["+a+"]"),l=document.querySelectorAll(".js-"+i),u=n.makeArray(s).concat(n.makeArray(l)),c=a+"-options",d=e.jQuery;u.forEach((function(e){var n,i=e.getAttribute(a)||e.getAttribute(c);try{n=i&&JSON.parse(i)}catch(t){return void(o&&o.error("Error parsing "+a+" on "+e.className+": "+t))}var s=new t(e,n);d&&d.data(e,r,s)}))}))},n}(i,e)}.apply(t,r),void 0===o||(e.exports=o)}(window)},40172:(e,t,n)=>{var r,o;window,void 0===(o="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}function t(){}var n="undefined"==typeof console?t:function(e){console.error(e)},r=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=r.length;function i(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<o;t++)e[r[t]]=0;return e}function a(e){var t=getComputedStyle(e);return t||n("Style returned "+t+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),t}var s,l=!1;function u(){if(!l){l=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=a(t);s=200==Math.round(e(r.width)),c.isBoxSizeOuter=s,n.removeChild(t)}}function c(t){if(u(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var n=a(t);if("none"==n.display)return i();var l={};l.width=t.offsetWidth,l.height=t.offsetHeight;for(var c=l.isBorderBox="border-box"==n.boxSizing,d=0;d<o;d++){var f=r[d],h=n[f],p=parseFloat(h);l[f]=isNaN(p)?0:p}var g=l.paddingLeft+l.paddingRight,m=l.paddingTop+l.paddingBottom,v=l.marginLeft+l.marginRight,y=l.marginTop+l.marginBottom,b=l.borderLeftWidth+l.borderRightWidth,w=l.borderTopWidth+l.borderBottomWidth,x=c&&s,S=e(n.width);!1!==S&&(l.width=S+(x?0:g+b));var _=e(n.height);return!1!==_&&(l.height=_+(x?0:m+w)),l.innerWidth=l.width-(g+b),l.innerHeight=l.height-(m+w),l.outerWidth=l.width+v,l.outerHeight=l.height+y,l}}return c})?r.call(t,n,t,e):r)||(e.exports=o)},13458:(e,t)=>{var n,r;(r=r||{}).stringify=(n={"visit_linear-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-linear-gradient":function(e){return n.visit_gradient(e)},"visit_radial-gradient":function(e){return n.visit_gradient(e)},"visit_repeating-radial-gradient":function(e){return n.visit_gradient(e)},visit_gradient:function(e){var t=n.visit(e.orientation);return t&&(t+=", "),e.type+"("+t+n.visit(e.colorStops)+")"},visit_shape:function(e){var t=e.value,r=n.visit(e.at),o=n.visit(e.style);return o&&(t+=" "+o),r&&(t+=" at "+r),t},"visit_default-radial":function(e){var t="",r=n.visit(e.at);return r&&(t+=r),t},"visit_extent-keyword":function(e){var t=e.value,r=n.visit(e.at);return r&&(t+=" at "+r),t},"visit_position-keyword":function(e){return e.value},visit_position:function(e){return n.visit(e.value.x)+" "+n.visit(e.value.y)},"visit_%":function(e){return e.value+"%"},visit_em:function(e){return e.value+"em"},visit_px:function(e){return e.value+"px"},visit_literal:function(e){return n.visit_color(e.value,e)},visit_hex:function(e){return n.visit_color("#"+e.value,e)},visit_rgb:function(e){return n.visit_color("rgb("+e.value.join(", ")+")",e)},visit_rgba:function(e){return n.visit_color("rgba("+e.value.join(", ")+")",e)},visit_color:function(e,t){var r=e,o=n.visit(t.length);return o&&(r+=" "+o),r},visit_angular:function(e){return e.value+"deg"},visit_directional:function(e){return"to "+e.value},visit_array:function(e){var t="",r=e.length;return e.forEach((function(e,o){t+=n.visit(e),o<r-1&&(t+=", ")})),t},visit:function(e){if(!e)return"";if(e instanceof Array)return n.visit_array(e,"");if(e.type){var t=n["visit_"+e.type];if(t)return t(e);throw Error("Missing visitor visit_"+e.type)}throw Error("Invalid node.")}},function(e){return n.visit(e)}),(r=r||{}).parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){var n=new Error(t+": "+e);throw n.source=t,n}function r(){var e=h(o);return t.length>0&&n("Invalid input not EOF"),e}function o(){return i("linear-gradient",e.linearGradient,s)||i("repeating-linear-gradient",e.repeatingLinearGradient,s)||i("radial-gradient",e.radialGradient,l)||i("repeating-radial-gradient",e.repeatingRadialGradient,l)}function i(t,r,o){return a(r,(function(r){var i=o();return i&&(b(e.comma)||n("Missing comma before color stops")),{type:t,orientation:i,colorStops:h(p)}}))}function a(t,r){var o=b(t);if(o){b(e.startCall)||n("Missing (");var i=r(o);return b(e.endCall)||n("Missing )"),i}}function s(){return y("directional",e.sideOrCorner,1)||y("angular",e.angleValue,1)}function l(){var n,r,o=u();return o&&((n=[]).push(o),r=t,b(e.comma)&&((o=u())?n.push(o):t=r)),n}function u(){var e=function(){var e=y("shape",/^(circle)/i,0);e&&(e.style=v()||c());return e}()||function(){var e=y("shape",/^(ellipse)/i,0);e&&(e.style=m()||c());return e}();if(e)e.at=d();else{var t=c();if(t){e=t;var n=d();n&&(e.at=n)}else{var r=f();r&&(e={type:"default-radial",at:r})}}return e}function c(){return y("extent-keyword",e.extentKeywords,1)}function d(){if(y("position",/^at/,0)){var e=f();return e||n("Missing positioning value"),e}}function f(){var e={x:m(),y:m()};if(e.x||e.y)return{type:"position",value:e}}function h(t){var r=t(),o=[];if(r)for(o.push(r);b(e.comma);)(r=t())?o.push(r):n("One extra comma");return o}function p(){var t=y("hex",e.hexColor,1)||a(e.rgbaColor,(function(){return{type:"rgba",value:h(g)}}))||a(e.rgbColor,(function(){return{type:"rgb",value:h(g)}}))||y("literal",e.literalColor,0);return t||n("Expected color definition"),t.length=m(),t}function g(){return b(e.number)[1]}function m(){return y("%",e.percentageValue,1)||y("position-keyword",e.positionKeywords,1)||v()}function v(){return y("px",e.pixelValue,1)||y("em",e.emValue,1)}function y(e,t,n){var r=b(t);if(r)return{type:e,value:r[n]}}function b(e){var n,r;return(r=/^[\n\r\t\s]+/.exec(t))&&w(r[0].length),(n=e.exec(t))&&w(n[0].length),n}function w(e){t=t.substr(e)}return function(e){return t=e.toString(),r()}}(),t.parse=r.parse,t.stringify=r.stringify},73463:(e,t,n)=>{"use strict";var r=n(73887),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},43459:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function S(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||x(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},73887:(e,t,n)=>{"use strict";e.exports=n(43459)},46255:(e,t,n)=>{"use strict";n.d(t,{rT:()=>G});var r=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const o="application/font-woff",i="image/jpeg",a={woff:o,woff2:o,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function s(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return a[t]||""}function l(e){return-1!==e.search(/^(data:)/)}function u(e,t){return`data:${t};base64,${e}`}const c=function(){let e=0;return()=>(e+=1,`u${`0000${(Math.random()*Math.pow(36,4)<<0).toString(36)}`.slice(-4)}${e}`)}();function d(e){const t=[];for(let n=0,r=e.length;n<r;n+=1)t.push(e[n]);return t}function f(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}function h(e){return new Promise(((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="sync",r.src=e}))}function p(e,t,n){return r(this,void 0,void 0,(function*(){const o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),a=document.createElementNS(o,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),function(e){return r(this,void 0,void 0,(function*(){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(e))).then(encodeURIComponent).then((e=>`data:image/svg+xml;charset=utf-8,${e}`))}))}(i)}))}const g={};function m(e,t){const n=function(e){return/ttf|otf|eot|woff2?/i.test(e)?e.replace(/.*\//,""):e}(e);if(null!=g[n])return g[n];t.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());const r=window.fetch(e,t.fetchRequestInit).then((e=>e.blob().then((t=>({blob:t,contentType:e.headers.get("Content-Type")||""}))))).then((({blob:e,contentType:t})=>new Promise(((n,r)=>{const o=new FileReader;o.onloadend=()=>n({contentType:t,blob:o.result}),o.onerror=r,o.readAsDataURL(e)})))).then((({blob:e,contentType:t})=>{return{contentType:t,blob:(n=e,n.split(/,/)[1])};var n})).catch((n=>{let r="";if(t.imagePlaceholder){const e=t.imagePlaceholder.split(/,/);e&&e[1]&&(r=e[1])}let o=`Failed to fetch resource: ${e}`;return n&&(o="string"==typeof n?n:n.message),o&&console.error(o),{blob:r,contentType:""}}));return g[n]=r,r}function v(e,t,n){const r=`.${e}:${t}`,o=n.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function(e){return d(e).map((t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`)).join(" ")}(n);return document.createTextNode(`${r}{${o}}`)}function y(e,t,n){const r=window.getComputedStyle(e,n),o=r.getPropertyValue("content");if(""===o||"none"===o)return;const i=c();try{t.className=`${t.className} ${i}`}catch(e){return}const a=document.createElement("style");a.appendChild(v(i,n,r)),t.appendChild(a)}var b=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function w(e,t){return b(this,void 0,void 0,(function*(){return e instanceof HTMLCanvasElement?function(e){return b(this,void 0,void 0,(function*(){const t=e.toDataURL();return"data:,"===t?Promise.resolve(e.cloneNode(!1)):h(t)}))}(e):e instanceof HTMLVideoElement&&e.poster?function(e,t){return b(this,void 0,void 0,(function*(){return Promise.resolve(e.poster).then((e=>m(e,t))).then((t=>u(t.blob,s(e.poster)||t.contentType))).then((e=>h(e)))}))}(e,t):Promise.resolve(e.cloneNode(!1))}))}const x=e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase();function S(e,t){return b(this,void 0,void 0,(function*(){return t instanceof Element?Promise.resolve().then((()=>function(e,t){const n=window.getComputedStyle(e),r=t.style;r&&(n.cssText?r.cssText=n.cssText:d(n).forEach((e=>{r.setProperty(e,n.getPropertyValue(e),n.getPropertyPriority(e))})))}(e,t))).then((()=>function(e,t){y(e,t,":before"),y(e,t,":after")}(e,t))).then((()=>function(e,t){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}(e,t))).then((()=>t)):Promise.resolve(t)}))}function _(e,t,n){return b(this,void 0,void 0,(function*(){return n||!t.filter||t.filter(e)?Promise.resolve(e).then((e=>w(e,t))).then((n=>function(e,t,n){var r;return b(this,void 0,void 0,(function*(){const o=x(e)&&e.assignedNodes?d(e.assignedNodes()):d((null!==(r=e.shadowRoot)&&void 0!==r?r:e).childNodes);return 0===o.length||e instanceof HTMLVideoElement?Promise.resolve(t):o.reduce(((e,r)=>e.then((()=>_(r,n))).then((e=>{e&&t.appendChild(e)}))),Promise.resolve()).then((()=>t))}))}(e,n,t))).then((t=>S(e,t))):Promise.resolve(null)}))}var E=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const k=/url\((['"]?)([^'"]+?)\1\)/g,C=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,A=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function T(e){const t=[];return e.replace(k,((e,n,r)=>(t.push(r),e))),t.filter((e=>!l(e)))}function O(e,t,n,r,o){const i=n?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}(t,n):t;return Promise.resolve(i).then((e=>o?o(e):m(e,r))).then((e=>"string"==typeof e?u(e,s(t)):u(e.blob,s(t)||e.contentType))).then((n=>e.replace(function(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${n}$3`))).then((e=>e),(()=>i))}function M(e){return-1!==e.search(k)}function R(e,t,n){return E(this,void 0,void 0,(function*(){if(!M(e))return Promise.resolve(e);const r=function(e,{preferredFontFormat:t}){return t?e.replace(A,(e=>{for(;;){const[n,,r]=C.exec(e)||[];if(!r)return"";if(r===t)return`src: ${n};`}})):e}(e,n);return Promise.resolve(r).then(T).then((e=>e.reduce(((e,r)=>e.then((e=>O(e,r,t,n)))),Promise.resolve(r))))}))}var L=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function D(e,t){return L(this,void 0,void 0,(function*(){return e instanceof Element?Promise.resolve(e).then((e=>function(e,t){var n;return L(this,void 0,void 0,(function*(){const r=null===(n=e.style)||void 0===n?void 0:n.getPropertyValue("background");return r?Promise.resolve(r).then((e=>R(e,null,t))).then((t=>(e.style.setProperty("background",t,e.style.getPropertyPriority("background")),e))):Promise.resolve(e)}))}(e,t))).then((e=>function(e,t){return L(this,void 0,void 0,(function*(){if((!(e instanceof HTMLImageElement)||l(e.src))&&(!(e instanceof SVGImageElement)||l(e.href.baseVal)))return Promise.resolve(e);const n=e instanceof HTMLImageElement?e.src:e.href.baseVal;return Promise.resolve(n).then((e=>m(e,t))).then((e=>u(e.blob,s(n)||e.contentType))).then((t=>new Promise(((n,r)=>{e.onload=n,e.onerror=r,e instanceof HTMLImageElement?(e.srcset="",e.src=t):e.href.baseVal=t})))).then((()=>e),(()=>e))}))}(e,t))).then((e=>function(e,t){return L(this,void 0,void 0,(function*(){const n=d(e.childNodes).map((e=>D(e,t)));return Promise.all(n).then((()=>e))}))}(e,t))):Promise.resolve(e)}))}var P=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const j={},I={};function $(e){const t=j[e];if(null!=t)return t;const n=window.fetch(e).then((t=>({url:e,cssText:t.text()})));return j[e]=n,n}function N(e,t){return P(this,void 0,void 0,(function*(){return e.cssText.then((n=>{let r=n;const o=/url\(["']?([^"')]+)["']?\)/g,i=(r.match(/url\([^)]+\)/g)||[]).map((n=>{let i=n.replace(o,"$1");return i.startsWith("https://")||(i=new URL(i,e.url).href),window.fetch(i,t.fetchRequestInit).then((e=>e.blob())).then((e=>new Promise(((t,o)=>{const i=new FileReader;i.onloadend=()=>{r=r.replace(n,`url(${i.result})`),t([n,i.result])},i.onerror=o,i.readAsDataURL(e)}))))}));return Promise.all(i).then((()=>r))}))}))}function F(e){if(null==e)return[];const t=[];let n=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const e=r.exec(n);if(null===e)break;t.push(e[0])}n=n.replace(r,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,i=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=o.exec(n);if(null===e){if(e=i.exec(n),null===e)break;o.lastIndex=i.lastIndex}else i.lastIndex=o.lastIndex;t.push(e[0])}return t}function z(e){return e.filter((e=>e.type===CSSRule.FONT_FACE_RULE)).filter((e=>M(e.style.getPropertyValue("src"))))}function B(e,t){return P(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{null==e.ownerDocument&&n(new Error("Provided element is not within a Document")),t(d(e.ownerDocument.styleSheets))})).then((e=>function(e,t){return P(this,void 0,void 0,(function*(){const n=[],r=[];return e.forEach((n=>{if("cssRules"in n)try{d(n.cssRules).forEach(((e,o)=>{if(e.type===CSSRule.IMPORT_RULE){let i=o+1;const a=$(e.href).then((e=>e?N(e,t):"")).then((e=>F(e).forEach((e=>{try{n.insertRule(e,e.startsWith("@import")?i+=1:n.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})))).catch((e=>{console.error("Error loading remote css",e.toString())}));r.push(a)}}))}catch(o){const i=e.find((e=>null==e.href))||document.styleSheets[0];null!=n.href&&r.push($(n.href).then((e=>e?N(e,t):"")).then((e=>F(e).forEach((e=>{i.insertRule(e,n.cssRules.length)})))).catch((e=>{console.error("Error loading remote stylesheet",e.toString())}))),console.error("Error inlining remote css file",o.toString())}})),Promise.all(r).then((()=>(e.forEach((e=>{if("cssRules"in e)try{d(e.cssRules).forEach((e=>{n.push(e)}))}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t.toString())}})),n)))}))}(e,t))).then(z)}))}function H(e,t){return P(this,void 0,void 0,(function*(){let n;return n=t.fontEmbedCSS?Promise.resolve(t.fontEmbedCSS):t.fontsCacheKey&&I[t.fontsCacheKey]?Promise.resolve(I[t.fontsCacheKey]):function(e,t){return P(this,void 0,void 0,(function*(){return B(e,t).then((e=>Promise.all(e.map((e=>{const n=e.parentStyleSheet?e.parentStyleSheet.href:null;return R(e.cssText,n,t)}))))).then((e=>{const n=e.join("\n");return t.fontsCacheKey&&(I[t.fontsCacheKey]=n),n}))}))}(e,t),n.then((t=>{const n=document.createElement("style"),r=document.createTextNode(t);return n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),e}))}))}var W=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function U(e,t={}){const n=t.width||function(e){const t=f(e,"border-left-width"),n=f(e,"border-right-width");return e.clientWidth+t+n}(e),r=t.height||function(e){const t=f(e,"border-top-width"),n=f(e,"border-bottom-width");return e.clientHeight+t+n}(e);return{width:n,height:r}}function Z(e,t={}){return W(this,void 0,void 0,(function*(){const{width:n,height:r}=U(e,t);return Promise.resolve(e).then((e=>_(e,t,!0))).then((e=>H(e,t))).then((e=>D(e,t))).then((e=>function(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return null!=r&&Object.keys(r).forEach((e=>{n[e]=r[e]})),e}(e,t))).then((e=>p(e,n,r)))}))}const V=16384;function G(e,t={}){return W(this,void 0,void 0,(function*(){return Z(e,t).then(h).then((n=>{const r=document.createElement("canvas"),o=r.getContext("2d"),i=t.pixelRatio||function(){let e,t;try{t=process}catch(e){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),{width:a,height:s}=U(e,t),l=t.canvasWidth||a,u=t.canvasHeight||s;return r.width=l*i,r.height=u*i,t.skipAutoScale||function(e){(e.width>V||e.height>V)&&(e.width>V&&e.height>V?e.width>e.height?(e.height*=V/e.width,e.width=V):(e.width*=V/e.height,e.height=V):e.width>V?(e.height*=V/e.width,e.width=V):(e.width*=V/e.height,e.height=V))}(r),r.style.width=`${l}`,r.style.height=`${u}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,r.width,r.height)),o.drawImage(n,0,0,r.width,r.height),r}))}))}},95897:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.nodeToDataURL=t.svgToDataURL=t.createImage=t.canvasToBlob=t.getPixelRatio=t.getNodeHeight=t.getNodeWidth=t.toArray=t.delay=t.uuid=t.parseDataUrlContent=t.makeDataUrl=t.isDataUrl=t.resolveUrl=t.getMimeType=t.getExtension=void 0;var o,i="application/font-woff",a="image/jpeg",s={woff:i,woff2:i,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:a,jpeg:a,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function l(e){var t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}t.getExtension=l,t.getMimeType=function(e){var t=l(e).toLowerCase();return s[t]||""},t.resolveUrl=function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;var n=document.implementation.createHTMLDocument(),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),t&&(r.href=t),o.href=e,o.href},t.isDataUrl=function(e){return-1!==e.search(/^(data:)/)},t.makeDataUrl=function(e,t){return"data:"+t+";base64,"+e},t.parseDataUrlContent=function(e){return e.split(/,/)[1]},t.uuid=(o=0,function(){return o+=1,"u"+("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)+o});function u(e,t){var n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}function c(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){return[2,Promise.resolve().then((function(){return(new XMLSerializer).serializeToString(e)})).then(encodeURIComponent).then((function(e){return"data:image/svg+xml;charset=utf-8,"+e}))]}))}))}t.delay=function(e){return function(t){return new Promise((function(n){return setTimeout((function(){return n(t)}),e)}))}},t.toArray=function(e){for(var t=[],n=0,r=e.length;n<r;n+=1)t.push(e[n]);return t},t.getNodeWidth=function(e){var t=u(e,"border-left-width"),n=u(e,"border-right-width");return e.clientWidth+t+n},t.getNodeHeight=function(e){var t=u(e,"border-top-width"),n=u(e,"border-bottom-width");return e.clientHeight+t+n},t.getPixelRatio=function(){var e,t;try{t=process}catch(e){}var n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1},t.canvasToBlob=function(e,t){return void 0===t&&(t={}),e.toBlob?new Promise((function(n){return e.toBlob(n,t.type?t.type:"image/png",t.quality?t.quality:1)})):new Promise((function(n){for(var r=window.atob(e.toDataURL(t.type?t.type:void 0,t.quality?t.quality:void 0).split(",")[1]),o=r.length,i=new Uint8Array(o),a=0;a<o;a+=1)i[a]=r.charCodeAt(a);n(new Blob([i],{type:t.type?t.type:"image/png"}))}))},t.createImage=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.crossOrigin="anonymous",r.decoding="sync",r.src=e}))},t.svgToDataURL=c,t.nodeToDataURL=function(e,t,o){return n(this,void 0,void 0,(function(){var n,i,a;return r(this,(function(r){return n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),a=document.createElementNS(n,"foreignObject"),i.setAttribute("width",""+t),i.setAttribute("height",""+o),i.setAttribute("viewBox","0 0 "+t+" "+o),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("externalResourcesRequired","true"),i.appendChild(a),a.appendChild(e),[2,c(i)]}))}))}},99842:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var r=n(86522),o=n(37584),i=n(9249),a=n(87371),s=n(11987),l=n(95058),u=n(80753),c=n(45754),d={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},f=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,e),this.init(t,n)}return(0,a.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||d,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,(0,o.Z)({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),h=function(){function e(){(0,i.Z)(this,e),this.observers={}}return(0,a.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)}));this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function p(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function g(e){return null==e?"":""+e}function m(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function v(e,t,n){var r=m(e,t,Object);r.obj[r.k]=n}function y(e,t){var n=m(e,t),r=n.obj,o=n.k;if(r)return r[o]}function b(e,t,n){var r=y(e,n);return void 0!==r?r:y(t,n)}function w(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):w(e[r],t[r],n):e[r]=t[r]);return e}function x(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function _(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return S[e]})):e}var E="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,k=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,i.Z)(this,t),n=(0,s.Z)(this,(0,l.Z)(t).call(this)),E&&h.call((0,u.Z)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return(0,c.Z)(t,e),(0,a.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),y(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),v(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=y(this.data,s)||{};r?w(l,n,i):l=(0,o.Z)({},l,n),v(this.data,s,l),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?(0,o.Z)({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(h),C={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},A={},T=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(this,t),n=(0,s.Z)(this,(0,l.Z)(t).call(this)),E&&h.call((0,u.Z)(n)),function(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,u.Z)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=f.create("translator"),n}return(0,c.Z)(t,e),(0,a.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,i){var a=this;if("object"!==(0,r.Z)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),u=l.key,c=l.namespaces,d=c[c.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(h){var p=n.nsSeparator||this.options.nsSeparator;return d+p+u}return u}var g=this.resolve(e,n),m=g&&g.res,v=g&&g.usedKey||u,y=g&&g.exactUsedKey||u,b=Object.prototype.toString.apply(m),w=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject;if(x&&m&&("string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof w||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,n):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(s){var S="[object Array]"===b,_=S?[]:{},E=S?y:v;for(var k in m)if(Object.prototype.hasOwnProperty.call(m,k)){var C="".concat(E).concat(s).concat(k);_[k]=this.translate(C,(0,o.Z)({},n,{joinArrays:!1,ns:c})),_[k]===C&&(_[k]=m[k])}m=_}}else if(x&&"string"==typeof w&&"[object Array]"===b)(m=m.join(w))&&(m=this.extendTranslation(m,e,n,i));else{var A=!1,T=!1,O=void 0!==n.count&&"string"!=typeof n.count,M=t.hasDefaultValue(n),R=O?this.pluralResolver.getSuffix(f,n.count):"",L=n["defaultValue".concat(R)]||n.defaultValue;!this.isValidLookup(m)&&M&&(A=!0,m=L),this.isValidLookup(m)||(T=!0,m=u);var D=M&&L!==m&&this.options.updateMissing;if(T||A||D){if(this.logger.log(D?"updateKey":"missingKey",f,d,u,D?L:m),s){var P=this.resolve(u,(0,o.Z)({},n,{keySeparator:!1}));P&&P.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var j=[],I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&I&&I[0])for(var $=0;$<I.length;$++)j.push(I[$]);else"all"===this.options.saveMissingTo?j=this.languageUtils.toResolveHierarchy(n.lng||this.language):j.push(n.lng||this.language);var N=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,d,t,D?r:m,D,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,d,t,D?r:m,D,n),a.emit("missingKey",e,d,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?j.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){N([e],u+t,n["defaultValue".concat(t)]||L)}))})):N(j,u,L))}m=this.extendTranslation(m,e,n,g,i),T&&m===u&&this.options.appendNamespaceToMissingKey&&(m="".concat(d,":").concat(u)),T&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init((0,o.Z)({},n,{interpolation:(0,o.Z)({},this.options.interpolation,n.interpolation)}));var s,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var u=e.match(this.interpolator.nestingRegexp);s=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=(0,o.Z)({},this.options.interpolation.defaultVariables,c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),l){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return i&&i[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,h="string"==typeof f?[f]:f;return null!=e&&h&&h.length&&!1!==n.applyPostProcessor&&(e=C.handle(h,e,t,this.options&&this.options.postProcessPassResolved?(0,o.Z)({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!A["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(A["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,l,c=u,h=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(h,u,n,e,s);else d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&f&&h.push(c+i),f&&h.push(c+="".concat(a.options.contextSeparator).concat(s.context)),d&&h.push(c+=i);for(;l=h.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}]),t}(h);function O(e){return e.charAt(0).toUpperCase()+e.slice(1)}var M=function(){function e(t){(0,i.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=f.create("languageUtils")}return(0,a.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=O(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=O(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),R=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],L={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var D=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,e),this.languageUtils=t,this.options=r,this.logger=f.create("pluralResolver"),this.rules=(n={},R.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:L[e.fc]}}))})),n)}return(0,a.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),P=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.Z)(this,e),this.logger=f.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,a.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:_,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?x(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?x(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?x(t.nestingPrefix):t.nestingPrefixEscaped||x("$t("),this.nestingSuffix=t.nestingSuffix?x(t.nestingSuffix):t.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=b(t,l,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),u=i.join(s.formatSeparator).trim();return s.format(b(t,l,a),u,n,r)};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof d){var n=d(e,o,r);i="string"==typeof n?n:""}else{if(f){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=g(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=(0,o.Z)({},a);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=(0,o.Z)({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),u=d,c=!0}if((r=t(l.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=g(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return i.format(e,t,a.lng,a)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var j=function(e){function t(e,n,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,i.Z)(this,t),o=(0,s.Z)(this,(0,l.Z)(t).call(this)),E&&h.call((0,u.Z)(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=a,o.logger=f.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,a.backend,a),o}return(0,c.Z)(t,e),(0,a.Z)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,l,u,c,d;r=n.loaded,s=i,u=m(r,[o],Object),c=u.obj,d=u.k,c[d]=c[d]||[],l&&(c[d]=c[d].concat(s)),l||c[d].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=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."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" 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!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,(0,o.Z)({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(h);function I(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}const N=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,i.Z)(this,t),e=(0,s.Z)(this,(0,l.Z)(t).call(this)),E&&h.call((0,u.Z)(e)),e.options=I(n),e.services={},e.logger=f,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),(0,s.Z)(e,(0,u.Z)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return(0,c.Z)(t,e),(0,a.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=(0,o.Z)({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,r.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,r.Z)(e[2])||"object"===(0,r.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,I(t)),this.format=this.options.interpolation.format,n||(n=$),!this.options.isClone){this.modules.logger?f.init(i(this.modules.logger),this.options):f.init(null,this.options);var a=new M(this.options);this.store=new k(this.options.resources,this.options);var s=this.services;s.logger=f,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new D(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new P(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new j(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new T(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[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((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var u=p(),c=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)i(r);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)}));this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=p();return e||(e=this.languages),t||(t=this.options.ns),n||(n=$),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=p();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,i=function e(t,i){var a;if("object"!==(0,r.Z)(i)){for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u<s;u++)l[u-2]=arguments[u];a=n.options.overloadTranslationOptionHandler([t,i].concat(l))}else a=(0,o.Z)({},i);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=p();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=p();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,i=(0,o.Z)({},this.options,n,{isClone:!0}),a=new t(i);return["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=(0,o.Z)({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new T(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(i,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}}]),t}(h))},56204:function(e,t,n){var r,o;!function(i,a){"use strict";r=[n(62584)],o=function(e){return function(e,t){var n=e.jQuery,r=e.console;function o(e,t){for(var n in t)e[n]=t[n];return e}var i=Array.prototype.slice;function a(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?i.call(e):[e]}function s(e,t,i){if(!(this instanceof s))return new s(e,t,i);var l=e;"string"==typeof e&&(l=document.querySelectorAll(e)),l?(this.elements=a(l),this.options=o({},this.options),"function"==typeof t?i=t:o(this.options,t),i&&this.on("always",i),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(l||e))}s.prototype=Object.create(t.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var o=n[r];this.addImage(o)}if("string"==typeof this.options.background){var i=e.querySelectorAll(this.options.background);for(r=0;r<i.length;r++){var a=i[r];this.addElementBackgroundImages(a)}}}};var l={1:!0,9:!0,11:!0};function u(e){this.img=e}function c(e,t){this.url=e,this.element=t,this.img=new Image}return s.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var o=r&&r[2];o&&this.addBackground(o,e),r=n.exec(t.backgroundImage)}},s.prototype.addImage=function(e){var t=new u(e);this.images.push(t)},s.prototype.addBackground=function(e,t){var n=new c(e,t);this.images.push(n)},s.prototype.check=function(){var e=this;function t(t,n,r){setTimeout((function(){e.progress(t,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},s.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},u.prototype=Object.create(t.prototype),u.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},u.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},u.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},u.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},u.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(u.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(n(this))})},s.makeJQueryPlugin(),s}(i,e)}.apply(t,r),void 0===o||(e.exports=o)}("undefined"!=typeof window?window:this)},6299:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function h(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function p(){var e={line:d,column:f};return function(t){return t.position=new g(e),b(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=l.source}g.prototype.content=e;var m=[];function v(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;m.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,h(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function S(){var e=p(),n=y(o);if(n){if(x(),!y(i))return v("property missing ':'");var r=y(a),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=S();)!1!==e&&(t.push(e),w(t));return t}()}},47677:e=>{"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},13335:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},98558:e=>{"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},51949:(e,t,n)=>{"use strict";function r(e){this.message=e}n.d(t,{Z:()=>s}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},91366:e=>{var t=Object.prototype.toString;function n(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var r=typeof e;if("boolean"===r)return"boolean";if("string"===r)return"string";if("number"===r)return"number";if("symbol"===r)return"symbol";if("function"===r)return"GeneratorFunction"===n(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(n(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(r=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return r.slice(8,-1).toLowerCase().replace(/\s/g,"")}},9599:e=>{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,r,o){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof r&&(o=r,r={}),r=r||{},o=o||function(){},a.type=r.type||"text/javascript",a.charset=r.charset||"utf8",a.async=!("async"in r)||!!r.async,a.src=e,r.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(a,r.attrs),r.text&&(a.text=""+r.text),("onload"in a?t:n)(a,o),a.onload||t(a,o),i.appendChild(a)}},77485:(e,t,n)=>{var r="__lodash_hash_undefined__",o=1/0,i="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,g="object"==typeof self&&self&&self.Object===Object&&self,m=p||g||Function("return this")();var v,y=Array.prototype,b=Function.prototype,w=Object.prototype,x=m["__core-js_shared__"],S=(v=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",_=b.toString,E=w.hasOwnProperty,k=w.toString,C=RegExp("^"+_.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=m.Symbol,T=y.splice,O=z(m,"Map"),M=z(Object,"create"),R=A?A.prototype:void 0,L=R?R.toString:void 0;function D(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e,t){for(var n=e.length;n--;)if(U(e[n][0],t))return n;return-1}function $(e,t){t=function(e,t){if(Z(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||G(e))return!0;return u.test(e)||!l.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:function(e){return Z(e)?e:B(e)}(t);for(var n=0,r=t.length;null!=e&&n<r;)e=e[H(t[n++])];return n&&n==r?e:void 0}function N(e){if(!V(e)||(t=e,S&&S in t))return!1;var t,n=function(e){var t=V(e)?k.call(e):"";return t==i||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?C:h;return n.test(function(e){if(null!=e){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function F(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function z(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return N(n)?n:void 0}D.prototype.clear=function(){this.__data__=M?M(null):{}},D.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},D.prototype.get=function(e){var t=this.__data__;if(M){var n=t[e];return n===r?void 0:n}return E.call(t,e)?t[e]:void 0},D.prototype.has=function(e){var t=this.__data__;return M?void 0!==t[e]:E.call(t,e)},D.prototype.set=function(e,t){return this.__data__[e]=M&&void 0===t?r:t,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(e){var t=this.__data__,n=I(t,e);return!(n<0)&&(n==t.length-1?t.pop():T.call(t,n,1),!0)},P.prototype.get=function(e){var t=this.__data__,n=I(t,e);return n<0?void 0:t[n][1]},P.prototype.has=function(e){return I(this.__data__,e)>-1},P.prototype.set=function(e,t){var n=this.__data__,r=I(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new D,map:new(O||P),string:new D}},j.prototype.delete=function(e){return F(this,e).delete(e)},j.prototype.get=function(e){return F(this,e).get(e)},j.prototype.has=function(e){return F(this,e).has(e)},j.prototype.set=function(e,t){return F(this,e).set(e,t),this};var B=W((function(e){e=function(e){return null==e?"":function(e){if("string"==typeof e)return e;if(G(e))return L?L.call(e):"";var t=e+"";return"0"==t&&1/e==-o?"-0":t}(e)}(e);var t=[];return c.test(e)&&t.push(""),e.replace(d,(function(e,n,r,o){t.push(r?o.replace(f,"$1"):n||e)})),t}));function H(e){if("string"==typeof e||G(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}function W(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(W.Cache||j),n}function U(e,t){return e===t||e!=e&&t!=t}W.Cache=j;var Z=Array.isArray;function V(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function G(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&k.call(e)==s}e.exports=function(e,t,n){var r=null==e?void 0:$(e,t);return void 0===r?n:r}},33958:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Null]",y="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",S="[object Set]",_="[object String]",E="[object Symbol]",k="[object Undefined]",C="[object WeakMap]",A="[object ArrayBuffer]",T="[object DataView]",O=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[s]=R[l]=R[A]=R[c]=R[T]=R[d]=R[f]=R[h]=R[g]=R[m]=R[y]=R[x]=R[S]=R[_]=R[C]=!1;var L="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,D="object"==typeof self&&self&&self.Object===Object&&self,P=L||D||Function("return this")(),j=t&&!t.nodeType&&t,I=j&&e&&!e.nodeType&&e,$=I&&I.exports===j,N=$&&L.process,F=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),z=F&&F.isTypedArray;function B(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function H(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var U,Z,V,G=Array.prototype,q=Function.prototype,Y=Object.prototype,K=P["__core-js_shared__"],X=q.toString,Q=Y.hasOwnProperty,J=(U=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+U:"",ee=Y.toString,te=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=$?P.Buffer:void 0,re=P.Symbol,oe=P.Uint8Array,ie=Y.propertyIsEnumerable,ae=G.splice,se=re?re.toStringTag:void 0,le=Object.getOwnPropertySymbols,ue=ne?ne.isBuffer:void 0,ce=(Z=Object.keys,V=Object,function(e){return Z(V(e))}),de=Fe(P,"DataView"),fe=Fe(P,"Map"),he=Fe(P,"Promise"),pe=Fe(P,"Set"),ge=Fe(P,"WeakMap"),me=Fe(Object,"create"),ve=We(de),ye=We(fe),be=We(he),we=We(pe),xe=We(ge),Se=re?re.prototype:void 0,_e=Se?Se.valueOf:void 0;function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Ce;++t<n;)this.add(e[t])}function Te(e){var t=this.__data__=new ke(e);this.size=t.size}function Oe(e,t){var n=Ve(e),r=!n&&Ze(e),o=!n&&!r&&Ge(e),i=!n&&!r&&!o&&Qe(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!Q.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||He(u,l))||s.push(u);return s}function Me(e,t){for(var n=e.length;n--;)if(Ue(e[n][0],t))return n;return-1}function Re(e){return null==e?void 0===e?k:v:se&&se in Object(e)?function(e){var t=Q.call(e,se),n=e[se];try{e[se]=void 0;var r=!0}catch(e){}var o=ee.call(e);r&&(t?e[se]=n:delete e[se]);return o}(e):function(e){return ee.call(e)}(e)}function Le(e){return Xe(e)&&Re(e)==s}function De(e,t,n,r,a){return e===t||(null==e||null==t||!Xe(e)&&!Xe(t)?e!=e&&t!=t:function(e,t,n,r,a,u){var h=Ve(e),p=Ve(t),v=h?l:Be(e),b=p?l:Be(t),w=(v=v==s?y:v)==y,k=(b=b==s?y:b)==y,C=v==b;if(C&&Ge(e)){if(!Ge(t))return!1;h=!0,w=!1}if(C&&!w)return u||(u=new Te),h||Qe(e)?Ie(e,t,n,r,a,u):function(e,t,n,r,a,s,l){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!s(new oe(e),new oe(t)));case c:case d:case m:return Ue(+e,+t);case f:return e.name==t.name&&e.message==t.message;case x:case _:return e==t+"";case g:var u=H;case S:var h=r&o;if(u||(u=W),e.size!=t.size&&!h)return!1;var p=l.get(e);if(p)return p==t;r|=i,l.set(e,t);var v=Ie(u(e),u(t),r,a,s,l);return l.delete(e),v;case E:if(_e)return _e.call(e)==_e.call(t)}return!1}(e,t,v,n,r,a,u);if(!(n&o)){var O=w&&Q.call(e,"__wrapped__"),M=k&&Q.call(t,"__wrapped__");if(O||M){var R=O?e.value():e,L=M?t.value():t;return u||(u=new Te),a(R,L,n,r,u)}}if(!C)return!1;return u||(u=new Te),function(e,t,n,r,i,a){var s=n&o,l=$e(e),u=l.length,c=$e(t),d=c.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var h=l[f];if(!(s?h in t:Q.call(t,h)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var g=!0;a.set(e,t),a.set(t,e);var m=s;for(;++f<u;){var v=e[h=l[f]],y=t[h];if(r)var b=s?r(y,v,h,t,e,a):r(v,y,h,e,t,a);if(!(void 0===b?v===y||i(v,y,n,r,a):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,a,u)}(e,t,n,r,De,a))}function Pe(e){return!(!Ke(e)||function(e){return!!J&&J in e}(e))&&(qe(e)?te:O).test(We(e))}function je(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Y;return e===n}(e))return ce(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ie(e,t,n,r,a,s){var l=n&o,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,h=!0,p=n&i?new Ae:void 0;for(s.set(e,t),s.set(t,e);++f<u;){var g=e[f],m=t[f];if(r)var v=l?r(m,g,f,t,e,s):r(g,m,f,e,t,s);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!B(t,(function(e,t){if(o=t,!p.has(o)&&(g===e||a(g,e,n,r,s)))return p.push(t);var o}))){h=!1;break}}else if(g!==m&&!a(g,m,n,r,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function $e(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Je,ze)}function Ne(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}Ee.prototype.clear=function(){this.__data__=me?me(null):{},this.size=0},Ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ee.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Q.call(t,e)},Ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=me&&void 0===t?r:t,this},ke.prototype.clear=function(){this.__data__=[],this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0)&&(n==t.length-1?t.pop():ae.call(t,n,1),--this.size,!0)},ke.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Me(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ce.prototype.clear=function(){this.size=0,this.__data__={hash:new Ee,map:new(fe||ke),string:new Ee}},Ce.prototype.delete=function(e){var t=Ne(this,e).delete(e);return this.size-=t?1:0,t},Ce.prototype.get=function(e){return Ne(this,e).get(e)},Ce.prototype.has=function(e){return Ne(this,e).has(e)},Ce.prototype.set=function(e,t){var n=Ne(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,r),this},Ae.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new ke,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ce(r)}return n.set(e,t),this.size=n.size,this};var ze=le?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(le(e),(function(t){return ie.call(e,t)})))}:function(){return[]},Be=Re;function He(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||M.test(e))&&e>-1&&e%1==0&&e<t}function We(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ue(e,t){return e===t||e!=e&&t!=t}(de&&Be(new de(new ArrayBuffer(1)))!=T||fe&&Be(new fe)!=g||he&&Be(he.resolve())!=b||pe&&Be(new pe)!=S||ge&&Be(new ge)!=C)&&(Be=function(e){var t=Re(e),n=t==y?e.constructor:void 0,r=n?We(n):"";if(r)switch(r){case ve:return T;case ye:return g;case be:return b;case we:return S;case xe:return C}return t});var Ze=Le(function(){return arguments}())?Le:function(e){return Xe(e)&&Q.call(e,"callee")&&!ie.call(e,"callee")},Ve=Array.isArray;var Ge=ue||function(){return!1};function qe(e){if(!Ke(e))return!1;var t=Re(e);return t==h||t==p||t==u||t==w}function Ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xe(e){return null!=e&&"object"==typeof e}var Qe=z?function(e){return function(t){return e(t)}}(z):function(e){return Xe(e)&&Ye(e.length)&&!!R[Re(e)]};function Je(e){return function(e){return null!=e&&Ye(e.length)&&!qe(e)}(e)?Oe(e):je(e)}e.exports=function(e,t){return De(e,t)}},39515:(e,t,n)=>{var r=n(38761)(n(37772),"DataView");e.exports=r},89612:(e,t,n)=>{var r=n(52118),o=n(96909),i=n(98138),a=n(4174),s=n(7942);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},80235:(e,t,n)=>{var r=n(3945),o=n(21846),i=n(88028),a=n(72344),s=n(94769);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},10326:(e,t,n)=>{var r=n(38761)(n(37772),"Map");e.exports=r},96738:(e,t,n)=>{var r=n(92411),o=n(36417),i=n(86928),a=n(79493),s=n(24150);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},52760:(e,t,n)=>{var r=n(38761)(n(37772),"Promise");e.exports=r},2143:(e,t,n)=>{var r=n(38761)(n(37772),"Set");e.exports=r},45386:(e,t,n)=>{var r=n(96738),o=n(52842),i=n(52482);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},86571:(e,t,n)=>{var r=n(80235),o=n(15243),i=n(72858),a=n(4417),s=n(8605),l=n(71418);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},50857:(e,t,n)=>{var r=n(37772).Symbol;e.exports=r},79162:(e,t,n)=>{var r=n(37772).Uint8Array;e.exports=r},93215:(e,t,n)=>{var r=n(38761)(n(37772),"WeakMap");e.exports=r},49432:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},72517:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},67552:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},1634:(e,t,n)=>{var r=n(36473),o=n(79631),i=n(86152),a=n(73226),s=n(39045),l=n(77598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),d=!n&&!c&&a(e),f=!n&&!c&&!d&&l(e),h=n||c||d||f,p=h?r(e.length,String):[],g=p.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},50343:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},65067:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},87064:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},28582:(e,t,n)=>{var r=n(13940),o=n(41225);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},60091:(e,t,n)=>{var r=n(13940),o=n(41225),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},22218:(e,t,n)=>{var r=n(41225);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},67993:(e,t,n)=>{var r=n(752),o=n(90249);e.exports=function(e,t){return e&&r(t,o(t),e)}},55906:(e,t,n)=>{var r=n(752),o=n(18582);e.exports=function(e,t){return e&&r(t,o(t),e)}},13940:(e,t,n)=>{var r=n(83043);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},18874:(e,t,n)=>{var r=n(86571),o=n(72517),i=n(60091),a=n(67993),s=n(55906),l=n(92175),u=n(51522),c=n(7680),d=n(19987),f=n(13483),h=n(76939),p=n(70940),g=n(99917),m=n(8222),v=n(78725),y=n(86152),b=n(73226),w=n(4714),x=n(29259),S=n(43679),_=n(90249),E=n(18582),k="[object Arguments]",C="[object Function]",A="[object Object]",T={};T[k]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[A]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[C]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,O,M,R,L){var D,P=1&n,j=2&n,I=4&n;if(O&&(D=R?O(t,M,R,L):O(t)),void 0!==D)return D;if(!x(t))return t;var $=y(t);if($){if(D=g(t),!P)return u(t,D)}else{var N=p(t),F=N==C||"[object GeneratorFunction]"==N;if(b(t))return l(t,P);if(N==A||N==k||F&&!R){if(D=j||F?{}:v(t),!P)return j?d(t,s(D,t)):c(t,a(D,t))}else{if(!T[N])return R?t:{};D=m(t,N,P)}}L||(L=new r);var z=L.get(t);if(z)return z;L.set(t,D),S(t)?t.forEach((function(r){D.add(e(r,n,O,r,t,L))})):w(t)&&t.forEach((function(r,o){D.set(o,e(r,n,O,o,t,L))}));var B=$?void 0:(I?j?h:f:j?E:_)(t);return o(B||t,(function(r,o){B&&(r=t[o=r]),i(D,o,e(r,n,O,o,t,L))})),D}},39413:(e,t,n)=>{var r=n(29259),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},24303:(e,t,n)=>{var r=n(26548),o=n(92019)(r);e.exports=o},62034:(e,t,n)=>{var r=n(65067),o=n(95882);e.exports=function e(t,n,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},15308:(e,t,n)=>{var r=n(55463)();e.exports=r},26548:(e,t,n)=>{var r=n(15308),o=n(90249);e.exports=function(e,t){return e&&r(e,t,o)}},13324:(e,t,n)=>{var r=n(17297),o=n(33812);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},1897:(e,t,n)=>{var r=n(65067),o=n(86152);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},53366:(e,t,n)=>{var r=n(50857),o=n(62107),i=n(37157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},20187:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},15183:(e,t,n)=>{var r=n(53366),o=n(15125);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},88746:(e,t,n)=>{var r=n(51952),o=n(15125);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},51952:(e,t,n)=>{var r=n(86571),o=n(74871),i=n(11491),a=n(17416),s=n(70940),l=n(86152),u=n(73226),c=n(77598),d="[object Arguments]",f="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),w=y?f:s(e),x=b?f:s(t),S=(w=w==d?h:w)==h,_=(x=x==d?h:x)==h,E=w==x;if(E&&u(e)){if(!u(t))return!1;y=!0,S=!1}if(E&&!S)return v||(v=new r),y||c(e)?o(e,t,n,g,m,v):i(e,t,w,n,g,m,v);if(!(1&n)){var k=S&&p.call(e,"__wrapped__"),C=_&&p.call(t,"__wrapped__");if(k||C){var A=k?e.value():e,T=C?t.value():t;return v||(v=new r),m(A,T,n,g,v)}}return!!E&&(v||(v=new r),a(e,t,n,g,m,v))}},74511:(e,t,n)=>{var r=n(70940),o=n(15125);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},37036:(e,t,n)=>{var r=n(86571),o=n(88746);e.exports=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r;if(i)var p=i(d,f,c,e,t,h);if(!(void 0===p?o(f,d,3,i,h):p))return!1}}return!0}},6840:(e,t,n)=>{var r=n(61049),o=n(47394),i=n(29259),a=n(87035),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},8109:(e,t,n)=>{var r=n(70940),o=n(15125);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},35522:(e,t,n)=>{var r=n(53366),o=n(61158),i=n(15125),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},68286:(e,t,n)=>{var r=n(26423),o=n(74716),i=n(23059),a=n(86152),s=n(65798);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},86411:(e,t,n)=>{var r=n(16001),o=n(94272),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},18390:(e,t,n)=>{var r=n(29259),o=n(16001),i=n(62966),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},93401:(e,t,n)=>{var r=n(24303),o=n(67878);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},26423:(e,t,n)=>{var r=n(37036),o=n(49882),i=n(73477);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},74716:(e,t,n)=>{var r=n(88746),o=n(72579),i=n(95041),a=n(21401),s=n(28792),l=n(73477),u=n(33812);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},84565:(e,t,n)=>{var r=n(86571),o=n(28582),i=n(15308),a=n(25561),s=n(29259),l=n(18582),u=n(52434);e.exports=function e(t,n,c,d,f){t!==n&&i(n,(function(i,l){if(f||(f=new r),s(i))a(t,n,l,c,e,d,f);else{var h=d?d(u(t,l),i,l+"",t,n,f):void 0;void 0===h&&(h=i),o(t,l,h)}}),l)}},25561:(e,t,n)=>{var r=n(28582),o=n(92175),i=n(6190),a=n(51522),s=n(78725),l=n(79631),u=n(86152),c=n(93746),d=n(73226),f=n(61049),h=n(29259),p=n(97030),g=n(77598),m=n(52434),v=n(63329);e.exports=function(e,t,n,y,b,w,x){var S=m(e,n),_=m(t,n),E=x.get(_);if(E)r(e,n,E);else{var k=w?w(S,_,n+"",e,t,x):void 0,C=void 0===k;if(C){var A=u(_),T=!A&&d(_),O=!A&&!T&&g(_);k=_,A||T||O?u(S)?k=S:c(S)?k=a(S):T?(C=!1,k=o(_,!0)):O?(C=!1,k=i(_,!0)):k=[]:p(_)||l(_)?(k=S,l(S)?k=v(S):h(S)&&!f(S)||(k=s(_))):C=!1}C&&(x.set(_,k),b(k,_,y,w,x),x.delete(_)),r(e,n,k)}}},20256:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},82952:(e,t,n)=>{var r=n(13324);e.exports=function(e){return function(t){return r(t,e)}}},36060:(e,t,n)=>{var r=n(23059),o=n(43114),i=n(75251);e.exports=function(e,t){return i(o(e,t,r),e+"")}},86532:(e,t,n)=>{var r=n(86874),o=n(83043),i=n(23059),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},39872:e=>{e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},36473:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},1054:(e,t,n)=>{var r=n(50857),o=n(50343),i=n(86152),a=n(4795),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},51704:(e,t,n)=>{var r=n(52153),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},47826:e=>{e.exports=function(e){return function(t){return e(t)}}},29078:(e,t,n)=>{var r=n(17297),o=n(56974),i=n(62721),a=n(33812);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},59950:e=>{e.exports=function(e,t){return e.has(t)}},89419:(e,t,n)=>{var r=n(23059);e.exports=function(e){return"function"==typeof e?e:r}},17297:(e,t,n)=>{var r=n(86152),o=n(21401),i=n(54452),a=n(66188);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},79882:(e,t,n)=>{var r=n(79162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},92175:(e,t,n)=>{e=n.nmd(e);var r=n(37772),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},34727:(e,t,n)=>{var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},96058:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},70169:(e,t,n)=>{var r=n(50857),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},6190:(e,t,n)=>{var r=n(79882);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},51522:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},752:(e,t,n)=>{var r=n(60091),o=n(13940);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},7680:(e,t,n)=>{var r=n(752),o=n(80633);e.exports=function(e,t){return r(e,o(e),t)}},19987:(e,t,n)=>{var r=n(752),o=n(12680);e.exports=function(e,t){return r(e,o(e),t)}},24019:(e,t,n)=>{var r=n(37772)["__core-js_shared__"];e.exports=r},97263:(e,t,n)=>{var r=n(36060),o=n(82406);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},92019:(e,t,n)=>{var r=n(67878);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},55463:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},48642:(e,t,n)=>{var r=n(97030);e.exports=function(e){return r(e)?void 0:e}},83043:(e,t,n)=>{var r=n(38761),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},74871:(e,t,n)=>{var r=n(45386),o=n(87064),i=n(59950);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var v=e[p],y=t[p];if(a)var b=u?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},11491:(e,t,n)=>{var r=n(50857),o=n(79162),i=n(41225),a=n(74871),s=n(75179),l=n(16909),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,f){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=l),e.size!=t.size&&!p)return!1;var g=f.get(e);if(g)return g==t;r|=2,f.set(e,t);var m=a(h(e),h(t),r,u,d,f);return f.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},17416:(e,t,n)=>{var r=n(13483),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:o.call(t,f)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<c;){var v=e[f=u[d]],y=t[f];if(i)var b=l?i(y,v,f,t,e,s):i(v,y,f,e,t,s);if(!(void 0===b?v===y||a(v,y,n,i,s):b)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(g=!1)}return s.delete(e),s.delete(t),g}},29097:(e,t,n)=>{var r=n(35676),o=n(43114),i=n(75251);e.exports=function(e){return i(o(e,void 0,r),e+"")}},51242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},13483:(e,t,n)=>{var r=n(1897),o=n(80633),i=n(90249);e.exports=function(e){return r(e,i,o)}},76939:(e,t,n)=>{var r=n(1897),o=n(12680),i=n(18582);e.exports=function(e){return r(e,i,o)}},27937:(e,t,n)=>{var r=n(98304);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},49882:(e,t,n)=>{var r=n(28792),o=n(90249);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},38761:(e,t,n)=>{var r=n(6840),o=n(98109);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},47353:(e,t,n)=>{var r=n(60241)(Object.getPrototypeOf,Object);e.exports=r},62107:(e,t,n)=>{var r=n(50857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},80633:(e,t,n)=>{var r=n(67552),o=n(30981),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},12680:(e,t,n)=>{var r=n(65067),o=n(47353),i=n(80633),a=n(30981),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},70940:(e,t,n)=>{var r=n(39515),o=n(10326),i=n(52760),a=n(2143),s=n(93215),l=n(53366),u=n(87035),c="[object Map]",d="[object Promise]",f="[object Set]",h="[object WeakMap]",p="[object DataView]",g=u(r),m=u(o),v=u(i),y=u(a),b=u(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=p||o&&w(new o)!=c||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=h)&&(w=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case g:return p;case m:return c;case v:return d;case y:return f;case b:return h}return t}),e.exports=w},98109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1369:(e,t,n)=>{var r=n(17297),o=n(79631),i=n(86152),a=n(39045),s=n(61158),l=n(33812);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,d=!1;++u<c;){var f=l(t[u]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&s(c)&&a(f,c)&&(i(e)||o(e))}},52118:(e,t,n)=>{var r=n(99191);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},96909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},98138:(e,t,n)=>{var r=n(99191),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},4174:(e,t,n)=>{var r=n(99191),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},7942:(e,t,n)=>{var r=n(99191);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},99917:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},8222:(e,t,n)=>{var r=n(79882),o=n(34727),i=n(96058),a=n(70169),s=n(6190);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},78725:(e,t,n)=>{var r=n(39413),o=n(47353),i=n(16001);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},95882:(e,t,n)=>{var r=n(50857),o=n(79631),i=n(86152),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},39045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},82406:(e,t,n)=>{var r=n(41225),o=n(67878),i=n(39045),a=n(29259);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},21401:(e,t,n)=>{var r=n(86152),o=n(4795),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},98304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},47394:(e,t,n)=>{var r,o=n(24019),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},16001:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},28792:(e,t,n)=>{var r=n(29259);e.exports=function(e){return e==e&&!r(e)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},21846:(e,t,n)=>{var r=n(22218),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},88028:(e,t,n)=>{var r=n(22218);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},72344:(e,t,n)=>{var r=n(22218);e.exports=function(e){return r(this.__data__,e)>-1}},94769:(e,t,n)=>{var r=n(22218);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},92411:(e,t,n)=>{var r=n(89612),o=n(80235),i=n(10326);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},36417:(e,t,n)=>{var r=n(27937);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},86928:(e,t,n)=>{var r=n(27937);e.exports=function(e){return r(this,e).get(e)}},79493:(e,t,n)=>{var r=n(27937);e.exports=function(e){return r(this,e).has(e)}},24150:(e,t,n)=>{var r=n(27937);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},75179:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},73477:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},77777:(e,t,n)=>{var r=n(30733);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},99191:(e,t,n)=>{var r=n(38761)(Object,"create");e.exports=r},94272:(e,t,n)=>{var r=n(60241)(Object.keys,Object);e.exports=r},62966:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4146:(e,t,n)=>{e=n.nmd(e);var r=n(51242),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},37157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},60241:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},43114:(e,t,n)=>{var r=n(49432),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},62721:(e,t,n)=>{var r=n(13324),o=n(39872);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},37772:(e,t,n)=>{var r=n(51242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},52434:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},52842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},52482:e=>{e.exports=function(e){return this.__data__.has(e)}},16909:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},75251:(e,t,n)=>{var r=n(86532),o=n(97787)(r);e.exports=o},97787:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},15243:(e,t,n)=>{var r=n(80235);e.exports=function(){this.__data__=new r,this.size=0}},72858:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},71418:(e,t,n)=>{var r=n(80235),o=n(10326),i=n(96738);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},54452:(e,t,n)=>{var r=n(77777),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},33812:(e,t,n)=>{var r=n(4795);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},87035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},52153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},60019:(e,t,n)=>{var r=n(60091),o=n(752),i=n(97263),a=n(67878),s=n(16001),l=n(90249),u=Object.prototype.hasOwnProperty,c=i((function(e,t){if(s(t)||a(t))o(t,l(t),e);else for(var n in t)u.call(t,n)&&r(e,n,t[n])}));e.exports=c},9850:(e,t,n)=>{var r=n(18874);e.exports=function(e){return r(e,5)}},86874:e=>{e.exports=function(e){return function(){return e}}},54073:(e,t,n)=>{var r=n(29259),o=n(61100),i=n(7642),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,h,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-p>=c}function w(){var e=o();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-h);return m?s(n,c-(e-p)):n}(e))}function x(e){return f=void 0,v&&l?y(e):(l=u=void 0,d)}function S(){var e=o(),n=b(e);if(l=arguments,u=this,h=e,n){if(void 0===f)return function(e){return p=e,f=setTimeout(w,t),g?y(e):d}(h);if(m)return clearTimeout(f),f=setTimeout(w,t),y(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},S.flush=function(){return void 0===f?d:x(o())},S}},79421:(e,t,n)=>{e.exports=n(59756)},41225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},35676:(e,t,n)=>{var r=n(62034);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},59756:(e,t,n)=>{var r=n(72517),o=n(24303),i=n(89419),a=n(86152);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},15253:(e,t,n)=>{var r=n(26548),o=n(89419);e.exports=function(e,t){return e&&r(e,o(t))}},72579:(e,t,n)=>{var r=n(13324);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},95041:(e,t,n)=>{var r=n(20187),o=n(1369);e.exports=function(e,t){return null!=e&&o(e,t,r)}},23059:e=>{e.exports=function(e){return e}},79631:(e,t,n)=>{var r=n(15183),o=n(15125),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},86152:e=>{var t=Array.isArray;e.exports=t},67878:(e,t,n)=>{var r=n(61049),o=n(61158);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},93746:(e,t,n)=>{var r=n(67878),o=n(15125);e.exports=function(e){return o(e)&&r(e)}},73226:(e,t,n)=>{e=n.nmd(e);var r=n(37772),o=n(36330),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},61049:(e,t,n)=>{var r=n(53366),o=n(29259);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4714:(e,t,n)=>{var r=n(74511),o=n(47826),i=n(4146),a=i&&i.isMap,s=a?o(a):r;e.exports=s},29259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},15125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},97030:(e,t,n)=>{var r=n(53366),o=n(47353),i=n(15125),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},43679:(e,t,n)=>{var r=n(8109),o=n(47826),i=n(4146),a=i&&i.isSet,s=a?o(a):r;e.exports=s},85505:(e,t,n)=>{var r=n(53366),o=n(86152),i=n(15125);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},4795:(e,t,n)=>{var r=n(53366),o=n(15125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},77598:(e,t,n)=>{var r=n(35522),o=n(47826),i=n(4146),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},90249:(e,t,n)=>{var r=n(1634),o=n(86411),i=n(67878);e.exports=function(e){return i(e)?r(e):o(e)}},18582:(e,t,n)=>{var r=n(1634),o=n(18390),i=n(67878);e.exports=function(e){return i(e)?r(e,!0):o(e)}},56974:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},76635:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,u=32,c=64,d=128,f=256,h=1/0,p=9007199254740991,g=NaN,m=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",u],["partialRight",c],["rearg",f]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",S="[object Error]",_="[object Function]",E="[object GeneratorFunction]",k="[object Map]",C="[object Number]",A="[object Object]",T="[object Promise]",O="[object RegExp]",M="[object Set]",R="[object String]",L="[object Symbol]",D="[object WeakMap]",P="[object ArrayBuffer]",j="[object DataView]",I="[object Float32Array]",$="[object Float64Array]",N="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",B="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",Z=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,K=RegExp(q.source),X=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Me="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['’]",Le="["+Ee+"]",De="["+Me+"]",Pe="["+ke+"]",je="\\d+",Ie="["+Ce+"]",$e="["+Ae+"]",Ne="[^"+Ee+Me+je+Ce+Ae+Te+"]",Fe="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ee+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Te+"]",Ue="\\u200d",Ze="(?:"+$e+"|"+Ne+")",Ve="(?:"+We+"|"+Ne+")",Ge="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Pe+"|"+Fe+")"+"?",Ke="["+Oe+"]?",Xe=Ke+Ye+("(?:"+Ue+"(?:"+[ze,Be,He].join("|")+")"+Ke+Ye+")*"),Qe="(?:"+[Ie,Be,He].join("|")+")"+Xe,Je="(?:"+[ze+Pe+"?",Pe,Be,He,Le].join("|")+")",et=RegExp(Re,"g"),tt=RegExp(Pe,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Je+Xe,"g"),rt=RegExp([We+"?"+$e+"+"+Ge+"(?="+[De,We,"$"].join("|")+")",Ve+"+"+qe+"(?="+[De,We+Ze,"$"].join("|")+")",We+"?"+Ze+"+"+Ge,We+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Qe].join("|"),"g"),ot=RegExp("["+Ue+Ee+ke+Oe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[I]=lt[$]=lt[N]=lt[F]=lt[z]=lt[B]=lt[H]=lt[W]=lt[U]=!0,lt[y]=lt[b]=lt[P]=lt[w]=lt[j]=lt[x]=lt[S]=lt[_]=lt[k]=lt[C]=lt[A]=lt[O]=lt[M]=lt[R]=lt[D]=!1;var ut={};ut[y]=ut[b]=ut[P]=ut[j]=ut[w]=ut[x]=ut[I]=ut[$]=ut[N]=ut[F]=ut[z]=ut[k]=ut[C]=ut[A]=ut[O]=ut[M]=ut[R]=ut[L]=ut[B]=ut[H]=ut[W]=ut[U]=!0,ut[S]=ut[_]=ut[D]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,ht="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,gt=ht||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===mt,bt=yt&&ht.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(e){}}(),xt=wt&&wt.isArrayBuffer,St=wt&&wt.isDate,_t=wt&&wt.isMap,Et=wt&&wt.isRegExp,kt=wt&&wt.isSet,Ct=wt&&wt.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Mt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Lt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Dt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Pt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function It(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function $t(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Nt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=Gt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ht(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Wt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ht(e,Zt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Zt(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Kt(e,t)/n:g}function Gt(e){return function(t){return null==t?o:t[e]}}function qt(e){return function(t){return null==e?o:e[t]}}function Yt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Kt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,mn(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function en(e,t){return jt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Wt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}var on=qt({À:"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"}),an=qt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ct[e]}function ln(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):zt(e)}function gn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=qt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function e(t){var n,r=(t=null==t?gt:yn.defaults(gt.Object(),t,yn.pick(gt,at))).Array,se=t.Date,Ee=t.Error,ke=t.Function,Ce=t.Math,Ae=t.Object,Te=t.RegExp,Oe=t.String,Me=t.TypeError,Re=r.prototype,Le=ke.prototype,De=Ae.prototype,Pe=t["__core-js_shared__"],je=Le.toString,Ie=De.hasOwnProperty,$e=0,Ne=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Fe=De.toString,ze=je.call(Ae),Be=gt._,He=Te("^"+je.call(Ie).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=yt?t.Buffer:o,Ue=t.Symbol,Ze=t.Uint8Array,Ve=We?We.allocUnsafe:o,Ge=cn(Ae.getPrototypeOf,Ae),qe=Ae.create,Ye=De.propertyIsEnumerable,Ke=Re.splice,Xe=Ue?Ue.isConcatSpreadable:o,Qe=Ue?Ue.iterator:o,Je=Ue?Ue.toStringTag:o,nt=function(){try{var e=hi(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==gt.clearTimeout&&t.clearTimeout,ct=se&&se.now!==gt.Date.now&&se.now,ht=t.setTimeout!==gt.setTimeout&&t.setTimeout,pt=Ce.ceil,mt=Ce.floor,vt=Ae.getOwnPropertySymbols,bt=We?We.isBuffer:o,wt=t.isFinite,zt=Re.join,qt=cn(Ae.keys,Ae),bn=Ce.max,wn=Ce.min,xn=se.now,Sn=t.parseInt,_n=Ce.random,En=Re.reverse,kn=hi(t,"DataView"),Cn=hi(t,"Map"),An=hi(t,"Promise"),Tn=hi(t,"Set"),On=hi(t,"WeakMap"),Mn=hi(Ae,"create"),Rn=On&&new On,Ln={},Dn=Fi(kn),Pn=Fi(Cn),jn=Fi(An),In=Fi(Tn),$n=Fi(On),Nn=Ue?Ue.prototype:o,Fn=Nn?Nn.valueOf:o,zn=Nn?Nn.toString:o;function Bn(e){if(ns(e)&&!Za(e)&&!(e instanceof Zn)){if(e instanceof Un)return e;if(Ie.call(e,"__wrapped__"))return zi(e)}return new Un(e)}var Hn=function(){function e(){}return function(t){if(!ts(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Wn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Xn(e,t){var n=Za(e),r=!n&&Ua(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&cs(e),a=n||r||o||i,s=a?Xt(e.length,Oe):[],l=s.length;for(var u in e)!t&&!Ie.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,l))||s.push(u);return s}function Qn(e){var t=e.length;return t?e[Yr(0,t-1)]:o}function Jn(e,t){return Ii(Ro(e),lr(t,0,e.length))}function er(e){return Ii(Ro(e))}function tr(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Ie.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Lo(t,Ls(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:As(e,t[n]);return a}function lr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ts(e))return e;var d=Za(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Ro(e,s)}else{var f=mi(e),h=f==_||f==E;if(Ya(e))return ko(e,l);if(f==A||f==y||h&&!i){if(s=u||h?{}:yi(e),!l)return u?function(e,t){return Lo(e,gi(e),t)}(e,function(e,t){return e&&Lo(t,Ds(t),e)}(s,e)):function(e,t){return Lo(e,pi(e),t)}(e,ir(s,e))}else{if(!ut[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case P:return Co(e);case w:case x:return new r(+e);case j:return function(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case $:case N:case F:case z:case B:case H:case W:case U:return Ao(e,n);case k:return new r;case C:case R:return new r(e);case O:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new r;case L:return o=e,Fn?Ae(Fn.call(o)):{}}var o}(e,f,l)}}a||(a=new Kn);var p=a.get(e);if(p)return p;a.set(e,s),ss(e)?e.forEach((function(r){s.add(ur(r,t,n,r,e,a))})):rs(e)&&e.forEach((function(r,o){s.set(o,ur(r,t,n,o,e,a))}));var g=d?o:(c?u?ai:ii:u?Ds:Ls)(e);return Ot(g||e,(function(r,o){g&&(r=e[o=r]),nr(s,o,ur(r,t,n,o,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ae(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function dr(e,t,n){if("function"!=typeof e)throw new Me(i);return Li((function(){e.apply(o,n)}),t)}function fr(e,t,n,r){var o=-1,i=Dt,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=jt(t,Jt(n))),r?(i=Pt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Yn(t));e:for(;++o<s;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else i(t,d,r)||l.push(c)}return l}Bn.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Wn.prototype,Bn.prototype.constructor=Bn,Un.prototype=Hn(Wn.prototype),Un.prototype.constructor=Un,Zn.prototype=Hn(Wn.prototype),Zn.prototype.constructor=Zn,Vn.prototype.clear=function(){this.__data__=Mn?Mn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Mn){var n=t[e];return n===a?o:n}return Ie.call(t,e)?t[e]:o},Vn.prototype.has=function(e){var t=this.__data__;return Mn?t[e]!==o:Ie.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mn&&t===o?a:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Gn.prototype.has=function(e){return rr(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Cn||Gn),string:new Vn}},qn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return di(this,e).get(e)},qn.prototype.has=function(e){return di(this,e).has(e)},qn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,a),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var hr=jo(xr),pr=jo(Sr,!0);function gr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s==s&&!us(s):n(s,l)))var l=s,u=a}return u}function vr(e,t){var n=[];return hr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=bi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?yr(s,t-1,n,r,o):It(o,s):r||(o[o.length]=s)}return o}var br=Io(),wr=Io(!0);function xr(e,t){return e&&br(e,t,Ls)}function Sr(e,t){return e&&wr(e,t,Ls)}function _r(e,t){return Lt(t,(function(t){return Qa(e[t])}))}function Er(e,t){for(var n=0,r=(t=xo(t,e)).length;null!=e&&n<r;)e=e[Ni(t[n++])];return n&&n==r?e:o}function kr(e,t,n){var r=t(e);return Za(e)?r:It(r,n(e))}function Cr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Ae(e)?function(e){var t=Ie.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var i=Fe.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Fe.call(e)}(e)}function Ar(e,t){return e>t}function Tr(e,t){return null!=e&&Ie.call(e,t)}function Or(e,t){return null!=e&&t in Ae(e)}function Mr(e,t,n){for(var i=n?Pt:Dt,a=e[0].length,s=e.length,l=s,u=r(s),c=1/0,d=[];l--;){var f=e[l];l&&t&&(f=jt(f,Jt(t))),c=wn(f.length,c),u[l]=!n&&(t||a>=120&&f.length>=120)?new Yn(l&&f):o}f=e[0];var h=-1,p=u[0];e:for(;++h<a&&d.length<c;){var g=f[h],m=t?t(g):g;if(g=n||0!==g?g:0,!(p?tn(p,m):i(d,m,n))){for(l=s;--l;){var v=u[l];if(!(v?tn(v,m):i(e[l],m,n)))continue e}p&&p.push(m),d.push(g)}}return d}function Rr(e,t,n){var r=null==(e=Oi(e,t=xo(t,e)))?e:e[Ni(Xi(t))];return null==r?o:At(r,e,n)}function Lr(e){return ns(e)&&Cr(e)==y}function Dr(e,t,n,r,i){return e===t||(null==e||null==t||!ns(e)&&!ns(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=Za(e),l=Za(t),u=s?b:mi(e),c=l?b:mi(t),d=(u=u==y?A:u)==A,f=(c=c==y?A:c)==A,h=u==c;if(h&&Ya(e)){if(!Ya(t))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new Kn),s||cs(e)?ri(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case P:return!(e.byteLength!=t.byteLength||!i(new Ze(e),new Ze(t)));case w:case x:case C:return Ba(+e,+t);case S:return e.name==t.name&&e.message==t.message;case O:case R:return e==t+"";case k:var s=un;case M:var l=1&r;if(s||(s=fn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=ri(s(e),s(t),r,o,i,a);return a.delete(e),c;case L:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,u,n,r,i,a);if(!(1&n)){var p=d&&Ie.call(e,"__wrapped__"),g=f&&Ie.call(t,"__wrapped__");if(p||g){var m=p?e.value():e,v=g?t.value():t;return a||(a=new Kn),i(m,v,n,r,a)}}if(!h)return!1;return a||(a=new Kn),function(e,t,n,r,i,a){var s=1&n,l=ii(e),u=l.length,c=ii(t),d=c.length;if(u!=d&&!s)return!1;var f=u;for(;f--;){var h=l[f];if(!(s?h in t:Ie.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var m=!0;a.set(e,t),a.set(t,e);var v=s;for(;++f<u;){var y=e[h=l[f]],b=t[h];if(r)var w=s?r(b,y,h,t,e,a):r(y,b,h,e,t,a);if(!(w===o?y===b||i(y,b,n,r,a):w)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var x=e.constructor,S=t.constructor;x==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,i,a)}(e,t,n,r,Dr,i))}function Pr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ae(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=n[i])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===o&&!(u in e))return!1}else{var f=new Kn;if(r)var h=r(c,d,u,e,t,f);if(!(h===o?Dr(d,c,3,r,f):h))return!1}}return!0}function jr(e){return!(!ts(e)||(t=e,Ne&&Ne in t))&&(Qa(e)?He:ye).test(Fi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?Za(e)?Hr(e[0],e[1]):Br(e):hl(e)}function $r(e){if(!ki(e))return qt(e);var t=[];for(var n in Ae(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e){if(!ts(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function zr(e,t){var n=-1,o=Ga(e)?r(e.length):[];return hr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Br(e){var t=fi(e);return 1==t.length&&t[0][2]?Ai(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}}function Hr(e,t){return Si(e)&&Ci(t)?Ai(Ni(e),t):function(n){var r=As(n,e);return r===o&&r===t?Ts(n,e):Dr(t,r,3)}}function Wr(e,t,n,r,i){e!==t&&br(t,(function(a,s){if(i||(i=new Kn),ts(a))!function(e,t,n,r,i,a,s){var l=Mi(e,n),u=Mi(t,n),c=s.get(u);if(c)return void tr(e,n,c);var d=a?a(l,u,n+"",e,t,s):o,f=d===o;if(f){var h=Za(u),p=!h&&Ya(u),g=!h&&!p&&cs(u);d=u,h||p||g?Za(l)?d=l:qa(l)?d=Ro(l):p?(f=!1,d=ko(u,!0)):g?(f=!1,d=Ao(u,!0)):d=[]:is(u)||Ua(u)?(d=l,Ua(l)?d=ys(l):ts(l)&&!Qa(l)||(d=yi(u))):f=!1}f&&(s.set(u,d),i(d,u,r,a,s),s.delete(u));tr(e,n,d)}(e,t,s,n,Wr,r,i);else{var l=r?r(Mi(e,s),a,s+"",e,t,i):o;l===o&&(l=a),tr(e,s,l)}}),Ds)}function Ur(e,t){var n=e.length;if(n)return wi(t+=t<0?n:0,n)?e[t]:o}function Zr(e,t,n){t=t.length?jt(t,(function(e){return Za(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=jt(t,Jt(ci()));var o=zr(e,(function(e,n,o){var i=jt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=To(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Er(e,a);n(s,a)&&eo(i,xo(a,e),s)}return i}function Gr(e,t,n,r){var o=r?Ut:Wt,i=-1,a=t.length,s=e;for(e===t&&(t=Ro(t)),n&&(s=jt(e,Jt(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Ke.call(e,o,1):ho(e,o)}}return e}function Yr(e,t){return e+mt(_n()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Di(Ti(e,t,ol),e+"")}function Qr(e){return Qn(Bs(e))}function Jr(e,t){var n=Bs(e);return Ii(n,lr(t,0,n.length))}function eo(e,t,n,r){if(!ts(e))return e;for(var i=-1,a=(t=xo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var u=Ni(t[i]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var d=l[u];(c=r?r(d,u,l):o)===o&&(c=ts(d)?d:wi(t[i+1])?[]:{})}nr(l,u,c),l=l[u]}return e}var to=Rn?function(e,t){return Rn.set(e,t),e}:ol,no=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Ii(Bs(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function io(e,t){var n;return hr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!us(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return so(e,t,ol,n)}function so(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,u=us(t),c=t===o;i<a;){var d=mt((i+a)/2),f=n(e[d]),h=f!==o,p=null===f,g=f==f,m=us(f);if(s)var v=r||g;else v=c?g&&(r||h):l?g&&h&&(r||!p):u?g&&h&&!p&&(r||!m):!p&&!m&&(r?f<=t:f<t);v?i=d+1:a=d}return wn(a,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:us(e)?g:+e}function co(e){if("string"==typeof e)return e;if(Za(e))return jt(e,co)+"";if(us(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=Dt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Pt;else if(i>=200){var u=t?null:Xo(e);if(u)return fn(u);a=!1,o=tn,l=new Yn}else l=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function ho(e,t){return null==(e=Oi(e,t=xo(t,e)))||delete e[Ni(Xi(t))]}function po(e,t,n,r){return eo(e,t,n(Er(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof Zn&&(n=n.value()),$t(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function vo(e,t,n){var o=e.length;if(o<2)return o?fo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=fr(a[i]||s,e[l],t,n));return fo(yr(a,1),t,n)}function yo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function bo(e){return qa(e)?e:[]}function wo(e){return"function"==typeof e?e:ol}function xo(e,t){return Za(e)?e:Si(e,t)?[e]:$i(bs(e))}var So=Xr;function _o(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var Eo=ot||function(e){return gt.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Co(e){var t=new e.constructor(e.byteLength);return new Ze(t).set(new Ze(e)),t}function Ao(e,t){var n=t?Co(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=us(e),s=t!==o,l=null===t,u=t==t,c=us(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!u)return-1}return 0}function Oo(e,t,n,o){for(var i=-1,a=e.length,s=n.length,l=-1,u=t.length,c=bn(a-s,0),d=r(u+c),f=!o;++l<u;)d[l]=t[l];for(;++i<s;)(f||i<a)&&(d[n[i]]=e[i]);for(;c--;)d[l++]=e[i++];return d}function Mo(e,t,n,o){for(var i=-1,a=e.length,s=-1,l=n.length,u=-1,c=t.length,d=bn(a-l,0),f=r(d+c),h=!o;++i<d;)f[i]=e[i];for(var p=i;++u<c;)f[p+u]=t[u];for(;++s<l;)(h||i<a)&&(f[p+n[s]]=e[i++]);return f}function Ro(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Lo(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=r?r(n[l],e[l],l,n,e):o;u===o&&(u=e[l]),i?ar(n,l,u):nr(n,l,u)}return n}function Do(e,t){return function(n,r){var o=Za(n)?Tt:or,i=t?t():{};return o(n,e,ci(r,2),i)}}function Po(e){return Xr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&xi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ae(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ga(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ae(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ae(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function $o(e){return function(t){var n=ln(t=bs(t))?gn(t):o,r=n?n[0]:t.charAt(0),i=n?_o(n,1).join(""):t.slice(1);return r[e]()+i}}function No(e){return function(t){return $t(Qs(Us(t).replace(et,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Hn(e.prototype),r=e.apply(n,t);return ts(r)?r:n}}function zo(e){return function(t,n,r){var i=Ae(t);if(!Ga(t)){var a=ci(n,3);t=Ls(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Bo(e){return oi((function(t){var n=t.length,r=n,a=Un.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Me(i);if(a&&!l&&"wrapper"==li(s))var l=new Un([],!0)}for(r=l?r:n;++r<n;){var u=li(s=t[r]),c="wrapper"==u?si(s):o;l=c&&_i(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[li(c[0])].apply(l,c[3]):1==s.length&&_i(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Za(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Ho(e,t,n,i,a,s,l,u,c,f){var h=t&d,p=1&t,g=2&t,m=24&t,v=512&t,y=g?o:Fo(e);return function d(){for(var b=arguments.length,w=r(b),x=b;x--;)w[x]=arguments[x];if(m)var S=ui(d),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,S);if(i&&(w=Oo(w,i,a,m)),s&&(w=Mo(w,s,l,m)),b-=_,m&&b<f){var E=dn(w,S);return Yo(e,t,Ho,d.placeholder,n,w,E,u,c,f-b)}var k=p?n:this,C=g?k[e]:e;return b=w.length,u?w=function(e,t){var n=e.length,r=wn(t.length,n),i=Ro(e);for(;r--;){var a=t[r];e[r]=wi(a,n)?i[a]:o}return e}(w,u):v&&b>1&&w.reverse(),h&&c<b&&(w.length=c),this&&this!==gt&&this instanceof d&&(C=y||Fo(C)),C.apply(k,w)}}function Wo(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=co(n),r=co(r)):(n=uo(n),r=uo(r)),i=e(n,r)}return i}}function Zo(e){return oi((function(t){return t=jt(t,Jt(ci())),Xr((function(n){var r=this;return e(t,(function(e){return At(e,r,n)}))}))}))}function Vo(e,t){var n=(t=t===o?" ":co(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,pt(e/pn(t)));return ln(t)?_o(gn(r),0,e).join(""):r.slice(0,e)}function Go(e){return function(t,n,i){return i&&"number"!=typeof i&&xi(t,n,i)&&(n=i=o),t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n,o){for(var i=-1,a=bn(pt((t-e)/(n||1)),0),s=r(a);a--;)s[o?a:++i]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:ps(i),e)}}function qo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=vs(t),n=vs(n)),e(t,n)}}function Yo(e,t,n,r,i,a,s,l,d,f){var h=8&t;t|=h?u:c,4&(t&=~(h?c:u))||(t&=-4);var p=[e,t,i,h?a:o,h?s:o,h?o:a,h?o:s,l,d,f],g=n.apply(o,p);return _i(e)&&Ri(g,p),g.placeholder=r,Pi(g,e,t)}function Ko(e){var t=Ce[e];return function(e,n){if(e=vs(e),(n=null==n?0:wn(gs(n),292))&&wt(e)){var r=(bs(e)+"e").split("e");return+((r=(bs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=Tn&&1/fn(new Tn([,-0]))[1]==h?function(e){return new Tn(e)}:ul;function Qo(e){return function(t){var n=mi(t);return n==k?un(t):n==M?hn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,n,a,h,p,g,m){var v=2&t;if(!v&&"function"!=typeof e)throw new Me(i);var y=a?a.length:0;if(y||(t&=-97,a=h=o),g=g===o?g:bn(gs(g),0),m=m===o?m:gs(m),y-=h?h.length:0,t&c){var b=a,w=h;a=h=o}var x=v?o:si(e),S=[e,t,n,a,h,b,w,p,g,m];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?Oo(u,l,t[4]):l,e[4]=u?dn(e[3],s):t[4]}(l=t[5])&&(u=e[5],e[5]=u?Mo(u,l,t[6]):l,e[6]=u?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,x),e=S[0],t=S[1],n=S[2],a=S[3],h=S[4],!(m=S[9]=S[9]===o?v?0:e.length:bn(S[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==l?function(e,t,n){var i=Fo(e);return function a(){for(var s=arguments.length,l=r(s),u=s,c=ui(a);u--;)l[u]=arguments[u];var d=s<3&&l[0]!==c&&l[s-1]!==c?[]:dn(l,c);return(s-=d.length)<n?Yo(e,t,Ho,a.placeholder,o,l,d,o,o,n-s):At(this&&this!==gt&&this instanceof a?i:e,this,l)}}(e,t,m):t!=u&&33!=t||h.length?Ho.apply(o,S):function(e,t,n,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,d=r(c+l),f=this&&this!==gt&&this instanceof t?a:e;++u<c;)d[u]=o[u];for(;l--;)d[u++]=arguments[++s];return At(f,i?n:this,d)}}(e,t,n,a);else var _=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==gt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Pi((x?to:Ri)(_,S),e,t)}function ei(e,t,n,r){return e===o||Ba(e,De[n])&&!Ie.call(r,n)?t:e}function ti(e,t,n,r,i,a){return ts(e)&&ts(t)&&(a.set(t,e),Wr(e,t,o,ti,a),a.delete(t)),e}function ni(e){return is(e)?o:e}function ri(e,t,n,r,i,a){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],m=t[f];if(r)var v=s?r(m,g,f,t,e,a):r(g,m,f,e,t,a);if(v!==o){if(v)continue;h=!1;break}if(p){if(!Ft(t,(function(e,t){if(!tn(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==m&&!i(g,m,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function oi(e){return Di(Ti(e,o,Vi),e+"")}function ii(e){return kr(e,Ls,pi)}function ai(e){return kr(e,Ds,gi)}var si=Rn?function(e){return Rn.get(e)}:ul;function li(e){for(var t=e.name+"",n=Ln[t],r=Ie.call(Ln,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Ie.call(Bn,"placeholder")?Bn:e).placeholder}function ci(){var e=Bn.iteratee||il;return e=e===il?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function fi(e){for(var t=Ls(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ci(o)]}return t}function hi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return jr(n)?n:o}var pi=vt?function(e){return null==e?[]:(e=Ae(e),Lt(vt(e),(function(t){return Ye.call(e,t)})))}:ml,gi=vt?function(e){for(var t=[];e;)It(t,pi(e)),e=Ge(e);return t}:ml,mi=Cr;function vi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Ni(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&es(o)&&wi(a,o)&&(Za(e)||Ua(e))}function yi(e){return"function"!=typeof e.constructor||ki(e)?{}:Hn(Ge(e))}function bi(e){return Za(e)||Ua(e)||!!(Xe&&e&&e[Xe])}function wi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!ts(n))return!1;var r=typeof t;return!!("number"==r?Ga(n)&&wi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function Si(e,t){if(Za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!us(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ae(t))}function _i(e){var t=li(e),n=Bn[t];if("function"!=typeof n||!(t in Zn.prototype))return!1;if(e===n)return!0;var r=si(n);return!!r&&e===r[0]}(kn&&mi(new kn(new ArrayBuffer(1)))!=j||Cn&&mi(new Cn)!=k||An&&mi(An.resolve())!=T||Tn&&mi(new Tn)!=M||On&&mi(new On)!=D)&&(mi=function(e){var t=Cr(e),n=t==A?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Dn:return j;case Pn:return k;case jn:return T;case In:return M;case $n:return D}return t});var Ei=Pe?Qa:vl;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Ci(e){return e==e&&!ts(e)}function Ai(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ae(n)))}}function Ti(e,t,n){return t=bn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=bn(o.length-t,0),s=r(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=r(t+1);++i<t;)l[i]=o[i];return l[t]=n(s),At(e,this,l)}}function Oi(e,t){return t.length<2?e:Er(e,oo(t,0,-1))}function Mi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ri=ji(to),Li=ht||function(e,t){return gt.setTimeout(e,t)},Di=ji(no);function Pi(e,t,n){var r=t+"";return Di(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(v,(function(n){var r="_."+n[0];t&n[1]&&!Dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function ji(e){var t=0,n=0;return function(){var r=xn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ii(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Yr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var $i=function(e){var t=ja(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(he,"$1"):n||e)})),t}));function Ni(e){if("string"==typeof e||us(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return je.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function zi(e){if(e instanceof Zn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=Ro(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Xr((function(e,t){return qa(e)?fr(e,yr(t,1,qa,!0)):[]})),Hi=Xr((function(e,t){var n=Xi(t);return qa(n)&&(n=o),qa(e)?fr(e,yr(t,1,qa,!0),ci(n,2)):[]})),Wi=Xr((function(e,t){var n=Xi(t);return qa(n)&&(n=o),qa(e)?fr(e,yr(t,1,qa,!0),o,n):[]}));function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=bn(r+o,0)),Ht(e,ci(t,3),o)}function Zi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=gs(n),i=n<0?bn(r+i,0):wn(i,r-1)),Ht(e,ci(t,3),i,!0)}function Vi(e){return(null==e?0:e.length)?yr(e,1):[]}function Gi(e){return e&&e.length?e[0]:o}var qi=Xr((function(e){var t=jt(e,bo);return t.length&&t[0]===e[0]?Mr(t):[]})),Yi=Xr((function(e){var t=Xi(e),n=jt(e,bo);return t===Xi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Mr(n,ci(t,2)):[]})),Ki=Xr((function(e){var t=Xi(e),n=jt(e,bo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Mr(n,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Qi=Xr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Gr(e,t):e}var ea=oi((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return qr(e,jt(t,(function(e){return wi(e,n)?+e:e})).sort(To)),r}));function ta(e){return null==e?e:En.call(e)}var na=Xr((function(e){return fo(yr(e,1,qa,!0))})),ra=Xr((function(e){var t=Xi(e);return qa(t)&&(t=o),fo(yr(e,1,qa,!0),ci(t,2))})),oa=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,fo(yr(e,1,qa,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=Lt(e,(function(e){if(qa(e))return t=bn(e.length,t),!0})),Xt(t,(function(t){return jt(e,Gt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:jt(n,(function(e){return At(t,o,e)}))}var sa=Xr((function(e,t){return qa(e)?fr(e,t):[]})),la=Xr((function(e){return vo(Lt(e,qa))})),ua=Xr((function(e){var t=Xi(e);return qa(t)&&(t=o),vo(Lt(e,qa),ci(t,2))})),ca=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:o,vo(Lt(e,qa),o,t)})),da=Xr(ia);var fa=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function ha(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=oi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Zn&&wi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Un(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Do((function(e,t,n){Ie.call(e,n)?++e[n]:ar(e,n,1)}));var va=zo(Ui),ya=zo(Zi);function ba(e,t){return(Za(e)?Ot:hr)(e,ci(t,3))}function wa(e,t){return(Za(e)?Mt:pr)(e,ci(t,3))}var xa=Do((function(e,t,n){Ie.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Sa=Xr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ga(e)?r(e.length):[];return hr(e,(function(e){a[++o]=i?At(t,e,n):Rr(e,t,n)})),a})),_a=Do((function(e,t,n){ar(e,n,t)}));function Ea(e,t){return(Za(e)?jt:zr)(e,ci(t,3))}var ka=Do((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ca=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,yr(t,1),[])})),Aa=ct||function(){return gt.Date.now()};function Ta(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,d,o,o,o,o,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new Me(i);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ma=Xr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ui(Ma));r|=u}return Jo(e,r,t,n,o)})),Ra=Xr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ui(Ra));r|=u}return Jo(t,r,e,n,o)}));function La(e,t,n){var r,a,s,l,u,c,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new Me(i);function g(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function m(e){var n=e-c;return c===o||n>=t||n<0||h&&e-d>=s}function v(){var e=Aa();if(m(e))return y(e);u=Li(v,function(e){var n=t-(e-c);return h?wn(n,s-(e-d)):n}(e))}function y(e){return u=o,p&&r?g(e):(r=a=o,l)}function b(){var e=Aa(),n=m(e);if(r=arguments,a=this,c=e,n){if(u===o)return function(e){return d=e,u=Li(v,t),f?g(e):l}(c);if(h)return Eo(u),u=Li(v,t),g(c)}return u===o&&(u=Li(v,t)),l}return t=vs(t)||0,ts(n)&&(f=!!n.leading,s=(h="maxWait"in n)?bn(vs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),b.cancel=function(){u!==o&&Eo(u),d=0,r=c=a=u=o},b.flush=function(){return u===o?l:y(Aa())},b}var Da=Xr((function(e,t){return dr(e,1,t)})),Pa=Xr((function(e,t,n){return dr(e,vs(t)||0,n)}));function ja(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ja.Cache||qn),n}function Ia(e){if("function"!=typeof e)throw new Me(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ja.Cache=qn;var $a=So((function(e,t){var n=(t=1==t.length&&Za(t[0])?jt(t[0],Jt(ci())):jt(yr(t,1),Jt(ci()))).length;return Xr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return At(e,this,r)}))})),Na=Xr((function(e,t){var n=dn(t,ui(Na));return Jo(e,u,o,t,n)})),Fa=Xr((function(e,t){var n=dn(t,ui(Fa));return Jo(e,c,o,t,n)})),za=oi((function(e,t){return Jo(e,f,o,o,o,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Ha=qo(Ar),Wa=qo((function(e,t){return e>=t})),Ua=Lr(function(){return arguments}())?Lr:function(e){return ns(e)&&Ie.call(e,"callee")&&!Ye.call(e,"callee")},Za=r.isArray,Va=xt?Jt(xt):function(e){return ns(e)&&Cr(e)==P};function Ga(e){return null!=e&&es(e.length)&&!Qa(e)}function qa(e){return ns(e)&&Ga(e)}var Ya=bt||vl,Ka=St?Jt(St):function(e){return ns(e)&&Cr(e)==x};function Xa(e){if(!ns(e))return!1;var t=Cr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!is(e)}function Qa(e){if(!ts(e))return!1;var t=Cr(e);return t==_||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==gs(e)}function es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ts(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ns(e){return null!=e&&"object"==typeof e}var rs=_t?Jt(_t):function(e){return ns(e)&&mi(e)==k};function os(e){return"number"==typeof e||ns(e)&&Cr(e)==C}function is(e){if(!ns(e)||Cr(e)!=A)return!1;var t=Ge(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==ze}var as=Et?Jt(Et):function(e){return ns(e)&&Cr(e)==O};var ss=kt?Jt(kt):function(e){return ns(e)&&mi(e)==M};function ls(e){return"string"==typeof e||!Za(e)&&ns(e)&&Cr(e)==R}function us(e){return"symbol"==typeof e||ns(e)&&Cr(e)==L}var cs=Ct?Jt(Ct):function(e){return ns(e)&&es(e.length)&&!!lt[Cr(e)]};var ds=qo(Fr),fs=qo((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ga(e))return ls(e)?gn(e):Ro(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=mi(e);return(t==k?un:t==M?fn:Bs)(e)}function ps(e){return e?(e=vs(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gs(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?lr(gs(e),0,m):0}function vs(e){if("number"==typeof e)return e;if(us(e))return g;if(ts(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ts(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ve.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):me.test(e)?g:+e}function ys(e){return Lo(e,Ds(e))}function bs(e){return null==e?"":co(e)}var ws=Po((function(e,t){if(ki(t)||Ga(t))Lo(t,Ls(t),e);else for(var n in t)Ie.call(t,n)&&nr(e,n,t[n])})),xs=Po((function(e,t){Lo(t,Ds(t),e)})),Ss=Po((function(e,t,n,r){Lo(t,Ds(t),e,r)})),_s=Po((function(e,t,n,r){Lo(t,Ls(t),e,r)})),Es=oi(sr);var ks=Xr((function(e,t){e=Ae(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ds(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===o||Ba(d,De[c])&&!Ie.call(e,c))&&(e[c]=a[c])}return e})),Cs=Xr((function(e){return e.push(o,ti),At(js,o,e)}));function As(e,t,n){var r=null==e?o:Er(e,t);return r===o?n:r}function Ts(e,t){return null!=e&&vi(e,t,Or)}var Os=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),tl(ol)),Ms=Wo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]}),ci),Rs=Xr(Rr);function Ls(e){return Ga(e)?Xn(e):$r(e)}function Ds(e){return Ga(e)?Xn(e,!0):Nr(e)}var Ps=Po((function(e,t,n){Wr(e,t,n)})),js=Po((function(e,t,n,r){Wr(e,t,n,r)})),Is=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Lo(e,ai(e),n),r&&(n=ur(n,7,ni));for(var o=t.length;o--;)ho(n,t[o]);return n}));var $s=oi((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ts(e,n)}))}(e,t)}));function Ns(e,t){if(null==e)return{};var n=jt(ai(e),(function(e){return[e]}));return t=ci(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Qo(Ls),zs=Qo(Ds);function Bs(e){return null==e?[]:en(e,Ls(e))}var Hs=No((function(e,t,n){return t=t.toLowerCase(),e+(n?Ws(t):t)}));function Ws(e){return Xs(bs(e).toLowerCase())}function Us(e){return(e=bs(e))&&e.replace(xe,on).replace(tt,"")}var Zs=No((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Vs=No((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Gs=$o("toLowerCase");var qs=No((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ys=No((function(e,t,n){return e+(n?" ":"")+Xs(t)}));var Ks=No((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=$o("toUpperCase");function Qs(e,t,n){return e=bs(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Js=Xr((function(e,t){try{return At(e,o,t)}catch(e){return Xa(e)?e:new Ee(e)}})),el=oi((function(e,t){return Ot(t,(function(t){t=Ni(t),ar(e,t,Ma(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=Bo(),rl=Bo(!0);function ol(e){return e}function il(e){return Ir("function"==typeof e?e:ur(e,1))}var al=Xr((function(e,t){return function(n){return Rr(n,e,t)}})),sl=Xr((function(e,t){return function(n){return Rr(e,n,t)}}));function ll(e,t,n){var r=Ls(t),o=_r(t,r);null!=n||ts(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Ls(t)));var i=!(ts(n)&&"chain"in n&&!n.chain),a=Qa(e);return Ot(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ro(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})})),e}function ul(){}var cl=Zo(jt),dl=Zo(Rt),fl=Zo(Ft);function hl(e){return Si(e)?Gt(Ni(e)):function(e){return function(t){return Er(t,e)}}(e)}var pl=Go(),gl=Go(!0);function ml(){return[]}function vl(){return!1}var yl=Uo((function(e,t){return e+t}),0),bl=Ko("ceil"),wl=Uo((function(e,t){return e/t}),1),xl=Ko("floor");var Sl,_l=Uo((function(e,t){return e*t}),1),El=Ko("round"),kl=Uo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Me(i);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ta,Bn.assign=ws,Bn.assignIn=xs,Bn.assignInWith=Ss,Bn.assignWith=_s,Bn.at=Es,Bn.before=Oa,Bn.bind=Ma,Bn.bindAll=el,Bn.bindKey=Ra,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Za(e)?e:[e]},Bn.chain=ha,Bn.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:bn(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=r(pt(i/t));a<i;)l[s++]=oo(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return It(Za(n)?Ro(n):[n],yr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Me(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(At(o[0],this,n))return At(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Ls(e);return function(n){return cr(n,e,t)}}(ur(e,1))},Bn.constant=tl,Bn.countBy=ma,Bn.create=function(e,t){var n=Hn(e);return null==t?n:ir(n,t)},Bn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Jo(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=La,Bn.defaults=ks,Bn.defaultsDeep=Cs,Bn.defer=Da,Bn.delay=Pa,Bn.difference=Bi,Bn.differenceBy=Hi,Bn.differenceWith=Wi,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:gs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:gs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&xi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=gs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:gs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Za(e)?Lt:vr)(e,ci(t,3))},Bn.flatMap=function(e,t){return yr(Ea(e,t),1)},Bn.flatMapDeep=function(e,t){return yr(Ea(e,t),h)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:gs(n),yr(Ea(e,t),n)},Bn.flatten=Vi,Bn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,h):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:gs(t)):[]},Bn.flip=function(e){return Jo(e,512)},Bn.flow=nl,Bn.flowRight=rl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:_r(e,Ls(e))},Bn.functionsIn=function(e){return null==e?[]:_r(e,Ds(e))},Bn.groupBy=xa,Bn.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},Bn.intersection=qi,Bn.intersectionBy=Yi,Bn.intersectionWith=Ki,Bn.invert=Os,Bn.invertBy=Ms,Bn.invokeMap=Sa,Bn.iteratee=il,Bn.keyBy=_a,Bn.keys=Ls,Bn.keysIn=Ds,Bn.map=Ea,Bn.mapKeys=function(e,t){var n={};return t=ci(t,3),xr(e,(function(e,r,o){ar(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=ci(t,3),xr(e,(function(e,r,o){ar(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(ur(e,1))},Bn.matchesProperty=function(e,t){return Hr(e,ur(t,1))},Bn.memoize=ja,Bn.merge=Ps,Bn.mergeWith=js,Bn.method=al,Bn.methodOf=sl,Bn.mixin=ll,Bn.negate=Ia,Bn.nthArg=function(e){return e=gs(e),Xr((function(t){return Ur(t,e)}))},Bn.omit=Is,Bn.omitBy=function(e,t){return Ns(e,Ia(ci(t)))},Bn.once=function(e){return Oa(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Za(t)||(t=null==t?[]:[t]),Za(n=r?o:n)||(n=null==n?[]:[n]),Zr(e,t,n))},Bn.over=cl,Bn.overArgs=$a,Bn.overEvery=dl,Bn.overSome=fl,Bn.partial=Na,Bn.partialRight=Fa,Bn.partition=ka,Bn.pick=$s,Bn.pickBy=Ns,Bn.property=hl,Bn.propertyOf=function(e){return function(t){return null==e?o:Er(e,t)}},Bn.pull=Qi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,ci(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gr(e,t,o,n):e},Bn.pullAt=ea,Bn.range=pl,Bn.rangeRight=gl,Bn.rearg=za,Bn.reject=function(e,t){return(Za(e)?Lt:vr)(e,Ia(ci(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ci(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return qr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Me(i);return Xr(e,t=t===o?t:gs(t))},Bn.reverse=ta,Bn.sampleSize=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:gs(t),(Za(e)?Jn:Jr)(e,t)},Bn.set=function(e,t,n){return null==e?e:eo(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:eo(e,t,n,r)},Bn.shuffle=function(e){return(Za(e)?er:ro)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&xi(e,t,n)?(t=0,n=r):(t=null==t?0:gs(t),n=n===o?r:gs(n)),oo(e,t,n)):[]},Bn.sortBy=Ca,Bn.sortedUniq=function(e){return e&&e.length?lo(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ci(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&xi(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=co(t))&&ln(e)?_o(gn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Me(i);return t=null==t?0:bn(gs(t),0),Xr((function(n){var r=n[t],o=_o(n,0,t);return r&&It(o,r),At(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:gs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:gs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?go(e,ci(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Me(i);return ts(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),La(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=pa,Bn.toArray=hs,Bn.toPairs=Fs,Bn.toPairsIn=zs,Bn.toPath=function(e){return Za(e)?jt(e,Ni):us(e)?[e]:Ro($i(bs(e)))},Bn.toPlainObject=ys,Bn.transform=function(e,t,n){var r=Za(e),o=r||Ya(e)||cs(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ts(e)&&Qa(i)?Hn(Ge(e)):{}}return(o?Ot:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Ta(e,1)},Bn.union=na,Bn.unionBy=ra,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?fo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fo(e,o,t):[]},Bn.unset=function(e,t){return null==e||ho(e,t)},Bn.unzip=ia,Bn.unzipWith=aa,Bn.update=function(e,t,n){return null==e?e:po(e,t,wo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:po(e,t,wo(n),r)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:en(e,Ds(e))},Bn.without=sa,Bn.words=Qs,Bn.wrap=function(e,t){return Na(wo(t),e)},Bn.xor=la,Bn.xorBy=ua,Bn.xorWith=ca,Bn.zip=da,Bn.zipObject=function(e,t){return yo(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Bn.zipWith=fa,Bn.entries=Fs,Bn.entriesIn=zs,Bn.extend=xs,Bn.extendWith=Ss,ll(Bn,Bn),Bn.add=yl,Bn.attempt=Js,Bn.camelCase=Hs,Bn.capitalize=Ws,Bn.ceil=bl,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=vs(n))==n?n:0),t!==o&&(t=(t=vs(t))==t?t:0),lr(vs(e),t,n)},Bn.clone=function(e){return ur(e,4)},Bn.cloneDeep=function(e){return ur(e,5)},Bn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||cr(e,t,Ls(t))},Bn.deburr=Us,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=wl,Bn.endsWith=function(e,t,n){e=bs(e),t=co(t);var r=e.length,i=n=n===o?r:lr(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=bs(e))&&X.test(e)?e.replace(Y,an):e},Bn.escapeRegExp=function(e){return(e=bs(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Za(e)?Rt:gr;return n&&xi(e,t,n)&&(t=o),r(e,ci(t,3))},Bn.find=va,Bn.findIndex=Ui,Bn.findKey=function(e,t){return Bt(e,ci(t,3),xr)},Bn.findLast=ya,Bn.findLastIndex=Zi,Bn.findLastKey=function(e,t){return Bt(e,ci(t,3),Sr)},Bn.floor=xl,Bn.forEach=ba,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:br(e,ci(t,3),Ds)},Bn.forInRight=function(e,t){return null==e?e:wr(e,ci(t,3),Ds)},Bn.forOwn=function(e,t){return e&&xr(e,ci(t,3))},Bn.forOwnRight=function(e,t){return e&&Sr(e,ci(t,3))},Bn.get=As,Bn.gt=Ha,Bn.gte=Wa,Bn.has=function(e,t){return null!=e&&vi(e,t,Tr)},Bn.hasIn=Ts,Bn.head=Gi,Bn.identity=ol,Bn.includes=function(e,t,n,r){e=Ga(e)?e:Bs(e),n=n&&!r?gs(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),ls(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gs(n);return o<0&&(o=bn(r+o,0)),Wt(e,t,o)},Bn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=vs(e),t,n)},Bn.invoke=Rs,Bn.isArguments=Ua,Bn.isArray=Za,Bn.isArrayBuffer=Va,Bn.isArrayLike=Ga,Bn.isArrayLikeObject=qa,Bn.isBoolean=function(e){return!0===e||!1===e||ns(e)&&Cr(e)==w},Bn.isBuffer=Ya,Bn.isDate=Ka,Bn.isElement=function(e){return ns(e)&&1===e.nodeType&&!is(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ga(e)&&(Za(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||cs(e)||Ua(e)))return!e.length;var t=mi(e);if(t==k||t==M)return!e.size;if(ki(e))return!$r(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Dr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Dr(e,t,o,n):!!r},Bn.isError=Xa,Bn.isFinite=function(e){return"number"==typeof e&&wt(e)},Bn.isFunction=Qa,Bn.isInteger=Ja,Bn.isLength=es,Bn.isMap=rs,Bn.isMatch=function(e,t){return e===t||Pr(e,t,fi(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Pr(e,t,fi(t),n)},Bn.isNaN=function(e){return os(e)&&e!=+e},Bn.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=os,Bn.isObject=ts,Bn.isObjectLike=ns,Bn.isPlainObject=is,Bn.isRegExp=as,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=p},Bn.isSet=ss,Bn.isString=ls,Bn.isSymbol=us,Bn.isTypedArray=cs,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return ns(e)&&mi(e)==D},Bn.isWeakSet=function(e){return ns(e)&&"[object WeakSet]"==Cr(e)},Bn.join=function(e,t){return null==e?"":zt.call(e,t)},Bn.kebabCase=Zs,Bn.last=Xi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=gs(n))<0?bn(r+i,0):wn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ht(e,Zt,i,!0)},Bn.lowerCase=Vs,Bn.lowerFirst=Gs,Bn.lt=ds,Bn.lte=fs,Bn.max=function(e){return e&&e.length?mr(e,ol,Ar):o},Bn.maxBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Ar):o},Bn.mean=function(e){return Vt(e,ol)},Bn.meanBy=function(e,t){return Vt(e,ci(t,2))},Bn.min=function(e){return e&&e.length?mr(e,ol,Fr):o},Bn.minBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Fr):o},Bn.stubArray=ml,Bn.stubFalse=vl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=_l,Bn.nth=function(e,t){return e&&e.length?Ur(e,gs(t)):o},Bn.noConflict=function(){return gt._===this&&(gt._=Be),this},Bn.noop=ul,Bn.now=Aa,Bn.pad=function(e,t,n){e=bs(e);var r=(t=gs(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(mt(o),n)+e+Vo(pt(o),n)},Bn.padEnd=function(e,t,n){e=bs(e);var r=(t=gs(t))?pn(e):0;return t&&r<t?e+Vo(t-r,n):e},Bn.padStart=function(e,t,n){e=bs(e);var r=(t=gs(t))?pn(e):0;return t&&r<t?Vo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Sn(bs(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return wn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Yr(e,t)},Bn.reduce=function(e,t,n){var r=Za(e)?$t:Yt,o=arguments.length<3;return r(e,ci(t,4),n,o,hr)},Bn.reduceRight=function(e,t,n){var r=Za(e)?Nt:Yt,o=arguments.length<3;return r(e,ci(t,4),n,o,pr)},Bn.repeat=function(e,t,n){return t=(n?xi(e,t,n):t===o)?1:gs(t),Kr(bs(e),t)},Bn.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ni(t[r])];a===o&&(r=i,a=n),e=Qa(a)?a.call(e):a}return e},Bn.round=El,Bn.runInContext=e,Bn.sample=function(e){return(Za(e)?Qn:Qr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ga(e))return ls(e)?pn(e):e.length;var t=mi(e);return t==k||t==M?e.size:$r(e).length},Bn.snakeCase=qs,Bn.some=function(e,t,n){var r=Za(e)?Ft:io;return n&&xi(e,t,n)&&(t=o),r(e,ci(t,3))},Bn.sortedIndex=function(e,t){return ao(e,t)},Bn.sortedIndexBy=function(e,t,n){return so(e,t,ci(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ao(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ao(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return so(e,t,ci(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ao(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Ys,Bn.startsWith=function(e,t,n){return e=bs(e),n=null==n?0:lr(gs(n),0,e.length),t=co(t),e.slice(n,n+t.length)==t},Bn.subtract=kl,Bn.sum=function(e){return e&&e.length?Kt(e,ol):0},Bn.sumBy=function(e,t){return e&&e.length?Kt(e,ci(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&xi(e,t,n)&&(t=o),e=bs(e),t=Ss({},t,r,ei);var i,a,s=Ss({},t.imports,r.imports,ei),l=Ls(s),u=en(s,l),c=0,d=t.interpolate||Se,f="__p += '",h=Te((t.escape||Se).source+"|"+d.source+"|"+(d===ee?pe:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),p="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(h,(function(t,n,r,o,s,l){return r||(r=o),f+=e.slice(c,l).replace(_e,sn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var g=Ie.call(t,"variable")&&t.variable;if(g){if(fe.test(g))throw new Ee("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(Z,""):f).replace(V,"$1").replace(G,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Js((function(){return ke(l,p+"return "+f).apply(o,u)}));if(m.source=f,Xa(m))throw m;return m},Bn.times=function(e,t){if((e=gs(e))<1||e>p)return[];var n=m,r=wn(e,m);t=ci(t),e-=m;for(var o=Xt(r,t);++n<e;)t(n);return o},Bn.toFinite=ps,Bn.toInteger=gs,Bn.toLength=ms,Bn.toLower=function(e){return bs(e).toLowerCase()},Bn.toNumber=vs,Bn.toSafeInteger=function(e){return e?lr(gs(e),-9007199254740991,p):0===e?e:0},Bn.toString=bs,Bn.toUpper=function(e){return bs(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=bs(e))&&(n||t===o))return Qt(e);if(!e||!(t=co(t)))return e;var r=gn(e),i=gn(t);return _o(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.slice(0,mn(e)+1);if(!e||!(t=co(t)))return e;var r=gn(e);return _o(r,0,rn(r,gn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=co(t)))return e;var r=gn(e);return _o(r,nn(r,gn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ts(t)){var i="separator"in t?t.separator:i;n="length"in t?gs(t.length):n,r="omission"in t?co(t.omission):r}var a=(e=bs(e)).length;if(ln(e)){var s=gn(e);a=s.length}if(n>=a)return e;var l=n-pn(r);if(l<1)return r;var u=s?_o(s,0,l).join(""):e.slice(0,l);if(i===o)return u+r;if(s&&(l+=u.length-l),as(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=Te(i.source,bs(ge.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;u=u.slice(0,f===o?l:f)}}else if(e.indexOf(co(i),l)!=l){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},Bn.unescape=function(e){return(e=bs(e))&&K.test(e)?e.replace(q,vn):e},Bn.uniqueId=function(e){var t=++$e;return bs(e)+t},Bn.upperCase=Ks,Bn.upperFirst=Xs,Bn.each=ba,Bn.eachRight=wa,Bn.first=Gi,ll(Bn,(Sl={},xr(Bn,(function(e,t){Ie.call(Bn.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Bn.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Ot(["drop","take"],(function(e,t){Zn.prototype[e]=function(n){n=n===o?1:bn(gs(n),0);var r=this.__filtered__&&!t?new Zn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Zn.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Zn.prototype[e]=function(){return this.__filtered__?new Zn(this):this[n](1)}})),Zn.prototype.compact=function(){return this.filter(ol)},Zn.prototype.find=function(e){return this.filter(e).head()},Zn.prototype.findLast=function(e){return this.reverse().find(e)},Zn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Zn(this):this.map((function(n){return Rr(n,e,t)}))})),Zn.prototype.reject=function(e){return this.filter(Ia(ci(e)))},Zn.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Zn.prototype.toArray=function(){return this.take(m)},xr(Zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Zn,u=s[0],c=l||Za(t),d=function(e){var t=i.apply(Bn,It([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,g=l&&!h;if(!a&&c){t=g?t:new Zn(this);var m=e.apply(t,s);return m.__actions__.push({func:pa,args:[d],thisArg:o}),new Un(m,f)}return p&&g?e.apply(this,s):(m=this.thru(d),p?r?m.value()[0]:m.value():m)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Re[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Za(o)?o:[],e)}return this[n]((function(n){return t.apply(Za(n)?n:[],e)}))}})),xr(Zn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Ie.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Ho(o,2).name]=[{name:"wrapper",func:o}],Zn.prototype.clone=function(){var e=new Zn(this.__wrapped__);return e.__actions__=Ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ro(this.__views__),e},Zn.prototype.reverse=function(){if(this.__filtered__){var e=new Zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,h=wn(l,this.__takeCount__);if(!n||!r&&o==l&&h==l)return mo(e,this.__actions__);var p=[];e:for(;l--&&f<h;){for(var g=-1,m=e[u+=t];++g<d;){var v=c[g],y=v.iteratee,b=v.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}p[f++]=m}return p},Bn.prototype.at=ga,Bn.prototype.chain=function(){return ha(this)},Bn.prototype.commit=function(){return new Un(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Wn;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Zn){var t=e;return this.__actions__.length&&(t=new Zn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:o}),new Un(t,this.__chain__)}return this.thru(ta)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Qe&&(Bn.prototype[Qe]=function(){return this}),Bn}();gt._=yn,(r=function(){return yn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},16760:(e,t,n)=>{var r=n(50343),o=n(68286),i=n(93401),a=n(86152);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},30733:(e,t,n)=>{var r=n(96738);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},98537:(e,t,n)=>{var r=n(84565),o=n(97263)((function(e,t,n){r(e,t,n)}));e.exports=o},61100:(e,t,n)=>{var r=n(37772);e.exports=function(){return r.Date.now()}},17620:(e,t,n)=>{var r=n(50343),o=n(18874),i=n(29078),a=n(17297),s=n(752),l=n(48642),u=n(29097),c=n(76939),d=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var d=t.length;d--;)i(n,t[d]);return n}));e.exports=d},65798:(e,t,n)=>{var r=n(20256),o=n(82952),i=n(21401),a=n(33812);e.exports=function(e){return i(e)?r(a(e)):o(e)}},30981:e=>{e.exports=function(){return[]}},36330:e=>{e.exports=function(){return!1}},12436:(e,t,n)=>{var r=n(54073),o=n(29259);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7642:(e,t,n)=>{var r=n(51704),o=n(29259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},63329:(e,t,n)=>{var r=n(752),o=n(18582);e.exports=function(e){return r(e,o(e))}},66188:(e,t,n)=>{var r=n(1054);e.exports=function(e){return null==e?"":r(e)}},30986:(e,t,n)=>{var r,o,i;window,o=[n(47392),n(40172)],void 0===(i="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,i=o/r,a=r-o%r;i=Math[a&&a<1?"round":"floor"](i),this.cols=Math.max(i,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),o={x:this.columnWidth*r.col,y:r.y},i=r.y+e.size.outerHeight,a=n+r.col,s=r.col;s<a;s++)this.colYs[s]=i;return o},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),o=this._getOption("originLeft")?r.left:r.right,i=o+n.outerWidth,a=Math.floor(o/this.columnWidth);a=Math.max(0,a);var s=Math.floor(i/this.columnWidth);s-=i%this.columnWidth?0:1,s=Math.min(this.cols-1,s);for(var l=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=a;u<=s;u++)this.colYs[u]=Math.max(l,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,o):r)||(e.exports=i)},68762:(e,t,n)=>{var r,o,i,a,s;r=n(19562),o=n(5792).utf8,i=n(13335),a=n(5792).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),l=8*e.length,u=1732584193,c=-271733879,d=-1732584194,f=271733878,h=0;h<n.length;h++)n[h]=16711935&(n[h]<<8|n[h]>>>24)|4278255360&(n[h]<<24|n[h]>>>8);n[l>>>5]|=128<<l%32,n[14+(l+64>>>9<<4)]=l;var p=s._ff,g=s._gg,m=s._hh,v=s._ii;for(h=0;h<n.length;h+=16){var y=u,b=c,w=d,x=f;u=p(u,c,d,f,n[h+0],7,-680876936),f=p(f,u,c,d,n[h+1],12,-389564586),d=p(d,f,u,c,n[h+2],17,606105819),c=p(c,d,f,u,n[h+3],22,-1044525330),u=p(u,c,d,f,n[h+4],7,-176418897),f=p(f,u,c,d,n[h+5],12,1200080426),d=p(d,f,u,c,n[h+6],17,-1473231341),c=p(c,d,f,u,n[h+7],22,-45705983),u=p(u,c,d,f,n[h+8],7,1770035416),f=p(f,u,c,d,n[h+9],12,-1958414417),d=p(d,f,u,c,n[h+10],17,-42063),c=p(c,d,f,u,n[h+11],22,-1990404162),u=p(u,c,d,f,n[h+12],7,1804603682),f=p(f,u,c,d,n[h+13],12,-40341101),d=p(d,f,u,c,n[h+14],17,-1502002290),u=g(u,c=p(c,d,f,u,n[h+15],22,1236535329),d,f,n[h+1],5,-165796510),f=g(f,u,c,d,n[h+6],9,-1069501632),d=g(d,f,u,c,n[h+11],14,643717713),c=g(c,d,f,u,n[h+0],20,-373897302),u=g(u,c,d,f,n[h+5],5,-701558691),f=g(f,u,c,d,n[h+10],9,38016083),d=g(d,f,u,c,n[h+15],14,-660478335),c=g(c,d,f,u,n[h+4],20,-405537848),u=g(u,c,d,f,n[h+9],5,568446438),f=g(f,u,c,d,n[h+14],9,-1019803690),d=g(d,f,u,c,n[h+3],14,-187363961),c=g(c,d,f,u,n[h+8],20,1163531501),u=g(u,c,d,f,n[h+13],5,-1444681467),f=g(f,u,c,d,n[h+2],9,-51403784),d=g(d,f,u,c,n[h+7],14,1735328473),u=m(u,c=g(c,d,f,u,n[h+12],20,-1926607734),d,f,n[h+5],4,-378558),f=m(f,u,c,d,n[h+8],11,-2022574463),d=m(d,f,u,c,n[h+11],16,1839030562),c=m(c,d,f,u,n[h+14],23,-35309556),u=m(u,c,d,f,n[h+1],4,-1530992060),f=m(f,u,c,d,n[h+4],11,1272893353),d=m(d,f,u,c,n[h+7],16,-155497632),c=m(c,d,f,u,n[h+10],23,-1094730640),u=m(u,c,d,f,n[h+13],4,681279174),f=m(f,u,c,d,n[h+0],11,-358537222),d=m(d,f,u,c,n[h+3],16,-722521979),c=m(c,d,f,u,n[h+6],23,76029189),u=m(u,c,d,f,n[h+9],4,-640364487),f=m(f,u,c,d,n[h+12],11,-421815835),d=m(d,f,u,c,n[h+15],16,530742520),u=v(u,c=m(c,d,f,u,n[h+2],23,-995338651),d,f,n[h+0],6,-198630844),f=v(f,u,c,d,n[h+7],10,1126891415),d=v(d,f,u,c,n[h+14],15,-1416354905),c=v(c,d,f,u,n[h+5],21,-57434055),u=v(u,c,d,f,n[h+12],6,1700485571),f=v(f,u,c,d,n[h+3],10,-1894986606),d=v(d,f,u,c,n[h+10],15,-1051523),c=v(c,d,f,u,n[h+1],21,-2054922799),u=v(u,c,d,f,n[h+8],6,1873313359),f=v(f,u,c,d,n[h+15],10,-30611744),d=v(d,f,u,c,n[h+6],15,-1560198380),c=v(c,d,f,u,n[h+13],21,1309151649),u=v(u,c,d,f,n[h+4],6,-145523070),f=v(f,u,c,d,n[h+11],10,-1120210379),d=v(d,f,u,c,n[h+2],15,718787259),c=v(c,d,f,u,n[h+9],21,-343485551),u=u+y>>>0,c=c+b>>>0,d=d+w>>>0,f=f+x>>>0}return r.endian([u,c,d,f])})._ff=function(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._gg=function(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._hh=function(e,t,n,r,o,i,a){var s=e+(t^n^r)+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._ii=function(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+(o>>>0)+a;return(s<<i|s>>>32-i)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},27495:(e,t,n)=>{var r;!function(o,i,a){if(o){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},d={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},f=1;f<20;++f)l[111+f]="f"+f;for(f=0;f<=9;++f)l[f+96]=f.toString();b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){return this.bind.call(this,e,(function(){}),t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(y(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},b.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},b.init=function(){var e=b(i);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),o.Mousetrap=b,e.exports&&(e.exports=b),void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}function h(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function p(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:u[e.which]?u[e.which]:String.fromCharCode(e.which).toLowerCase()}function g(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function m(e,t,n){return n||(n=function(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function v(e,t){var n,r,o,i=[];for(n=function(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus")).split("+")}(e),o=0;o<n.length;++o)r=n[o],d[r]&&(r=d[r]),t&&"keypress"!=t&&c[r]&&(r=c[r],i.push("shift")),g(r)&&i.push(r);return{key:r,modifiers:i,action:t=m(r,i,t)}}function y(e,t){return null!==e&&e!==i&&(e===t||y(e.parentNode,t))}function b(e){var t=this;if(e=e||i,!(t instanceof b))return new b(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},o=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function u(e,n,o,i,a,s){var l,u,c,d,f=[],h=o.type;if(!t._callbacks[e])return[];for("keyup"==h&&g(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(u=t._callbacks[e][l],(i||!u.seq||r[u.seq]==u.level)&&h==u.action&&("keypress"==h&&!o.metaKey&&!o.ctrlKey||(c=n,d=u.modifiers,c.sort().join(",")===d.sort().join(",")))){var p=!i&&u.combo==a,m=i&&u.seq==i&&u.level==s;(p||m)&&t._callbacks[e].splice(l,1),f.push(u)}return f}function c(e,n,r,o){t.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(n),function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}(n))}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var n=p(e);n&&("keyup"!=e.type||o!==n?t.handleKey(n,function(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}(e),e):o=!1)}function f(e,t,i,a){function u(t){return function(){s=t,++r[e],clearTimeout(n),n=setTimeout(l,1e3)}}function d(t){c(i,t,e),"keyup"!==a&&(o=p(t)),setTimeout(l,10)}r[e]=0;for(var f=0;f<t.length;++f){var h=f+1===t.length?d:u(a||v(t[f+1]).action);m(t[f],h,a,e,f)}}function m(e,n,r,o,i){t._directMap[e+":"+r]=n;var a,s=(e=e.replace(/\s+/g," ")).split(" ");s.length>1?f(e,s,n,r):(a=v(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],u(a.key,a.modifiers,{type:a.action},o,e,i),t._callbacks[a.key][o?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:o,level:i,combo:e}))}t._handleKey=function(e,t,n){var r,o=u(e,t,n),i={},d=0,f=!1;for(r=0;r<o.length;++r)o[r].seq&&(d=Math.max(d,o[r].level));for(r=0;r<o.length;++r)if(o[r].seq){if(o[r].level!=d)continue;f=!0,i[o[r].seq]=1,c(o[r].callback,n,o[r].combo,o[r].seq)}else f||c(o[r].callback,n,o[r].combo);var h="keypress"==n.type&&a;n.type!=s||g(e)||h||l(i),a=f&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)m(e[r],t,n)},h(e,"keypress",d),h(e,"keydown",d),h(e,"keyup",d)}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null)},37320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))n.call(i,u)&&(s[u]=i[u]);if(t){a=t(i);for(var c=0;c<a.length;c++)r.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s}},81647:(e,t,n)=>{var r,o,i;window,o=[n(62584),n(40172)],void 0===(i="function"==typeof(r=function(e,t){"use strict";function n(e){for(var t in e)return!1;return!0}var r=document.documentElement.style,o="string"==typeof r.transition?"transition":"WebkitTransition",i="string"==typeof r.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],s={transform:i,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var u=l.prototype=Object.create(e.prototype);function c(e){return e.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}))}u.constructor=l,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.getSize=function(){this.size=t(this.element)},u.css=function(e){var t=this.element.style;for(var n in e)t[s[n]||n]=e[n]},u.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left":"right"],o=e[n?"top":"bottom"],i=parseFloat(r),a=parseFloat(o),s=this.layout.size;-1!=r.indexOf("%")&&(i=i/100*s.width),-1!=o.indexOf("%")&&(a=a/100*s.height),i=isNaN(i)?0:i,a=isNaN(a)?0:a,i-=t?s.paddingLeft:s.paddingRight,a-=n?s.paddingTop:s.paddingBottom,this.position.x=i,this.position.y=a},u.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),o=n?"paddingLeft":"paddingRight",i=n?"left":"right",a=n?"right":"left",s=this.position.x+e[o];t[i]=this.getXValue(s),t[a]="";var l=r?"paddingTop":"paddingBottom",u=r?"top":"bottom",c=r?"bottom":"top",d=this.position.y+e[l];t[u]=this.getYValue(d),t[c]="",this.css(t),this.emitEvent("layout",[this])},u.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},u.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},u._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,o=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!o||this.isTransitioning){var i=e-n,a=t-r,s={};s.transform=this.getTranslate(i,a),this.transition({to:s,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},u.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},u.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},u._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},u.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var d="opacity,"+c(i);u.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:d,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},u.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},u.onotransitionend=function(e){this.ontransitionend(e)};var f={"-webkit-transform":"transform"};u.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,r=f[e.propertyName]||e.propertyName;delete t.ingProperties[r],n(t.ingProperties)&&this.disableTransition(),r in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[r]),r in t.onEnd&&(t.onEnd[r].call(this),delete t.onEnd[r]),this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},u._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var h={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(h)},u.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},u.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?r.apply(t,o):r)||(e.exports=i)},47392:(e,t,n)=>{var r,o;!function(i,a){"use strict";r=[n(62584),n(40172),n(63966),n(81647)],o=function(e,t,n,r){return function(e,t,n,r,o){var i=e.console,a=e.jQuery,s=function(){},l=0,u={};function c(e,t){var n=r.getQueryElement(e);if(n){this.element=n,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var o=++l;this.element.outlayerGUID=o,u[o]=this,this._create(),this._getOption("initLayout")&&this.layout()}else i&&i.error("Bad element for "+this.constructor.namespace+": "+(n||e))}c.namespace="outlayer",c.Item=o,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=c.prototype;function f(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(d,t.prototype),d.option=function(e){r.extend(this.options,e)},d._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],o=0;o<t.length;o++){var i=new n(t[o],this);r.push(i)}return r},d._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},d.getItemElements=function(){return this.items.map((function(e){return e.element}))},d.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=n(this.element)},d._getMeasurement=function(e,t){var r,o=this.options[e];o?("string"==typeof o?r=this.element.querySelector(o):o instanceof HTMLElement&&(r=o),this[e]=r?n(r)[t]:o):this[e]=0},d.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},d._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},d._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},d.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=p(e),this.stagger;this.stagger=0},d._positionItem=function(e,t,n,r,o){r?e.goTo(t,n):(e.stagger(o*this.stagger),e.moveTo(t,n))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},d._getContainerSize=s,d._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},d._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var o=t.length;if(t&&o){var i=0;t.forEach((function(t){t.once(e,a)}))}else r();function a(){++i==o&&r()}},d.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),a)if(this.$element=this.$element||a(this.element),t){var o=a.Event(t);o.type=e,this.$element.trigger(o,n)}else this.$element.trigger(e,n)},d.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},d.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},d.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},d.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},d._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},d._manageStamp=s,d._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,o=n(e);return{left:t.left-r.left-o.marginLeft,top:t.top-r.top-o.marginTop,right:r.right-t.right-o.marginRight,bottom:r.bottom-t.bottom-o.marginBottom}},d.handleEvent=r.handleEvent,d.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},r.debounceMethod(c,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},d.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},d.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},d.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},d.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},d.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},d.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},d.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},d.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},d.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},d.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},d.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&u[t]},c.create=function(e,t){var n=f(c);return n.defaults=r.extend({},c.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},c.compatOptions),n.namespace=e,n.data=c.data,n.Item=f(o),r.htmlInit(n,e),a&&a.bridget&&a.bridget(e,n),n};var h={ms:1,s:1e3};function p(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];return n.length?(n=parseFloat(n))*(h[r]||1):0}return c.Item=o,c}(i,e,t,n,r)}.apply(t,r),void 0===o||(e.exports=o)}(window)},9057:function(e){(function(){var t,n,r,o,i,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},58453:e=>{var t=null,n=["Webkit","Moz","O","ms"];e.exports=function(e){t||(t=document.createElement("div"));var r=t.style;if(e in r)return e;for(var o=e.charAt(0).toUpperCase()+e.slice(1),i=n.length;i>=0;i--){var a=n[i]+o;if(a in r)return a}return!1}},68262:(e,t,n)=>{"use strict";var r=n(23586);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},13980:(e,t,n)=>{e.exports=n(68262)()},23586:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},23493:(e,t,n)=>{for(var r=n(9057),o="undefined"==typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],l=o["cancel"+a]||o["cancelRequest"+a],u=0;!s&&u<i.length;u++)s=o[i[u]+"Request"+a],l=o[i[u]+"Cancel"+a]||o[i[u]+"CancelRequest"+a];if(!s||!l){var c=0,d=0,f=[];s=function(e){if(0===f.length){var t=r(),n=Math.max(0,16.666666666666668-(t-c));c=n+t,setTimeout((function(){var e=f.slice(0);f.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}},84527:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>yo});var r=n(7896),o=n(68079),i=n(56666),a=n(33028),s=n(96234),l=n(31461);function u(e,t){if(null==e)return{};var n,r,o=(0,l.Z)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=n(86522),d=n(2784),f=n.t(d,2);function h(e){var t=d.useRef();t.current=e;var n=d.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(r))}),[]);return n}function p(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var g=p()?d.useLayoutEffect:d.useEffect,m=function(e,t){var n=d.useRef(!0);g((function(){return e(n.current)}),t),g((function(){return n.current=!1,function(){n.current=!0}}),[])},v=function(e,t){m((function(t){if(!t)return e()}),t)};const y=m;function b(e){var t=d.useRef(!1),n=d.useState(e),r=(0,s.Z)(n,2),o=r[0],i=r[1];return d.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[o,function(e,n){n&&t.current||i(e)}]}function w(e){return void 0!==e}function x(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=b((function(){return w(o)?o:w(r)?"function"==typeof r?r():r:"function"==typeof e?e():e})),u=(0,s.Z)(l,2),c=u[0],d=u[1],f=void 0!==o?o:c,p=a?a(f):f,g=h(i),m=b([f]),y=(0,s.Z)(m,2),x=y[0],S=y[1];return v((function(){var e=x[0];c!==e&&g(c,e)}),[x]),v((function(){w(o)||d(o)}),[o]),[p,h((function(e,t){d(e,t),S([f],t)}))]}var S={},_=[];function E(e,t){}function k(e,t){}function C(e,t,n){t||S[n]||(e(!1,n),S[n]=!0)}function A(e,t){C(E,e,t)}A.preMessage=function(e){_.push(e)},A.resetWarned=function(){S={}},A.noteOnce=function(e,t){C(k,e,t)};const T=A;var O=n(72779),M=n.n(O);const R=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))};var L={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=L.F1&&t<=L.F12)return!1;switch(t){case L.ALT:case L.CAPS_LOCK:case L.CONTEXT_MENU:case L.CTRL:case L.DOWN:case L.END:case L.ESC:case L.HOME:case L.INSERT:case L.LEFT:case L.MAC_FF_META:case L.META:case L.NUMLOCK:case L.NUM_CENTER:case L.PAGE_DOWN:case L.PAGE_UP:case L.PAUSE:case L.PRINT_SCREEN:case L.RIGHT:case L.SHIFT:case L.UP:case L.WIN_KEY:case L.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=L.ZERO&&e<=L.NINE)return!0;if(e>=L.NUM_ZERO&&e<=L.NUM_MULTIPLY)return!0;if(e>=L.A&&e<=L.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case L.SPACE:case L.QUESTION_MARK:case L.NUM_PLUS:case L.NUM_MINUS:case L.NUM_PERIOD:case L.NUM_DIVISION:case L.SEMICOLON:case L.DASH:case L.EQUALS:case L.COMMA:case L.PERIOD:case L.SLASH:case L.APOSTROPHE:case L.SINGLE_QUOTE:case L.OPEN_SQUARE_BRACKET:case L.BACKSLASH:case L.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const D=L;var P=n(71818);function j(e,t,n){var r=d.useRef({});return"value"in r.current&&!n(r.current.condition,t)||(r.current.value=e(),r.current.condition=t),r.current.value}function I(e,t){"function"==typeof e?e(t):"object"===(0,c.Z)(e)&&e&&"current"in e&&(e.current=t)}function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return e}));return r.length<=1?r[0]:function(e){t.forEach((function(t){I(t,e)}))}}function N(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return j((function(){return $.apply(void 0,t)}),t,(function(e,t){return e.length!==t.length||e.every((function(e,n){return e!==t[n]}))}))}function F(e){var t,n,r=(0,P.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render)}const z=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,a=e.onClick,s=e.children;return t="function"==typeof r?r(o):r,d.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==t?t:d.createElement("span",{className:M()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},s))};var B=d.createContext(null);function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=d.useRef(null),n=d.useRef(null);return d.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){t.current=null}),e)}]}var W="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n    charSet checked classID className colSpan cols content contentEditable contextMenu\n    controls coords crossOrigin data dateTime default defer dir disabled download draggable\n    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n    mediaGroup method min minLength multiple muted name noValidate nonce open\n    optimum pattern placeholder poster preload radioGroup readOnly rel required\n    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n    summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function U(e,t){return 0===e.indexOf(t)}function Z(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,a.Z)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||U(n,"aria-"))||t.data&&U(n,"data-")||t.attr&&W.includes(n))&&(r[n]=e[n])})),r}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return d.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(V(e)):(0,P.isFragment)(e)&&e.props?n=n.concat(V(e.props.children,t)):n.push(e))})),n}var G=n(28316);function q(e){return e instanceof HTMLElement||e instanceof SVGElement}function Y(e){return q(e)?e:e instanceof d.Component?G.findDOMNode(e):null}var K=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),X="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Q=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),J="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Q):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var ee=["top","right","bottom","left","width","height","size","weight"],te="undefined"!=typeof MutationObserver,ne=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){J(i)}function s(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=e}return s}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){X&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),te?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){X&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;ee.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),re=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},oe=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Q},ie=de(0,0,0,0);function ae(e){return parseFloat(e)||0}function se(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+ae(e["border-"+n+"-width"])}),0)}function le(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ie;var r=oe(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=ae(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,s=ae(r.width),l=ae(r.height);if("border-box"===r.boxSizing&&(Math.round(s+i)!==t&&(s-=se(r,"left","right")+i),Math.round(l+a)!==n&&(l-=se(r,"top","bottom")+a)),!function(e){return e===oe(e).document.documentElement}(e)){var u=Math.round(s+i)-t,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return de(o.left,o.top,s,l)}var ue="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof oe(e).SVGGraphicsElement}:function(e){return e instanceof oe(e).SVGElement&&"function"==typeof e.getBBox};function ce(e){return X?ue(e)?function(e){var t=e.getBBox();return de(0,0,t.width,t.height)}(e):le(e):ie}function de(e,t,n,r){return{x:e,y:t,width:n,height:r}}var fe=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=de(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ce(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),he=function(e,t){var n,r,o,i,a,s,l,u=(r=(n=t).x,o=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),re(l,{x:r,y:o,width:i,height:a,top:o,right:r+i,bottom:a+o,left:r}),l);re(this,{target:e,contentRect:u})},pe=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new K,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof oe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new fe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof oe(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new he(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ge="undefined"!=typeof WeakMap?new WeakMap:new K,me=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ne.getInstance(),r=new pe(t,n,this);ge.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){me.prototype[e]=function(){var t;return(t=ge.get(this))[e].apply(t,arguments)}}));const ve=void 0!==Q.ResizeObserver?Q.ResizeObserver:me;var ye=new Map;var be=new ve((function(e){e.forEach((function(e){var t,n=e.target;null===(t=ye.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var we=n(9249),xe=n(87371),Se=n(45754),_e=n(95058);var Ee=n(11987);function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,_e.Z)(e);if(t){var o=(0,_e.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,Ee.Z)(this,n)}}var Ce=function(e){(0,Se.Z)(n,e);var t=ke(n);function n(){return(0,we.Z)(this,n),t.apply(this,arguments)}return(0,xe.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component),Ae=d.createContext(null);function Te(e,t){var n=e.children,r=e.disabled,o=d.useRef(null),i=d.useRef(null),s=d.useContext(Ae),l="function"==typeof n,u=l?n(o):n,c=d.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&d.isValidElement(u)&&F(u),h=f?u.ref:null,p=d.useMemo((function(){return $(h,o)}),[h,o]),g=function(){return Y(o.current)||Y(i.current)};d.useImperativeHandle(t,(function(){return g()}));var m=d.useRef(e);m.current=e;var v=d.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,l=o.height,u=e.offsetWidth,d=e.offsetHeight,f=Math.floor(i),h=Math.floor(l);if(c.current.width!==f||c.current.height!==h||c.current.offsetWidth!==u||c.current.offsetHeight!==d){var p={width:f,height:h,offsetWidth:u,offsetHeight:d};c.current=p;var g=u===Math.round(i)?i:u,v=d===Math.round(l)?l:d,y=(0,a.Z)((0,a.Z)({},p),{},{offsetWidth:g,offsetHeight:v});null==s||s(y,e,r),n&&Promise.resolve().then((function(){n(y,e)}))}}),[]);return d.useEffect((function(){var e,t,n=g();return n&&!r&&(e=n,t=v,ye.has(e)||(ye.set(e,new Set),be.observe(e)),ye.get(e).add(t)),function(){return function(e,t){ye.has(e)&&(ye.get(e).delete(t),ye.get(e).size||(be.unobserve(e),ye.delete(e)))}(n,v)}}),[o.current,r]),d.createElement(Ce,{ref:i},f?d.cloneElement(u,{ref:p}):u)}const Oe=d.forwardRef(Te);function Me(e,t){var n=e.children;return("function"==typeof n?[n]:V(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return d.createElement(Oe,(0,r.Z)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Re=d.forwardRef(Me);Re.Collection=function(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),o=d.useRef([]),i=d.useContext(Ae),a=d.useCallback((function(e,t,a){r.current+=1;var s=r.current;o.current.push({size:e,element:t,data:a}),Promise.resolve().then((function(){s===r.current&&(null==n||n(o.current),o.current=[])})),null==i||i(e,t,a)}),[n,i]);return d.createElement(Ae.Provider,{value:a},t)};const Le=Re;var De=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Pe=void 0;function je(e,t){var n=e.prefixCls,o=e.invalidate,i=e.item,s=e.renderItem,l=e.responsive,c=e.responsiveDisabled,f=e.registerSize,h=e.itemKey,p=e.className,g=e.style,m=e.children,v=e.display,y=e.order,b=e.component,w=void 0===b?"div":b,x=u(e,De),S=l&&!v;function _(e){f(h,e)}d.useEffect((function(){return function(){_(null)}}),[]);var E,k=s&&i!==Pe?s(i):m;o||(E={opacity:S?0:1,height:S?0:Pe,overflowY:S?"hidden":Pe,order:l?y:Pe,pointerEvents:S?"none":Pe,position:S?"absolute":Pe});var C={};S&&(C["aria-hidden"]=!0);var A=d.createElement(w,(0,r.Z)({className:M()(!o&&n,p),style:(0,a.Z)((0,a.Z)({},E),g)},C,x,{ref:t}),k);return l&&(A=d.createElement(Le,{onResize:function(e){_(e.offsetWidth)},disabled:c},A)),A}var Ie=d.forwardRef(je);Ie.displayName="Item";const $e=Ie;var Ne=function(e){return+setTimeout(e,16)},Fe=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(Ne=function(e){return window.requestAnimationFrame(e)},Fe=function(e){return window.cancelAnimationFrame(e)});var ze=0,Be=new Map;function He(e){Be.delete(e)}var We=function(e){var t=ze+=1;return function n(r){if(0===r)He(t),e();else{var o=Ne((function(){n(r-1)}));Be.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};We.cancel=function(e){var t=Be.get(e);return He(t),Fe(t)};const Ue=We;function Ze(){var e=d.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"==typeof MessageChannel)Ue(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}((function(){(0,G.unstable_batchedUpdates)((function(){e.current.forEach((function(e){e()})),e.current=null}))}))),e.current.push(t)}}function Ve(e,t){var n=d.useState(t),r=(0,s.Z)(n,2),o=r[0],i=r[1];return[o,h((function(t){e((function(){i(t)}))}))]}var Ge=d.createContext(null),qe=["component"],Ye=["className"],Ke=["className"],Xe=function(e,t){var n=d.useContext(Ge);if(!n){var o=e.component,i=void 0===o?"div":o,a=u(e,qe);return d.createElement(i,(0,r.Z)({},a,{ref:t}))}var s=n.className,l=u(n,Ye),c=e.className,f=u(e,Ke);return d.createElement(Ge.Provider,{value:null},d.createElement($e,(0,r.Z)({ref:t,className:M()(s,c)},l,f)))},Qe=d.forwardRef(Xe);Qe.displayName="RawItem";const Je=Qe;var et=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],tt="responsive",nt="invalidate";function rt(e){return"+ ".concat(e.length," ...")}function ot(e,t){var n=e.prefixCls,o=void 0===n?"rc-overflow":n,i=e.data,l=void 0===i?[]:i,c=e.renderItem,f=e.renderRawItem,h=e.itemKey,p=e.itemWidth,g=void 0===p?10:p,m=e.ssr,v=e.style,b=e.className,w=e.maxCount,x=e.renderRest,S=e.renderRawRest,_=e.suffix,E=e.component,k=void 0===E?"div":E,C=e.itemComponent,A=e.onVisibleChange,T=u(e,et),O="full"===m,R=Ze(),L=Ve(R,null),D=(0,s.Z)(L,2),P=D[0],j=D[1],I=P||0,$=Ve(R,new Map),N=(0,s.Z)($,2),F=N[0],z=N[1],B=Ve(R,0),H=(0,s.Z)(B,2),W=H[0],U=H[1],Z=Ve(R,0),V=(0,s.Z)(Z,2),G=V[0],q=V[1],Y=Ve(R,0),K=(0,s.Z)(Y,2),X=K[0],Q=K[1],J=(0,d.useState)(null),ee=(0,s.Z)(J,2),te=ee[0],ne=ee[1],re=(0,d.useState)(null),oe=(0,s.Z)(re,2),ie=oe[0],ae=oe[1],se=d.useMemo((function(){return null===ie&&O?Number.MAX_SAFE_INTEGER:ie||0}),[ie,P]),le=(0,d.useState)(!1),ue=(0,s.Z)(le,2),ce=ue[0],de=ue[1],fe="".concat(o,"-item"),he=Math.max(W,G),pe=w===tt,ge=l.length&&pe,me=w===nt,ve=ge||"number"==typeof w&&l.length>w,ye=(0,d.useMemo)((function(){var e=l;return ge?e=null===P&&O?l:l.slice(0,Math.min(l.length,I/g)):"number"==typeof w&&(e=l.slice(0,w)),e}),[l,g,P,w,ge]),be=(0,d.useMemo)((function(){return ge?l.slice(se+1):l.slice(ye.length)}),[l,ye,ge,se]),we=(0,d.useCallback)((function(e,t){var n;return"function"==typeof h?h(e):null!==(n=h&&(null==e?void 0:e[h]))&&void 0!==n?n:t}),[h]),xe=(0,d.useCallback)(c||function(e){return e},[c]);function Se(e,t,n){(ie!==e||void 0!==t&&t!==te)&&(ae(e),n||(de(e<l.length-1),null==A||A(e)),void 0!==t&&ne(t))}function _e(e,t){z((function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r}))}function Ee(e){return F.get(we(ye[e],e))}y((function(){if(I&&"number"==typeof he&&ye){var e=X,t=ye.length,n=t-1;if(!t)return void Se(0,null);for(var r=0;r<t;r+=1){var o=Ee(r);if(O&&(o=o||0),void 0===o){Se(r-1,void 0,!0);break}if(e+=o,0===n&&e<=I||r===n-1&&e+Ee(n)<=I){Se(n,null);break}if(e+he>I){Se(r-1,e-o-X+G);break}}_&&Ee(0)+X>I&&ne(null)}}),[I,F,G,X,we,ye]);var ke=ce&&!!be.length,Ce={};null!==te&&ge&&(Ce={position:"absolute",left:te,top:0});var Ae,Te={prefixCls:fe,responsive:ge,component:C,invalidate:me},Oe=f?function(e,t){var n=we(e,t);return d.createElement(Ge.Provider,{key:n,value:(0,a.Z)((0,a.Z)({},Te),{},{order:t,item:e,itemKey:n,registerSize:_e,display:t<=se})},f(e,t))}:function(e,t){var n=we(e,t);return d.createElement($e,(0,r.Z)({},Te,{order:t,key:n,item:e,renderItem:xe,itemKey:n,registerSize:_e,display:t<=se}))},Me={order:ke?se:Number.MAX_SAFE_INTEGER,className:"".concat(fe,"-rest"),registerSize:function(e,t){q(t),U(G)},display:ke};if(S)S&&(Ae=d.createElement(Ge.Provider,{value:(0,a.Z)((0,a.Z)({},Te),Me)},S(be)));else{var Re=x||rt;Ae=d.createElement($e,(0,r.Z)({},Te,Me),"function"==typeof Re?Re(be):Re)}var De=d.createElement(k,(0,r.Z)({className:M()(!me&&o,b),style:v,ref:t},T),ye.map(Oe),ve?Ae:null,_&&d.createElement($e,(0,r.Z)({},Te,{responsive:pe,responsiveDisabled:!ge,order:se,className:"".concat(fe,"-suffix"),registerSize:function(e,t){Q(t)},display:!0,style:Ce}),_));return pe&&(De=d.createElement(Le,{onResize:function(e,t){j(t.clientWidth)},disabled:!ge},De)),De}var it=d.forwardRef(ot);it.displayName="Overflow",it.Item=Je,it.RESPONSIVE=tt,it.INVALIDATE=nt;const at=it;var st=function(e,t){var n,r,o=e.prefixCls,i=e.id,s=e.inputElement,l=e.disabled,u=e.tabIndex,c=e.autoFocus,f=e.autoComplete,h=e.editable,p=e.activeDescendantId,g=e.value,m=e.maxLength,v=e.onKeyDown,y=e.onMouseDown,b=e.onChange,w=e.onPaste,x=e.onCompositionStart,S=e.onCompositionEnd,_=e.open,E=e.attrs,k=s||d.createElement("input",null),C=k,A=C.ref,T=C.props,O=T.onKeyDown,R=T.onChange,L=T.onMouseDown,D=T.onCompositionStart,P=T.onCompositionEnd,j=T.style;return k.props,k=d.cloneElement(k,(0,a.Z)((0,a.Z)((0,a.Z)({type:"search"},T),{},{id:i,ref:$(t,A),disabled:l,tabIndex:u,autoComplete:f||"off",autoFocus:c,className:M()("".concat(o,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-label":"Search","aria-expanded":_||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":_?p:void 0},E),{},{value:h?g:"",maxLength:m,readOnly:!h,unselectable:h?null:"on",style:(0,a.Z)((0,a.Z)({},j),{},{opacity:h?null:0}),onKeyDown:function(e){v(e),O&&O(e)},onMouseDown:function(e){y(e),L&&L(e)},onChange:function(e){b(e),R&&R(e)},onCompositionStart:function(e){x(e),D&&D(e)},onCompositionEnd:function(e){S(e),P&&P(e)},onPaste:w}))},lt=d.forwardRef(st);lt.displayName="Input";const ut=lt;function ct(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var dt="undefined"!=typeof window&&window.document&&window.document.documentElement;function ft(e){return["string","number"].includes((0,c.Z)(e))}function ht(e){var t=void 0;return e&&(ft(e.title)?t=e.title.toString():ft(e.label)&&(t=e.label.toString())),t}function pt(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var gt=function(e){e.preventDefault(),e.stopPropagation()};const mt=function(e){var t,n,r=e.id,o=e.prefixCls,a=e.values,l=e.open,u=e.searchValue,c=e.autoClearSearchValue,f=e.inputRef,h=e.placeholder,p=e.disabled,g=e.mode,m=e.showSearch,v=e.autoFocus,y=e.autoComplete,b=e.activeDescendantId,w=e.tabIndex,x=e.removeIcon,S=e.maxTagCount,_=e.maxTagTextLength,E=e.maxTagPlaceholder,k=void 0===E?function(e){return"+ ".concat(e.length," ...")}:E,C=e.tagRender,A=e.onToggleOpen,T=e.onRemove,O=e.onInputChange,R=e.onInputPaste,L=e.onInputKeyDown,D=e.onInputMouseDown,P=e.onInputCompositionStart,j=e.onInputCompositionEnd,I=d.useRef(null),$=(0,d.useState)(0),N=(0,s.Z)($,2),F=N[0],B=N[1],H=(0,d.useState)(!1),W=(0,s.Z)(H,2),U=W[0],V=W[1],G="".concat(o,"-selection"),q=l||"multiple"===g&&!1===c||"tags"===g?u:"",Y="tags"===g||"multiple"===g&&!1===c||m&&(l||U);function K(e,t,n,r,o){return d.createElement("span",{className:M()("".concat(G,"-item"),(0,i.Z)({},"".concat(G,"-item-disabled"),n)),title:ht(e)},d.createElement("span",{className:"".concat(G,"-item-content")},t),r&&d.createElement(z,{className:"".concat(G,"-item-remove"),onMouseDown:gt,onClick:o,customizeIcon:x},"×"))}t=function(){B(I.current.scrollWidth)},n=[q],dt?d.useLayoutEffect(t,n):d.useEffect(t,n);var X=d.createElement("div",{className:"".concat(G,"-search"),style:{width:F},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},d.createElement(ut,{ref:f,open:l,prefixCls:o,id:r,inputElement:null,disabled:p,autoFocus:v,autoComplete:y,editable:Y,activeDescendantId:b,value:q,onKeyDown:L,onMouseDown:D,onChange:O,onPaste:R,onCompositionStart:P,onCompositionEnd:j,tabIndex:w,attrs:Z(e,!0)}),d.createElement("span",{ref:I,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},q," ")),Q=d.createElement(at,{prefixCls:"".concat(G,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!p&&!t,i=n;if("number"==typeof _&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>_&&(i="".concat(a.slice(0,_),"..."))}var s=function(t){t&&t.stopPropagation(),T(e)};return"function"==typeof C?function(e,t,n,r,o){return d.createElement("span",{onMouseDown:function(e){gt(e),A(!l)}},C({label:t,value:e,disabled:n,closable:r,onClose:o}))}(r,i,t,o,s):K(e,i,t,o,s)},renderRest:function(e){var t="function"==typeof k?k(e):k;return K({title:t},t,!1)},suffix:X,itemKey:pt,maxCount:S});return d.createElement(d.Fragment,null,Q,!a.length&&!q&&d.createElement("span",{className:"".concat(G,"-placeholder")},h))};const vt=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,a=e.autoFocus,l=e.autoComplete,u=e.activeDescendantId,c=e.mode,f=e.open,h=e.values,p=e.placeholder,g=e.tabIndex,m=e.showSearch,v=e.searchValue,y=e.activeValue,b=e.maxLength,w=e.onInputKeyDown,x=e.onInputMouseDown,S=e.onInputChange,_=e.onInputPaste,E=e.onInputCompositionStart,k=e.onInputCompositionEnd,C=e.title,A=d.useState(!1),T=(0,s.Z)(A,2),O=T[0],M=T[1],R="combobox"===c,L=R||m,D=h[0],P=v||"";R&&y&&!O&&(P=y),d.useEffect((function(){R&&M(!1)}),[R,y]);var j=!("combobox"!==c&&!f&&!m)&&!!P,I=void 0===C?ht(D):C;return d.createElement(d.Fragment,null,d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(ut,{ref:o,prefixCls:n,id:r,open:f,inputElement:t,disabled:i,autoFocus:a,autoComplete:l,editable:L,activeDescendantId:u,value:P,onKeyDown:w,onMouseDown:x,onChange:function(e){M(!0),S(e)},onPaste:_,onCompositionStart:E,onCompositionEnd:k,tabIndex:g,attrs:Z(e,!0),maxLength:R?b:void 0})),!R&&D?d.createElement("span",{className:"".concat(n,"-selection-item"),title:I,style:j?{visibility:"hidden"}:void 0},D.label):null,function(){if(D)return null;var e=j?{visibility:"hidden"}:void 0;return d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:e},p)}())};var yt=function(e,t){var n=(0,d.useRef)(null),o=(0,d.useRef)(!1),i=e.prefixCls,a=e.open,l=e.mode,u=e.showSearch,c=e.tokenWithEnter,f=e.autoClearSearchValue,h=e.onSearch,p=e.onSearchSubmit,g=e.onToggleOpen,m=e.onInputKeyDown,v=e.domRef;d.useImperativeHandle(t,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var y=H(0),b=(0,s.Z)(y,2),w=b[0],x=b[1],S=(0,d.useRef)(null),_=function(e){!1!==h(e,!0,o.current)&&g(!0)},E={inputRef:n,onInputKeyDown:function(e){var t,n=e.which;n!==D.UP&&n!==D.DOWN||e.preventDefault(),m&&m(e),n!==D.ENTER||"tags"!==l||o.current||a||null==p||p(e.target.value),t=n,[D.ESC,D.SHIFT,D.BACKSPACE,D.TAB,D.WIN_KEY,D.ALT,D.META,D.WIN_KEY_RIGHT,D.CTRL,D.SEMICOLON,D.EQUALS,D.CAPS_LOCK,D.CONTEXT_MENU,D.F1,D.F2,D.F3,D.F4,D.F5,D.F6,D.F7,D.F8,D.F9,D.F10,D.F11,D.F12].includes(t)||g(!0)},onInputMouseDown:function(){x(!0)},onInputChange:function(e){var t=e.target.value;if(c&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,_(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");S.current=t},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&_(e.target.value)}},k="multiple"===l||"tags"===l?d.createElement(mt,(0,r.Z)({},e,E)):d.createElement(vt,(0,r.Z)({},e,E));return d.createElement("div",{ref:v,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(e){var t=w();e.target===n.current||t||"combobox"===l||e.preventDefault(),("combobox"===l||u&&t)&&a||(a&&!1!==f&&h("",!0,!1),g())}},k)},bt=d.forwardRef(yt);bt.displayName="Selector";const wt=bt;const xt=d.createContext(null);var St=[];var _t,Et="data-rc-order",kt="data-rc-priority",Ct="rc-util-key",At=new Map;function Tt(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):Ct}function Ot(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Mt(e){return Array.from((At.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function Rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!p())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(Et,a),s&&i&&l.setAttribute(kt,"".concat(i)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=e;var u=Ot(t),c=u.firstChild;if(r){if(s){var d=Mt(u).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Et)))return!1;var t=Number(e.getAttribute(kt)||0);return i>=t}));if(d.length)return u.insertBefore(l,d[d.length-1].nextSibling),l}u.insertBefore(l,c)}else u.appendChild(l);return l}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Mt(Ot(t)).find((function(n){return n.getAttribute(Tt(t))===e}))}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Lt(e,t);n&&Ot(t).removeChild(n)}function Pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var n=At.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){var r=Rt("",t),o=r.parentNode;At.set(e,o),e.removeChild(r)}}(Ot(n),n);var r=Lt(t,n);if(r){var o,i,a;if(null!==(o=n.csp)&&void 0!==o&&o.nonce&&r.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce))r.nonce=null===(a=n.csp)||void 0===a?void 0:a.nonce;return r.innerHTML!==e&&(r.innerHTML=e),r}var s=Rt(e,n);return s.setAttribute(Tt(n),t),s}function jt(e){var t=e.match(/^(.*)px$/),n=Number(null==t?void 0:t[1]);return Number.isNaN(n)?function(e){if("undefined"==typeof document)return 0;if(e||void 0===_t){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=n.clientWidth),document.body.removeChild(n),_t=o-i}return _t}():n}var It="rc-util-locker-".concat(Date.now()),$t=0;function Nt(e){var t=!!e,n=d.useState((function(){return $t+=1,"".concat(It,"_").concat($t)})),r=(0,s.Z)(n,1)[0];y((function(){if(t){var e=function(e){if(!("undefined"!=typeof document&&e&&e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:jt(n),height:jt(r)}}(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Pt("\nhtml body {\n  overflow-y: hidden;\n  ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else Dt(r);return function(){Dt(r)}}),[t,r])}var Ft=!1;var zt=function(e){return!1!==e&&(p()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},Bt=d.forwardRef((function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,u=e.children,c=d.useState(n),f=(0,s.Z)(c,2),h=f[0],g=f[1],m=h||n;d.useEffect((function(){(l||n)&&g(n)}),[n,l]);var v=d.useState((function(){return zt(i)})),b=(0,s.Z)(v,2),w=b[0],x=b[1];d.useEffect((function(){var e=zt(i);x(null!=e?e:null)}));var S=function(e,t){var n=d.useState((function(){return p()?document.createElement("div"):null})),r=(0,s.Z)(n,1)[0],i=d.useRef(!1),a=d.useContext(xt),l=d.useState(St),u=(0,s.Z)(l,2),c=u[0],f=u[1],h=a||(i.current?void 0:function(e){f((function(t){return[e].concat((0,o.Z)(t))}))});function g(){r.parentElement||document.body.appendChild(r),i.current=!0}function m(){var e;null===(e=r.parentElement)||void 0===e||e.removeChild(r),i.current=!1}return y((function(){return e?a?a(g):g():m(),m}),[e]),y((function(){c.length&&(c.forEach((function(e){return e()})),f(St))}),[c]),[r,h]}(m&&!w),_=(0,s.Z)(S,2),E=_[0],k=_[1],C=null!=w?w:E;Nt(r&&n&&p()&&(C===E||C===document.body));var A=null;u&&F(u)&&t&&(A=u.ref);var T=N(A,t);if(!m||!p()||void 0===w)return null;var O,M=!1===C||("boolean"==typeof O&&(Ft=O),Ft),R=u;return t&&(R=d.cloneElement(u,{ref:T})),d.createElement(xt.Provider,{value:k},M?R:(0,G.createPortal)(R,C))}));const Ht=Bt;function Wt(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Ut(e){return function(e){return Wt(e)instanceof ShadowRoot}(e)?Wt(e):null}var Zt=0;function Vt(e){var t=d.useState("ssr-id"),n=(0,s.Z)(t,2),r=n[0],o=n[1],i=(0,a.Z)({},f).useId,l=null==i?void 0:i();return d.useEffect((function(){if(!i){var e=Zt;Zt+=1,o("rc_unique_".concat(e))}}),[]),e||(l||r)}const Gt=d.createContext(null);function qt(e){return e?Array.isArray(e)?e:[e]:[]}const Yt=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function Kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Xt(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Qt(e){return e.ownerDocument.defaultView}function Jt(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Qt(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function tn(e){return en(parseFloat(e),0)}function nn(e,t){var n=(0,a.Z)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Qt(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,u=e.getBoundingClientRect(),c=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,h=e.clientWidth,p=tn(i),g=tn(a),m=tn(s),v=tn(l),y=en(Math.round(u.width/f*1e3)/1e3),b=en(Math.round(u.height/c*1e3)/1e3),w=(f-h-m-v)*y,x=(c-d-p-g)*b,S=p*b,_=g*b,E=m*y,k=v*y,C=0,A=0;if("clip"===r){var T=tn(o);C=T*y,A=T*b}var O=u.x+E-C,M=u.y+S-A,R=O+u.width+2*C-E-k-w,L=M+u.height+2*A-S-_-x;n.left=Math.max(n.left,O),n.top=Math.max(n.top,M),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,L)}})),n}function rn(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function on(e,t){var n=t||[],r=(0,s.Z)(n,2),o=r[0],i=r[1];return[rn(e.width,o),rn(e.height,i)]}function an(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function sn(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function ln(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;var un=d.createContext({});var cn=function(e){(0,Se.Z)(n,e);var t=ke(n);function n(){return(0,we.Z)(this,n),t.apply(this,arguments)}return(0,xe.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);const dn=cn;var fn="none",hn="appear",pn="enter",gn="leave",mn="none",vn="prepare",yn="start",bn="active",wn="end",xn="prepared";function Sn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var _n,En,kn,Cn=(_n=p(),En="undefined"!=typeof window?window:{},kn={animationend:Sn("Animation","AnimationEnd"),transitionend:Sn("Transition","TransitionEnd")},_n&&("AnimationEvent"in En||delete kn.animationend.animation,"TransitionEvent"in En||delete kn.transitionend.transition),kn),An={};if(p()){var Tn=document.createElement("div");An=Tn.style}var On={};function Mn(e){if(On[e])return On[e];var t=Cn[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in An)return On[e]=t[i],On[e]}return""}var Rn=Mn("animationend"),Ln=Mn("transitionend"),Dn=!(!Rn||!Ln),Pn=Rn||"animationend",jn=Ln||"transitionend";function In(e,t){if(!e)return null;if("object"===(0,c.Z)(e)){var n=t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}));return e[n]}return"".concat(e,"-").concat(t)}const $n=function(e){var t=(0,d.useRef)(),n=(0,d.useRef)(e);n.current=e;var r=d.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(jn,r),e.removeEventListener(Pn,r))}return d.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(jn,r),e.addEventListener(Pn,r),t.current=e)},o]};const Nn=p()?d.useLayoutEffect:d.useEffect;var Fn=[vn,yn,bn,wn],zn=[vn,xn],Bn=!1,Hn=!0;function Wn(e){return e===bn||e===wn}const Un=function(e,t,n){var r=b(mn),o=(0,s.Z)(r,2),i=o[0],a=o[1],l=function(){var e=d.useRef(null);function t(){Ue.cancel(e.current)}return d.useEffect((function(){return function(){t()}}),[]),[function n(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Ue((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),u=(0,s.Z)(l,2),c=u[0],f=u[1];var h=t?zn:Fn;return Nn((function(){if(i!==mn&&i!==wn){var e=h.indexOf(i),t=h[e+1],r=n(i);r===Bn?a(t,!0):t&&c((function(e){function n(){e.isCanceled()||a(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,i]),d.useEffect((function(){return function(){f()}}),[]),[function(){a(vn,!0)},i]};const Zn=function(e){var t=e;"object"===(0,c.Z)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var r=e.visible,o=void 0===r||r,l=e.removeOnLeave,u=void 0===l||l,c=e.forceRender,f=e.children,h=e.motionName,p=e.leavedClassName,g=e.eventProps,m=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(un).motion),v=(0,d.useRef)(),y=(0,d.useRef)();var w=function(e,t,n,r){var o=r.motionEnter,l=void 0===o||o,u=r.motionAppear,c=void 0===u||u,f=r.motionLeave,h=void 0===f||f,p=r.motionDeadline,g=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,y=r.onLeavePrepare,w=r.onAppearStart,x=r.onEnterStart,S=r.onLeaveStart,_=r.onAppearActive,E=r.onEnterActive,k=r.onLeaveActive,C=r.onAppearEnd,A=r.onEnterEnd,T=r.onLeaveEnd,O=r.onVisibleChanged,M=b(),R=(0,s.Z)(M,2),L=R[0],D=R[1],P=b(fn),j=(0,s.Z)(P,2),I=j[0],$=j[1],N=b(null),F=(0,s.Z)(N,2),z=F[0],B=F[1],H=(0,d.useRef)(!1),W=(0,d.useRef)(null);function U(){return n()}var Z=(0,d.useRef)(!1);function V(){$(fn,!0),B(null,!0)}function G(e){var t=U();if(!e||e.deadline||e.target===t){var n,r=Z.current;I===hn&&r?n=null==C?void 0:C(t,e):I===pn&&r?n=null==A?void 0:A(t,e):I===gn&&r&&(n=null==T?void 0:T(t,e)),I!==fn&&r&&!1!==n&&V()}}var q=$n(G),Y=(0,s.Z)(q,1)[0],K=function(e){var t,n,r;switch(e){case hn:return t={},(0,i.Z)(t,vn,m),(0,i.Z)(t,yn,w),(0,i.Z)(t,bn,_),t;case pn:return n={},(0,i.Z)(n,vn,v),(0,i.Z)(n,yn,x),(0,i.Z)(n,bn,E),n;case gn:return r={},(0,i.Z)(r,vn,y),(0,i.Z)(r,yn,S),(0,i.Z)(r,bn,k),r;default:return{}}},X=d.useMemo((function(){return K(I)}),[I]),Q=Un(I,!e,(function(e){if(e===vn){var t=X[vn];return t?t(U()):Bn}var n;return te in X&&B((null===(n=X[te])||void 0===n?void 0:n.call(X,U(),null))||null),te===bn&&(Y(U()),p>0&&(clearTimeout(W.current),W.current=setTimeout((function(){G({deadline:!0})}),p))),te===xn&&V(),Hn})),J=(0,s.Z)(Q,2),ee=J[0],te=J[1],ne=Wn(te);Z.current=ne,Nn((function(){D(t);var n,r=H.current;H.current=!0,!r&&t&&c&&(n=hn),r&&t&&l&&(n=pn),(r&&!t&&h||!r&&g&&!t&&h)&&(n=gn);var o=K(n);n&&(e||o[vn])?($(n),ee()):$(fn)}),[t]),(0,d.useEffect)((function(){(I===hn&&!c||I===pn&&!l||I===gn&&!h)&&$(fn)}),[c,l,h]),(0,d.useEffect)((function(){return function(){H.current=!1,clearTimeout(W.current)}}),[]);var re=d.useRef(!1);(0,d.useEffect)((function(){L&&(re.current=!0),void 0!==L&&I===fn&&((re.current||L)&&(null==O||O(L)),re.current=!0)}),[L,I]);var oe=z;return X[vn]&&te===yn&&(oe=(0,a.Z)({transition:"none"},oe)),[I,te,oe,null!=L?L:t]}(m,o,(function(){try{return v.current instanceof HTMLElement?v.current:Y(y.current)}catch(e){return null}}),e),x=(0,s.Z)(w,4),S=x[0],_=x[1],E=x[2],k=x[3],C=d.useRef(k);k&&(C.current=!0);var A,T=d.useCallback((function(e){v.current=e,I(n,e)}),[n]),O=(0,a.Z)((0,a.Z)({},g),{},{visible:o});if(f)if(S===fn)A=k?f((0,a.Z)({},O),T):!u&&C.current&&p?f((0,a.Z)((0,a.Z)({},O),{},{className:p}),T):c||!u&&!p?f((0,a.Z)((0,a.Z)({},O),{},{style:{display:"none"}}),T):null;else{var R,L;_===vn?L="prepare":Wn(_)?L="active":_===yn&&(L="start");var D=In(h,"".concat(S,"-").concat(L));A=f((0,a.Z)((0,a.Z)({},O),{},{className:M()(In(h,S),(R={},(0,i.Z)(R,D,D&&L),(0,i.Z)(R,h,"string"==typeof h),R)),style:E}),T)}else A=null;d.isValidElement(A)&&F(A)&&(A.ref||(A=d.cloneElement(A,{ref:T})));return d.createElement(dn,{ref:y},A)}));return n.displayName="CSSMotion",n}(Dn);var Vn=n(80753),Gn="add",qn="keep",Yn="remove",Kn="removed";function Xn(e){var t;return t=e&&"object"===(0,c.Z)(e)&&"key"in e?e:{key:e},(0,a.Z)((0,a.Z)({},t),{},{key:String(t.key)})}function Qn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Xn)}var Jn=["component","children","onVisibleChanged","onAllRemoved"],er=["status"],tr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zn,n=function(e){(0,Se.Z)(o,e);var n=ke(o);function o(){var e;(0,we.Z)(this,o);for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return e=n.call.apply(n,[this].concat(r)),(0,i.Z)((0,Vn.Z)(e),"state",{keyEntities:[]}),(0,i.Z)((0,Vn.Z)(e),"removeKey",(function(t){var n=e.state.keyEntities.map((function(e){return e.key!==t?e:(0,a.Z)((0,a.Z)({},e),{},{status:Kn})}));return e.setState({keyEntities:n}),n.filter((function(e){return e.status!==Kn})).length})),e}return(0,xe.Z)(o,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,o=this.props,i=o.component,s=o.children,l=o.onVisibleChanged,c=o.onAllRemoved,f=u(o,Jn),h=i||d.Fragment,p={};return tr.forEach((function(e){p[e]=f[e],delete f[e]})),delete f.keys,d.createElement(h,f,n.map((function(n,o){var i=n.status,f=u(n,er),h=i===Gn||i===qn;return d.createElement(t,(0,r.Z)({},p,{key:f.key,visible:h,eventProps:f,onVisibleChanged:function(t){(null==l||l(t,{key:f.key}),t)||0===e.removeKey(f.key)&&c&&c()}}),(function(e,t){return s((0,a.Z)((0,a.Z)({},e),{},{index:o}),t)}))})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Qn(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Qn(e),s=Qn(t);i.forEach((function(e){for(var t=!1,i=r;i<o;i+=1){var l=s[i];if(l.key===e.key){r<i&&(n=n.concat(s.slice(r,i).map((function(e){return(0,a.Z)((0,a.Z)({},e),{},{status:Gn})}))),r=i),n.push((0,a.Z)((0,a.Z)({},l),{},{status:qn})),r+=1,t=!0;break}}t||n.push((0,a.Z)((0,a.Z)({},e),{},{status:Yn}))})),r<o&&(n=n.concat(s.slice(r).map((function(e){return(0,a.Z)((0,a.Z)({},e),{},{status:Gn})}))));var l={};return n.forEach((function(e){var t=e.key;l[t]=(l[t]||0)+1})),Object.keys(l).filter((function(e){return l[e]>1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Yn}))).forEach((function(t){t.key===e&&(t.status=qn)}))})),n}(r,o);return{keyEntities:i.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==Kn||e.status!==Yn}))}}}]),o}(d.Component);(0,i.Z)(n,"defaultProps",{component:"div"})}(Dn);const nr=Zn;function rr(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,u=void 0===l?0:l,c=o.y,f=void 0===c?0:c,h=d.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var g=n.points[0],m=n.points[1],v=g[0],y=g[1],b=m[0],w=m[1];v!==b&&["t","b"].includes(v)?"t"===v?p.top=0:p.bottom=0:p.top=f,y!==w&&["l","r"].includes(y)?"l"===y?p.left=0:p.right=0:p.left=u}return d.createElement("div",{ref:h,className:M()("".concat(t,"-arrow"),a),style:p},s)}function or(e){var t=e.prefixCls,n=e.open,o=e.zIndex,i=e.mask,a=e.motion;return i?d.createElement(nr,(0,r.Z)({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return d.createElement("div",{style:{zIndex:o},className:M()("".concat(t,"-mask"),n)})})):null}const ir=d.memo((function(e){return e.children}),(function(e,t){return t.cache}));var ar=d.forwardRef((function(e,t){var n=e.popup,o=e.className,i=e.prefixCls,l=e.style,u=e.target,c=e.onVisibleChanged,f=e.open,h=e.keepDom,p=e.fresh,g=e.onClick,m=e.mask,v=e.arrow,b=e.arrowPos,w=e.align,x=e.motion,S=e.maskMotion,_=e.forceRender,E=e.getPopupContainer,k=e.autoDestroy,C=e.portal,A=e.zIndex,T=e.onMouseEnter,O=e.onMouseLeave,R=e.onPointerEnter,L=e.ready,D=e.offsetX,P=e.offsetY,j=e.offsetR,I=e.offsetB,N=e.onAlign,F=e.onPrepare,z=e.stretch,B=e.targetWidth,H=e.targetHeight,W="function"==typeof n?n():n,U=f||h,Z=(null==E?void 0:E.length)>0,V=d.useState(!E||!Z),G=(0,s.Z)(V,2),q=G[0],Y=G[1];if(y((function(){!q&&Z&&u&&Y(!0)}),[q,Z,u]),!q)return null;var K="auto",X={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(L||!f){var Q,J=w.points,ee=w.dynamicInset||(null===(Q=w._experimental)||void 0===Q?void 0:Q.dynamicInset),te=ee&&"r"===J[0][1],ne=ee&&"b"===J[0][0];te?(X.right=j,X.left=K):(X.left=D,X.right=K),ne?(X.bottom=I,X.top=K):(X.top=P,X.bottom=K)}var re={};return z&&(z.includes("height")&&H?re.height=H:z.includes("minHeight")&&H&&(re.minHeight=H),z.includes("width")&&B?re.width=B:z.includes("minWidth")&&B&&(re.minWidth=B)),f||(re.pointerEvents="none"),d.createElement(C,{open:_||U,getContainer:E&&function(){return E(u)},autoDestroy:k},d.createElement(or,{prefixCls:i,open:f,zIndex:A,mask:m,motion:S}),d.createElement(Le,{onResize:N,disabled:!f},(function(e){return d.createElement(nr,(0,r.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:F,onEnterPrepare:F,visible:f,onVisibleChanged:function(e){var t;null==x||null===(t=x.onVisibleChanged)||void 0===t||t.call(x,e),c(e)}}),(function(n,r){var s=n.className,u=n.style,c=M()(i,s,o);return d.createElement("div",{ref:$(e,t,r),className:c,style:(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},X),re),u),{},{boxSizing:"border-box",zIndex:A},l),onMouseEnter:T,onMouseLeave:O,onPointerEnter:R,onClick:g},v&&d.createElement(rr,{prefixCls:i,arrow:v,arrowPos:b,align:w}),d.createElement(ir,{cache:!f&&!p},W))}))})))}));const sr=ar;const lr=d.forwardRef((function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=F(n),i=N(d.useCallback((function(e){I(t,r?r(e):e)}),[r]),n.ref);return o?d.cloneElement(n,{ref:i}):n}));var ur=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const cr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht,t=d.forwardRef((function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,l=t.children,c=t.action,f=void 0===c?"hover":c,p=t.showAction,g=t.hideAction,m=t.popupVisible,v=t.defaultPopupVisible,b=t.onPopupVisibleChange,w=t.afterPopupVisibleChange,x=t.mouseEnterDelay,S=t.mouseLeaveDelay,_=void 0===S?.1:S,E=t.focusDelay,k=t.blurDelay,C=t.mask,A=t.maskClosable,T=void 0===A||A,O=t.getPopupContainer,L=t.forceRender,D=t.autoDestroy,P=t.destroyPopupOnHide,j=t.popup,I=t.popupClassName,$=t.popupStyle,N=t.popupPlacement,F=t.builtinPlacements,z=void 0===F?{}:F,B=t.popupAlign,H=t.zIndex,W=t.stretch,U=t.getPopupClassNameFromAlign,Z=t.fresh,V=t.alignPoint,Y=t.onPopupClick,K=t.onPopupAlign,X=t.arrow,Q=t.popupMotion,J=t.maskMotion,ee=t.popupTransitionName,te=t.popupAnimation,ne=t.maskTransitionName,re=t.maskAnimation,oe=t.className,ie=t.getTriggerDOMNode,ae=u(t,ur),se=D||P||!1,le=d.useState(!1),ue=(0,s.Z)(le,2),ce=ue[0],de=ue[1];y((function(){de(R())}),[]);var fe=d.useRef({}),he=d.useContext(Gt),pe=d.useMemo((function(){return{registerSubPopup:function(e,t){fe.current[e]=t,null==he||he.registerSubPopup(e,t)}}}),[he]),ge=Vt(),me=d.useState(null),ve=(0,s.Z)(me,2),ye=ve[0],be=ve[1],we=h((function(e){q(e)&&ye!==e&&be(e),null==he||he.registerSubPopup(ge,e)})),xe=d.useState(null),Se=(0,s.Z)(xe,2),_e=Se[0],Ee=Se[1],ke=h((function(e){q(e)&&_e!==e&&Ee(e)})),Ce=d.Children.only(l),Ae=(null==Ce?void 0:Ce.props)||{},Te={},Oe=h((function(e){var t,n,r=_e;return(null==r?void 0:r.contains(e))||(null===(t=Ut(r))||void 0===t?void 0:t.host)===e||e===r||(null==ye?void 0:ye.contains(e))||(null===(n=Ut(ye))||void 0===n?void 0:n.host)===e||e===ye||Object.values(fe.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Me=Xt(i,Q,te,ee),Re=Xt(i,J,re,ne),De=d.useState(v||!1),Pe=(0,s.Z)(De,2),je=Pe[0],Ie=Pe[1],$e=null!=m?m:je,Ne=h((function(e){void 0===m&&Ie(e)}));y((function(){Ie(m||!1)}),[m]);var Fe=d.useRef($e);Fe.current=$e;var ze=h((function(e){(0,G.flushSync)((function(){$e!==e&&(Ne(e),null==b||b(e))}))})),Be=d.useRef(),He=function(){clearTimeout(Be.current)},We=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;He(),0===t?ze(e):Be.current=setTimeout((function(){ze(e)}),1e3*t)};d.useEffect((function(){return He}),[]);var Ze=d.useState(!1),Ve=(0,s.Z)(Ze,2),Ge=Ve[0],qe=Ve[1];y((function(e){e&&!$e||qe(!0)}),[$e]);var Ye=d.useState(null),Ke=(0,s.Z)(Ye,2),Xe=Ke[0],Qe=Ke[1],Je=d.useState([0,0]),et=(0,s.Z)(Je,2),tt=et[0],nt=et[1],rt=function(e){nt([e.clientX,e.clientY])},ot=function(e,t,n,r,o,i,l){var u=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=(0,s.Z)(u,2),f=c[0],p=c[1],g=d.useRef(0),m=d.useMemo((function(){return t?Jt(t):[]}),[t]),v=d.useRef({});e||(v.current={});var b=h((function(){if(t&&n&&e){var u,c,d,f=t,h=f.ownerDocument,g=Qt(f).getComputedStyle(f),y=g.width,b=g.height,w=g.position,x=f.style.left,S=f.style.top,_=f.style.right,E=f.style.bottom,k=(0,a.Z)((0,a.Z)({},o[r]),i),C=h.createElement("div");if(null===(u=f.parentElement)||void 0===u||u.appendChild(C),C.style.left="".concat(f.offsetLeft,"px"),C.style.top="".concat(f.offsetTop,"px"),C.style.position=w,C.style.height="".concat(f.offsetHeight,"px"),C.style.width="".concat(f.offsetWidth,"px"),f.style.left="0",f.style.top="0",f.style.right="auto",f.style.bottom="auto",Array.isArray(n))d={x:n[0],y:n[1],width:0,height:0};else{var A=n.getBoundingClientRect();d={x:A.x,y:A.y,width:A.width,height:A.height}}var T=f.getBoundingClientRect(),O=h.documentElement,M=O.clientWidth,R=O.clientHeight,L=O.scrollWidth,D=O.scrollHeight,P=O.scrollTop,j=O.scrollLeft,I=T.height,$=T.width,N=d.height,F=d.width,z={left:0,top:0,right:M,bottom:R},B={left:-j,top:-P,right:L-j,bottom:D-P},H=k.htmlRegion,W="visible",U="visibleFirst";"scroll"!==H&&H!==U&&(H=W);var Z=H===U,V=nn(B,m),G=nn(z,m),Y=H===W?G:V,K=Z?G:Y;f.style.left="auto",f.style.top="auto",f.style.right="0",f.style.bottom="0";var X=f.getBoundingClientRect();f.style.left=x,f.style.top=S,f.style.right=_,f.style.bottom=E,null===(c=f.parentElement)||void 0===c||c.removeChild(C);var Q=en(Math.round($/parseFloat(y)*1e3)/1e3),J=en(Math.round(I/parseFloat(b)*1e3)/1e3);if(0===Q||0===J||q(n)&&!Yt(n))return;var ee=k.offset,te=k.targetOffset,ne=on(T,ee),re=(0,s.Z)(ne,2),oe=re[0],ie=re[1],ae=on(d,te),se=(0,s.Z)(ae,2),le=se[0],ue=se[1];d.x-=le,d.y-=ue;var ce=k.points||[],de=(0,s.Z)(ce,2),fe=de[0],he=an(de[1]),pe=an(fe),ge=sn(d,he),me=sn(T,pe),ve=(0,a.Z)({},k),ye=ge.x-me.x+oe,be=ge.y-me.y+ie;function ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y,r=T.x+e,o=T.y+t,i=r+$,a=o+I,s=Math.max(r,n.left),l=Math.max(o,n.top),u=Math.min(i,n.right),c=Math.min(a,n.bottom);return Math.max(0,(u-s)*(c-l))}var we,xe,Se,_e,Ee=ft(ye,be),ke=ft(ye,be,G),Ce=sn(d,["t","l"]),Ae=sn(T,["t","l"]),Te=sn(d,["b","r"]),Oe=sn(T,["b","r"]),Me=k.overflow||{},Re=Me.adjustX,Le=Me.adjustY,De=Me.shiftX,Pe=Me.shiftY,je=function(e){return"boolean"==typeof e?e:e>=0};function ht(){we=T.y+be,xe=we+I,Se=T.x+ye,_e=Se+$}ht();var Ie=je(Le),$e=pe[0]===he[0];if(Ie&&"t"===pe[0]&&(xe>K.bottom||v.current.bt)){var Ne=be;$e?Ne-=I-N:Ne=Ce.y-Oe.y-ie;var Fe=ft(ye,Ne),ze=ft(ye,Ne,G);Fe>Ee||Fe===Ee&&(!Z||ze>=ke)?(v.current.bt=!0,be=Ne,ie=-ie,ve.points=[ln(pe,0),ln(he,0)]):v.current.bt=!1}if(Ie&&"b"===pe[0]&&(we<K.top||v.current.tb)){var Be=be;$e?Be+=I-N:Be=Te.y-Ae.y-ie;var He=ft(ye,Be),We=ft(ye,Be,G);He>Ee||He===Ee&&(!Z||We>=ke)?(v.current.tb=!0,be=Be,ie=-ie,ve.points=[ln(pe,0),ln(he,0)]):v.current.tb=!1}var Ue=je(Re),Ze=pe[1]===he[1];if(Ue&&"l"===pe[1]&&(_e>K.right||v.current.rl)){var Ve=ye;Ze?Ve-=$-F:Ve=Ce.x-Oe.x-oe;var Ge=ft(Ve,be),qe=ft(Ve,be,G);Ge>Ee||Ge===Ee&&(!Z||qe>=ke)?(v.current.rl=!0,ye=Ve,oe=-oe,ve.points=[ln(pe,1),ln(he,1)]):v.current.rl=!1}if(Ue&&"r"===pe[1]&&(Se<K.left||v.current.lr)){var Ye=ye;Ze?Ye+=$-F:Ye=Te.x-Ae.x-oe;var Ke=ft(Ye,be),Xe=ft(Ye,be,G);Ke>Ee||Ke===Ee&&(!Z||Xe>=ke)?(v.current.lr=!0,ye=Ye,oe=-oe,ve.points=[ln(pe,1),ln(he,1)]):v.current.lr=!1}ht();var Qe=!0===De?0:De;"number"==typeof Qe&&(Se<G.left&&(ye-=Se-G.left-oe,d.x+F<G.left+Qe&&(ye+=d.x-G.left+F-Qe)),_e>G.right&&(ye-=_e-G.right-oe,d.x>G.right-Qe&&(ye+=d.x-G.right+Qe)));var Je=!0===Pe?0:Pe;"number"==typeof Je&&(we<G.top&&(be-=we-G.top-ie,d.y+N<G.top+Je&&(be+=d.y-G.top+N-Je)),xe>G.bottom&&(be-=xe-G.bottom-ie,d.y>G.bottom-Je&&(be+=d.y-G.bottom+Je)));var et=T.x+ye,tt=et+$,nt=T.y+be,rt=nt+I,ot=d.x,it=ot+F,at=d.y,st=at+N,lt=(Math.max(et,ot)+Math.min(tt,it))/2-et,ut=(Math.max(nt,at)+Math.min(rt,st))/2-nt;null==l||l(t,ve);var ct=X.right-T.x-(ye+T.width),dt=X.bottom-T.y-(be+T.height);p({ready:!0,offsetX:ye/Q,offsetY:be/J,offsetR:ct/Q,offsetB:dt/J,arrowX:lt/Q,arrowY:ut/J,scaleX:Q,scaleY:J,align:ve})}})),w=function(){p((function(e){return(0,a.Z)((0,a.Z)({},e),{},{ready:!1})}))};return y(w,[r]),y((function(){e||w()}),[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,function(){g.current+=1;var e=g.current;Promise.resolve().then((function(){g.current===e&&b()}))}]}($e,ye,V?tt:_e,N,z,B,K),it=(0,s.Z)(ot,11),at=it[0],st=it[1],lt=it[2],ut=it[3],ct=it[4],dt=it[5],ft=it[6],ht=it[7],pt=it[8],gt=it[9],mt=it[10],vt=function(e,t,n,r){return d.useMemo((function(){var o=qt(null!=n?n:t),i=qt(null!=r?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[e,t,n,r])}(ce,f,p,g),yt=(0,s.Z)(vt,2),bt=yt[0],wt=yt[1],xt=bt.has("click"),St=wt.has("click")||wt.has("contextMenu"),_t=h((function(){Ge||mt()}));!function(e,t,n,r,i){y((function(){if(e&&t&&n){var a=n,s=Jt(t),l=Jt(a),u=Qt(a),c=new Set([u].concat((0,o.Z)(s),(0,o.Z)(l)));function d(){r(),i()}return c.forEach((function(e){e.addEventListener("scroll",d,{passive:!0})})),u.addEventListener("resize",d,{passive:!0}),r(),function(){c.forEach((function(e){e.removeEventListener("scroll",d),u.removeEventListener("resize",d)}))}}}),[e,t,n])}($e,_e,ye,_t,(function(){Fe.current&&V&&St&&We(!1)})),y((function(){_t()}),[tt,N]),y((function(){!$e||null!=z&&z[N]||_t()}),[JSON.stringify(B)]);var Et=d.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(Kt(null===(s=e[l])||void 0===s?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}(z,i,gt,V);return M()(e,null==U?void 0:U(gt))}),[gt,U,z,i,V]);d.useImperativeHandle(n,(function(){return{forceAlign:_t}}));var kt=d.useState(0),Ct=(0,s.Z)(kt,2),At=Ct[0],Tt=Ct[1],Ot=d.useState(0),Mt=(0,s.Z)(Ot,2),Rt=Mt[0],Lt=Mt[1],Dt=function(){if(W&&_e){var e=_e.getBoundingClientRect();Tt(e.width),Lt(e.height)}};function Pt(e,t,n,r){Te[e]=function(o){var i;null==r||r(o),We(t,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(i=Ae[e])||void 0===i||i.call.apply(i,[Ae,o].concat(s))}}y((function(){Xe&&(mt(),Xe(),Qe(null))}),[Xe]),(xt||St)&&(Te.onClick=function(e){var t;Fe.current&&St?We(!1):!Fe.current&&xt&&(rt(e),We(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ae.onClick)||void 0===t||t.call.apply(t,[Ae,e].concat(r))}),function(e,t,n,r,o,i,a,l){var u=d.useRef(e),c=d.useRef(!1);u.current!==e&&(c.current=!0,u.current=e),d.useEffect((function(){var e=Ue((function(){c.current=!1}));return function(){Ue.cancel(e)}}),[e]),d.useEffect((function(){if(t&&r&&(!o||i)){var e=function(){var e=!1;return[function(t){var n=t.target;e=a(n)},function(t){var n=t.target;c.current||!u.current||e||a(n)||l(!1)}]},d=e(),f=(0,s.Z)(d,2),h=f[0],p=f[1],g=e(),m=(0,s.Z)(g,2),v=m[0],y=m[1],b=Qt(r);b.addEventListener("mousedown",h,!0),b.addEventListener("click",p,!0),b.addEventListener("contextmenu",p,!0);var w=Ut(n);return w&&(w.addEventListener("mousedown",v,!0),w.addEventListener("click",y,!0),w.addEventListener("contextmenu",y,!0)),function(){b.removeEventListener("mousedown",h,!0),b.removeEventListener("click",p,!0),b.removeEventListener("contextmenu",p,!0),w&&(w.removeEventListener("mousedown",v,!0),w.removeEventListener("click",y,!0),w.removeEventListener("contextmenu",y,!0))}}}),[t,n,r,o,i])}($e,St,_e,ye,C,T,Oe,We);var jt,It,$t=bt.has("hover"),Nt=wt.has("hover");$t&&(Pt("onMouseEnter",!0,x,(function(e){rt(e)})),Pt("onPointerEnter",!0,x,(function(e){rt(e)})),jt=function(){($e||Ge)&&We(!0,x)},V&&(Te.onMouseMove=function(e){var t;null===(t=Ae.onMouseMove)||void 0===t||t.call(Ae,e)})),Nt&&(Pt("onMouseLeave",!1,_),Pt("onPointerLeave",!1,_),It=function(){We(!1,_)}),bt.has("focus")&&Pt("onFocus",!0,E),wt.has("focus")&&Pt("onBlur",!1,k),bt.has("contextMenu")&&(Te.onContextMenu=function(e){var t;Fe.current&&wt.has("contextMenu")?We(!1):(rt(e),We(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ae.onContextMenu)||void 0===t||t.call.apply(t,[Ae,e].concat(r))}),oe&&(Te.className=M()(Ae.className,oe));var Ft=(0,a.Z)((0,a.Z)({},Ae),Te),zt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ae[e]&&(zt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Ft[e])||void 0===t||t.call.apply(t,[Ft].concat(r)),ae[e].apply(ae,r)})}));var Bt=d.cloneElement(Ce,(0,a.Z)((0,a.Z)({},Ft),zt)),Ht={x:dt,y:ft},Wt=X?(0,a.Z)({},!0!==X?X:{}):null;return d.createElement(d.Fragment,null,d.createElement(Le,{disabled:!$e,ref:ke,onResize:function(){Dt(),_t()}},d.createElement(lr,{getTriggerDOMNode:ie},Bt)),d.createElement(Gt.Provider,{value:pe},d.createElement(sr,{portal:e,ref:we,prefixCls:i,popup:j,className:M()(I,Et),style:$,target:_e,onMouseEnter:jt,onMouseLeave:It,onPointerEnter:jt,zIndex:H,open:$e,keepDom:Ge,fresh:Z,onClick:Y,mask:C,motion:Me,maskMotion:Re,onVisibleChanged:function(e){qe(!1),mt(),null==w||w(e)},onPrepare:function(){return new Promise((function(e){Dt(),Qe((function(){return e}))}))},forceRender:L,autoDestroy:se,getPopupContainer:O,align:gt,arrow:Wt,arrowPos:Ht,ready:at,offsetX:st,offsetY:lt,offsetR:ut,offsetB:ct,onAlign:_t,stretch:W,targetWidth:At/ht,targetHeight:Rt/pt})))}));return t}(Ht);var dr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],fr=function(e,t){var n=e.prefixCls,o=(e.disabled,e.visible),s=e.children,l=e.popupElement,c=e.animation,f=e.transitionName,h=e.dropdownStyle,p=e.dropdownClassName,g=e.direction,m=void 0===g?"ltr":g,v=e.placement,y=e.builtinPlacements,b=e.dropdownMatchSelectWidth,w=e.dropdownRender,x=e.dropdownAlign,S=e.getPopupContainer,_=e.empty,E=e.getTriggerDOMNode,k=e.onPopupVisibleChange,C=e.onPopupMouseEnter,A=u(e,dr),T="".concat(n,"-dropdown"),O=l;w&&(O=w(l));var R=d.useMemo((function(){return y||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(b)}),[y,b]),L=c?"".concat(T,"-").concat(c):f,D="number"==typeof b,P=d.useMemo((function(){return D?null:!1===b?"minWidth":"width"}),[b,D]),j=h;D&&(j=(0,a.Z)((0,a.Z)({},j),{},{width:b}));var I=d.useRef(null);return d.useImperativeHandle(t,(function(){return{getPopupElement:function(){return I.current}}})),d.createElement(cr,(0,r.Z)({},A,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:v||("rtl"===m?"bottomRight":"bottomLeft"),builtinPlacements:R,prefixCls:T,popupTransitionName:L,popup:d.createElement("div",{ref:I,onMouseEnter:C},O),stretch:P,popupAlign:x,popupVisible:o,getPopupContainer:S,popupClassName:M()(p,(0,i.Z)({},"".concat(T,"-empty"),_)),popupStyle:j,getTriggerDOMNode:E,onPopupVisibleChange:k}),s)},hr=d.forwardRef(fr);hr.displayName="SelectTrigger";const pr=hr;var gr=n(39868),mr=n(81079),vr=n(59147),yr=n(34434);function br(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function wr(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function xr(e){var t=(0,a.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return T(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function Sr(e,t){if(!t||!t.length)return null;var n=!1;var r=function e(t,r){var i,a=(i=r,(0,gr.Z)(i)||(0,mr.Z)(i)||(0,vr.Z)(i)||(0,yr.Z)()),s=a[0],l=a.slice(1);if(!s)return[t];var u=t.split(s);return n=n||u.length>1,u.reduce((function(t,n){return[].concat((0,o.Z)(t),(0,o.Z)(e(n,l)))}),[]).filter((function(e){return e}))}(e,t);return n?r:null}var _r=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Er=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function kr(e){return"tags"===e||"multiple"===e}var Cr=d.forwardRef((function(e,t){var n,l,f=e.id,h=e.prefixCls,p=e.className,g=e.showSearch,m=e.tagRender,v=e.direction,b=e.omitDomProps,w=e.displayValues,S=e.onDisplayValuesChange,_=e.emptyOptions,E=e.notFoundContent,k=void 0===E?"Not Found":E,C=e.onClear,A=e.mode,T=e.disabled,O=e.loading,L=e.getInputElement,P=e.getRawInputElement,j=e.open,I=e.defaultOpen,$=e.onDropdownVisibleChange,F=e.activeValue,W=e.onActiveValueChange,U=e.activeDescendantId,Z=e.searchValue,V=e.autoClearSearchValue,G=e.onSearch,q=e.onSearchSplit,Y=e.tokenSeparators,K=e.allowClear,X=e.suffixIcon,Q=e.clearIcon,J=e.OptionList,ee=e.animation,te=e.transitionName,ne=e.dropdownStyle,re=e.dropdownClassName,oe=e.dropdownMatchSelectWidth,ie=e.dropdownRender,ae=e.dropdownAlign,se=e.placement,le=e.builtinPlacements,ue=e.getPopupContainer,ce=e.showAction,de=void 0===ce?[]:ce,fe=e.onFocus,he=e.onBlur,pe=e.onKeyUp,ge=e.onKeyDown,me=e.onMouseDown,ve=u(e,_r),ye=kr(A),be=(void 0!==g?g:ye)||"combobox"===A,we=(0,a.Z)({},ve);Er.forEach((function(e){delete we[e]})),null==b||b.forEach((function(e){delete we[e]}));var xe=d.useState(!1),Se=(0,s.Z)(xe,2),_e=Se[0],Ee=Se[1];d.useEffect((function(){Ee(R())}),[]);var ke=d.useRef(null),Ce=d.useRef(null),Ae=d.useRef(null),Te=d.useRef(null),Oe=d.useRef(null),Me=d.useRef(!1),Re=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=d.useState(!1),n=(0,s.Z)(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};return d.useEffect((function(){return a}),[]),[r,function(t,n){a(),i.current=window.setTimeout((function(){o(t),n&&n()}),e)},a]}(),Le=(0,s.Z)(Re,3),De=Le[0],Pe=Le[1],je=Le[2];d.useImperativeHandle(t,(function(){var e,t;return{focus:null===(e=Te.current)||void 0===e?void 0:e.focus,blur:null===(t=Te.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Oe.current)||void 0===t?void 0:t.scrollTo(e)}}}));var Ie=d.useMemo((function(){var e;if("combobox"!==A)return Z;var t=null===(e=w[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""}),[Z,A,w]),$e="combobox"===A&&"function"==typeof L&&L()||null,Ne="function"==typeof P&&P(),Fe=N(Ce,null==Ne||null===(n=Ne.props)||void 0===n?void 0:n.ref),ze=d.useState(!1),Be=(0,s.Z)(ze,2),He=Be[0],We=Be[1];y((function(){We(!0)}),[]);var Ue=x(!1,{defaultValue:I,value:j}),Ze=(0,s.Z)(Ue,2),Ve=Ze[0],Ge=Ze[1],qe=!!He&&Ve,Ye=!k&&_;(T||Ye&&qe&&"combobox"===A)&&(qe=!1);var Ke=!Ye&&qe,Xe=d.useCallback((function(e){var t=void 0!==e?e:!qe;T||(Ge(t),qe!==t&&(null==$||$(t)))}),[T,qe,Ge,$]),Qe=d.useMemo((function(){return(Y||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[Y]),Je=function(e,t,n){var r=!0,o=e;null==W||W(null);var i=n?null:Sr(e,Y);return"combobox"!==A&&i&&(o="",null==q||q(i),Xe(!1),r=!1),G&&Ie!==o&&G(o,{source:t?"typing":"effect"}),r};d.useEffect((function(){qe||ye||"combobox"===A||Je("",!1,!1)}),[qe]),d.useEffect((function(){Ve&&T&&Ge(!1),T&&!Me.current&&Pe(!1)}),[T]);var et=H(),tt=(0,s.Z)(et,2),nt=tt[0],rt=tt[1],ot=d.useRef(!1),it=[];d.useEffect((function(){return function(){it.forEach((function(e){return clearTimeout(e)})),it.splice(0,it.length)}}),[]);var at,st=d.useState({}),lt=(0,s.Z)(st,2)[1];Ne&&(at=function(e){Xe(e)}),function(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect((function(){function t(t){var n;if(null===(n=o.current)||void 0===n||!n.customizedTrigger){var r=t.target;r.shadowRoot&&t.composed&&(r=t.composedPath()[0]||r),o.current.open&&e().filter((function(e){return e})).every((function(e){return!e.contains(r)&&e!==r}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}}),[])}((function(){var e;return[ke.current,null===(e=Ae.current)||void 0===e?void 0:e.getPopupElement()]}),Ke,Xe,!!Ne);var ut,ct=d.useMemo((function(){return(0,a.Z)((0,a.Z)({},e),{},{notFoundContent:k,open:qe,triggerOpen:Ke,id:f,showSearch:be,multiple:ye,toggleOpen:Xe})}),[e,k,Ke,qe,f,be,ye,Xe]),dt=!!X||O;dt&&(ut=d.createElement(z,{className:M()("".concat(h,"-arrow"),(0,i.Z)({},"".concat(h,"-arrow-loading"),O)),customizeIcon:X,customizeIconProps:{loading:O,searchValue:Ie,open:qe,focused:De,showSearch:be}}));var ft,ht=function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=d.useMemo((function(){return"object"===(0,c.Z)(r)?r.clearIcon:o||void 0}),[r,o]);return{allowClear:d.useMemo((function(){return!(i||!r||!n.length&&!a||"combobox"===s&&""===a)}),[r,i,n.length,a,s]),clearIcon:d.createElement(z,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:l},"×")}}(h,(function(){var e;null==C||C(),null===(e=Te.current)||void 0===e||e.focus(),S([],{type:"clear",values:w}),Je("",!1,!1)}),w,K,Q,T,Ie,A),pt=ht.allowClear,gt=ht.clearIcon,mt=d.createElement(J,{ref:Oe}),vt=M()(h,p,(l={},(0,i.Z)(l,"".concat(h,"-focused"),De),(0,i.Z)(l,"".concat(h,"-multiple"),ye),(0,i.Z)(l,"".concat(h,"-single"),!ye),(0,i.Z)(l,"".concat(h,"-allow-clear"),K),(0,i.Z)(l,"".concat(h,"-show-arrow"),dt),(0,i.Z)(l,"".concat(h,"-disabled"),T),(0,i.Z)(l,"".concat(h,"-loading"),O),(0,i.Z)(l,"".concat(h,"-open"),qe),(0,i.Z)(l,"".concat(h,"-customize-input"),$e),(0,i.Z)(l,"".concat(h,"-show-search"),be),l)),yt=d.createElement(pr,{ref:Ae,disabled:T,prefixCls:h,visible:Ke,popupElement:mt,animation:ee,transitionName:te,dropdownStyle:ne,dropdownClassName:re,direction:v,dropdownMatchSelectWidth:oe,dropdownRender:ie,dropdownAlign:ae,placement:se,builtinPlacements:le,getPopupContainer:ue,empty:_,getTriggerDOMNode:function(){return Ce.current},onPopupVisibleChange:at,onPopupMouseEnter:function(){lt({})}},Ne?d.cloneElement(Ne,{ref:Fe}):d.createElement(wt,(0,r.Z)({},e,{domRef:Ce,prefixCls:h,inputElement:$e,ref:Te,id:f,showSearch:be,autoClearSearchValue:V,mode:A,activeDescendantId:U,tagRender:m,values:w,open:qe,onToggleOpen:Xe,activeValue:F,searchValue:Ie,onSearch:Je,onSearchSubmit:function(e){e&&e.trim()&&G(e,{source:"submit"})},onRemove:function(e){var t=w.filter((function(t){return t!==e}));S(t,{type:"remove",values:[e]})},tokenWithEnter:Qe})));return ft=Ne?yt:d.createElement("div",(0,r.Z)({className:vt},we,{ref:ke,onMouseDown:function(e){var t,n=e.target,r=null===(t=Ae.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout((function(){var e,t=it.indexOf(o);-1!==t&&it.splice(t,1),je(),_e||r.contains(document.activeElement)||null===(e=Te.current)||void 0===e||e.focus()}));it.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];null==me||me.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=nt(),r=e.which;if(r===D.ENTER&&("combobox"!==A&&e.preventDefault(),qe||Xe(!0)),rt(!!Ie),r===D.BACKSPACE&&!n&&ye&&!Ie&&w.length){for(var i=(0,o.Z)(w),a=null,s=i.length-1;s>=0;s-=1){var l=i[s];if(!l.disabled){i.splice(s,1),a=l;break}}a&&S(i,{type:"remove",values:[a]})}for(var u=arguments.length,c=new Array(u>1?u-1:0),d=1;d<u;d++)c[d-1]=arguments[d];qe&&Oe.current&&(t=Oe.current).onKeyDown.apply(t,[e].concat(c)),null==ge||ge.apply(void 0,[e].concat(c))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;qe&&Oe.current&&(o=Oe.current).onKeyUp.apply(o,[e].concat(n)),null==pe||pe.apply(void 0,[e].concat(n))},onFocus:function(){Pe(!0),T||(fe&&!ot.current&&fe.apply(void 0,arguments),de.includes("focus")&&Xe(!0)),ot.current=!0},onBlur:function(){Me.current=!0,Pe(!1,(function(){ot.current=!1,Me.current=!1,Xe(!1)})),T||(Ie&&("tags"===A?G(Ie,{source:"submit"}):"multiple"===A&&G("",{source:"blur"})),he&&he.apply(void 0,arguments))}}),De&&!qe&&d.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(w.map((function(e){var t=e.label,n=e.value;return["number","string"].includes((0,c.Z)(t))?t:n})).join(", "))),yt,ut,pt&&gt),d.createElement(B.Provider,{value:ct},ft)}));const Ar=Cr;function Tr(e,t){return ct(e).join("").toUpperCase().includes(t)}var Or=0,Mr=p();function Rr(e){var t=d.useState(),n=(0,s.Z)(t,2),r=n[0],o=n[1];return d.useEffect((function(){var e;o("rc_select_".concat((Mr?(e=Or,Or+=1):e="TEST_OR_SSR",e)))}),[]),e||r}var Lr=["children","value"],Dr=["children"];function Pr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return V(e).map((function(e,n){if(!d.isValidElement(e)||!e.type)return null;var r=e,o=r.type.isSelectOptGroup,i=r.key,s=r.props,l=s.children,c=u(s,Dr);return t||!o?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,s=u(r,Lr);return(0,a.Z)({key:n,value:void 0!==i?i:n,children:o},s)}(e):(0,a.Z)((0,a.Z)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},c),{},{options:Pr(l)})})).filter((function(e){return e}))}function jr(e){var t=d.useRef();t.current=e;var n=d.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}var Ir=function(){return null};Ir.isSelectOptGroup=!0;const $r=Ir;var Nr=function(){return null};Nr.isSelectOption=!0;const Fr=Nr;var zr=d.forwardRef((function(e,t){var n,o=e.height,s=e.offsetY,l=e.offsetX,u=e.children,c=e.prefixCls,f=e.onInnerResize,h=e.innerProps,p=e.rtl,g=e.extra,m={},v={display:"flex",flexDirection:"column"};void 0!==s&&(m={height:o,position:"relative",overflow:"hidden"},v=(0,a.Z)((0,a.Z)({},v),{},(n={transform:"translateY(".concat(s,"px)")},(0,i.Z)(n,p?"marginRight":"marginLeft",-l),(0,i.Z)(n,"position","absolute"),(0,i.Z)(n,"left",0),(0,i.Z)(n,"right",0),(0,i.Z)(n,"top",0),n)));return d.createElement("div",{style:m},d.createElement(Le,{onResize:function(e){e.offsetHeight&&f&&f()}},d.createElement("div",(0,r.Z)({style:v,className:M()((0,i.Z)({},"".concat(c,"-holder-inner"),c)),ref:t},h),u,g)))}));zr.displayName="Filler";const Br=zr;function Hr(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]}var Wr=d.forwardRef((function(e,t){var n,r=e.prefixCls,o=e.rtl,l=e.scrollOffset,u=e.scrollRange,c=e.onStartMove,f=e.onStopMove,h=e.onScroll,p=e.horizontal,g=e.spinSize,m=e.containerSize,v=e.style,y=e.thumbStyle,b=d.useState(!1),w=(0,s.Z)(b,2),x=w[0],S=w[1],_=d.useState(null),E=(0,s.Z)(_,2),k=E[0],C=E[1],A=d.useState(null),T=(0,s.Z)(A,2),O=T[0],R=T[1],L=!o,D=d.useRef(),P=d.useRef(),j=d.useState(!1),I=(0,s.Z)(j,2),$=I[0],N=I[1],F=d.useRef(),z=function(){clearTimeout(F.current),N(!0),F.current=setTimeout((function(){N(!1)}),3e3)},B=u-m||0,H=m-g||0,W=B>0,U=d.useMemo((function(){return 0===l||0===B?0:l/B*H}),[l,B,H]),Z=d.useRef({top:U,dragging:x,pageY:k,startTop:O});Z.current={top:U,dragging:x,pageY:k,startTop:O};var V=function(e){S(!0),C(Hr(e,p)),R(Z.current.top),c(),e.stopPropagation(),e.preventDefault()};d.useEffect((function(){var e=function(e){e.preventDefault()},t=D.current,n=P.current;return t.addEventListener("touchstart",e),n.addEventListener("touchstart",V),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",V)}}),[]);var G=d.useRef();G.current=B;var q=d.useRef();q.current=H,d.useEffect((function(){if(x){var e,t=function(t){var n=Z.current,r=n.dragging,o=n.pageY,i=n.startTop;if(Ue.cancel(e),r){var a=Hr(t,p)-o,s=i;!L&&p?s-=a:s+=a;var l=G.current,u=q.current,c=u?s/u:0,d=Math.ceil(c*l);d=Math.max(d,0),d=Math.min(d,l),e=Ue((function(){h(d,p)}))}},n=function(){S(!1),f()};return window.addEventListener("mousemove",t),window.addEventListener("touchmove",t),window.addEventListener("mouseup",n),window.addEventListener("touchend",n),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Ue.cancel(e)}}}),[x]),d.useEffect((function(){z()}),[l]),d.useImperativeHandle(t,(function(){return{delayHidden:z}}));var Y="".concat(r,"-scrollbar"),K={position:"absolute",visibility:$&&W?null:"hidden"},X={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return p?(K.height=8,K.left=0,K.right=0,K.bottom=0,X.height="100%",X.width=g,L?X.left=U:X.right=U):(K.width=8,K.top=0,K.bottom=0,L?K.right=0:K.left=0,X.width="100%",X.height=g,X.top=U),d.createElement("div",{ref:D,className:M()(Y,(n={},(0,i.Z)(n,"".concat(Y,"-horizontal"),p),(0,i.Z)(n,"".concat(Y,"-vertical"),!p),(0,i.Z)(n,"".concat(Y,"-visible"),$),n)),style:(0,a.Z)((0,a.Z)({},K),v),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:z},d.createElement("div",{ref:P,className:M()("".concat(Y,"-thumb"),(0,i.Z)({},"".concat(Y,"-thumb-moving"),x)),style:(0,a.Z)((0,a.Z)({},X),y),onMouseDown:V}))}));const Ur=Wr;function Zr(e){var t=e.children,n=e.setRef,r=d.useCallback((function(e){n(e)}),[]);return d.cloneElement(t,{ref:r})}const Vr=function(){function e(){(0,we.Z)(this,e),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,xe.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}}]),e}();var Gr=10;function qr(e,t,n){var r=d.useState(e),o=(0,s.Z)(r,2),i=o[0],a=o[1],l=d.useState(null),u=(0,s.Z)(l,2),c=u[0],f=u[1];return d.useEffect((function(){var r=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var s={__EMPTY_ITEM__:!0};function l(e){return void 0!==e?n(e):s}for(var u=null,c=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=l(r[d]);if(f!==l(o[d])){u=d,c=c||f!==l(o[d+1]);break}}return null===u?null:{index:u,multiple:c}}(i||[],e||[],t);void 0!==(null==r?void 0:r.index)&&(null==n||n(r.index),f(e[r.index])),a(e)}),[e]),[c]}const Yr="object"===("undefined"==typeof navigator?"undefined":(0,c.Z)(navigator))&&/Firefox/i.test(navigator.userAgent),Kr=function(e,t){var n=(0,d.useRef)(!1),r=(0,d.useRef)(null);var o=(0,d.useRef)({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):i&&!n.current||(clearTimeout(r.current),n.current=!0,r.current=setTimeout((function(){n.current=!1}),50)),!n.current&&i}};function Xr(e,t,n,r,o){var i=(0,d.useRef)(0),a=(0,d.useRef)(null),s=(0,d.useRef)(null),l=(0,d.useRef)(!1),u=Kr(t,n);var c=(0,d.useRef)(null),f=(0,d.useRef)(null);return[function(t){if(e){Ue.cancel(f.current),f.current=Ue((function(){c.current=null}),2);var n=t.deltaX,d=t.deltaY,h=t.shiftKey,p=n,g=d;("sx"===c.current||!c.current&&h&&d&&!n)&&(p=d,g=0,c.current="sx");var m=Math.abs(p),v=Math.abs(g);null===c.current&&(c.current=r&&m>v?"x":"y"),"y"===c.current?function(e,t){Ue.cancel(a.current),i.current+=t,s.current=t,u(t)||(Yr||e.preventDefault(),a.current=Ue((function(){var e=l.current?10:1;o(i.current*e),i.current=0})))}(t,g):function(e,t){o(t,!0),Yr||e.preventDefault()}(t,p)}},function(t){e&&(l.current=t.detail===s.current)}]}var Qr=14/15;var Jr=20;function eo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*100;return isNaN(t)&&(t=0),t=Math.max(t,Jr),t=Math.min(t,e/2),Math.floor(t)}var to=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],no=[],ro={overflowY:"auto",overflowAnchor:"none"};function oo(e,t){var n=e.prefixCls,o=void 0===n?"rc-virtual-list":n,l=e.className,f=e.height,p=e.itemHeight,g=e.fullHeight,m=void 0===g||g,v=e.style,b=e.data,w=e.children,x=e.itemKey,S=e.virtual,_=e.direction,E=e.scrollWidth,k=e.component,C=void 0===k?"div":k,A=e.onScroll,T=e.onVirtualScroll,O=e.onVisibleChange,R=e.innerProps,L=e.extraRender,D=e.styles,P=u(e,to),j=!(!1===S||!f||!p),I=j&&b&&(p*b.length>f||!!E),$="rtl"===_,N=M()(o,(0,i.Z)({},"".concat(o,"-rtl"),$),l),F=b||no,z=(0,d.useRef)(),B=(0,d.useRef)(),H=(0,d.useState)(0),W=(0,s.Z)(H,2),U=W[0],Z=W[1],V=(0,d.useState)(0),q=(0,s.Z)(V,2),K=q[0],X=q[1],Q=(0,d.useState)(!1),J=(0,s.Z)(Q,2),ee=J[0],te=J[1],ne=function(){te(!0)},re=function(){te(!1)},oe=d.useCallback((function(e){return"function"==typeof x?x(e):null==e?void 0:e[x]}),[x]),ie={getKey:oe};function ae(e){Z((function(t){var n=function(e){var t=e;Number.isNaN(Re.current)||(t=Math.min(t,Re.current));return t=Math.max(t,0),t}("function"==typeof e?e(t):e);return z.current.scrollTop=n,n}))}var se=(0,d.useRef)({start:0,end:F.length}),le=(0,d.useRef)(),ue=qr(F,oe),ce=(0,s.Z)(ue,1)[0];le.current=ce;var de=function(e,t,n){var r=d.useState(0),o=(0,s.Z)(r,2),i=o[0],a=o[1],l=(0,d.useRef)(new Map),u=(0,d.useRef)(new Vr),c=(0,d.useRef)();function f(){Ue.cancel(c.current)}function h(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];f();var t=function(){l.current.forEach((function(e,t){if(e&&e.offsetParent){var n=Y(e),r=n.offsetHeight;u.current.get(t)!==r&&u.current.set(t,n.offsetHeight)}})),a((function(e){return e+1}))};e?t():c.current=Ue(t)}return(0,d.useEffect)((function(){return f}),[]),[function(r,o){var i=e(r),a=l.current.get(i);o?(l.current.set(i,o),h()):l.current.delete(i),!a!=!o&&(o?null==t||t(r):null==n||n(r))},h,u.current,i]}(oe,null,null),fe=(0,s.Z)(de,4),he=fe[0],pe=fe[1],ge=fe[2],me=fe[3],ve=d.useMemo((function(){if(!j)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};var e;if(!I)return{scrollHeight:(null===(e=B.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:F.length-1,offset:void 0};for(var t,n,r,o=0,i=F.length,a=0;a<i;a+=1){var s=F[a],l=oe(s),u=ge.get(l),c=o+(void 0===u?p:u);c>=U&&void 0===t&&(t=a,n=o),c>U+f&&void 0===r&&(r=a),o=c}return void 0===t&&(t=0,n=0,r=Math.ceil(f/p)),void 0===r&&(r=F.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,F.length-1),offset:n}}),[I,j,U,F,me,f]),ye=ve.scrollHeight,be=ve.start,we=ve.end,xe=ve.offset;se.current.start=be,se.current.end=we;var Se=d.useState({width:0,height:f}),_e=(0,s.Z)(Se,2),Ee=_e[0],ke=_e[1],Ce=(0,d.useRef)(),Ae=(0,d.useRef)(),Te=d.useMemo((function(){return eo(Ee.width,E)}),[Ee.width,E]),Oe=d.useMemo((function(){return eo(Ee.height,ye)}),[Ee.height,ye]),Me=ye-f,Re=(0,d.useRef)(Me);Re.current=Me;var De=U<=0,Pe=U>=Me,je=Kr(De,Pe),Ie=function(){return{x:$?-K:K,y:U}},$e=(0,d.useRef)(Ie()),Ne=h((function(){if(T){var e=Ie();$e.current.x===e.x&&$e.current.y===e.y||(T(e),$e.current=e)}}));function Fe(e,t){var n=e;t?((0,G.flushSync)((function(){X(n)})),Ne()):ae(n)}var ze=function(e){var t=e,n=E-Ee.width;return t=Math.max(t,0),t=Math.min(t,n)},Be=h((function(e,t){t?((0,G.flushSync)((function(){X((function(t){return ze(t+($?-e:e))}))})),Ne()):ae((function(t){return t+e}))})),He=Xr(j,De,Pe,!!E,Be),We=(0,s.Z)(He,2),Ze=We[0],Ve=We[1];!function(e,t,n){var r,o=(0,d.useRef)(!1),i=(0,d.useRef)(0),a=(0,d.useRef)(null),s=(0,d.useRef)(null),l=function(e){if(o.current){var t=Math.ceil(e.touches[0].pageY),r=i.current-t;i.current=t,n(r)&&e.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=Qr,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},u=function(){o.current=!1,r()},c=function(e){r(),1!==e.touches.length||o.current||(o.current=!0,i.current=Math.ceil(e.touches[0].pageY),a.current=e.target,a.current.addEventListener("touchmove",l),a.current.addEventListener("touchend",u))};r=function(){a.current&&(a.current.removeEventListener("touchmove",l),a.current.removeEventListener("touchend",u))},y((function(){return e&&t.current.addEventListener("touchstart",c),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",c),r(),clearInterval(s.current)}}),[e])}(j,z,(function(e,t){return!je(e,t)&&(Ze({preventDefault:function(){},deltaY:e}),!0)})),y((function(){function e(e){j&&e.preventDefault()}var t=z.current;return t.addEventListener("wheel",Ze),t.addEventListener("DOMMouseScroll",Ve),t.addEventListener("MozMousePixelScroll",e),function(){t.removeEventListener("wheel",Ze),t.removeEventListener("DOMMouseScroll",Ve),t.removeEventListener("MozMousePixelScroll",e)}}),[j]),y((function(){E&&X((function(e){return ze(e)}))}),[Ee.width,E]);var Ge=function(){var e,t;null===(e=Ce.current)||void 0===e||e.delayHidden(),null===(t=Ae.current)||void 0===t||t.delayHidden()},qe=function(e,t,n,r,o,i,l,u){var f=d.useRef(),h=d.useState(null),p=(0,s.Z)(h,2),g=p[0],m=p[1];return y((function(){if(g&&g.times<Gr){if(!e.current)return void m((function(e){return(0,a.Z)({},e)}));i();var s=g.targetAlign,u=g.originAlign,c=g.index,d=g.offset,f=e.current.clientHeight,h=!1,p=s,v=null;if(f){for(var y=s||u,b=0,w=0,x=0,S=Math.min(t.length-1,c),_=0;_<=S;_+=1){var E=o(t[_]);w=b;var k=n.get(E);b=x=w+(void 0===k?r:k)}for(var C="top"===y?d:f-d,A=S;A>=0;A-=1){var T=o(t[A]),O=n.get(T);if(void 0===O){h=!0;break}if((C-=O)<=0)break}switch(y){case"top":v=w-d;break;case"bottom":v=x-f+d;break;default:var M=e.current.scrollTop;w<M?p="top":x>M+f&&(p="bottom")}null!==v&&l(v),v!==g.lastTop&&(h=!0)}h&&m((function(e){return(0,a.Z)((0,a.Z)({},e),{},{times:e.times+1,targetAlign:p,lastTop:v})}))}}),[g,e.current]),function(e){if(null!=e){if(Ue.cancel(f.current),"number"==typeof e)l(e);else if(e&&"object"===(0,c.Z)(e)){var n,r=e.align;n="index"in e?e.index:t.findIndex((function(t){return o(t)===e.key}));var i=e.offset;m({times:0,index:n,offset:void 0===i?0:i,originAlign:r})}}else u()}}(z,F,ge,p,oe,(function(){return pe(!0)}),ae,Ge);d.useImperativeHandle(t,(function(){return{getScrollInfo:Ie,scrollTo:function(e){var t;(t=e)&&"object"===(0,c.Z)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&X(ze(e.left)),qe(e.top)):qe(e)}}})),y((function(){if(O){var e=F.slice(be,we+1);O(e,F)}}),[be,we,F]);var Ye=function(e,t,n,r){var o=d.useMemo((function(){return[new Map,[]]}),[e,n.id,r]),i=(0,s.Z)(o,2),a=i[0],l=i[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=a.get(o),u=a.get(i);if(void 0===s||void 0===u)for(var c=e.length,d=l.length;d<c;d+=1){var f,h=e[d],p=t(h);a.set(p,d);var g=null!==(f=n.get(p))&&void 0!==f?f:r;if(l[d]=(l[d-1]||0)+g,p===o&&(s=d),p===i&&(u=d),void 0!==s&&void 0!==u)break}return{top:l[s-1]||0,bottom:l[u]}}}(F,oe,ge,p),Ke=null==L?void 0:L({start:be,end:we,virtual:I,offsetX:K,offsetY:xe,rtl:$,getSize:Ye}),Xe=function(e,t,n,r,o,i,a){var s=a.getKey;return e.slice(t,n+1).map((function(e,n){var a=i(e,t+n,{style:{width:r}}),l=s(e);return d.createElement(Zr,{key:l,setRef:function(t){return o(e,t)}},a)}))}(F,be,we,E,he,w,ie),Qe=null;f&&(Qe=(0,a.Z)((0,i.Z)({},m?"height":"maxHeight",f),ro),j&&(Qe.overflowY="hidden",E&&(Qe.overflowX="hidden"),ee&&(Qe.pointerEvents="none")));var Je={};return $&&(Je.dir="rtl"),d.createElement("div",(0,r.Z)({style:(0,a.Z)((0,a.Z)({},v),{},{position:"relative"}),className:N},Je,P),d.createElement(Le,{onResize:function(e){ke(e)}},d.createElement(C,{className:"".concat(o,"-holder"),style:Qe,ref:z,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==U&&ae(t),null==A||A(e),Ne()},onMouseEnter:Ge},d.createElement(Br,{prefixCls:o,height:ye,offsetX:K,offsetY:xe,scrollWidth:E,onInnerResize:pe,ref:B,innerProps:R,rtl:$,extra:Ke},Xe))),I&&ye>f&&d.createElement(Ur,{ref:Ce,prefixCls:o,scrollOffset:U,scrollRange:ye,rtl:$,onScroll:Fe,onStartMove:ne,onStopMove:re,spinSize:Oe,containerSize:Ee.height,style:null==D?void 0:D.verticalScrollBar,thumbStyle:null==D?void 0:D.verticalScrollBarThumb}),I&&E&&d.createElement(Ur,{ref:Ae,prefixCls:o,scrollOffset:K,scrollRange:E,rtl:$,onScroll:Fe,onStartMove:ne,onStopMove:re,spinSize:Te,containerSize:Ee.width,horizontal:!0,style:null==D?void 0:D.horizontalScrollBar,thumbStyle:null==D?void 0:D.horizontalScrollBarThumb}))}var io=d.forwardRef(oo);io.displayName="List";const ao=io;const so=d.createContext(null);var lo=["disabled","title","children","style","className"];function uo(e){return"string"==typeof e||"number"==typeof e}var co=function(e,t){var n=d.useContext(B),l=n.prefixCls,c=n.id,f=n.open,h=n.multiple,p=n.mode,g=n.searchValue,m=n.toggleOpen,v=n.notFoundContent,y=n.onPopupScroll,b=d.useContext(so),w=b.flattenOptions,x=b.onActiveValue,S=b.defaultActiveFirstOption,_=b.onSelect,E=b.menuItemSelectedIcon,k=b.rawValues,C=b.fieldNames,A=b.virtual,T=b.direction,O=b.listHeight,R=b.listItemHeight,L="".concat(l,"-item"),P=j((function(){return w}),[f,w],(function(e,t){return t[0]&&e[1]!==t[1]})),I=d.useRef(null),$=function(e){e.preventDefault()},N=function(e){I.current&&I.current.scrollTo("number"==typeof e?{index:e}:e)},F=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=P.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=P[o],a=i.group,s=i.data;if(!a&&!s.disabled)return o}return-1},H=d.useState((function(){return F(0)})),W=(0,s.Z)(H,2),U=W[0],V=W[1],G=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];V(e);var n={source:t?"keyboard":"mouse"},r=P[e];r?x(r.value,e,n):x(null,-1,n)};(0,d.useEffect)((function(){G(!1!==S?F(0):-1)}),[P.length,g]);var q=d.useCallback((function(e){return k.has(e)&&"combobox"!==p}),[p,(0,o.Z)(k).toString(),k.size]);(0,d.useEffect)((function(){var e,t=setTimeout((function(){if(!h&&f&&1===k.size){var e=Array.from(k)[0],t=P.findIndex((function(t){return t.data.value===e}));-1!==t&&(G(t),N(t))}}));f&&(null===(e=I.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}}),[f,g,w.length]);var Y=function(e){void 0!==e&&_(e,{selected:!k.has(e)}),h||m(!1)};if(d.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case D.N:case D.P:case D.UP:case D.DOWN:var r=0;if(t===D.UP?r=-1:t===D.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===D.N?r=1:t===D.P&&(r=-1)),0!==r){var o=F(U+r,r);N(o),G(o,!0)}break;case D.ENTER:var i=P[U];i&&!i.data.disabled?Y(i.value):Y(void 0),f&&e.preventDefault();break;case D.ESC:m(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){N(e)}}})),0===P.length)return d.createElement("div",{role:"listbox",id:"".concat(c,"_list"),className:"".concat(L,"-empty"),onMouseDown:$},v);var K=Object.keys(C).map((function(e){return C[e]})),X=function(e){return e.label};function Q(e,t){return{role:e.group?"presentation":"option",id:"".concat(c,"_list_").concat(t)}}var J=function(e){var t=P[e];if(!t)return null;var n=t.data||{},o=n.value,i=t.group,a=Z(n,!0),s=X(t);return t?d.createElement("div",(0,r.Z)({"aria-label":"string"!=typeof s||i?null:s},a,{key:e},Q(t,e),{"aria-selected":q(o)}),o):null},ee={role:"listbox",id:"".concat(c,"_list")};return d.createElement(d.Fragment,null,A&&d.createElement("div",(0,r.Z)({},ee,{style:{height:0,width:0,overflow:"hidden"}}),J(U-1),J(U),J(U+1)),d.createElement(ao,{itemKey:"key",ref:I,data:P,height:O,itemHeight:R,fullHeight:!1,onMouseDown:$,onScroll:y,virtual:A,direction:T,innerProps:A?null:ee},(function(e,t){var n,o=e.group,s=e.groupOption,l=e.data,c=e.label,f=e.value,h=l.key;if(o){var p,g=null!==(p=l.title)&&void 0!==p?p:uo(c)?c.toString():void 0;return d.createElement("div",{className:M()(L,"".concat(L,"-group")),title:g},void 0!==c?c:h)}var m,v,y,b=l.disabled,w=l.title,x=(l.children,l.style),S=l.className,_=u(l,lo),k=(m=_,v=K,y=(0,a.Z)({},m),Array.isArray(v)&&v.forEach((function(e){delete y[e]})),y),C=q(f),T="".concat(L,"-option"),O=M()(L,T,S,(n={},(0,i.Z)(n,"".concat(T,"-grouped"),s),(0,i.Z)(n,"".concat(T,"-active"),U===t&&!b),(0,i.Z)(n,"".concat(T,"-disabled"),b),(0,i.Z)(n,"".concat(T,"-selected"),C),n)),R=X(e),D=!E||"function"==typeof E||C,P="number"==typeof R?R:R||f,j=uo(P)?P.toString():void 0;return void 0!==w&&(j=w),d.createElement("div",(0,r.Z)({},Z(k),A?{}:Q(e,t),{"aria-selected":C,className:O,title:j,onMouseMove:function(){U===t||b||G(t)},onClick:function(){b||Y(f)},style:x}),d.createElement("div",{className:"".concat(T,"-content")},P),d.isValidElement(E)||C,D&&d.createElement(z,{className:"".concat(L,"-option-state"),customizeIcon:E,customizeIconProps:{value:f,disabled:b,isSelected:C}},C?"✓":null))})))},fo=d.forwardRef(co);fo.displayName="OptionList";const ho=fo;var po=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],go=["inputValue"];var mo=d.forwardRef((function(e,t){var n=e.id,l=e.mode,f=e.prefixCls,h=void 0===f?"rc-select":f,p=e.backfill,g=e.fieldNames,m=e.inputValue,v=e.searchValue,y=e.onSearch,b=e.autoClearSearchValue,w=void 0===b||b,S=e.onSelect,_=e.onDeselect,E=e.dropdownMatchSelectWidth,k=void 0===E||E,C=e.filterOption,A=e.filterSort,T=e.optionFilterProp,O=e.optionLabelProp,M=e.options,R=e.children,L=e.defaultActiveFirstOption,D=e.menuItemSelectedIcon,P=e.virtual,j=e.direction,I=e.listHeight,$=void 0===I?200:I,N=e.listItemHeight,F=void 0===N?20:N,z=e.value,B=e.defaultValue,H=e.labelInValue,W=e.onChange,U=u(e,po),Z=Rr(n),V=kr(l),G=!(M||!R),q=d.useMemo((function(){return(void 0!==C||"combobox"!==l)&&C}),[C,l]),Y=d.useMemo((function(){return wr(g,G)}),[JSON.stringify(g),G]),K=x("",{value:void 0!==v?v:m,postState:function(e){return e||""}}),X=(0,s.Z)(K,2),Q=X[0],J=X[1],ee=function(e,t,n,r,o){return d.useMemo((function(){var i=e;!e&&(i=Pr(t));var a=new Map,s=new Map,l=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=0;u<t.length;u+=1){var c=t[u];!c[n.options]||i?(a.set(c[n.value],c),l(s,c,n.label),l(s,c,r),l(s,c,o)):e(c[n.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:s}}),[e,t,n,r,o])}(M,R,Y,T,O),te=ee.valueOptions,ne=ee.labelOptions,re=ee.options,oe=d.useCallback((function(e){return ct(e).map((function(e){var t,n,r,o,i,a;(function(e){return!e||"object"!==(0,c.Z)(e)})(e)?t=e:(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r);var s,l=te.get(t);l&&(void 0===n&&(n=null==l?void 0:l[O||Y.label]),void 0===r&&(r=null!==(s=null==l?void 0:l.key)&&void 0!==s?s:t),o=null==l?void 0:l.disabled,i=null==l?void 0:l.title);return{label:n,value:t,key:r,disabled:o,title:i}}))}),[Y,O,te]),ie=x(B,{value:z}),ae=(0,s.Z)(ie,2),se=ae[0],le=ae[1],ue=d.useMemo((function(){var e,t=oe(se);return"combobox"===l&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t}),[se,oe,l]),ce=function(e,t){var n=d.useRef({values:new Map,options:new Map});return[d.useMemo((function(){var r=n.current,o=r.values,i=r.options,s=e.map((function(e){var t;return void 0===e.label?(0,a.Z)((0,a.Z)({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e})),l=new Map,u=new Map;return s.forEach((function(e){l.set(e.value,e),u.set(e.value,t.get(e.value)||i.get(e.value))})),n.current.values=l,n.current.options=u,s}),[e,t]),d.useCallback((function(e){return t.get(e)||n.current.options.get(e)}),[t])]}(ue,te),de=(0,s.Z)(ce,2),fe=de[0],he=de[1],pe=d.useMemo((function(){if(!l&&1===fe.length){var e=fe[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return fe.map((function(e){var t;return(0,a.Z)((0,a.Z)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[l,fe]),ge=d.useMemo((function(){return new Set(fe.map((function(e){return e.value})))}),[fe]);d.useEffect((function(){if("combobox"===l){var e,t=null===(e=fe[0])||void 0===e?void 0:e.value;J(function(e){return null!=e}(t)?String(t):"")}}),[fe]);var me=jr((function(e,t){var n,r=null!=t?t:e;return n={},(0,i.Z)(n,Y.value,e),(0,i.Z)(n,Y.label,r),n})),ve=function(e,t,n,r,o){return d.useMemo((function(){if(!n||!1===r)return e;var s=t.options,l=t.label,u=t.value,c=[],d="function"==typeof r,f=n.toUpperCase(),h=d?r:function(e,t){return o?Tr(t[o],f):t[s]?Tr(t["children"!==l?l:"label"],f):Tr(t[u],f)},p=d?function(e){return xr(e)}:function(e){return e};return e.forEach((function(e){if(e[s])if(h(n,p(e)))c.push(e);else{var t=e[s].filter((function(e){return h(n,p(e))}));t.length&&c.push((0,a.Z)((0,a.Z)({},e),{},(0,i.Z)({},s,t)))}else h(n,p(e))&&c.push(e)})),c}),[e,r,o,n,t])}(d.useMemo((function(){if("tags"!==l)return re;var e=(0,o.Z)(re);return(0,o.Z)(fe).sort((function(e,t){return e.value<t.value?-1:1})).forEach((function(t){var n=t.value;(function(e){return te.has(e)})(n)||e.push(me(n,t.label))})),e}),[me,re,te,fe,l]),Y,Q,q,T),ye=d.useMemo((function(){return"tags"!==l||!Q||ve.some((function(e){return e[T||"value"]===Q}))||ve.some((function(e){return e[Y.value]===Q}))?ve:[me(Q)].concat((0,o.Z)(ve))}),[me,T,l,ve,Q,Y]),be=d.useMemo((function(){return A?(0,o.Z)(ye).sort((function(e,t){return A(e,t)})):ye}),[ye,A]),we=d.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=wr(n,!1),a=i.label,s=i.value,l=i.options,u=i.groupLabel;return function e(t,n){t.forEach((function(t){if(n||!(l in t)){var i=t[s];o.push({key:br(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var c=t[u];void 0===c&&r&&(c=t.label),o.push({key:br(t,o.length),group:!0,data:t,label:c}),e(t[l],!0)}}))}(e,!1),o}(be,{fieldNames:Y,childrenAsData:G})}),[be,Y,G]),xe=function(e){var t=oe(e);if(le(t),W&&(t.length!==fe.length||t.some((function(e,t){var n;return(null===(n=fe[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)})))){var n=H?t:t.map((function(e){return e.value})),r=t.map((function(e){return xr(he(e.value))}));W(V?n:n[0],V?r:r[0])}},Se=d.useState(null),_e=(0,s.Z)(Se,2),Ee=_e[0],ke=_e[1],Ce=d.useState(0),Ae=(0,s.Z)(Ce,2),Te=Ae[0],Oe=Ae[1],Me=void 0!==L?L:"combobox"!==l,Re=d.useCallback((function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Oe(t),p&&"combobox"===l&&null!==e&&"keyboard"===r&&ke(String(e))}),[p,l]),Le=function(e,t,n){var r=function(){var t,n=he(e);return[H?{label:null==n?void 0:n[Y.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,xr(n)]};if(t&&S){var o=r(),i=(0,s.Z)(o,2),a=i[0],l=i[1];S(a,l)}else if(!t&&_&&"clear"!==n){var u=r(),c=(0,s.Z)(u,2),d=c[0],f=c[1];_(d,f)}},De=jr((function(e,t){var n,r=!V||t.selected;n=r?V?[].concat((0,o.Z)(fe),[e]):[e]:fe.filter((function(t){return t.value!==e})),xe(n),Le(e,r),"combobox"===l?ke(""):kr&&!w||(J(""),ke(""))})),Pe=d.useMemo((function(){var e=!1!==P&&!1!==k;return(0,a.Z)((0,a.Z)({},ee),{},{flattenOptions:we,onActiveValue:Re,defaultActiveFirstOption:Me,onSelect:De,menuItemSelectedIcon:D,rawValues:ge,fieldNames:Y,virtual:e,direction:j,listHeight:$,listItemHeight:F,childrenAsData:G})}),[ee,we,Re,Me,De,D,ge,Y,P,k,$,F,G]);return d.createElement(so.Provider,{value:Pe},d.createElement(Ar,(0,r.Z)({},U,{id:Z,prefixCls:h,ref:t,omitDomProps:go,mode:l,displayValues:pe,onDisplayValuesChange:function(e,t){xe(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach((function(e){Le(e.value,!1,n)}))},direction:j,searchValue:Q,onSearch:function(e,t){if(J(e),ke(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===l&&xe(e),null==y||y(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat((0,o.Z)(ge),[n])));xe(r),Le(n,!0),J("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var t=e;"tags"!==l&&(t=e.map((function(e){var t=ne.get(e);return null==t?void 0:t.value})).filter((function(e){return void 0!==e})));var n=Array.from(new Set([].concat((0,o.Z)(ge),(0,o.Z)(t))));xe(n),n.forEach((function(e){Le(e,!0)}))},dropdownMatchSelectWidth:k,OptionList:ho,emptyOptions:!we.length,activeValue:Ee,activeDescendantId:"".concat(Z,"_list_").concat(Te)})))}));var vo=mo;vo.Option=Fr,vo.OptGroup=$r;const yo=vo},57467:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function S(e){return x(e)===d}t.isFragment=function(e){return x(e)===i},t.isMemo=function(e){return x(e)===g}},71818:(e,t,n)=>{"use strict";e.exports=n(57467)},48709:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(95095),s=n(13980),l=n(2784),u=n(33958),c=n(47662),d=(0,c.getAceInstance)(),f=function(e){function t(t){var n=e.call(this,t)||this;return c.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=c.debounce,n}return o(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,r=t.onBeforeLoad,o=t.onValidate,i=t.mode,a=t.focus,s=t.theme,l=t.fontSize,u=t.value,f=t.defaultValue,h=t.showGutter,p=t.wrapEnabled,g=t.showPrintMargin,m=t.scrollMargin,v=void 0===m?[0,0,0,0]:m,y=t.keyboardHandler,b=t.onLoad,w=t.commands,x=t.annotations,S=t.markers,_=t.placeholder;this.editor=d.edit(this.refEditor),r&&r(d);for(var E=Object.keys(this.props.editorProps),k=0;k<E.length;k++)this.editor[E[k]]=this.props.editorProps[E[k]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("string"==typeof i?"ace/mode/".concat(i):i),s&&""!==s&&this.editor.setTheme("ace/theme/".concat(s)),this.editor.setFontSize("number"==typeof l?"".concat(l,"px"):l),this.editor.getSession().setValue(f||(u||"")),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(h),this.editor.getSession().setUseWrapMode(p),this.editor.setShowPrintMargin(g),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),_&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),o&&this.editor.getSession().on("changeAnnotation",(function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)})),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(x||[]),S&&S.length>0&&this.handleMarkers(S);var C=this.editor.$options;c.editorOptions.forEach((function(t){C.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option ".concat(t," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))})),this.handleOptions(this.props),Array.isArray(w)&&w.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),y&&this.editor.setKeyboardHandler("ace/keyboard/"+y),n&&(this.refEditor.className+=" "+n),b&&b(this.editor),this.editor.resize(),a&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,n=this.props,r=0;r<c.editorOptions.length;r++){var o=c.editorOptions[r];n[o]!==t[o]&&this.editor.setOption(o,n[o])}if(n.className!==t.className){var i=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach((function(e){var t=i.indexOf(e);i.splice(t,1)})),this.refEditor.className=" "+n.className+" "+i.join(" ")}var a=this.editor&&null!=n.value&&this.editor.getValue()!==n.value;if(a){this.silent=!0;var s=this.editor.session.selection.toJSON();this.editor.setValue(n.value,n.cursorStart),this.editor.session.selection.fromJSON(s),this.silent=!1}n.placeholder!==t.placeholder&&this.updatePlaceholder(),n.mode!==t.mode&&this.editor.getSession().setMode("string"==typeof n.mode?"ace/mode/".concat(n.mode):n.mode),n.theme!==t.theme&&this.editor.setTheme("ace/theme/"+n.theme),n.keyboardHandler!==t.keyboardHandler&&(n.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):this.editor.setKeyboardHandler(null)),n.fontSize!==t.fontSize&&this.editor.setFontSize("number"==typeof n.fontSize?"".concat(n.fontSize,"px"):n.fontSize),n.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(n.showPrintMargin),n.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(n.showGutter),u(n.setOptions,t.setOptions)||this.handleOptions(n),!a&&u(n.annotations,t.annotations)||this.editor.getSession().setAnnotations(n.annotations||[]),!u(n.markers,t.markers)&&Array.isArray(n.markers)&&this.handleMarkers(n.markers),u(n.scrollMargin,t.scrollMargin)||this.handleScrollMargins(n.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),n=0;n<t.length;n++)this.editor.setOption(t[n],e.setOptions[t[n]])},t.prototype.handleMarkers=function(e){var t=this,n=this.editor.getSession().getMarkers(!0);for(var r in n)n.hasOwnProperty(r)&&this.editor.getSession().removeMarker(n[r].id);for(var r in n=this.editor.getSession().getMarkers(!1))n.hasOwnProperty(r)&&"ace_active-line"!==n[r].clazz&&"ace_selected-word"!==n[r].clazz&&this.editor.getSession().removeMarker(n[r].id);e.forEach((function(e){var n=e.startRow,r=e.startCol,o=e.endRow,i=e.endCol,s=e.className,l=e.type,u=e.inFront,c=void 0!==u&&u,d=new a.Range(n,r,o,i);t.editor.getSession().addMarker(d,s,l,c)}))},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,n=!e.session.getValue().length,r=e.renderer.placeholderNode;!n&&r?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):n&&!r?((r=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",r.className="ace_comment ace_placeholder",r.style.padding="0 9px",r.style.position="absolute",r.style.zIndex="3",e.renderer.scroller.appendChild(r)):n&&r&&(r.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,r=e.height,o=e.style,a=i({width:n,height:r},o);return l.createElement("div",{ref:this.updateRef,id:t,style:a})},t.propTypes={mode:s.oneOfType([s.string,s.object]),focus:s.bool,theme:s.string,name:s.string,className:s.string,height:s.string,width:s.string,fontSize:s.oneOfType([s.number,s.string]),showGutter:s.bool,onChange:s.func,onCopy:s.func,onPaste:s.func,onFocus:s.func,onInput:s.func,onBlur:s.func,onScroll:s.func,value:s.string,defaultValue:s.string,onLoad:s.func,onSelectionChange:s.func,onCursorChange:s.func,onBeforeLoad:s.func,onValidate:s.func,minLines:s.number,maxLines:s.number,readOnly:s.bool,highlightActiveLine:s.bool,tabSize:s.number,showPrintMargin:s.bool,cursorStart:s.number,debounceChangePeriod:s.number,editorProps:s.object,setOptions:s.object,style:s.object,scrollMargin:s.array,annotations:s.array,markers:s.array,keyboardHandler:s.string,wrapEnabled:s.bool,enableSnippets:s.bool,enableBasicAutocompletion:s.oneOfType([s.bool,s.array]),enableLiveAutocompletion:s.oneOfType([s.bool,s.array]),navigateToFileEnd:s.bool,commands:s.array,placeholder:s.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(l.Component);t.default=f},56546:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(13980),a=n(2784),s=n(82537),l=n(11427),u=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.props.value},n.onChange=n.onChange.bind(n),n.diff=n.diff.bind(n),n}return o(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new l,t=this.state.value[0],n=this.state.value[1];if(0===t.length&&0===n.length)return[];var r=e.diff_main(t,n);e.diff_cleanupSemantic(r);var o=this.generateDiffedLines(r);return this.setCodeMarkers(o)},t.prototype.generateDiffedLines=function(e){var t=0,n=-1,r=1,o={left:[],right:[]},i={left:1,right:1};return e.forEach((function(e){var a=e[0],s=e[1],l=s.split("\n").length-1;if(0!==s.length){var u=s[0],c=s[s.length-1],d=0;switch(a){case t:i.left+=l,i.right+=l;break;case n:"\n"===u&&(i.left++,l--),0===(d=l)&&o.right.push({startLine:i.right,endLine:i.right}),"\n"===c&&(d-=1),o.left.push({startLine:i.left,endLine:i.left+d}),i.left+=l;break;case r:"\n"===u&&(i.right++,l--),0===(d=l)&&o.left.push({startLine:i.left,endLine:i.left}),"\n"===c&&(d-=1),o.right.push({startLine:i.right,endLine:i.right+d}),i.right+=l;break;default:throw new Error("Diff type was not defined.")}}})),o},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],n={left:[],right:[]},r=0;r<e.left.length;r++){var o={startRow:e.left[r].startLine-1,endRow:e.left[r].endLine,type:"text",className:"codeMarker"};n.left.push(o)}for(r=0;r<e.right.length;r++){o={startRow:e.right[r].startLine-1,endRow:e.right[r].endLine,type:"text",className:"codeMarker"};n.right.push(o)}return t[0]=n.left,t[1]=n.right,t},t.prototype.render=function(){var e=this.diff();return a.createElement(s.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})},t.propTypes={cursorStart:i.number,editorProps:i.object,enableBasicAutocompletion:i.bool,enableLiveAutocompletion:i.bool,focus:i.bool,fontSize:i.number,height:i.string,highlightActiveLine:i.bool,maxLines:i.number,minLines:i.number,mode:i.string,name:i.string,className:i.string,onLoad:i.func,onPaste:i.func,onScroll:i.func,onChange:i.func,orientation:i.string,readOnly:i.bool,scrollMargin:i.array,setOptions:i.object,showGutter:i.bool,showPrintMargin:i.bool,splits:i.number,style:i.object,tabSize:i.number,theme:i.string,value:i.array,width:i.string,wrapEnabled:i.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(a.Component);t.default=u},47662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAceInstance=t.debounce=t.editorEvents=t.editorOptions=void 0;t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];t.getAceInstance=function(){var e;return"undefined"==typeof window?(n.g.window={},e=n(95095),delete n.g.window):window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=n(95095),e};t.debounce=function(e,t){var n=null;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},21291:(e,t,n)=>{"use strict";var r=n(48709);n(56546).default,n(82537).default,t.ZP=r.default},82537:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(47662),s=(0,a.getAceInstance)(),l=n(95095),u=n(57740),c=n(13980),d=n(2784),f=n(33958),h=n(77485),p=function(e){function t(t){var n=e.call(this,t)||this;return a.editorEvents.forEach((function(e){n[e]=n[e].bind(n)})),n.debounce=a.debounce,n}return o(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.className,r=t.onBeforeLoad,o=t.mode,i=t.focus,l=t.theme,c=t.fontSize,d=t.value,f=t.defaultValue,p=t.cursorStart,g=t.showGutter,m=t.wrapEnabled,v=t.showPrintMargin,y=t.scrollMargin,b=void 0===y?[0,0,0,0]:y,w=t.keyboardHandler,x=t.onLoad,S=t.commands,_=t.annotations,E=t.markers,k=t.splits;this.editor=s.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(l)),r&&r(s);var C=Object.keys(this.props.editorProps),A=new u.Split(this.editor.container,"ace/theme/".concat(l),k);this.editor.env.split=A,this.splitEditor=A.getEditor(0),this.split=A,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var T=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),A.forEach((function(t,n){for(var r=0;r<C.length;r++)t[C[r]]=e.props.editorProps[C[r]];var i=h(f,n),u=h(d,n,"");t.session.setUndoManager(new s.UndoManager),t.setTheme("ace/theme/".concat(l)),t.renderer.setScrollMargin(b[0],b[1],b[2],b[3]),t.getSession().setMode("ace/mode/".concat(o)),t.setFontSize(c),t.renderer.setShowGutter(g),t.getSession().setUseWrapMode(m),t.setShowPrintMargin(v),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===i?u:i,p);var y=h(_,n,[]),x=h(E,n,[]);t.getSession().setAnnotations(y),x&&x.length>0&&e.handleMarkers(x,t);for(r=0;r<a.editorOptions.length;r++){var k=a.editorOptions[r];T.hasOwnProperty(k)?t.setOption(k,e.props[k]):e.props[k]&&console.warn("ReaceAce: editor option ".concat(k," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}e.handleOptions(e.props,t),Array.isArray(S)&&S.forEach((function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)})),w&&t.setKeyboardHandler("ace/keyboard/"+w)})),n&&(this.refEditor.className+=" "+n),i&&this.splitEditor.focus();var O=this.editor.env.split;O.setOrientation("below"===this.props.orientation?O.BELOW:O.BESIDE),O.resize(!0),x&&x(O)},t.prototype.componentDidUpdate=function(e){var t=this,n=e,r=this.props,o=this.editor.env.split;if(r.splits!==n.splits&&o.setSplits(r.splits),r.orientation!==n.orientation&&o.setOrientation("below"===r.orientation?o.BELOW:o.BESIDE),o.forEach((function(e,o){r.mode!==n.mode&&e.getSession().setMode("ace/mode/"+r.mode),r.keyboardHandler!==n.keyboardHandler&&(r.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+r.keyboardHandler):e.setKeyboardHandler(null)),r.fontSize!==n.fontSize&&e.setFontSize(r.fontSize),r.wrapEnabled!==n.wrapEnabled&&e.getSession().setUseWrapMode(r.wrapEnabled),r.showPrintMargin!==n.showPrintMargin&&e.setShowPrintMargin(r.showPrintMargin),r.showGutter!==n.showGutter&&e.renderer.setShowGutter(r.showGutter);for(var i=0;i<a.editorOptions.length;i++){var s=a.editorOptions[i];r[s]!==n[s]&&e.setOption(s,r[s])}f(r.setOptions,n.setOptions)||t.handleOptions(r,e);var l=h(r.value,o,"");if(e.getValue()!==l){t.silent=!0;var u=e.session.selection.toJSON();e.setValue(l,r.cursorStart),e.session.selection.fromJSON(u),t.silent=!1}var c=h(r.annotations,o,[]),d=h(n.annotations,o,[]);f(c,d)||e.getSession().setAnnotations(c);var p=h(r.markers,o,[]),g=h(n.markers,o,[]);!f(p,g)&&Array.isArray(p)&&t.handleMarkers(p,e)})),r.className!==n.className){var i=this.refEditor.className.trim().split(" ");n.className.trim().split(" ").forEach((function(e){var t=i.indexOf(e);i.splice(t,1)})),this.refEditor.className=" "+r.className+" "+i.join(" ")}r.theme!==n.theme&&o.setTheme("ace/theme/"+r.theme),r.focus&&!n.focus&&this.splitEditor.focus(),r.height===this.props.height&&r.width===this.props.width||this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getValue())})),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var n=Object.keys(e.setOptions),r=0;r<n.length;r++)t.setOption(n[r],e.setOptions[n[r]])},t.prototype.handleMarkers=function(e,t){var n=t.getSession().getMarkers(!0);for(var r in n)n.hasOwnProperty(r)&&t.getSession().removeMarker(n[r].id);for(var r in n=t.getSession().getMarkers(!1))n.hasOwnProperty(r)&&t.getSession().removeMarker(n[r].id);e.forEach((function(e){var n=e.startRow,r=e.startCol,o=e.endRow,i=e.endCol,a=e.className,s=e.type,u=e.inFront,c=void 0!==u&&u,d=new l.Range(n,r,o,i);t.getSession().addMarker(d,a,s,c)}))},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,n=e.width,r=e.height,o=e.style,a=i({width:n,height:r},o);return d.createElement("div",{ref:this.updateRef,id:t,style:a})},t.propTypes={className:c.string,debounceChangePeriod:c.number,defaultValue:c.arrayOf(c.string),focus:c.bool,fontSize:c.oneOfType([c.number,c.string]),height:c.string,mode:c.string,name:c.string,onBlur:c.func,onChange:c.func,onCopy:c.func,onFocus:c.func,onInput:c.func,onLoad:c.func,onPaste:c.func,onScroll:c.func,orientation:c.string,showGutter:c.bool,splits:c.number,theme:c.string,value:c.arrayOf(c.string),width:c.string,onSelectionChange:c.func,onCursorChange:c.func,onBeforeLoad:c.func,minLines:c.number,maxLines:c.number,readOnly:c.bool,highlightActiveLine:c.bool,tabSize:c.number,showPrintMargin:c.bool,cursorStart:c.number,editorProps:c.object,setOptions:c.object,style:c.object,scrollMargin:c.array,annotations:c.array,markers:c.array,keyboardHandler:c.string,wrapEnabled:c.bool,enableBasicAutocompletion:c.oneOfType([c.bool,c.array]),enableLiveAutocompletion:c.oneOfType([c.bool,c.array]),commands:c.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(d.Component);t.default=p},51463:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2784),a=c(i),s=c(n(7151)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(39391)),u=c(n(25809));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=t.Alpha=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=l.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,s.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:r({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return a.default.createElement("div",{style:n.alpha},a.default.createElement("div",{style:n.checkboard},a.default.createElement(u.default,{renderers:this.props.renderers})),a.default.createElement("div",{style:n.gradient}),a.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("div",{style:n.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:n.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=f},25809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(2784),i=l(o),a=l(n(7151)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(26127));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.Checkboard=function(e){var t=e.white,n=e.grey,l=e.size,u=e.renderers,c=e.borderRadius,d=e.boxShadow,f=e.children,h=(0,a.default)({default:{grid:{borderRadius:c,boxShadow:d,absolute:"0px 0px 0px 0px",background:"url("+s.get(t,n,l,u.canvas)+") center left"}}});return(0,o.isValidElement)(f)?i.default.cloneElement(f,r({},f.props,{style:r({},f.props.style,h.grid)})):i.default.createElement("div",{style:h.grid})};u.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=u},52925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2784),a=u(i),s=u(n(54073)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(25327));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(l.simpleCheckForValidColor(e)){var r=l.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(l.simpleCheckForValidColor(e)){var r=l.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=r({},l.toState(e.color,0)),t.debounce=(0,s.default)((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),a.default.createElement(e,r({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return r({},l.toState(e.color,t.oldHue))}}]),n}(i.PureComponent||i.Component);return t.propTypes=r({},e.propTypes),t.defaultProps=r({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=c},90066:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2784),i=s(o),a=s(n(7151));function s(e){return e&&e.__esModule?e:{default:e}}var l=[38,40],u=1,c=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,l.indexOf(t)>-1)){var o=n.getArrowOffset(),i=38===e.keyCode?r+o:r-o;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n.inputId="rc-editable-input-"+u++,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return i.default.createElement("div",{style:t.wrap},i.default.createElement("input",{id:this.inputId,style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?i.default.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(o.PureComponent||o.Component);t.default=c},71780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2784),i=l(o),a=l(n(7151)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(52e3));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=t.Hue=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.handleChange=function(e){var t=s.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,a.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return i.default.createElement("div",{style:r.hue},i.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),i.default.createElement("div",{style:r.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:r.slider}))))}}]),t}(o.PureComponent||o.Component);t.default=c},64410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=s(n(2784)),o=s(n(13980)),i=s(n(7151)),a=s(n(98537));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.Raised=function(e){var t=e.zDepth,n=e.radius,o=e.background,s=e.children,l=e.styles,u=void 0===l?{}:l,c=(0,i.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},u),{"zDepth-1":1===t});return r.default.createElement("div",{style:c.wrap},r.default.createElement("div",{style:c.bg}),r.default.createElement("div",{style:c.content},s))};l.propTypes={background:o.default.string,zDepth:o.default.oneOf([0,1,2,3,4,5]),radius:o.default.number,styles:o.default.object},l.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=l},2361:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(2784),i=u(o),a=u(n(7151)),s=u(n(12436)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(16026));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,l.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e);var t=n.getContainerRenderWindow();t.addEventListener("mousemove",n.handleChange),t.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,s.default)((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,t=window;!t.document.contains(e)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,s=t.pointer,l=t.circle,u=(0,a.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:s,circle:l}},{custom:!!this.props.style});return i.default.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),i.default.createElement("div",{style:u.white,className:"saturation-white"},i.default.createElement("div",{style:u.black,className:"saturation-black"}),i.default.createElement("div",{style:u.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:u.circle}))))}}]),t}(o.PureComponent||o.Component);t.default=c},25923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=l(n(2784)),i=l(n(7151)),a=n(88888),s=l(n(25809));function l(e){return e&&e.__esModule?e:{default:e}}var u=t.Swatch=function(e){var t=e.color,n=e.style,a=e.onClick,l=void 0===a?function(){}:a,u=e.onHover,c=e.title,d=void 0===c?t:c,f=e.children,h=e.focus,p=e.focusStyle,g=void 0===p?{}:p,m="transparent"===t,v=(0,i.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?g:{})}}),y={};return u&&(y.onMouseOver=function(e){return u(t,e)}),o.default.createElement("div",r({style:v.swatch,onClick:function(e){return l(t,e)},title:d,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&l(t,e)}},y),f,m&&o.default.createElement(s.default,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,a.handleFocus)(u)},92375:(e,t,n)=>{"use strict";var r=n(51463);Object.defineProperty(t,"xV",{enumerable:!0,get:function(){return d(r).default}});var o=n(25809);var i=n(90066);var a=n(71780);Object.defineProperty(t,"PS",{enumerable:!0,get:function(){return d(a).default}});var s=n(64410);var l=n(2361);Object.defineProperty(t,"OQ",{enumerable:!0,get:function(){return d(l).default}});var u=n(52925);var c=n(25923);function d(e){return e&&e.__esModule?e:{default:e}}},39391:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,o){var i=o.clientWidth,a=o.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=s-(o.getBoundingClientRect().left+window.pageXOffset),c=l-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var d=void 0;if(d=c<0?0:c>a?1:Math.round(100*c/a)/100,t.a!==d)return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}else{var f=void 0;if(r!==(f=u<0?0:u>i?1:Math.round(100*u/i)/100))return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}return null}},26127:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},r=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var i=o.getContext("2d");return i?(i.fillStyle=e,i.fillRect(0,0,o.width,o.height),i.fillStyle=t,i.fillRect(0,0,n,n),i.translate(n,n),i.fillRect(0,0,n,n),o.toDataURL()):null};t.get=function(e,t,o,i){var a=e+"-"+t+"-"+o+(i?"-server":"");if(n[a])return n[a];var s=r(e,t,o,i);return n[a]=s,s}},25327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isvalidColorString=t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=i(n(79421)),o=i(n(80184));function i(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e};var a=t.toState=function(e,t){var n=e.hex?(0,o.default)(e.hex):(0,o.default)(e),r=n.toHsl(),i=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,i.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:i,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){if("transparent"===e)return!0;var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=a(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},t.isvalidColorString=function(e,t){var n=e.replace("°","");return(0,o.default)(t+" ("+n+")")._ok}},52e3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){var o=r.clientWidth,i=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(r.getBoundingClientRect().left+window.pageXOffset),u=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(u<0)c=359;else if(u>i)c=0;else{c=360*(-100*u/i+100)/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var d=void 0;if(l<0)d=0;else if(l>o)d=359;else{d=360*(100*l/o)/100}if(n.h!==d)return{h:d,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}},88888:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2784),s=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return t=n=l(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(i))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},l(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),i(r,[{key:"render",value:function(){return s.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},s.default.createElement(e,o({},this.props,this.state)))}}]),r}(s.default.Component)}},16026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,i=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,l=a-(n.getBoundingClientRect().left+window.pageXOffset),u=s-(n.getBoundingClientRect().top+window.pageYOffset);l<0?l=0:l>o&&(l=o),u<0?u=0:u>i&&(u=i);var c=l/o,d=1-u/i;return{h:t.h,s:c,v:d,a:t.a,source:"hsv"}}},58173:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.renderViewDefault=function(e){return a.default.createElement("div",e)},t.renderTrackHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,left:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderTrackVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{right:2,bottom:2,top:2,borderRadius:3});return a.default.createElement("div",r({style:o},n))},t.renderThumbHorizontalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))},t.renderThumbVerticalDefault=function(e){var t=e.style,n=s(e,["style"]),o=r({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return a.default.createElement("div",r({style:o},n))};var o,i=n(2784),a=(o=i)&&o.__esModule?o:{default:o};function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},23475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(23493),a=v(i),s=v(n(64427)),l=n(2784),u=v(n(13980)),c=v(n(65356)),d=v(n(10677)),f=v(n(3962)),h=v(n(90620)),p=v(n(4114)),g=n(61240),m=n(58173);function v(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this,e].concat(o)));return a.getScrollLeft=a.getScrollLeft.bind(a),a.getScrollTop=a.getScrollTop.bind(a),a.getScrollWidth=a.getScrollWidth.bind(a),a.getScrollHeight=a.getScrollHeight.bind(a),a.getClientWidth=a.getClientWidth.bind(a),a.getClientHeight=a.getClientHeight.bind(a),a.getValues=a.getValues.bind(a),a.getThumbHorizontalWidth=a.getThumbHorizontalWidth.bind(a),a.getThumbVerticalHeight=a.getThumbVerticalHeight.bind(a),a.getScrollLeftForOffset=a.getScrollLeftForOffset.bind(a),a.getScrollTopForOffset=a.getScrollTopForOffset.bind(a),a.scrollLeft=a.scrollLeft.bind(a),a.scrollTop=a.scrollTop.bind(a),a.scrollToLeft=a.scrollToLeft.bind(a),a.scrollToTop=a.scrollToTop.bind(a),a.scrollToRight=a.scrollToRight.bind(a),a.scrollToBottom=a.scrollToBottom.bind(a),a.handleTrackMouseEnter=a.handleTrackMouseEnter.bind(a),a.handleTrackMouseLeave=a.handleTrackMouseLeave.bind(a),a.handleHorizontalTrackMouseDown=a.handleHorizontalTrackMouseDown.bind(a),a.handleVerticalTrackMouseDown=a.handleVerticalTrackMouseDown.bind(a),a.handleHorizontalThumbMouseDown=a.handleHorizontalThumbMouseDown.bind(a),a.handleVerticalThumbMouseDown=a.handleVerticalThumbMouseDown.bind(a),a.handleWindowResize=a.handleWindowResize.bind(a),a.handleScroll=a.handleScroll.bind(a),a.handleDrag=a.handleDrag.bind(a),a.handleDragEnd=a.handleDragEnd.bind(a),a.state={didMountUniversal:!1},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){this.props.universal&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,i.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r,i=e.scrollWidth,a=void 0===i?0:i,s=e.scrollHeight,l=void 0===s?0:s,u=e.clientWidth,c=void 0===u?0:u,d=e.clientHeight,f=void 0===d?0:d;return{left:n/(a-c)||0,top:o/(l-f)||0,scrollLeft:n,scrollTop:o,scrollWidth:a,scrollHeight:l,clientWidth:c,clientHeight:f}}},{key:"getThumbHorizontalWidth",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollWidth,i=r.clientWidth,a=(0,h.default)(this.trackHorizontal),s=Math.ceil(i/o*a);return a===s?0:t||Math.max(s,n)}},{key:"getThumbVerticalHeight",value:function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollHeight,i=r.clientHeight,a=(0,p.default)(this.trackVertical),s=Math.ceil(i/o*a);return a===s?0:t||Math.max(s,n)}},{key:"getScrollLeftForOffset",value:function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/((0,h.default)(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)}},{key:"getScrollTopForOffset",value:function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/((0,p.default)(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)}},{key:"scrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollLeft=e)}},{key:"scrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.view&&(this.view.scrollTop=e)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.addEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.addEventListener("mouseenter",this.handleTrackMouseEnter),t.addEventListener("mouseleave",this.handleTrackMouseLeave),t.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleVerticalTrackMouseDown),r.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if("undefined"!=typeof document&&this.view){var e=this.view,t=this.trackHorizontal,n=this.trackVertical,r=this.thumbHorizontal,o=this.thumbVertical;e.removeEventListener("scroll",this.handleScroll),(0,d.default)()&&(t.removeEventListener("mouseenter",this.handleTrackMouseEnter),t.removeEventListener("mouseleave",this.handleTrackMouseLeave),t.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),r.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),o.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update((function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)})),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleScrollStop",value:function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)}},{key:"handleVerticalTrackMouseDown",value:function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),i=Math.abs(r-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(i)}},{key:"handleHorizontalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(n-o)}},{key:"handleVerticalThumbMouseDown",value:function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(n-o)}},{key:"setupDragging",value:function(){(0,s.default)(document.body,g.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=f.default}},{key:"teardownDragging",value:function(){(0,s.default)(document.body,g.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(e){this.dragging=!0,e.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY,o=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(o)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){this.props.autoHide&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){this.props.autoHide&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,s.default)(this.trackHorizontal,{opacity:1}),(0,s.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout((function(){(0,s.default)(e.trackHorizontal,{opacity:0}),(0,s.default)(e.trackVertical,{opacity:0})}),t)}}},{key:"detectScrolling",value:function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval((function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop}),100))}},{key:"raf",value:function(e){var t=this;this.requestFrame&&a.default.cancel(this.requestFrame),this.requestFrame=(0,a.default)((function(){t.requestFrame=void 0,e()}))}},{key:"update",value:function(e){var t=this;this.raf((function(){return t._update(e)}))}},{key:"_update",value:function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if((0,d.default)()){var i=o.scrollLeft,a=o.clientWidth,l=o.scrollWidth,u=(0,h.default)(this.trackHorizontal),c=this.getThumbHorizontalWidth(),f={width:c,transform:"translateX("+i/(l-a)*(u-c)+"px)"},g=o.scrollTop,m=o.clientHeight,v=o.scrollHeight,y=(0,p.default)(this.trackVertical),b=this.getThumbVerticalHeight(),w={height:b,transform:"translateY("+g/(v-m)*(y-b)+"px)"};if(r){var x={visibility:l>a?"visible":"hidden"},S={visibility:v>m?"visible":"hidden"};(0,s.default)(this.trackHorizontal,x),(0,s.default)(this.trackVertical,S)}(0,s.default)(this.thumbHorizontal,f),(0,s.default)(this.thumbVertical,w)}n&&n(o),"function"==typeof e&&e(o)}},{key:"render",value:function(){var e=this,t=(0,d.default)(),n=this.props,o=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,u=n.renderThumbVertical,f=n.tagName,h=(n.hideTracksWhenNotNeeded,n.autoHide),p=(n.autoHideTimeout,n.autoHideDuration),m=(n.thumbSize,n.thumbMinSize,n.universal),v=n.autoHeight,y=n.autoHeightMin,b=n.autoHeightMax,w=n.style,x=n.children,S=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),_=this.state.didMountUniversal,E=r({},g.containerStyleDefault,v&&r({},g.containerStyleAutoHeight,{minHeight:y,maxHeight:b}),w),k=r({},g.viewStyleDefault,{marginRight:t?-t:0,marginBottom:t?-t:0},v&&r({},g.viewStyleAutoHeight,{minHeight:(0,c.default)(y)?"calc("+y+" + "+t+"px)":y+t,maxHeight:(0,c.default)(b)?"calc("+b+" + "+t+"px)":b+t}),v&&m&&!_&&{minHeight:y,maxHeight:b},m&&!_&&g.viewStyleUniversalInitial),C={transition:"opacity "+p+"ms",opacity:0},A=r({},g.trackHorizontalStyleDefault,h&&C,(!t||m&&!_)&&{display:"none"}),T=r({},g.trackVerticalStyleDefault,h&&C,(!t||m&&!_)&&{display:"none"});return(0,l.createElement)(f,r({},S,{style:E,ref:function(t){e.container=t}}),[(0,l.cloneElement)(o({style:k}),{key:"view",ref:function(t){e.view=t}},x),(0,l.cloneElement)(i({style:A}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},(0,l.cloneElement)(s({style:g.thumbHorizontalStyleDefault}),{ref:function(t){e.thumbHorizontal=t}})),(0,l.cloneElement)(a({style:T}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},(0,l.cloneElement)(u({style:g.thumbVerticalStyleDefault}),{ref:function(t){e.thumbVertical=t}}))])}}]),t}(l.Component);t.default=y,y.propTypes={onScroll:u.default.func,onScrollFrame:u.default.func,onScrollStart:u.default.func,onScrollStop:u.default.func,onUpdate:u.default.func,renderView:u.default.func,renderTrackHorizontal:u.default.func,renderTrackVertical:u.default.func,renderThumbHorizontal:u.default.func,renderThumbVertical:u.default.func,tagName:u.default.string,thumbSize:u.default.number,thumbMinSize:u.default.number,hideTracksWhenNotNeeded:u.default.bool,autoHide:u.default.bool,autoHideTimeout:u.default.number,autoHideDuration:u.default.number,autoHeight:u.default.bool,autoHeightMin:u.default.oneOfType([u.default.number,u.default.string]),autoHeightMax:u.default.oneOfType([u.default.number,u.default.string]),universal:u.default.bool,style:u.default.object,children:u.default.node},y.defaultProps={renderView:m.renderViewDefault,renderTrackHorizontal:m.renderTrackHorizontalDefault,renderTrackVertical:m.renderTrackVerticalDefault,renderThumbHorizontal:m.renderThumbHorizontalDefault,renderThumbVertical:m.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}},61240:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},t.containerStyleAutoHeight={height:"auto"},t.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},t.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},t.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},t.trackHorizontalStyleDefault={position:"absolute",height:6},t.trackVerticalStyleDefault={position:"absolute",width:6},t.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},t.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},t.disableSelectStyle={userSelect:"none"},t.disableSelectStyleReset={userSelect:""}},86750:(e,t,n)=>{"use strict";var r,o=n(23475),i=(r=o)&&r.__esModule?r:{default:r};t.ZP=i.default,i.default},4114:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)}},90620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)}},10677:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!1!==a)return a;if("undefined"!=typeof document){var e=document.createElement("div");(0,i.default)(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),a=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else a=0;return a||0};var r,o=n(64427),i=(r=o)&&r.__esModule?r:{default:r};var a=!1},65356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e}},3962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!1}},26010:(e,t,n)=>{"use strict";n.d(t,{_W:()=>an});var r=n(2784),o=n(86522);function i(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function a(e){return i(1,arguments),e instanceof Date||"object"===(0,o.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}function s(e){i(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,o.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function l(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function u(e,t){return i(2,arguments),function(e,t){i(2,arguments);var n=s(e).getTime(),r=l(t);return new Date(n+r)}(e,-l(t))}function c(e){i(1,arguments);var t=s(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function d(e){i(1,arguments);var t=s(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=c(r),a=new Date(0);a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0);var l=c(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function f(e){i(1,arguments);var t=s(e),n=c(t).getTime()-function(e){i(1,arguments);var t=d(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),c(n)}(t).getTime();return Math.round(n/6048e5)+1}var h={};function p(){return h}function g(e,t){var n,r,o,a,u,c,d,f;i(1,arguments);var h=p(),g=l(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:h.weekStartsOn)&&void 0!==r?r:null===(d=h.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=s(e),v=m.getUTCDay(),y=(v<g?7:0)+v-g;return m.setUTCDate(m.getUTCDate()-y),m.setUTCHours(0,0,0,0),m}function m(e,t){var n,r,o,a,u,c,d,f;i(1,arguments);var h=s(e),m=h.getUTCFullYear(),v=p(),y=l(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:v.firstWeekContainsDate)&&void 0!==r?r:null===(d=v.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(m+1,0,y),b.setUTCHours(0,0,0,0);var w=g(b,t),x=new Date(0);x.setUTCFullYear(m,0,y),x.setUTCHours(0,0,0,0);var S=g(x,t);return h.getTime()>=w.getTime()?m+1:h.getTime()>=S.getTime()?m:m-1}function v(e,t){i(1,arguments);var n=s(e),r=g(n,t).getTime()-function(e,t){var n,r,o,a,s,u,c,d;i(1,arguments);var f=p(),h=l(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(s=t.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(c=f.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1),v=m(e,t),y=new Date(0);return y.setUTCFullYear(v,0,h),y.setUTCHours(0,0,0,0),g(y,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function y(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const b={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return y("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):y(n+1,2)},d:function(e,t){return y(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return y(e.getUTCHours()%12||12,t.length)},H:function(e,t){return y(e.getUTCHours(),t.length)},m:function(e,t){return y(e.getUTCMinutes(),t.length)},s:function(e,t){return y(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return y(Math.floor(r*Math.pow(10,n-3)),t.length)}};var w="midnight",x="noon",S="morning",_="afternoon",E="evening",k="night",C={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return b.y(e,t)},Y:function(e,t,n,r){var o=m(e,r),i=o>0?o:1-o;return"YY"===t?y(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):y(i,t.length)},R:function(e,t){return y(d(e),t.length)},u:function(e,t){return y(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return y(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return y(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return b.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return y(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=v(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):y(o,t.length)},I:function(e,t,n){var r=f(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):y(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):b.d(e,t)},D:function(e,t,n){var r=function(e){i(1,arguments);var t=s(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):y(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return y(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return y(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return y(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?x:0===o?w:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?E:o>=12?_:o>=4?S:k,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return b.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):b.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):y(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):y(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):b.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):b.s(e,t)},S:function(e,t){return b.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return T(o);case"XXXX":case"XX":return O(o);default:return O(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return T(o);case"xxxx":case"xx":return O(o);default:return O(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(o,":");default:return"GMT"+O(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(o,":");default:return"GMT"+O(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return y(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return y((r._originalDate||e).getTime(),t.length)}};function A(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+y(i,2)}function T(e,t){return e%60==0?(e>0?"-":"+")+y(Math.abs(e)/60,2):O(e,t)}function O(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+y(Math.floor(o/60),2)+n+y(o%60,2)}const M=C;var R=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},L=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},D={p:L,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return R(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",R(o,t)).replace("{{time}}",L(i,t))}};const P=D;function j(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var I=["D","DD"],$=["YY","YYYY"];function N(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var F={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const z=function(e,t,n){var r,o=F[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function B(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var H={date:B({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:B({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:B({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var W={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function U(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function Z(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var V;const G={code:"en-US",formatDistance:z,formatLong:H,formatRelative:function(e,t,n,r){return W[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:U({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:U({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:U({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:U({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:U({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(V={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(V.matchPattern);if(!n)return null;var r=n[0],o=e.match(V.parsePattern);if(!o)return null;var i=V.valueCallback?V.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:Z({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Z({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Z({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Z({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Z({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},q=G;var Y=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,K=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,X=/^'([^]*?)'?$/,Q=/''/g,J=/[a-zA-Z]/;function ee(e,t,n){var r,o,c,d,f,h,g,m,v,y,b,w,x,S,_,E,k,C;i(2,arguments);var A=String(t),T=p(),O=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:T.locale)&&void 0!==r?r:q,R=l(null!==(c=null!==(d=null!==(f=null!==(h=null==n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null==n||null===(g=n.locale)||void 0===g||null===(m=g.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:T.firstWeekContainsDate)&&void 0!==d?d:null===(v=T.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==c?c:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var L=l(null!==(b=null!==(w=null!==(x=null!==(S=null==n?void 0:n.weekStartsOn)&&void 0!==S?S:null==n||null===(_=n.locale)||void 0===_||null===(E=_.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==x?x:T.weekStartsOn)&&void 0!==w?w:null===(k=T.locale)||void 0===k||null===(C=k.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==b?b:0);if(!(L>=0&&L<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var D=s(e);if(!function(e){if(i(1,arguments),!a(e)&&"number"!=typeof e)return!1;var t=s(e);return!isNaN(Number(t))}(D))throw new RangeError("Invalid time value");var F=u(D,j(D)),z={firstWeekContainsDate:R,weekStartsOn:L,locale:O,_originalDate:D};return A.match(K).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,P[t])(e,O.formatLong):e})).join("").match(Y).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(X);if(!t)return e;return t[1].replace(Q,"'")}(r);var i,a=M[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===$.indexOf(i))||N(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==I.indexOf(e)}(r)||N(r,t,String(e)),a(F,r,O.localize,z);if(o.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}function te(e){i(1,arguments);var t=s(e);return t.setDate(1),t.setHours(0,0,0,0),t}function ne(e){i(1,arguments);var t=s(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function re(e){i(1,arguments);var t=s(e);return t.setHours(0,0,0,0),t}function oe(e,t){i(2,arguments);var n=s(e),r=s(t);return n.getFullYear()===r.getFullYear()}function ie(e,t){i(2,arguments);var n=s(e),r=l(t),o=n.getFullYear(),a=n.getDate(),u=new Date(0);u.setFullYear(o,r,15),u.setHours(0,0,0,0);var c=function(e){i(1,arguments);var t=s(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(u);return n.setMonth(r,Math.min(a,c)),n}function ae(e,t){i(2,arguments);var n=s(e),r=l(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}function se(e){i(1,arguments);var t=s(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function le(e,t){i(2,arguments);var n=s(e),r=s(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}function ue(e,t){i(2,arguments);var n=s(e),r=l(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),a=new Date(n.getTime());return a.setMonth(n.getMonth()+r+1,0),o>=a.getDate()?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}function ce(e,t){i(2,arguments);var n=s(e),r=s(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function de(e,t){i(2,arguments);var n=s(e),r=s(t);return n.getTime()<r.getTime()}function fe(e,t){var n,r,o,a,u,c,d,f;i(1,arguments);var h=p(),g=l(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:h.weekStartsOn)&&void 0!==r?r:null===(d=h.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=s(e),v=m.getDay(),y=(v<g?7:0)+v-g;return m.setDate(m.getDate()-y),m.setHours(0,0,0,0),m}function he(e){return i(1,arguments),fe(e,{weekStartsOn:1})}function pe(e,t){i(2,arguments);var n=s(e),r=l(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function ge(e,t){i(2,arguments);var n=re(e),r=re(t);return n.getTime()===r.getTime()}function me(e,t){i(2,arguments);var n=s(e),r=s(t);return n.getTime()>r.getTime()}function ve(e,t){return i(2,arguments),pe(e,-l(t))}var ye=864e5;function be(e,t){i(2,arguments);var n=re(e),r=re(t),o=n.getTime()-j(n),a=r.getTime()-j(r);return Math.round((o-a)/ye)}function we(e,t){return i(2,arguments),pe(e,7*l(t))}function xe(e,t){return i(2,arguments),ue(e,12*l(t))}function Se(e,t){var n,r,o,a,u,c,d,f;i(1,arguments);var h=p(),g=l(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.weekStartsOn)&&void 0!==a?a:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==o?o:h.weekStartsOn)&&void 0!==r?r:null===(d=h.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=s(e),v=m.getDay(),y=6+(v<g?-7:0)-(v-g);return m.setDate(m.getDate()+y),m.setHours(23,59,59,999),m}function _e(e){return i(1,arguments),Se(e,{weekStartsOn:1})}function Ee(e){var t,n;if(i(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,o.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=s(e);(void 0===n||n<t||isNaN(Number(t)))&&(n=t)})),n||new Date(NaN)}function ke(e){var t,n;if(i(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!==(0,o.Z)(e)||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=s(e);(void 0===n||n>t||isNaN(t.getDate()))&&(n=t)})),n||new Date(NaN)}function Ce(e){return i(1,arguments),Math.floor(function(e){return i(1,arguments),s(e).getTime()}(e)/1e3)}function Ae(e){i(1,arguments);var t=function(e){i(1,arguments);var t=s(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=he(r),a=new Date(0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);var l=he(a);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}(e),n=new Date(0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),he(n)}var Te=6048e5;function Oe(e){i(1,arguments);var t=s(e),n=he(t).getTime()-Ae(t).getTime();return Math.round(n/Te)+1}function Me(e,t){var n,r,o,a,u,c,d,f;i(1,arguments);var h=p(),g=l(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:h.firstWeekContainsDate)&&void 0!==r?r:null===(d=h.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),m=function(e,t){var n,r,o,a,u,c,d,f;i(1,arguments);var h=s(e),g=h.getFullYear(),m=p(),v=l(null!==(n=null!==(r=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t||null===(u=t.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==r?r:null===(d=m.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setFullYear(g+1,0,v),y.setHours(0,0,0,0);var b=fe(y,t),w=new Date(0);w.setFullYear(g,0,v),w.setHours(0,0,0,0);var x=fe(w,t);return h.getTime()>=b.getTime()?g+1:h.getTime()>=x.getTime()?g:g-1}(e,t),v=new Date(0);return v.setFullYear(m,0,g),v.setHours(0,0,0,0),fe(v,t)}var Re=6048e5;function Le(e,t){i(1,arguments);var n=s(e),r=fe(n,t).getTime()-Me(n,t).getTime();return Math.round(r/Re)+1}var De=6048e5;function Pe(e,t){return i(1,arguments),function(e,t,n){i(2,arguments);var r=fe(e,n),o=fe(t,n),a=r.getTime()-j(r),s=o.getTime()-j(o);return Math.round((a-s)/De)}(function(e){i(1,arguments);var t=s(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}(e),te(e),t)+1}var je=function(){return je=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},je.apply(this,arguments)};function Ie(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function $e(e){return"multiple"===e.mode}function Ne(e){return"range"===e.mode}function Fe(e){return"single"===e.mode}"function"==typeof SuppressedError&&SuppressedError;var ze={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};var Be=Object.freeze({__proto__:null,formatCaption:function(e,t){return ee(e,"LLLL y",t)},formatDay:function(e,t){return ee(e,"d",t)},formatMonthCaption:function(e,t){return ee(e,"LLLL",t)},formatWeekNumber:function(e){return"".concat(e)},formatWeekdayName:function(e,t){return ee(e,"cccccc",t)},formatYearCaption:function(e,t){return ee(e,"yyyy",t)}}),He=Object.freeze({__proto__:null,labelDay:function(e,t,n){return ee(e,"do MMMM (EEEE)",n)},labelMonthDropdown:function(){return"Month: "},labelNext:function(){return"Go to next month"},labelPrevious:function(){return"Go to previous month"},labelWeekNumber:function(e){return"Week n. ".concat(e)},labelWeekday:function(e,t){return ee(e,"cccc",t)},labelYearDropdown:function(){return"Year: "}});function We(e){var t=e.fromYear,n=e.toYear,r=e.fromMonth,o=e.toMonth,i=e.fromDate,a=e.toDate;return r?i=te(r):t&&(i=new Date(t,0,1)),o?a=ne(o):n&&(a=new Date(n,11,31)),{fromDate:i?re(i):void 0,toDate:a?re(a):void 0}}var Ue=(0,r.createContext)(void 0);function Ze(e){var t,n,o=e.initialProps,i=function(){var e=ze,t=G,n=new Date;return{captionLayout:"buttons",classNames:e,formatters:Be,labels:He,locale:t,modifiersClassNames:{},modifiers:{},numberOfMonths:1,styles:{},today:n,mode:"default"}}(),a=We(o),s=a.fromDate,l=a.toDate,u=null!==(t=o.captionLayout)&&void 0!==t?t:i.captionLayout;"buttons"===u||s&&l||(u="buttons"),(Fe(o)||$e(o)||Ne(o))&&(n=o.onSelect);var c=je(je(je({},i),o),{captionLayout:u,classNames:je(je({},i.classNames),o.classNames),components:je({},o.components),formatters:je(je({},i.formatters),o.formatters),fromDate:s,labels:je(je({},i.labels),o.labels),mode:o.mode||i.mode,modifiers:je(je({},i.modifiers),o.modifiers),modifiersClassNames:je(je({},i.modifiersClassNames),o.modifiersClassNames),onSelect:n,styles:je(je({},i.styles),o.styles),toDate:l});return r.createElement(Ue.Provider,{value:c},e.children)}function Ve(){var e=(0,r.useContext)(Ue);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Ge(e){var t=Ve(),n=t.locale,o=t.classNames,i=t.styles,a=t.formatters.formatCaption;return r.createElement("div",{className:o.caption_label,style:i.caption_label,"aria-live":"polite",role:"presentation",id:e.id},a(e.displayMonth,{locale:n}))}function qe(e){return r.createElement("svg",je({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e),r.createElement("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"}))}function Ye(e){var t,n,o=e.onChange,i=e.value,a=e.children,s=e.caption,l=e.className,u=e.style,c=Ve(),d=null!==(n=null===(t=c.components)||void 0===t?void 0:t.IconDropdown)&&void 0!==n?n:qe;return r.createElement("div",{className:l,style:u},r.createElement("span",{className:c.classNames.vhidden},e["aria-label"]),r.createElement("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:i,onChange:o},a),r.createElement("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true"},s,r.createElement(d,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})))}function Ke(e){var t,n=Ve(),o=n.fromDate,i=n.toDate,a=n.styles,s=n.locale,l=n.formatters.formatMonthCaption,u=n.classNames,c=n.components,d=n.labels.labelMonthDropdown;if(!o)return r.createElement(r.Fragment,null);if(!i)return r.createElement(r.Fragment,null);var f=[];if(oe(o,i))for(var h=te(o),p=o.getMonth();p<=i.getMonth();p++)f.push(ie(h,p));else for(h=te(new Date),p=0;p<=11;p++)f.push(ie(h,p));var g=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:Ye;return r.createElement(g,{name:"months","aria-label":d(),className:u.dropdown_month,style:a.dropdown_month,onChange:function(t){var n=Number(t.target.value),r=ie(te(e.displayMonth),n);e.onChange(r)},value:e.displayMonth.getMonth(),caption:l(e.displayMonth,{locale:s})},f.map((function(e){return r.createElement("option",{key:e.getMonth(),value:e.getMonth()},l(e,{locale:s}))})))}function Xe(e){var t,n=e.displayMonth,o=Ve(),i=o.fromDate,a=o.toDate,s=o.locale,l=o.styles,u=o.classNames,c=o.components,d=o.formatters.formatYearCaption,f=o.labels.labelYearDropdown,h=[];if(!i)return r.createElement(r.Fragment,null);if(!a)return r.createElement(r.Fragment,null);for(var p=i.getFullYear(),g=a.getFullYear(),m=p;m<=g;m++)h.push(ae(se(new Date),m));var v=null!==(t=null==c?void 0:c.Dropdown)&&void 0!==t?t:Ye;return r.createElement(v,{name:"years","aria-label":f(),className:u.dropdown_year,style:l.dropdown_year,onChange:function(t){var r=ae(te(n),Number(t.target.value));e.onChange(r)},value:n.getFullYear(),caption:d(n,{locale:s})},h.map((function(e){return r.createElement("option",{key:e.getFullYear(),value:e.getFullYear()},d(e,{locale:s}))})))}function Qe(){var e=Ve(),t=function(e){var t=e.month,n=e.defaultMonth,r=e.today,o=t||n||r||new Date,i=e.toDate,a=e.fromDate,s=e.numberOfMonths,l=void 0===s?1:s;return i&&le(i,o)<0&&(o=ue(i,-1*(l-1))),a&&le(o,a)<0&&(o=a),te(o)}(e),n=function(e,t){var n=(0,r.useState)(e),o=n[0];return[void 0===t?o:t,n[1]]}(t,e.month),o=n[0],i=n[1];return[o,function(t){var n;if(!e.disableNavigation){var r=te(t);i(r),null===(n=e.onMonthChange)||void 0===n||n.call(e,r)}}]}var Je=(0,r.createContext)(void 0);function et(e){var t=Ve(),n=Qe(),o=n[0],i=n[1],a=function(e,t){for(var n=t.reverseMonths,r=t.numberOfMonths,o=te(e),i=le(te(ue(o,r)),o),a=[],s=0;s<i;s++){var l=ue(o,s);a.push(l)}return n&&(a=a.reverse()),a}(o,t),s=function(e,t){if(!t.disableNavigation){var n=t.toDate,r=t.pagedNavigation,o=t.numberOfMonths,i=void 0===o?1:o,a=r?i:1,s=te(e);if(!n)return ue(s,a);if(!(le(n,e)<i))return ue(s,a)}}(o,t),l=function(e,t){if(!t.disableNavigation){var n=t.fromDate,r=t.pagedNavigation,o=t.numberOfMonths,i=r?void 0===o?1:o:1,a=te(e);if(!n)return ue(a,-i);if(!(le(a,n)<=0))return ue(a,-i)}}(o,t),u=function(e){return a.some((function(t){return ce(e,t)}))},c={currentMonth:o,displayMonths:a,goToMonth:i,goToDate:function(e,n){u(e)||(n&&de(e,n)?i(ue(e,1+-1*t.numberOfMonths)):i(e))},previousMonth:l,nextMonth:s,isDateDisplayed:u};return r.createElement(Je.Provider,{value:c},e.children)}function tt(){var e=(0,r.useContext)(Je);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function nt(e){var t,n=Ve(),o=n.classNames,i=n.styles,a=n.components,s=tt().goToMonth,l=function(t){s(ue(t,e.displayIndex?-e.displayIndex:0))},u=null!==(t=null==a?void 0:a.CaptionLabel)&&void 0!==t?t:Ge,c=r.createElement(u,{id:e.id,displayMonth:e.displayMonth});return r.createElement("div",{className:o.caption_dropdowns,style:i.caption_dropdowns},r.createElement("div",{className:o.vhidden},c),r.createElement(Ke,{onChange:l,displayMonth:e.displayMonth}),r.createElement(Xe,{onChange:l,displayMonth:e.displayMonth}))}function rt(e){return r.createElement("svg",je({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),r.createElement("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"}))}function ot(e){return r.createElement("svg",je({width:"16px",height:"16px",viewBox:"0 0 120 120"},e),r.createElement("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"}))}var it=(0,r.forwardRef)((function(e,t){var n=Ve(),o=n.classNames,i=n.styles,a=[o.button_reset,o.button];e.className&&a.push(e.className);var s=a.join(" "),l=je(je({},i.button_reset),i.button);return e.style&&Object.assign(l,e.style),r.createElement("button",je({},e,{ref:t,type:"button",className:s,style:l}))}));function at(e){var t,n,o=Ve(),i=o.dir,a=o.locale,s=o.classNames,l=o.styles,u=o.labels,c=u.labelPrevious,d=u.labelNext,f=o.components;if(!e.nextMonth&&!e.previousMonth)return r.createElement(r.Fragment,null);var h=c(e.previousMonth,{locale:a}),p=[s.nav_button,s.nav_button_previous].join(" "),g=d(e.nextMonth,{locale:a}),m=[s.nav_button,s.nav_button_next].join(" "),v=null!==(t=null==f?void 0:f.IconRight)&&void 0!==t?t:ot,y=null!==(n=null==f?void 0:f.IconLeft)&&void 0!==n?n:rt;return r.createElement("div",{className:s.nav,style:l.nav},!e.hidePrevious&&r.createElement(it,{name:"previous-month","aria-label":h,className:p,style:l.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick},"rtl"===i?r.createElement(v,{className:s.nav_icon,style:l.nav_icon}):r.createElement(y,{className:s.nav_icon,style:l.nav_icon})),!e.hideNext&&r.createElement(it,{name:"next-month","aria-label":g,className:m,style:l.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick},"rtl"===i?r.createElement(y,{className:s.nav_icon,style:l.nav_icon}):r.createElement(v,{className:s.nav_icon,style:l.nav_icon})))}function st(e){var t=Ve().numberOfMonths,n=tt(),o=n.previousMonth,i=n.nextMonth,a=n.goToMonth,s=n.displayMonths,l=s.findIndex((function(t){return ce(e.displayMonth,t)})),u=0===l,c=l===s.length-1,d=t>1&&(u||!c),f=t>1&&(c||!u);return r.createElement(at,{displayMonth:e.displayMonth,hideNext:d,hidePrevious:f,nextMonth:i,previousMonth:o,onPreviousClick:function(){o&&a(o)},onNextClick:function(){i&&a(i)}})}function lt(e){var t,n,o=Ve(),i=o.classNames,a=o.disableNavigation,s=o.styles,l=o.captionLayout,u=o.components,c=null!==(t=null==u?void 0:u.CaptionLabel)&&void 0!==t?t:Ge;return n=a?r.createElement(c,{id:e.id,displayMonth:e.displayMonth}):"dropdown"===l?r.createElement(nt,{displayMonth:e.displayMonth,id:e.id}):"dropdown-buttons"===l?r.createElement(r.Fragment,null,r.createElement(nt,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),r.createElement(st,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})):r.createElement(r.Fragment,null,r.createElement(c,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.createElement(st,{displayMonth:e.displayMonth,id:e.id})),r.createElement("div",{className:i.caption,style:s.caption},n)}function ut(e){var t=Ve(),n=t.footer,o=t.styles,i=t.classNames.tfoot;return n?r.createElement("tfoot",{className:i,style:o.tfoot},r.createElement("tr",null,r.createElement("td",{colSpan:8},n))):r.createElement(r.Fragment,null)}function ct(){var e=Ve(),t=e.classNames,n=e.styles,o=e.showWeekNumber,i=e.locale,a=e.weekStartsOn,s=e.ISOWeek,l=e.formatters.formatWeekdayName,u=e.labels.labelWeekday,c=function(e,t,n){for(var r=n?he(new Date):fe(new Date,{locale:e,weekStartsOn:t}),o=[],i=0;i<7;i++){var a=pe(r,i);o.push(a)}return o}(i,a,s);return r.createElement("tr",{style:n.head_row,className:t.head_row},o&&r.createElement("td",{style:n.head_cell,className:t.head_cell}),c.map((function(e,o){return r.createElement("th",{key:o,scope:"col",className:t.head_cell,style:n.head_cell,"aria-label":u(e,{locale:i})},l(e,{locale:i}))})))}function dt(){var e,t=Ve(),n=t.classNames,o=t.styles,i=t.components,a=null!==(e=null==i?void 0:i.HeadRow)&&void 0!==e?e:ct;return r.createElement("thead",{style:o.head,className:n.head},r.createElement(a,null))}function ft(e){var t=Ve(),n=t.locale,o=t.formatters.formatDay;return r.createElement(r.Fragment,null,o(e.date,{locale:n}))}var ht=(0,r.createContext)(void 0);function pt(e){if(!$e(e.initialProps)){var t={selected:void 0,modifiers:{disabled:[]}};return r.createElement(ht.Provider,{value:t},e.children)}return r.createElement(gt,{initialProps:e.initialProps,children:e.children})}function gt(e){var t=e.initialProps,n=e.children,o=t.selected,i=t.min,a=t.max,s={disabled:[]};o&&s.disabled.push((function(e){var t=a&&o.length>a-1,n=o.some((function(t){return ge(t,e)}));return Boolean(t&&!n)}));var l={selected:o,onDayClick:function(e,n,r){var s,l;if((null===(s=t.onDayClick)||void 0===s||s.call(t,e,n,r),!Boolean(n.selected&&i&&(null==o?void 0:o.length)===i))&&!Boolean(!n.selected&&a&&(null==o?void 0:o.length)===a)){var u=o?Ie([],o,!0):[];if(n.selected){var c=u.findIndex((function(t){return ge(e,t)}));u.splice(c,1)}else u.push(e);null===(l=t.onSelect)||void 0===l||l.call(t,u,e,n,r)}},modifiers:s};return r.createElement(ht.Provider,{value:l},n)}function mt(){var e=(0,r.useContext)(ht);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}var vt,yt=(0,r.createContext)(void 0);function bt(e){if(!Ne(e.initialProps)){var t={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return r.createElement(yt.Provider,{value:t},e.children)}return r.createElement(wt,{initialProps:e.initialProps,children:e.children})}function wt(e){var t=e.initialProps,n=e.children,o=t.selected,i=o||{},a=i.from,s=i.to,l=t.min,u=t.max,c={range_start:[],range_end:[],range_middle:[],disabled:[]};if(a?(c.range_start=[a],s?(c.range_end=[s],ge(a,s)||(c.range_middle=[{after:a,before:s}])):c.range_end=[a]):s&&(c.range_start=[s],c.range_end=[s]),l&&(a&&!s&&c.disabled.push({after:ve(a,l-1),before:pe(a,l-1)}),a&&s&&c.disabled.push({after:a,before:pe(a,l-1)}),!a&&s&&c.disabled.push({after:ve(s,l-1),before:pe(s,l-1)})),u){if(a&&!s&&(c.disabled.push({before:pe(a,1-u)}),c.disabled.push({after:pe(a,u-1)})),a&&s){var d=u-(be(s,a)+1);c.disabled.push({before:ve(a,d)}),c.disabled.push({after:pe(s,d)})}!a&&s&&(c.disabled.push({before:pe(s,1-u)}),c.disabled.push({after:pe(s,u-1)}))}return r.createElement(yt.Provider,{value:{selected:o,onDayClick:function(e,n,r){var i,a;null===(i=t.onDayClick)||void 0===i||i.call(t,e,n,r);var s=function(e,t){var n=t||{},r=n.from,o=n.to;if(r&&o){if(ge(o,e)&&ge(r,e))return;if(ge(o,e))return{from:o,to:void 0};if(ge(r,e))return;return me(r,e)?{from:e,to:o}:{from:r,to:e}}return o?me(e,o)?{from:o,to:e}:{from:e,to:o}:r?de(e,r)?{from:e,to:r}:{from:r,to:e}:{from:e,to:void 0}}(e,o);null===(a=t.onSelect)||void 0===a||a.call(t,s,e,n,r)},modifiers:c}},n)}function xt(){var e=(0,r.useContext)(yt);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function St(e){return Array.isArray(e)?Ie([],e,!0):void 0!==e?[e]:[]}!function(e){e.Outside="outside",e.Disabled="disabled",e.Selected="selected",e.Hidden="hidden",e.Today="today",e.RangeStart="range_start",e.RangeEnd="range_end",e.RangeMiddle="range_middle"}(vt||(vt={}));var _t=vt.Selected,Et=vt.Disabled,kt=vt.Hidden,Ct=vt.Today,At=vt.RangeEnd,Tt=vt.RangeMiddle,Ot=vt.RangeStart,Mt=vt.Outside;var Rt=(0,r.createContext)(void 0);function Lt(e){var t=Ve(),n=function(e,t,n){var r,o=((r={})[_t]=St(e.selected),r[Et]=St(e.disabled),r[kt]=St(e.hidden),r[Ct]=[e.today],r[At]=[],r[Tt]=[],r[Ot]=[],r[Mt]=[],r);return e.fromDate&&o[Et].push({before:e.fromDate}),e.toDate&&o[Et].push({after:e.toDate}),$e(e)?o[Et]=o[Et].concat(t.modifiers[Et]):Ne(e)&&(o[Et]=o[Et].concat(n.modifiers[Et]),o[Ot]=n.modifiers[Ot],o[Tt]=n.modifiers[Tt],o[At]=n.modifiers[At]),o}(t,mt(),xt()),o=function(e){var t={};return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];t[n]=St(r)})),t}(t.modifiers),i=je(je({},n),o);return r.createElement(Rt.Provider,{value:i},e.children)}function Dt(){var e=(0,r.useContext)(Rt);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function Pt(e,t){return t.some((function(t){if("boolean"==typeof t)return t;if(function(e){return a(e)}(t))return ge(e,t);if(function(e){return Array.isArray(e)&&e.every(a)}(t))return t.includes(e);if(function(e){return Boolean(e&&"object"==typeof e&&"from"in e)}(t))return function(e,t){var n,r=t.from,o=t.to;return r&&o?(be(o,r)<0&&(r=(n=[o,r])[0],o=n[1]),be(e,r)>=0&&be(o,e)>=0):o?ge(o,e):!!r&&ge(r,e)}(e,t);if(function(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}(t))return t.dayOfWeek.includes(e.getDay());if(function(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}(t)){var n=be(t.before,e)>0,r=be(t.after,e)<0;return me(t.before,t.after)?r&&n:n||r}return function(e){return Boolean(e&&"object"==typeof e&&"after"in e)}(t)?be(e,t.after)>0:function(e){return Boolean(e&&"object"==typeof e&&"before"in e)}(t)?be(t.before,e)>0:"function"==typeof t&&t(e)}))}function jt(e,t,n){var r=Object.keys(t).reduce((function(n,r){var o=t[r];return Pt(e,o)&&n.push(r),n}),[]),o={};return r.forEach((function(e){return o[e]=!0})),n&&!ce(e,n)&&(o.outside=!0),o}var It=365;function $t(e,t){var n=t.moveBy,r=t.direction,o=t.context,i=t.modifiers,a=t.retry,s=void 0===a?{count:0,lastFocused:e}:a,l=o.weekStartsOn,u=o.fromDate,c=o.toDate,d=o.locale,f={day:pe,week:we,month:ue,year:xe,startOfWeek:function(e){return o.ISOWeek?he(e):fe(e,{locale:d,weekStartsOn:l})},endOfWeek:function(e){return o.ISOWeek?_e(e):Se(e,{locale:d,weekStartsOn:l})}}[n](e,"after"===r?1:-1);"before"===r&&u?f=Ee([u,f]):"after"===r&&c&&(f=ke([c,f]));var h=!0;if(i){var p=jt(f,i);h=!p.disabled&&!p.hidden}return h?f:s.count>It?s.lastFocused:$t(f,{moveBy:n,direction:r,context:o,modifiers:i,retry:je(je({},s),{count:s.count+1})})}var Nt=(0,r.createContext)(void 0);function Ft(e){var t=tt(),n=Dt(),o=(0,r.useState)(),i=o[0],a=o[1],s=(0,r.useState)(),l=s[0],u=s[1],c=function(e,t){for(var n,r,o=te(e[0]),i=ne(e[e.length-1]),a=o;a<=i;){var s=jt(a,t);if(s.disabled||s.hidden)a=pe(a,1);else{if(s.selected)return a;s.today&&!r&&(r=a),n||(n=a),a=pe(a,1)}}return r||n}(t.displayMonths,n),d=(null!=i?i:l&&t.isDateDisplayed(l))?l:c,f=function(e){a(e)},h=Ve(),p=function(e,r){if(i){var o=$t(i,{moveBy:e,direction:r,context:h,modifiers:n});ge(i,o)||(t.goToDate(o,i),f(o))}},g={focusedDay:i,focusTarget:d,blur:function(){u(i),a(void 0)},focus:f,focusDayAfter:function(){return p("day","after")},focusDayBefore:function(){return p("day","before")},focusWeekAfter:function(){return p("week","after")},focusWeekBefore:function(){return p("week","before")},focusMonthBefore:function(){return p("month","before")},focusMonthAfter:function(){return p("month","after")},focusYearBefore:function(){return p("year","before")},focusYearAfter:function(){return p("year","after")},focusStartOfWeek:function(){return p("startOfWeek","before")},focusEndOfWeek:function(){return p("endOfWeek","after")}};return r.createElement(Nt.Provider,{value:g},e.children)}function zt(){var e=(0,r.useContext)(Nt);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}var Bt=(0,r.createContext)(void 0);function Ht(e){if(!Fe(e.initialProps)){var t={selected:void 0};return r.createElement(Bt.Provider,{value:t},e.children)}return r.createElement(Wt,{initialProps:e.initialProps,children:e.children})}function Wt(e){var t=e.initialProps,n=e.children,o={selected:t.selected,onDayClick:function(e,n,r){var o,i,a;null===(o=t.onDayClick)||void 0===o||o.call(t,e,n,r),!n.selected||t.required?null===(a=t.onSelect)||void 0===a||a.call(t,e,e,n,r):null===(i=t.onSelect)||void 0===i||i.call(t,void 0,e,n,r)}};return r.createElement(Bt.Provider,{value:o},n)}function Ut(){var e=(0,r.useContext)(Bt);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Zt(e,t){var n=[e.classNames.day];return Object.keys(t).forEach((function(t){var r=e.modifiersClassNames[t];if(r)n.push(r);else if(function(e){return Object.values(vt).includes(e)}(t)){var o=e.classNames["day_".concat(t)];o&&n.push(o)}})),n}function Vt(e,t,n){var o,i,a,s=Ve(),l=zt(),u=function(e,t){return jt(e,Dt(),t)}(e,t),c=function(e,t){var n=Ve(),r=Ut(),o=mt(),i=xt(),a=zt(),s=a.focusDayAfter,l=a.focusDayBefore,u=a.focusWeekAfter,c=a.focusWeekBefore,d=a.blur,f=a.focus,h=a.focusMonthBefore,p=a.focusMonthAfter,g=a.focusYearBefore,m=a.focusYearAfter,v=a.focusStartOfWeek,y=a.focusEndOfWeek,b={onClick:function(a){var s,l,u,c;Fe(n)?null===(s=r.onDayClick)||void 0===s||s.call(r,e,t,a):$e(n)?null===(l=o.onDayClick)||void 0===l||l.call(o,e,t,a):Ne(n)?null===(u=i.onDayClick)||void 0===u||u.call(i,e,t,a):null===(c=n.onDayClick)||void 0===c||c.call(n,e,t,a)},onFocus:function(r){var o;f(e),null===(o=n.onDayFocus)||void 0===o||o.call(n,e,t,r)},onBlur:function(r){var o;d(),null===(o=n.onDayBlur)||void 0===o||o.call(n,e,t,r)},onKeyDown:function(r){var o;switch(r.key){case"ArrowLeft":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?s():l();break;case"ArrowRight":r.preventDefault(),r.stopPropagation(),"rtl"===n.dir?l():s();break;case"ArrowDown":r.preventDefault(),r.stopPropagation(),u();break;case"ArrowUp":r.preventDefault(),r.stopPropagation(),c();break;case"PageUp":r.preventDefault(),r.stopPropagation(),r.shiftKey?g():h();break;case"PageDown":r.preventDefault(),r.stopPropagation(),r.shiftKey?m():p();break;case"Home":r.preventDefault(),r.stopPropagation(),v();break;case"End":r.preventDefault(),r.stopPropagation(),y()}null===(o=n.onDayKeyDown)||void 0===o||o.call(n,e,t,r)},onKeyUp:function(r){var o;null===(o=n.onDayKeyUp)||void 0===o||o.call(n,e,t,r)},onMouseEnter:function(r){var o;null===(o=n.onDayMouseEnter)||void 0===o||o.call(n,e,t,r)},onMouseLeave:function(r){var o;null===(o=n.onDayMouseLeave)||void 0===o||o.call(n,e,t,r)},onPointerEnter:function(r){var o;null===(o=n.onDayPointerEnter)||void 0===o||o.call(n,e,t,r)},onPointerLeave:function(r){var o;null===(o=n.onDayPointerLeave)||void 0===o||o.call(n,e,t,r)},onTouchCancel:function(r){var o;null===(o=n.onDayTouchCancel)||void 0===o||o.call(n,e,t,r)},onTouchEnd:function(r){var o;null===(o=n.onDayTouchEnd)||void 0===o||o.call(n,e,t,r)},onTouchMove:function(r){var o;null===(o=n.onDayTouchMove)||void 0===o||o.call(n,e,t,r)},onTouchStart:function(r){var o;null===(o=n.onDayTouchStart)||void 0===o||o.call(n,e,t,r)}};return b}(e,u),d=function(){var e=Ve(),t=Ut(),n=mt(),r=xt();return Fe(e)?t.selected:$e(e)?n.selected:Ne(e)?r.selected:void 0}(),f=Boolean(s.onDayClick||"default"!==s.mode);(0,r.useEffect)((function(){var t;u.outside||l.focusedDay&&f&&ge(l.focusedDay,e)&&(null===(t=n.current)||void 0===t||t.focus())}),[l.focusedDay,e,n,f,u.outside]);var h=Zt(s,u).join(" "),p=function(e,t){var n=je({},e.styles.day);return Object.keys(t).forEach((function(t){var r;n=je(je({},n),null===(r=e.modifiersStyles)||void 0===r?void 0:r[t])})),n}(s,u),g=Boolean(u.outside&&!s.showOutsideDays||u.hidden),m=null!==(a=null===(i=s.components)||void 0===i?void 0:i.DayContent)&&void 0!==a?a:ft,v={style:p,className:h,children:r.createElement(m,{date:e,displayMonth:t,activeModifiers:u}),role:"gridcell"},y=l.focusTarget&&ge(l.focusTarget,e)&&!u.outside,b=l.focusedDay&&ge(l.focusedDay,e),w=je(je(je({},v),((o={disabled:u.disabled,role:"gridcell"})["aria-selected"]=u.selected,o.tabIndex=b||y?0:-1,o)),c);return{isButton:f,isHidden:g,activeModifiers:u,selectedDays:d,buttonProps:w,divProps:v}}function Gt(e){var t=(0,r.useRef)(null),n=Vt(e.date,e.displayMonth,t);return n.isHidden?r.createElement("div",{role:"gridcell"}):n.isButton?r.createElement(it,je({name:"day",ref:t},n.buttonProps)):r.createElement("div",je({},n.divProps))}function qt(e){var t=e.number,n=e.dates,o=Ve(),i=o.onWeekNumberClick,a=o.styles,s=o.classNames,l=o.locale,u=o.labels.labelWeekNumber,c=(0,o.formatters.formatWeekNumber)(Number(t),{locale:l});if(!i)return r.createElement("span",{className:s.weeknumber,style:a.weeknumber},c);var d=u(Number(t),{locale:l});return r.createElement(it,{name:"week-number","aria-label":d,className:s.weeknumber,style:a.weeknumber,onClick:function(e){i(t,n,e)}},c)}function Yt(e){var t,n,o,i=Ve(),a=i.styles,s=i.classNames,l=i.showWeekNumber,u=i.components,c=null!==(t=null==u?void 0:u.Day)&&void 0!==t?t:Gt,d=null!==(n=null==u?void 0:u.WeekNumber)&&void 0!==n?n:qt;return l&&(o=r.createElement("td",{className:s.cell,style:a.cell},r.createElement(d,{number:e.weekNumber,dates:e.dates}))),r.createElement("tr",{className:s.row,style:a.row},o,e.dates.map((function(t){return r.createElement("td",{className:s.cell,style:a.cell,key:Ce(t),role:"presentation"},r.createElement(c,{displayMonth:e.displayMonth,date:t}))})))}function Kt(e,t,n){for(var r=(null==n?void 0:n.ISOWeek)?_e(t):Se(t,n),o=(null==n?void 0:n.ISOWeek)?he(e):fe(e,n),i=be(r,o),a=[],s=0;s<=i;s++)a.push(pe(o,s));return a.reduce((function(e,t){var r=(null==n?void 0:n.ISOWeek)?Oe(t):Le(t,n),o=e.find((function(e){return e.weekNumber===r}));return o?(o.dates.push(t),e):(e.push({weekNumber:r,dates:[t]}),e)}),[])}function Xt(e){var t,n,o,i=Ve(),a=i.locale,s=i.classNames,l=i.styles,u=i.hideHead,c=i.fixedWeeks,d=i.components,f=i.weekStartsOn,h=i.firstWeekContainsDate,p=i.ISOWeek,g=function(e,t){var n=Kt(te(e),ne(e),t);if(null==t?void 0:t.useFixedWeeks){var r=Pe(e,t);if(r<6){var o=n[n.length-1],i=o.dates[o.dates.length-1],a=we(i,6-r),s=Kt(we(i,1),a,t);n.push.apply(n,s)}}return n}(e.displayMonth,{useFixedWeeks:Boolean(c),ISOWeek:p,locale:a,weekStartsOn:f,firstWeekContainsDate:h}),m=null!==(t=null==d?void 0:d.Head)&&void 0!==t?t:dt,v=null!==(n=null==d?void 0:d.Row)&&void 0!==n?n:Yt,y=null!==(o=null==d?void 0:d.Footer)&&void 0!==o?o:ut;return r.createElement("table",{id:e.id,className:s.table,style:l.table,role:"grid","aria-labelledby":e["aria-labelledby"]},!u&&r.createElement(m,null),r.createElement("tbody",{className:s.tbody,style:l.tbody},g.map((function(t){return r.createElement(v,{displayMonth:e.displayMonth,key:t.weekNumber,dates:t.dates,weekNumber:t.weekNumber})}))),r.createElement(y,{displayMonth:e.displayMonth}))}var Qt="undefined"!=typeof window&&window.document&&window.document.createElement?r.useLayoutEffect:r.useEffect,Jt=!1,en=0;function tn(){return"react-day-picker-".concat(++en)}function nn(e){var t,n,o=Ve(),i=o.dir,a=o.classNames,s=o.styles,l=o.components,u=tt().displayMonths,c=function(e){var t,n=null!=e?e:Jt?tn():null,o=r.useState(n),i=o[0],a=o[1];return Qt((function(){null===i&&a(tn())}),[]),r.useEffect((function(){!1===Jt&&(Jt=!0)}),[]),null!==(t=null!=e?e:i)&&void 0!==t?t:void 0}(o.id?"".concat(o.id,"-").concat(e.displayIndex):void 0),d=o.id?"".concat(o.id,"-grid-").concat(e.displayIndex):void 0,f=[a.month],h=s.month,p=0===e.displayIndex,g=e.displayIndex===u.length-1,m=!p&&!g;"rtl"===i&&(g=(t=[p,g])[0],p=t[1]),p&&(f.push(a.caption_start),h=je(je({},h),s.caption_start)),g&&(f.push(a.caption_end),h=je(je({},h),s.caption_end)),m&&(f.push(a.caption_between),h=je(je({},h),s.caption_between));var v=null!==(n=null==l?void 0:l.Caption)&&void 0!==n?n:lt;return r.createElement("div",{key:e.displayIndex,className:f.join(" "),style:h},r.createElement(v,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),r.createElement(Xt,{id:d,"aria-labelledby":c,displayMonth:e.displayMonth}))}function rn(e){var t=e.initialProps,n=Ve(),o=zt(),i=tt(),a=(0,r.useState)(!1),s=a[0],l=a[1];(0,r.useEffect)((function(){n.initialFocus&&o.focusTarget&&(s||(o.focus(o.focusTarget),l(!0)))}),[n.initialFocus,s,o.focus,o.focusTarget,o]);var u=[n.classNames.root,n.className];n.numberOfMonths>1&&u.push(n.classNames.multiple_months),n.showWeekNumber&&u.push(n.classNames.with_weeknumber);var c=je(je({},n.styles.root),n.style),d=Object.keys(t).filter((function(e){return e.startsWith("data-")})).reduce((function(e,n){var r;return je(je({},e),((r={})[n]=t[n],r))}),{});return r.createElement("div",je({className:u.join(" "),style:c,dir:n.dir,id:n.id},d),r.createElement("div",{className:n.classNames.months,style:n.styles.months},i.displayMonths.map((function(e,t){return r.createElement(nn,{key:t,displayIndex:t,displayMonth:e})}))))}function on(e){var t=e.children,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);return r.createElement(Ze,{initialProps:n},r.createElement(et,null,r.createElement(Ht,{initialProps:n},r.createElement(pt,{initialProps:n},r.createElement(bt,{initialProps:n},r.createElement(Lt,null,r.createElement(Ft,null,t)))))))}function an(e){return r.createElement(on,je({},e),r.createElement(rn,{initialProps:e}))}},90787:(e,t,n)=>{"use strict";n.d(t,{u:()=>c});var r=n(2784);function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}const i=()=>"undefined"!=typeof window&&!!window.HTMLDialogElement;let a=0;const s=()=>"undefined"!=typeof document&&document.head,l=(0,r.forwardRef)(((e,t)=>{const{children:n,open:l,_rd:u,onCancel:c,onClose:d,_md:f,...h}=e;return(0,r.useEffect)((()=>{if(s()&&!i()){if(a<=0){const e=document.createElement("style");e.innerHTML="dialog:not([open]){display: none;}",e.id="_rdp",document.head.appendChild(e)}return a++,()=>{if(a--,!s()||a>0)return;const e=document.getElementById("_rdp");e&&document.head.removeChild(e)}}}),[]),(0,r.useEffect)((()=>{const e=t.current;e&&u&&e.open!==l&&(l?f?()=>e.showModal():()=>e.show():()=>e.close())()}),[u,l,t,f]),r.createElement("dialog",o({},h,{ref:t,onCancel:e=>{e.preventDefault(),c(e,t.current)},onClose:e=>{d(e,t.current)}}),n)}));l.defaultProps={onClose:()=>{},onCancel:()=>{}};const u=e=>{const t=(0,r.createRef)(),[a,s]=(0,r.useState)();return(0,r.useEffect)((()=>{const e=t.current;if(a||!e)return;let r=!0;return(i()?Promise.resolve():n.e(827).then(n.bind(n,30730))).then((t=>{t&&t.default.registerDialog(e)})).catch((e=>{})).finally((()=>{r&&s(!0)})),()=>r=!1}),[t,a]),r.createElement(l,o({},e,{_rd:a,ref:t}))},c=e=>r.createElement(u,o({},e,{_md:!0}))},83997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FILE:()=>r,TEXT:()=>i,URL:()=>o});var r="__NATIVE_FILE__",o="__NATIVE_URL__",i="__NATIVE_TEXT__"},42484:(e,t,n)=>{"use strict";var r;function o(){return r||((r=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}n.d(t,{r:()=>o})},58651:(e,t,n)=>{"use strict";function r(e){var t=null;return function(){return null==t&&(t=e()),t}}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,{ZP:()=>O});var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,r;return t=e,(n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&o(t.prototype,n),r&&o(t,r),e}(),a=r((function(){return/firefox/i.test(navigator.userAgent)})),s=r((function(){return Boolean(window.safari)}));function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,o=[],i=0;i<r;i++)o.push(i);o.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],u=[],c=[],d=0;d<r-1;d++)a=t[d+1]-t[d],s=n[d+1]-n[d],u.push(a),l.push(s),c.push(s/a);for(var f=[c[0]],h=0;h<u.length-1;h++){var p=c[h],g=c[h+1];if(p*g<=0)f.push(0);else{a=u[h];var m=u[h+1],v=a+m;f.push(3*v/((v+m)/p+(v+a)/g))}}f.push(c[c.length-1]);for(var y,b=[],w=[],x=0;x<f.length-1;x++){y=c[x];var S=f[x],_=1/u[x],E=S+f[x+1]-y-y;b.push((y-S-E)*_),w.push(E*_*_)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=b,this.c3s=w}var t,n,r;return t=e,(n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=i.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var d=e-t[a=Math.max(0,u)],f=d*d;return n[a]+r[a]*d+o[a]*f+i[a]*d*f}}])&&l(t.prototype,n),r&&l(t,r),e}(),c=1;function d(e){var t=e.nodeType===c?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function f(e){return{x:e.clientX,y:e.clientY}}function h(e,t,n,r,o){var i,l,c="IMG"===(i=t).nodeName&&(a()||!document.documentElement.contains(i)),f=d(c?e:t),h={x:n.x-f.x,y:n.y-f.y},p=e.offsetWidth,g=e.offsetHeight,m=r.anchorX,v=r.anchorY,y=function(e,t,n,r){var o=e?t.width:n,i=e?t.height:r;return s()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(c,t,p,g),b=y.dragPreviewWidth,w=y.dragPreviewHeight,x=o.offsetX,S=o.offsetY,_=0===S||S;return{x:0===x||x?x:new u([0,.5,1],[h.x,h.x/p*b,h.x+b-p]).interpolate(m),y:_?S:(l=new u([0,.5,1],[h.y,h.y/g*w,h.y+w-g]).interpolate(v),s()&&c&&(l+=(window.devicePixelRatio-1)*w),l)}}var p,g=n(83997);function m(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=(v(p={},g.FILE,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),v(p,g.URL,{exposeProperties:{urls:function(e,t){return m(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),v(p,g.TEXT,{exposeProperties:{text:function(e,t){return m(e,t,"")}},matchesTypes:["Text","text/plain"]}),p);function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var w=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&b(t.prototype,n),r&&b(t,r),e}();function x(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(y).filter((function(e){return y[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var _=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&S(t.prototype,n),r&&S(t,r),e}();function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var T=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){return d(r.sourceNodes.get(e))},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return r.document&&r.document.body&&document.body.contains(e)},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=f(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var o=e.dataTransfer,i=x(o);if(r.monitor.isDragging()){if(o&&"function"==typeof o.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),l=r.sourcePreviewNodes.get(a)||s;if(l){var u=r.getCurrentSourcePreviewNodeOptions(),c=h(s,l,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});o.setDragImage(l,c.x,c.y)}}try{o.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(i)r.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=x(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,a()||r.actions.hover(t,{clientOffset:f(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:f(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem()&&r.currentNativeSource.loadDataTransfer(e.dataTransfer),r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:f(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new _(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new i(this.isNodeInDocument)}var t,n,r;return t=e,(n=[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var o=function(t){return r.handleDragStart(t,e)},i=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},o=function(t){return n.handleDragOver(t,e)},i=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return k({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return k({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(g).some((function(t){return g[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new w(y[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&A(t.prototype,n),r&&A(t,r),e}();const O=function(e,t){return new T(e,t)}},94953:(e,t,n)=>{"use strict";n.d(t,{L:()=>ve,W:()=>ye});var r=n(2784),o=n(18717),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",s="dnd-core/PUBLISH_DRAG_SOURCE",l="dnd-core/HOVER",u="dnd-core/DROP",c="dnd-core/END_DRAG",d=function(e,t){return e===t};function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function g(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case i:case a:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case l:return e=n.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{clientOffset:o.clientOffset});case c:case u:return p;default:return n}}var m="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",y="dnd-core/REMOVE_SOURCE",b="dnd-core/REMOVE_TARGET";function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function x(e){return"object"===w(e)}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function C(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,r=arguments.length>1?arguments[1]:void 0,o=r.payload;switch(r.type){case a:return _({},n,{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case s:return _({},n,{isSourcePublic:!0});case l:return _({},n,{targetIds:o.targetIds});case b:return-1===n.targetIds.indexOf(o.targetId)?n:_({},n,{targetIds:(e=n.targetIds,t=o.targetId,e.filter((function(e){return e!==t})))});case u:return _({},n,{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case c:return _({},n,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case m:case v:return e+1;case y:case b:return e-1;default:return e}}var T=[],O=[];function M(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case l:break;case m:case v:case b:case y:return T;default:return O}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var n=new Map,r=function(e){return n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var o=[];return n.forEach((function(e,t){1===e&&o.push(t)})),o}(r,i),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,i);if(!s)return T;var u=i[i.length-1],c=r[r.length-1];return u!==c&&(u&&a.push(u),c&&a.push(c)),a}function R(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:M(r.dirtyHandlerIds,{type:o.type,payload:D({},o.payload,{prevTargetIds:(e=r,t="dragOperation.targetIds",n=[],t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e))})}),dragOffset:g(r.dragOffset,o),refCount:A(r.refCount,o),dragOperation:C(r.dragOperation,o),stateId:R(r.stateId)}}T.__IS_NONE__=!0,O.__IS_ALL__=!0;var I=n(45293);function $(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var N={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function F(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,o=void 0===r||r,i=n.clientOffset,s=n.getSourceClientOffset,l=e.getMonitor(),u=e.getRegistry();e.dispatch($(i)),function(e,t,n){(0,I.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,I.k)(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,l,u);var c=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,l);if(null!==c){var d=null;i&&(!function(e){(0,I.k)("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(s),d=s(c)),e.dispatch($(i,d));var f=u.getSource(c).beginDrag(l,c);!function(e){(0,I.k)(x(e),"Item must be an object.")}(f),u.pinSource(c);var h=u.getSourceType(c);return{type:a,payload:{itemType:h,item:f,sourceId:c,clientOffset:i||null,sourceClientOffset:d||null,isSourcePublic:!!o}}}e.dispatch(N)}}function z(e){return function(){if(e.getMonitor().isDragging())return{type:s}}}function B(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function H(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){(0,I.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){(0,I.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,I.k)(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var o=e[r];(0,I.k)(e.lastIndexOf(o)===r,"Expected targetIds to be unique in the passed array.");var i=n.getTarget(o);(0,I.k)(i,"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){for(var r=e.length-1;r>=0;r--){var o=e[r];B(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,o,i),{type:l,payload:{targetIds:r,clientOffset:n||null}}}}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){(0,I.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,I.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);o.forEach((function(o,i){var a=function(e,t,n,r){var o=n.getTarget(e),i=o?o.drop(r,e):void 0;(function(e){(0,I.k)(void 0===e||x(e),"Drop result must either be an object or undefined.")})(i),void 0===i&&(i=0===t?{}:r.getDropResult());return i}(o,i,r,n),s={type:u,payload:{dropResult:U({},t,{},a)}};e.dispatch(s)}))}}function G(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){(0,I.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();return n.getSource(r,!0).endDrag(t,r),n.unpinSource(),{type:c}}}function q(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var K,X=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=n}var t,n,r;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;(0,I.k)("function"==typeof e,"listener must be a function."),(0,I.k)(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe((function(){var o=t.store.getState(),i=o.stateId;try{var a=i===r||i===r+1&&!function(e,t){return e!==T&&(e===O||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}(o.dirtyHandlerIds,n);a||e()}finally{r=i}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,I.k)("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,I.k)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,I.k)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&B(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,I.k)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!B(n,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset,r&&o&&i?q((n=i,{x:(t=r).x+n.x,y:t.y+n.y}),o):null;var e,t,n,r,o,i}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?q(t,n):null;var e,t,n}}],n&&Y(t.prototype,n),r&&Y(t,r),e}(),Q=0;function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function ee(e,t){t&&Array.isArray(e)?e.forEach((function(e){return ee(e,!1)})):(0,I.k)("string"==typeof e||"symbol"===J(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(K||(K={}));const te="undefined"!=typeof global?global:self,ne=te.MutationObserver||te.WebKitMutationObserver;function re(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const oe="function"==typeof ne?function(e){let t=1;const n=new ne(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:re;class ie{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const ae=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=oe(this.flush),this.requestErrorThrow=re((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},se=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new ie(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(ae.registerPendingError);function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ce(e){var t=(Q++).toString();switch(e){case K.SOURCE:return"S".concat(t);case K.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function de(e){switch(e[0]){case"S":return K.SOURCE;case"T":return K.TARGET;default:(0,I.k)(!1,"Cannot parse handler ID: ".concat(e))}}function fe(e,t){var n=e.entries(),r=!1;do{var o=n.next(),i=o.done;if(ue(o.value,2)[1]===t)return!0;r=!!i}while(!r);return!1}var he=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,n,r;return t=e,n=[{key:"addSource",value:function(e,t){ee(e),function(e){(0,I.k)("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,I.k)("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,I.k)("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(K.SOURCE,e,t);return this.store.dispatch(function(e){return{type:m,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){ee(e,!0),function(e){(0,I.k)("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,I.k)("function"==typeof e.hover,"Expected hover to be a function."),(0,I.k)("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(K.TARGET,e,t);return this.store.dispatch(function(e){return{type:v,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return fe(this.dragSources,e)||fe(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,I.k)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return(0,I.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,I.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,I.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return de(e)===K.SOURCE}},{key:"isTargetId",value:function(e){return de(e)===K.TARGET}},{key:"removeSource",value:function(e){var t,n=this;(0,I.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:y,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},ae.enqueueTask(se.create(t))}},{key:"removeTarget",value:function(e){(0,I.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:b,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,I.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,I.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=ce(e);return this.types.set(r,t),e===K.SOURCE?this.dragSources.set(r,n):e===K.TARGET&&this.dropTargets.set(r,n),r}}],n&&le(t.prototype,n),r&&le(t,r),e}();function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ge=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.MT)(j,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=r,this.monitor=new X(r,new he(r)),r.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:F(e),publishDragSource:z(e),hover:H(e),drop:V(e),endDrag:G(e)}}(this);return Object.keys(n).reduce((function(r,o){var i,a=n[o];return r[o]=(i=a,function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=i.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&pe(t.prototype,n),r&&pe(t,r),e}();function me(e,t,n,r){var o=new ge(r),i=e(o,t,n);return o.receiveBackend(i),o}var ve=r.createContext({dragDropManager:void 0});function ye(e,t,n,r){return{dragDropManager:me(e,t,n,r)}}},41791:(e,t,n)=>{"use strict";n.d(t,{W:()=>l});var r=n(2784),o=n(94953);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=0,l=(0,r.memo)((function(e){var t=e.children,n=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[u]||(i[u]=(0,o.W)(e,t,n,r));return i[u]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(a(e,["children"])),l=i(n,2),d=l[0],f=l[1];return r.useEffect((function(){return f&&s++,function(){f&&(0===--s&&(c()[u]=null))}}),[]),r.createElement(o.L.Provider,{value:d},t)}));l.displayName="DndProvider";var u=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function c(){return void 0!==n.g?n.g:window}},98720:(e,t,n)=>{"use strict";function r(e,t,n){var r=n.getRegistry(),o=r.addTarget(e,t);return[o,function(){return r.removeTarget(o)}]}function o(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}n.d(t,{n:()=>r,w:()=>o})},57709:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2784),o=n(45293);function i(e,t){"function"==typeof e?e(t):e.current=t}function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,r.isValidElement)(t)){var a=t;return e(a,n),a}var s=t;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(s);var l=n?function(t){return e(t,n)}:e;return function(e,t){var n=e.ref;return(0,o.k)("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,r.cloneElement)(e,{ref:function(e){i(n,e),i(t,e)}}):(0,r.cloneElement)(e,{ref:t})}(s,l)}}function s(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=a(r);t[n]=function(){return o}}})),t}},95153:(e,t,n)=>{"use strict";n.d(t,{r:()=>s});var r=n(57320),o=n(2784),i=n(71159);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e,t,n){var s=a((0,o.useState)((function(){return t(e)})),2),l=s[0],u=s[1],c=(0,o.useCallback)((function(){var o=t(e);(0,r.w)(l,o)||(u(o),n&&n())}),[l,e,n]);return(0,i.L)(c,[]),[l,c]}},96729:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(2784),o=n(45293),i=n(94953);function a(){var e=(0,r.useContext)(i.L).dragDropManager;return(0,o.k)(null!=e,"Expected drag drop context"),e}},71159:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(2784),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect},42423:(e,t,n)=>{"use strict";n.d(t,{U:()=>a});var r=n(71159),o=n(95153);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e,t,n){var a=i((0,o.r)(e,t,n),2),s=a[0],l=a[1];return(0,r.L)((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(l,{handlerIds:[t]})}),[e,l]),s}},55871:(e,t,n)=>{"use strict";n.d(t,{c:()=>x});var r=n(2784),o=n(45293),i=n(42423),a=n(71159),s=n(98720),l=n(96729);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=!1,d=!1,f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,o.k)(!c,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return c=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{c=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,o.k)(!d,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return d=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{d=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&u(t.prototype,n),r&&u(t,r),e}(),h=n(57709),p=n(34818),g=n(57320);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var v=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,h.Z)({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,(0,p.d)(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,(0,p.d)(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();this.handlerId?this.dragPreview&&t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.disconnectDragPreview(),this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.disconnectDragPreview()}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,g.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,g.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&m(t.prototype,n),r&&m(t,r),e}();function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function x(e){var t=(0,r.useRef)(e);t.current=e,(0,o.k)(null!=e.item,"item must be defined"),(0,o.k)(null!=e.item.type,"item type must be defined");var n,u=w((n=(0,l.N)(),[(0,r.useMemo)((function(){return new f(n)}),[n]),(0,r.useMemo)((function(){return new v(n.getBackend())}),[n])]),2),c=u[0],d=u[1];!function(e,t,n){var i=(0,l.N)(),u=(0,r.useMemo)((function(){return{beginDrag:function(){var n=e.current,r=n.begin,i=n.item;if(r){var a=r(t);return(0,o.k)(null==a||"object"===b(a),"dragSpec.begin() must either return an object, undefined, or null"),a||i||{}}return i||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(n,r){var o=e.current.isDragging;return o?o(t):r===n.getSourceId()},endDrag:function(){var r=e.current.end;r&&r(t.getItem(),t),n.reconnect()}}}),[]);(0,a.L)((function(){var r=y((0,s.w)(e.current.item.type,u,i),2),o=r[0],a=r[1];return t.receiveHandlerId(o),n.receiveHandlerId(o),a}),[])}(t,c,d);var h=(0,i.U)(c,t.current.collect||function(){return{}},(function(){return d.reconnect()})),p=(0,r.useMemo)((function(){return d.hooks.dragSource()}),[d]),g=(0,r.useMemo)((function(){return d.hooks.dragPreview()}),[d]);return(0,a.L)((function(){d.dragSourceOptions=t.current.options||null,d.reconnect()}),[d]),(0,a.L)((function(){d.dragPreviewOptions=t.current.previewOptions||null,d.reconnect()}),[d]),[h,p,g]}},19081:(e,t,n)=>{"use strict";n.d(t,{f:()=>s});var r=n(2784),o=n(96729),i=n(95153);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){var t=(0,o.N)().getMonitor(),n=a((0,i.r)(t,e),2),s=n[0],l=n[1];return(0,r.useEffect)((function(){return t.subscribeToOffsetChange(l)})),(0,r.useEffect)((function(){return t.subscribeToStateChange(l)})),s}},11037:(e,t,n)=>{"use strict";n.d(t,{L:()=>b});var r=n(2784),o=n(45293),i=n(42423),a=n(71159),s=n(98720),l=n(96729),u=n(57320),c=n(57709),d=n(34818);function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var h=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,c.Z)({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,d.d)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,u.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&f(t.prototype,n),r&&f(t,r),e}();function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var g=!1,m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,o.k)(!g,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return g=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{g=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&p(t.prototype,n),r&&p(t,r),e}();function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(e){var t=(0,r.useRef)(e);t.current=e,(0,o.k)(null!=e.accept,"accept must be defined");var n,u=y((n=(0,l.N)(),[(0,r.useMemo)((function(){return new m(n)}),[n]),(0,r.useMemo)((function(){return new h(n.getBackend())}),[n])]),2),c=u[0],d=u[1];!function(e,t,n){var o=(0,l.N)(),i=(0,r.useMemo)((function(){return{canDrop:function(){var n=e.current.canDrop;return!n||n(t.getItem(),t)},hover:function(){var n=e.current.hover;n&&n(t.getItem(),t)},drop:function(){var n=e.current.drop;if(n)return n(t.getItem(),t)}}}),[t]);(0,a.L)((function(){var r=v((0,s.n)(e.current.accept,i,o),2),a=r[0],l=r[1];return t.receiveHandlerId(a),n.receiveHandlerId(a),l}),[t,n])}(t,c,d);var f=(0,i.U)(c,t.current.collect||function(){return{}},(function(){return d.reconnect()})),p=(0,r.useMemo)((function(){return d.hooks.dropTarget()}),[d]);return(0,a.L)((function(){d.dropTargetOptions=e.options||null,d.reconnect()}),[e.options]),[f,p]}},34818:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return null!==e&&"object"===r(e)&&e.hasOwnProperty("current")}n.d(t,{d:()=>o})},52967:(e,t,n)=>{"use strict";var r=n(2784),o=n(37320),i=n(14616);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[: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]*$/,h=Object.prototype.hasOwnProperty,p={},g={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,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(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!h.call(g,e)||!h.call(p,e)&&(f.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,_=60106,E=60107,k=60108,C=60114,A=60109,T=60110,O=60112,M=60113,R=60120,L=60115,D=60116,P=60121,j=60128,I=60129,$=60130,N=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;S=F("react.element"),_=F("react.portal"),E=F("react.fragment"),k=F("react.strict_mode"),C=F("react.profiler"),A=F("react.provider"),T=F("react.context"),O=F("react.forward_ref"),M=F("react.suspense"),R=F("react.suspense_list"),L=F("react.memo"),D=F("react.lazy"),P=F("react.block"),F("react.scope"),j=F("react.opaque.id"),I=F("react.debug_trace_mode"),$=F("react.offscreen"),N=F("react.legacy_hidden")}var z,B="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var U=!1;function Z(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function V(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=Z(e.type,!1);case 11:return e=Z(e.type.render,!1);case 22:return e=Z(e.type._render,!1);case 1:return e=Z(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case _:return"Portal";case C:return"Profiler";case k:return"StrictMode";case M:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case L:return G(e.type);case P:return G(e._render);case D:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function q(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+q(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:q(n)}}function ue(e,t){var n=q(t.value),r=q(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function fe(e){switch(e){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 he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,ge,me=(ge=function(e,t){if(e.namespaceURI!==de.svg||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=o({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 _e(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Ee(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Ae=null,Te=null;function Oe(e){if(e=no(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=oo(t),Ce(e.stateNode,e.type,t))}}function Me(e){Ae?Te?Te.push(e):Te=[e]:Ae=e}function Re(){if(Ae){var e=Ae,t=Te;if(Te=Ae=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Le(e,t){return e(t)}function De(e,t,n,r,o){return e(t,n,r,o)}function Pe(){}var je=Le,Ie=!1,$e=!1;function Ne(){null===Ae&&null===Te||(Pe(),Re())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=oo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var ze=!1;if(d)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ge){ze=!1}function He(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var We=!1,Ue=null,Ze=!1,Ve=null,Ge={onError:function(e){We=!0,Ue=e}};function qe(e,t,n,r,o,i,a,s,l){We=!1,Ue=null,He.apply(Ge,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(a(188))}function Qe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Xe(o),e;if(i===r)return Xe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,st=null,lt=null,ut=new Map,ct=new Map,dt=[],ft="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 ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=no(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function mt(e){var t=to(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=no(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function xt(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==st&&wt(st,e),null!==lt&&wt(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Et={},kt={};function Ct(e){if(Et[e])return Et[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return Et[e]=n[t];return e}d&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var At=Ct("animationend"),Tt=Ct("animationiteration"),Ot=Ct("animationstart"),Mt=Ct("transitionend"),Rt=new Map,Lt=new Map,Dt=["abort","abort",At,"animationEnd",Tt,"animationIteration",Ot,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mt,"transitionEnd","waiting","waiting"];function Pt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Lt.set(r,t),Rt.set(r,o),u(o,[r])}}(0,i.unstable_now)();var jt=8;function It(e){if(0!=(1&e))return jt=15,1;if(0!=(2&e))return jt=14,2;if(0!=(4&e))return jt=13,4;var t=24&e;return 0!==t?(jt=12,t):0!=(32&e)?(jt=11,32):0!==(t=192&e)?(jt=10,t):0!=(256&e)?(jt=9,256):0!==(t=3584&e)?(jt=8,t):0!=(4096&e)?(jt=7,4096):0!==(t=4186112&e)?(jt=6,t):0!==(t=62914560&e)?(jt=5,t):67108864&e?(jt=4,67108864):0!=(134217728&e)?(jt=3,134217728):0!==(t=805306368&e)?(jt=2,t):0!=(1073741824&e)?(jt=1,1073741824):(jt=8,e)}function $t(e,t){var n=e.pendingLanes;if(0===n)return jt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=jt=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=It(l),o=jt):0!==(s&=i)&&(r=It(s),o=jt)}else 0!==(i=n&~a)?(r=It(i),o=jt):0!==s&&(r=It(s),o=jt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(It(t),o<=jt)return t;jt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Wt(t)),r|=e[n],t&=~o;return r}function Nt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ft(10,t):e;case 10:return 0===(e=zt(192&~t))?Ft(8,t):e;case 8:return 0===(e=zt(3584&~t))&&(0===(e=zt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function zt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Zt|0)|0},Ut=Math.log,Zt=Math.LN2;var Vt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,qt=!0;function Yt(e,t,n,r){Ie||Pe();var o=Xt,i=Ie;Ie=!0;try{De(o,e,t,n,r)}finally{(Ie=i)||Ne()}}function Kt(e,t,n,r){Gt(Vt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var o;if(qt)if((o=0==(4&t))&&0<it.length&&-1<ft.indexOf(e))e=ht(null,e,t,n,r),it.push(e);else{var i=Qt(e,t,n,r);if(null===i)o&&pt(e,r);else{if(o){if(-1<ft.indexOf(e))return e=ht(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=gt(at,e,t,n,r,o),!0;case"dragenter":return st=gt(st,e,t,n,r,o),!0;case"mouseover":return lt=gt(lt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,gt(ut.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ct.set(i,gt(ct.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;pt(e,r)}Pr(e,t,r,null,n)}}}function Qt(e,t,n,r){var o=ke(r);if(null!==(o=to(o))){var i=Ye(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ke(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Pr(e,t,r,o,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,cn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=sn(dn),hn=o({},dn,{view:0,detail:0}),pn=sn(hn),gn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=sn(gn),vn=sn(o({},gn,{dataTransfer:0})),yn=sn(o({},hn,{relatedTarget:0})),bn=sn(o({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=sn(wn),Sn=sn(o({},dn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={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"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function An(){return Cn}var Tn=o({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=sn(Tn),Mn=sn(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=sn(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Ln=sn(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=o({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pn=sn(Dn),jn=[9,13,27,32],In=d&&"CompositionEvent"in window,$n=null;d&&"documentMode"in document&&($n=document.documentMode);var Nn=d&&"TextEvent"in window&&!$n,Fn=d&&(!In||$n&&8<$n&&11>=$n),zn=String.fromCharCode(32),Bn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var Zn={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 Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Zn[e.type]:"textarea"===t}function Gn(e,t,n,r){Me(r),0<(t=Ir(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Yn=null;function Kn(e){Tr(e,0)}function Xn(e){if(X(ro(e)))return e}function Qn(e,t){if("change"===e)return t}var Jn=!1;if(d){var er;if(d){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Jn=er&&(!document.documentMode||9<document.documentMode)}function rr(){qn&&(qn.detachEvent("onpropertychange",or),Yn=qn=null)}function or(e){if("value"===e.propertyName&&Xn(Yn)){var t=[];if(Gn(t,Yn,e,ke(e)),e=Kn,Ie)e(t);else{Ie=!0;try{Le(e,t)}finally{Ie=!1,Ne()}}}}function ir(e,t,n){"focusin"===e?(rr(),Yn=n,(qn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Yn)}function sr(e,t){if("click"===e)return Xn(t)}function lr(e,t){if("input"===e||"change"===e)return Xn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function dr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=fr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vr=d&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,wr=null,xr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==yr||yr!==Q(r)||("selectionStart"in(r=yr)&&mr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&dr(wr,r)||(wr=r,0<(r=Ir(br,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Pt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Pt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Pt(Dt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Er<_r.length;Er++)Lt.set(_r[Er],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,u){if(qe.apply(this,arguments),We){if(!We)throw Error(a(198));var c=Ue;We=!1,Ue=null,Ze||(Ze=!0,Ve=c)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Ar(o,s,u),i=l}}}if(Ze)throw e=Ve,Ze=!1,Ve=null,e}function Or(e,t){var n=io(t),r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Rr(e){e[Mr]||(e[Mr]=!0,s.forEach((function(t){Cr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=io(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Dr(i,e,o,t),a.add(s))}function Dr(e,t,n,r){var o=Lt.get(t);switch(void 0===o?2:o){case 0:o=Yt;break;case 1:o=Kt;break;default:o=Xt}n=o.bind(null,t,n,e),o=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Pr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=to(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if($e)return e(t,n);$e=!0;try{return je(e,t,n)}finally{$e=!1,Ne()}}((function(){var r=i,o=ke(n),a=[];e:{var s=Rt.get(e);if(void 0!==s){var l=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=On;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case At:case Tt:case Ot:l=bn;break;case Mt:l=Ln;break;case"scroll":l=pn;break;case"wheel":l=Pn;break;case"copy":case"cut":case"paste":l=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mn}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Fe(p,f))&&c.push(jr(p,g,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!to(u)&&!u[Jr])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?to(u):null)&&(u!==(d=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=mn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Mn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:ro(l),h=null==u?s:ro(u),(s=new c(g,p+"leave",l,n,o)).target=d,s.relatedTarget=h,g=null,to(o)===r&&((c=new c(f,p+"enter",u,n,o)).target=h,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,p=0,h=c=l;h;h=$r(h))p++;for(h=0,g=f;g;g=$r(g))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)f=$r(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=$r(c),f=$r(f)}c=null}else c=null;null!==l&&Nr(a,s,l,c,!1),null!==u&&null!==d&&Nr(a,d,u,c,!0)}if("select"===(l=(s=r?ro(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Qn;else if(Vn(s))if(Jn)m=lr;else{m=ar;var v=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=sr);switch(m&&(m=m(e,r))?Gn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&oe(s,"number",s.value)),v=r?ro(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(yr=v,br=r,wr=null);break;case"focusout":wr=br=yr=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,Sr(a,n,o);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":Sr(a,n,o)}var y;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=nn()):(en="value"in(Jt=o)?Jt.value:Jt.textContent,Un=!0)),0<(v=Ir(r,b)).length&&(b=new Sn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Wn(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return Wn(t);case"keypress":return 32!==t.which?null:(Bn=!0,zn);case"textInput":return(e=t.data)===zn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!In&&Hn(e,t)?(e=nn(),tn=en=Jt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Ir(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Tr(a,t)}))}function jr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ir(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fe(e,n))&&r.unshift(jr(e,i,o)),null!=(i=Fe(e,t))&&r.push(jr(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Nr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Fe(n,i))&&a.unshift(jr(n,l,s)):o||null!=(l=Fe(n,i))&&a.push(jr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Fr(){}var zr=null,Br=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Wr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Zr="function"==typeof clearTimeout?clearTimeout:void 0;function Vr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function qr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Yr=0;var Kr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Kr,Qr="__reactProps$"+Kr,Jr="__reactContainer$"+Kr,eo="__reactEvents$"+Kr;function to(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Jr]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=qr(e);null!==e;){if(n=e[Xr])return n;e=qr(e)}return t}n=(e=n).parentNode}return null}function no(e){return!(e=e[Xr]||e[Jr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ro(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oo(e){return e[Qr]||null}function io(e){var t=e[eo];return void 0===t&&(t=e[eo]=new Set),t}var ao=[],so=-1;function lo(e){return{current:e}}function uo(e){0>so||(e.current=ao[so],ao[so]=null,so--)}function co(e,t){so++,ao[so]=e.current,e.current=t}var fo={},ho=lo(fo),po=lo(!1),go=fo;function mo(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function vo(e){return null!=(e=e.childContextTypes)}function yo(){uo(po),uo(ho)}function bo(e,t,n){if(ho.current!==fo)throw Error(a(168));co(ho,t),co(po,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function xo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,go=ho.current,co(ho,e),co(po,po.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wo(e,t,go),r.__reactInternalMemoizedMergedChildContext=e,uo(po),uo(ho),co(ho,e)):uo(po),co(po,n)}var _o=null,Eo=null,ko=i.unstable_runWithPriority,Co=i.unstable_scheduleCallback,Ao=i.unstable_cancelCallback,To=i.unstable_shouldYield,Oo=i.unstable_requestPaint,Mo=i.unstable_now,Ro=i.unstable_getCurrentPriorityLevel,Lo=i.unstable_ImmediatePriority,Do=i.unstable_UserBlockingPriority,Po=i.unstable_NormalPriority,jo=i.unstable_LowPriority,Io=i.unstable_IdlePriority,$o={},No=void 0!==Oo?Oo:function(){},Fo=null,zo=null,Bo=!1,Ho=Mo(),Wo=1e4>Ho?Mo:function(){return Mo()-Ho};function Uo(){switch(Ro()){case Lo:return 99;case Do:return 98;case Po:return 97;case jo:return 96;case Io:return 95;default:throw Error(a(332))}}function Zo(e){switch(e){case 99:return Lo;case 98:return Do;case 97:return Po;case 96:return jo;case 95:return Io;default:throw Error(a(332))}}function Vo(e,t){return e=Zo(e),ko(e,t)}function Go(e,t,n){return e=Zo(e),Co(e,t,n)}function qo(){if(null!==zo){var e=zo;zo=null,Ao(e)}Yo()}function Yo(){if(!Bo&&null!==Fo){Bo=!0;var e=0;try{var t=Fo;Vo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Fo=null}catch(t){throw null!==Fo&&(Fo=Fo.slice(e+1)),Co(Lo,qo),t}finally{Bo=!1}}}var Ko=x.ReactCurrentBatchConfig;function Xo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qo=lo(null),Jo=null,ei=null,ti=null;function ni(){ti=ei=Jo=null}function ri(e){var t=Qo.current;uo(Qo),e.type._context._currentValue=t}function oi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ii(e,t){Jo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Ia=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Jo)throw Error(a(308));ei=t,Jo.dependencies={lanes:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var si=!1;function li(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ci(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;si=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==a){for(f=i.baseState,s=0,d=c=u=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(l=t,h=n,g.tag){case 1:if("function"==typeof(p=g.payload)){f=p.call(h,f,l);break e}f=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=g.payload)?p.call(h,f,l):p))break e;f=o({},f,l);break e;case 2:si=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(c=d=h,u=f):d=d.next=h,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,Bs|=s,e.lanes=s,e.memoizedState=f}}function pi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var gi=(new r.Component).refs;function mi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=fl(),o=hl(e),i=ci(r,o);i.payload=t,null!=n&&(i.callback=n),di(e,i),pl(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=fl(),o=hl(e),i=ci(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),di(e,i),pl(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=fl(),r=hl(e),o=ci(n,r);o.tag=2,null!=t&&(o.callback=t),di(e,o),pl(e,r,n)}};function yi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(o,i))}function bi(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"==typeof i&&null!==i?i=ai(i):(o=vo(t)?go:ho.current,i=(r=null!=(r=t.contextTypes))?mo(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function wi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vi.enqueueReplaceState(t,t.state,null)}function xi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=gi,li(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ai(i):(i=vo(t)?go:ho.current,o.context=mo(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(mi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&vi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Si=Array.isArray;function _i(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===gi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ki(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Vl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Kl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_i(e,t,n),r.return=e,r):((r=Gl(n.type,n.key,n.props,null,e.mode,r)).ref=_i(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=ql(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Kl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Gl(t.type,t.key,t.props,null,e.mode,n)).ref=_i(e,null,t),n.return=e,n;case _:return(t=Xl(t,e.mode,n)).return=e,t}if(Si(t)||H(t))return(t=ql(t,e.mode,n,null)).return=e,t;Ei(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===o?n.type===E?d(e,t,n.props.children,r,o):u(e,t,n,r):null;case _:return n.key===o?c(e,t,n,r):null}if(Si(n)||H(n))return null!==o?null:d(e,t,n,r,null);Ei(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===E?d(t,e,r.props.children,o,r.key):u(t,e,r,o);case _:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||H(r))return d(t,e=e.get(n)||null,r,o,null);Ei(t,r)}return null}function g(o,a,s,l){for(var u=null,c=null,d=a,g=a=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(o,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===s.length)return n(o,d),u;if(null===d){for(;g<s.length;g++)null!==(d=f(o,s[g],l))&&(a=i(d,a,g),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(o,d);g<s.length;g++)null!==(m=p(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=i(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(o,e)})),u}function m(o,s,l,u){var c=H(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(o,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=i(b,s,m),null===d?c=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,u))&&(s=i(y,s,m),null===d?c=y:d.sibling=y,d=y);return c}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=p(g,o,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=i(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),c}return function(e,r,i,l){var u="object"==typeof i&&null!==i&&i.type===E&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case S:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===E){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=_i(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===E?((r=ql(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Gl(i.type,i.key,i.props,null,e.mode,l)).ref=_i(e,r,i),l.return=e,e=l)}return s(e);case _:e:{for(u=i.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Kl(i,e.mode,l)).return=e,e=r),s(e);if(Si(i))return g(e,r,i,l);if(H(i))return m(e,r,i,l);if(c&&Ei(e,i),void 0===i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Ci=ki(!0),Ai=ki(!1),Ti={},Oi=lo(Ti),Mi=lo(Ti),Ri=lo(Ti);function Li(e){if(e===Ti)throw Error(a(174));return e}function Di(e,t){switch(co(Ri,t),co(Mi,e),co(Oi,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Oi),co(Oi,t)}function Pi(){uo(Oi),uo(Mi),uo(Ri)}function ji(e){Li(Ri.current);var t=Li(Oi.current),n=he(t,e.type);t!==n&&(co(Mi,e),co(Oi,n))}function Ii(e){Mi.current===e&&(uo(Oi),uo(Mi))}var $i=lo(0);function Ni(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fi=null,zi=null,Bi=!1;function Hi(e,t){var n=Ul(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Wi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ui(e){if(Bi){var t=zi;if(t){var n=t;if(!Wi(e,t)){if(!(t=Gr(n.nextSibling))||!Wi(e,t))return e.flags=-1025&e.flags|2,Bi=!1,void(Fi=e);Hi(Fi,n)}Fi=e,zi=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Bi=!1,Fi=e}}function Zi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fi=e}function Vi(e){if(e!==Fi)return!1;if(!Bi)return Zi(e),Bi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wr(t,e.memoizedProps))for(t=zi;t;)Hi(e,t),t=Gr(t.nextSibling);if(Zi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){zi=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}zi=null}}else zi=Fi?Gr(e.stateNode.nextSibling):null;return!0}function Gi(){zi=Fi=null,Bi=!1}var qi=[];function Yi(){for(var e=0;e<qi.length;e++)qi[e]._workInProgressVersionPrimary=null;qi.length=0}var Ki=x.ReactCurrentDispatcher,Xi=x.ReactCurrentBatchConfig,Qi=0,Ji=null,ea=null,ta=null,na=!1,ra=!1;function oa(){throw Error(a(321))}function ia(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,o,i){if(Qi=i,Ji=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ki.current=null===e||null===e.memoizedState?La:Da,e=n(r,o),ra){i=0;do{if(ra=!1,!(25>i))throw Error(a(301));i+=1,ta=ea=null,t.updateQueue=null,Ki.current=Pa,e=n(r,o)}while(ra)}if(Ki.current=Ra,t=null!==ea&&null!==ea.next,Qi=0,ta=ea=Ji=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Ji.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Ji.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Ji.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Ji.memoizedState=ta=e:ta=ta.next=e}return ta}function ua(e,t){return"function"==typeof t?t(e):t}function ca(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,u=o;do{var c=u.lane;if((Qi&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,Ji.lanes|=c,Bs|=c}u=u.next}while(null!==u&&u!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ur(i,t.memoizedState)||(Ia=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function fa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Qi&e)===e)&&(t._workInProgressVersionPrimary=r,qi.push(t))),e)return n(t._source);throw qi.push(t),Error(a(350))}function ha(e,t,n,r){var o=Ds;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Ki.current,u=l.useState((function(){return fa(o,t,n)})),c=u[1],d=u[0];u=ta;var f=e.memoizedState,h=f.refs,p=h.getSnapshot,g=f.source;f=f.subscribe;var m=Ji;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(c(e),e=hl(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-Wt(a),u=1<<l;r[l]|=e,a&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=hl(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(p,n)&&ur(g,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=c=Ma.bind(null,Ji,e),u.queue=e,u.baseQueue=null,d=fa(o,t,n),u.memoizedState=u.baseState=d),d}function pa(e,t,n){return ha(la(),e,t,n)}function ga(e){var t=sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ma.bind(null,Ji,e),[t.memoizedState,e]}function ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ji.updateQueue)?(t={lastEffect:null},Ji.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function va(e){return e={current:e},sa().memoizedState=e}function ya(){return la().memoizedState}function ba(e,t,n,r){var o=sa();Ji.flags|=e,o.memoizedState=ma(1|t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var o=la();r=void 0===r?null:r;var i=void 0;if(null!==ea){var a=ea.memoizedState;if(i=a.destroy,null!==r&&ia(r,a.deps))return void ma(t,n,i,r)}Ji.flags|=e,o.memoizedState=ma(1|t,n,i,r)}function xa(e,t){return ba(516,4,e,t)}function Sa(e,t){return wa(516,4,e,t)}function _a(e,t){return wa(4,2,e,t)}function Ea(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ka(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,2,Ea.bind(null,t,e),n)}function Ca(){}function Aa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ta(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ia(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t){var n=Uo();Vo(98>n?98:n,(function(){e(!0)})),Vo(97<n?97:n,(function(){var n=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=n}}))}function Ma(e,t,n){var r=fl(),o=hl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Ji||null!==a&&a===Ji)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(e){}pl(e,o,r)}}var Ra={readContext:ai,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},La={readContext:ai,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:ai,useEffect:xa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ba(4,2,Ea.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ma.bind(null,Ji,e),[r.memoizedState,e]},useRef:va,useState:ga,useDebugValue:Ca,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return xa((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return va(e=Oa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Bi){var e=!1,t=function(e){return{$$typeof:j,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Yr++).toString(36))),Error(a(355))})),n=ga(t)[1];return 0==(2&Ji.mode)&&(Ji.flags|=516,ma(5,(function(){n("r:"+(Yr++).toString(36))}),void 0,null)),t}return ga(t="r:"+(Yr++).toString(36)),t},unstable_isNewReconciler:!1},Da={readContext:ai,useCallback:Aa,useContext:ai,useEffect:Sa,useImperativeHandle:ka,useLayoutEffect:_a,useMemo:Ta,useReducer:ca,useRef:ya,useState:function(){return ca(ua)},useDebugValue:Ca,useDeferredValue:function(e){var t=ca(ua),n=t[0],r=t[1];return Sa((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ca(ua)[0];return[ya().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return ca(ua)[0]},unstable_isNewReconciler:!1},Pa={readContext:ai,useCallback:Aa,useContext:ai,useEffect:Sa,useImperativeHandle:ka,useLayoutEffect:_a,useMemo:Ta,useReducer:da,useRef:ya,useState:function(){return da(ua)},useDebugValue:Ca,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return Sa((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ya().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},ja=x.ReactCurrentOwner,Ia=!1;function $a(e,t,n,r){t.child=null===e?Ai(t,null,n,r):Ci(t,e.child,n,r)}function Na(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=aa(e,t,n,r,i,o),null===e||Ia?(t.flags|=1,$a(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Fa(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Zl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,za(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(o,r)&&e.ref===t.ref)?is(e,t,i):(t.flags|=1,(e=Vl(a,r)).ref=t.ref,e.return=t,t.child=e)}function za(e,t,n,r,o,i){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Ia=!1,0==(i&o))return t.lanes=e.lanes,is(e,t,i);0!=(16384&e.flags)&&(Ia=!0)}return Wa(e,t,n,r,i)}function Ba(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Sl(t,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Sl(t,e),null;t.memoizedState={baseLanes:0},Sl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Sl(t,r);return $a(e,t,o,n),t.child}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Wa(e,t,n,r,o){var i=vo(n)?go:ho.current;return i=mo(t,i),ii(t,o),n=aa(e,t,n,r,i,o),null===e||Ia?(t.flags|=1,$a(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,is(e,t,o))}function Ua(e,t,n,r,o){if(vo(n)){var i=!0;xo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bi(t,n,r),xi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=ai(u):u=mo(t,u=vo(n)?go:ho.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&wi(t,a,r,u),si=!1;var f=t.memoizedState;a.state=f,hi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||po.current||si?("function"==typeof c&&(mi(t,n,c,r),l=t.memoizedState),(s=si||yi(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Xo(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=ai(l):l=mo(t,l=vo(n)?go:ho.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&wi(t,a,r,l),si=!1,f=t.memoizedState,a.state=f,hi(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||po.current||si?("function"==typeof h&&(mi(t,n,h,r),p=t.memoizedState),(u=si||yi(t,n,u,r,f,p,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Za(e,t,n,r,i,o)}function Za(e,t,n,r,o,i){Ha(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&So(t,n,!1),is(e,t,i);r=t.stateNode,ja.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ci(t,e.child,null,i),t.child=Ci(t,null,s,i)):$a(e,t,s,i),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function Va(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),Di(e,t.containerInfo)}var Ga,qa,Ya,Ka,Xa={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,o=t.pendingProps,i=$i.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),co($i,1&i),null===e?(void 0!==o.fallback&&Ui(t),e=o.children,i=o.fallback,a?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ja(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Yl({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ts(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,o):(n=es(e,t,o.children,n),t.memoizedState=null,n))}function Ja(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Yl(t,o,0,null),n=ql(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function es(e,t,n,r){var o=e.child;return e=o.sibling,n=Vl(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ts(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vl(a,s),null!==e?r=Vl(e,r):(r=ql(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ns(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oi(e.return,t)}function rs(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function os(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if($a(e,t,r.children,n),0!=(2&(r=$i.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(co($i,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Ni(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rs(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ni(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rs(t,!0,n,null,i,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function is(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Vl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function as(e,t){if(!Bi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ss(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return vo(t.type)&&yo(),null;case 3:return Pi(),uo(po),uo(ho),Yi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Vi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),qa(t),null;case 5:Ii(t);var i=Li(Ri.current);if(n=t.type,null!==e&&null!=t.stateNode)Ya(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Li(Oi.current),Vi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Xr]=t,r[Qr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Or(kr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":le(r,s),Or("invalid",r)}for(var u in _e(n,s),e=null,s)s.hasOwnProperty(u)&&(i=s[u],"children"===u?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Or("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de.html&&(e=fe(n)),e===de.html?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Xr]=t,e[Qr]=r,Ga(e,t,!1,!1),t.stateNode=e,u=Ee(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Or(kr[i],e);i=r;break;case"source":Or("error",e),i=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),i=r;break;case"details":Or("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Or("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Or("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Or("invalid",e);break;default:i=r}_e(n,i);var c=i;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?xe(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&me(e,d):"children"===s?"string"==typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"==typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Or("scroll",e):null!=d&&w(e,s,d,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+q(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Fr)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Li(Ri.current),Li(Oi.current),Vi(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return uo($i),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Vi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&$i.current)?0===Ns&&(Ns=3):(0!==Ns&&3!==Ns||(Ns=4),null===Ds||0==(134217727&Bs)&&0==(134217727&Hs)||yl(Ds,js))),(r||n)&&(t.flags|=4),null);case 4:return Pi(),qa(t),null===e&&Rr(t.stateNode.containerInfo),null;case 10:return ri(t),null;case 19:if(uo($i),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)as(r,!1);else{if(0!==Ns||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ni(e))){for(t.flags|=64,as(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return co($i,1&$i.current|2),t.child}e=e.sibling}null!==r.tail&&Wo()>Vs&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Ni(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),as(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Bi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wo()-r.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=64,s=!0,as(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wo(),n.sibling=null,t=$i.current,co($i,s?1&t|2:1&t),n):null;case 23:case 24:return _l(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function ls(e){switch(e.tag){case 1:vo(e.type)&&yo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Pi(),uo(po),uo(ho),Yi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ii(e),null;case 13:return uo($i),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo($i),null;case 4:return Pi(),null;case 10:return ri(e),null;case 23:case 24:return _l(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function cs(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ga=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(){},Ya=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Li(Oi.current);var a,s=null;switch(n){case"input":i=J(e,i),r=J(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Fr)}for(d in _e(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var u=i[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Or("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===j?c.toString():(s=s||[]).push(d,c))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Ka=function(e,t,n,r){n!==r&&(t.flags|=4)};var ds="function"==typeof WeakMap?WeakMap:Map;function fs(e,t,n){(n=ci(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Xs=r),cs(0,t)},n}function hs(e,t,n){(n=ci(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return cs(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Qs?Qs=new Set([this]):Qs.add(this),cs(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ps="function"==typeof WeakSet?WeakSet:Set;function gs(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){zl(e,t)}else t.current=null}function ms(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Vr(t.stateNode.containerInfo))}throw Error(a(163))}function vs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&($l(n,e),Il(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&pi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}pi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(a(163))}function ys(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bs(e,t){if(Eo&&"function"==typeof Eo.onCommitFiberUnmount)try{Eo.onCommitFiberUnmount(_o,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))$l(t,n);else{r=t;try{o()}catch(e){zl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(gs(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){zl(t,e)}break;case 5:gs(t);break;case 4:ks(e,t)}}function ws(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function xs(e){return 5===e.tag||3===e.tag||4===e.tag}function Ss(e){e:{for(var t=e.return;null!==t;){if(xs(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||xs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?_s(e,n,t):Es(e,n,t)}function _s(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function Es(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function ks(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,u=l;;)if(bs(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(bs(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Cs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Qr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,o),t=Ee(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?xe(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ve(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(Zs=Wo(),ys(t.child,!0)),void As(t);case 19:return void As(t);case 23:case 24:return void ys(t,null!==t.memoizedState)}throw Error(a(163))}function As(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ps),t.forEach((function(t){var r=Hl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Os=Math.ceil,Ms=x.ReactCurrentDispatcher,Rs=x.ReactCurrentOwner,Ls=0,Ds=null,Ps=null,js=0,Is=0,$s=lo(0),Ns=0,Fs=null,zs=0,Bs=0,Hs=0,Ws=0,Us=null,Zs=0,Vs=1/0;function Gs(){Vs=Wo()+500}var qs,Ys=null,Ks=!1,Xs=null,Qs=null,Js=!1,el=null,tl=90,nl=[],rl=[],ol=null,il=0,al=null,sl=-1,ll=0,ul=0,cl=null,dl=!1;function fl(){return 0!=(48&Ls)?Wo():-1!==sl?sl:sl=Wo()}function hl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Uo()?1:2;if(0===ll&&(ll=zs),0!==Ko.transition){0!==ul&&(ul=null!==Us?Us.pendingLanes:0),e=ll;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Uo(),0!=(4&Ls)&&98===e?e=Ft(12,ll):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ll),e}function pl(e,t,n){if(50<il)throw il=0,al=null,Error(a(185));if(null===(e=gl(e,t)))return null;Ht(e,t,n),e===Ds&&(Hs|=t,4===Ns&&yl(e,js));var r=Uo();1===t?0!=(8&Ls)&&0==(48&Ls)?bl(e):(ml(e,n),0===Ls&&(Gs(),qo())):(0==(4&Ls)||98!==r&&99!==r||(null===ol?ol=new Set([e]):ol.add(e)),ml(e,n)),Us=e}function gl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function ml(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Wt(s),u=1<<l,c=i[l];if(-1===c){if(0==(u&r)||0!=(u&o)){c=t,It(u);var d=jt;i[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=$t(e,e===Ds?js:0),t=jt,0===r)null!==n&&(n!==$o&&Ao(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==$o&&Ao(n)}15===t?(n=bl.bind(null,e),null===Fo?(Fo=[n],zo=Co(Lo,Yo)):Fo.push(n),n=$o):14===t?n=Go(99,bl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Go(n,vl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function vl(e){if(sl=-1,ul=ll=0,0!=(48&Ls))throw Error(a(327));var t=e.callbackNode;if(jl()&&e.callbackNode!==t)return null;var n=$t(e,e===Ds?js:0);if(0===n)return null;var r=n,o=Ls;Ls|=16;var i=Cl();for(Ds===e&&js===r||(Gs(),El(e,r));;)try{Ol();break}catch(t){kl(e,t)}if(ni(),Ms.current=i,Ls=o,null!==Ps?r=0:(Ds=null,js=0,r=Ns),0!=(zs&Hs))El(e,0);else if(0!==r){if(2===r&&(Ls|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(n=Nt(e))&&(r=Al(e,n))),1===r)throw t=Fs,El(e,0),yl(e,n),ml(e,Wo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ll(e);break;case 3:if(yl(e,n),(62914560&n)===n&&10<(r=Zs+500-Wo())){if(0!==$t(e,0))break;if(((o=e.suspendedLanes)&n)!==n){fl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ur(Ll.bind(null,e),r);break}Ll(e);break;case 4:if(yl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-Wt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Wo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Os(n/1960))-n)){e.timeoutHandle=Ur(Ll.bind(null,e),n);break}Ll(e);break;default:throw Error(a(329))}}return ml(e,Wo()),e.callbackNode===t?vl.bind(null,e):null}function yl(e,t){for(t&=~Ws,t&=~Hs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function bl(e){if(0!=(48&Ls))throw Error(a(327));if(jl(),e===Ds&&0!=(e.expiredLanes&js)){var t=js,n=Al(e,t);0!=(zs&Hs)&&(n=Al(e,t=$t(e,t)))}else n=Al(e,t=$t(e,0));if(0!==e.tag&&2===n&&(Ls|=64,e.hydrate&&(e.hydrate=!1,Vr(e.containerInfo)),0!==(t=Nt(e))&&(n=Al(e,t))),1===n)throw n=Fs,El(e,0),yl(e,t),ml(e,Wo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ll(e),ml(e,Wo()),null}function wl(e,t){var n=Ls;Ls|=1;try{return e(t)}finally{0===(Ls=n)&&(Gs(),qo())}}function xl(e,t){var n=Ls;Ls&=-2,Ls|=8;try{return e(t)}finally{0===(Ls=n)&&(Gs(),qo())}}function Sl(e,t){co($s,Is),Is|=t,zs|=t}function _l(){Is=$s.current,uo($s)}function El(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Zr(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&yo();break;case 3:Pi(),uo(po),uo(ho),Yi();break;case 5:Ii(r);break;case 4:Pi();break;case 13:case 19:uo($i);break;case 10:ri(r);break;case 23:case 24:_l()}n=n.return}Ds=e,Ps=Vl(e.current,null),js=Is=zs=t,Ns=0,Fs=null,Ws=Hs=Bs=0}function kl(e,t){for(;;){var n=Ps;try{if(ni(),Ki.current=Ra,na){for(var r=Ji.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}na=!1}if(Qi=0,ta=ea=Ji=null,ra=!1,Rs.current=null,null===n||null===n.return){Ns=1,Fs=t,Ps=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=js,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&$i.current),f=a;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var g=f.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(h){var m=f.updateQueue;if(null===m){var v=new Set;v.add(u),f.updateQueue=v}else m.add(u);if(0==(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=ci(-1,1);y.tag=2,di(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new ds,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var w=Bl.bind(null,i,u,s);u.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ns&&(Ns=2),l=us(l,s),f=a;do{switch(f.tag){case 3:i=l,f.flags|=4096,t&=-t,f.lanes|=t,fi(f,fs(0,i,t));break e;case 1:i=l;var x=f.type,S=f.stateNode;if(0==(64&f.flags)&&("function"==typeof x.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===Qs||!Qs.has(S)))){f.flags|=4096,t&=-t,f.lanes|=t,fi(f,hs(f,i,t));break e}}f=f.return}while(null!==f)}Rl(n)}catch(e){t=e,Ps===n&&null!==n&&(Ps=n=n.return);continue}break}}function Cl(){var e=Ms.current;return Ms.current=Ra,null===e?Ra:e}function Al(e,t){var n=Ls;Ls|=16;var r=Cl();for(Ds===e&&js===t||El(e,t);;)try{Tl();break}catch(t){kl(e,t)}if(ni(),Ls=n,Ms.current=r,null!==Ps)throw Error(a(261));return Ds=null,js=0,Ns}function Tl(){for(;null!==Ps;)Ml(Ps)}function Ol(){for(;null!==Ps&&!To();)Ml(Ps)}function Ml(e){var t=qs(e.alternate,e,Is);e.memoizedProps=e.pendingProps,null===t?Rl(e):Ps=t,Rs.current=null}function Rl(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ss(n,t,Is)))return void(Ps=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Is)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ls(t)))return n.flags&=2047,void(Ps=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ps=t);Ps=t=e}while(null!==t);0===Ns&&(Ns=5)}function Ll(e){var t=Uo();return Vo(99,Dl.bind(null,e,t)),null}function Dl(e,t){do{jl()}while(null!==el);if(0!=(48&Ls))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var u=31-Wt(i),c=1<<u;o[u]=0,s[u]=-1,l[u]=-1,i&=~c}if(null!==ol&&0==(24&r)&&ol.has(e)&&ol.delete(e),e===Ds&&(Ps=Ds=null,js=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Ls,Ls|=32,Rs.current=null,zr=qt,mr(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var d=0,f=-1,h=-1,p=0,g=0,m=s,v=null;t:for(;;){for(var y;m!==l||0!==i&&3!==m.nodeType||(f=d+i),m!==u||0!==c&&3!==m.nodeType||(h=d+c),3===m.nodeType&&(d+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===s)break t;if(v===l&&++p===i&&(f=d),v===u&&++g===c&&(h=d),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}l=-1===f||-1===h?null:{start:f,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Br={focusedElem:s,selectionRange:l},qt=!1,cl=null,dl=!1,Ys=r;do{try{Pl()}catch(e){if(null===Ys)throw Error(a(330));zl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);cl=null,Ys=r;do{try{for(s=e;null!==Ys;){var b=Ys.flags;if(16&b&&ve(Ys.stateNode,""),128&b){var w=Ys.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:Ss(Ys),Ys.flags&=-3;break;case 6:Ss(Ys),Ys.flags&=-3,Cs(Ys.alternate,Ys);break;case 1024:Ys.flags&=-1025;break;case 1028:Ys.flags&=-1025,Cs(Ys.alternate,Ys);break;case 4:Cs(Ys.alternate,Ys);break;case 8:ks(s,l=Ys);var S=l.alternate;ws(l),null!==S&&ws(S)}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));zl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);if(x=Br,w=gr(),b=x.focusedElem,s=x.selectionRange,w!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==s&&mr(b)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!x.extend&&S>s&&(l=s,s=S,S=l),l=hr(b,S),i=hr(b,s),l&&i&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),S>s?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}qt=!!zr,Br=zr=null,e.current=n,Ys=r;do{try{for(b=e;null!==Ys;){var _=Ys.flags;if(36&_&&vs(b,Ys.alternate,Ys),128&_){w=void 0;var E=Ys.ref;if(null!==E){var k=Ys.stateNode;Ys.tag,w=k,"function"==typeof E?E(w):E.current=w}}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));zl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=null,No(),Ls=o}else e.current=n;if(Js)Js=!1,el=e,tl=t;else for(Ys=r;null!==Ys;)t=Ys.nextEffect,Ys.nextEffect=null,8&Ys.flags&&((_=Ys).sibling=null,_.stateNode=null),Ys=t;if(0===(r=e.pendingLanes)&&(Qs=null),1===r?e===al?il++:(il=0,al=e):il=0,n=n.stateNode,Eo&&"function"==typeof Eo.onCommitFiberRoot)try{Eo.onCommitFiberRoot(_o,n,void 0,64==(64&n.current.flags))}catch(e){}if(ml(e,Wo()),Ks)throw Ks=!1,e=Xs,Xs=null,e;return 0!=(8&Ls)||qo(),null}function Pl(){for(;null!==Ys;){var e=Ys.alternate;dl||null===cl||(0!=(8&Ys.flags)?Je(Ys,cl)&&(dl=!0):13===Ys.tag&&Ts(e,Ys)&&Je(Ys,cl)&&(dl=!0));var t=Ys.flags;0!=(256&t)&&ms(e,Ys),0==(512&t)||Js||(Js=!0,Go(97,(function(){return jl(),null}))),Ys=Ys.nextEffect}}function jl(){if(90!==tl){var e=97<tl?97:tl;return tl=90,Vo(e,Nl)}return!1}function Il(e,t){nl.push(t,e),Js||(Js=!0,Go(97,(function(){return jl(),null})))}function $l(e,t){rl.push(t,e),Js||(Js=!0,Go(97,(function(){return jl(),null})))}function Nl(){if(null===el)return!1;var e=el;if(el=null,0!=(48&Ls))throw Error(a(331));var t=Ls;Ls|=32;var n=rl;rl=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===i)throw Error(a(330));zl(i,e)}}for(n=nl,nl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(e){if(null===i)throw Error(a(330));zl(i,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ls=t,qo(),!0}function Fl(e,t,n){di(e,t=fs(0,t=us(n,t),1)),t=fl(),null!==(e=gl(e,1))&&(Ht(e,1,t),ml(e,t))}function zl(e,t){if(3===e.tag)Fl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r))){var o=hs(n,e=us(t,e),1);if(di(n,o),o=fl(),null!==(n=gl(n,1)))Ht(n,1,o),ml(n,o);else if("function"==typeof r.componentDidCatch&&(null===Qs||!Qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=fl(),e.pingedLanes|=e.suspendedLanes&n,Ds===e&&(js&n)===n&&(4===Ns||3===Ns&&(62914560&js)===js&&500>Wo()-Zs?El(e,0):Ws|=n),ml(e,t)}function Hl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Uo()?1:2:(0===ll&&(ll=zs),0===(t=zt(62914560&~ll))&&(t=4194304))),n=fl(),null!==(e=gl(e,t))&&(Ht(e,t,n),ml(e,n))}function Wl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ul(e,t,n,r){return new Wl(e,t,n,r)}function Zl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vl(e,t){var n=e.alternate;return null===n?((n=Ul(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,o,i){var s=2;if(r=e,"function"==typeof e)Zl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return ql(n.children,o,i,t);case I:s=8,o|=16;break;case k:s=8,o|=1;break;case C:return(e=Ul(12,n,t,8|o)).elementType=C,e.type=C,e.lanes=i,e;case M:return(e=Ul(13,n,t,o)).type=M,e.elementType=M,e.lanes=i,e;case R:return(e=Ul(19,n,t,o)).elementType=R,e.lanes=i,e;case $:return Yl(n,o,i,t);case N:return(e=Ul(24,n,t,o)).elementType=N,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case T:s=9;break e;case O:s=11;break e;case L:s=14;break e;case D:s=16,r=null;break e;case P:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ul(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function ql(e,t,n,r){return(e=Ul(7,e,r,t)).lanes=n,e}function Yl(e,t,n,r){return(e=Ul(23,e,r,t)).elementType=$,e.lanes=n,e}function Kl(e,t,n){return(e=Ul(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=Ul(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ql(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Jl(e,t,n,r){var o=t.current,i=fl(),s=hl(o);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(vo(u)){n=wo(n,u,l);break e}}n=l}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=ci(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(o,t),pl(o,s,i),s}function eu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function nu(e,t){tu(e,t),(e=e.alternate)&&tu(e,t)}function ru(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Ql(e,t,null!=n&&!0===n.hydrate),t=Ul(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,li(t),e[Jr]=n.current,Rr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ou(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function iu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var s=o;o=function(){var e=eu(a);s.call(e)}}Jl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ru(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=eu(a);l.call(e)}}xl((function(){Jl(t,a,e,o)}))}return eu(a)}function au(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ou(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}qs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||po.current)Ia=!0;else{if(0==(n&r)){switch(Ia=!1,t.tag){case 3:Va(t),Gi();break;case 5:ji(t);break;case 1:vo(t.type)&&xo(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;co(Qo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(co($i,1&$i.current),null!==(t=is(e,t,n))?t.sibling:null);co($i,1&$i.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return os(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),co($i,$i.current),r)break;return null;case 23:case 24:return t.lanes=0,Ba(e,t,n)}return is(e,t,n)}Ia=0!=(16384&e.flags)}else Ia=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=mo(t,ho.current),ii(t,n),o=aa(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vo(r)){var i=!0;xo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,li(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mi(t,r,s,e),o.updater=vi,t.stateNode=o,o._reactInternals=t,xi(t,r,e,n),t=Za(null,t,r,!0,i,n)}else t.tag=0,$a(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Zl(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===L)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=Wa(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=Na(null,t,o,e,n);break e;case 14:t=Fa(null,t,o,Xo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Va(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)Gi(),t=is(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(zi=Gr(t.stateNode.containerInfo.firstChild),Fi=t,i=Bi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],qi.push(i);for(n=Ai(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else $a(e,t,r,n),Gi();t=t.child}return t;case 5:return ji(t),null===e&&Ui(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,Wr(r,o)?s=null:null!==i&&Wr(r,i)&&(t.flags|=16),Ha(e,t),$a(e,t,s,n),t.child;case 6:return null===e&&Ui(t),null;case 13:return Qa(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ci(t,null,r,n):$a(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Na(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return $a(e,t,t.pendingProps,n),t.child;case 8:case 12:return $a(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(co(Qo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=ur(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!po.current){t=is(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===l.tag&&((c=ci(-1,n&-n)).tag=2,di(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),oi(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}$a(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.flags|=1,$a(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),Fa(e,t,o,i=Xo(o.type,i),r,n);case 15:return za(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,vo(r)?(e=!0,xo(t)):e=!1,ii(t,n),bi(t,r,o),xi(t,r,o,n),Za(null,t,r,!0,e,n);case 19:return os(e,t,n);case 23:case 24:return Ba(e,t,n)}throw Error(a(156,t.tag))},ru.prototype.render=function(e){Jl(e,this._internalRoot,null,null)},ru.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Jl(null,e,null,(function(){t[Jr]=null}))},et=function(e){13===e.tag&&(pl(e,4,fl()),nu(e,4))},tt=function(e){13===e.tag&&(pl(e,67108864,fl()),nu(e,67108864))},nt=function(e){if(13===e.tag){var t=fl(),n=hl(e);pl(e,n,t),nu(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=oo(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Le=wl,De=function(e,t,n,r,o){var i=Ls;Ls|=4;try{return Vo(98,e.bind(null,t,n,r,o))}finally{0===(Ls=i)&&(Gs(),qo())}},Pe=function(){0==(49&Ls)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,ml(e,Wo())}))}qo()}(),jl())},je=function(e,t){var n=Ls;Ls|=2;try{return e(t)}finally{0===(Ls=n)&&(Gs(),qo())}};var su={Events:[no,ro,oo,Me,Re,jl,{current:!1}]},lu={findFiberByHostInstance:to,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uu={bundleType:lu.bundleType,version:lu.version,rendererPackageName:lu.rendererPackageName,rendererConfig:lu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:lu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{_o=cu.inject(uu),Eo=cu}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=su,t.createPortal=au,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ls;if(0!=(48&n))return e(t);Ls|=1;try{if(e)return Vo(99,e.bind(null,t))}finally{Ls=n,qo()}},t.hydrate=function(e,t,n){if(!ou(t))throw Error(a(200));return iu(null,e,t,!0,n)},t.render=function(e,t,n){if(!ou(t))throw Error(a(200));return iu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ou(e))throw Error(a(40));return!!e._reactRootContainer&&(xl((function(){iu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Jr]=null}))})),!0)},t.unstable_batchedUpdates=wl,t.unstable_createPortal=function(e,t){return au(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ou(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return iu(e,t,n,!1,r)},t.version="17.0.2"},28316:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(52967)},80589:function(e,t,n){!function(e,t){"use strict";function n(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r=n(t);function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,o(e,t)}var a=function(e,t){return void 0===e&&(e=[]),void 0===t&&(t=[]),e.length!==t.length||e.some((function(e,n){return!Object.is(e,t[n])}))},s={error:null},l=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state=s,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}i(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(s)},n.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n,r,o=this.state.error,i=this.props.resetKeys;null!==o&&null!==t.error&&a(e.resetKeys,i)&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,i),this.reset())},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,o=t.FallbackComponent,i=t.fallback;if(null!==e){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(i))return i;if("function"==typeof n)return n(a);if(o)return r.createElement(o,a);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(r.Component);function u(e,t){var n=function(n){return r.createElement(l,t,r.createElement(e,n))},o=e.displayName||e.name||"Unknown";return n.displayName="withErrorBoundary("+o+")",n}function c(e){var t=r.useState(null),n=t[0],o=t[1];if(null!=e)throw e;if(null!=n)throw n;return o}e.ErrorBoundary=l,e.useErrorHandler=c,e.withErrorBoundary=u,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2784))},56376:(e,t,n)=>{"use strict";n.d(t,{OO:()=>p,zv:()=>m,JP:()=>g,nI:()=>v,Db:()=>y});var r=n(9249),o=n(87371),i=n(56666),a=n(2784),s=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,l={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},u=function(e){return l[e]};function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f,h={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(s,u)}},p=(0,a.createContext)();function g(){return h}var m=function(){function e(){(0,r.Z)(this,e),this.usedNamespaces={}}return(0,o.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function v(){return f}var y={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h=d(d({},h),e)}(e.options.react),function(e){f=e}(e)}}},81669:(e,t,n)=>{"use strict";n.d(t,{$:()=>p});var r=n(96234),o=n(56666),i=n(2784),a=n(56376);function s(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var l={};function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&l[t[0]]||("string"==typeof t[0]&&(l[t[0]]=new Date),s.apply(void 0,t))}function c(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=function(e,t){var n=(0,i.useRef)();return(0,i.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,o=(0,i.useContext)(a.OO)||{},s=o.i18n,l=o.defaultNS,d=n||s||(0,a.nI)();if(d&&!d.reportNamespaces&&(d.reportNamespaces=new a.zv),!d){u("You will need to pass in an i18next instance by using initReactI18next");var p=function(e){return Array.isArray(e)?e[e.length-1]:e},g=[p,{},!1];return g.t=p,g.i18n={},g.ready=!1,g}d.options.react&&void 0!==d.options.react.wait&&u("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=f(f(f({},(0,a.JP)()),d.options.react),t),v=m.useSuspense,y=m.keyPrefix,b=e||l||d.options&&d.options.defaultNS;b="string"==typeof b?[b]:b||["translation"],d.reportNamespaces.addUsedNamespaces&&d.reportNamespaces.addUsedNamespaces(b);var w=(d.isInitialized||d.initializedStoreOnce)&&b.every((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],o=!!t.options&&t.options.fallbackLng,i=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}(e,t,n):(u("i18n.languages were undefined or empty",t.languages),!0)}(e,d,m)}));function x(){return d.getFixedT(null,"fallback"===m.nsMode?b:b[0],y)}var S=(0,i.useState)(x),_=(0,r.Z)(S,2),E=_[0],k=_[1],C=b.join(),A=h(C),T=(0,i.useRef)(!0);(0,i.useEffect)((function(){var e=m.bindI18n,t=m.bindI18nStore;function n(){T.current&&k(x)}return T.current=!0,w||v||c(d,b,(function(){T.current&&k(x)})),w&&A&&A!==C&&T.current&&k(x),e&&d&&d.on(e,n),t&&d&&d.store.on(t,n),function(){T.current=!1,e&&d&&e.split(" ").forEach((function(e){return d.off(e,n)})),t&&d&&t.split(" ").forEach((function(e){return d.store.off(e,n)}))}}),[d,C]);var O=(0,i.useRef)(!0);(0,i.useEffect)((function(){T.current&&!O.current&&k(x),O.current=!1}),[d,y]);var M=[E,d,w];if(M.t=E,M.i18n=d,M.ready=w,w)return M;if(!w&&!v)return M;throw new Promise((function(e){c(d,b,(function(){e()}))}))}},93808:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(2784),o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o(e,t)};var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};var a="Pixel",s="Percent",l={unit:s,value:.8};function u(e){return"number"==typeof e?{unit:s,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:a,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:s,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),l):(console.warn("scrollThreshold should be string or number"),l)}const c=function(e){function t(t){var n=e.call(this,t)||this;return n.lastScrollTop=0,n.actionTriggered=!1,n.startY=0,n.currentY=0,n.dragging=!1,n.maxPullDownDistance=0,n.getScrollableTarget=function(){return n.props.scrollableTarget instanceof HTMLElement?n.props.scrollableTarget:"string"==typeof n.props.scrollableTarget?document.getElementById(n.props.scrollableTarget):(null===n.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)},n.onStart=function(e){n.lastScrollTop||(n.dragging=!0,e instanceof MouseEvent?n.startY=e.pageY:e instanceof TouchEvent&&(n.startY=e.touches[0].pageY),n.currentY=n.startY,n._infScroll&&(n._infScroll.style.willChange="transform",n._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},n.onMove=function(e){n.dragging&&(e instanceof MouseEvent?n.currentY=e.pageY:e instanceof TouchEvent&&(n.currentY=e.touches[0].pageY),n.currentY<n.startY||(n.currentY-n.startY>=Number(n.props.pullDownToRefreshThreshold)&&n.setState({pullToRefreshThresholdBreached:!0}),n.currentY-n.startY>1.5*n.maxPullDownDistance||n._infScroll&&(n._infScroll.style.overflow="visible",n._infScroll.style.transform="translate3d(0px, "+(n.currentY-n.startY)+"px, 0px)")))},n.onEnd=function(){n.startY=0,n.currentY=0,n.dragging=!1,n.state.pullToRefreshThresholdBreached&&(n.props.refreshFunction&&n.props.refreshFunction(),n.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame((function(){n._infScroll&&(n._infScroll.style.overflow="auto",n._infScroll.style.transform="none",n._infScroll.style.willChange="none")}))},n.onScrollListener=function(e){"function"==typeof n.props.onScroll&&setTimeout((function(){return n.props.onScroll&&n.props.onScroll(e)}),0);var t=n.props.height||n._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;n.actionTriggered||((n.props.inverse?n.isElementAtTop(t,n.props.scrollThreshold):n.isElementAtBottom(t,n.props.scrollThreshold))&&n.props.hasMore&&(n.actionTriggered=!0,n.setState({showLoader:!0}),n.props.next&&n.props.next()),n.lastScrollTop=t.scrollTop)},n.state={showLoader:!1,pullToRefreshThresholdBreached:!1},n.throttledOnScrollListener=function(e,t,n,r){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){var l=this,u=Date.now()-a,c=arguments;function d(){a=Date.now(),n.apply(l,c)}i||(r&&!o&&d(),s(),void 0===r&&u>e?d():!0!==t&&(o=setTimeout(r?function(){o=void 0}:d,void 0===r?e-u:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){s(),i=!0},l}(150,n.onScrollListener).bind(n),n.onStart=n.onStart.bind(n),n.onMove=n.onMove.bind(n),n.onEnd=n.onEnd.bind(n),n}return function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){if(void 0===this.props.dataLength)throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw new Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')},t.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.props.dataLength!==e.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},t.prototype.isElementAtTop=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=u(t);return r.unit===a?e.scrollTop<=r.value+n-e.scrollHeight+1||0===e.scrollTop:e.scrollTop<=r.value/100+n-e.scrollHeight+1||0===e.scrollTop},t.prototype.isElementAtBottom=function(e,t){void 0===t&&(t=.8);var n=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,r=u(t);return r.unit===a?e.scrollTop+n>=e.scrollHeight-r.value:e.scrollTop+n>=r.value/100*e.scrollHeight},t.prototype.render=function(){var e=this,t=i({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),n=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),o=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return r.createElement("div",{style:o,className:"infinite-scroll-component__outerdiv"},r.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&r.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},r.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!n&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},t}(r.Component)},18726:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2784),a=l(i),s=l(n(13980));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},f=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),h=function(){return f?"_"+Math.random().toString(36).substr(2,12):void 0},p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||h(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||h(),prevId:n}:null}}]),o(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return f&&e?a.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(o),o.className=this.props.inputClassName,o.id=this.state.inputId,o.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},o,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(i.Component);p.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},p.defaultProps={minWidth:1,injectStyles:!0},t.Z=p},66866:(e,t)=>{"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,h=60116,p=60121,g=60122,m=60117,v=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),a=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),f=b("react.memo"),h=b("react.lazy"),p=b("react.block"),g=b("react.server.block"),m=b("react.fundamental"),v=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case f:case s:return e;default:return t}}case r:return t}}}},48570:(e,t,n)=>{"use strict";n(66866)},77993:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},35828:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case g:case p:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=p,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===d},t.isFragment=function(e){return v(e)===i},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===p},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===f},t.isSuspenseList=function(e){return v(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===f||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},33978:(e,t,n)=>{"use strict";e.exports=n(35828)},76772:(e,t,n)=>{var r=n(6299);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,a,s=r(e),l="function"==typeof t,u=0,c=s.length;u<c;u++)i=(n=s[u]).property,a=n.value,l?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}e.exports=o,e.exports.default=o},51853:(e,t,n)=>{var r="undefined"!=typeof window,o=r?window.Masonry||n(30986):null,i=r?n(56204):null,a=n(60019),s=n(200),l=n(54073),u=n(17620),c=n(13980),d=n(2784),f=n(58335),h={enableResizableChildren:c.bool,disableImagesLoaded:c.bool,onImagesLoaded:c.func,updateOnEachImageLoad:c.bool,options:c.object,imagesLoadedOptions:c.object,elementType:c.string,onLayoutComplete:c.func,onRemoveComplete:c.func},p=f({masonry:!1,erd:void 0,latestKnownDomChildren:[],displayName:"MasonryComponent",imagesLoadedCancelRef:void 0,propTypes:h,getDefaultProps:function(){return{enableResizableChildren:!1,disableImagesLoaded:!1,updateOnEachImageLoad:!1,options:{},imagesLoadedOptions:{},className:"",elementType:"div",onLayoutComplete:function(){},onRemoveComplete:function(){}}},initializeMasonry:function(e){this.masonry&&!e||(this.masonry=new o(this.masonryContainer,this.props.options),this.props.onLayoutComplete&&this.masonry.on("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.on("removeComplete",this.props.onRemoveComplete),this.latestKnownDomChildren=this.getCurrentDomChildren())},getCurrentDomChildren:function(){var e=this.masonryContainer,t=this.props.options.itemSelector?e.querySelectorAll(this.props.options.itemSelector):e.children;return Array.prototype.slice.call(t)},diffDomChildren:function(){var e=!1,t=this.latestKnownDomChildren.filter((function(e){return!!e.parentNode}));t.length!==this.latestKnownDomChildren.length&&(e=!0);var n=this.getCurrentDomChildren(),r=t.filter((function(e){return!~n.indexOf(e)})),o=n.filter((function(e){return!~t.indexOf(e)})),i=0,a=o.filter((function(e){var t=i===n.indexOf(e);return t&&i++,t})),s=o.filter((function(e){return-1===a.indexOf(e)})),l=[];return 0===r.length&&(l=t.filter((function(e,t){return t!==n.indexOf(e)}))),this.latestKnownDomChildren=n,{old:t,new:n,removed:r,appended:s,prepended:a,moved:l,forceItemReload:e}},performLayout:function(){var e=this.diffDomChildren(),t=e.forceItemReload||e.moved.length>0;e.removed.length>0&&(this.props.enableResizableChildren&&e.removed.forEach(this.erd.removeAllListeners,this.erd),this.masonry.remove(e.removed),t=!0),e.appended.length>0&&(this.masonry.appended(e.appended),0===e.prepended.length&&(t=!0),this.props.enableResizableChildren&&e.appended.forEach(this.listenToElementResize,this)),e.prepended.length>0&&(this.masonry.prepended(e.prepended),this.props.enableResizableChildren&&e.prepended.forEach(this.listenToElementResize,this)),t&&this.masonry.reloadItems(),this.masonry.layout()},derefImagesLoaded:function(){this.imagesLoadedCancelRef(),this.imagesLoadedCancelRef=void 0},imagesLoaded:function(){if(!this.props.disableImagesLoaded){this.imagesLoadedCancelRef&&this.derefImagesLoaded();var e=this.props.updateOnEachImageLoad?"progress":"always",t=l(function(e){this.props.onImagesLoaded&&this.props.onImagesLoaded(e),this.masonry.layout()}.bind(this),100),n=i(this.masonryContainer,this.props.imagesLoadedOptions).on(e,t);this.imagesLoadedCancelRef=function(){n.off(e,t),t.cancel()}}},initializeResizableChildren:function(){this.props.enableResizableChildren&&(this.erd=s({strategy:"scroll"}),this.latestKnownDomChildren.forEach(this.listenToElementResize,this))},listenToElementResize:function(e){this.erd.listenTo(e,function(){this.masonry.layout()}.bind(this))},destroyErd:function(){this.erd&&this.latestKnownDomChildren.forEach(this.erd.uninstall,this.erd)},componentDidMount:function(){this.initializeMasonry(),this.initializeResizableChildren(),this.imagesLoaded()},componentDidUpdate:function(){this.performLayout(),this.imagesLoaded()},componentWillUnmount:function(){this.destroyErd(),this.props.onLayoutComplete&&this.masonry.off("layoutComplete",this.props.onLayoutComplete),this.props.onRemoveComplete&&this.masonry.off("removeComplete",this.props.onRemoveComplete),this.imagesLoadedCancelRef&&this.derefImagesLoaded(),this.masonry.destroy()},setRef:function(e){this.masonryContainer=e},render:function(){var e=u(this.props,Object.keys(h));return d.createElement(this.props.elementType,a({},e,{ref:this.setRef}),this.props.children)}});e.exports=p,e.exports.default=p},27520:(e,t,n)=>{"use strict";function r(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return!0;return!1}function o(e,t){for(var n=e.length,r=0;r<n;++r)if(t(e[r],r))return e[r];return null}function i(e){var t=e;if(void 0===t){if("undefined"==typeof navigator||!navigator)return"";t=navigator.userAgent||""}return t.toLowerCase()}function a(e,t){try{return new RegExp(e,"g").exec(t)}catch(e){return null}}function s(){if("undefined"==typeof navigator||!navigator||!navigator.userAgentData)return!1;var e=navigator.userAgentData,t=e.brands||e.uaList;return!(!t||!t.length)}function l(e){return e.replace(/_/g,".")}function u(e,t){var n=null,o="-1";return r(e,(function(e){var r=a("("+e.test+")((?:\\/|\\s|:)([0-9|\\.|_]+))?",t);return!(!r||e.brand)&&(n=e,o=r[3]||"-1",e.versionAlias?o=e.versionAlias:e.versionTest&&(o=function(e,t){var n=a("("+e+")((?:\\/|\\s|:)([0-9|\\.|_]+))",t);return n?n[3]:""}(e.versionTest.toLowerCase(),t)||o),o=l(o),!0)})),{preset:n,version:o}}function c(e,t){var n={brand:"",version:"-1"};return r(e,(function(e){var r=d(t,e);return!!r&&(n.brand=e.id,n.version=e.versionAlias||r.version,"-1"!==n.version)})),n}function d(e,t){return o(e,(function(e){var n=e.brand;return a(""+t.test,n.toLowerCase())}))}n.d(t,{ZP:()=>ms});var f=[{test:"phantomjs",id:"phantomjs"},{test:"whale",id:"whale"},{test:"edgios|edge|edg",id:"edge"},{test:"msie|trident|windows phone",id:"ie",versionTest:"iemobile|msie|rv"},{test:"miuibrowser",id:"miui browser"},{test:"samsungbrowser",id:"samsung internet"},{test:"samsung",id:"samsung internet",versionTest:"version"},{test:"chrome|crios",id:"chrome"},{test:"firefox|fxios",id:"firefox"},{test:"android",id:"android browser",versionTest:"version"},{test:"safari|iphone|ipad|ipod",id:"safari",versionTest:"version"}],h=[{test:"(?=.*applewebkit/(53[0-7]|5[0-2]|[0-4]))(?=.*\\schrome)",id:"chrome",versionTest:"chrome"},{test:"chromium",id:"chrome"},{test:"whale",id:"chrome",versionAlias:"-1",brand:!0}],p=[{test:"applewebkit",id:"webkit",versionTest:"applewebkit|safari"}],g=[{test:"(?=(iphone|ipad))(?!(.*version))",id:"webview"},{test:"(?=(android|iphone|ipad))(?=.*(naver|daum|; wv))",id:"webview"},{test:"webview",id:"webview"}],m=[{test:"windows phone",id:"windows phone"},{test:"windows 2000",id:"window",versionAlias:"5.0"},{test:"windows nt",id:"window"},{test:"win32|windows",id:"window"},{test:"iphone|ipad|ipod",id:"ios",versionTest:"iphone os|cpu os"},{test:"macos|macintel|mac os x",id:"mac"},{test:"android|linux armv81",id:"android"},{test:"tizen",id:"tizen"},{test:"webos|web0s",id:"webos"}];function v(e){return!!u(g,e).preset}function y(e){var t=navigator.userAgentData,n=(t.uaList||t.brands).slice(),a=e&&e.fullVersionList,s=t.mobile||!1,u=n[0],y=(e&&e.platform||t.platform||navigator.platform).toLowerCase(),b={name:u.brand,version:u.version,majorVersion:-1,webkit:!1,webkitVersion:"-1",chromium:!1,chromiumVersion:"-1",webview:!!c(g,n).brand||v(i())},w={name:"unknown",version:"-1",majorVersion:-1};b.webkit=!b.chromium&&r(p,(function(e){return d(n,e)}));var x=c(h,n);if(b.chromium=!!x.brand,b.chromiumVersion=x.version,!b.chromium){var S=c(p,n);b.webkit=!!S.brand,b.webkitVersion=S.version}var _=o(m,(function(e){return new RegExp(""+e.test,"g").exec(y)}));if(w.name=_?_.id:"",e&&(w.version=e.platformVersion),a&&a.length){var E=c(f,a);b.name=E.brand||b.name,b.version=E.version||b.version}else{var k=c(f,n);b.name=k.brand||b.name,b.version=k.brand&&e?e.uaFullVersion:k.version}return b.webkit&&(w.name=s?"ios":"mac"),"ios"===w.name&&b.webview&&(b.version="-1"),w.version=l(w.version),b.version=l(b.version),w.majorVersion=parseInt(w.version,10),b.majorVersion=parseInt(b.version,10),{browser:b,os:w,isMobile:s,isHints:!0}}function b(e){return void 0===e&&s()?y():function(e){var t=i(e),n=!!/mobi/g.exec(t),r={name:"unknown",version:"-1",majorVersion:-1,webview:v(t),chromium:!1,chromiumVersion:"-1",webkit:!1,webkitVersion:"-1"},o={name:"unknown",version:"-1",majorVersion:-1},a=u(f,t),s=a.preset,l=a.version,c=u(m,t),d=c.preset,g=c.version,y=u(h,t);if(r.chromium=!!y.preset,r.chromiumVersion=y.version,!r.chromium){var b=u(p,t);r.webkit=!!b.preset,r.webkitVersion=b.version}return d&&(o.name=d.id,o.version=g,o.majorVersion=parseInt(g,10)),s&&(r.name=s.id,r.version=l,r.webview&&"ios"===o.name&&"safari"!==r.name&&(r.webview=!1)),r.majorVersion=parseInt(r.version,10),{browser:r,os:o,isMobile:n,isHints:!1}}(e)}const w=b;function x(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map((function(t){return t.split(" ").map((function(t){return t?""+e+t:""})).join(" ")})).join(" ")}function S(e,t){return function(n){n&&(e[t]=n)}}function _(e,t,n){return function(r){r&&(e[t][n]=r)}}var E="function",k="object",C="string",A="number",T="undefined",O=typeof window!==T,M=typeof document!==T&&document,R=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],L=1e-7,D={cm:function(e){return 96*e/2.54},mm:function(e){return 96*e/254},in:function(e){return 96*e},pt:function(e){return 96*e/72},pc:function(e){return 96*e/6},"%":function(e,t){return e*t/100},vw:function(e,t){return void 0===t&&(t=window.innerWidth),e/100*t},vh:function(e,t){return void 0===t&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return void 0===t&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return void 0===t&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function P(e,t,n,r){return(e*r+t*n)/(n+r)}function j(e){return typeof e===T}function I(e){return e&&typeof e===k}function $(e){return Array.isArray(e)}function N(e){return typeof e===C}function F(e){return typeof e===A}function z(e){return typeof e===E}function B(e,t,n,r,o){return H(e,t,n)?n:function(e,t,n,r,o){for(var i,a=function(n){var a=t[n].trim();if(a===e.close&&!H(e,t,n))return{value:n};var s=n,l=K(o,(function(e){return e.open===a}));if(l&&(s=B(l,t,n,r,o)),-1===s)return i=n,"break";i=n=s},s=n;s<r;++s){var l=a(s);if(s=i,"object"==typeof l)return l.value;if("break"===l)break}return-1}(e,t,n+1,r,o)}function H(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function W(e,t){var n=N(t)?{separator:t}:t,r=n.separator,o=void 0===r?",":r,i=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,l=void 0===s?a:s,u=n.openCloseCharacters,c=void 0===u?R:u,d=c.map((function(e){var t=e.open,n=e.close;return t===n?t:t+"|"+n})).join("|"),f=new RegExp("(\\s*"+o+"\\s*|"+d+"|\\s+)","g"),h=e.split(f).filter((function(e){return e&&"undefined"!==e})),p=h.length,g=[],m=[];function v(){return!!m.length&&(g.push(m.join("")),m=[],!0)}for(var y,b=function(t){var n=h[t].trim(),r=t,s=K(c,(function(e){return e.open===n})),u=K(c,(function(e){return e.close===n}));if(s){if(-1!==(r=B(s,h,t,p,c))&&l)return v()&&i?(y=t,"break"):(g.push(h.slice(t,r+1).join("")),t=r,i?(y=t,"break"):(y=t,"continue"))}else{if(u&&!H(u,h,t)){var d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(c);return d.splice(c.indexOf(u),1),{value:W(e,{separator:o,isSeparateFirst:i,isSeparateOnlyOpenClose:a,isSeparateOpenClose:l,openCloseCharacters:d})}}if(function(e,t){return(""===t||" "==t)&&(""===e||" "==e)||e===t}(n,o)&&!a)return v(),i?(y=t,"break"):(y=t,"continue")}-1===r&&(r=p-1),m.push(h.slice(t,r+1).join("")),y=t=r},w=0;w<p;++w){var x=b(w);if(w=y,"object"==typeof x)return x.value;if("break"===x)break}return m.length&&g.push(m.join("")),g}function U(e){return W(e,"")}function Z(e){return W(e,",")}function V(e){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function G(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2];return{prefix:n,unit:t[3],value:parseFloat(r)}}function q(){return Date.now?Date.now():(new Date).getTime()}function Y(e,t,n){void 0===n&&(n=-1);for(var r=e.length,o=0;o<r;++o)if(t(e[o],o,e))return o;return n}function K(e,t,n){var r=Y(e,t);return r>-1?e[r]:n}var X=function(){var e=q(),t=O&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame);return t?t.bind(window):function(t){var n=q();return setTimeout((function(){t(n-e)}),1e3/60)}}(),Q=function(){var e=O&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame);return e?e.bind(window):function(e){clearTimeout(e)}}();function J(e){return Object.keys(e)}function ee(e,t){var n=G(e),r=n.value,o=n.unit;if(I(t)){var i=t[o];if(i){if(z(i))return i(r);if(D[o])return D[o](r,i)}}else if("%"===o)return r*t/100;return D[o]?D[o](r):r}function te(e,t,n){return Math.max(t,Math.min(e,n))}function ne(e,t,n,r){return void 0===r&&(r=e[0]/e[1]),[[le(t[0],L),le(t[0]/r,L)],[le(t[1]*r,L),le(t[1],L)]].filter((function(e){return e.every((function(e,r){var o=t[r],i=le(o,L);return n?e<=o||e<=i:e>=o||e>=i}))}))[0]||e}function re(e,t,n,r){if(!r)return e.map((function(e,r){return te(e,t[r],n[r])}));var o=e[0],i=e[1],a=!0===r?o/i:r,s=ne(e,t,!1,a),l=s[0],u=s[1],c=ne(e,n,!0,a),d=c[0],f=c[1];return o<l||i<u?(o=l,i=u):(o>d||i>f)&&(o=d,i=f),[o,i]}function oe(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function ie(e,t){var n=t[0]-e[0],r=t[1]-e[1],o=Math.atan2(r,n);return o>=0?o:o+2*Math.PI}function ae(e){var t=function(e){return[0,1].map((function(t){return oe(e.map((function(e){return e[t]})))}))}(e),n=ie(t,e[0]),r=ie(t,e[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function se(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function le(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function ue(e,t){return e.forEach((function(n,r){e[r]=le(e[r],t)})),e}function ce(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function de(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function fe(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function he(e,t,n,r){e.addEventListener(t,n,r)}function pe(e,t,n,r){e.removeEventListener(t,n,r)}function ge(e){return(null==e?void 0:e.ownerDocument)||M}function me(e){return ge(e).documentElement}function ve(e){return ge(e).body}function ye(e){var t;return(null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView)||window}function be(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function we(e){return I(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}function xe(e,t,n,r,o,i){for(var a=0;a<o;++a){var s=n+a*o,l=r+a*o;e[s]+=e[l]*i,t[s]+=t[l]*i}}function Se(e,t,n,r,o){for(var i=0;i<o;++i){var a=n+i*o,s=r+i*o,l=e[a],u=t[a];e[a]=e[s],e[s]=l,t[a]=t[s],t[s]=u}}function _e(e,t,n,r,o){for(var i=0;i<r;++i){var a=n+i*r;e[a]/=o,t[a]/=o}}function Ee(e,t,n){void 0===n&&(n=Math.sqrt(e.length));for(var r=e.slice(),o=0;o<n;++o)r[o*n+t-1]=0,r[(t-1)*n+o]=0;return r[(t-1)*(n+1)]=1,r}function ke(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=We(t),o=0;o<t;++o){var i=t*o+o;if(!le(n[i],L))for(var a=o+1;a<t;++a)if(n[t*o+a]){Se(n,r,o,a,t);break}if(!le(n[i],L))return[];_e(n,r,o,t,n[i]);for(a=0;a<t;++a){var s=a,l=n[a+o*t];le(l,L)&&o!==a&&xe(n,r,s,o,t,-l)}}return r}function Ce(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=e[t*t-1],o=0;o<t-1;++o)n[o]=e[t*(t-1)+o]/r;return n[t-1]=0,n}function Ae(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function Te(e,t,n){if(void 0===t&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=We(n),o=Math.min(t,n),i=0;i<o-1;++i){for(var a=0;a<o-1;++a)r[i*n+a]=e[i*t+a];r[(i+1)*n-1]=e[(i+1)*t-1],r[(n-1)*n+i]=e[(t-1)*t+i]}return r[n*n-1]=e[t*t-1],r}function Oe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=We(e);return t.forEach((function(t){r=Me(r,t,e)})),r}function Me(e,t,n){void 0===n&&(n=Math.sqrt(e.length));var r=[],o=e.length/n,i=t.length/o;if(!o)return t;if(!i)return e;for(var a=0;a<n;++a)for(var s=0;s<i;++s){r[s*n+a]=0;for(var l=0;l<o;++l)r[s*n+a]+=e[l*n+a]*t[s*o+l]}return r}function Re(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]+t[o];return r}function Le(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),o=0;o<n;++o)r[o]=r[o]-t[o];return r}function De(e,t){return void 0===t&&(t=9===e.length),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function Pe(e,t,n){void 0===n&&(n=t.length);var r=Me(e,t,n),o=r[n-1];return r.map((function(e){return e/o}))}function je(e,t){return Me(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function Ie(e,t){return Me(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function $e(e,t){return Me(e,He(t,4))}function Ne(e,t){var n=t[0],r=void 0===n?1:n,o=t[1],i=void 0===o?1:o,a=t[2];return Me(e,[r,0,0,0,0,i,0,0,0,0,void 0===a?1:a,0,0,0,0,1],4)}function Fe(e,t){return Pe(He(t,3),Ae(e,3))}function ze(e,t){var n=t[0],r=void 0===n?0:n,o=t[1],i=void 0===o?0:o,a=t[2];return Me(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,i,void 0===a?0:a,1],4)}function Be(e,t){return Me(e,t,4)}function He(e,t){var n=Math.cos(e),r=Math.sin(e),o=We(t);return o[0]=n,o[1]=r,o[t]=-r,o[t+1]=n,o}function We(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function Ue(e,t){for(var n=We(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[(t+1)*o]=e[o];return n}function Ze(e,t){for(var n=We(t),r=Math.min(e.length,t-1),o=0;o<r;++o)n[t*(t-1)+o]=e[o];return n}function Ve(e,t,n,r,o,i,a,s){var l=e[0],u=e[1],c=t[0],d=t[1],f=n[0],h=n[1],p=r[0],g=r[1],m=o[0],v=o[1],y=i[0],b=i[1],w=a[0],x=a[1],S=s[0],_=s[1],E=ke([l,0,c,0,f,0,p,0,u,0,d,0,h,0,g,0,1,0,1,0,1,0,1,0,0,l,0,c,0,f,0,p,0,u,0,d,0,h,0,g,0,1,0,1,0,1,0,1,-m*l,-v*l,-y*c,-b*c,-w*f,-x*f,-S*p,-_*p,-m*u,-v*u,-y*d,-b*d,-w*h,-x*h,-S*g,-_*g],8);if(!E.length)return[];var k=Me(E,[m,v,y,b,w,x,S,_],8);return k[8]=1,Te(function(e,t){void 0===t&&(t=Math.sqrt(e.length));for(var n=[],r=0;r<t;++r)for(var o=0;o<t;++o)n[o*t+r]=e[t*r+o];return n}(k),3,4)}var Ge=function(){return Ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ge.apply(this,arguments)};function qe(e,t){return void 0===t&&(t=0),Ye(Ke(e,t))}function Ye(e){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(e){var n=e.matrixFunction,r=e.functionValue;n&&(t=n(t,r))})),t}function Ke(e,t){return void 0===t&&(t=0),($(e)?e:U(e)).map((function(e){var n=V(e),r=n.prefix,o=n.value,i=null,a=r,s="";if("translate"===r||"translateX"===r||"translate3d"===r){var l=I(t)?Ge(Ge({},t),{"o%":t["%"]}):{"%":t,"o%":t},u=Z(o).map((function(e,n){return l["%"]=0===n&&"x%"in l?t["x%"]:1===n&&"y%"in l?t["y%"]:t["o%"],ee(e,l)})),c=u[0],d=u[1],f=void 0===d?0:d,h=u[2];i=ze,s=[c,f,void 0===h?0:h]}else if("translateY"===r){i=ze,s=[0,f=ee(o,I(t)?Ge({"%":t["y%"]},t):{"%":t}),0]}else if("translateZ"===r){i=ze,s=[0,0,parseFloat(o)]}else if("scale"===r||"scale3d"===r){var p=Z(o).map((function(e){return parseFloat(e)})),g=p[0],m=p[1],v=void 0===m?g:m,y=p[2];i=Ne,s=[g,v,void 0===y?1:y]}else if("scaleX"===r){i=Ne,s=[g=parseFloat(o),1,1]}else if("scaleY"===r){i=Ne,s=[1,v=parseFloat(o),1]}else if("scaleZ"===r){i=Ne,s=[1,1,parseFloat(o)]}else if("rotate"===r||"rotateZ"===r||"rotateX"===r||"rotateY"===r){var b=G(o),w=b.unit,x=b.value;"rotate"===r||"rotateZ"===r?(a="rotateZ",i=$e):"rotateX"===r?i=je:"rotateY"===r&&(i=Ie),s="rad"===w?x:x*Math.PI/180}else if("matrix3d"===r)i=Be,s=Z(o).map((function(e){return parseFloat(e)}));else if("matrix"===r){var S=Z(o).map((function(e){return parseFloat(e)}));i=Be,s=[S[0],S[1],0,0,S[2],S[3],0,0,0,0,1,0,S[4],S[5],0,1]}else a="";return{name:r,functionName:a,value:o,matrixFunction:i,functionValue:s}}))}var Xe=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(e){return this.values[this.keys.indexOf(e)]},t.set=function(e,t){var n=this.keys,r=this.values,o=n.indexOf(e),i=-1===o?n.length:o;n[i]=e,r[i]=t},e}(),Qe=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(e){return this.object[e]},t.set=function(e,t){this.object[e]=t},e}(),Je="function"==typeof Map,et=function(){function e(){}var t=e.prototype;return t.connect=function(e,t){this.prev=e,this.next=t,e&&(e.next=this),t&&(t.prev=this)},t.disconnect=function(){var e=this.prev,t=this.next;e&&(e.next=t),t&&(t.prev=e)},t.getIndex=function(){for(var e=this,t=-1;e;)e=e.prev,++t;return t},e}();var tt=function(){function e(e,t,n,r,o,i,a,s){this.prevList=e,this.list=t,this.added=n,this.removed=r,this.changed=o,this.maintained=i,this.changedBeforeAdded=a,this.fixed=s}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var e=function(e,t){var n=[],r=[];return e.forEach((function(e){var t=e[0],o=e[1],i=new et;n[t]=i,r[o]=i})),n.forEach((function(e,t){e.connect(n[t-1])})),e.filter((function(e,n){return!t[n]})).map((function(e,t){var o=e[0],i=e[1];if(o===i)return[0,0];var a=n[o],s=r[i-1],l=a.getIndex();return a.disconnect(),s?a.connect(s,s.next):a.connect(void 0,n[0]),[l,a.getIndex()]}))}(this.changedBeforeAdded,this.fixed),t=this.changed,n=[];this.cacheOrdered=e.filter((function(e,r){var o=e[0],i=e[1],a=t[r],s=a[0],l=a[1];if(o!==i)return n.push([s,l]),!0})),this.cachePureChanged=n},e}();function nt(e,t,n){var r=Je?Map:n?Qe:Xe,o=n||function(e){return e},i=[],a=[],s=[],l=e.map(o),u=t.map(o),c=new r,d=new r,f=[],h=[],p={},g=[],m=0,v=0;return l.forEach((function(e,t){c.set(e,t)})),u.forEach((function(e,t){d.set(e,t)})),l.forEach((function(e,t){var n=d.get(e);void 0===n?(++v,a.push(t)):p[n]=v})),u.forEach((function(e,t){var n=c.get(e);void 0===n?(i.push(t),++m):(s.push([n,t]),v=p[t]||0,f.push([n-v,t-m]),h.push(t===n),n!==t&&g.push([n,t]))})),a.reverse(),new tt(e,t,i,a,g,s,f,h)}var rt=function(){function e(e,t){void 0===e&&(e=[]),this.findKeyCallback=t,this.list=[].slice.call(e)}return e.prototype.update=function(e){var t=[].slice.call(e),n=nt(this.list,t,this.findKeyCallback);return this.list=t,n},e}();var ot=function(e,t){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},ot(e,t)};var it,at="function"==typeof Map?void 0:(it=0,function(e){return e.__DIFF_KEY__||(e.__DIFF_KEY__=++it)});const st=function(e){function t(t){return void 0===t&&(t=[]),e.call(this,t,at)||this}return function(e,t){function n(){this.constructor=e}ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(rt);var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lt.apply(this,arguments)};const ut=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(e,t){if(I(e))for(var n in e)this.on(n,e[n]);else this._addEvent(e,t,{});return this},t.off=function(e,t){if(e)if(I(e))for(var n in e)this.off(n);else if(t){var r=this._events[e];if(r){var o=Y(r,(function(e){return e.listener===t}));o>-1&&r.splice(o,1)}}else this._events[e]=[];else this._events={};return this},t.once=function(e,t){var n=this;return t&&this._addEvent(e,t,{once:!0}),new Promise((function(t){n._addEvent(e,t,{once:!0})}))},t.emit=function(e,t){var n=this;void 0===t&&(t={});var r=this._events[e];if(!e||!r)return!0;var o=!1;return t.eventType=e,t.stop=function(){o=!0},t.currentTarget=this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}(r).forEach((function(r){r.listener(t),r.once&&n.off(e,r.listener)})),!o},t.trigger=function(e,t){return void 0===t&&(t={}),this.emit(e,t)},t._addEvent=function(e,t,n){var r=this._events;r[e]=r[e]||[],r[e].push(lt({listener:t},n))},e}();var ct=function(e,t){return ct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},ct(e,t)};var dt=function(){return dt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dt.apply(this,arguments)};function ft(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}function ht(e,t){return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}function pt(e){return e?N(e)?document.querySelector(e):z(e)?e():e instanceof Element?e:"current"in e?e.current:"value"in e?e.value:void 0:null}const gt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._startRect=null,t._startPos=[],t._prevTime=0,t._timer=0,t._prevScrollPos=[0,0],t._isWait=!1,t._flag=!1,t._currentOptions=null,t._lock=!1,t._unregister=null,t._onScroll=function(){var e=t._currentOptions;!t._lock&&e&&t.emit("scrollDrag",{next:function(n){t.checkScroll({container:e.container,inputEvent:n})}})},t}!function(e,t){function n(){this.constructor=e}ct(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e);var n=t.prototype;return n.dragStart=function(e,t){var n=pt(t.container);if(n){var r=0,o=0,i=0,a=0;if(n===document.body)i=window.innerWidth,a=window.innerHeight;else{var s=n.getBoundingClientRect();r=s.top,o=s.left,i=s.width,a=s.height}this._flag=!0,this._startPos=[e.clientX,e.clientY],this._startRect={top:r,left:o,width:i,height:a},this._prevScrollPos=this._getScrollPosition([0,0],t),this._currentOptions=t,this._registerScrollEvent(t)}else this._flag=!1},n.drag=function(e,t){if(clearTimeout(this._timer),this._flag){var n=e.clientX,r=e.clientY,o=t.threshold,i=void 0===o?0:o,a=this._startRect,s=this._startPos;this._currentOptions=t;var l=[0,0];return a.top>r-i?(s[1]>a.top||r<s[1])&&(l[1]=-1):a.top+a.height<r+i&&(s[1]<a.top+a.height||r>s[1])&&(l[1]=1),a.left>n-i?(s[0]>a.left||n<s[0])&&(l[0]=-1):a.left+a.width<n+i&&(s[0]<a.left+a.width||n>s[0])&&(l[0]=1),!(!l[0]&&!l[1])&&this._continueDrag(dt(dt({},t),{direction:l,inputEvent:e,isDrag:!0}))}},n.checkScroll=function(e){var t=this;if(this._isWait)return!1;var n=e.prevScrollPos,r=void 0===n?this._prevScrollPos:n,o=e.direction,i=e.throttleTime,a=void 0===i?0:i,s=e.inputEvent,l=e.isDrag,u=this._getScrollPosition(o||[0,0],e),c=u[0]-r[0],d=u[1]-r[1],f=o||[c?Math.abs(c)/c:0,d?Math.abs(d)/d:0];return this._prevScrollPos=u,this._lock=!1,!(!c&&!d)&&(this.emit("move",{offsetX:f[0]?c:0,offsetY:f[1]?d:0,inputEvent:s}),a&&l&&(clearTimeout(this._timer),this._timer=window.setTimeout((function(){t._continueDrag(e)}),a)),!0)},n.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},n._getScrollPosition=function(e,t){var n=t.container,r=t.getScrollPosition;return(void 0===r?ft:r)({container:pt(n),direction:e})},n._continueDrag=function(e){var t,n=this,r=e.container,o=e.direction,i=e.throttleTime,a=e.useScroll,s=e.isDrag,l=e.inputEvent;if(!(!this._flag||s&&this._isWait)){var u=q(),c=Math.max(i+this._prevTime-u,0);if(c>0)return clearTimeout(this._timer),this._timer=window.setTimeout((function(){n._continueDrag(e)}),c),!1;this._prevTime=u;var d=this._getScrollPosition(o,e);this._prevScrollPos=d,s&&(this._isWait=!0),a||(this._lock=!0);var f={container:pt(r),direction:o,inputEvent:l};return null===(t=e.requestScroll)||void 0===t||t.call(e,f),this.emit("scroll",f),this._isWait=!1,a||this.checkScroll(dt(dt({},e),{prevScrollPos:d,direction:o,inputEvent:l}))}},n._registerScrollEvent=function(e){this._unregisterScrollEvent();var t=e.checkScrollEvent;if(t){var n=!0===t?ht:t,r=pt(e.container);!0!==t||r!==document.body&&r!==document.documentElement?this._unregister=n(r,this._onScroll):this._unregister=ht(window,this._onScroll)}},n._unregisterScrollEvent=function(){var e;null===(e=this._unregister)||void 0===e||e.call(this),this._unregister=null},t}(ut);function mt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function vt(e){return le(e,L)}function yt(e){return e.length<3?0:Math.abs(function(e){for(var t=0,n=e.length-1;n>=0;--n)t+=e[n];return t}(e.map((function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]}))))/2}function bt(e,t){var n=t.width,r=t.height,o=t.left,i=t.top,a=wt(e),s=a.minX,l=a.minY,u=a.maxX,c=a.maxY,d=n/(u-s),f=r/(c-l);return e.map((function(e){return[o+(e[0]-s)*d,i+(e[1]-l)*f]}))}function wt(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]}));return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function xt(e,t,n){var r=e[0],o=e[1],i=wt(t),a=i.minX,s=i.maxX,l=[[a,o],[s,o]],u=St(l[0],l[1]),c=kt(t),d=[];if(c.forEach((function(t){var n,r=St(t[0],t[1]),i=t[0];(n=r,u.every((function(e,t){return 0===vt(e-n[t])})))?d.push({pos:e,line:t,type:"line"}):Et(_t(u,r),[l,t]).forEach((function(e){t.some((function(t){return r=e,!vt((n=t)[0]-r[0])&&!vt(n[1]-r[1]);var n,r}))?d.push({pos:e,line:t,type:"point"}):0!==vt(i[1]-o)&&d.push({pos:e,line:t,type:"intersection"})}))})),!n&&K(d,(function(e){return e[0]===r})))return!0;var f=0,h={};return d.forEach((function(e){var t=e.pos,n=e.type,i=e.line;if(!(t[0]>r))if("intersection"===n)++f;else{if("line"===n)return;if("point"===n){var a=K(i,(function(e){return e[1]!==o})),s=h[t[0]],l=a[1]>o?1:-1;s?s!==l&&++f:h[t[0]]=l}}})),f%2==1}function St(e,t){var n=e[0],r=e[1],o=t[0]-n,i=t[1]-r;Math.abs(o)<L&&(o=0),Math.abs(i)<L&&(i=0);var a=0,s=0,l=0;return o?i?(s=1,l=-(a=-i/o)*n-r):(s=1,l=-r):i&&(a=-1,l=n),[a,s,l]}function _t(e,t){var n=e[0],r=e[1],o=e[2],i=t[0],a=t[1],s=t[2],l=0===n&&0===i,u=0===r&&0===a,c=[];if(l&&u)return[];if(l){var d=-o/r;return d!==-s/a?[]:[[-1/0,d],[1/0,d]]}if(u){var f=-o/n;return f!==-s/i?[]:[[f,-1/0],[f,1/0]]}if(0===n)c=[[h=-(a*(p=-o/r)+s)/i,p]];else if(0===i){c=[[h=-(r*(p=-s/a)+o)/n,p]]}else if(0===r){c=[[h=-o/n,p=-(i*h+s)/a]]}else if(0===a){c=[[h=-s/i,p=-(n*h+o)/r]]}else{var h,p;c=[[h=(r*s-a*o)/(a*n-r*i),p=-(n*h+o)/r]]}return c.map((function(e){return[e[0],e[1]]}))}function Et(e,t){var n=t.map((function(e){return[0,1].map((function(t){return[Math.min(e[0][t],e[1][t]),Math.max(e[0][t],e[1][t])]}))})),r=[];if(2===e.length){var o=e[0],i=o[0],a=o[1];if(vt(i-e[1][0])){if(!vt(a-e[1][1])){var s=Math.max.apply(Math,n.map((function(e){return e[0][0]}))),l=Math.min.apply(Math,n.map((function(e){return e[0][1]})));if(vt(s-l)>0)return[];r=[[s,a],[l,a]]}}else{var u=Math.max.apply(Math,n.map((function(e){return e[1][0]}))),c=Math.min.apply(Math,n.map((function(e){return e[1][1]})));if(vt(u-c)>0)return[];r=[[i,u],[i,c]]}}return r.length||(r=e.filter((function(e){var t=e[0],r=e[1];return n.every((function(e){return 0<=vt(t-e[0][0])&&0<=vt(e[0][1]-t)&&0<=vt(r-e[1][0])&&0<=vt(e[1][1]-r)}))}))),r.map((function(e){return[vt(e[0]),vt(e[1])]}))}function kt(e){return mt(e.slice(1),[e[0]]).map((function(t,n){return[e[n],t]}))}function Ct(e,t){var n=e.slice(),r=t.slice();-1===ae(n)&&n.reverse(),-1===ae(r)&&r.reverse();var o=kt(n),i=kt(r),a=o.map((function(e){return St(e[0],e[1])})),s=i.map((function(e){return St(e[0],e[1])})),l=[];a.forEach((function(e,t){var n=o[t],a=[];s.forEach((function(r,o){var s=Et(_t(e,r),[n,i[o]]);a.push.apply(a,s.map((function(e){return{index1:t,index2:o,pos:e,type:"intersection"}})))})),a.sort((function(e,t){return se(n[0],e.pos)-se(n[0],t.pos)})),l.push.apply(l,a),xt(n[1],r)&&l.push({index1:t,index2:-1,pos:n[1],type:"inside"})})),i.forEach((function(e,t){if(xt(e[1],n)){var r=!1,o=Y(l,(function(e){return e.index2===t?(r=!0,!1):!!r}));-1===o&&(r=!1,o=Y(l,(function(e){var n=e.index1,o=e.index2;return-1===n&&o+1===t?(r=!0,!1):!!r}))),-1===o?l.push({index1:-1,index2:t,pos:e[1],type:"inside"}):l.splice(o,0,{index1:-1,index2:t,pos:e[1],type:"inside"})}}));var u={};return l.filter((function(e){var t=e.pos,n=t[0]+"x"+t[1];return!u[n]&&(u[n]=!0,!0)}))}function At(e,t){var n=function(e,t){return Ct(e,t).map((function(e){return e.pos}))}(e,t);return yt(n)}var Tt=n(2784),Ot=function(e,t){return Ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Ot(e,t)};var Mt=function(){return Mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mt.apply(this,arguments)};function Rt(e){return 180*(t=[e[0].clientX,e[0].clientY],n=[e[1].clientX,e[1].clientY],r=n[0]-t[0],o=n[1]-t[1],((i=Math.atan2(o,r))>=0?i:i+2*Math.PI)/Math.PI);var t,n,r,o,i}function Lt(e){return e?e.touches?function(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(jt(e[r]));return n}(e.touches):[jt(e)]:[]}function Dt(e,t,n){var r=n.length,o=It(e,r),i=o.clientX,a=o.clientY,s=o.originalClientX,l=o.originalClientY,u=It(t,r),c=u.clientX,d=u.clientY,f=It(n,r);return{clientX:s,clientY:l,deltaX:i-c,deltaY:a-d,distX:i-f.clientX,distY:a-f.clientY}}function Pt(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function jt(e){return{clientX:e.clientX,clientY:e.clientY}}function It(e,t){void 0===t&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),o=0;o<r;++o){var i=e[o];n.originalClientX+="originalClientX"in i?i.originalClientX:i.clientX,n.originalClientY+="originalClientY"in i?i.originalClientY:i.clientY,n.clientX+=i.clientX,n.clientY+=i.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var $t=function(){function e(e){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=e,this.prevClients=e,this.length=e.length}return e.prototype.getAngle=function(e){return void 0===e&&(e=this.prevClients),Rt(e)},e.prototype.getRotation=function(e){return void 0===e&&(e=this.prevClients),Rt(e)-Rt(this.startClients)},e.prototype.getPosition=function(e,t){void 0===e&&(e=this.prevClients);var n=Dt(e||this.prevClients,this.prevClients,this.startClients),r=n.deltaX,o=n.deltaY;return this.movement+=Math.sqrt(r*r+o*o),this.prevClients=e,n},e.prototype.getPositions=function(e){void 0===e&&(e=this.prevClients);for(var t=this.prevClients,n=this.startClients,r=Math.min(this.length,t.length),o=[],i=0;i<r;++i)o[i]=Dt([e[i]],[t[i]],[n[i]]);return o},e.prototype.getMovement=function(e){var t=this.movement;if(!e)return t;var n=It(e,this.length),r=It(this.prevClients,this.length),o=n.clientX-r.clientX,i=n.clientY-r.clientY;return Math.sqrt(o*o+i*i)+t},e.prototype.getDistance=function(e){return void 0===e&&(e=this.prevClients),Pt(e)},e.prototype.getScale=function(e){return void 0===e&&(e=this.prevClients),Pt(e)/Pt(this.startClients)},e.prototype.move=function(e,t){this.startClients.forEach((function(n){n.clientX-=e,n.clientY-=t})),this.prevClients.forEach((function(n){n.clientX-=e,n.clientY-=t}))},e}(),Nt=["textarea","input"],Ft=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;r.options={},r.flag=!1,r.pinchFlag=!1,r.data={},r.isDrag=!1,r.isPinch=!1,r.clientStores=[],r.targets=[],r.prevTime=0,r.doubleFlag=!1,r._useMouse=!1,r._useTouch=!1,r._useDrag=!1,r._dragFlag=!1,r._isTrusted=!1,r._isMouseEvent=!1,r._isSecondaryButton=!1,r._preventMouseEvent=!1,r._prevInputEvent=null,r._isDragAPI=!1,r._isIdle=!0,r._window=window,r.onDragStart=function(e,t){if(void 0===t&&(t=!0),r.flag||!1!==e.cancelable){var n=e.type.indexOf("drag")>=-1;if(!r.flag||!n){r._isDragAPI=!0;var o=r.options,i=o.container,a=o.pinchOutside,s=o.preventWheelClick,l=o.preventRightClick,u=o.preventDefault,c=o.checkInput,d=o.dragFocusedInput,f=o.preventClickEventOnDragStart,h=o.preventClickEventOnDrag,p=o.preventClickEventByCondition,g=r._useTouch,m=!r.flag;if(r._isSecondaryButton=3===e.which||2===e.button,s&&(2===e.which||1===e.button)||l&&(3===e.which||2===e.button))return r.stop(),!1;if(m){var v=r._window.document.activeElement,y=e.target;if(y){var b=y.tagName.toLowerCase(),w=Nt.indexOf(b)>-1,x=y.isContentEditable;if(w||x){if(c||!d&&v===y)return!1;if(v&&(v===y||x&&v.isContentEditable&&v.contains(y))){if(!d)return!1;y.blur()}}else if((u||"touchstart"===e.type)&&v){var S=v.tagName.toLowerCase();(v.isContentEditable||Nt.indexOf(S)>-1)&&v.blur()}(f||h||p)&&he(r._window,"click",r._onClick,!0)}r.clientStores=[new $t(Lt(e))],r._isIdle=!1,r.flag=!0,r.isDrag=!1,r._isTrusted=t,r._dragFlag=!0,r._prevInputEvent=e,r.data={},r.doubleFlag=q()-r.prevTime<200,r._isMouseEvent=function(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}(e),!r._isMouseEvent&&r._preventMouseEvent&&(r._preventMouseEvent=!1),!1===(r._preventMouseEvent||r.emit("dragStart",Mt(Mt({data:r.data,datas:r.data,inputEvent:e,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,isTrusted:t,isDouble:r.doubleFlag},r.getCurrentStore().getPosition()),{preventDefault:function(){e.preventDefault()},preventDrag:function(){r._dragFlag=!1}})))&&r.stop(),r._isMouseEvent&&r.flag&&u&&e.preventDefault()}if(!r.flag)return!1;var _=0;if(m?(r._attchDragEvent(),g&&a&&(_=setTimeout((function(){he(i,"touchstart",r.onDragStart,{passive:!1})})))):g&&a&&pe(i,"touchstart",r.onDragStart),r.flag&&function(e){return e.touches&&e.touches.length>=2}(e)){if(clearTimeout(_),m&&e.touches.length!==e.changedTouches.length)return;r.pinchFlag||r.onPinchStart(e)}}}},r.onDrag=function(e,t){if(r.flag){var n=r.options.preventDefault;!r._isMouseEvent&&n&&e.preventDefault(),r._prevInputEvent=e;var o=Lt(e),i=r.moveClients(o,e,!1);if(r._dragFlag){if(r.pinchFlag||i.deltaX||i.deltaY)if(!1===(r._preventMouseEvent||r.emit("drag",Mt(Mt({},i),{isScroll:!!t,inputEvent:e}))))return void r.stop();r.pinchFlag&&r.onPinch(e,o)}r.getCurrentStore().getPosition(o,!0)}},r.onDragEnd=function(e){if(r.flag){var t=r.options,n=t.pinchOutside,o=t.container,i=t.preventClickEventOnDrag,a=t.preventClickEventOnDragStart,s=t.preventClickEventByCondition,l=r.isDrag;(i||a||s)&&requestAnimationFrame((function(){r._allowClickEvent()})),s||a||!i||l||r._allowClickEvent(),r._useTouch&&n&&pe(o,"touchstart",r.onDragStart),r.pinchFlag&&r.onPinchEnd(e);var u=(null==e?void 0:e.touches)?Lt(e):[];0!==u.length&&r.options.keepDragging?r._addStore(new $t(u)):r.flag=!1;var c=r._getPosition(),d=q(),f=!l&&r.doubleFlag;r._prevInputEvent=null,r.prevTime=l||f?0:d,r.flag||(r._dettachDragEvent(),r._preventMouseEvent||r.emit("dragEnd",Mt({data:r.data,datas:r.data,isDouble:f,isDrag:l,isClick:!l,isMouseEvent:r._isMouseEvent,isSecondaryButton:r._isSecondaryButton,inputEvent:e,isTrusted:r._isTrusted},c)),r.clientStores=[],r._isMouseEvent||(r._preventMouseEvent=!0,requestAnimationFrame((function(){requestAnimationFrame((function(){r._preventMouseEvent=!1}))}))),r._isIdle=!0)}},r.onBlur=function(){r.onDragEnd()},r._allowClickEvent=function(){pe(r._window,"click",r._onClick,!0)},r._onClick=function(e){r._allowClickEvent(),r._preventMouseEvent=!1;var t=r.options.preventClickEventByCondition;(null==t?void 0:t(e))||(e.stopPropagation(),e.preventDefault())},r._onContextMenu=function(e){r.options.preventRightClick?r.onDragEnd(e):e.preventDefault()},r._passCallback=function(){};var o=[].concat(t),i=o[0];r._window=be(i)?i:ye(i),r.options=Mt({checkInput:!1,container:i&&!("document"in i)?ye(i):i,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},n);var a=r.options,s=a.container,l=a.events,u=a.checkWindowBlur;if(r._useDrag=l.indexOf("drag")>-1,r._useTouch=l.indexOf("touch")>-1,r._useMouse=l.indexOf("mouse")>-1,r.targets=o,r._useDrag&&o.forEach((function(e){he(e,"dragstart",r.onDragStart)})),r._useMouse&&(o.forEach((function(e){he(e,"mousedown",r.onDragStart),he(e,"mousemove",r._passCallback)})),he(s,"contextmenu",r._onContextMenu)),u&&he(ye(),"blur",r.onBlur),r._useTouch){var c={passive:!1};o.forEach((function(e){he(e,"touchstart",r.onDragStart,c),he(e,"touchmove",r._passCallback,c)}))}return r}return function(e,t){function n(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(e){return this.getCurrentStore().getMovement(e)+this.clientStores.slice(1).reduce((function(e,t){return e+t.movement}),0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(e,t,n,r){void 0===r&&(r=!0),this.flag&&(this.clientStores[0].move(e,t),r&&this.onDrag(n,!0))},t.prototype.move=function(e,t){var n=e[0],r=e[1],o=this.getCurrentStore().prevClients;return this.moveClients(o.map((function(e){var t=e.clientX,o=e.clientY;return{clientX:t+n,clientY:o+r,originalClientX:t,originalClientY:o}})),t,!0)},t.prototype.triggerDragStart=function(e){this.onDragStart(e,!1)},t.prototype.setEventData=function(e){var t=this.data;for(var n in e)t[n]=e[n];return this},t.prototype.setEventDatas=function(e){return this.setEventData(e)},t.prototype.getCurrentEvent=function(e){return void 0===e&&(e=this._prevInputEvent),Mt(Mt({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:e})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var e=this,t=this.targets,n=this.options.container;this.off(),pe(this._window,"blur",this.onBlur),this._useDrag&&t.forEach((function(t){pe(t,"dragstart",e.onDragStart)})),this._useMouse&&(t.forEach((function(t){pe(t,"mousedown",e.onDragStart)})),pe(n,"contextmenu",this._onContextMenu)),this._useTouch&&(t.forEach((function(t){pe(t,"touchstart",e.onDragStart)})),pe(n,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(e){var t=this,n=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>n)){var r=new $t(Lt(e));this.pinchFlag=!0,this._addStore(r),!1===this.emit("pinchStart",Mt(Mt({data:this.data,datas:this.data,angle:r.getAngle(),touches:this.getCurrentStore().getPositions()},r.getPosition()),{inputEvent:e,isTrusted:this._isTrusted,preventDefault:function(){e.preventDefault()},preventDrag:function(){t._dragFlag=!1}}))&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(e,t){if(this.flag&&this.pinchFlag&&!(t.length<2)){var n=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Mt(Mt({data:this.data,datas:this.data,movement:this.getMovement(t),angle:n.getAngle(t),rotation:n.getRotation(t),touches:n.getPositions(t),scale:n.getScale(t),distance:n.getDistance(t)},n.getPosition(t)),{inputEvent:e,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(e){if(this.pinchFlag){var t=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var n=this.getCurrentStore();this.emit("pinchEnd",Mt(Mt({data:this.data,datas:this.data,isPinch:t,touches:n.getPositions()},n.getPosition()),{inputEvent:e}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(e,t,n){var r=this._getPosition(e,n),o=this.isDrag;(r.deltaX||r.deltaY)&&(this.isDrag=!0);var i=!1;return!o&&this.isDrag&&(i=!0),Mt(Mt({data:this.data,datas:this.data},r),{movement:this.getMovement(e),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:t,isTrusted:this._isTrusted,isFirstDrag:i})},t.prototype._addStore=function(e){this.clientStores.splice(0,0,e)},t.prototype._getPosition=function(e,t){var n=this.getCurrentStore().getPosition(e,t),r=this.clientStores.slice(1).reduce((function(e,t){var n=t.getPosition();return e.distX+=n.distX,e.distY+=n.distY,e}),n),o=r.distX,i=r.distY;return Mt(Mt({},n),{distX:o,distY:i})},t.prototype._attchDragEvent=function(){var e=this._window,t=this.options.container,n={passive:!1};this._isDragAPI&&(he(t,"dragover",this.onDrag,n),he(e,"dragend",this.onDragEnd)),this._useMouse&&(he(t,"mousemove",this.onDrag),he(e,"mouseup",this.onDragEnd)),this._useTouch&&(he(t,"touchmove",this.onDrag,n),he(e,"touchend",this.onDragEnd,n),he(e,"touchcancel",this.onDragEnd,n))},t.prototype._dettachDragEvent=function(){var e=this._window,t=this.options.container;this._isDragAPI&&(pe(t,"dragover",this.onDrag),pe(e,"dragend",this.onDragEnd)),this._useMouse&&(pe(t,"mousemove",this.onDrag),pe(e,"mouseup",this.onDragEnd)),this._useTouch&&(pe(t,"touchstart",this.onDragStart),pe(t,"touchmove",this.onDrag),pe(e,"touchend",this.onDragEnd),pe(e,"touchcancel",this.onDragEnd))},t}(ut);var zt=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0};function Bt(e,t,n,r,o){var i=ge(r),a=i.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",e),a.setAttribute("data-styled-count","1"),n.nonce&&a.setAttribute("nonce",n.nonce),a.innerHTML=function(e,t,n){return n.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/gm,(function(t,n){var r=n.trim();return(r?Z(r):[""]).map((function(t){var n=t.trim();return 0===n.indexOf("@")?n:n.indexOf(":global")>-1?n.replace(/\:global/g,""):n.indexOf(":host")>-1?"".concat(n.replace(/\:host/g,".".concat(e))):n?".".concat(e," ").concat(n):".".concat(e)})).join(", ")+" {"}))}(e,t,n),(o||i.head||i.body).appendChild(a),a}const Ht=function(e){var t="rCS"+zt(e).toString(36);return{className:t,inject:function(n,r){void 0===r&&(r={});var o=function(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}(n),i=(o||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(i){var a=parseFloat(i.getAttribute("data-styled-count"))||0;i.setAttribute("data-styled-count","".concat(a+1))}else i=Bt(t,e,r,n,o);return{destroy:function(){var e,t=parseFloat(i.getAttribute("data-styled-count"))||0;t<=1?(i.remove?i.remove():null===(e=i.parentNode)||void 0===e||e.removeChild(i),i=null):i.setAttribute("data-styled-count","".concat(t-1))}}}}};var Wt=function(){return Wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wt.apply(this,arguments)};function Ut(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Zt(e,t){var n=Ht(t),r=n.className;return(0,Tt.forwardRef)((function(t,o){var i=t.className,a=void 0===i?"":i,s=(t.cspNonce,Ut(t,["className","cspNonce"])),l=(0,Tt.useRef)();return(0,Tt.useImperativeHandle)(o,(function(){return l.current}),[]),(0,Tt.useEffect)((function(){var e=n.inject(l.current,{nonce:t.cspNonce});return function(){e.destroy()}}),[]),(0,Tt.createElement)(e,Wt({ref:l,"data-styled-id":r,className:"".concat(a," ").concat(r)},s))}))}var Vt=function(e,t){return Vt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Vt(e,t)};function Gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Vt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var qt=function(){return qt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qt.apply(this,arguments)};function Yt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Kt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Xt(e,t){return qt({events:[],props:[],name:e},t)}var Qt=["n","w","s","e"],Jt=["n","w","s","e","nw","ne","sw","se"];var en,tn,nn=w(),rn=nn.browser.webkit,on=rn&&(en="undefined"==typeof window?{userAgent:""}:window.navigator,!!(tn=/applewebkit\/([^\s]+)/g.exec(en.userAgent.toLowerCase()))&&parseFloat(tn[1])<605),an=nn.browser.name,sn=parseInt(nn.browser.version,10),ln="chrome"===an,un=nn.browser.chromium,cn=parseInt(nn.browser.chromiumVersion,10)||0,dn=ln&&sn>=109||un&&cn>=109,fn="firefox"===an,hn=parseInt(nn.browser.webkitVersion,10)>=612||sn>=15,pn="moveable-",gn=Jt.map((function(e){var t="",n="",r="center",o="center",i="calc(var(--moveable-control-padding, 20) * -1px)";return e.indexOf("n")>-1&&(t="top: ".concat(i,";"),o="bottom"),e.indexOf("s")>-1&&(t="top: 0px;",o="top"),e.indexOf("w")>-1&&(n="left: ".concat(i,";"),r="right"),e.indexOf("e")>-1&&(n="left: 0px;",r="left"),'.around-control[data-direction*="'.concat(e,'"] {\n        ').concat(n).concat(t,"\n        transform-origin: ").concat(r," ").concat(o,";\n    }")})).join("\n"),mn="\n{\nposition: absolute;\nwidth: 1px;\nheight: 1px;\nleft: 0;\ntop: 0;\nz-index: 3000;\n--moveable-color: #4af;\n--zoom: 1;\n--zoompx: 1px;\n--moveable-line-padding: 0;\n--moveable-control-padding: 0;\nwill-change: transform;\noutline: 1px solid transparent;\n}\n.control-box {\nz-index: 0;\n}\n.line, .control {\nposition: absolute;\nleft: 0;\ntop: 0;\nwill-change: transform;\n}\n.control {\nwidth: 14px;\nheight: 14px;\nborder-radius: 50%;\nborder: 2px solid #fff;\nbox-sizing: border-box;\nbackground: #4af;\nbackground: var(--moveable-color);\nmargin-top: -7px;\nmargin-left: -7px;\nborder: 2px solid #fff;\nz-index: 10;\n}\n.around-control {\nposition: absolute;\nwill-change: transform;\nwidth: calc(var(--moveable-control-padding, 20) * 1px);\nheight: calc(var(--moveable-control-padding, 20) * 1px);\nleft: calc(var(--moveable-control-padding, 20) * -0.5px);\ntop: calc(var(--moveable-control-padding, 20) * -0.5px);\nbox-sizing: border-box;\nbackground: transparent;\nz-index: 8;\ncursor: alias;\ntransform-origin: center center;\n}\n".concat(gn,"\n.padding {\nposition: absolute;\ntop: 0px;\nleft: 0px;\nwidth: 100px;\nheight: 100px;\ntransform-origin: 0 0;\n}\n.line {\nwidth: 1px;\nheight: 1px;\nbackground: #4af;\nbackground: var(--moveable-color);\ntransform-origin: 0px 50%;\n}\n.line.edge {\nz-index: 1;\nbackground: transparent;\n}\n.line.dashed {\nbox-sizing: border-box;\nbackground: transparent;\n}\n.line.dashed.horizontal {\nborder-top: 1px dashed #4af;\nborder-top-color: #4af;\nborder-top-color: var(--moveable-color);\n}\n.line.dashed.vertical {\nborder-left: 1px dashed #4af;\nborder-left-color: #4af;\nborder-left-color: var(--moveable-color);\n}\n.line.vertical {\ntransform: translateX(-50%);\n}\n.line.horizontal {\ntransform: translateY(-50%);\n}\n.line.vertical.bold {\nwidth: 2px;\n}\n.line.horizontal.bold {\nheight: 2px;\n}\n\n.control.origin {\nborder-color: #f55;\nbackground: #fff;\nwidth: 12px;\nheight: 12px;\nmargin-top: -6px;\nmargin-left: -6px;\npointer-events: none;\n}\n").concat([0,15,30,45,60,75,90,105,120,135,150,165].map((function(e){return'\n.direction[data-rotation="'.concat(e,'"], :global .view-control-rotation').concat(e," {\n").concat(function(e){var t=function(e,t){return'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(32*e,'px" height="').concat(32*e,'px" viewBox="0 0 32 32" ><path d="M 16,5 L 12,10 L 14.5,10 L 14.5,22 L 12,22 L 16,27 L 20,22 L 17.5,22 L 17.5,10 L 20, 10 L 16,5 Z" stroke-linejoin="round" stroke-width="1.2" fill="black" stroke="white" style="transform:rotate(').concat(t,'deg);transform-origin: 16px 16px"></path></svg>')}(1,e),n=45*Math.round(e/45)%180,r="ns-resize";return 135===n?r="nwse-resize":45===n?r="nesw-resize":90===n&&(r="ew-resize"),"cursor:".concat(r,";cursor: url('").concat(t,"') 16 16, ").concat(r,";")}(e),"\n}\n")})).join("\n"),'\n\n.line.direction:before {\ncontent: "";\nposition: absolute;\nwidth: 100%;\nheight: calc(var(--moveable-line-padding, 0) * 1px);\nbottom: 0;\nleft: 0;\n}\n.group {\nz-index: -1;\n}\n.area {\nposition: absolute;\n}\n.area-pieces {\nposition: absolute;\ntop: 0;\nleft: 0;\ndisplay: none;\n}\n.area.avoid, .area.pass {\npointer-events: none;\n}\n.area.avoid+.area-pieces {\ndisplay: block;\n}\n.area-piece {\nposition: absolute;\n}\n\n').concat(on?':global svg *:before {\ncontent:"";\ntransform-origin: inherit;\n}':"","\n"),vn=[[0,1,2],[1,0,3],[2,0,3],[3,1,2]],yn=1e-4,bn=1e-7,wn=1e-9,xn=Math.pow(10,10),Sn=-xn,_n={n:[0,-1],e:[1,0],s:[0,1],w:[-1,0],nw:[-1,-1],ne:[1,-1],sw:[-1,1],se:[1,1]},En={n:[0,1],e:[1,3],s:[3,2],w:[2,0],nw:[0],ne:[1],sw:[2],se:[3]},kn={n:0,s:180,w:270,e:90,nw:315,ne:45,sw:225,se:135},Cn=["isMoveableElement","updateRect","updateTarget","destroy","dragStart","isInside","hitTest","setState","getRect","request","isDragging","getManager","forceUpdate","waitToChangeTarget","updateSelectors","getTargets","stopDrag","getControlBoxElement","getMoveables","getDragElement"];function An(e,t,n,r,o,i){var a,s;void 0===i&&(i="draggable");var l=null!==(s=null===(a=t.gestos[i])||void 0===a?void 0:a.move(n,e.inputEvent))&&void 0!==s?s:{},u=l.originalDatas||l.datas,c=u[i]||(u[i]={});return qt(qt({},o?ji(t,l):l),{isPinch:!!r,parentEvent:!0,datas:c,originalDatas:e.originalDatas})}var Tn=function(){function e(e){var t;void 0===e&&(e="draggable"),this.ableName=e,this.prevX=0,this.prevY=0,this.startX=0,this.startY=0,this.isDrag=!1,this.isFlag=!1,this.datas={draggable:{}},this.datas=((t={})[e]={},t)}return e.prototype.dragStart=function(e,t){this.isDrag=!1,this.isFlag=!1;var n=t.originalDatas;return this.datas=n,n[this.ableName]||(n[this.ableName]={}),qt(qt({},this.move(e,t.inputEvent)),{type:"dragstart"})},e.prototype.drag=function(e,t){return this.move([e[0]-this.prevX,e[1]-this.prevY],t)},e.prototype.move=function(e,t){var n,r,o=!1;if(this.isFlag){var i=this.isDrag;n=this.prevX+e[0],r=this.prevY+e[1],(e[0]||e[1])&&(this.isDrag=!0),!i&&this.isDrag&&(o=!0)}else this.prevX=e[0],this.prevY=e[1],this.startX=e[0],this.startY=e[1],n=e[0],r=e[1],this.isFlag=!0;return this.prevX=n,this.prevY=r,{type:"drag",clientX:n,clientY:r,inputEvent:t,isFirstDrag:o,isDrag:this.isDrag,distX:n-this.startX,distY:r-this.startY,deltaX:e[0],deltaY:e[1],datas:this.datas[this.ableName],originalDatas:this.datas,parentEvent:!0,parentGesto:this}},e}();function On(e,t,n,r){var o=16===e.length?4:3,i=Yt(ri(e,n,r,o),4),a=Yt(i[0],2),s=a[0],l=a[1],u=Yt(i[1],2),c=u[0],d=u[1],f=Yt(i[2],2),h=f[0],p=f[1],g=Yt(i[3],2),m=g[0],v=g[1],y=Yt(ni(e,t,o),2),b=y[0],w=y[1],x=Math.min(s,c,h,m),S=Math.min(l,d,p,v),_=Math.max(s,c,h,m);return s=s-x||0,{left:x,top:S,right:_,bottom:Math.max(l,d,p,v),origin:[b=b-x||0,w=w-S||0],pos1:[s,l=l-S||0],pos2:[c=c-x||0,d=d-S||0],pos3:[h=h-x||0,p=p-S||0],pos4:[m=m-x||0,v=v-S||0],direction:Ki(e[0]*e[o+1])}}function Mn(e,t){var n=t.clientX,r=t.clientY,o=t.datas,i=e.state,a=i.moveableClientRect,s=i.rootMatrix,l=i.is3d,u=i.pos1,c=Yt(Le(Pi(s,[n-a.left,r-a.top],l?4:3),u),2),d=Yt($n({datas:o,distX:c[0],distY:c[1]}),2);return[d[0],d[1]]}function Rn(e,t){var n=t.datas,r=e.state,o=r.allMatrix,i=r.beforeMatrix,a=r.is3d,s=r.left,l=r.top,u=r.origin,c=r.offsetMatrix,d=r.targetMatrix,f=r.transformOrigin,h=a?4:3;n.is3d=a,n.matrix=o,n.targetMatrix=d,n.beforeMatrix=i,n.offsetMatrix=c,n.transformOrigin=f,n.inverseMatrix=ke(o,h),n.inverseBeforeMatrix=ke(i,h),n.absoluteOrigin=Ae(Re([s,l],u),h),n.startDragBeforeDist=Pe(n.inverseBeforeMatrix,n.absoluteOrigin,h),n.startDragDist=Pe(n.inverseMatrix,n.absoluteOrigin,h)}function Ln(e,t,n){var r=t.datas,o=t.originalDatas.beforeRenderable,i=r.transformIndex,a=o.nextTransforms,s=a.length,l=o.nextTransformAppendedIndexes,u=-1;-1===i?("translate"===n?u=0:"rotate"===n&&(u=Y(a,(function(e){return e.match(/scale\(/g)}))),-1===u&&(u=a.length),r.transformIndex=u):u=K(l,(function(e){return e.index===i&&e.functionName===n}))?i:i+l.filter((function(e){return e.index<i})).length;var c=function(e,t,n){var r,o=Ke(e,{"x%":function(e){return e/100*t.offsetWidth},"y%":function(e){return e/100*t.offsetHeight}}),i=e.slice(0,n<0?void 0:n),a=e.slice(0,n<0?void 0:n+1),s=e[n]||"",l=n<0?[]:e.slice(n),u=n<0?[]:e.slice(n+1),c=o.slice(0,n<0?void 0:n),d=o.slice(0,n<0?void 0:n+1),f=null!==(r=o[n])&&void 0!==r?r:Ke([""])[0],h=n<0?[]:o.slice(n),p=n<0?[]:o.slice(n+1),g=f?[f]:[],m=Ye(c),v=Ye(d),y=Ye(h),b=Ye(p),w=Me(m,y,4);return{transforms:e,beforeFunctionMatrix:m,beforeFunctionMatrix2:v,targetFunctionMatrix:Ye(g),afterFunctionMatrix:y,afterFunctionMatrix2:b,allFunctionMatrix:w,beforeFunctions:c,beforeFunctions2:d,targetFunction:g[0],afterFunctions:h,afterFunctions2:p,beforeFunctionTexts:i,beforeFunctionTexts2:a,targetFunctionText:s,afterFunctionTexts:l,afterFunctionTexts2:u}}(a,e.state,u),d=c.targetFunction,f="rotate"===n?"rotateZ":n;r.beforeFunctionTexts=c.beforeFunctionTexts,r.afterFunctionTexts=c.afterFunctionTexts,r.beforeTransform=c.beforeFunctionMatrix,r.beforeTransform2=c.beforeFunctionMatrix2,r.targetTansform=c.targetFunctionMatrix,r.afterTransform=c.afterFunctionMatrix,r.afterTransform2=c.afterFunctionMatrix2,r.targetAllTransform=c.allFunctionMatrix,d.functionName===f?(r.afterFunctionTexts.splice(0,1),r.isAppendTransform=!1):s>u&&(r.isAppendTransform=!0,o.nextTransformAppendedIndexes=Kt(Kt([],Yt(l),!1),[{functionName:n,index:u,isAppend:!0}],!1))}function Dn(e,t,n){return"".concat(e.beforeFunctionTexts.join(" ")," ").concat(e.isAppendTransform?n:t," ").concat(e.afterFunctionTexts.join(" "))}function Pn(e){var t=e.datas,n=Yt(In({datas:t,distX:e.distX,distY:e.distY}),2);return Pe(jn(t,function(e,t){for(var n=We(t),r=0;r<t-1;++r)n[t*(t-1)+r]=e[r]||0;return n}([n[0],n[1]],4)),Ae([0,0,0],4),4)}function jn(e,t,n){var r=e.beforeTransform,o=e.afterTransform,i=e.beforeTransform2,a=e.afterTransform2,s=e.targetAllTransform,l=n?Me(s,t,4):Me(t,s,4),u=Me(ke(n?i:r,4),l,4);return Me(u,ke(n?a:o,4),4)}function In(e){var t=e.datas,n=e.distX,r=e.distY,o=t.inverseBeforeMatrix,i=t.is3d,a=t.startDragBeforeDist,s=i?4:3;return Le(Pe(o,Re(t.absoluteOrigin,[n,r]),s),a)}function $n(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.inverseBeforeMatrix,a=n.inverseMatrix,s=n.is3d,l=n.startDragBeforeDist,u=n.startDragDist,c=s?4:3;return Le(Pe(t?i:a,Re(n.absoluteOrigin,[r,o]),c),t?l:u)}function Nn(e){var t=[];return e[1]>=0&&(e[0]>=0&&t.push(3),e[0]<=0&&t.push(2)),e[1]<=0&&(e[0]>=0&&t.push(1),e[0]<=0&&t.push(0)),t}function Fn(e,t){var n=(t+1)/2;return[P(e[0][0],e[1][0],n,1-n),P(e[0][1],e[1][1],n,1-n)]}function zn(e,t){var n=Fn([e[0],e[1]],t[0]),r=Fn([e[2],e[3]],t[0]);return Fn([n,r],t[1])}function Bn(e,t,n,r){return Me(e,Uo(t,r,n),r)}function Hn(e,t){var n=Vn(t);return{setTransform:function(r,o){void 0===o&&(o=-1),n.startTransforms=$(r)?r:U(r),Un(e,t,o)},setTransformIndex:function(n){Un(e,t,n)}}}function Wn(e,t,n){Un(e,t,Y(Vn(t).startTransforms,(function(e){return 0===e.indexOf("".concat(n,"("))})))}function Un(e,t,n){var r=Vn(t),o=t.datas;if(o.transformIndex=n,-1!==n){var i=r.startTransforms[n];if(i){var a=e.state,s=Ke([i],{"x%":function(e){return e/100*a.offsetWidth},"y%":function(e){return e/100*a.offsetHeight}});o.startValue=s[0].functionValue}}}function Zn(e,t){Vn(e).nextTransforms=U(t)}function Vn(e){return e.originalDatas.beforeRenderable}function Gn(e){return e.originalDatas.beforeRenderable.nextTransforms}function qn(e){return(Gn(e)||[]).join(" ")}function Yn(e){return Vn(e).nextStyle}function Kn(e,t,n,r,o){Zn(o,t);var i=oo.drag(e,An(o,e.state,n,r,!1)),a=i?i.transform:t;return qt(qt({transform:t,drag:i},Si({transform:a},o)),{afterTransform:a})}function Xn(e,t,n,r,o,i){var a=function(e,t,n,r){var o,i=e.transformOrigin,a=e.offsetMatrix,s=e.is3d?4:3;if(N(n)){var l=t.beforeTransform,u=t.afterTransform;o=Te(r?qe(n):Me(Me(l,qe([n]),4),u,4),4,s)}else o=n;return Bn(a,o,i,s)}(e.state,o,t,i),s=function(e,t,n,r){void 0===r&&(r=e.state.allMatrix);var o=e.state,i=o.width,a=o.height,s=o.is3d?4:3,l=[i/2*(1+t[0])+n[0],a/2*(1+t[1])+n[1]];return ni(r,l,s)}(e,n,r,a);return s}function Qn(e,t,n,r,o,i,a){var s=Xn(e,t,n,o,i,a),l=e.state,u=l.left,c=l.top,d=e.props.groupable,f=d?u:0,h=d?c:0,p=Le(r,s);return Le(p,[f,h])}function Jn(e,t,n,r,o,i){var a=e.props.groupable,s=e.state,l=s.transformOrigin,u=s.offsetMatrix,c=s.is3d,d=s.width,f=s.height,h=s.left,p=s.top,g=i.fixedDirection,m=i.nextTargetMatrix||s.targetMatrix,v=c?4:3,y=function(e,t,n,r,o,i){return void 0===r&&(r=t),void 0===o&&(o=n),void 0===i&&(i=[0,0]),e?e.map((function(e,a){var s=G(e),l=s.value,u=s.unit,c=a?o:r,d=a?n:t;return"%"===e||isNaN(l)?d*(c?i[a]/c:0):"%"!==u?l:d*l/100})):i}(o,t,n,d,f,l),b=a?h:0,w=a?p:0,x=function(e,t,n,r,o,i){var a=zn(ri(t,n,r,o),i);return[e[0]-a[0],e[1]-a[1]]}(r,Bn(u,m,y,v),t,n,v,g);return Le(x,[b,w])}function er(e){if(e&&e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t}}function tr(e){var t=e("scale"),n=e("rotate"),r=e("translate"),o=[];return r&&"0px"!==r&&"none"!==r&&o.push("translate(".concat(r.split(/\s+/).join(","),")")),n&&"1"!==n&&"none"!==n&&o.push("rotate(".concat(n,")")),t&&"1"!==t&&"none"!==t&&o.push("scale(".concat(t.split(/\s+/).join(","),")")),o}function nr(e,t,n){for(var r,o,i,a,s,l=e,u=[],c=me(e)||ve(e),d=!n&&e===t||e===c,f=d,h=!1,p=3,g=!1,m=qo(t,t,!0).offsetParent,v=1;l&&!f;){f=d;var y=sr(l),b=y("position"),w=Go(l),x="fixed"===b,S=tr(y),_=(a=Wo(w),void 0===(s=void 0)&&(s=6===a.length),s?[a[0],a[1],0,a[2],a[3],0,a[4],a[5],1]:a),E=void 0,k=!1,C=!1,A=0,T=0,O=0,M=0,R={hasTransform:!1,fixedContainer:null};x&&(g=!0,m=(R=Qo(l)).fixedContainer);var L=_.length;h||16!==L&&!S.length||(h=!0,p=4,Xo(u),i&&(i=Te(i,3,4))),h&&9===L&&(_=Te(_,3,4));var D=Yo(l,e),P=D.tagName,j=D.hasOffset,I=D.isSVG,$=D.origin,N=D.targetOrigin,F=Yt(D.offset,2),z=F[0],B=F[1];"svg"===P&&!e.ownerSVGElement&&i&&(u.push({type:"target",target:l,matrix:ti(l,p)}),u.push({type:"offset",target:l,matrix:We(p)}));var H=parseFloat(y("zoom"))||1;if(x)E=R.fixedContainer,k=!0;else{var W=qo(l,t,!1,!0,y),U=W.offsetZoom;if(E=W.offsetParent,k=W.isEnd,C=W.isStatic,v*=U,(W.isCustomElement||1!==U)&&C)z-=E.offsetLeft,B-=E.offsetTop;else if(fn||dn){if(W.parentSlotElement){for(var Z=E,V=0,G=0;Z&&er(Z);)V+=Z.offsetLeft,G+=Z.offsetTop,Z=Z.offsetParent;z-=V,B-=G}}}if(!rn||hn||!j||I||!C||"relative"!==b&&"static"!==b||(z-=E.offsetLeft,B-=E.offsetTop,d=d||k),x)j&&R.hasTransform&&(O=E.clientLeft,M=E.clientTop);else if(j&&m!==E&&(A=E.clientLeft,T=E.clientTop),j&&E===c){var q=Ko(l,!1);z+=q[0],B+=q[1]}if(u.push({type:"target",target:l,matrix:Uo(_,p,$)}),S.length&&(u.push({type:"offset",target:l,matrix:We(p)}),u.push({type:"target",target:l,matrix:Uo(qe(S),p,$)})),j){var Y=l===e,K=Y?0:l.scrollLeft,X=Y?0:l.scrollTop;u.push({type:"offset",target:l,matrix:Ze([z-K+A-O,B-X+T-M],p)})}else u.push({type:"offset",target:l,origin:$});if(1!==H&&u.push({type:"zoom",target:l,matrix:Uo(Ue([H,H],p),p,[0,0])}),i||(i=_),r||(r=$),o||(o=N),f||x)break;l=E,d=k,n&&l!==c||(f=d)}return i||(i=We(p)),r||(r=[0,0]),o||(o=[0,0]),{zoom:v,offsetContainer:m,matrixes:u,targetMatrix:i,transformOrigin:r,targetOrigin:o,is3d:h,hasFixed:g}}var rr=null,or=null,ir=null;function ar(e){e?(window.Map&&(rr=new Map,or=new Map),ir=[]):(rr=null,ir=null,or=null)}function sr(e){var t=null==rr?void 0:rr.get(e);if(!t){var n=ye(e).getComputedStyle(e);if(!rr)return function(e){return n[e]};t={style:n,cached:{}},rr.set(e,t)}var r=t.cached,o=t.style;return function(e){return e in r||(r[e]=o[e]),r[e]}}function lr(e,t,n){var r=n.originalDatas;r.groupable=r.groupable||{};var o=r.groupable;o.childDatas=o.childDatas||[];var i=o.childDatas;return e.moveables.map((function(e,r){return i[r]=i[r]||{},i[r][t]=i[r][t]||{},qt(qt({},n),{isRequestChild:!0,datas:i[r][t],originalDatas:i[r]})}))}function ur(e,t,n,r,o,i,a){var s=!!n.match(/Start$/g),l=!!n.match(/End$/g),u=o.isPinch,c=o.datas,d=lr(e,t.name,o),f=e.moveables,h=[],p=d.map((function(e,o){var d=f[o],p=d.state,g=p.gestos,m=e;if(s)m=new Tn(a).dragStart(r,e),h.push(m);else{if(g[a]||(g[a]=c.childGestos[o]),!g[a])return;m=An(e,p,r,u,i,a),h.push(m)}var v=t[n](d,qt(qt({},m),{parentFlag:!0}));return l&&(g[a]=null),v}));return s&&(c.childGestos=f.map((function(e){return e.state.gestos[a]}))),{eventParams:p,childEvents:h}}function cr(e,t,n,r,o,i){void 0===o&&(o=function(e,t){return t});var a=!!n.match(/End$/g),s=lr(e,t.name,r),l=e.moveables;return s.map((function(e,r){var s,u=l[r];s=o(u,e);var c=t[n](u,qt(qt({},s),{parentFlag:!0}));return c&&i&&i(u,e,c,r),a&&(u.state.gestos={}),c}))}function dr(e,t,n,r){var o=n.fixedDirection,i=n.fixedPosition,a=zn(r.datas.startPositions||bi(t.state),o),s=Yt(Pe(He(-e.rotation/180*Math.PI,3),[a[0]-i[0],a[1]-i[1],1],3),2),l=s[0],u=s[1];return r.datas.originalX=l,r.datas.originalY=u,r}function fr(e,t,n,r){var o=e.getState(),i=o.renderPoses,a=o.rotation,s=o.direction,l=ci(e.props,t).zoom,u=Ro(a/Math.PI*180),c={},d=e.renderState;d.renderDirectionMap||(d.renderDirectionMap={});var f=d.renderDirectionMap;n.forEach((function(e){var t=e.dir;c[t]=!0}));var h=Ki(s);return n.map((function(e){var n=e.data,o=e.classNames,s=e.dir,d=En[s];if(!d||!c[s])return null;f[s]=!0;var p=(le(u,15)+h*kn[s]+720)%180,g={};return J(n).forEach((function(e){g["data-".concat(e)]=n[e]})),r.createElement("div",qt({className:Bo.apply(void 0,Kt(["control","direction",s,t],Yt(o),!1)),"data-rotation":p,"data-direction":s},g,{key:"direction-".concat(s),style:ui.apply(void 0,Kt([a,l],Yt(d.map((function(e){return i[e]}))),!1))}))}))}function hr(e,t,n,r){var o=ci(e.props,n),i=o.renderDirections,a=void 0===i?t:i,s=o.displayAroundControls;if(!a)return[];var l=!0===a?Jt:a;return Kt(Kt([],Yt(s?yr(e,r,n,l):[]),!1),Yt(fr(e,n,l.map((function(e){return{data:{},classNames:[],dir:e}})),r)),!1)}function pr(e,t,n,r,o,i){for(var a=[],s=6;s<arguments.length;s++)a[s-6]=arguments[s];var l=ie(n,r),u=t?le(l/Math.PI*180,15)%180:-1;return e.createElement("div",{key:"line-".concat(i),className:Bo.apply(void 0,Kt(["line","direction",t?"edge":"",t],Yt(a),!1)),"data-rotation":u,"data-line-key":i,"data-direction":t,style:li(n,r,o,l)})}function gr(e,t,n,r,o){return(!0===n?Qt:n).map((function(n,i){var a=Yt(En[n],2),s=a[0],l=a[1];if(null!=l)return pr(e,n,r[s],r[l],o,"".concat(t,"Edge").concat(i),t)})).filter(Boolean)}function mr(e){return function(t,n){var r=ci(t.props,e).edge;return r&&(!0===r||r.length)?Kt(Kt([],Yt(gr(n,e,r,t.getState().renderPoses,t.props.zoom)),!1),Yt(function(e,t,n){return hr(e,["nw","ne","sw","se"],t,n)}(t,e,n)),!1):vr(t,e,n)}}function vr(e,t,n){return hr(e,Jt,t,n)}function yr(e,t,n,r){var o=e.renderState;o.renderDirectionMap||(o.renderDirectionMap={});var i=e.getState(),a=i.renderPoses,s=i.rotation,l=i.direction,u=o.renderDirectionMap,c=e.props.zoom,d=Ki(l),f=s/Math.PI*180;return(r||J(u)).map((function(e){var r=En[e];if(!r)return null;var o=(le(f,15)+d*kn[e]+720)%180,i=["around-control"];return n&&i.push("direction",n),t.createElement("div",{className:Bo.apply(void 0,Kt([],Yt(i),!1)),"data-rotation":o,"data-direction":e,key:"direction-around-".concat(e),style:ui.apply(void 0,Kt([s,c],Yt(r.map((function(e){return a[e]}))),!1))})}))}function br(e,t,n){var r=e||{},o=r.position,i=void 0===o?"client":o,a=r.left,s=void 0===a?-1/0:a,l=r.top,u=void 0===l?-1/0:l,c=r.right,d=void 0===c?1/0:c,f=r.bottom,h={position:i,left:s,top:u,right:d,bottom:void 0===f?1/0:f};return{vertical:xr(h,t,!0),horizontal:xr(h,n,!1)}}function wr(e,t){var n=e.state,r=n.containerClientRect,o=r.clientHeight,i=r.clientWidth,a=r.clientLeft,s=r.clientTop,l=n.snapOffset,u=l.left,c=l.top,d=l.right,f=l.bottom,h=t||e.props.bounds||{},p="css"===(h.position||"client"),g=h.left,m=void 0===g?-1/0:g,v=h.top,y=void 0===v?-1/0:v,b=h.right,w=void 0===b?p?-1/0:1/0:b,x=h.bottom,S=void 0===x?p?-1/0:1/0:x;return p&&(w=i+d-u-w,S=o+f-c-S),{left:m+u-a,right:w+u-a,top:y+c-s,bottom:S+c-s}}function xr(e,t,n){var r=e[n?"left":"top"],o=e[n?"right":"bottom"],i=Math.min.apply(Math,Kt([],Yt(t),!1)),a=Math.max.apply(Math,Kt([],Yt(t),!1)),s=[];return r+1>i&&s.push({direction:"start",isBound:!0,offset:i-r,pos:r}),o-1<a&&s.push({direction:"end",isBound:!0,offset:a-o,pos:o}),s.length||s.push({isBound:!1,offset:0,pos:0}),s.sort((function(e,t){return Xi(t.offset)-Xi(e.offset)}))}function Sr(e,t,n){return(n?e.map((function(e){return Fe(e,n)})):e).some((function(e){return e[0]<t.left&&Xi(e[0]-t.left)>.1||e[0]>t.right&&Xi(e[0]-t.right)>.1||e[1]<t.top&&Xi(e[1]-t.top)>.1||e[1]>t.bottom&&Xi(e[1]-t.bottom)>.1}))}function _r(e,t,n,r,o){if(!e.props.bounds)return[];var i=o*Math.PI/180,a=wr(e),s=a.left,l=a.top,u=a.right,c=a.bottom,d=s-r[0],f=u-r[0],h=l-r[1],p=c-r[1],g={left:d,top:h,right:f,bottom:p};if(!Sr(n,g,0))return[];var m=[];return[[d,0],[f,0],[h,1],[p,1]].forEach((function(e){var r=Yt(e,2),o=r[0],a=r[1];n.forEach((function(e){var n=ie([0,0],e);m.push.apply(m,Kt([],Yt(function(e,t,n){var r=ai(e),o=Math.sqrt(r*r-t*t)||0;return[o,-o].sort((function(t,r){return Xi(t-e[n?0:1])-Xi(r-e[n?0:1])})).map((function(e){return ie([0,0],n?[e,t]:[t,e])}))}(e,o,a).map((function(e){return i+e-n})).filter((function(e){return!Sr(t,g,e)})).map((function(e){return le(180*e/Math.PI,bn)}))),!1))}))})),m}var Er=["left","right","center"],kr=["top","bottom","middle"],Cr={left:"start",right:"end",center:"center",top:"start",bottom:"end",middle:"center"},Ar={start:"left",end:"right",center:"center"},Tr={start:"top",end:"bottom",center:"middle"};function Or(e,t){var n=e.props,r=n.snappable,o=n.bounds,i=n.innerBounds,a=n.verticalGuidelines,s=n.horizontalGuidelines,l=n.snapGridWidth,u=n.snapGridHeight,c=e.state,d=c.guidelines,f=c.enableSnap;return!(!r||!f||t&&!0!==r&&r.indexOf(t)<0)&&!!(l||u||o||i||d&&d.length||a&&a.length||s&&s.length)}function Mr(e){return!1===e?{}:!0!==e&&e?e:{left:!0,right:!0,top:!0,bottom:!0}}function Rr(e,t){var n=function(e,t){var n=Mr(e),r={};for(var o in n)o in t&&n[o]&&(r[o]=t[o]);return r}(e,t),r=kr.filter((function(e){return e in n})),o=Er.filter((function(e){return e in n}));return{horizontalNames:r,verticalNames:o,horizontal:r.map((function(e){return n[e]})),vertical:o.map((function(e){return n[e]}))}}function Lr(e,t,n,r,o,i){var a;void 0===r&&(r=[]),void 0===o&&(o=[]);var s=e.props,l=(null===(a=e.state.snapThresholdInfo)||void 0===a?void 0:a.multiples)||[1,1],u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.length-1,r=0;r<n;++r){var o=e[r];if(!j(o))return o}return e[n]}(i,s.snapThreshold,5);return Dr(e.state.guidelines,t,n,r,o,u,l)}function Dr(e,t,n,r,o,i,a){return{vertical:$r(e,"vertical",t,i*a[0],r),horizontal:$r(e,"horizontal",n,i*a[1],o)}}function Pr(e){var t="";return-1===e||"top"===e||"left"===e?t="start":0===e||"center"===e||"middle"===e?t="center":1!==e&&"right"!==e&&"bottom"!==e||(t="end"),t}function jr(e,t,n){var r=Rr(e.props.snapDirections,t),o=Lr(e,r.vertical,r.horizontal,r.verticalNames.map((function(e){return Pr(e)})),r.horizontalNames.map((function(e){return Pr(e)})),n),i=Pr(r.horizontalNames[o.horizontal.index]),a=Pr(r.verticalNames[o.vertical.index]);return{vertical:qt(qt({},o.vertical),{direction:a}),horizontal:qt(qt({},o.horizontal),{direction:i})}}function Ir(e){var t=e.isSnap;if(!t)return{isSnap:!1,offset:0,dist:-1,pos:0,guideline:null};var n=e.posInfos[0],r=n.guidelineInfos[0],o=r.offset,i=r.dist,a=r.guideline;return{isSnap:t,offset:o,dist:i,pos:n.pos,guideline:a}}function $r(e,t,n,r,o){var i,a;if(void 0===o&&(o=[]),!e||!e.length)return{isSnap:!1,index:-1,direction:"",posInfos:[]};var s="vertical"===t?0:1,l=n.map((function(n,i){var a=o[i]||"",l=e.map((function(e){var t=e.pos,r=n-t[s];return{offset:r,dist:Xi(r),guideline:e,direction:a}})).filter((function(e){var n=e.guideline,o=e.dist;return!(n.type!==t||o>r)})).sort((function(e,t){return e.dist-t.dist}));return{pos:n,index:i,guidelineInfos:l,direction:a}})).filter((function(e){return e.guidelineInfos.length>0})).sort((function(e,t){return e.guidelineInfos[0].dist-t.guidelineInfos[0].dist})),u=l.length>0;return{isSnap:u,index:u?l[0].index:-1,direction:null!==(a=null===(i=l[0])||void 0===i?void 0:i.direction)&&void 0!==a?a:"",posInfos:l}}function Nr(e,t,n,r){void 0===r&&(r=1);var o=[];n[0]&&n[1]?o=[n,[-n[0],n[1]],[n[0],-n[1]]]:n[0]||n[1]?e.props.keepRatio?o.push([-1,-1],[-1,1],[1,-1],[1,1],n):(o.push.apply(o,Kt([],Yt(function(e,t){return Nn(t).map((function(t){return e[t]}))}([[-1,-1],[1,-1],[-1,-1],[1,1]],n)),!1)),o.length>1&&o.push([(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2])):[[-1,-1],[1,-1],[1,1],[-1,1]].forEach((function(e,t,n){var r=n[t+1]||n[0];o.push(e),o.push([(e[0]+r[0])/2,(e[1]+r[1])/2])}));var i=o.map((function(e){return zn(t,e)})),a=Lr(e,i.map((function(e){return e[0]})),i.map((function(e){return e[1]})),o.map((function(e){return Pr(e[0])})),o.map((function(e){return Pr(e[1])})),r),s=Pr(o.map((function(e){return e[0]}))[a.vertical.index]),l=Pr(o.map((function(e){return e[1]}))[a.horizontal.index]);return{vertical:qt(qt({},a.vertical),{direction:s}),horizontal:qt(qt({},a.horizontal),{direction:l})}}function Fr(e,t){var n=Xi(e.offset),r=Xi(t.offset);return e.isBound&&t.isBound?r-n:e.isBound?-1:t.isBound?1:e.isSnap&&t.isSnap?r-n:e.isSnap?-1:t.isSnap||n<bn?1:r<bn?-1:n-r}function zr(e,t){return e.slice().sort((function(e,n){var r=e.sign[t],o=n.sign[t],i=e.offset[t],a=n.offset[t];return r?o?Fr({isBound:e.isBound,isSnap:e.isSnap,offset:i},{isBound:n.isBound,isSnap:n.isSnap,offset:a}):-1:1}))[0]}function Br(e,t){var n=oe([t[0][0],t[1][0]]),r=oe([t[0][1],t[1][1]]);return{vertical:n<=e[0],horizontal:r<=e[1]}}function Hr(e,t){var n,r,o=Yt(t,2),i=o[0],a=o[1],s=a[0]-i[0],l=a[1]-i[1];if(Xi(s)<bn&&(s=0),Xi(l)<bn&&(l=0),s)if(l){n=l/s*(e[0]-i[0])+i[1],r=e[1]}else n=i[1],r=e[1];else n=i[0],r=e[0];return n-r}function Wr(e,t,n,r){return void 0===r&&(r=bn),e.every((function(e){var o=Hr(e,t);return o<=0===n||Xi(o)<=r}))}function Ur(e,t,n,r,o){return void 0===o&&(o=0),r&&t-o<=e||!r&&e<=n+o?{isBound:!0,offset:r?t-e:n-e}:{isBound:!1,offset:0}}function Zr(e,t,n,r,o,i){var a,s,l=Yt(t,2),u=l[0],c=l[1],d=e[0],f=n[0],h=n[1],p=Ni(h[1]-f[1]),g=c,m=u,v=-u/c;return Ni(h[0]-f[0])?p||i&&!g?{isBound:!1,offset:0}:m?Ur((f[1]-d[1])/v+d[0],f[0],h[0],r,o):{isBound:s=Xi(a=f[1]-d[1])<=(o||0),offset:s?a:0}:i&&!m?{isBound:!1,offset:0}:g?Ur(v*(f[0]-d[0])+d[1],f[1],h[1],r,o):{isBound:s=Xi(a=f[0]-d[0])<=(o||0),offset:s?a:0}}function Vr(e,t,n){return t.map((function(t){var r=function(e,t){var n=t.line,r=t.centerSign,o=t.verticalSign,i=t.horizontalSign,a=t.lineConstants,s=e.props.innerBounds;if(!s)return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var l=s.left,u=s.top,c=s.width,d=s.height,f=[[l,u],[l,u+d]],h=[[l,u],[l+c,u]],p=[[l+c,u],[l+c,u+d]],g=[[l,u+d],[l+c,u+d]];if(Wr([[l,u],[l+c,u],[l,u+d],[l+c,u+d]],n,r))return{isAllBound:!1,isBound:!1,isVerticalBound:!1,isHorizontalBound:!1,offset:[0,0]};var m=Zr(n,a,h,o),v=Zr(n,a,g,o),y=Zr(n,a,f,i),b=Zr(n,a,p,i),w=m.isBound&&v.isBound,x=m.isBound||v.isBound,S=y.isBound&&b.isBound,_=y.isBound||b.isBound,E=Di(m.offset,v.offset),k=Di(y.offset,b.offset),C=[0,0],A=!1,T=!1;return Xi(k)<Xi(E)?(C=[E,0],A=x,T=w):(C=[0,k],A=_,T=S),{isAllBound:T,isVerticalBound:x,isHorizontalBound:_,isBound:A,offset:C}}(e,t),o=r.isBound,i=r.offset,a=r.isVerticalBound,s=r.isHorizontalBound,l=t.multiple,u=$n({datas:n,distX:i[0],distY:i[1]}).map((function(e,t){return e*(l[t]?2/l[t]:0)}));return{sign:l,isBound:o,isVerticalBound:a,isHorizontalBound:s,isSnap:!1,offset:u}}))}function Gr(e,t,n){var r,o=Vr(e,qr(e,t,[0,0],!1).map((function(e){return qt(qt({},e),{multiple:e.multiple.map((function(e){return 2*Xi(e)}))})})),n),i=zr(o,0),a=zr(o,1),s=0,l=0,u=i.isVerticalBound||a.isVerticalBound,c=i.isHorizontalBound||a.isHorizontalBound;return(u||c)&&(r=Yt(function(e,t){var n=e.datas,r=e.distX,o=e.distY,i=n.beforeMatrix,a=n.matrix,s=n.is3d,l=n.startDragBeforeDist,u=n.startDragDist,c=n.absoluteOrigin,d=s?4:3;return Le(Pe(t?i:a,Re(t?l:u,[r,o]),d),c)}({datas:n,distX:-i.offset[0],distY:-a.offset[1]}),2),s=r[0],l=r[1]),{vertical:{isBound:u,offset:s},horizontal:{isBound:c,offset:l}}}function qr(e,t,n,r){var o=e.state,i=ri(o.allMatrix,100,100,o.is3d?4:3),a=zn(i,[0,0]);return function(e,t){var n=[],r=e[0],o=e[1];return r&&o?n.push([[0,2*o],e,[-r,o]],[[2*r,0],e,[r,-o]]):r?(n.push([[2*r,0],[r,1],[r,-1]]),t&&n.push([[0,-1],[r,-1],[-r,-1]],[[0,1],[r,1],[-r,1]])):o?(n.push([[0,2*o],[1,o],[-1,o]]),t&&n.push([[-1,0],[-1,o],[-1,-o]],[[1,0],[1,o],[1,-o]])):n.push([[-1,0],[-1,-1],[-1,1]],[[1,0],[1,-1],[1,1]],[[0,-1],[-1,-1],[1,-1]],[[0,1],[-1,1],[1,1]]),n}(n,r).map((function(e){var n=Yt(e,3),r=n[0],o=n[1],s=n[2],l=[zn(i,o),zn(i,s)],u=function(e){var t=Yt(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];Math.abs(o)<L&&(o=0),Math.abs(i)<L&&(i=0);var a=0,s=0,l=0;return o?i?(s=1,l=(a=-i/o)*n[0]-n[1]):(s=1,l=-n[1]):(a=-1,l=n[0]),[a,s,l].map((function(e){return le(e,L)}))}(l),c=Br(a,l),d=c.vertical,f=c.horizontal;return{multiple:r,centerSign:Hr(a,l)<=0,verticalSign:d,horizontalSign:f,lineConstants:u,line:[zn(t,o),zn(t,s)]}}))}function Yr(e,t,n,r){var o=r?e.map((function(e){return Fe(e,r)})):e;return[[o[0],o[1]],[o[1],o[3]],[o[3],o[2]],[o[2],o[0]]].some((function(e){var r=Hr(n,e)<=0;return!Wr(t,e,r)}))}function Kr(e,t,n,r,o){var i=e.props.innerBounds,a=o*Math.PI/180;if(!i)return[];var s=i.left,l=i.top,u=i.width,c=i.height,d=s-r[0],f=s+u-r[0],h=l-r[1],p=l+c-r[1],g=[[d,h],[f,h],[d,p],[f,p]],m=zn(n,[0,0]);if(!Yr(n,g,m,0))return[];var v=[],y=g.map((function(e){return[ai(e),ie([0,0],e)]}));return[[n[0],n[1]],[n[1],n[3]],[n[3],n[2]],[n[2],n[0]]].forEach((function(e){var n=ie([0,0],function(e){var t=Yt(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];if(!o)return[n[0],0];if(!i)return[0,n[1]];var a=i/o,s=-a*n[0]+n[1];return[-s/(a+1/a),s/(a*a+1)]}(e)),r=function(e){var t=Yt(e,2),n=t[0],r=t[1],o=r[0]-n[0],i=r[1]-n[1];if(!o)return Xi(n[0]);if(!i)return Xi(n[1]);var a=i/o;return Xi((-a*n[0]+n[1])/Math.sqrt(Math.pow(a,2)+1))}(e);v.push.apply(v,Kt([],Yt(y.filter((function(e){var t=Yt(e,1)[0];return t&&r<=t})).map((function(e){var t=Yt(e,2),o=t[0],i=t[1],s=Math.acos(o?r/o:0);return[a+(i+s)-n,a+(i-s)-n]})).reduce((function(e,t){return e.push.apply(e,Kt([],Yt(t),!1)),e}),[]).filter((function(e){return!Yr(t,g,m,e)})).map((function(e){return le(180*e/Math.PI,bn)}))),!1))})),v}function Xr(e,t,n,r,o){var i=function(e,t,n,r){var o=t[0]-e[0],i=t[1]-e[1];if(Xi(o)<L&&(o=0),Xi(i)<L&&(i=0),!o)return r?[0,0]:[0,n];if(!i)return r?[n,0]:[0,0];var a=i/o,s=e[1]-a*e[0];return r?[n,a*(t[0]+n)+s-t[1]]:[(t[1]+n-s)/a-t[0],n]}(e,t,n,r);if(!i)return{isOutside:!1,offset:[0,0]};var a=se(e,t),s=se(i,e),l=se(i,t),u=s>a||l>a,c=Yt($n({datas:o,distX:i[0],distY:i[1]}),2);return{offset:[c[0],c[1]],isOutside:u}}function Qr(e,t){return e.isBound?e.offset:t.isSnap?Ir(t).offset:0}function Jr(e,t,n,r,o,i){if(!Or(e,"draggable"))return[{isSnap:!1,isBound:!1,offset:0},{isSnap:!1,isBound:!1,offset:0}];var a=yi(i.absolutePoses,[t,n]),s=oi(a),l=s.left,u=s.right,c=s.top,d=s.bottom,f={horizontal:a.map((function(e){return e[1]})),vertical:a.map((function(e){return e[0]}))},h=eo(e,o,Rr(Mr(e.props.snapDirections),{left:l,right:u,top:c,bottom:d,center:(l+u)/2,middle:(c+d)/2}),f),p=h.vertical,g=h.horizontal,m=Gr(e,a,i),v=m.vertical,y=m.horizontal,b=p.isSnap,w=g.isSnap,x=p.isBound||v.isBound,S=g.isBound||y.isBound,_=Yt(function(e,t,n,r,o){var i=Yt(t,2),a=i[0],s=i[1],l=Yt(n,2),u=l[0],c=l[1],d=Yt(r,2),f=d[0],h=d[1],p=Yt(o,2),g=p[0],m=p[1],v=-g,y=-m;if(e&&a&&s){v=0,y=0;var b=[];if(u&&c?b.push([0,m],[g,0]):u?b.push([g,0]):c?b.push([0,m]):f&&h?b.push([0,m],[g,0]):f?b.push([g,0]):h&&b.push([0,m]),b.length){b.sort((function(e,t){return ai(Le([a,s],e))-ai(Le([a,s],t))}));var w=b[0];if(w[0]&&Xi(a)>L)v=-w[0],y=s*Xi(a+v)/Xi(a)-s;else if(w[1]&&Xi(s)>L){var x=s;y=-w[1],v=a*Xi(s+y)/Xi(x)-a}if(e&&c&&u)if(Xi(v)>L&&Xi(v)<Xi(g))v*=S=Xi(g)/Xi(v),y*=S;else if(Xi(y)>L&&Xi(y)<Xi(m)){var S;v*=S=Xi(m)/Xi(y),y*=S}else v=Di(-g,v),y=Di(-m,y)}}else v=a||u?-g:0,y=s||c?-m:0;return[v,y]}(r,[t,n],[x,S],[b,w],[Di(p.offset,v.offset),Di(g.offset,y.offset)]),2);return[{isBound:x,isSnap:b,offset:_[0]},{isBound:S,isSnap:w,offset:_[1]}]}function eo(e,t,n,r){void 0===r&&(r=n);var o=br(wr(e),r.vertical,r.horizontal),i=o.horizontal,a=o.vertical,s=t?{horizontal:{isSnap:!1,index:-1},vertical:{isSnap:!1,index:-1}}:Lr(e,n.vertical,n.horizontal),l=s.horizontal,u=s.vertical,c=Qr(i[0],l),d=Qr(a[0],u),f=Xi(c),h=Xi(d);return{horizontal:{isBound:i[0].isBound,isSnap:l.isSnap,snapIndex:l.index,offset:c,dist:f,bounds:i,snap:l},vertical:{isBound:a[0].isBound,isSnap:u.isSnap,snapIndex:u.index,offset:d,dist:h,bounds:a,snap:u}}}function to(e,t,n,r,o,i){void 0===i&&(i=[1,1]);var a=br(t,n,r),s=a.horizontal,l=a.vertical,u=Dr(e,n,r,[],[],o,i),c=u.horizontal,d=u.vertical,f=Qr(s[0],c),h=Qr(l[0],d),p=Xi(f),g=Xi(h);return{horizontal:{isBound:s[0].isBound,isSnap:c.isSnap,snapIndex:c.index,offset:f,dist:p,bounds:s,snap:c},vertical:{isBound:l[0].isBound,isSnap:d.isSnap,snapIndex:d.index,offset:h,dist:g,bounds:l,snap:d}}}function no(e,t,n,r,o,i){return n.map((function(n){var a=Yt(n,2),s=a[0],l=a[1],u=zn(t,s),c=zn(t,l),d=r?function(e,t,n,r){var o=function(e,t,n){var r=wr(e),o=r.left,i=r.top,a=r.right,s=r.bottom,l=Yt(n,2),u=l[0],c=l[1],d=Yt(Le(n,t),2),f=d[0],h=d[1];Xi(f)<bn&&(f=0),Xi(h)<bn&&(h=0);var p=h>0,g=f>0,m={isBound:!1,offset:0,pos:0},v={isBound:!1,offset:0,pos:0};if(0===f&&0===h)return{vertical:m,horizontal:v};if(0===f)p?s<c&&(v.pos=s,v.offset=c-s):i>c&&(v.pos=i,v.offset=c-i);else if(0===h)g?a<u&&(m.pos=a,m.offset=u-a):o>u&&(m.pos=o,m.offset=u-o);else{var y=h/f,b=n[1]-y*u,w=0,x=0,S=!1;g&&a<=u?(w=y*a+b,x=a,S=!0):!g&&u<=o&&(w=y*o+b,x=o,S=!0),S&&(w<i||w>s)&&(S=!1),S||(p&&s<=c?(x=((w=s)-b)/y,S=!0):!p&&c<=i&&(x=((w=i)-b)/y,S=!0)),S&&(m.isBound=!0,m.pos=x,m.offset=u-x,v.isBound=!0,v.pos=w,v.offset=c-w)}return{vertical:m,horizontal:v}}(e,t,n),i=o.horizontal,a=o.vertical,s=r?{horizontal:{isSnap:!1},vertical:{isSnap:!1}}:function(e,t,n){var r=Yt(n,2),o=r[0],i=r[1],a=Yt(t,2),s=a[0],l=a[1],u=Yt(Le(n,t),2),c=u[0],d=u[1],f=d>0,h=c>0;c=Ni(c),d=Ni(d);var p={isSnap:!1,offset:0,pos:0},g={isSnap:!1,offset:0,pos:0};if(0===c&&0===d)return{vertical:p,horizontal:g};var m=Lr(e,c?[o]:[],d?[i]:[]),v=m.vertical,y=m.horizontal;v.posInfos.filter((function(e){var t=e.pos;return h?t>=s:t<=s})),y.posInfos.filter((function(e){var t=e.pos;return f?t>=l:t<=l})),v.isSnap=v.posInfos.length>0,y.isSnap=y.posInfos.length>0;var b=Ir(v),w=b.isSnap,x=b.guideline,S=Ir(y),_=S.isSnap,E=S.guideline,k=_?E.pos[1]:0,C=w?x.pos[0]:0;if(0===c)_&&(g.isSnap=!0,g.pos=E.pos[1],g.offset=i-g.pos);else if(0===d)w&&(p.isSnap=!0,p.pos=C,p.offset=o-C);else{var A=d/c,T=n[1]-A*o,O=0,M=0,R=!1;w?(O=A*(M=C)+T,R=!0):_&&(M=((O=k)-T)/A,R=!0),R&&(p.isSnap=!0,p.pos=M,p.offset=o-M,g.isSnap=!0,g.pos=O,g.offset=i-O)}return{vertical:p,horizontal:g}}(e,t,n),l=s.horizontal,u=s.vertical,c=ro(i,l),d=ro(a,u),f=Xi(c),h=Xi(d);return{horizontal:{isBound:i.isBound,isSnap:l.isSnap,offset:c,dist:f},vertical:{isBound:a.isBound,isSnap:u.isSnap,offset:d,dist:h}}}(e,u,c,o):eo(e,o,{vertical:[c[0]],horizontal:[c[1]]}),f=d.horizontal,h=f.offset,p=f.isBound,g=f.isSnap,m=d.vertical,v=m.offset,y=m.isBound,b=m.isSnap,w=Le(l,s);if(!v&&!h)return{isBound:y||p,isSnap:b||g,sign:w,offset:[0,0]};var x=function(e,t,n,r){var o=ie(e,t)/Math.PI*180,i=n.vertical,a=i.isBound,s=i.isSnap,l=i.dist,u=n.horizontal,c=u.isBound,d=u.isSnap,f=o%180,h=f<3||f>177,p=f>87&&f<93;return u.dist<l&&(a||s&&!p&&(!r||!h))?"vertical":!c&&(!d||h||r&&p)?"":"horizontal"}(u,c,d,r);if(!x)return{sign:w,isBound:!1,isSnap:!1,offset:[0,0]};var S="vertical"===x,_=[0,0];return _=(_=r||1!==Xi(l[0])||1!==Xi(l[1])||s[0]===l[0]||s[1]===l[1]?Xr(u,c,-(S?v:h),S,i).offset:$n({datas:i,distX:-v,distY:-h})).map((function(e,t){return e*(w[t]?2/w[t]:0)})),{sign:w,isBound:S?y:p,isSnap:S?b:g,offset:_}}))}function ro(e,t){return e.isBound?e.offset:t.isSnap?t.offset:0}var oo={name:"draggable",props:["draggable","throttleDrag","throttleDragRotate","hideThrottleDragRotateLine","startDragRotate","edgeDraggable"],events:["dragStart","drag","dragEnd","dragGroupStart","dragGroup","dragGroupEnd"],requestStyle:function(){return["left","top","right","bottom"]},requestChildStyle:function(){return["left","top","right","bottom"]},render:function(e,t){var n=e.props,r=n.hideThrottleDragRotateLine,o=n.throttleDragRotate,i=n.zoom,a=e.getState(),s=a.dragInfo,l=a.beforeOrigin;if(r||!o||!s)return[];var u=s.dist;if(!u[0]&&!u[1])return[];var c=ai(u),d=ie(u,[0,0]);return[t.createElement("div",{className:Bo("line","horizontal","dragline","dashed"),key:"dragRotateGuideline",style:{width:"".concat(c,"px"),transform:"translate(".concat(l[0],"px, ").concat(l[1],"px) rotate(").concat(d,"rad) scaleY(").concat(i,")")}})]},dragStart:function(e,t){var n=t.datas,r=t.parentEvent,o=t.parentGesto,i=e.state,a=i.gestos,s=i.style;if(a.draggable)return!1;a.draggable=o||e.targetGesto,n.datas={},n.left=parseFloat(s.left||"")||0,n.top=parseFloat(s.top||"")||0,n.bottom=parseFloat(s.bottom||"")||0,n.right=parseFloat(s.right||"")||0,n.startValue=[0,0],Rn(e,t),Wn(e,t,"translate"),function(e,t){t.absolutePoses=bi(e.state)}(e,n),n.prevDist=[0,0],n.prevBeforeDist=[0,0],n.isDrag=!1,n.deltaOffset=[0,0];var l=Ei(e,t,qt({set:function(e){n.startValue=e}},Hn(e,t)));return!1!==(r||Ai(e,"onDragStart",l))?(n.isDrag=!0,e.state.dragInfo={startRect:e.getRect(),dist:[0,0]}):(a.draggable=null,n.isPinch=!1),!!n.isDrag&&l},drag:function(e,t){if(t){Ln(e,t,"translate");var n=t.datas,r=t.parentEvent,o=t.parentFlag,i=t.isPinch,a=t.deltaOffset,s=t.useSnap,l=t.isRequest,u=t.isGroup,c=t.parentThrottleDrag,d=t.distX,f=t.distY,h=n.isDrag,p=n.prevDist,g=n.prevBeforeDist,m=n.startValue;if(h){a&&(d+=a[0],f+=a[1]);var v=e.props,y=v.parentMoveable,b=u?0:v.throttleDrag||c||0,w=r?0:v.throttleDragRotate||0,x=0,S=!1,_=!1,E=!1,k=!1;if(!r&&w>0&&(d||f)){var C=v.startDragRotate||0,A=le(C+180*ie([0,0],[d,f])/Math.PI,w)-C,T=f*Math.abs(Math.cos((A-90)/180*Math.PI)),O=ai([d*Math.abs(Math.cos(A/180*Math.PI)),T]);x=A*Math.PI/180,d=O*Math.cos(x),f=O*Math.sin(x)}if(!i&&!r&&!o){var M=Yt(Jr(e,d,f,w,!s&&l||a,n),2),R=M[0],L=M[1];S=R.isSnap,_=R.isBound,E=L.isSnap,k=L.isBound,d+=R.offset,f+=L.offset}var D=Re(In({datas:n,distX:d,distY:f}),m),P=Re(Pn({datas:n,distX:d,distY:f}),m);ue(P,bn),ue(D,bn),w||(S||_||(P[0]=le(P[0],b),D[0]=le(D[0],b)),E||k||(P[1]=le(P[1],b),D[1]=le(D[1],b)));var j=Le(D,m),I=Le(P,m),$=Le(I,p),N=Le(j,g);n.prevDist=I,n.prevBeforeDist=j,n.passDelta=$,n.passDist=I;var F=n.left+j[0],z=n.top+j[1],B=n.right-j[0],H=n.bottom-j[1],W=Dn(n,"translate(".concat(P[0],"px, ").concat(P[1],"px)"),"translate(".concat(I[0],"px, ").concat(I[1],"px)"));if(Zn(t,W),e.state.dragInfo.dist=r?[0,0]:I,r||y||!$.every((function(e){return!e}))||!N.some((function(e){return!e}))){var U=e.state,Z=U.width,V=U.height,G=Ei(e,t,qt({transform:W,dist:I,delta:$,translate:P,beforeDist:j,beforeDelta:N,beforeTranslate:D,left:F,top:z,right:B,bottom:H,width:Z,height:V,isPinch:i},Si({transform:W},t)));return!r&&Ai(e,"onDrag",G),G}}}},dragAfter:function(e,t){var n=t.datas,r=n.deltaOffset;return!(!r[0]&&!r[1])&&(n.deltaOffset=[0,0],this.drag(e,qt(qt({},t),{deltaOffset:r})))},dragEnd:function(e,t){var n=t.parentEvent,r=t.datas;if(e.state.dragInfo=null,r.isDrag){r.isDrag=!1;var o=ki(e,t,{});return!n&&Ai(e,"onDragEnd",o),o}},dragGroupStart:function(e,t){var n,r,o=t.datas,i=t.clientX,a=t.clientY,s=this.dragStart(e,t);if(!s)return!1;var l=ur(e,this,"dragStart",[i||0,a||0],t,!1,"draggable"),u=l.childEvents,c=l.eventParams,d=Ai(e,"onDragGroupStart",qt(qt({},s),{targets:e.props.targets,events:c}));o.isDrag=!1!==d;var f=null!==(r=null===(n=u[0])||void 0===n?void 0:n.datas.startValue)&&void 0!==r?r:[0,0];return o.throttleOffset=[f[0]%1,f[1]%1],!!o.isDrag&&s},dragGroup:function(e,t){if(t.datas.isDrag){var n=this.drag(e,qt(qt({},t),{parentThrottleDrag:e.props.throttleDrag})),r=ur(e,this,"drag",t.datas.passDelta,t,!1,"draggable").eventParams;if(n){var o=qt({targets:e.props.targets,events:r},n);return Ai(e,"onDragGroup",o),o}}},dragGroupEnd:function(e,t){var n=t.isDrag;if(t.datas.isDrag){this.dragEnd(e,t);var r=ur(e,this,"dragEnd",[0,0],t,!1,"draggable").eventParams;return Ai(e,"onDragGroupEnd",ki(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=e.getRect(),r=0,o=0,i=!1;return{isControl:!1,requestStart:function(e){return i=e.useSnap,{datas:t,useSnap:i}},request:function(e){return"x"in e?r=e.x-n.left:"deltaX"in e&&(r+=e.deltaX),"y"in e?o=e.y-n.top:"deltaY"in e&&(o+=e.deltaY),{datas:t,distX:r,distY:o,useSnap:i}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:i}}}},unset:function(e){e.state.gestos.draggable=null,e.state.dragInfo=null}};function io(e,t){return{fixedPosition:zn(e,t),fixedDirection:t,fixedOffset:[0,0]}}function ao(e,t){var n=e.allMatrix,r=e.is3d,o=e.width,i=e.height,a=r?4:3,s=function(e,t,n){return[t?e[0]/(t/2)-1:0,n?e[1]/(n/2)-1:0]}(t,o,i);return{fixedPosition:ni(n,t,a),fixedDirection:s,fixedOffset:[o?0:t[0],i?0:t[1]]}}var so=zi("resizable"),lo={name:"resizable",ableGroup:"size",canPinch:!0,props:["resizable","throttleResize","renderDirections","displayAroundControls","keepRatio","resizeFormat","keepRatioFinally","edge","checkResizableError"],events:["resizeStart","beforeResize","resize","resizeEnd","resizeGroupStart","beforeResizeGroup","resizeGroup","resizeGroupEnd"],render:mr("resizable"),dragControlCondition:so,viewClassName:Fi("resizable"),dragControlStart:function(e,t){var n,r=t.inputEvent,o=t.isPinch,i=t.isGroup,a=t.parentDirection,s=t.parentGesto,l=t.datas,u=t.parentFixedDirection,c=t.parentEvent,d=mi(a,o,r,l),f=e.state,h=f.target,p=f.width,g=f.height,m=f.gestos;if(!d||!h)return!1;if(m.resizable)return!1;m.resizable=s||e.controlGesto,!o&&Rn(e,t),l.datas={},l.direction=d,l.startOffsetWidth=p,l.startOffsetHeight=g,l.prevWidth=0,l.prevHeight=0,l.minSize=[0,0],l.startWidth=f.inlineCSSWidth||f.cssWidth,l.startHeight=f.inlineCSSHeight||f.cssHeight,l.maxSize=[1/0,1/0],i||(l.minSize=[f.minOffsetWidth,f.minOffsetHeight],l.maxSize=[f.maxOffsetWidth,f.maxOffsetHeight]);var v=e.props.transformOrigin||"% %";function y(e){l.ratio=e&&isFinite(e)?e:0}function b(e){var t=io(l.startPositions,e);l.fixedDirection=t.fixedDirection,l.fixedPosition=t.fixedPosition,l.fixedOffset=t.fixedOffset}function w(t){var n=ao(e.state,t);l.fixedDirection=n.fixedDirection,l.fixedPosition=n.fixedPosition,l.fixedOffset=n.fixedOffset}function x(e){l.minSize=[ee("".concat(e[0]),0)||0,ee("".concat(e[1]),0)||0]}function S(e){var t=[e[0]||1/0,e[1]||1/0];F(t[0])&&!isFinite(t[0])||(t[0]=ee("".concat(t[0]),0)||1/0),F(t[1])&&!isFinite(t[1])||(t[1]=ee("".concat(t[1]),0)||1/0),l.maxSize=t}l.transformOrigin=v&&N(v)?v.split(" "):v,l.startOffsetMatrix=f.offsetMatrix,l.startTransformOrigin=f.transformOrigin,l.isWidth=null!==(n=null==t?void 0:t.parentIsWidth)&&void 0!==n?n:!d[0]&&!d[1]||d[0]||!d[1],l.startPositions=bi(e.state),y(p/g),b(u||[-d[0],-d[1]]),l.setFixedDirection=b,l.setFixedPosition=w,l.setMin=x,l.setMax=S;var _=Ei(e,t,{direction:d,startRatio:l.ratio,set:function(e){var t=Yt(e,2),n=t[0],r=t[1];l.startWidth=n,l.startHeight=r},setMin:x,setMax:S,setRatio:y,setFixedDirection:b,setFixedPosition:w,setOrigin:function(e){l.transformOrigin=e},dragStart:oo.dragStart(e,(new Tn).dragStart([0,0],t))}),E=c||Ai(e,"onResizeStart",_);return l.startFixedDirection=l.fixedDirection,l.startFixedPosition=l.fixedPosition,!1!==E&&(l.isResize=!0,e.state.snapRenderInfo={request:t.isRequest,direction:d}),!!l.isResize&&_},dragControl:function(e,t){var n,r=t.datas,o=t.parentFlag,i=t.isPinch,a=t.parentKeepRatio,s=t.dragClient,l=t.parentDist,u=t.useSnap,c=t.isRequest,d=t.isGroup,f=t.parentEvent,h=t.resolveMatrix,p=r.isResize,g=r.transformOrigin,m=r.startWidth,v=r.startHeight,y=r.prevWidth,b=r.prevHeight,w=r.minSize,x=r.maxSize,S=r.ratio,_=r.startOffsetWidth,E=r.startOffsetHeight,k=r.isWidth;if(p){if(h){var C=e.state.is3d,A=r.startOffsetMatrix,T=r.startTransformOrigin,O=C?4:3,M=qe(Gn(t)),R=Math.sqrt(M.length);O!==R&&(M=Te(M,R,O));var L=Bn(A,M,T,O),D=ri(L,_,E,O);r.startPositions=D,r.nextTargetMatrix=M,r.nextAllMatrix=L}var P=ci(e.props,"resizable"),j=P.resizeFormat,I=P.throttleResize,$=void 0===I?o?0:1:I,N=P.parentMoveable,F=P.keepRatioFinally,z=r.direction,B=z,H=0,W=0;z[0]||z[1]||(B=[1,1]);var U=S&&(null!=a?a:P.keepRatio)||!1,Z=Yt(ie(),2),V=Z[0],G=Z[1];f||(r.setFixedDirection(r.fixedDirection),Ai(e,"onBeforeResize",Ei(e,t,{startFixedDirection:r.startFixedDirection,startFixedPosition:r.startFixedPosition,setFixedDirection:function(e){var t;return r.setFixedDirection(e),t=Yt(ie(),2),V=t[0],G=t[1],[V,G]},setFixedPosition:function(e){var t;return r.setFixedPosition(e),t=Yt(ie(),2),V=t[0],G=t[1],[V,G]},boundingWidth:V,boundingHeight:G,setSize:function(e){var t;t=Yt(e,2),V=t[0],G=t[1]}},!0)));var q=s;s||(q=!o&&i?function(e,t){return zn(bi(e.state),t)}(e,[0,0]):r.fixedPosition);var Y=[0,0];if(i||(Y=function(e,t,n,r,o,i,a){if(!Or(e,"resizable"))return[0,0];var s=a.fixedDirection,l=a.nextAllMatrix,u=e.state,c=u.allMatrix,d=u.is3d;return Mo(e,(function(e,r){return Ao(l||c,t+e,n+r,s,o,d)}),t,n,r,o,i,a)}(e,V,G,z,q,!u&&c,r)),l&&(!l[0]&&(Y[0]=0),!l[1]&&(Y[1]=0)),U){B[0]&&B[1]&&Y[0]&&Y[1]&&(Xi(Y[0])>Xi(Y[1])?Y[1]=0:Y[0]=0);var K=!Y[0]&&!Y[1];K&&ae(),B[0]&&!B[1]||Y[0]&&!Y[1]||K&&k?(V+=Y[0],G=V/S):(!B[0]&&B[1]||!Y[0]&&Y[1]||K&&!k)&&(G+=Y[1],V=G*S)}else V+=Y[0],G+=Y[1],V=Math.max(0,V),G=Math.max(0,G);n=Yt(re([V,G],w,x,!!U&&S),2),V=n[0],G=n[1],ae(),U&&(d||F)&&(k?G=V/S:V=G*S);var X=[(H=V-_)-y,(W=G-E)-b];r.prevWidth=H,r.prevHeight=W;var Q=Jn(e,V,G,q,g,r);if(N||!X.every((function(e){return!e}))||!Q.every((function(e){return!e}))){var J=oo.drag(e,An(t,e.state,Q,!!i,!1,"draggable")),ee=J.transform,te=m+H,ne=v+W,oe=Ei(e,t,qt({width:te,height:ne,offsetWidth:Math.round(V),offsetHeight:Math.round(G),startRatio:S,boundingWidth:V,boundingHeight:G,direction:z,dist:[H,W],delta:X,isPinch:!!i,drag:J},_i({style:{width:"".concat(te,"px"),height:"".concat(ne,"px")},transform:ee},J,t)));return!f&&Ai(e,"onResize",oe),oe}}function ie(){var e=r.fixedDirection,n=Zi(B,U,r,t);H=n.distWidth,W=n.distHeight;var o=B[0]-e[0]||U?Math.max(_+H,bn):_,i=B[1]-e[1]||U?Math.max(E+W,bn):E;return U&&_&&E&&(k?i=o/S:o=i*S),[o,i]}function ae(){var e;j&&(e=Yt(j([V,G]),2),V=e[0],G=e[1]),V=le(V,$),G=le(G,$)}},dragControlAfter:function(e,t){var n=t.datas,r=n.isResize,o=n.startOffsetWidth,i=n.startOffsetHeight,a=n.prevWidth,s=n.prevHeight;if(r&&!1!==e.props.checkResizableError){var l=e.state,u=l.width-(o+a),c=l.height-(i+s),d=Xi(u)>3,f=Xi(c)>3;return d&&(n.startWidth+=u,n.startOffsetWidth+=u,n.prevWidth+=u),f&&(n.startHeight+=c,n.startOffsetHeight+=c,n.prevHeight+=c),d||f?this.dragControl(e,t):void 0}},dragControlEnd:function(e,t){var n=t.datas,r=t.parentEvent;if(n.isResize){n.isResize=!1;var o=ki(e,t,{});return!r&&Ai(e,"onResizeEnd",o),o}},dragGroupControlCondition:so,dragGroupControlStart:function(e,t){var n=t.datas,r=this.dragControlStart(e,qt(qt({},t),{isGroup:!0}));if(!r)return!1;var o=lr(e,"resizable",t),i=n.startOffsetWidth,a=n.startOffsetHeight;function s(){var e=n.minSize;o.forEach((function(t){var n=t.datas,r=n.minSize,o=n.startOffsetWidth,s=n.startOffsetHeight,l=i*(o?r[0]/o:0),u=a*(s?r[1]/s:0);e[0]=Math.max(e[0],l),e[1]=Math.max(e[1],u)}))}function l(){var e=n.maxSize;o.forEach((function(t){var n=t.datas,r=n.maxSize,o=n.startOffsetWidth,s=n.startOffsetHeight,l=i*(o?r[0]/o:0),u=a*(s?r[1]/s:0);e[0]=Math.min(e[0],l),e[1]=Math.min(e[1],u)}))}var u=cr(e,this,"dragControlStart",t,(function(t,r){return dr(e,t,n,r)}));s(),l();var c=function(t){r.setFixedDirection(t),u.forEach((function(r,i){r.setFixedDirection(t),dr(e,r.moveable,n,o[i])}))};n.setFixedDirection=c;var d=qt(qt({},r),{targets:e.props.targets,events:u.map((function(e){return qt(qt({},e),{setMin:function(t){e.setMin(t),s()},setMax:function(t){e.setMax(t),l()}})})),setFixedDirection:c,setMin:function(e){r.setMin(e),s()},setMax:function(e){r.setMax(e),l()}}),f=Ai(e,"onResizeGroupStart",d);return n.isResize=!1!==f,!!n.isResize&&r},dragGroupControl:function(e,t){var n=t.datas;if(n.isResize){var r=ci(e.props,"resizable");Ci(e,"onBeforeResize",(function(n){Ai(e,"onBeforeResizeGroup",Ei(e,t,qt(qt({},n),{targets:r.targets}),!0))}));var o=this.dragControl(e,qt(qt({},t),{isGroup:!0}));if(o){var i=o.boundingWidth,a=o.boundingHeight,s=o.dist,l=r.keepRatio,u=[i/(i-s[0]),a/(a-s[1])],c=n.fixedPosition,d=cr(e,this,"dragControl",t,(function(t,n){var r=Yt(Pe(He(e.rotation/180*Math.PI,3),[n.datas.originalX*u[0],n.datas.originalY*u[1],1],3),2),o=r[0],i=r[1];return qt(qt({},n),{parentDist:null,parentScale:u,dragClient:Re(c,[o,i]),parentKeepRatio:l})})),f=qt({targets:r.targets,events:d},o);return Ai(e,"onResizeGroup",f),f}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isResize){this.dragControlEnd(e,t);var r=cr(e,this,"dragControlEnd",t);return Ai(e,"onResizeGroupEnd",ki(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=0,o=!1,i=e.getRect();return{isControl:!0,requestStart:function(e){var n;return o=e.useSnap,{datas:t,parentDirection:e.direction||[1,1],parentIsWidth:null===(n=null==e?void 0:e.horizontal)||void 0===n||n,useSnap:o}},request:function(e){return"offsetWidth"in e?n=e.offsetWidth-i.offsetWidth:"deltaWidth"in e&&(n+=e.deltaWidth),"offsetHeight"in e?r=e.offsetHeight-i.offsetHeight:"deltaHeight"in e&&(r+=e.deltaHeight),{datas:t,parentDist:[n,r],parentKeepRatio:e.keepRatio,useSnap:o}},requestEnd:function(){return{datas:t,isDrag:!0,useSnap:o}}}},unset:function(e){e.state.gestos.resizable=null}};function uo(e,t,n,r,o){var i=e.props.groupable,a=e.state,s=a.is3d?4:3,l=t.origin,u=ni(e.state.rootMatrix,Le([l[0],l[1]],i?[0,0]:[a.left,a.top]),s),c=Re([o.left,o.top],u);t.startAbsoluteOrigin=c,t.prevDeg=ie(c,[n,r])/Math.PI*180,t.defaultDeg=t.prevDeg,t.prevSnapDeg=0,t.loop=0,t.startDist=se(c,[n,r])}function co(e,t,n){var r=n.defaultDeg,o=n.prevDeg,i=o%360,a=Math.floor(o/360);i<0&&(i+=360),i>e&&i>270&&e<90?++a:i<e&&i<90&&e>270&&--a;var s=t*(360*a+e-r);return n.prevDeg=r+s,s}function fo(e,t,n,r){return co(ie(r.startAbsoluteOrigin,[e,t])/Math.PI*180,n,r)}function ho(e,t,n,r,o,i){var a=e.props.throttleRotate,s=void 0===a?0:a,l=n.prevSnapDeg,u=0,c=!1;if(i){var d=function(e,t,n,r){var o,i=e.props,a=null!==(o=i[No])&&void 0!==o?o:5,s=i[Fo];if(Or(e,"rotatable")){var l=t.pos1,u=t.pos2,c=t.pos3,d=t.pos4,f=t.origin,h=n*Math.PI/180,p=[l,u,c,d].map((function(e){return Le(e,f)})),g=p.map((function(e){return Fe(e,h)})),m=Kt(Kt([],Yt(_r(e,p,g,f,n)),!1),Yt(Kr(e,p,g,f,n)),!1);m.sort((function(e,t){return Xi(e-n)-Xi(t-n)}));var v=m.length>0;if(v)return{isSnap:v,dist:v?m[0]:n}}if((null==s?void 0:s.length)&&a){var y=s.slice().sort((function(e,t){return Do(e,r)-Do(t,r)}))[0];if(Do(y,r)<=a)return{isSnap:!0,dist:n+Lo(r,y)-r}}return{isSnap:!1,dist:n}}(e,t,r,o+r);c=d.isSnap,u=o+d.dist}c||(u=le(o+r,s));var f=u-o;return n.prevSnapDeg=f,[f-l,f,u]}function po(e,t,n){var r=Yt(t,4),o=r[0],i=r[1],a=r[2],s=r[3];if("none"===e)return[];if($(e))return e.map((function(e){return po(e,[o,i,a,s],n)[0]}));var l=Yt((e||"top").split("-"),2),u=l[0],c=l[1],d=[o,i];"left"===u?d=[a,o]:"right"===u?d=[i,s]:"bottom"===u&&(d=[s,a]);var f=[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2],h=fi(d,n);if(c){var p="top"===c||"left"===c,g="bottom"===u||"left"===u;f=d[p&&!g||!p&&g?0:1]}return[[f,h]]}function go(e,t){if(t.isRequest)return"rotatable"===t.requestAble;var n=t.inputEvent.target;if(ce(n,Bo("rotation-control"))||e.props.rotateAroundControls&&ce(n,Bo("around-control"))||ce(n,Bo("control"))&&ce(n,Bo("rotatable")))return!0;var r=e.props.rotationTarget;return!!r&&Hi(r,!0).some((function(e){return!!e&&(n===e||n.contains(e))}))}var mo={name:"rotatable",canPinch:!0,props:["rotatable","rotationPosition","throttleRotate","renderDirections","rotationTarget","rotateAroundControls","edge","resolveAblesWithRotatable","displayAroundControls"],events:["rotateStart","beforeRotate","rotate","rotateEnd","rotateGroupStart","beforeRotateGroup","rotateGroup","rotateGroupEnd"],css:[".rotation {\nposition: absolute;\nheight: 40px;\nwidth: 1px;\ntransform-origin: 50% 100%;\nheight: calc(40px * var(--zoom));\ntop: auto;\nleft: 0;\nbottom: 100%;\nwill-change: transform;\n}\n.rotation .rotation-line {\ndisplay: block;\nwidth: 100%;\nheight: 100%;\ntransform-origin: 50% 50%;\n}\n.rotation .rotation-control {\nborder-color: #4af;\nborder-color: var(--moveable-color);\nbackground:#fff;\ncursor: alias;\n}\n:global .view-rotation-dragging, .rotatable.direction.control {\ncursor: alias;\n}\n.rotatable.direction.control.move {\ncursor: move;\n}\n"],viewClassName:function(e){return e.isDragging("rotatable")?Bo("view-rotation-dragging"):""},render:function(e,t){var n=ci(e.props,"rotatable"),r=n.rotatable,o=n.rotationPosition,i=n.zoom,a=n.renderDirections,s=n.rotateAroundControls,l=n.resolveAblesWithRotatable,u=e.getState(),c=u.renderPoses,d=u.direction;if(!r)return null;var f=po(o,c,d),h=[];if(f.forEach((function(e,n){var r=Yt(e,2),o=r[0],a=r[1];h.push(t.createElement("div",{key:"rotation".concat(n),className:Bo("rotation"),style:{transform:"translate(-50%) translate(".concat(o[0],"px, ").concat(o[1],"px) rotate(").concat(a,"rad)")}},t.createElement("div",{className:Bo("line rotation-line"),style:{transform:"scaleX(".concat(i,")")}}),t.createElement("div",{className:Bo("control rotation-control"),style:{transform:"translate(0.5px) scale(".concat(i,")")}})))})),a){var p=J(l||{}),g={};p.forEach((function(e){l[e].forEach((function(t){g[t]=e}))}));var m=[];$(a)&&(m=a.map((function(e){var t=g[e];return{data:t?{resolve:t}:{},classNames:t?["move"]:[],dir:e}}))),h.push.apply(h,Kt([],Yt(fr(e,"rotatable",m,t)),!1))}return s&&h.push.apply(h,Kt([],Yt(yr(e,t)),!1)),h},dragControlCondition:go,dragControlStart:function(e,t){var n,r,o=t.datas,i=t.clientX,a=t.clientY,s=t.parentRotate,l=t.parentFlag,u=t.isPinch,c=t.isRequest,d=e.state,f=d.target,h=d.left,p=d.top,g=d.direction,m=d.beforeDirection,v=d.targetTransform,y=d.moveableClientRect,b=d.offsetMatrix,w=d.targetMatrix,x=d.allMatrix,S=d.width,_=d.height;if(!c&&!f)return!1;var E=e.getRect();o.rect=E,o.transform=v,o.left=h,o.top=p;var k=function(t){var n=ao(e.state,t);o.fixedDirection=n.fixedDirection,o.fixedOffset=n.fixedOffset,o.fixedPosition=n.fixedPosition,$&&$.setFixedPosition(t)},C=function(t){var n=function(e,t){var n=e.allMatrix,r=e.is3d,o=e.width,i=e.height,a=r?4:3;return{fixedPosition:ni(n,[o/2*(1+t[0]),i/2*(1+t[1])],a),fixedDirection:t,fixedOffset:[0,0]}}(e.state,t);o.fixedDirection=n.fixedDirection,o.fixedOffset=n.fixedOffset,o.fixedPosition=n.fixedPosition,$&&$.setFixedDirection(t)},A=i,T=a;if(c||u||l){var O=s||0;o.beforeInfo={origin:E.beforeOrigin,prevDeg:O,defaultDeg:O,prevSnapDeg:0,startDist:0},o.afterInfo=qt(qt({},o.beforeInfo),{origin:E.origin}),o.absoluteInfo=qt(qt({},o.beforeInfo),{origin:E.origin,startValue:O})}else{var M=null===(r=t.inputEvent)||void 0===r?void 0:r.target;if(M){var R=M.getAttribute("data-direction")||"",L=_n[R];if(L){o.isControl=!0,o.isAroundControl=ce(M,Bo("around-control")),o.controlDirection=L;var D=M.getAttribute("data-resolve");D&&(o.resolveAble=D);var P=function(e,t,n){var r=16===e.length?4:3,o=t.map((function(t){return ni(e,t,r)})),i=n.left,a=n.top;return o.map((function(e){return[e[0]+i,e[1]+a]}))}(d.rootMatrix,d.renderPoses,y);n=Yt(zn(P,L),2),A=n[0],T=n[1]}}o.beforeInfo={origin:E.beforeOrigin},o.afterInfo={origin:E.origin},o.absoluteInfo={origin:E.origin,startValue:E.rotation};var j=k;k=function(t){var n=d.is3d?4:3,r=Yt(Re(Ce(w,n),t),2),i=r[0],a=r[1],s=Pe(b,Ae([i,a],n)),l=Pe(x,Ae([t[0],t[1]],n));j(t);var u=d.posDelta;o.beforeInfo.origin=Le(s,u),o.afterInfo.origin=Le(l,u),o.absoluteInfo.origin=Le(l,u),uo(e,o.beforeInfo,A,T,y),uo(e,o.afterInfo,A,T,y),uo(e,o.absoluteInfo,A,T,y)},C=function(e){var t=zn([[0,0],[S,0],[0,_],[S,_]],e);k(t)}}o.startClientX=A,o.startClientY=T,o.direction=g,o.beforeDirection=m,o.startValue=0,o.datas={},Wn(e,t,"rotate");var I=!1,$=!1;o.isControl&&o.resolveAble&&("resizable"===o.resolveAble&&($=lo.dragControlStart(e,qt(qt({},new Tn("resizable").dragStart([0,0],t)),{parentPosition:o.controlPosition,parentFixedPosition:o.fixedPosition}))));$||(I=oo.dragStart(e,(new Tn).dragStart([0,0],t))),k(function(e){var t=e.props,n=t.groupable,r=t.svgOrigin,o=e.getState(),i=o.offsetWidth,a=o.offsetHeight,s=o.svg,l=o.transformOrigin;if(!n&&s&&r)return Gi(r,i,a);return l}(e));var N=Ei(e,t,qt(qt({set:function(e){o.startValue=e*Math.PI/180},setFixedDirection:C,setFixedPosition:k},Hn(e,t)),{dragStart:I,resizeStart:$})),F=Ai(e,"onRotateStart",N);return o.isRotate=!1!==F,d.snapRenderInfo={request:t.isRequest},!!o.isRotate&&N},dragControl:function(e,t){var n,r,o,i=t.datas,a=t.clientDistX,s=t.clientDistY,l=t.parentRotate,u=t.parentFlag,c=t.isPinch,d=t.groupDelta,f=t.resolveMatrix,h=i.beforeDirection,p=i.beforeInfo,g=i.afterInfo,m=i.absoluteInfo,v=i.isRotate,y=i.startValue,b=i.rect,w=i.startClientX,x=i.startClientY;if(v){Ln(e,t,"rotate");var S,_,E,k,C,A,T,O,M,R=function(e){return On(e.datas.beforeTransform,[50,50],100,100).direction}(t),L=h*R,D=e.props.parentMoveable,P=180/Math.PI*y,j=m.startValue,I=!1,$=w+a,N=x+s;if(!u&&"parentDist"in t){var F=t.parentDist;_=F,C=F,O=F}else c||u?(_=co(l,h,p),C=co(l,L,g),O=co(l,L,m)):(_=fo($,N,h,p),C=fo($,N,L,g),O=fo($,N,L,m),I=!0);if(Ai(e,"onBeforeRotate",Ei(e,t,{beforeRotation:E=P+_,rotation:A=P+C,absoluteRotation:M=j+O,setRotation:function(e){_=C=e-P,O=C}},!0)),S=(n=Yt(ho(e,b,p,_,P,I),3))[0],_=n[1],E=n[2],k=(r=Yt(ho(e,b,g,C,P,I),3))[0],C=r[1],A=r[2],T=(o=Yt(ho(e,b,m,O,j,I),3))[0],O=o[1],M=o[2],T||k||S||D||f){var z=Dn(i,"rotate(".concat(A,"deg)"),"rotate(".concat(C,"deg)"));f&&(i.fixedPosition=Xn(e,i.targetAllTransform,i.fixedDirection,i.fixedOffset,i));var B=function(e,t,n){var r=n.fixedDirection,o=n.fixedPosition,i=n.fixedOffset;return Qn(e,"rotate(".concat(t,"deg)"),r,o,i,n)}(e,C,i),H=Le(Re(d||[0,0],B),i.prevInverseDist||[0,0]);i.prevInverseDist=B,i.requestValue=null;var W=Kn(e,z,H,c,t),U=W,Z=se([$,N],m.startAbsoluteOrigin)-m.startDist,V=void 0;if("resizable"===i.resolveAble){var G=lo.dragControl(e,qt(qt({},An(t,e.state,[t.deltaX,t.deltaY],!!c,!1,"resizable")),{resolveMatrix:!0,parentDistance:Z}));G&&(V=G,U=_i(U,G,t))}var q=Ei(e,t,qt(qt({delta:k,dist:C,rotate:A,rotation:A,beforeDist:_,beforeDelta:S,beforeRotate:E,beforeRotation:E,absoluteDist:O,absoluteDelta:T,absoluteRotate:M,absoluteRotation:M,isPinch:!!c,resize:V},W),U));return Ai(e,"onRotate",q),q}}},dragControlEnd:function(e,t){var n=t.datas;if(n.isRotate){n.isRotate=!1;var r=ki(e,t,{});return Ai(e,"onRotateEnd",r),r}},dragGroupControlCondition:go,dragGroupControlStart:function(e,t){var n=t.datas,r=e.state,o=r.left,i=r.top,a=r.beforeOrigin,s=this.dragControlStart(e,t);if(!s)return!1;s.set(n.beforeDirection*e.rotation);var l=cr(e,this,"dragControlStart",t,(function(e,t){var n=e.state,r=n.left,s=n.top,l=n.beforeOrigin,u=Re(Le([r,s],[o,i]),Le(l,a));return t.datas.startGroupClient=u,t.datas.groupClient=u,qt(qt({},t),{parentRotate:0})})),u=Ai(e,"onRotateGroupStart",qt(qt({},s),{targets:e.props.targets,events:l}));return n.isRotate=!1!==u,!!n.isRotate&&s},dragGroupControl:function(e,t){var n=t.datas;if(n.isRotate){Ci(e,"onBeforeRotate",(function(n){Ai(e,"onBeforeRotateGroup",Ei(e,t,qt(qt({},n),{targets:e.props.targets}),!0))}));var r=this.dragControl(e,t);if(r){var o=n.beforeDirection,i=r.beforeDist,a=i/180*Math.PI,s=cr(e,this,"dragControl",t,(function(e,t){var n=t.datas.startGroupClient,r=Yt(t.datas.groupClient,2),s=r[0],l=r[1],u=Yt(Fe(n,a*o),2),c=u[0],d=u[1],f=[c-s,d-l];return t.datas.groupClient=[c,d],qt(qt({},t),{parentRotate:i,groupDelta:f})}));e.rotation=o*r.beforeRotation;var l=qt({targets:e.props.targets,events:s,set:function(t){e.rotation=t},setGroupRotation:function(t){e.rotation=t}},r);return Ai(e,"onRotateGroup",l),l}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isRotate){this.dragControlEnd(e,t);var r=cr(e,this,"dragControlEnd",t);return Ai(e,"onRotateGroupEnd",ki(e,t,{targets:e.props.targets,events:r})),n}},request:function(e){var t={},n=0,r=e.getRotation();return{isControl:!0,requestStart:function(){return{datas:t}},request:function(e){return"deltaRotate"in e?n+=e.deltaRotate:"rotate"in e&&(n=e.rotate-r),{datas:t,parentDist:n}},requestEnd:function(){return{datas:t,isDrag:!0}}}}};function vo(e,t){return function(e,t){var n,r=e.direction,o=e.classNames,i=e.size,a=e.pos,s=e.zoom,l=e.key,u="horizontal"===r,c=u?"Y":"X";return t.createElement("div",{key:l,className:o.join(" "),style:(n={},n[u?"width":"height"]="".concat(i),n.transform="translate(".concat(a[0],", ").concat(a[1],") translate").concat(c,"(-50%) scale").concat(c,"(").concat(s,")"),n)})}(qt(qt({},e),{classNames:Kt([Bo("line","guideline",e.direction)],Yt(e.classNames),!1).filter((function(e){return e})),size:e.size||"".concat(e.sizeValue,"px"),pos:e.pos||e.posValue.map((function(e){return"".concat(le(e,.1),"px")}))}),t)}function yo(e,t,n,r,o,i,a,s){var l=e.props.zoom;return n.map((function(e,n){var u=e.type,c=e.pos,d=[0,0];return d[a]=r,d[a?0:1]=-o+c,vo({key:"".concat(t,"TargetGuideline").concat(n),classNames:[Bo("target","bold",u)],posValue:d,sizeValue:i,zoom:l,direction:t},s)}))}function bo(e,t,n,r,o,i){var a=e.props,s=a.zoom,l=a.isDisplayInnerSnapDigit,u="horizontal"===t?Ar:Tr,c=o[u.start],d=o[u.end];return n.filter((function(e){var t=e.hide,n=e.elementRect;if(t)return!1;if(l&&n){var r=n.rect;if(r[u.start]<=c&&d<=r[u.end])return!1}return!0})).map((function(e,n){var o=e.pos,a=e.size,l=e.element,u=e.className,c=[-r[0]+o[0],-r[1]+o[1]];return vo({key:"".concat(t,"-default-guideline-").concat(n),classNames:l?[Bo("bold"),u]:[Bo("normal"),u],direction:t,posValue:c,sizeValue:a,zoom:s},i)}))}function wo(e,t,n,r,o,i,a,s){var l,u=e.props,c=u.snapDigit,d=void 0===c?0:c,f=u.isDisplaySnapDigit,h=void 0===f||f,p=u.snapDistFormat,g=void 0===p?function(e,t){return e}:p,m=u.zoom,v="horizontal"===t?"X":"Y",y="vertical"===t?"height":"width",b=Math.abs(o),w=h?parseFloat(b.toFixed(d)):0;return s.createElement("div",{key:"".concat(t,"-").concat(n,"-guideline-").concat(r),className:Bo("guideline-group",t),style:(l={left:"".concat(i[0],"px"),top:"".concat(i[1],"px")},l[y]="".concat(b,"px"),l)},vo({direction:t,classNames:[Bo(n),a],size:"100%",posValue:[0,0],sizeValue:b,zoom:m},s),s.createElement("div",{className:Bo("size-value","gap"),style:{transform:"translate".concat(v,"(-50%) scale(").concat(m,")")}},w>0?g(w,t):""))}function xo(e,t,n,r,o){var i=e.props.isDisplayInnerSnapDigit,a=[];return["vertical","horizontal"].forEach((function(s){var l=t.filter((function(e){return e.type===s})),u="vertical"===s?1:0,c=u?0:1,d=function(e,t,n,r){var o="vertical"===e?0:1,i="vertical"===e?1:0,a=o?Ar:Tr,s=n[a.start],l=n[a.end];return Ri(t,(function(e){return e.pos[o]})).map((function(t){var n=[],u=[];return t.forEach((function(t){var c,d,f=t.element,h=t.elementRect.rect;if(h[a.end]<s)n.push(t);else if(l<h[a.start])u.push(t);else if(h[a.start]<=s&&l<=h[a.end]&&r){var p=t.pos,g={element:f,rect:qt(qt({},h),(c={},c[a.end]=h[a.start],c))},m={element:f,rect:qt(qt({},h),(d={},d[a.start]=h[a.end],d))},v=[0,0],y=[0,0];v[o]=p[o],v[i]=p[i],y[o]=p[o],y[i]=p[i]+t.size,n.push({type:e,pos:v,size:0,elementRect:g,direction:"",elementDirection:"end"}),u.push({type:e,pos:y,size:0,elementRect:m,direction:"",elementDirection:"start"})}})),n.sort((function(e,t){return t.pos[i]-e.pos[i]})),u.sort((function(e,t){return e.pos[i]-t.pos[i]})),{total:t,start:n,end:u,inner:[]}}))}(s,l,r,i),f=u?Tr:Ar,h=u?Ar:Tr,p=r[f.start],g=r[f.end];d.forEach((function(t){var i=t.total,l=t.start,d=t.end,m=t.inner,v=n[c]+i[0].pos[c]-r[h.start],y=r;l.forEach((function(t){var r=t.elementRect.rect,i=y[f.start]-r[f.end];if(i>0){var l=[0,0];l[u]=n[u]+y[f.start]-p-i,l[c]=v,a.push(wo(e,s,"dashed",a.length,i,l,t.className,o))}y=r})),y=r,d.forEach((function(t){var r=t.elementRect.rect,i=r[f.start]-y[f.end];if(i>0){var l=[0,0];l[u]=n[u]+y[f.end]-p,l[c]=v,a.push(wo(e,s,"dashed",a.length,i,l,t.className,o))}y=r})),m.forEach((function(t){var r=t.elementRect.rect,i=p-r[f.start],l=r[f.end]-g,d=[0,0],h=[0,0];d[u]=n[u]-i,d[c]=v,h[u]=n[u]+g-p,h[c]=v,a.push(wo(e,s,"dashed",a.length,i,d,t.className,o)),a.push(wo(e,s,"dashed",a.length,l,h,t.className,o))}))}))})),a}function So(e){var t,n,r=e.state,o=r.containerClientRect,i=r.hasFixed,a=o.overflow,s=o.scrollHeight,l=o.scrollWidth,u=o.clientHeight,c=o.clientWidth,d=o.clientLeft,f=o.clientTop,h=e.props,p=h.snapGap,g=void 0===p||p,m=h.verticalGuidelines,v=h.horizontalGuidelines,y=h.snapThreshold,b=void 0===y?5:y,w=h.maxSnapElementGuidelineDistance,x=void 0===w?1/0:w,S=h.isDisplayGridGuidelines,_=oi(bi(e.state)),E=_.top,k=_.left,C=_.bottom,A=_.right,T={top:E,left:k,bottom:C,right:A,center:(k+A)/2,middle:(E+C)/2},O=function(e){var t=e.state,n=e.props.elementGuidelines,r=void 0===n?[]:n;if(!r.length)return t.elementRects=[],[];var o=(t.elementRects||[]).filter((function(e){return!e.refresh})),i=r.map((function(e){return I(e)&&"element"in e?qt(qt({},e),{element:Bi(e.element,!0)}):{element:Bi(e,!0)}})).filter((function(e){return e.element})),a=(c=o.map((function(e){return e.element})),d=i.map((function(e){return e.element})),nt(c,d,at)),s=a.maintained,l=a.added,u=[];var c,d;s.forEach((function(e){var t=Yt(e,2),n=t[0],r=t[1];u[r]=o[n]})),function(e,t){if(!t.length)return[];var n=e.props.groupable,r=e.state,o=r.containerClientRect,i=r.rootMatrix,a=r.is3d,s=r.offsetDelta,l=a?4:3,u=Yt(function(e,t,n){var r=ni(e,[t.clientLeft,t.clientTop],n);return[t.left+r[0],t.top+r[1]]}(i,o,l),2),c=u[0],d=u[1],f=n?0:s[0],h=n?0:s[1];return t.map((function(e){var t=e.element.getBoundingClientRect(),n=t.left-c-f,r=t.top-d-h,o=r+t.height,a=n+t.width,s=Yt(Pi(i,[n,r],l),2),u=s[0],p=s[1],g=Yt(Pi(i,[a,o],l),2),m=g[0],v=g[1];return qt(qt({},e),{rect:{left:u,right:m,top:p,bottom:v,center:(u+m)/2,middle:(p+v)/2}})}))}(e,l.map((function(e){return i[e]}))).map((function(e,t){u[l[t]]=e})),t.elementRects=u;var f=Mr(e.props.elementSnapDirections),h=[];return u.forEach((function(e){var t=e.element,n=e.top,r=void 0===n?f.top:n,o=e.left,i=void 0===o?f.left:o,a=e.right,s=void 0===a?f.right:a,l=e.bottom,u=void 0===l?f.bottom:l,c=e.center,d=void 0===c?f.center:c,p=e.middle,g=void 0===p?f.middle:p,m=e.className,v=e.rect,y=Rr({top:r,right:s,left:i,bottom:u,center:d,middle:g},v),b=y.horizontal,w=y.vertical,x=y.horizontalNames,S=y.verticalNames,_=v.top,E=v.left,k=v.right-E,C=v.bottom-_,A=[k,C];w.forEach((function(n,r){h.push({type:"vertical",element:t,pos:[le(n,.1),_],size:C,sizes:A,className:m,elementRect:e,elementDirection:Cr[S[r]]||S[r],direction:""})})),b.forEach((function(n,r){h.push({type:"horizontal",element:t,pos:[E,le(n,.1)],size:k,sizes:A,className:m,elementRect:e,elementDirection:Cr[x[r]]||x[r],direction:""})}))})),h}(e),M=Kt([],Yt(O),!1),R=(null!==(n=null===(t=r.snapThresholdInfo)||void 0===t?void 0:t.multiples)&&void 0!==n?n:[1,1]).map((function(e){return e*b}));g&&M.push.apply(M,Kt([],Yt(function(e,t,n){var r=e.props,o=r.maxSnapElementGuidelineDistance,i=void 0===o?1/0:o,a=r.maxSnapElementGapDistance,s=void 0===a?1/0:a,l=e.state.elementRects,u=[];return[["vertical",Ar,Tr],["horizontal",Tr,Ar]].forEach((function(e){var r=Yt(e,3),o=r[0],a=r[1],c=r[2],d=t[a.start],f=t[a.end],h=t[a.center],p=t[c.start],g=t[c.end],m={left:n[0],top:n[1]};function v(e){var t=e.rect,n=m[a.start];return t[a.end]<d+n?d-t[a.end]:f-n<t[a.start]?t[a.start]-f:-1}var y=l.filter((function(e){var t=e.rect;return!(t[c.start]>g||t[c.end]<p)&&v(e)>0})).sort((function(e,t){return v(e)-v(t)})),b=[];y.forEach((function(e){y.forEach((function(t){if(e!==t){var n=e.rect,r=t.rect,o=n[c.start],i=n[c.end],a=r[c.start];o>r[c.end]||a>i||b.push([e,t])}}))})),b.forEach((function(e){var n=Yt(e,2),r=n[0],l=n[1],c=r.rect,p=l.rect,g=c[a.start],v=c[a.end],y=p[a.start],b=p[a.end],w=m[a.start],x=0,S=0,_=!1,E=!1,k=!1;if(v<=d&&f<=y){if(E=!0,Xi((S=v+(x=(y-v-(f-d))/2)+(f-d)/2)-h)>w)return}else if(v<y&&b<d+w){if(_=!0,Xi((S=b+(x=y-v))-d)>w)return}else{if(!(v<y&&f-w<g))return;if(k=!0,Xi((S=g-(x=y-v))-f)>w)return}x&&_o(t,p,o,i)&&(x>s||u.push({type:o,pos:"vertical"===o?[S,0]:[0,S],element:l.element,size:0,className:l.className,isStart:_,isCenter:E,isEnd:k,gap:x,hide:!0,gapRects:[r,l],direction:"",elementDirection:""}))}))})),u}(e,T,R)),!1));var L=qt({},r.snapOffset||{left:0,top:0,bottom:0,right:0});if(M.push.apply(M,Kt([],Yt(function(e,t,n,r,o,i,a){void 0===r&&(r=0);void 0===o&&(o=0);var s=e.props,l=e.state,u=s.snapGridWidth,c=void 0===u?0:u,d=s.snapGridHeight,f=void 0===d?0:d,h=[],p=i.left,g=i.top,m=[0,0];!function(e,t,n,r){var o,i,a=e.props,s=e.state,l=a.snapGridAll,u=a.snapGridWidth,c=void 0===u?0:u,d=a.snapGridHeight,f=void 0===d?0:d,h=s.snapRenderInfo,p=h&&((null===(o=h.direction)||void 0===o?void 0:o[0])||(null===(i=h.direction)||void 0===i?void 0:i[1])),g=e.moveables;if(l&&g&&p&&(c||f)){if(s.snapThresholdInfo)return;s.snapThresholdInfo={multiples:[1,1],offset:[0,0]};var m=e.getRect(),v=m.children,y=h.direction;if(v){var b=y.map((function(e,o){var i=0===o?{snapSize:c,posName:"left",sizeName:"width",clientOffset:r.left-t}:{snapSize:f,posName:"top",sizeName:"height",clientOffset:r.top-n},a=i.snapSize,s=i.posName,l=i.sizeName,u=i.clientOffset;if(!a)return{dir:e,multiple:1,snapSize:a,snapOffset:0};var d,h=m[l],p=m[s],g=(d=v.map((function(e){return[e[s]-p,e[l],h-e[l]-e[s]+p]})),d.reduce((function(e,t){return e.concat(t)}),[])).filter((function(e){return e})).sort((function(e,t){return e-t})),y=g[0],b=g.map((function(e){return le(e/y,.1)*a})),w=1,x=le(h/y,.1);for(w=1;w<=10&&!b.every((function(e){return e*w%1==0}));++w);var S=(1-e)/2,_=P(p-u,p-u+h,S,1-S);return{multiple:x*w,dir:e,snapSize:a,snapOffset:Math.round(_/a)}})),w=b.map((function(e){return e.multiple||1}));s.snapThresholdInfo.multiples=w,s.snapThresholdInfo.offset=b.map((function(e){return e.snapOffset})),b.forEach((function(e,t){e.snapSize}))}}else s.snapThresholdInfo=null}(e,r,o,i);var v=l.snapThresholdInfo,y=c,b=f;v&&(c*=v.multiples[0]||1,f*=v.multiples[1]||1,m=v.offset);if(f){for(var w=function(e){h.push({type:"horizontal",pos:[p,le(m[1]*b+e-o+g,.1)],className:Bo("grid-guideline"),size:t,hide:!a,direction:"",grid:!0})},x=0;x<=2*n;x+=f)w(x);for(x=-f;x>=-n;x-=f)w(x)}if(c){for(w=function(e){h.push({type:"vertical",pos:[le(m[0]*y+e-r+p,.1),g],className:Bo("grid-guideline"),size:n,hide:!a,direction:"",grid:!0})},x=0;x<=2*t;x+=c)w(x);for(x=-c;x>=-t;x-=c)w(x)}return h}(e,a?l:c,a?s:u,d,f,L,S)),!1)),i){var D=o.left,j=o.top;L.left+=D,L.top+=j,L.right+=D,L.bottom+=j}return M.push.apply(M,Kt([],Yt(ko(v||!1,m||!1,a?l:c,a?s:u,d,f,L)),!1)),M=M.filter((function(e){var t=e.element,n=e.elementRect,r=e.type;if(!t||!n)return!0;var o=n.rect;return _o(T,o,r,x)})),M}function _o(e,t,n,r){return"horizontal"===n?Xi(e.right-t.left)<=r||Xi(e.left-t.right)<=r||e.left<=t.right&&t.left<=e.right:"vertical"!==n||(Xi(e.bottom-t.top)<=r||Xi(e.top-t.bottom)<=r||e.top<=t.bottom&&t.top<=e.bottom)}function Eo(e,t){return e?e.map((function(e){var n=I(e)?e:{pos:e},r=n.pos;return F(r)?n:qt(qt({},n),{pos:ee(r,t)})})):[]}function ko(e,t,n,r,o,i,a){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a={left:0,top:0,right:0,bottom:0});var s=[],l=a.left,u=a.top,c=a.bottom,d=n+a.right-l,f=r+c-u;return Eo(e,f).forEach((function(e){s.push({type:"horizontal",pos:[l,le(e.pos-i+u,.1)],size:d,className:e.className,direction:""})})),Eo(t,d).forEach((function(e){s.push({type:"vertical",pos:[le(e.pos-o+l,.1),u],size:f,className:e.className,direction:""})})),s}function Co(e){var t=e.state,n=t.container,r=e.props.snapContainer||n;if(t.snapContainer===r&&t.guidelines&&t.guidelines.length)return!1;var o=t.containerClientRect,i={left:0,top:0,bottom:0,right:0};if(n!==r){var a=Bi(r,!0);if(a){var s=gi(a),l=Wi(t,[s.left-o.left,s.top-o.top]),u=Wi(t,[s.right-o.right,s.bottom-o.bottom]);i.left=le(l[0],1e-5),i.top=le(l[1],1e-5),i.right=le(u[0],1e-5),i.bottom=le(u[1],1e-5)}}return t.snapContainer=r,t.snapOffset=i,t.guidelines=So(e),t.enableSnap=!0,!0}function Ao(e,t,n,r,o,i){var a=ri(e,t,n,i?4:3);return yi(a,Le(o,zn(a,r)))}function To(e){return e?e/Xi(e):0}function Oo(e,t,n,r,o,i){var a=function(e,t,n){var r=[];if(n)1!==Xi(t[0])||1!==Xi(t[1])?r.push([t,[-1,-1]],[t,[-1,1]],[t,[1,-1]],[t,[1,1]]):r.push([t,[e[0],-e[1]]],[t,[-e[0],e[1]]]),r.push([t,e]);else if(e[0]&&e[1]||!e[0]&&!e[1]){var o=e[0]?e:[1,1];[1,-1].forEach((function(e){[1,-1].forEach((function(n){var i=[e*o[0],n*o[1]];t[0]===i[0]&&t[1]===i[1]||r.push([t,i])}))}))}else e[0]?(1===Xi(t[0])?[1]:[1,-1]).forEach((function(n){r.push([[t[0],-1],[n*e[0],-1]],[[t[0],0],[n*e[0],0]],[[t[0],1],[n*e[0],1]])})):e[1]&&(1===Xi(t[1])?[1]:[1,-1]).forEach((function(n){r.push([[-1,t[1]],[-1,n*e[1]]],[[0,t[1]],[0,n*e[1]]],[[1,t[1]],[1,n*e[1]]])}));return r}(n,i.fixedDirection,r),s=qr(e,t,n,r),l=Kt(Kt([],Yt(no(e,t,a,r,o,i)),!1),Yt(Vr(e,s,i)),!1),u=zr(l,0),c=zr(l,1);return{width:{isBound:u.isBound,offset:u.offset[0]},height:{isBound:c.isBound,offset:c.offset[1]}}}function Mo(e,t,n,r,o,i,a,s){for(var l=bi(e.state),u=e.props.keepRatio,c=0,d=0,f=0;f<2;++f){var h=Oo(e,t(c,d),o,u,a,s),p=h.width,g=h.height,m=p.isBound,v=g.isBound,y=p.offset,b=g.offset;if(1===f&&(m||(y=0),v||(b=0)),0===f&&a&&!m&&!v)return[0,0];if(u){var w=Xi(y)*(n?1/n:1),x=Xi(b)*(r?1/r:1);(m&&v?w<x:v||!m&&w<x)?y=n*b/r:b=r*y/n}c+=y,d+=b}if(!u&&o[0]&&o[1]){var S=function(e,t,n,r,o){var i=[-n[0],-n[1]],a=e.state,s=a.width,l=a.height,u=e.props.bounds,c=1/0,d=1/0;if(u){var f=[[n[0],-n[1]],[-n[0],n[1]]],h=u.left,p=void 0===h?-1/0:h,g=u.top,m=void 0===g?-1/0:g,v=u.right,y=void 0===v?1/0:v,b=u.bottom,w=void 0===b?1/0:b;f.forEach((function(e){var n=e[0]!==i[0],a=e[1]!==i[1],u=zn(t,e),f=360*ie(r,u)/Math.PI;if(a){var h=u.slice();(Xi(f-360)<2||Xi(f-180)<2)&&(h[1]=r[1]);var g=Xr(r,h,(r[1]<u[1]?w:m)-u[1],!1,o),v=Yt(g.offset,2)[1],b=g.isOutside;isNaN(v)||(d=l+(b?1:-1)*Xi(v))}if(n){h=u.slice(),(Xi(f-90)<2||Xi(f-270)<2)&&(h[0]=r[0]);var x=Xr(r,h,(r[0]<u[0]?y:p)-u[0],!0,o),S=Yt(x.offset,1)[0],_=x.isOutside;isNaN(S)||(c=s+(_?1:-1)*Xi(S))}}))}return{maxWidth:c,maxHeight:d}}(e,l,o,i,s),_=S.maxWidth,E=S.maxHeight,k=Yt(function(e,t,n,r,o,i,a,s,l){var u=zn(t,a),c=eo(e,s,{vertical:[u[0]],horizontal:[u[1]]}),d=c.horizontal.offset,f=c.vertical.offset;if(le(f,yn)||le(d,yn)){var h=Yt($n({datas:l,distX:-f,distY:-d}),2),p=h[0],g=h[1];return[Math.min(o||1/0,n+a[0]*p)-n,Math.min(i||1/0,r+a[1]*g)-r]}return[0,0]}(e,t(c,d).map((function(e){return e.map((function(e){return le(e,yn)}))})),n+c,r+d,_,E,o,a,s),2);c+=y=k[0],d+=b=k[1]}return[c,d]}function Ro(e){return e<0&&(e=e%360+360),e%=360}function Lo(e,t){t=Ro(t);var n=Math.floor(e/360),r=360*n+360-t,o=360*n+t;return Xi(e-r)<Xi(e-o)?r:o}function Do(e,t){e=Ro(e),t=Ro(t);var n=Ro(e-t);return Math.min(n,360-n)}function Po(e,t,n,r,o){if(!Or(e,"scalable"))return[0,0];var i=o.startOffsetWidth,a=o.startOffsetHeight,s=o.fixedPosition,l=o.fixedDirection,u=o.is3d,c=Mo(e,(function(e,n){return Ao(function(e,t){var n=e.transformOrigin,r=e.offsetMatrix,o=e.is3d,i=e.targetMatrix,a=o?4:3;return Bn(r,Me(e.targetAllTransform||i,Ue(t,a),a),n,a)}(o,Re(t,[e/i,n/a])),i,a,l,s,u)}),i,a,n,s,r,o);return[c[0]/i,c[1]/a]}function jo(e){var t=[];return e.forEach((function(e){e.guidelineInfos.forEach((function(n){var r=n.guideline;K(t,(function(e){return e.guideline===r}))||(r.direction="",t.push({guideline:r,posInfo:e}))}))})),t.map((function(e){var t=e.guideline,n=e.posInfo;return qt(qt({},t),{direction:n.direction})}))}function Io(e,t,n,r,o,i){var a=br(wr(e,i),t,n),s=a.vertical,l=a.horizontal,u={left:!1,top:!1,right:!1,bottom:!1};s.forEach((function(e){e.isBound&&("start"===e.direction&&(u.left=!0),"end"===e.direction&&(u.right=!0),r.push({type:"bounds",pos:e.pos}))})),l.forEach((function(e){e.isBound&&("start"===e.direction&&(u.top=!0),"end"===e.direction&&(u.bottom=!0),o.push({type:"bounds",pos:e.pos}))}));var c=function(e){var t=e.props.innerBounds,n={left:!1,top:!1,right:!1,bottom:!1};if(!t)return{boundMap:n,vertical:[],horizontal:[]};var r=e.getRect(),o=[r.pos1,r.pos2,r.pos3,r.pos4],i=zn(o,[0,0]),a=t.left,s=t.top,l=t.width,u=t.height,c=[[a,s],[a,s+u]],d=[[a,s],[a+l,s]],f=[[a+l,s],[a+l,s+u]],h=[[a,s+u],[a+l,s+u]],p=qr(e,o,[0,0],!1),g=[],m=[];return p.forEach((function(e){var t=e.line,r=e.lineConstants,o=Br(i,t),p=o.horizontal,v=o.vertical,y=Zr(t,r,d,v,1,!0),b=Zr(t,r,h,v,1,!0),w=Zr(t,r,c,p,1,!0),x=Zr(t,r,f,p,1,!0);y.isBound&&!n.top&&(g.push(s),n.top=!0),b.isBound&&!n.bottom&&(g.push(s+u),n.bottom=!0),w.isBound&&!n.left&&(m.push(a),n.left=!0),x.isBound&&!n.right&&(m.push(a+l),n.right=!0)})),{boundMap:n,horizontal:g,vertical:m}}(e),d=c.boundMap,f=c.vertical,h=c.horizontal;return f.forEach((function(e){Y(r,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||r.push({type:"bounds",pos:e})})),h.forEach((function(e){Y(o,(function(t){var n=t.type,r=t.pos;return"bounds"===n&&r===e}))>=0||o.push({type:"bounds",pos:e})})),{boundMap:u,innerBoundMap:d}}var $o=zi("",["resizable","scalable"]),No="snapRotationThreshold",Fo="snapRotationDegrees",zo={name:"snappable",dragRelation:"strong",props:["snappable","snapContainer","snapDirections","elementSnapDirections","snapGap","snapGridWidth","snapGridHeight","isDisplaySnapDigit","isDisplayInnerSnapDigit","isDisplayGridGuidelines","snapDigit","snapThreshold","snapRenderThreshold","snapGridAll",No,Fo,"horizontalGuidelines","verticalGuidelines","elementGuidelines","bounds","innerBounds","snapDistFormat","maxSnapElementGuidelineDistance","maxSnapElementGapDistance"],events:["snap","bound"],css:[":host {\n--bounds-color: #d66;\n}\n.guideline {\npointer-events: none;\nz-index: 2;\n}\n.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}\n.guideline-group {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.guideline-group .size-value {\nposition: absolute;\ncolor: #f55;\nfont-size: 12px;\nfont-size: calc(12px * var(--zoom));\nfont-weight: bold;\n}\n.guideline-group.horizontal .size-value {\ntransform-origin: 50% 100%;\ntransform: translateX(-50%);\nleft: 50%;\nbottom: 5px;\nbottom: calc(2px + 3px * var(--zoom));\n}\n.guideline-group.vertical .size-value {\ntransform-origin: 0% 50%;\ntop: 50%;\ntransform: translateY(-50%);\nleft: 5px;\nleft: calc(2px + 3px * var(--zoom));\n}\n.guideline.gap {\nbackground: #f55;\n}\n.size-value.gap {\ncolor: #f55;\n}\n"],render:function(e,t){var n=e.state,r=n.top,o=n.left,i=n.pos1,a=n.pos2,s=n.pos3,l=n.pos4,u=n.snapRenderInfo,c=e.props.snapRenderThreshold,d=void 0===c?1:c;if(!u||!u.render||!Or(e,""))return Yi(e,"boundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),Yi(e,"innerBoundMap",{left:!1,top:!1,right:!1,bottom:!1},(function(e){return JSON.stringify(e)})),[];n.guidelines=So(e);var f=Math.min(i[0],a[0],s[0],l[0]),h=Math.min(i[1],a[1],s[1],l[1]),p=u.externalPoses||[],g=bi(e.state),m=[],v=[],y=[],b=[],w=[],x=oi(g),S=x.width,_=x.height,E=x.top,k=x.left,C=x.bottom,A=x.right,T={left:k,right:A,top:E,bottom:C,center:(k+A)/2,middle:(E+C)/2},O=p.length>0,M=O?oi(p):{};if(!u.request){if(u.direction&&w.push(Nr(e,g,u.direction,d)),u.snap){var R=oi(g);u.center&&(R.middle=(R.top+R.bottom)/2,R.center=(R.left+R.right)/2),w.push(jr(e,R,d))}O&&(u.center&&(M.middle=(M.top+M.bottom)/2,M.center=(M.left+M.right)/2),w.push(jr(e,M,d))),w.forEach((function(e){var t=e.vertical.posInfos,n=e.horizontal.posInfos;m.push.apply(m,Kt([],Yt(t.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),!1)),v.push.apply(v,Kt([],Yt(n.filter((function(e){return e.guidelineInfos.some((function(e){return!e.guideline.hide}))})).map((function(e){return{type:"snap",pos:e.pos}}))),!1)),y.push.apply(y,Kt([],Yt(jo(t)),!1)),b.push.apply(b,Kt([],Yt(jo(n)),!1))}))}var L=Io(e,[k,A],[E,C],m,v),D=L.boundMap,P=L.innerBoundMap;O&&Io(e,[M.left,M.right],[M.top,M.bottom],m,v,u.externalBounds);var j=Kt(Kt([],Yt(y),!1),Yt(b),!1),I=j.filter((function(e){return e.element&&!e.gapRects})),$=j.filter((function(e){return e.gapRects})).sort((function(e,t){return e.gap-t.gap}));Ai(e,"onSnap",{guidelines:j.filter((function(e){return!e.element})),elements:I,gaps:$},!0);var N=Yi(e,"boundMap",D,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1}),F=Yi(e,"innerBoundMap",P,(function(e){return JSON.stringify(e)}),{left:!1,top:!1,right:!1,bottom:!1});return D!==N&&P!==F||Ai(e,"onBound",{bounds:D,innerBounds:P},!0),Kt(Kt(Kt(Kt(Kt(Kt([],Yt(xo(e,I,[f,h],T,t)),!1),Yt(function(e,t,n,r,o){var i=[];return["horizontal","vertical"].forEach((function(a){var s=t.filter((function(e){return e.type===a})).slice(0,1),l="vertical"===a?0:1,u=l?0:1,c=l?Tr:Ar,d=l?Ar:Tr,f=r[c.start],h=r[c.end],p=r[d.start],g=r[d.end];s.forEach((function(t){var r=t.gap,a=t.gapRects,s=Math.max.apply(Math,Kt([p],Yt(a.map((function(e){return e.rect[d.start]}))),!1)),m=Math.min.apply(Math,Kt([g],Yt(a.map((function(e){return e.rect[d.end]}))),!1)),v=(s+m)/2;s!==m&&v!==(p+g)/2&&a.forEach((function(t){var a=t.rect,s=t.className,d=[n[0],n[1]];if(a[c.end]<f)d[l]+=a[c.end]-f;else{if(!(h<a[c.start]))return;d[l]+=a[c.start]-f-r}d[u]+=v-p,i.push(wo(e,l?"vertical":"horizontal","gap",i.length,r,d,s,o))}))}))})),i}(e,$,[f,h],T,t)),!1),Yt(bo(e,"horizontal",b,[o,r],T,t)),!1),Yt(bo(e,"vertical",y,[o,r],T,t)),!1),Yt(yo(e,"horizontal",v,f,r,S,0,t)),!1),Yt(yo(e,"vertical",m,h,o,_,1,t)),!1)},dragStart:function(e,t){e.state.snapRenderInfo={request:t.isRequest,snap:!0,center:!0},Co(e)},drag:function(e){var t=e.state;Co(e)||(t.guidelines=So(e)),t.snapRenderInfo&&(t.snapRenderInfo.render=!0)},pinchStart:function(e){this.unset(e)},dragEnd:function(e){this.unset(e)},dragControlCondition:function(e,t){return!(!$o(e,t)&&!go(e,t))||(!t.isRequest&&t.inputEvent?ce(t.inputEvent.target,Bo("snap-control")):void 0)},dragControlStart:function(e){e.state.snapRenderInfo=null,Co(e)},dragControl:function(e){this.drag(e)},dragControlEnd:function(e){this.unset(e)},dragGroupStart:function(e,t){this.dragStart(e,t)},dragGroup:function(e){this.drag(e)},dragGroupEnd:function(e){this.unset(e)},dragGroupControlStart:function(e){e.state.snapRenderInfo=null,Co(e)},dragGroupControl:function(e){this.drag(e)},dragGroupControlEnd:function(e){this.unset(e)},unset:function(e){var t=e.state;t.enableSnap=!1,t.guidelines=[],t.snapRenderInfo=null,t.elementRects=[]}};function Bo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return x.apply(void 0,Kt([pn],Yt(e),!1))}function Ho(e){e()}function Wo(e){return e&&"none"!==e?I(e)?e:qe(e):[1,0,0,1,0,0]}function Uo(e,t,n){return Oe(t,Ze(n,t),e,Ze(n.map((function(e){return-e})),t))}function Zo(e){return Vo(Ti(e,":before").transformOrigin).map((function(t,n){var r=G(t),o=r.value,i=r.unit;return o*function(e,t,n){return"%"===t?ei(e.ownerSVGElement)[n?"width":"height"]/100:1}(e,i,0===n)}))}function Vo(e){return e?e.split(" "):["0","0"]}function Go(e){var t=sr(e)("transform");if(t&&"none"!==t)return t;if("transform"in e){var n=e.transform.baseVal;if(!n)return"";var r=n.length;if(!r)return"";for(var o=[],i=function(e){var t=n[e].matrix;o.push("matrix(".concat(["a","b","c","d","e","f"].map((function(e){return t[e]})).join(", "),")"))},a=0;a<r;++a)i(a);return o.join(" ")}return""}function qo(e,t,n,r,o){var i,a,s,l,u=me(e)||ve(e),c=!1;if(!e||n)s=e;else{var d=null===(i=null==e?void 0:e.assignedSlot)||void 0===i?void 0:i.parentElement,f=e.parentElement;d?(c=!0,l=f,s=d):s=f}for(var h=!1,p=e===t||s===t,g="relative",m=1,v=parseFloat(null==o?void 0:o("zoom"))||1,y=null==o?void 0:o("position");s&&s!==u;){t===s&&(p=!0);var b=sr(s),w=s.tagName.toLowerCase(),x=Go(s),S=b("willChange"),_=parseFloat(b("zoom"))||1;if(g=b("position"),r&&1!==_){m=_;break}if(!n&&r&&1!==v&&y&&"absolute"!==y||"svg"===w||"static"!==g||x&&"none"!==x||"transform"===S)break;var E=null===(a=null==e?void 0:e.assignedSlot)||void 0===a?void 0:a.parentNode,k=s.parentNode;E&&(c=!0,l=k);var C=k;if(C&&11===C.nodeType){h=!0,g=sr(s=C.host)("position");break}s=C,g="relative"}return{offsetZoom:m,hasSlot:c,parentSlotElement:l,isCustomElement:h,isStatic:"static"===g,isEnd:p||!s||s===u,offsetParent:s||u}}function Yo(e,t){var n,r,o,i=e.tagName.toLowerCase(),a=e.offsetLeft,s=e.offsetTop,l=sr(e),u=j(a),c=!u;return c||"svg"===i&&!t.ownerSVGElement?o=(r=Vo(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice():(o=(r=on?Zo(e):Vo(l("transformOrigin")).map((function(e){return parseFloat(e)}))).slice(),c=!0,"svg"===i?(a=0,s=0):(n=Yt(function(e,t,n){if(!e.getBBox||!n&&"g"===e.tagName.toLowerCase())return[0,0,0,0];var r=sr(e),o="fill-box"===r("transform-box"),i=e.getBBox(),a=ei(e.ownerSVGElement),s=i.x-a.x,l=i.y-a.y,u=o?t[0]:t[0]-s,c=o?t[1]:t[1]-l;return[s,l,u,c]}(e,r,e===t&&"g"===t.tagName.toLowerCase()),4),a=n[0],s=n[1],r[0]=n[2],r[1]=n[3])),{tagName:i,isSVG:u,hasOffset:c,offset:[a||0,s||0],origin:r,targetOrigin:o}}function Ko(e,t){var n=sr(e),r=sr(ve(e)),o=r("position");if(!(t||o&&"static"!==o))return[0,0];var i=parseInt(r("marginLeft"),10),a=parseInt(r("marginTop"),10);return"absolute"===n("position")&&("auto"===n("top")&&"auto"===n("bottom")||(a=0),"auto"===n("left")&&"auto"===n("right")||(i=0)),[i,a]}function Xo(e){e.forEach((function(e){var t=e.matrix;t&&(e.matrix=Te(t,3,4))}))}function Qo(e){for(var t=e.parentElement,n=!1,r=ve(e);t;){var o=Ti(t).transform;if(o&&"none"!==o){n=!0;break}if(t===r)break;t=t.parentElement}return{fixedContainer:t||r,hasTransform:n}}function Jo(e,t){return void 0===t&&(t=e.length>9),"".concat(t?"matrix3d":"matrix","(").concat(De(e,!t).join(","),")")}function ei(e){var t=e.clientWidth,n=e.clientHeight;if(!e)return{x:0,y:0,width:0,height:0,clientWidth:t,clientHeight:n};var r=e.viewBox,o=r&&r.baseVal||{x:0,y:0,width:0,height:0};return{x:o.x,y:o.y,width:o.width||t,height:o.height||n,clientWidth:t,clientHeight:n}}function ti(e,t){var n,r=ei(e),o=r.width,i=r.height,a=r.clientWidth,s=r.clientHeight,l=a/o,u=s/i,c=e.preserveAspectRatio.baseVal,d=c.align,f=c.meetOrSlice,h=[0,0],p=[l,u],g=[0,0];if(1!==d){var m=(d-2)%3,v=Math.floor((d-2)/3);h[0]=o*m/2,h[1]=i*v/2;var y=2===f?Math.max(u,l):Math.min(l,u);p[0]=y,p[1]=y,g[0]=(a-o)/2*m,g[1]=(s-i)/2*v}var b=Ue(p,t);return n=Yt(g,2),b[t*(t-1)]=n[0],b[t*(t-1)+1]=n[1],Uo(b,t,h)}function ni(e,t,n){return Pe(e,Ae(t,n),n)}function ri(e,t,n,r){return[[0,0],[t,0],[0,n],[t,n]].map((function(t){return ni(e,t,r)}))}function oi(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){return e[1]})),r=Math.min.apply(Math,Kt([],Yt(t),!1)),o=Math.min.apply(Math,Kt([],Yt(n),!1)),i=Math.max.apply(Math,Kt([],Yt(t),!1)),a=Math.max.apply(Math,Kt([],Yt(n),!1));return{left:r,top:o,right:i,bottom:a,width:i-r,height:a-o}}function ii(e,t,n,r){return oi(ri(e,t,n,r))}function ai(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function si(e,t){return ai([t[0]-e[0],t[1]-e[1]])}function li(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=ie(e,t));var o=si(e,t);return{transform:"translateY(-50%) translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(r,"rad) scaleY(").concat(n,")"),width:"".concat(o,"px")}}function ui(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n.length,i=n.reduce((function(e,t){return e+t[0]}),0)/o,a=n.reduce((function(e,t){return e+t[1]}),0)/o;return{transform:"translateZ(0px) translate(".concat(i,"px, ").concat(a,"px) rotate(").concat(e,"rad) scale(").concat(t,")")}}function ci(e,t){var n=e[t];return I(n)?qt(qt({},e),n):e}function di(e){var t=e&&!j(e.offsetWidth),n=0,r=0,o=0,i=0,a=0,s=0,l=0,u=0,c=0,d=0,f=0,h=0,p=1/0,g=1/0,m=1/0,v=1/0,y=0,b=0,w=!1;if(e)if(!t&&e.ownerSVGElement){var x=e.getBBox();w=!0,a=n=x.width,s=r=x.height,l=n,u=r,o=n,i=r}else{var S=sr(e),_=e.style,E="border-box"===S("boxSizing"),k=parseFloat(S("borderLeftWidth"))||0,C=parseFloat(S("borderRightWidth"))||0,A=parseFloat(S("borderTopWidth"))||0,T=parseFloat(S("borderBottomWidth"))||0,O=(parseFloat(S("paddingLeft"))||0)+(parseFloat(S("paddingRight"))||0),M=(parseFloat(S("paddingTop"))||0)+(parseFloat(S("paddingBottom"))||0),R=O+(k+C),L=M+(A+T),D=S("position"),P=0,I=0;if("clientLeft"in e){var $=null;if("absolute"===D)$=qo(e,ve(e)).offsetParent;else $=e.parentElement;if($){var N=sr($);P=parseFloat(N("width")),I=parseFloat(N("height"))}}c=Math.max(O,ee(S("minWidth"),P)||0),d=Math.max(M,ee(S("minHeight"),I)||0),p=ee(S("maxWidth"),P),g=ee(S("maxHeight"),I),isNaN(p)&&(p=1/0),isNaN(g)&&(g=1/0),y=ee(_.width,0)||0,b=ee(_.height,0)||0,a=parseFloat(S("width"))||0,s=parseFloat(S("height"))||0,n=l=Xi(a-y)<1?te(c,y||a,p):a,r=u=Xi(s-b)<1?te(d,b||s,g):s,o=l,i=u,E?(m=p,v=g,f=c,h=d,l=n-R,u=r-L):(m=p+R,v=g+L,f=c+R,h=d+L,n=l+R,r=u+L),o=l+O,i=u+M}return{svg:w,offsetWidth:n,offsetHeight:r,clientWidth:o,clientHeight:i,contentWidth:l,contentHeight:u,inlineCSSWidth:y,inlineCSSHeight:b,cssWidth:a,cssHeight:s,minWidth:c,minHeight:d,maxWidth:p,maxHeight:g,minOffsetWidth:f,minOffsetHeight:h,maxOffsetWidth:m,maxOffsetHeight:v}}function fi(e,t){return ie(t>0?e[0]:e[1],t>0?e[1]:e[0])}function hi(e,t){var n=e===ve(e)||e===me(e),r={clientLeft:e.clientLeft,clientTop:e.clientTop,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,overflow:!1};return n&&(r.clientHeight=Math.max(t.height,r.clientHeight),r.scrollHeight=Math.max(t.height,r.scrollHeight)),r.overflow="visible"!==sr(e)("overflow"),qt(qt({},t),r)}function pi(e,t,n,r){var o=e.left,i=e.right,a=e.top,s=e.bottom,l=t.top,u=t.left,c={left:u+o,top:l+a,right:u+i,bottom:l+s,width:i-o,height:s-a};return n&&r?hi(n,c):c}function gi(e,t){var n=0,r=0,o=0,i=0;if(e){var a=e.getBoundingClientRect();n=a.left,r=a.top,o=a.width,i=a.height}var s={left:n,top:r,width:o,height:i,right:n+o,bottom:r+i};return e&&t?hi(e,s):s}function mi(e,t,n,r){var o;if(e)o=e;else if(t)o=[0,0];else{o=vi(n.target,r)}return o}function vi(e,t){if(e){var n=e.getAttribute("data-rotation")||"",r=e.getAttribute("data-direction");if(t.deg=n,r){var o=[0,0];return r.indexOf("w")>-1&&(o[0]=-1),r.indexOf("e")>-1&&(o[0]=1),r.indexOf("n")>-1&&(o[1]=-1),r.indexOf("s")>-1&&(o[1]=1),o}}}function yi(e,t){return[Re(t,e[0]),Re(t,e[1]),Re(t,e[2]),Re(t,e[3])]}function bi(e){var t=e.left,n=e.top;return yi([e.pos1,e.pos2,e.pos3,e.pos4],[t,n])}function wi(e,t){e[t?"controlAbles":"targetAbles"].forEach((function(t){t.unset&&t.unset(e)}))}function xi(e,t){var n=t?"controlGesto":"targetGesto",r=e[n];!1===(null==r?void 0:r.isIdle())&&wi(e,t),null==r||r.unset(),e[n]=null}function Si(e,t){if(t){var n=Vn(t);n.nextStyle=qt(qt({},n.nextStyle),e)}return{style:e,cssText:J(e).map((function(t){return"".concat((n=t,r="-",void 0===r&&(r="-"),n.replace(/([a-z])([A-Z])/g,(function(e,t,n){return""+t+r+n.toLowerCase()}))),": ").concat(e[t],";");var n,r})).join("")}}function _i(e,t,n){var r=t.afterTransform||t.transform;return qt(qt({},Si(qt(qt(qt({},e.style),t.style),{transform:r}),n)),{afterTransform:r,transform:e.transform})}function Ei(e,t,n,r){var o=t.datas;o.datas||(o.datas={});var i=qt(qt({},n),{target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,moveable:e,datas:o.datas,isRequest:t.isRequest,isRequestChild:t.isRequestChild,isFirstDrag:!!t.isFirstDrag,isTrusted:!1!==t.isTrusted,stopAble:function(){o.isEventStart=!1},stopDrag:function(){var e;null===(e=t.stop)||void 0===e||e.call(t)}});return o.isStartEvent?r||(o.lastEvent=i):o.isStartEvent=!0,i}function ki(e,t,n){var r=t.datas,o="isDrag"in n?n.isDrag:t.isDrag;return r.datas||(r.datas={}),qt(qt({isDrag:o},n),{moveable:e,target:e.state.target,clientX:t.clientX,clientY:t.clientY,inputEvent:t.inputEvent,currentTarget:e,lastEvent:r.lastEvent,isDouble:t.isDouble,datas:r.datas,isFirstDrag:!!t.isFirstDrag})}function Ci(e,t,n){e._emitter.on(t,n)}function Ai(e,t,n,r,o){return e.triggerEvent(t,n,r,o)}function Ti(e,t){return ye(e).getComputedStyle(e,t)}function Oi(e,t,n){var r={},o={};return e.filter((function(e){var i=e.name;if(r[i]||!t.some((function(t){return e[t]})))return!1;if(!n&&e.ableGroup){if(o[e.ableGroup])return!1;o[e.ableGroup]=!0}return r[i]=!0,!0}))}function Mi(e,t){return e===t||null==e&&null==t}function Ri(e,t){var n=[],r=[];return e.forEach((function(o,i){var a=t(o,i,e),s=r.indexOf(a),l=n[s]||[];-1===s&&(r.push(a),n.push(l)),l.push(o)})),n}function Li(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function Di(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.sort((function(e,t){return Xi(t)-Xi(e)})),e[0]}function Pi(e,t,n){return Pe(ke(e,n),Ae(t,n),n)}function ji(e,t){var n,r=e.is3d?4:3;return n=Yt(Pi(e.rootMatrix,[t.distX,t.distY],r),2),t.distX=n[0],t.distY=n[1],t}function Ii(e,t,n,r){if(!n[0]&&!n[1])return t;var o=ni(e,[To(n[0]||1),0],r),i=ni(e,[0,To(n[1]||1)],r);return Re(t,ni(e,[n[0]/ai(o),n[1]/ai(i)],r))}function $i(e,t,n){return n?"".concat(e/t*100,"%"):"".concat(e,"px")}function Ni(e){return Xi(e)<=bn?0:e}function Fi(e){return function(t){if(!t.isDragging(e))return"";var n=function(e,t){var n,r=e.targetGesto,o=e.controlGesto;return(null==r?void 0:r.isFlag())&&(n=r.getEventData()[t]),!n&&(null==o?void 0:o.isFlag())&&(n=o.getEventData()[t]),n||{}}(t,e),r=n.deg;return r?Bo("view-control-rotation".concat(r)):""}}function zi(e,t){return void 0===t&&(t=[e]),function(n,r){if(r.isRequest)return!!t.some((function(e){return r.requestAble===e}))&&r.parentDirection;var o=r.inputEvent.target;return ce(o,Bo("direction"))&&(!e||ce(o,Bo(e)))}}function Bi(e,t){return e?we(e)?e:N(e)?t?document.querySelector(e):e:z(e)?e():be(e)?e:"current"in e?e.current:e:null}function Hi(e,t){return e?((n=e)&&I(n)&&!we(n)&&($(n)||"length"in n)?[].slice.call(e):[e]).reduce((function(e,n){return N(n)&&t?Kt(Kt([],Yt(e),!1),Yt([].slice.call(document.querySelectorAll(n))),!1):($(n)?e.push(Hi(n,t)):e.push(Bi(n,t)),e)}),[]):[];var n}function Wi(e,t){var n=e.rootMatrix,r=e.is3d,o=ke(n,r?4:3);return r||(o=Te(o,3,4)),o[12]=0,o[13]=0,o[14]=0,function(e,t){var n=Pe(e,[t[0],t[1]||0,t[2]||0,1],4),r=n[3]||1;return[n[0]/r,n[1]/r,n[2]/r]}(o,t)}function Ui(e,t,n,r,o){var i=Yt(e,2),a=i[0],s=i[1],l=0,u=0;if(o&&a&&s){var c=ie([0,0],t),d=ie([0,0],r),f=ai(t),h=Math.cos(c-d)*f;if(r[0])if(r[1]){var p=r[0]*a,g=r[1]*s,m=Math.atan2(p+t[0],g+t[1]),v=Math.atan2(p,g);m<0&&(m+=2*Math.PI),v<0&&(v+=2*Math.PI);var y=0;(y=Xi(m-v)<Math.PI/2||Xi(m-v)>Math.PI/2*3?m-v:m-(v+=Math.PI))>2*Math.PI?y-=2*Math.PI:y>Math.PI?y=2*Math.PI-y:y<-Math.PI&&(y=-2*Math.PI-y);var b=ai([p+t[0],g+t[1]])*Math.cos(y);l=b*Math.sin(v)-p,u=b*Math.cos(v)-g,r[0]<0&&(l*=-1),r[1]<0&&(u*=-1)}else u=(l=h)/n;else l=(u=h)*n}else l=r[0]*t[0],u=r[1]*t[1];return[l,u]}function Zi(e,t,n,r){var o,i=n.ratio,a=n.startOffsetWidth,s=n.startOffsetHeight,l=0,u=0,c=r.distX,d=r.distY,f=r.pinchScale,h=r.parentDistance,p=r.parentDist,g=r.parentScale,m=n.fixedDirection,v=[0,1].map((function(t){return Xi(e[t]-m[t])})),y=[0,1].map((function(e){var t=v[e];return 0!==t&&(t=2/t),t}));if(p)l=p[0],u=p[1],t&&(l?u||(u=l/i):l=u*i);else if(F(f))l=(f-1)*a,u=(f-1)*s;else if(g)l=(g[0]-1)*a,u=(g[1]-1)*s;else if(h){var b=a*v[0],w=s*v[1],x=ai([b,w]);l=h/x*b*y[0],u=h/x*w*y[1]}else{var S=$n({datas:n,distX:c,distY:d});S=y.map((function(e,t){return S[t]*e})),l=(o=Yt(Ui([a,s],S,i,e,t),2))[0],u=o[1]}return{distWidth:l,distHeight:u}}function Vi(e,t){if(t){if("left"===e)return{x:"0%",y:"50%"};if("top"===e)return{x:"50%",y:"50%"};if("center"===e)return{x:"50%",y:"50%"};if("right"===e)return{x:"100%",y:"50%"};if("bottom"===e)return{x:"50%",y:"100%"};var n=Yt(e.split(" "),2),r=n[0],o=n[1],i=Vi(r||""),a=Vi(o||""),s=qt(qt({},i),a),l={x:"50%",y:"50%"};return s.x&&(l.x=s.x),s.y&&(l.y=s.y),s.value&&(s.x&&!s.y&&(l.y=s.value),!s.x&&s.y&&(l.x=s.value)),l}return"left"===e?{x:"0%"}:"right"===e?{x:"100%"}:"top"===e?{y:"0%"}:"bottom"===e?{y:"100%"}:e?"center"===e?{value:"50%"}:{value:e}:{}}function Gi(e,t,n){var r=Vi(e,!0),o=r.x,i=r.y;return[ee(o,t)||0,ee(i,n)||0]}function qi(e,t){return e.length===t.length&&e.every((function(e,n){var r=t[n],o=$(e),i=$(r);return o&&i?qi(e,r):!o&&!i&&e===r}))}function Yi(e,t,n,r,o){var i=e._store,a=i[t];if(!(t in i)){if(null==o)return i[t]=n,n;i[t]=o,a=o}return a===n||r(a)===r(n)?a:(i[t]=n,n)}function Ki(e){return e>=0?1:-1}function Xi(e){return Math.abs(e)}function Qi(e,t){return function(e){for(var t=[],n=0;n<e;++n)t.push(n);return t}(e).map((function(e){return t(e)}))}function Ji(e){return F(e)?{top:e,left:e,right:e,bottom:e}:{left:e.left||0,top:e.top||0,right:e.right||0,bottom:e.bottom||0}}var ea=Xt("pinchable",{props:["pinchable"],events:["pinchStart","pinch","pinchEnd","pinchGroupStart","pinchGroup","pinchGroupEnd"],dragStart:function(){return!0},pinchStart:function(e,t){var n=t.datas,r=t.targets,o=t.angle,i=t.originalDatas,a=e.props,s=a.pinchable,l=a.ables;if(!s)return!1;var u="onPinch".concat(r?"Group":"","Start"),c="drag".concat(r?"Group":"","ControlStart"),d=(!0===s?e.controlAbles:l.filter((function(e){return s.indexOf(e.name)>-1}))).filter((function(e){return e.canPinch&&e[c]})),f=Ei(e,t,{});r&&(f.targets=r);var h=Ai(e,u,f);n.isPinch=!1!==h,n.ables=d;var p=n.isPinch;return!!p&&(d.forEach((function(n){if(i[n.name]=i[n.name]||{},n[c]){var r=qt(qt({},t),{datas:i[n.name],parentRotate:o,isPinch:!0});n[c](e,r)}})),e.state.snapRenderInfo={request:t.isRequest,direction:[0,0]},p)},pinch:function(e,t){var n=t.datas,r=t.scale,o=t.distance,i=t.originalDatas,a=t.inputEvent,s=t.targets,l=t.angle;if(n.isPinch){var u=o*(1-1/r),c=Ei(e,t,{});s&&(c.targets=s);var d="onPinch".concat(s?"Group":"");Ai(e,d,c);var f=n.ables,h="drag".concat(s?"Group":"","Control");return f.forEach((function(n){n[h]&&n[h](e,qt(qt({},t),{datas:i[n.name],inputEvent:a,resolveMatrix:!0,pinchScale:r,parentDistance:u,parentRotate:l,isPinch:!0}))})),c}},pinchEnd:function(e,t){var n=t.datas,r=t.isPinch,o=t.inputEvent,i=t.targets,a=t.originalDatas;if(n.isPinch){var s="onPinch".concat(i?"Group":"","End"),l=ki(e,t,{isDrag:r});i&&(l.targets=i),Ai(e,s,l);var u=n.ables,c="drag".concat(i?"Group":"","ControlEnd");return u.forEach((function(n){n[c]&&n[c](e,qt(qt({},t),{isDrag:r,datas:a[n.name],inputEvent:o,isPinch:!0}))})),r}},pinchGroupStart:function(e,t){return this.pinchStart(e,qt(qt({},t),{targets:e.props.targets}))},pinchGroup:function(e,t){return this.pinch(e,qt(qt({},t),{targets:e.props.targets}))},pinchGroupEnd:function(e,t){return this.pinchEnd(e,qt(qt({},t),{targets:e.props.targets}))}}),ta=zi("scalable"),na={name:"scalable",ableGroup:"size",canPinch:!0,props:["scalable","throttleScale","renderDirections","keepRatio","edge","displayAroundControls"],events:["scaleStart","beforeScale","scale","scaleEnd","scaleGroupStart","beforeScaleGroup","scaleGroup","scaleGroupEnd"],render:mr("scalable"),dragControlCondition:ta,viewClassName:Fi("scalable"),dragControlStart:function(e,t){var n=t.datas,r=t.isPinch,o=t.inputEvent,i=mi(t.parentDirection,r,o,n),a=e.state,s=a.width,l=a.height,u=a.targetTransform,c=a.target,d=a.pos1,f=a.pos2,h=a.pos4;if(!i||!c)return!1;r||Rn(e,t),n.datas={},n.transform=u,n.prevDist=[1,1],n.direction=i,n.startOffsetWidth=s,n.startOffsetHeight=l,n.startValue=[1,1];var p=!i[0]&&!i[1]||i[0]||!i[1];function g(e){n.ratio=e&&isFinite(e)?e:0}function m(e){var t=io(n.startPositions,e);n.fixedDirection=t.fixedDirection,n.fixedPosition=t.fixedPosition,n.fixedOffset=t.fixedOffset}Wn(e,t,"scale"),n.isWidth=p,n.startPositions=bi(e.state),n.setFixedDirection=m,g(se(d,f)/se(f,h)),m([-i[0],-i[1]]);var v=function(e){n.minScaleSize=e},y=function(e){n.maxScaleSize=e};v([-1/0,-1/0]),y([1/0,1/0]);var b=Ei(e,t,qt(qt({direction:i,set:function(e){n.startValue=e},setRatio:g,setFixedDirection:m,setMinScaleSize:v,setMaxScaleSize:y},Hn(e,t)),{dragStart:oo.dragStart(e,(new Tn).dragStart([0,0],t))})),w=Ai(e,"onScaleStart",b);return n.startFixedDirection=n.fixedDirection,!1!==w&&(n.isScale=!0,e.state.snapRenderInfo={request:t.isRequest,direction:i}),!!n.isScale&&b},dragControl:function(e,t){Ln(e,t,"scale");var n=t.datas,r=t.parentKeepRatio,o=t.parentFlag,i=t.isPinch,a=t.dragClient,s=t.isRequest,l=t.useSnap,u=t.resolveMatrix,c=n.prevDist,d=n.direction,f=n.startOffsetWidth,h=n.startOffsetHeight,p=n.isScale,g=n.startValue,m=n.isWidth,v=n.ratio;if(!p)return!1;var y=e.props,b=y.throttleScale,w=y.parentMoveable,x=d;d[0]||d[1]||(x=[1,1]);var S=v&&(null!=r?r:y.keepRatio)||!1,_=e.state,E=[g[0],g[1]];function k(){var e=Zi(x,S,n,t),r=e.distWidth,o=e.distHeight,i=f?(f+r)/f:1,a=h?(h+o)/h:1;g[0]||(E[0]=r/f),g[1]||(E[1]=o/h);var s=(x[0]||S?i:1)*E[0],l=(x[1]||S?a:1)*E[1];return 0===s&&(s=Ki(c[0])*wn),0===l&&(l=Ki(c[1])*wn),[s,l]}var C=k();if(!i&&e.props.groupable){var A=(_.snapRenderInfo||{}).direction;$(A)&&(A[0]||A[1])&&(_.snapRenderInfo={direction:d,request:t.isRequest})}Ai(e,"onBeforeScale",Ei(e,t,{scale:C,setFixedDirection:function(e){return n.setFixedDirection(e),C=k()},startFixedDirection:n.startFixedDirection,setScale:function(e){C=e}},!0));var T,O,M=[C[0]/E[0],C[1]/E[1]],R=a,L=[0,0],D=Ki(M[0]*M[1]),P=!a&&!o&&i;if(P||u?R=Xn(e,n.targetAllTransform,[0,0],[0,0],n):a||(R=n.fixedPosition),i||(L=Po(e,M,d,!l&&s,n)),S){x[0]&&x[1]&&L[0]&&L[1]&&(Math.abs(L[0]*f)>Math.abs(L[1]*h)?L[1]=0:L[0]=0);var j=!L[0]&&!L[1];if(j&&(m?M[0]=le(M[0]*E[0],b)/E[0]:M[1]=le(M[1]*E[1],b)/E[1]),x[0]&&!x[1]||L[0]&&!L[1]||j&&m){M[0]+=L[0];var I=f*M[0]*E[0]/v;M[1]=Ki(D*M[0])*Xi(I/h/E[1])}else if(!x[0]&&x[1]||!L[0]&&L[1]||j&&!m){M[1]+=L[1];var N=h*M[1]*E[1]*v;M[0]=Ki(D*M[1])*Xi(N/f/E[0])}}else M[0]+=L[0],M[1]+=L[1],L[0]||(M[0]=le(M[0]*E[0],b)/E[0]),L[1]||(M[1]=le(M[1]*E[1],b)/E[1]);0===M[0]&&(M[0]=Ki(c[0])*wn),0===M[1]&&(M[1]=Ki(c[1])*wn),T=M,O=[E[0],E[1]],C=[T[0]*O[0],T[1]*O[1]];var F=[f,h],z=[f*C[0],h*C[1]];z=re(z,n.minScaleSize,n.maxScaleSize,!!S&&v),C=Qi(2,(function(e){return F[e]?z[e]/F[e]:z[e]})),M=Qi(2,(function(e){return C[e]/E[e]}));var B=Qi(2,(function(e){return c[e]?M[e]/c[e]:M[e]})),H="scale(".concat(M.join(", "),")"),W="scale(".concat(C.join(", "),")"),U=Dn(n,W,H),Z=!g[0]||!g[1],V=function(e,t,n,r,o,i,a){return Qn(e,t,n,r,o,i,a)}(e,Z?W:H,n.fixedDirection,R,n.fixedOffset,n,Z),G=P?V:Le(V,n.prevInverseDist||[0,0]);if(n.prevDist=M,n.prevInverseDist=V,C[0]===c[0]&&C[1]===c[1]&&G.every((function(e){return!e}))&&!w&&!P)return!1;var q=Ei(e,t,qt({offsetWidth:f,offsetHeight:h,direction:d,scale:C,dist:M,delta:B,isPinch:!!i},Kn(e,U,G,i,t)));return Ai(e,"onScale",q),q},dragControlEnd:function(e,t){var n=t.datas;if(!n.isScale)return!1;n.isScale=!1;var r=ki(e,t,{});return Ai(e,"onScaleEnd",r),r},dragGroupControlCondition:ta,dragGroupControlStart:function(e,t){var n=t.datas,r=this.dragControlStart(e,t);if(!r)return!1;var o=lr(e,"resizable",t);n.moveableScale=e.scale;var i=cr(e,this,"dragControlStart",t,(function(t,r){return dr(e,t,n,r)})),a=function(t){r.setFixedDirection(t),i.forEach((function(r,i){r.setFixedDirection(t),dr(e,r.moveable,n,o[i])}))};n.setFixedDirection=a;var s=qt(qt({},r),{targets:e.props.targets,events:i,setFixedDirection:a}),l=Ai(e,"onScaleGroupStart",s);return n.isScale=!1!==l,!!n.isScale&&s},dragGroupControl:function(e,t){var n=t.datas;if(n.isScale){Ci(e,"onBeforeScale",(function(n){Ai(e,"onBeforeScaleGroup",Ei(e,t,qt(qt({},n),{targets:e.props.targets}),!0))}));var r=this.dragControl(e,t);if(r){var o=r.dist,i=n.moveableScale;e.scale=[o[0]*i[0],o[1]*i[1]];var a=e.props.keepRatio,s=n.fixedPosition,l=cr(e,this,"dragControl",t,(function(t,n){var r=Yt(Pe(He(e.rotation/180*Math.PI,3),[n.datas.originalX*o[0],n.datas.originalY*o[1],1],3),2),i=r[0],l=r[1];return qt(qt({},n),{parentDist:null,parentScale:o,parentKeepRatio:a,dragClient:Re(s,[i,l])})})),u=qt({targets:e.props.targets,events:l},r);return Ai(e,"onScaleGroup",u),u}}},dragGroupControlEnd:function(e,t){var n=t.isDrag;if(t.datas.isScale){this.dragControlEnd(e,t);var r=cr(e,this,"dragControlEnd",t);return Ai(e,"onScaleGroupEnd",ki(e,t,{targets:e.props.targets,events:r})),n}},request:function(){var e={},t=0,n=0,r=!1;return{isControl:!0,requestStart:function(t){return r=t.useSnap,{datas:e,parentDirection:t.direction||[1,1],useSnap:r}},request:function(o){return t+=o.deltaWidth,n+=o.deltaHeight,{datas:e,parentDist:[t,n],parentKeepRatio:o.keepRatio,useSnap:r}},requestEnd:function(){return{datas:e,isDrag:!0,useSnap:r}}}}};function ra(e,t){return e.map((function(e,n){return P(e,t[n],1,2)}))}function oa(e,t,n){var r=ie(e,t),o=ie(e,n)-r;return o>=0?o:o+2*Math.PI}var ia={name:"warpable",ableGroup:"size",props:["warpable","renderDirections","edge","displayAroundControls"],events:["warpStart","warp","warpEnd"],viewClassName:Fi("warpable"),render:function(e,t){var n=e.props,r=n.resizable,o=n.scalable,i=n.warpable,a=n.zoom;if(r||o||!i)return[];var s=e.state,l=s.pos1,u=s.pos2,c=s.pos3,d=s.pos4,f=ra(l,u),h=ra(u,l),p=ra(l,c),g=ra(c,l),m=ra(c,d),v=ra(d,c),y=ra(u,d),b=ra(d,u);return Kt([t.createElement("div",{className:Bo("line"),key:"middeLine1",style:li(f,m,a)}),t.createElement("div",{className:Bo("line"),key:"middeLine2",style:li(h,v,a)}),t.createElement("div",{className:Bo("line"),key:"middeLine3",style:li(p,y,a)}),t.createElement("div",{className:Bo("line"),key:"middeLine4",style:li(g,b,a)})],Yt(vr(e,"warpable",t)),!1)},dragControlCondition:function(e,t){if(t.isRequest)return!1;var n=t.inputEvent.target;return ce(n,Bo("direction"))&&ce(n,Bo("warpable"))},dragControlStart:function(e,t){var n=t.datas,r=t.inputEvent,o=e.props.target,i=vi(r.target,n);if(!i||!o)return!1;var a=e.state,s=a.transformOrigin,l=a.is3d,u=a.targetTransform,c=a.targetMatrix,d=a.width,f=a.height,h=a.left,p=a.top;return n.datas={},n.targetTransform=u,n.warpTargetMatrix=l?c:Te(c,3,4),n.targetInverseMatrix=Ee(ke(n.warpTargetMatrix,4),3,4),n.direction=i,n.left=h,n.top=p,n.poses=[[0,0],[d,0],[0,f],[d,f]].map((function(e){return Le(e,s)})),n.nextPoses=n.poses.map((function(e){var t=Yt(e,2),r=t[0],o=t[1];return Pe(n.warpTargetMatrix,[r,o,0,1],4)})),n.startValue=We(4),n.prevMatrix=We(4),n.absolutePoses=bi(a),n.posIndexes=Nn(i),Rn(e,t),Wn(e,t,"matrix3d"),a.snapRenderInfo={request:t.isRequest,direction:i},!1!==Ai(e,"onWarpStart",Ei(e,t,qt({set:function(e){n.startValue=e}},Hn(e,t))))&&(n.isWarp=!0),n.isWarp},dragControl:function(e,t){var n=t.datas,r=t.isRequest,o=t.distX,i=t.distY,a=n.targetInverseMatrix,s=n.prevMatrix,l=n.isWarp,u=n.startValue,c=n.poses,d=n.posIndexes,f=n.absolutePoses;if(!l)return!1;if(Ln(e,t,"matrix3d"),Or(e,"warpable")){var h=d.map((function(e){return f[e]}));h.length>1&&h.push([(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]);var p=eo(e,r,{horizontal:h.map((function(e){return e[1]+i})),vertical:h.map((function(e){return e[0]+o}))}),g=p.horizontal,m=p.vertical;i-=g.offset,o-=m.offset}var v=$n({datas:n,distX:o,distY:i},!0),y=n.nextPoses.slice();if(d.forEach((function(e){y[e]=Re(y[e],v)})),!vn.every((function(e){return t=e.map((function(e){return c[e]})),n=e.map((function(e){return y[e]})),r=oa(t[0],t[1],t[2]),o=oa(n[0],n[1],n[2]),i=Math.PI,!(r>=i&&o<=i||r<=i&&o>=i);var t,n,r,o,i})))return!1;var b=Ve(c[0],c[2],c[1],c[3],y[0],y[2],y[1],y[3]);if(!b.length)return!1;var w=jn(n,Me(a,b,4),!0),x=Me(ke(s,4),w,4);n.prevMatrix=w;var S=Me(u,w,4),_=Dn(n,"matrix3d(".concat(S.join(", "),")"),"matrix3d(".concat(w.join(", "),")"));return Zn(t,_),Ai(e,"onWarp",Ei(e,t,qt({delta:x,matrix:S,dist:w,multiply:Me,transform:_},Si({transform:_},t)))),!0},dragControlEnd:function(e,t){var n=t.datas,r=t.isDrag;return!!n.isWarp&&(n.isWarp=!1,Ai(e,"onWarpEnd",ki(e,t,{})),r)}},aa=Bo("area-pieces"),sa=Bo("area-piece"),la=Bo("avoid"),ua=Bo("view-dragging");function ca(e){var t=e.areaElement;if(t){var n=e.state,r=n.width,o=n.height;fe(t,la),t.style.cssText+="left: 0px; top: 0px; width: ".concat(r,"px; height: ").concat(o,"px")}}function da(e){return e.createElement("div",{key:"area_pieces",className:aa},e.createElement("div",{className:sa}),e.createElement("div",{className:sa}),e.createElement("div",{className:sa}),e.createElement("div",{className:sa}))}var fa={name:"dragArea",props:["dragArea","passDragArea"],events:["click","clickGroup"],render:function(e,t){var n=e.props,r=n.target,o=n.dragArea,i=n.groupable,a=n.passDragArea,s=e.getState(),l=s.width,u=s.height,c=s.renderPoses,d=a?Bo("area","pass"):Bo("area");if(i)return[t.createElement("div",{key:"area",ref:S(e,"areaElement"),className:d}),da(t)];if(!r||!o)return[];var f=Ve([0,0],[l,0],[0,u],[l,u],c[0],c[1],c[2],c[3]),h=f.length?Jo(f,!0):"none";return[t.createElement("div",{key:"area",ref:S(e,"areaElement"),className:d,style:{top:"0px",left:"0px",width:"".concat(l,"px"),height:"".concat(u,"px"),transformOrigin:"0 0",transform:h}}),da(t)]},dragStart:function(e,t){var n=t.datas,r=t.clientX,o=t.clientY;if(!t.inputEvent)return!1;n.isDragArea=!1;var i=e.areaElement,a=e.state,s=a.moveableClientRect,l=a.renderPoses,u=a.rootMatrix,c=a.is3d,d=s.left,f=s.top,h=oi(l),p=h.left,g=h.top,m=h.width,v=h.height,y=Yt(Pi(u,[r-d,o-f],c?4:3),2),b=y[0],w=y[1],x=[{left:p,top:g,width:m,height:(w-=g)-10},{left:p,top:g,width:(b-=p)-10,height:v},{left:p,top:g+w+10,width:m,height:v-w-10},{left:p+b+10,top:g,width:m-b-10,height:v}],S=[].slice.call(i.nextElementSibling.children);x.forEach((function(e,t){S[t].style.cssText="left: ".concat(e.left,"px;top: ").concat(e.top,"px; width: ").concat(e.width,"px; height: ").concat(e.height,"px;")})),de(i,la),a.disableNativeEvent=!0},drag:function(e,t){var n=t.datas,r=t.inputEvent;if(this.enableNativeEvent(e),!r)return!1;n.isDragArea||(n.isDragArea=!0,ca(e))},dragEnd:function(e,t){this.enableNativeEvent(e);var n=t.inputEvent,r=t.datas;if(!n)return!1;r.isDragArea||ca(e)},dragGroupStart:function(e,t){return this.dragStart(e,t)},dragGroup:function(e,t){return this.drag(e,t)},dragGroupEnd:function(e,t){return this.dragEnd(e,t)},unset:function(e){ca(e),e.state.disableNativeEvent=!1},enableNativeEvent:function(e){var t=e.state;t.disableNativeEvent&&X((function(){t.disableNativeEvent=!1}))}},ha=Xt("origin",{props:["origin","svgOrigin"],render:function(e,t){var n,r=e.props,o=r.zoom,i=r.svgOrigin,a=r.groupable,s=e.getState(),l=s.beforeOrigin,u=s.rotation,c=s.svg,d=s.allMatrix,f=s.is3d,h=s.left,p=s.top,g=s.offsetWidth,m=s.offsetHeight;if(!a&&c&&i){var v=Yt(Gi(i,g,m),2);n=ui(u,o,Le(ni(d,[v[0],v[1]],f?4:3),[h,p]))}else n=ui(u,o,l);return[t.createElement("div",{className:Bo("control","origin"),style:n,key:"beforeOrigin"})]}});function pa(e){var t=e.scrollContainer;return[t.scrollLeft,t.scrollTop]}var ga={name:"scrollable",canPinch:!0,props:["scrollable","scrollContainer","scrollThreshold","scrollThrottleTime","getScrollPosition","scrollOptions"],events:["scroll","scrollGroup"],dragRelation:"strong",dragStart:function(e,t){var n=e.props,r=n.scrollContainer,o=void 0===r?e.getContainer():r,i=n.scrollOptions,a=new gt,s=Bi(o,!0);t.datas.dragScroll=a,e.state.dragScroll=a;var l=t.isControl?"controlGesto":"targetGesto",u=t.targets;a.on("scroll",(function(n){var r=n.container,o=n.direction,i=Ei(e,t,{scrollContainer:r,direction:o}),a=u?"onScrollGroup":"onScroll";u&&(i.targets=u),Ai(e,a,i)})).on("move",(function(t){var n=t.offsetX,r=t.offsetY,o=t.inputEvent;e[l].scrollBy(n,r,o.inputEvent,!1)})).on("scrollDrag",(function(t){(0,t.next)(e[l].getCurrentEvent())})),a.dragStart(t,qt({container:s},i))},checkScroll:function(e,t){var n=t.datas.dragScroll;if(n){var r=e.props,o=r.scrollContainer,i=void 0===o?e.getContainer():o,a=r.scrollThreshold,s=void 0===a?0:a,l=r.scrollThrottleTime,u=void 0===l?0:l,c=r.getScrollPosition,d=void 0===c?pa:c,f=r.scrollOptions;return n.drag(t,qt({container:i,threshold:s,throttleTime:u,getScrollPosition:function(e){return d({scrollContainer:e.container,direction:e.direction})}},f)),!0}},drag:function(e,t){return this.checkScroll(e,t)},dragEnd:function(e,t){t.datas.dragScroll.dragEnd(),t.datas.dragScroll=null},dragControlStart:function(e,t){return this.dragStart(e,qt(qt({},t),{isControl:!0}))},dragControl:function(e,t){return this.drag(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupStart:function(e,t){return this.dragStart(e,qt(qt({},t),{targets:e.props.targets}))},dragGroup:function(e,t){return this.drag(e,qt(qt({},t),{targets:e.props.targets}))},dragGroupEnd:function(e,t){return this.dragEnd(e,qt(qt({},t),{targets:e.props.targets}))},dragGroupControlStart:function(e,t){return this.dragStart(e,qt(qt({},t),{targets:e.props.targets,isControl:!0}))},dragGroupControl:function(e,t){return this.drag(e,qt(qt({},t),{targets:e.props.targets}))},dragGroupControEnd:function(e,t){return this.dragEnd(e,qt(qt({},t),{targets:e.props.targets}))},unset:function(e){var t,n=e.state;null===(t=n.dragScroll)||void 0===t||t.dragEnd(),n.dragScroll=null}},ma={name:"",props:["target","dragTargetSelf","dragTarget","dragContainer","container","warpSelf","rootContainer","useResizeObserver","useMutationObserver","zoom","dragFocusedInput","transformOrigin","ables","className","pinchThreshold","pinchOutside","triggerAblesSimultaneously","checkInput","cspNonce","translateZ","hideDefaultLines","props","flushSync","stopPropagation","preventClickEventOnDrag","preventClickDefault","viewContainer","persistData","useAccuratePosition","firstRenderState","linePadding","controlPadding","preventDefault","requestStyles"],events:["changeTargets"]},va=Xt("padding",{props:["padding"],render:function(e,t){var n=e.props;if(n.dragArea)return[];var r=Ji(n.padding||{}),o=r.left,i=r.top,a=r.right,s=r.bottom,l=e.getState(),u=l.renderPoses,c=[l.pos1,l.pos2,l.pos3,l.pos4],d=[];return o>0&&d.push([0,2]),i>0&&d.push([0,1]),a>0&&d.push([1,3]),s>0&&d.push([2,3]),d.map((function(e,n){var r=Yt(e,2),o=r[0],i=r[1],a=Ve([0,0],[100,0],[0,100],[100,100],c[o],c[i],u[o],u[i]);if(a.length)return t.createElement("div",{key:"padding".concat(n),className:Bo("padding"),style:{transform:Jo(a,!0)}})}))}}),ya=["nw","ne","se","sw"];function ba(e,t){var n=e[0]+e[1],r=n>t?t/n:1;return e[0]*=r,e[1]=t-e[1]*r,e}var wa=[1,2,5,6],xa=[0,3,4,7],Sa=[1,-1,-1,1],_a=[1,1,-1,-1];function Ea(e,t,n,r,o,i,a,s){void 0===o&&(o=0),void 0===i&&(i=0),void 0===a&&(a=n),void 0===s&&(s=r);var l=[],u=!1,c=e.filter((function(e){return!e.virtual})),d=c.map((function(e){var c=e.horizontal,d=e.vertical,f=e.pos;if(d&&!u&&(u=!0,l.push("/")),u){var h=Math.max(0,1===d?f[1]-i:s-f[1]);return l.push($i(h,r,t)),h}h=Math.max(0,1===c?f[0]-o:a-f[0]);return l.push($i(h,n,t)),h}));return{radiusPoses:c,styles:l,raws:d}}function ka(e){for(var t=[0,0],n=[0,0],r=e.length,o=0;o<r;++o){var i=e[o];i.sub&&(i.horizontal&&(0===t[1]&&(t[0]=o),t[1]=o-t[0]+1,n[0]=o+1),i.vertical&&(0===n[1]&&(n[0]=o),n[1]=o-n[0]+1))}return{horizontalRange:t,verticalRange:n}}function Ca(e,t,n,r,o,i,a){var s,l,u,c;void 0===i&&(i=[0,0]),void 0===a&&(a=!1);var d=e.indexOf("/"),f=(d>-1?e.slice(0,d):e).length,h=e.slice(0,f),p=e.slice(f+1),g=h.length,m=p.length,v=m>0,y=Yt(h,4),b=y[0],w=void 0===b?"0px":b,x=y[1],S=void 0===x?w:x,_=y[2],E=void 0===_?w:_,k=y[3],C=void 0===k?S:k,A=Yt(p,4),T=A[0],O=void 0===T?w:T,M=A[1],R=void 0===M?v?O:S:M,L=A[2],D=void 0===L?v?O:E:L,P=A[3],j=void 0===P?v?R:C:P,I=[w,S,E,C].map((function(e){return ee(e,t)})),$=[O,R,D,j].map((function(e){return ee(e,n)})),N=I.slice(),F=$.slice();s=Yt(ba([N[0],N[1]],t),2),N[0]=s[0],N[1]=s[1],l=Yt(ba([N[3],N[2]],t),2),N[3]=l[0],N[2]=l[1],u=Yt(ba([F[0],F[3]],n),2),F[0]=u[0],F[3]=u[1],c=Yt(ba([F[1],F[2]],n),2),F[1]=c[0],F[2]=c[1];var z=a?N:N.slice(0,Math.max(i[0],g)),B=a?F:F.slice(0,Math.max(i[1],m));return Kt(Kt([],Yt(z.map((function(e,t){var i=ya[t];return{virtual:t>=g,horizontal:Sa[t],vertical:0,pos:[r+e,o+(-1===_a[t]?n:0)],sub:!0,raw:I[t],direction:i}}))),!1),Yt(B.map((function(e,n){var i=ya[n];return{virtual:n>=m,horizontal:0,vertical:_a[n],pos:[r+(-1===Sa[n]?t:0),o+e],sub:!0,raw:$[n],direction:i}}))),!1)}var Aa=[[0,-1,"n"],[1,0,"e"]],Ta=[[-1,-1,"nw"],[0,-1,"n"],[1,-1,"ne"],[1,0,"e"],[1,1,"se"],[0,1,"s"],[-1,1,"sw"],[-1,0,"w"]];function Oa(e,t,n){var r=e.props.clipRelative,o=e.state,i=o.width,a=o.height,s=t,l=s.type,u=s.poses,c="rect"===l,d="circle"===l;if("polygon"===l)return n.map((function(e){return"".concat($i(e[0],i,r)," ").concat($i(e[1],a,r))}));if(c||"inset"===l){var f=n[1][1],h=n[3][0],p=n[7][0],g=n[5][1];if(c)return[f,h,g,p].map((function(e){return"".concat(e,"px")}));var m=[f,i-h,a-g,p].map((function(e,t){return $i(e,t%2?i:a,r)}));if(n.length>8){var v=Yt(Le(n[4],n[0]),2),y=v[0],b=v[1];m.push.apply(m,Kt(["round"],Yt(Ea(u.slice(8).map((function(e,t){return qt(qt({},e),{pos:n[t]})})),r,y,b,p,f,h,g).styles),!1))}return m}if(d||"ellipse"===l){var w=n[0],x=$i(Xi(n[1][1]-w[1]),d?Math.sqrt((i*i+a*a)/2):a,r);return(m=d?[x]:[$i(Xi(n[2][0]-w[0]),i,r),x]).push("at",$i(w[0],i,r),$i(w[1],a,r)),m}}function Ma(e,t,n,r){var o=[r,(r+t)/2,t],i=[e,(e+n)/2,n];return Ta.map((function(e){var t=Yt(e,3),n=t[0],r=t[1],a=t[2],s=o[n+1],l=i[r+1];return{vertical:Xi(r),horizontal:Xi(n),direction:a,pos:[s,l]}}))}function Ra(e){var t=[1/0,-1/0],n=[1/0,-1/0];return e.forEach((function(e){var r=e.pos;t[0]=Math.min(t[0],r[0]),t[1]=Math.max(t[1],r[0]),n[0]=Math.min(n[0],r[1]),n[1]=Math.max(n[1],r[1])})),[Xi(t[1]-t[0]),Xi(n[1]-n[0])]}function La(e,t,n,r,o){var i,a,s,l,u,c,d,f,h;if(e){var p=o;if(!p){var g=sr(e),m=g("clipPath");p="none"!==m?m:g("clip")}if(p&&"none"!==p&&"auto"!==p||(p=r)){var v=V(p),y=v.prefix,b=void 0===y?p:y,w=v.value,x=void 0===w?"":w,S="circle"===b,_=" ";if("polygon"===b){_=",";var E=(M=Z(x||"0% 0%, 100% 0%, 100% 100%, 0% 100%")).map((function(e){var r=Yt(e.split(" "),2),o=r[0],i=r[1];return{vertical:1,horizontal:1,pos:[ee(o,t),ee(i,n)]}})),k=wt(E.map((function(e){return e.pos})));return{type:b,clipText:p,poses:E,splitter:_,left:k.minX,right:k.maxX,top:k.minY,bottom:k.maxY}}if(S||"ellipse"===b){var C="",A="",T=0,O=0,M=U(x);if(S){var R;R=void 0===(a=(i=Yt(M,4))[0])?"50%":a,C=void 0===(s=i[2])?"50%":s,A=void 0===(l=i[3])?"50%":l,T=ee(R,Math.sqrt((t*t+n*n)/2)),O=T}else{var L,D;L=void 0===(c=(u=Yt(M,5))[0])?"50%":c,D=void 0===(d=u[1])?"50%":d,C=void 0===(f=u[3])?"50%":f,A=void 0===(h=u[4])?"50%":h,T=ee(L,t),O=ee(D,n)}var P=[ee(C,t),ee(A,n)];E=Kt([{vertical:1,horizontal:1,pos:P,direction:"nesw"}],Yt(Aa.slice(0,S?1:2).map((function(e){return{vertical:Xi(e[1]),horizontal:e[0],direction:e[2],sub:!0,pos:[P[0]+e[0]*T,P[1]+e[1]*O]}}))),!1);return{type:b,clipText:p,radiusX:T,radiusY:O,left:P[0]-T,top:P[1]-O,right:P[0]+T,bottom:P[1]+O,poses:E,splitter:_}}if("inset"===b){var j=(M=U(x||"0 0 0 0")).indexOf("round"),I=(j>-1?M.slice(0,j):M).length,$=M.slice(I+1),N=Yt(M.slice(0,I),4),F=N[0],z=N[1],B=void 0===z?F:z,H=N[2],W=void 0===H?F:H,q=N[3],Y=void 0===q?B:q,K=Yt([F,W].map((function(e){return ee(e,n)})),2),X=K[0],Q=K[1],J=Yt([Y,B].map((function(e){return ee(e,t)})),2),te=J[0],ne=J[1],re=t-ne,oe=n-Q,ie=Ca($,re-te,oe-X,te,X);return{type:"inset",clipText:p,poses:E=Kt(Kt([],Yt(Ma(X,re,oe,te)),!1),Yt(ie),!1),top:X,left:te,right:re,bottom:oe,radius:$,splitter:_}}if("rect"===b){_=",";var ae=Yt((M=Z(x||"0px, ".concat(t,"px, ").concat(n,"px, 0px"))).map((function(e){return G(e).value})),4),se=ae[0];return{type:"rect",clipText:p,poses:E=Ma(se,ne=ae[1],Q=ae[2],te=ae[3]),top:se,right:ne,bottom:Q,left:te,values:M,splitter:_}}}}}function Da(e,t){var n=Yt(Mn(e,t),2),r=n[0],o=n[1],i=t.datas,a=i.clipPath,s=i.clipIndex,l=a,u=l.type,c=l.poses,d=l.splitter,f=c.map((function(e){return e.pos}));if("polygon"===u)f.splice(s,0,[r,o]);else{if("inset"!==u)return;var h=wa.indexOf(s),p=xa.indexOf(s),g=c.length;if(function(e,t,n,r,o,i,a,s,l,u,c){void 0===u&&(u=0),void 0===c&&(c=0);var d=ka(e.slice(n)),f=d.horizontalRange,h=d.verticalRange;if(r>-1)for(var p=1===Sa[r]?i-u:s-i,g=f[1];g<=r;++g){var m=1===_a[g]?c:l,v=0;if(r===g?v=i:0===g?v=u+p:-1===Sa[g]&&(v=s-(t[n][0]-u)),e.splice(n+g,0,{horizontal:Sa[g],vertical:0,pos:[v,m]}),t.splice(n+g,0,[v,m]),0===g)break}else if(o>-1){var y=1===_a[o]?a-c:l-a;if(0===f[1]&&0===h[1]){var b=[u+y,c];e.push({horizontal:Sa[0],vertical:0,pos:b}),t.push(b)}var w=h[0];for(g=h[1];g<=o&&(v=1===Sa[g]?u:s,m=0,o===g?m=a:0===g?m=c+y:1===_a[g]?m=t[n+w][1]:-1===_a[g]&&(m=l-(t[n+w][1]-c)),e.push({horizontal:0,vertical:_a[g],pos:[v,m]}),t.push([v,m]),0!==g);++g);}}(c,f,8,h,p,r,o,f[4][0],f[4][1],f[0][0],f[0][1]),g===c.length)return}var m=Oa(e,a,f),v="".concat(u,"(").concat(m.join(d),")");Ai(e,"onClip",Ei(e,t,qt({clipEventType:"added",clipType:u,poses:f,clipStyles:m,clipStyle:v,distX:0,distY:0},Si({clipPath:v},t))))}function Pa(e,t){var n=t.datas,r=n.clipPath,o=n.clipIndex,i=r,a=i.type,s=i.poses,l=i.splitter,u=s.map((function(e){return e.pos})),c=u.length;if("polygon"===a)s.splice(o,1),u.splice(o,1);else{if("inset"!==a)return;if(o<8)return;if(function(e,t,n,r,o){void 0===o&&(o=t.length);var i=ka(e.slice(r)),a=i.horizontalRange,s=i.verticalRange,l=n-r,u=0;if(0===l)u=o;else if(l>0&&l<a[1])u=a[1]-l;else{if(!(l>=s[0]))return;u=s[0]+s[1]-l}e.splice(n,u),t.splice(n,u)}(s,u,o,8,c),c===s.length)return}var d=Oa(e,r,u),f="".concat(a,"(").concat(d.join(l),")");Ai(e,"onClip",Ei(e,t,qt({clipEventType:"removed",clipType:a,poses:u,clipStyles:d,clipStyle:f,distX:0,distY:0},Si({clipPath:f},t))))}var ja={name:"clippable",props:["clippable","defaultClipPath","customClipPath","keepRatio","clipRelative","clipArea","dragWithClip","clipTargetBounds","clipVerticalGuidelines","clipHorizontalGuidelines","clipSnapThreshold"],events:["clipStart","clip","clipEnd"],css:[".control.clip-control {\nbackground: #6d6;\ncursor: pointer;\n}\n.control.clip-control.clip-radius {\nbackground: #d66;\n}\n.line.clip-line {\nbackground: #6e6;\ncursor: move;\nz-index: 1;\n}\n.clip-area {\nposition: absolute;\ntop: 0;\nleft: 0;\n}\n.clip-ellipse {\nposition: absolute;\ncursor: move;\nborder: 1px solid #6d6;\nborder: var(--zoompx) solid #6d6;\nborder-radius: 50%;\ntransform-origin: 0px 0px;\n}",":host {\n--bounds-color: #d66;\n}",".guideline {\npointer-events: none;\nz-index: 2;\n}",".line.guideline.bounds {\nbackground: #d66;\nbackground: var(--bounds-color);\n}"],render:function(e,t){var n=e.props,r=n.customClipPath,o=n.defaultClipPath,i=n.clipArea,a=n.zoom,s=n.groupable,l=e.getState(),u=l.target,c=l.width,d=l.height,f=l.allMatrix,h=l.is3d,p=l.left,g=l.top,m=l.pos1,v=l.pos2,y=l.pos3,b=l.pos4,w=l.clipPathState,x=l.snapBoundInfos,S=l.rotation;if(!u||s)return[];var _=La(u,c,d,o||"inset",w||r);if(!_)return[];var E=h?4:3,k=_.type,C=_.poses.map((function(e){var t=ni(f,e.pos,E);return[t[0]-p,t[1]-g]})),A=[],T=[],O="rect"===k,M="inset"===k,R="polygon"===k;if(O||M||R){var L=M?C.slice(0,8):C;T=L.map((function(e,n){var r=0===n?L[L.length-1]:L[n-1],o=ie(r,e),i=si(r,e);return t.createElement("div",{key:"clipLine".concat(n),className:Bo("line","clip-line","snap-control"),"data-clip-index":n,style:{width:"".concat(i,"px"),transform:"translate(".concat(r[0],"px, ").concat(r[1],"px) rotate(").concat(o,"rad) scaleY(").concat(a,")")}})}))}if(A=C.map((function(e,n){return t.createElement("div",{key:"clipControl".concat(n),className:Bo("control","clip-control","snap-control"),"data-clip-index":n,style:{transform:"translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(S,"rad) scale(").concat(a,")")}})})),M&&A.push.apply(A,Kt([],Yt(C.slice(8).map((function(e,n){return t.createElement("div",{key:"clipRadiusControl".concat(n),className:Bo("control","clip-control","clip-radius","snap-control"),"data-clip-index":8+n,style:{transform:"translate(".concat(e[0],"px, ").concat(e[1],"px) rotate(").concat(S,"rad) scale(").concat(a,")")}})}))),!1)),"circle"===k||"ellipse"===k){var D=_.left,P=_.top,j=_.radiusX,I=_.radiusY,$=Yt(Le(ni(f,[D,P],E),ni(f,[0,0],E)),2),N=$[0],F=$[1],z="none";if(!i){for(var B=Math.max(10,j/5,I/5),H=[],W=0;W<=B;++W){var U=2*Math.PI/B*W;H.push([j+(j-a)*Math.cos(U),I+(I-a)*Math.sin(U)])}H.push([j,-2]),H.push([-2,-2]),H.push([-2,2*I+2]),H.push([2*j+2,2*I+2]),H.push([2*j+2,-2]),H.push([j,-2]),z="polygon(".concat(H.map((function(e){return"".concat(e[0],"px ").concat(e[1],"px")})).join(", "),")")}A.push(t.createElement("div",{key:"clipEllipse",className:Bo("clip-ellipse","snap-control"),style:{width:"".concat(2*j,"px"),height:"".concat(2*I,"px"),clipPath:z,transform:"translate(".concat(-p+N,"px, ").concat(-g+F,"px) ").concat(Jo(f))}}))}if(i){var Z=oi(Kt([m,v,y,b],Yt(C),!1)),V=Z.width,G=Z.height,q=Z.left,Y=Z.top;if(R||O||M){H=M?C.slice(0,8):C;A.push(t.createElement("div",{key:"clipArea",className:Bo("clip-area","snap-control"),style:{width:"".concat(V,"px"),height:"".concat(G,"px"),transform:"translate(".concat(q,"px, ").concat(Y,"px)"),clipPath:"polygon(".concat(H.map((function(e){return"".concat(e[0]-q,"px ").concat(e[1]-Y,"px")})).join(", "),")")}}))}}return x&&["vertical","horizontal"].forEach((function(e){var n=x[e],r="horizontal"===e;n.isSnap&&T.push.apply(T,Kt([],Yt(n.snap.posInfos.map((function(n,o){var i=n.pos,s=Le(ni(f,r?[0,i]:[i,0],E),[p,g]),l=Le(ni(f,r?[c,i]:[i,d],E),[p,g]);return pr(t,"",s,l,a,"clip".concat(e,"snap").concat(o),"guideline")}))),!1)),n.isBound&&T.push.apply(T,Kt([],Yt(n.bounds.map((function(n,o){var i=n.pos,s=Le(ni(f,r?[0,i]:[i,0],E),[p,g]),l=Le(ni(f,r?[c,i]:[i,d],E),[p,g]);return pr(t,"",s,l,a,"clip".concat(e,"bounds").concat(o),"guideline","bounds","bold")}))),!1))})),Kt(Kt([],Yt(A),!1),Yt(T),!1)},dragControlCondition:function(e,t){return t.inputEvent&&(t.inputEvent.target.getAttribute("class")||"").indexOf("clip")>-1},dragStart:function(e,t){var n=e.props.dragWithClip;return!(void 0===n||n)&&this.dragControlStart(e,t)},drag:function(e,t){return this.dragControl(e,qt(qt({},t),{isDragTarget:!0}))},dragEnd:function(e,t){return this.dragControlEnd(e,t)},dragControlStart:function(e,t){var n=e.state,r=e.props,o=r.defaultClipPath,i=r.customClipPath,a=n.target,s=n.width,l=n.height,u=t.inputEvent?t.inputEvent.target:null,c=u&&u.getAttribute("class")||"",d=t.datas,f=La(a,s,l,o||"inset",i);if(!f)return!1;var h=f.clipText;return!1===Ai(e,"onClipStart",Ei(e,t,{clipType:f.type,clipStyle:h,poses:f.poses.map((function(e){return e.pos}))}))?(d.isClipStart=!1,!1):(d.isControl=c&&c.indexOf("clip-control")>-1,d.isLine=c.indexOf("clip-line")>-1,d.isArea=c.indexOf("clip-area")>-1||c.indexOf("clip-ellipse")>-1,d.clipIndex=u?parseInt(u.getAttribute("data-clip-index"),10):-1,d.clipPath=f,d.isClipStart=!0,n.clipPathState=h,Rn(e,t),!0)},dragControl:function(e,t){var n,r,o,i=t.datas,a=t.originalDatas,s=t.isDragTarget;if(!i.isClipStart)return!1;var l=i,u=l.isControl,c=l.isLine,d=l.isArea,f=l.clipIndex,h=l.clipPath;if(!h)return!1;var p=ci(e.props,"clippable"),g=p.keepRatio,m=0,v=0,y=a.draggable,b=$n(t);s&&y?(n=Yt(y.prevBeforeDist,2),m=n[0],v=n[1]):(r=Yt(b,2),m=r[0],v=r[1]);var w=[m,v],x=e.state,S=x.width,_=x.height,E=!d&&!u&&!c,k=h.type,C=h.poses,A=h.splitter,T=C.map((function(e){return e.pos}));E&&(m=-m,v=-v);var O=!u||"nesw"===C[f].direction,M="inset"===k||"rect"===k,R=C.map((function(){return[0,0]}));if(u&&!O){var L=C[f],D=L.horizontal,P=L.vertical,j=[m*Xi(D),v*Xi(P)];R=function(e,t,n,r,o){var i=e[t],a=i.direction,s=i.sub,l=e.map((function(){return[0,0]})),u=a?a.split(""):[];if(r&&t<8){var c=u.filter((function(e){return"w"===e||"e"===e})),d=u.filter((function(e){return"n"===e||"s"===e})),f=c[0],h=d[0];l[t]=n;var p=Yt(Ra(e),2),g=p[0],m=p[1],v=g&&m?g/m:0;if(v&&o){var y=e[(t+4)%8].pos,b=[0,0];a.indexOf("w")>-1?b[0]=-1:a.indexOf("e")>-1&&(b[0]=1),a.indexOf("n")>-1?b[1]=-1:a.indexOf("s")>-1&&(b[1]=1);var w=Ui([g,m],n,v,b,!0),x=g+w[0],S=m+w[1],_=y[1],E=y[1],k=y[0],C=y[0];-1===b[0]?k=C-x:1===b[0]?C=k+x:(k-=x/2,C+=x/2),-1===b[1]?_=E-S:E=1===b[1]?_+S:(_=E-S/2)+S;var A=Ma(_,C,E,k);e.forEach((function(e,t){l[t][0]=A[t].pos[0]-e.pos[0],l[t][1]=A[t].pos[1]-e.pos[1]}))}else e.forEach((function(e,t){var r=e.direction;r&&(r.indexOf(f)>-1&&(l[t][0]=n[0]),r.indexOf(h)>-1&&(l[t][1]=n[1]))})),f&&(l[1][0]=n[0]/2,l[5][0]=n[0]/2),h&&(l[3][1]=n[1]/2,l[7][1]=n[1]/2)}else a&&!s?u.forEach((function(t){var r="n"===t||"s"===t;e.forEach((function(e,o){var i=e.direction,a=e.horizontal,s=e.vertical;i&&-1!==i.indexOf(t)&&(l[o]=[r||!a?0:n[0],r&&s?n[1]:0])}))})):l[t]=n;return l}(C,f,j,M,g)}else O&&(R=T.map((function(){return[m,v]})));var I=T.map((function(e,t){return Re(e,R[t])})),$=Kt([],Yt(I),!1);x.snapBoundInfos=null;var N="circle"===h.type,F="ellipse"===h.type;if(N||F){var z=Xi((re=oi(I)).bottom-re.top),B=Xi(F?re.right-re.left:z),H=I[0][1]+z,W=I[0][0]-B,U=I[0][0]+B;N&&($.push([U,re.bottom]),R.push([1,0])),$.push([re.left,H]),R.push([0,1]),$.push([W,re.bottom]),R.push([1,0])}var Z=ko((p.clipHorizontalGuidelines||[]).map((function(e){return ee("".concat(e),_)})),(p.clipVerticalGuidelines||[]).map((function(e){return ee("".concat(e),S)})),S,_),V=[],G=[];if(N||F)V=[$[4][0],$[2][0]],G=[$[1][1],$[3][1]];else if(M){var q=[$[0],$[2],$[4],$[6]],Y=[R[0],R[2],R[4],R[6]];V=q.filter((function(e,t){return Y[t][0]})).map((function(e){return e[0]})),G=q.filter((function(e,t){return Y[t][1]})).map((function(e){return e[1]}))}else V=$.filter((function(e,t){return R[t][0]})).map((function(e){return e[0]})),G=$.filter((function(e,t){return R[t][1]})).map((function(e){return e[1]}));var K=[0,0],X=to(Z,p.clipTargetBounds&&{left:0,top:0,right:S,bottom:_},V,G,5),Q=X.horizontal,J=X.vertical,te=Q.offset,ne=J.offset;if(Q.isBound&&(K[1]+=te),J.isBound&&(K[0]+=ne),(F||N)&&0===R[0][0]&&0===R[0][1]){var re,oe=(re=oi(I)).bottom-re.top,ie=F?re.right-re.left:oe;ie-=J.isBound?Xi(ne):0===J.snapIndex?-ne:ne,oe-=Q.isBound?Xi(te):0===Q.snapIndex?-te:te,N&&(ie=oe=Fr(J,Q)>0?oe:ie);var ae=$[0];$[1][1]=ae[1]-oe,$[2][0]=ae[0]+ie,$[3][1]=ae[1]+oe,$[4][0]=ae[0]-ie}else if(M&&g&&u){var se=Yt(Ra(C),2),le=se[0],ue=se[1],ce=le&&ue?le/ue:0,de=C[f].direction||"",fe=$[1][1];H=$[5][1],W=$[7][0],U=$[3][0];Xi(te)<=Xi(ne)?te=Ki(te)*Xi(ne)/ce:ne=Ki(ne)*Xi(te)*ce,de.indexOf("w")>-1?W-=ne:de.indexOf("e")>-1?U-=ne:(W+=ne/2,U-=ne/2),de.indexOf("n")>-1?fe-=te:de.indexOf("s")>-1?H-=te:(fe+=te/2,H-=te/2);var he=Ma(fe,U,H,W);$.forEach((function(e,t){var n;n=Yt(he[t].pos,2),e[0]=n[0],e[1]=n[1]}))}else $.forEach((function(e,t){var n=R[t];n[0]&&(e[0]-=ne),n[1]&&(e[1]-=te)}));var pe=Oa(e,h,I),ge="".concat(k,"(").concat(pe.join(A),")");if(x.clipPathState=ge,N||F)V=[$[4][0],$[2][0]],G=[$[1][1],$[3][1]];else if(M){V=(q=[$[0],$[2],$[4],$[6]]).map((function(e){return e[0]})),G=q.map((function(e){return e[1]}))}else V=$.map((function(e){return e[0]})),G=$.map((function(e){return e[1]}));if(x.snapBoundInfos=to(Z,p.clipTargetBounds&&{left:0,top:0,right:S,bottom:_},V,G,1),y){var me=x.is3d,ve=x.allMatrix,ye=me?4:3,be=K;s&&(be=[w[0]+K[0]-b[0],w[1]+K[1]-b[1]]),y.deltaOffset=Me(ve,[be[0],be[1],0,0],ye)}return Ai(e,"onClip",Ei(e,t,qt({clipEventType:"changed",clipType:k,poses:I,clipStyle:ge,clipStyles:pe,distX:m,distY:v},Si(((o={})["rect"===k?"clip":"clipPath"]=ge,o),t)))),!0},dragControlEnd:function(e,t){this.unset(e);var n=t.isDrag,r=t.datas,o=t.isDouble,i=r.isLine,a=r.isClipStart,s=r.isControl;return!!a&&(Ai(e,"onClipEnd",ki(e,t,{})),o&&(s?Pa(e,t):i&&Da(e,t)),o||n)},unset:function(e){e.state.clipPathState="",e.state.snapBoundInfos=null}},Ia={name:"originDraggable",props:["originDraggable","originRelative"],events:["dragOriginStart","dragOrigin","dragOriginEnd"],css:[":host[data-able-origindraggable] .control.origin {\npointer-events: auto;\n}"],dragControlCondition:function(e,t){return t.isRequest?"originDraggable"===t.requestAble:ce(t.inputEvent.target,Bo("origin"))},dragControlStart:function(e,t){var n=t.datas;Rn(e,t);var r=Ei(e,t,{dragStart:oo.dragStart(e,(new Tn).dragStart([0,0],t))}),o=Ai(e,"onDragOriginStart",r);return n.startOrigin=e.state.transformOrigin,n.startTargetOrigin=e.state.targetOrigin,n.prevOrigin=[0,0],n.isDragOrigin=!0,!1===o?(n.isDragOrigin=!1,!1):r},dragControl:function(e,t){var n=t.datas,r=t.isPinch,o=t.isRequest;if(!n.isDragOrigin)return!1;var i=Yt($n(t),2),a=i[0],s=i[1],l=e.state,u=l.width,c=l.height,d=l.offsetMatrix,f=l.targetMatrix,h=l.is3d,p=e.props.originRelative,g=void 0===p||p,m=h?4:3,v=[a,s];if(o){var y=t.distOrigin;(y[0]||y[1])&&(v=y)}var b=Re(n.startOrigin,v),w=Re(n.startTargetOrigin,v),x=Le(v,n.prevOrigin),S=Bn(d,f,b,m),_=e.getRect(),E=oi(ri(S,u,c,m)),k=[_.left-E.left,_.top-E.top];n.prevOrigin=v;var C=[$i(w[0],u,g),$i(w[1],c,g)].join(" "),A=oo.drag(e,An(t,e.state,k,!!r,!1)),T=Ei(e,t,qt(qt({width:u,height:c,origin:b,dist:v,delta:x,transformOrigin:C,drag:A},Si({transformOrigin:C,transform:A.transform},t)),{afterTransform:A.transform}));return Ai(e,"onDragOrigin",T),T},dragControlEnd:function(e,t){return!!t.datas.isDragOrigin&&(Ai(e,"onDragOriginEnd",ki(e,t,{})),!0)},dragGroupControlCondition:function(e,t){return this.dragControlCondition(e,t)},dragGroupControlStart:function(e,t){return!!this.dragControlStart(e,t)},dragGroupControl:function(e,t){var n=this.dragControl(e,t);return!!n&&(e.transformOrigin=n.transformOrigin,!0)},request:function(e){var t={},n=e.getRect(),r=0,o=0,i=n.transformOrigin,a=[0,0];return{isControl:!0,requestStart:function(){return{datas:t}},request:function(e){return"deltaOrigin"in e?(a[0]+=e.deltaOrigin[0],a[1]+=e.deltaOrigin[1]):"origin"in e?(a[0]=e.origin[0]-i[0],a[1]=e.origin[1]-i[1]):("x"in e?r=e.x-n.left:"deltaX"in e&&(r+=e.deltaX),"y"in e?o=e.y-n.top:"deltaY"in e&&(o+=e.deltaY)),{datas:t,distX:r,distY:o,distOrigin:a}},requestEnd:function(){return{datas:t,isDrag:!0}}}}};function $a(e,t,n,r,o){void 0===r&&(r=[0,0]);return Ca(e&&"0px"!==e?U(e):[],t,n,0,0,r,o)}function Na(e,t,n,r,o){var i=e.state,a=i.width,s=i.height,l=Ea(o,e.props.roundRelative,a,s),u=l.raws,c=l.styles,d=function(e,t){return void 0===t&&(t=e.map((function(e){return e.raw}))),{horizontals:e.map((function(e,n){return e.horizontal?t[n]:null})).filter((function(e){return null!=e})),verticals:e.map((function(e,n){return e.vertical?t[n]:null})).filter((function(e){return null!=e}))}}(l.radiusPoses,u),f=d.horizontals,h=d.verticals,p=c.join(" ");i.borderRadiusState=p;var g=Ei(e,t,qt({horizontals:f,verticals:h,borderRadius:p,width:a,height:s,delta:r,dist:n},Si({borderRadius:p},t)));return Ai(e,"onRound",g),g}function Fa(e){var t,n,r=e.getState().style,o=r.borderRadius||"";if(!o&&e.props.groupable){var i=e.moveables[0],a=e.getTargets()[0];a&&((null==i?void 0:i.props.target)===a?(o=null!==(n=null===(t=e.moveables[0])||void 0===t?void 0:t.state.style.borderRadius)&&void 0!==n?n:"",r.borderRadius=o):(o=Ti(a).borderRadius,r.borderRadius=o))}return o}var za={name:"roundable",props:["roundable","roundRelative","minRoundControls","maxRoundControls","roundClickable","roundPadding","isDisplayShadowRoundControls"],events:["roundStart","round","roundEnd","roundGroupStart","roundGroup","roundGroupEnd"],css:[".control.border-radius {\nbackground: #d66;\ncursor: pointer;\nz-index: 3;\n}",".control.border-radius.vertical {\nbackground: #d6d;\nz-index: 2;\n}",".control.border-radius.virtual {\nopacity: 0.5;\nz-index: 1;\n}",":host.round-line-clickable .line.direction {\ncursor: pointer;\n}"],className:function(e){var t=e.props.roundClickable;return!0===t||"line"===t?Bo("round-line-clickable"):""},requestStyle:function(){return["borderRadius"]},requestChildStyle:function(){return["borderRadius"]},render:function(e,t){var n=e.getState(),r=n.target,o=n.width,i=n.height,a=n.allMatrix,s=n.is3d,l=n.left,u=n.top,c=n.borderRadiusState,d=e.props,f=d.minRoundControls,h=void 0===f?[0,0]:f,p=d.maxRoundControls,g=void 0===p?[4,4]:p,m=d.zoom,v=d.roundPadding,y=void 0===v?0:v,b=d.isDisplayShadowRoundControls,w=d.groupable;if(!r)return null;var x=c||Fa(e),S=s?4:3,_=$a(x,o,i,h,!0);if(!_)return null;var E=0,k=0,C=w?[0,0]:[l,u];return _.map((function(e,n){var r=e.horizontal,o=e.vertical,i=e.direction||"",s=Kt([],Yt(e.pos),!1);k+=Math.abs(r),E+=Math.abs(o),r&&i.indexOf("n")>-1&&(s[1]-=y),o&&i.indexOf("w")>-1&&(s[0]-=y),r&&i.indexOf("s")>-1&&(s[1]+=y),o&&i.indexOf("e")>-1&&(s[0]+=y);var l=Le(ni(a,s,S),C),u=b&&"horizontal"!==b,c=e.vertical?E<=g[1]&&(u||!e.virtual):k<=g[0]&&(b||!e.virtual);return t.createElement("div",{key:"borderRadiusControl".concat(n),className:Bo("control","border-radius",e.vertical?"vertical":"",e.virtual?"virtual":""),"data-radius-index":n,style:{display:c?"block":"none",transform:"translate(".concat(l[0],"px, ").concat(l[1],"px) scale(").concat(m,")")}})}))},dragControlCondition:function(e,t){if(!t.inputEvent||t.isRequest)return!1;var n=t.inputEvent.target.getAttribute("class")||"";return n.indexOf("border-radius")>-1||n.indexOf("moveable-line")>-1&&n.indexOf("moveable-direction")>-1},dragGroupControlCondition:function(e,t){return this.dragControlCondition(e,t)},dragControlStart:function(e,t){var n=t.inputEvent,r=t.datas,o=n.target,i=o.getAttribute("class")||"",a=i.indexOf("border-radius")>-1,s=i.indexOf("moveable-line")>-1&&i.indexOf("moveable-direction")>-1,l=a?parseInt(o.getAttribute("data-radius-index"),10):-1,u=-1;if(s){var c=o.getAttribute("data-line-key")||"";c&&(u=parseInt(c.replace(/render-line-/g,""),10),isNaN(u)&&(u=-1))}if(!a&&!s)return!1;var d=Ei(e,t,{});if(!1===Ai(e,"onRoundStart",d))return!1;r.lineIndex=u,r.controlIndex=l,r.isControl=a,r.isLine=s,Rn(e,t);var f=e.props,h=f.roundRelative,p=f.minRoundControls,g=void 0===p?[0,0]:p,m=e.state,v=m.width,y=m.height;r.isRound=!0,r.prevDist=[0,0];var b=$a(Fa(e)||"",v,y,g,!0)||[];return r.controlPoses=b,m.borderRadiusState=Ea(b,h,v,y).styles.join(" "),d},dragControl:function(e,t){var n=t.datas,r=n.controlPoses;if(!n.isRound||!n.isControl||!r.length)return!1;var o=n.controlIndex,i=Yt($n(t),2),a=i[0],s=i[1],l=[a,s],u=Le(l,n.prevDist),c=e.props.maxRoundControls,d=void 0===c?[4,4]:c,f=e.state,h=f.width,p=f.height,g=r[o],m=g.vertical,v=g.horizontal,y=r.map((function(e){var t=e.horizontal,n=e.vertical,r=[t*v*l[0],n*m*l[1]];if(t){if(1===d[0])return r;if(d[0]<4&&t!==v)return r}else{if(0===d[1])return r[1]=n*v*l[0]/h*p,r;if(m){if(1===d[1])return r;if(d[1]<4&&n!==m)return r}}return[0,0]}));y[o]=l;var b=r.map((function(e,t){return qt(qt({},e),{pos:Re(e.pos,y[t])})}));return o<4?b.slice(0,o+1).forEach((function(e){e.virtual=!1})):b.slice(4,o+1).forEach((function(e){e.virtual=!1})),n.prevDist=[a,s],Na(e,t,l,u,b)},dragControlEnd:function(e,t){var n=e.state;n.borderRadiusState="";var r=t.datas,o=t.isDouble;if(!r.isRound)return!1;var i=r.isControl,a=r.controlIndex,s=r.isLine,l=r.lineIndex,u=r.controlPoses,c=u.filter((function(e){return e.virtual})).length,d=e.props.roundClickable,f=void 0===d||d;if(o&&f){if(!i||!0!==f&&"control"!==f){if(s&&(!0===f||"line"===f)){var h=Yt(Mn(e,t),2);!function(e,t,n,r){var o=e.filter((function(e){var t=e.virtual;return e.horizontal&&!t})).length,i=e.filter((function(e){var t=e.virtual;return e.vertical&&!t})).length,a=-1;if(0===t&&(0===o?a=0:1===o&&(a=1)),2===t&&(o<=2?a=2:o<=3&&(a=3)),3===t&&(0===i?a=4:i<4&&(a=7)),1===t&&(i<=1?a=5:i<=2&&(a=6)),-1!==a&&e[a].virtual){var s=e[a];!function(e,t){t<4?e.slice(0,t+1).forEach((function(e){e.virtual=!1})):(e[0].virtual&&(e[0].virtual=!1),e.slice(4,t+1).forEach((function(e){e.virtual=!1})))}(e,a),a<4?s.pos[0]=n:s.pos[1]=r}}(u,l,h[0],h[1])}}else!function(e,t){t<4?e.slice(t,4).forEach((function(e){e.virtual=!0})):e.slice(t).forEach((function(e){e.virtual=!0}))}(u,a);c!==u.filter((function(e){return e.virtual})).length&&Na(e,t,[0,0],[0,0],u)}var p=ki(e,t,{});return Ai(e,"onRoundEnd",p),n.borderRadiusState="",p},dragGroupControlStart:function(e,t){var n=this.dragControlStart(e,t);if(!n)return!1;var r=e.moveables,o=e.props.targets,i=lr(e,"roundable",t);return Ai(e,"onRoundGroupStart",qt({targets:e.props.targets,events:i.map((function(e,t){return qt(qt({},e),{target:o[t],moveable:r[t],currentTarget:r[t]})}))},n)),n},dragGroupControl:function(e,t){var n=this.dragControl(e,t);if(!n)return!1;var r=e.moveables,o=e.props.targets,i=lr(e,"roundable",t),a=qt({targets:e.props.targets,events:i.map((function(e,t){return qt(qt(qt({},e),{target:o[t],moveable:r[t],currentTarget:r[t]}),Si({borderRadius:n.borderRadius},e))}))},n);return Ai(e,"onRoundGroup",a),a},dragGroupControlEnd:function(e,t){var n=e.moveables,r=e.props.targets,o=lr(e,"roundable",t);Ci(e,"onRound",(function(t){var i=qt({targets:e.props.targets,events:o.map((function(e,o){return qt(qt(qt({},e),{target:r[o],moveable:n[o],currentTarget:n[o]}),Si({borderRadius:t.borderRadius},e))}))},t);Ai(e,"onRoundGroup",i)}));var i=this.dragControlEnd(e,t);if(!i)return!1;var a=qt({targets:e.props.targets,events:o.map((function(e,t){var o;return qt(qt({},e),{target:r[t],moveable:n[t],currentTarget:n[t],lastEvent:null===(o=e.datas)||void 0===o?void 0:o.lastEvent})}))},i);return Ai(e,"onRoundGroupEnd",a),a},unset:function(e){e.state.borderRadiusState=""}};var Ba={isPinch:!0,name:"beforeRenderable",props:[],events:["beforeRenderStart","beforeRender","beforeRenderEnd","beforeRenderGroupStart","beforeRenderGroup","beforeRenderGroupEnd"],dragRelation:"weak",setTransform:function(e,t){var n=e.state,r=n.is3d,o=n.targetMatrix,i=n.inlineTransform,a=r?"matrix3d(".concat(o.join(","),")"):"matrix(".concat(De(o,!0),")"),s=i&&"none"!==i?i:a;t.datas.startTransforms=function(e,t){var n=We(t?4:3);return e==="matrix".concat(t?"3d":"","(").concat(n.join(","),")")||"matrix(1,0,0,1,0,0)"===e}(s,r)?[]:U(s)},resetStyle:function(e){var t=e.datas;t.nextStyle={},t.nextTransforms=e.datas.startTransforms,t.nextTransformAppendedIndexes=[]},fillDragStartParams:function(e,t){return Ei(e,t,{setTransform:function(e){t.datas.startTransforms=$(e)?e:U(e)},isPinch:!!t.isPinch})},fillDragParams:function(e,t){return Ei(e,t,{isPinch:!!t.isPinch})},dragStart:function(e,t){this.setTransform(e,t),this.resetStyle(t),Ai(e,"onBeforeRenderStart",this.fillDragStartParams(e,t))},drag:function(e,t){t.datas.startTransforms||this.setTransform(e,t),this.resetStyle(t),Ai(e,"onBeforeRender",Ei(e,t,{isPinch:!!t.isPinch}))},dragEnd:function(e,t){t.datas.startTransforms||(this.setTransform(e,t),this.resetStyle(t)),Ai(e,"onBeforeRenderEnd",Ei(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag}))},dragGroupStart:function(e,t){var n=this;this.dragStart(e,t);var r=lr(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.setTransform(r,e),n.resetStyle(e),n.fillDragStartParams(r,e)}));Ai(e,"onBeforeRenderGroupStart",Ei(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,setTransform:function(){},events:i}))},dragGroup:function(e,t){var n=this;this.drag(e,t);var r=lr(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.resetStyle(e),n.fillDragParams(r,e)}));Ai(e,"onBeforeRenderGroup",Ei(e,t,{isPinch:!!t.isPinch,targets:e.props.targets,events:i}))},dragGroupEnd:function(e,t){this.dragEnd(e,t),Ai(e,"onBeforeRenderGroupEnd",Ei(e,t,{isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets}))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)}},Ha={name:"renderable",props:[],events:["renderStart","render","renderEnd","renderGroupStart","renderGroup","renderGroupEnd"],dragRelation:"weak",dragStart:function(e,t){Ai(e,"onRenderStart",Ei(e,t,{isPinch:!!t.isPinch}))},drag:function(e,t){Ai(e,"onRender",this.fillDragParams(e,t))},dragAfter:function(e,t){return this.drag(e,t)},dragEnd:function(e,t){Ai(e,"onRenderEnd",this.fillDragEndParams(e,t))},dragGroupStart:function(e,t){Ai(e,"onRenderGroupStart",Ei(e,t,{isPinch:!!t.isPinch,targets:e.props.targets}))},dragGroup:function(e,t){var n=this,r=lr(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragParams(r,e)}));Ai(e,"onRenderGroup",Ei(e,t,qt(qt({isPinch:!!t.isPinch,targets:e.props.targets,transform:qn(t),transformObject:{}},Si(Yn(t))),{events:i})))},dragGroupEnd:function(e,t){var n=this,r=lr(e,"beforeRenderable",t),o=e.moveables,i=r.map((function(e,t){var r=o[t];return n.fillDragEndParams(r,e)}));Ai(e,"onRenderGroupEnd",Ei(e,t,qt({isPinch:!!t.isPinch,isDrag:t.isDrag,targets:e.props.targets,events:i,transformObject:{},transform:qn(t)},Si(Yn(t)))))},dragControlStart:function(e,t){return this.dragStart(e,t)},dragControl:function(e,t){return this.drag(e,t)},dragControlAfter:function(e,t){return this.dragAfter(e,t)},dragControlEnd:function(e,t){return this.dragEnd(e,t)},dragGroupControlStart:function(e,t){return this.dragGroupStart(e,t)},dragGroupControl:function(e,t){return this.dragGroup(e,t)},dragGroupControlEnd:function(e,t){return this.dragGroupEnd(e,t)},fillDragParams:function(e,t){var n={};return Ke(Gn(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),Ei(e,t,qt({isPinch:!!t.isPinch,transformObject:n,transform:qn(t)},Si(Yn(t))))},fillDragEndParams:function(e,t){var n={};return Ke(Gn(t)||[]).forEach((function(e){n[e.name]=e.functionValue})),Ei(e,t,qt({isPinch:!!t.isPinch,isDrag:t.isDrag,transformObject:n,transform:qn(t)},Si(Yn(t))))}};function Wa(e,t,n,r,o,i,a){i.clientDistX=i.distX,i.clientDistY=i.distY;var s="Start"===o,l="End"===o,u="After"===o,c=e.state.target,d=i.isRequest,f=r.indexOf("Control")>-1;if(!c||s&&f&&!d&&e.areaElement===i.inputEvent.target)return!1;var h=Kt([],Yt(t),!1);if(d){var p=i.requestAble;h.some((function(e){return e.name===p}))||h.push.apply(h,Kt([],Yt(e.props.ables.filter((function(e){return e.name===p}))),!1))}if(!h.length||h.every((function(e){return e.dragRelation})))return!1;var g,m=i.inputEvent;l&&m&&(g=document.elementFromPoint(i.clientX,i.clientY)||m.target);var v=!1,y=function(){var e;v=!0,null===(e=i.stop)||void 0===e||e.call(i)},b=s&&(!e.targetGesto||!e.controlGesto||!e.targetGesto.isFlag()||!e.controlGesto.isFlag());b&&e.updateRect(o,!0,!1);var w=i.datas,x=f?"controlGesto":"targetGesto",S=e[x],_=function(t,n,r){if(!(n in t)||S!==e[x])return!1;var o=t.name,a=w[o]||(w[o]={});if(s&&(a.isEventStart=!r||!t[r]||t[r](e,i)),!a.isEventStart)return!1;var l=t[n](e,qt(qt({},i),{stop:y,datas:a,originalDatas:w,inputTarget:g}));return e._emitter.off(),s&&!1===l&&(a.isEventStart=!1),l};b&&h.forEach((function(t){t.unset&&t.unset(e)})),_(Ba,"drag".concat(r).concat(o));var E=0,k=0;n.forEach((function(t){if(v)return!1;var n="".concat(t).concat(r).concat(o),a="".concat(t).concat(r,"Condition");""!==o||d||ji(e.state,i);var l=h.filter((function(e){return e[n]})),u=(l=l.filter((function(e,t){return e.name&&l.indexOf(e)===t}))).filter((function(e){return _(e,n,a)})).length;v&&++E,u&&++k,!v&&s&&l.length&&!u&&(E+=l.filter((function(e){var t=e.name;return!!w[t].isEventStart&&"strong"!==e.dragRelation})).length?1:0)})),u&&!k||_(Ha,"drag".concat(r).concat(o));var C=S!==e[x]||E===n.length;if((l||v||C)&&(e.state.gestos={},e.moveables&&e.moveables.forEach((function(e){e.state.gestos={}})),h.forEach((function(t){t.unset&&t.unset(e)}))),s&&!C&&!d&&k&&e.props.preventDefault&&(null==i||i.preventDefault()),e.isUnmounted||C)return!1;(!s&&k&&!a||l)&&(e.props.flushSync||Ho)((function(){e.updateRect(l?o:"",!0,!1),e.forceUpdate()}));return s||l||u||!k||a||Wa(e,t,n,r,o+"After",i),!0}function Ua(e){return function(t){var n,r=t.inputEvent.target,o=e.areaElement,i=e._dragTarget;return!(!i||(null===(n=e.controlGesto)||void 0===n?void 0:n.isFlag()))&&(r===i||i.contains(r)||r===o||!e.isMoveableElement(r)&&!e.controlBox.contains(r)||ce(r,"moveable-area")||ce(r,"moveable-padding")||ce(r,"moveable-edgeDraggable"))}}function Za(e,t,n){var r=e.controlBox,o=[],i=e.props,a=i.dragArea,s=e.state.target,l=i.dragTarget;return o.push(r),a&&!l||o.push(t),!a&&l&&s&&t!==s&&i.dragTargetSelf&&o.push(s),Va(e,o,"targetAbles",n,{dragStart:Ua(e),pinchStart:Ua(e)})}function Va(e,t,n,r,o){void 0===o&&(o={});var i="targetAbles"===n,a=e.props,s=a.pinchOutside,l=a.pinchThreshold,u=a.preventClickEventOnDrag,c=a.preventClickDefault,d=a.checkInput,f=a.dragFocusedInput,h=a.preventDefault,p={preventDefault:void 0===h||h,preventRightClick:!0,preventWheelClick:!0,container:Bi(a.dragContainer,!0)||ye(e.getControlBoxElement()),pinchThreshold:l,pinchOutside:s,preventClickEventOnDrag:!!i&&u,preventClickEventOnDragStart:!!i&&c,preventClickEventByCondition:i?null:function(t){return e.controlBox.contains(t.target)},checkInput:!!i&&d,dragFocusedInput:f},g=new Ft(t,p),m="Control"===r;return["drag","pinch"].forEach((function(t){["Start","","End"].forEach((function(i){g.on("".concat(t).concat(i),(function(a){var s,l=a.eventType,u="drag"===t&&a.isPinch;if(!o[l]||o[l](a)){if(!u){var c="drag"===t?[t]:["drag",t],d=Kt([],Yt(e[n]),!1);Wa(e,d,c,r,i,a)?(e.props.stopPropagation||"Start"===i&&m)&&(null===(s=null==a?void 0:a.inputEvent)||void 0===s||s.stopPropagation()):a.stop()}}else a.stop()}))}))})),g}var Ga=function(){function e(e,t,n){var r=this;this.target=e,this.moveable=t,this.eventName=n,this.ables=[],this._onEvent=function(e){var t=r.eventName,n=r.moveable;n.state.disableNativeEvent||r.ables.forEach((function(r){r[t](n,{inputEvent:e})}))},e.addEventListener(n.toLowerCase(),this._onEvent)}return e.prototype.setAbles=function(e){this.ables=e},e.prototype.destroy=function(){this.target.removeEventListener(this.eventName.toLowerCase(),this._onEvent),this.target=null,this.moveable=null},e}();function qa(e,t,n,r){var o;void 0===n&&(n=t);var i=nr(e,t),a=i.matrixes,s=i.is3d,l=i.targetMatrix,u=i.transformOrigin,c=i.targetOrigin,d=i.offsetContainer,f=i.hasFixed,h=i.zoom,p=function(e,t){if(ir){var n=K(ir,(function(n){return n[0][0]==e&&n[0][1]==t}));if(n)return n[1]}var r=nr(e,t,!0);return ir&&ir.push([[e,t],r]),r}(d,n),g=p.matrixes,m=p.is3d,v=p.offsetContainer,y=p.zoom,b=r||m||s,w=b?4:3,x="svg"!==e.tagName.toLowerCase()&&"ownerSVGElement"in e,S=l,_=We(w),E=We(w),k=We(w),C=We(w),A=a.length,T=g.map((function(e){return qt(qt({},e),{matrix:e.matrix?Kt([],Yt(e.matrix),!1):void 0})})).reverse();a.reverse(),!s&&b&&(S=Te(S,3,4),Xo(a)),!m&&b&&Xo(T),T.forEach((function(e){E=Me(E,e.matrix,w)}));var O=n||ve(e),M=(null===(o=T[0])||void 0===o?void 0:o.target)||qo(O,O,!0).offsetParent,R=T.slice(1).reduce((function(e,t){return Me(e,t.matrix,w)}),We(w));a.forEach((function(e,t){if(A-2===t&&(k=_.slice()),A-1===t&&(C=_.slice()),!e.matrix){var n=function(e,t,n,r,o){var i,a=e.target,s=e.origin,l=t.matrix,u=di(a),c=u.offsetWidth,d=u.offsetHeight,f=n.getBoundingClientRect(),h=[0,0];n===ve(n)&&(h=Ko(a,!0));for(var p=a.getBoundingClientRect(),g=p.left-f.left+n.scrollLeft-(n.clientLeft||0)+h[0],m=p.top-f.top+n.scrollTop-(n.clientTop||0)+h[1],v=p.width,y=p.height,b=Oe(r,o,l),w=ii(b,c,d,r),x=w.left,S=w.top,_=w.width,E=w.height,k=ni(b,s,r),C=Le(k,[x,S]),A=[g+C[0]*v/_,m+C[1]*y/E],T=[0,0],O=0;++O<10;){var M=ke(o,r);i=Yt(Le(ni(M,A,r),ni(M,k,r)),2),T[0]=i[0],T[1]=i[1];var R=ii(Oe(r,o,Ze(T,r),l),c,d,r),L=R.left-g,D=R.top-m;if(Xi(L)<2&&Xi(D)<2)break;A[0]-=L,A[1]-=D}return T.map((function(e){return Math.round(e)}))}(e,a[t+1],M,w,Me(R,_,w));e.matrix=Ze(n,w)}_=Me(_,e.matrix,w)}));var L=!x&&s;S||(S=We(L?4:3));var D=Jo(x&&16===S.length?Te(S,4,3):S,L),P=E;return E=Ee(E,w,w),{hasZoom:1!==h||1!==y,hasFixed:f,matrixes:a,rootMatrix:E,originalRootMatrix:P,beforeMatrix:k,offsetMatrix:C,allMatrix:_,targetMatrix:S,targetTransform:D,inlineTransform:e.style.transform,transformOrigin:u,targetOrigin:c,is3d:b,offsetContainer:d,offsetRootContainer:v}}function Ya(e,t,n,r){void 0===n&&(n=t);var o=0,i=0,a=0,s={},l=di(e);if(e&&(o=l.offsetWidth,i=l.offsetHeight),e){var u=qa(e,t,n,r),c=On(u.allMatrix,u.transformOrigin,o,i);s=qt(qt({},u),c);var d=On(u.allMatrix,[50,50],100,100);a=fi([d.pos1,d.pos2],d.direction)}var f=r?4:3;return qt(qt(qt({hasZoom:!1,width:o,height:i,rotation:a},l),{originalRootMatrix:We(f),rootMatrix:We(f),beforeMatrix:We(f),offsetMatrix:We(f),allMatrix:We(f),targetMatrix:We(f),targetTransform:"",inlineTransform:"",transformOrigin:[0,0],targetOrigin:[0,0],is3d:!!r,left:0,top:0,right:0,bottom:0,origin:[0,0],pos1:[0,0],pos2:[0,0],pos3:[0,0],pos4:[0,0],direction:1,hasFixed:!1,offsetContainer:null,offsetRootContainer:null,matrixes:[]}),s)}function Ka(e,t,n,r,o,i){void 0===i&&(i=[]);var a=1,s=[0,0],l={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},u={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},c={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},d={left:0,top:0,width:0,height:0,right:0,bottom:0,clientLeft:0,clientTop:0,clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0},f=[0,0],h={},p=Ya(t,n,o,!0);if(t){var g=sr(t);i.forEach((function(e){h[e]=g(e)}));var m=p.is3d?4:3,v=On(p.offsetMatrix,Re(p.transformOrigin,Ce(p.targetMatrix,m)),p.width,p.height);a=v.direction,s=Re(v.origin,[v.left-p.left,v.top-p.top]),d=gi(p.offsetRootContainer);var y=qo(r,r,!0).offsetParent||p.offsetRootContainer;if(p.hasZoom){var b=On(Me(p.originalRootMatrix,p.allMatrix),p.transformOrigin,p.width,p.height),w=On(p.originalRootMatrix,Vo(sr(y)("transformOrigin")).map((function(e){return parseFloat(e)})),y.offsetWidth,y.offsetHeight);if(l=pi(b,d),c=pi(w,d,y,!0),e){var x=b.left,S=b.top;u=pi({left:x,top:S,bottom:S,right:S},d)}}else{l=gi(t),c=function(e){var t=null==or?void 0:or.get(e);if(t)return t;var n=gi(e,!0);return or&&or.set(e,n),n}(y),e&&(u=gi(e));var _=c.left,E=c.top,k=c.clientLeft,C=c.clientTop,A=[l.left-_,l.top-E];f=Le(Pi(p.rootMatrix,A,4),[k+p.left,C+p.top])}}return qt({targetClientRect:l,containerClientRect:c,moveableClientRect:u,rootContainerClientRect:d,beforeDirection:a,beforeOrigin:s,originalBeforeOrigin:s,target:t,style:h,offsetDelta:f},p)}function Xa(e){var t=e.pos1,n=e.pos2,r=e.pos3,o=e.pos4;if(!(t&&n&&r&&o))return null;var i=wt([t,n,r,o]),a=[i.minX,i.minY],s=Le(e.origin,a);return t=Le(t,a),n=Le(n,a),r=Le(r,a),o=Le(o,a),qt(qt({},e),{left:e.left,top:e.top,posDelta:a,pos1:t,pos2:n,pos3:r,pos4:o,origin:s,beforeOrigin:s,isPersisted:!0})}var Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=qt({container:null,gestos:{},renderLines:[[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]],[[0,0],[0,0]]],renderPoses:[[0,0],[0,0],[0,0],[0,0]],disableNativeEvent:!1,posDelta:[0,0]},Ka(null)),t.renderState={},t.enabledAbles=[],t.targetAbles=[],t.controlAbles=[],t.rotation=0,t.scale=[1,1],t.isMoveableMounted=!1,t.isUnmounted=!1,t.events={mouseEnter:null,mouseLeave:null},t._emitter=new ut,t._prevOriginalDragTarget=null,t._originalDragTarget=null,t._prevDragTarget=null,t._dragTarget=null,t._prevPropTarget=null,t._propTarget=null,t._prevDragArea=!1,t._isPropTargetChanged=!1,t._hasFirstTarget=!1,t._reiszeObserver=null,t._observerId=0,t._mutationObserver=null,t._rootContainer=null,t._viewContainer=null,t._viewClassNames=[],t._store={},t.checkUpdateRect=function(){if(!t.isDragging()){var e=t.props.parentMoveable;e?e.checkUpdateRect():(Q(t._observerId),t._observerId=X((function(){t.isDragging()||t.updateRect()})))}},t._onPreventClick=function(e){e.stopPropagation(),e.preventDefault()},t}return Gt(t,e),t.prototype.render=function(){var e=this.props,t=this.getState(),n=e.parentPosition,r=e.className,o=e.target,i=e.zoom,a=e.cspNonce,s=e.translateZ,l=e.cssStyled,u=e.groupable,c=e.linePadding,d=e.controlPadding;this._checkUpdateRootContainer(),this.checkUpdate(),this.updateRenderPoses();var f=Yt(n||[0,0],2),h=f[0],p=f[1],g=t.left,m=t.top,v=t.target,y=t.direction,b=t.hasFixed,w=t.offsetDelta,x=e.targets,_=this.isDragging(),E={};this.getEnabledAbles().forEach((function(e){E["data-able-".concat(e.name.toLowerCase())]=!0}));var k=this._getAbleClassName(),C=x&&x.length&&(v||u)||o||!this._hasFirstTarget&&this.state.isPersisted,A=this.controlBox||this.props.firstRenderState||this.props.persistData,T=[g-h,m-p];!u&&e.useAccuratePosition&&(T[0]+=w[0],T[1]+=w[1]);var O={position:b?"fixed":"absolute",display:C?"block":"none",visibility:A?"visible":"hidden",transform:"translate3d(".concat(T[0],"px, ").concat(T[1],"px, ").concat(s,")"),"--zoom":i,"--zoompx":"".concat(i,"px")};return c&&(O["--moveable-line-padding"]=c),d&&(O["--moveable-control-padding"]=d),Tt.createElement(l,qt({cspNonce:a,ref:S(this,"controlBox"),className:"".concat(Bo("control-box",-1===y?"reverse":"",_?"dragging":"")," ").concat(k," ").concat(r)},E,{onClick:this._onPreventClick,style:O}),this.renderAbles(),this._renderLines())},t.prototype.componentDidMount=function(){this.isMoveableMounted=!0,this.isUnmounted=!1;var e=this.props,t=e.parentMoveable,n=e.container;this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateTargets(),this._updateNativeEvents(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(this.props),n||t||this.state.isPersisted||(this.updateRect("",!1,!1),this.forceUpdate())},t.prototype.componentDidUpdate=function(e){this._checkUpdateRootContainer(),this._checkUpdateViewContainer(),this._updateNativeEvents(),this._updateTargets(),this._updateEvents(),this.updateCheckInput(),this._updateObserver(e)},t.prototype.componentWillUnmount=function(){var e,t;this.isMoveableMounted=!1,this.isUnmounted=!0,this._emitter.off(),null===(e=this._reiszeObserver)||void 0===e||e.disconnect(),null===(t=this._mutationObserver)||void 0===t||t.disconnect(),this._viewContainer&&this._changeAbleViewClassNames([]),xi(this,!1),xi(this,!0);var n=this.events;for(var r in n){var o=n[r];o&&o.destroy()}},t.prototype.getTargets=function(){var e=this.props.target;return e?[e]:[]},t.prototype.getAble=function(e){return K(this.props.ables||[],(function(t){return t.name===e}))},t.prototype.getContainer=function(){var e=this.props,t=e.parentMoveable,n=e.wrapperMoveable;return e.container||n&&n.getContainer()||t&&t.getContainer()||this.controlBox.parentElement},t.prototype.getControlBoxElement=function(){return this.controlBox},t.prototype.getDragElement=function(){return this._dragTarget},t.prototype.isMoveableElement=function(e){var t;return e&&((null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"class"))||"").indexOf(pn)>-1},t.prototype.dragStart=function(e){var t=this.targetGesto,n=this.controlGesto;return t&&Ua(this)({inputEvent:e})?t.isFlag()||t.triggerDragStart(e):n&&this.isMoveableElement(e.target)&&(n.isFlag()||n.triggerDragStart(e)),this},t.prototype.hitTest=function(e){var t,n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,l=n.targetClientRect;if(!r)return 0;if(we(e)){var u=e.getBoundingClientRect();t={left:u.left,top:u.top,width:u.width,height:u.height}}else t=qt({width:0,height:0},e);var c=t.left,d=t.top,f=t.width,h=t.height,p=bt([o,i,s,a],l),g=At(p,[[c,d],[c+f,d],[c+f,d+h],[c,d+h]]),m=yt(p);return g&&m?Math.min(100,g/m*100):0},t.prototype.isInside=function(e,t){var n=this.state,r=n.target,o=n.pos1,i=n.pos2,a=n.pos3,s=n.pos4,l=n.targetClientRect;return!!r&&xt([e,t],bt([o,i,s,a],l))},t.prototype.updateRect=function(e,t,n){void 0===n&&(n=!0);var r=this.props,o=!r.parentPosition&&!r.wrapperMoveable;o&&ar(!0);var i=r.parentMoveable,a=this.state.target||r.target,s=this.getContainer(),l=i?i._rootContainer:this._rootContainer,u=Ka(this.controlBox,a,s,s,l||s,this._getRequestStyles());if(!a&&this._hasFirstTarget&&r.persistData){var c=Xa(r.persistData);for(var d in c)u[d]=c[d]}o&&ar(),this.updateState(u,!i&&n)},t.prototype.isDragging=function(e){var t,n,r=this.targetGesto,o=this.controlGesto;return(null==r?void 0:r.isFlag())?!e||!!(null===(t=r.getEventData()[e])||void 0===t?void 0:t.isEventStart):!!(null==o?void 0:o.isFlag())&&(!e||!!(null===(n=o.getEventData()[e])||void 0===n?void 0:n.isEventStart))},t.prototype.updateTarget=function(e){this.updateRect(e,!0)},t.prototype.getRect=function(){var e=this.state,t=bi(this.state),n=Yt(t,4),r=n[0],o=n[1],i=n[2],a=n[3],s=oi(t),l=e.width,u=e.height,c=s.width,d=s.height,f=s.left,h=s.top,p=[e.left,e.top],g=Re(p,e.origin);return{width:c,height:d,left:f,top:h,pos1:r,pos2:o,pos3:i,pos4:a,offsetWidth:l,offsetHeight:u,beforeOrigin:Re(p,e.beforeOrigin),origin:g,transformOrigin:e.transformOrigin,rotation:this.getRotation()}},t.prototype.getManager=function(){return this},t.prototype.stopDrag=function(e){var t;e&&"target"!==e||(!1===(null==(t=this.targetGesto)?void 0:t.isIdle())&&wi(this,!1),null==t||t.stop());e&&"control"!==e||(!1===(null==(t=this.controlGesto)?void 0:t.isIdle())&&wi(this,!0),null==t||t.stop())},t.prototype.getRotation=function(){var e=this.state;return function(e,t,n){var r=ie(e,t)/Math.PI*180;return(r=n>=0?r:180-r)>=0?r:360+r}(e.pos1,e.pos2,e.direction)},t.prototype.request=function(e,t,n){void 0===t&&(t={});var r=this,o=r.props,i=o.parentMoveable||o.wrapperMoveable||r,a=i.props.ables,s=o.groupable,l=K(a,(function(t){return t.name===e}));if(this.isDragging()||!l||!l.request)return{request:function(){return this},requestEnd:function(){return this}};var u=l.request(r),c=n||t.isInstant,d=u.isControl?"controlAbles":"targetAbles",f="".concat(s?"Group":"").concat(u.isControl?"Control":""),h=Kt([],Yt(i[d]),!1),p={request:function(t){return Wa(r,h,["drag"],f,"",qt(qt({},u.request(t)),{requestAble:e,isRequest:!0}),c),p},requestEnd:function(){return Wa(r,h,["drag"],f,"End",qt(qt({},u.requestEnd()),{requestAble:e,isRequest:!0}),c),p}};return Wa(r,h,["drag"],f,"Start",qt(qt({},u.requestStart(t)),{requestAble:e,isRequest:!0}),c),c?p.request(t).requestEnd():p},t.prototype.getMoveables=function(){return[this]},t.prototype.destroy=function(){this.componentWillUnmount()},t.prototype.updateRenderPoses=function(){var e=this.getState(),t=this.props,n=t.padding,r=e.originalBeforeOrigin,o=e.transformOrigin,i=e.allMatrix,a=e.is3d,s=e.pos1,l=e.pos2,u=e.pos3,c=e.pos4,d=e.left,f=e.top,h=e.isPersisted,p=t.zoom||1;if(!n&&p<=1)return e.renderPoses=[s,l,u,c],void(e.renderLines=[[s,l],[l,c],[c,u],[u,s]]);var g=Ji(n||{}),m=g.left,v=g.top,y=g.bottom,b=g.right,w=a?4:3,x=Oe(w,Ze((h?o:this.controlBox&&t.groupable?r:Re(r,[d,f])).map((function(e){return-e})),w),i,Ze(o,w)),S=Ii(x,s,[-m,-v],w),_=Ii(x,l,[b,-v],w),E=Ii(x,u,[-m,y],w),k=Ii(x,c,[b,y],w);if(e.renderPoses=[S,_,E,k],e.renderLines=[[S,_],[_,k],[k,E],[E,S]],p){var C=p/2;e.renderLines=[[Ii(x,s,[-m-C,-v],w),Ii(x,l,[b+C,-v],w)],[Ii(x,l,[b,-v-C],w),Ii(x,c,[b,y+C],w)],[Ii(x,c,[b+C,y],w),Ii(x,u,[-m-C,y],w)],[Ii(x,u,[-m,y+C],w),Ii(x,s,[-m,-v-C],w)]]}},t.prototype.checkUpdate=function(){this._isPropTargetChanged=!1;var e=this.props,t=e.target,n=e.container,r=e.parentMoveable,o=this.state,i=o.target,a=o.container;if(i||t){this.updateAbles();var s=!Mi(i,t);if(s||!Mi(a,n)){var l=n||this.controlBox;l&&this.unsetAbles(),this.updateState({target:t,container:n}),!r&&l&&this.updateRect("End",!1,!1),this._isPropTargetChanged=s}}},t.prototype.waitToChangeTarget=function(){return new Promise((function(){}))},t.prototype.triggerEvent=function(e,t){var n=this.props;if(this._emitter.trigger(e,t),n.parentMoveable&&t.isRequest&&!t.isRequestChild)return n.parentMoveable.triggerEvent(e,t,!0);var r=n[e];return r&&r(t)},t.prototype.useCSS=function(e,t){var n=this.props.customStyledMap,r=e+t;return n[r]||(n[r]=Zt(e,t)),n[r]},t.prototype.getState=function(){var e,t=this.props;(t.target||(null===(e=t.targets)||void 0===e?void 0:e.length))&&(this._hasFirstTarget=!0);var n=this.controlBox,r=t.persistData,o=t.firstRenderState;if(o&&!n)return o;if(!this._hasFirstTarget&&r){var i=Xa(r);if(i)return this.updateState(i,!1),this.state}return this.state.isPersisted=!1,this.state},t.prototype.updateSelectors=function(){},t.prototype.unsetAbles=function(){var e=this;this.targetAbles.forEach((function(t){t.unset&&t.unset(e)}))},t.prototype.updateAbles=function(e,t){void 0===e&&(e=this.props.ables),void 0===t&&(t="");var n=this.props.triggerAblesSimultaneously,r=this.getEnabledAbles(e),o="drag".concat(t,"Start"),i="pinch".concat(t,"Start"),a="drag".concat(t,"ControlStart"),s=Oi(r,[o,i],n),l=Oi(r,[a],n);this.enabledAbles=r,this.targetAbles=s,this.controlAbles=l},t.prototype.updateState=function(e,t){if(t){if(this.isUnmounted)return;this.setState(e)}else{var n=this.state;for(var r in e)n[r]=e[r]}},t.prototype.getEnabledAbles=function(e){void 0===e&&(e=this.props.ables);var t=this.props;return e.filter((function(e){return e&&(e.always&&!1!==t[e.name]||t[e.name])}))},t.prototype.renderAbles=function(){var e,t,n,r,o=this,i=this.props.triggerAblesSimultaneously,a={createElement:Tt.createElement};return this.renderState={},(e=Li(Oi(this.getEnabledAbles(),["render"],i).map((function(e){return(0,e.render)(o,a)||[]}))).filter((function(e){return e})),t=function(e){return e.key},n=[],r={},e.forEach((function(o,i){var a=t(o,i,e),s=r[a];s||(s=[],r[a]=s,n.push(s)),s.push(o)})),n).map((function(e){return e[0]}))},t.prototype.updateCheckInput=function(){this.targetGesto&&(this.targetGesto.options.checkInput=this.props.checkInput)},t.prototype._getRequestStyles=function(){return this.getEnabledAbles().reduce((function(e,t){var n,r,o=null!==(r=null===(n=t.requestStyle)||void 0===n?void 0:n.call(t))&&void 0!==r?r:[];return Kt(Kt([],Yt(e),!1),Yt(o),!1)}),Kt([],Yt(this.props.requestStyles||[]),!1))},t.prototype._updateObserver=function(e){this._updateResizeObserver(e),this._updateMutationObserver(e)},t.prototype._updateEvents=function(){var e=this.controlBox,t=this.targetAbles.length,n=this.controlAbles.length,r=this._dragTarget;(!t&&this.targetGesto||this._isTargetChanged(!0))&&(xi(this,!1),this.updateState({gestos:{}})),n||xi(this,!0),r&&t&&!this.targetGesto&&(this.targetGesto=Za(this,r,"")),!this.controlGesto&&n&&(this.controlGesto=Va(this,e,"controlAbles","Control"))},t.prototype._updateTargets=function(){var e=this.props;this._prevPropTarget=this._propTarget,this._prevDragTarget=this._dragTarget,this._prevOriginalDragTarget=this._originalDragTarget,this._prevDragArea=e.dragArea,this._propTarget=e.target,this._originalDragTarget=e.dragTarget||e.target,this._dragTarget=Bi(this._originalDragTarget,!0)},t.prototype._renderLines=function(){var e=this.props,t=e.zoom,n=e.hideDefaultLines,r=e.hideChildMoveableDefaultLines,o=e.parentMoveable;if(n||o&&r)return[];var i=this.getState(),a={createElement:Tt.createElement};return i.renderLines.map((function(e,n){return pr(a,"",e[0],e[1],t,"render-line-".concat(n))}))},t.prototype._isTargetChanged=function(e){var t=this.props,n=t.dragTarget||t.target,r=this._prevOriginalDragTarget,o=this._prevDragArea,i=t.dragArea;return!i&&r!==n||(e||i)&&o!==i||this._prevPropTarget!=this._propTarget},t.prototype._updateNativeEvents=function(){var e=this,t=this.props.dragArea?this.areaElement:this.state.target,n=this.events,r=J(n);if(this._isTargetChanged())for(var o in n){var i=n[o];i&&i.destroy(),n[o]=null}if(t){var a=this.enabledAbles;r.forEach((function(r){var o=Oi(a,[r]),i=o.length>0,s=n[r];i?(s||(s=new Ga(t,e,r),n[r]=s),s.setAbles(o)):s&&(s.destroy(),n[r]=null)}))}},t.prototype._checkUpdateRootContainer=function(){var e=this.props.rootContainer;!this._rootContainer&&e&&(this._rootContainer=Bi(e,!0))},t.prototype._checkUpdateViewContainer=function(){var e=this.props.viewContainer;!this._viewContainer&&e&&(this._viewContainer=Bi(e,!0)),this._viewContainer&&this._changeAbleViewClassNames(Kt(Kt([],Yt(this._getAbleViewClassNames()),!1),[this.isDragging()?ua:""],!1))},t.prototype._changeAbleViewClassNames=function(e){var t=this._viewContainer,n=Ri(e.filter(Boolean),(function(e){return e})).map((function(e){return Yt(e,1)[0]})),r=this._viewClassNames,o=nt(r,n),i=o.removed,a=o.added;i.forEach((function(e){fe(t,r[e])})),a.forEach((function(e){de(t,n[e])})),this._viewClassNames=n},t.prototype._getAbleViewClassNames=function(){var e=this;return(this.getEnabledAbles().map((function(t){var n;return(null===(n=t.viewClassName)||void 0===n?void 0:n.call(t,e))||""})).join(" ")+" ".concat(this._getAbleClassName("-view"))).split(/\s+/g)},t.prototype._getAbleClassName=function(e){var t=this;void 0===e&&(e="");var n=this.getEnabledAbles(),r=this.targetGesto,o=this.controlGesto,i=(null==r?void 0:r.isFlag())?r.getEventData():{},a=(null==o?void 0:o.isFlag())?o.getEventData():{};return n.map((function(n){var r,o,s,l=n.name,u=(null===(r=n.className)||void 0===r?void 0:r.call(n,t))||"";return((null===(o=i[l])||void 0===o?void 0:o.isEventStart)||(null===(s=a[l])||void 0===s?void 0:s.isEventStart))&&(u+=" ".concat(Bo("".concat(l).concat(e,"-dragging")))),u.trim()})).filter(Boolean).join(" ")},t.prototype._updateResizeObserver=function(e){var t,n=this.props,r=n.target,o=ye(this.getControlBoxElement());if(o.ResizeObserver&&r&&n.useResizeObserver){if(e.target!==r||!this._reiszeObserver){var i=new o.ResizeObserver(this.checkUpdateRect);i.observe(r,{box:"border-box"}),this._reiszeObserver=i}}else null===(t=this._reiszeObserver)||void 0===t||t.disconnect()},t.prototype._updateMutationObserver=function(e){var t,n=this,r=this.props,o=r.target,i=ye(this.getControlBoxElement());if(i.MutationObserver&&o&&r.useMutationObserver){if(e.target!==o||!this._mutationObserver){var a=new i.MutationObserver((function(e){var t,r;try{for(var o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),i=o.next();!i.done;i=o.next()){var a=i.value;"attributes"===a.type&&"style"===a.attributeName&&n.checkUpdateRect()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}));a.observe(o,{attributes:!0}),this._mutationObserver=a}}else null===(t=this._mutationObserver)||void 0===t||t.disconnect()},t.defaultProps={dragTargetSelf:!1,target:null,dragTarget:null,container:null,rootContainer:null,origin:!0,parentMoveable:null,wrapperMoveable:null,isWrapperMounted:!1,parentPosition:null,warpSelf:!1,svgOrigin:"",dragContainer:null,useResizeObserver:!1,useMutationObserver:!1,preventDefault:!0,linePadding:0,controlPadding:0,ables:[],pinchThreshold:20,dragArea:!1,passDragArea:!1,transformOrigin:"",className:"",zoom:1,triggerAblesSimultaneously:!1,padding:{},pinchOutside:!0,checkInput:!1,dragFocusedInput:!1,groupable:!1,hideDefaultLines:!1,cspNonce:"",translateZ:0,cssStyled:null,customStyledMap:{},props:{},stopPropagation:!1,preventClickDefault:!1,preventClickEventOnDrag:!0,flushSync:Ho,firstRenderState:null,persistData:null,viewContainer:null,requestStyles:[],useAccuratePosition:!1},t}(Tt.PureComponent),Ja={name:"groupable",props:["defaultGroupRotate","useDefaultGroupRotate","defaultGroupOrigin","groupable","groupableProps","targetGroups","hideChildMoveableDefaultLines"],events:[],render:function(e,t){var n,r=e.props,o=r.targets||[],i=e.getState(),a=i.left,s=i.top,l=i.isPersisted,u=r.zoom||1,c=e.renderGroupRects,d=(null===(n=r.persistData)||void 0===n?void 0:n.children)||[];l?o=d.map((function(){return null})):d=[];var f=Yi(e,"parentPosition",[a,s],(function(e){return e.join(",")})),h=Yi(e,"requestStyles",e.getRequestChildStyles(),(function(e){return e.join(",")}));return e.moveables=e.moveables.slice(0,o.length),Kt(Kt([],Yt(o.map((function(n,o){return t.createElement(Qa,{key:"moveable"+o,ref:_(e,"moveables",o),target:n,origin:!1,requestStyles:h,cssStyled:r.cssStyled,customStyledMap:r.customStyledMap,useResizeObserver:r.useResizeObserver,useMutationObserver:r.useMutationObserver,hideChildMoveableDefaultLines:r.hideChildMoveableDefaultLines,parentMoveable:e,parentPosition:[a,s],persistData:d[o],zoom:u})}))),!1),Yt(Li(c.map((function(e,n){var r=[e.pos1,e.pos2,e.pos3,e.pos4];return[[0,1],[1,3],[3,2],[2,0]].map((function(e,o){var i=Yt(e,2),a=i[0],s=i[1];return pr(t,"",Le(r[a],f),Le(r[s],f),u,"group-rect-".concat(n,"-").concat(o))}))})))),!1)}},es=Xt("clickable",{props:["clickable"],events:["click","clickGroup"],always:!0,dragRelation:"weak",dragStart:function(){},dragControlStart:function(){},dragGroupStart:function(e,t){t.datas.inputTarget=t.inputEvent&&t.inputEvent.target},dragEnd:function(e,t){var n=e.props.target,r=t.inputEvent,o=t.inputTarget,i=!e.isMoveableElement(o)&&e.controlBox.contains(o);if(r&&o&&!t.isDrag&&!e.isMoveableElement(o)&&!i){var a=n.contains(o);Ai(e,"onClick",Ei(e,t,{isDouble:t.isDouble,inputTarget:o,isTarget:n===o,moveableTarget:e.props.target,containsTarget:a}))}},dragGroupEnd:function(e,t){var n=t.inputEvent,r=t.inputTarget;if(n&&r&&!t.isDrag&&!e.isMoveableElement(r)&&t.datas.inputTarget!==r){var o=e.props.targets,i=o.indexOf(r),a=i>-1,s=!1;-1===i&&(s=(i=Y(o,(function(e){return e.contains(r)})))>-1),Ai(e,"onClickGroup",Ei(e,t,{isDouble:t.isDouble,targets:o,inputTarget:r,targetIndex:i,isTarget:a,containsTarget:s,moveableTarget:o[i]}))}},dragControlEnd:function(e,t){this.dragEnd(e,t)},dragGroupControlEnd:function(e,t){this.dragEnd(e,t)}});function ts(e){var t=e.originalDatas.draggable;return t||(e.originalDatas.draggable={},t=e.originalDatas.draggable),qt(qt({},e),{datas:t})}var ns=Xt("edgeDraggable",{css:[".edge.edgeDraggable.line {\ncursor: move;\n}"],render:function(e,t){var n=e.props,r=n.edgeDraggable;return r?gr(t,"edgeDraggable",r,e.getState().renderPoses,n.zoom):[]},dragCondition:function(e,t){var n,r=e.props,o=null===(n=t.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!o)&&(!r.draggable&&ce(o,Bo("direction"))&&ce(o,Bo("edge"))&&ce(o,Bo("edgeDraggable")))},dragStart:function(e,t){return oo.dragStart(e,ts(t))},drag:function(e,t){return oo.drag(e,ts(t))},dragEnd:function(e,t){return oo.dragEnd(e,ts(t))},dragGroupCondition:function(e,t){var n,r=e.props,o=null===(n=t.inputEvent)||void 0===n?void 0:n.target;return!(!r.edgeDraggable||!o)&&(!r.draggable&&ce(o,Bo("direction"))&&ce(o,Bo("line")))},dragGroupStart:function(e,t){return oo.dragGroupStart(e,ts(t))},dragGroup:function(e,t){return oo.dragGroup(e,ts(t))},dragGroupEnd:function(e,t){return oo.dragGroupEnd(e,ts(t))},unset:function(e){return oo.unset(e)}}),rs={name:"individualGroupable",props:["individualGroupable","individualGroupableProps"],events:[]},os=[Ba,ma,zo,ea,oo,ns,lo,na,ia,mo,ga,va,ha,Ia,ja,za,Ja,rs,es,fa,Ha];function is(e,t){var n=Yt(e,3),r=n[0],o=n[1],i=n[2];return(r*t[0]+o*t[1]+i)/Math.sqrt(r*r+o*o)}function as(e,t){var n=Yt(e,2),r=n[0],o=n[1];return-r*t[0]-o*t[1]}function ss(e,t){return Math.max.apply(Math,Kt([],Yt(e.map((function(e){var n=Yt(e,4),r=n[0],o=n[1],i=n[2],a=n[3];return Math.max(r[t],o[t],i[t],a[t])}))),!1))}function ls(e,t){return Math.min.apply(Math,Kt([],Yt(e.map((function(e){var n=Yt(e,4),r=n[0],o=n[1],i=n[2],a=n[3];return Math.min(r[t],o[t],i[t],a[t])}))),!1))}function us(e,t){var n=t.map((function(t){if($(t)){var n=us(e,t),r=n.length;return r>1?n:1===r?n[0]:null}var o=K(e,(function(e){return e.manager.props.target===t}));return o?(o.finded=!0,o.manager):null})).filter(Boolean);return 1===n.length&&$(n[0])?n[0]:n}var cs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.differ=new st,t.moveables=[],t.transformOrigin="50% 50%",t.renderGroupRects=[],t._targetGroups=[],t._hasFirstTargets=!1,t}return Gt(t,e),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t.prototype.checkUpdate=function(){this._isPropTargetChanged=!1,this.updateAbles()},t.prototype.getTargets=function(){return this.props.targets},t.prototype.updateRect=function(e,t,n){var r;void 0===n&&(n=!0);var o=this.state;if(this.controlBox&&!o.isPersisted){ar(!0),this.moveables.forEach((function(t){t.updateRect(e,!1,!1)}));var i=this.props,a=this.moveables,s=o.target||i.target,l=a.map((function(e){return{finded:!1,manager:e}})),u=this.props.targetGroups||[],c=us(l,u),d=i.useDefaultGroupRotate;c.push.apply(c,Kt([],Yt(l.filter((function(e){return!e.finded})).map((function(e){return e.manager}))),!1));var f=[],h=!t||""!==e&&i.updateGroup,p=i.defaultGroupRotate||0;if(!this._hasFirstTargets){var g=null===(r=i.persistData)||void 0===r?void 0:r.rotation;null!=g&&(p=g)}var m=function e(t,n,r){var o=t.map((function(t){if($(t)){var r=e(t,n),o=[r.pos1,r.pos2,r.pos3,r.pos4];return f.push(r),{poses:o,rotation:r.rotation}}return{poses:bi(t.state),rotation:t.getRotation()}})),i=o.map((function(e){return e.rotation})),a=0,s=i[0],l=i.every((function(e){return Math.abs(s-e)<.1}));a=h?!d&&l?s:p:d||r||!l?n:s;var u=o.map((function(e){return e.poses})),c=function(e,t){var n,r,o,i=[0,0],a=[0,0],s=[0,0],l=[0,0],u=0,c=0;if(!e.length)return{pos1:i,pos2:a,pos3:s,pos4:l,minX:0,minY:0,maxX:0,maxY:0,width:u,height:c,rotation:t};var d=le(t,bn);if(d%90){var f=d/180*Math.PI,h=Math.tan(f),p=-1/h,g=[xn,Sn],m=[[0,0],[0,0]],v=[xn,Sn],y=[[0,0],[0,0]];e.forEach((function(e){e.forEach((function(e){var t=is([-h,1,0],e),n=is([-p,1,0],e);g[0]>t&&(m[0]=e,g[0]=t),g[1]<t&&(m[1]=e,g[1]=t),v[0]>n&&(y[0]=e,v[0]=n),v[1]<n&&(y[1]=e,v[1]=n)}))}));var b=Yt(m,2),w=b[0],x=b[1],S=Yt(y,2),_=S[0],E=S[1],k=[-h,1,as([-h,1],w)],C=[-h,1,as([-h,1],x)],A=[-p,1,as([-p,1],_)],T=[-p,1,as([-p,1],E)];n=Yt([[k,A],[k,T],[C,A],[C,T]].map((function(e){var t=Yt(e,2);return _t(t[0],t[1])[0]})),4),i=n[0],a=n[1],s=n[2],l=n[3],u=v[1]-v[0],c=g[1]-g[0]}else{var O=ls(e,0),M=ls(e,1),R=ss(e,0),L=ss(e,1);i=[O,M],a=[R,M],s=[O,L],l=[R,L],u=R-O,c=L-M,d%180&&(i=(r=Yt([s,i,l,a],4))[0],a=r[1],s=r[2],l=r[3],u=L-M,c=R-O)}d%360>180&&(i=(o=Yt([l,s,a,i],4))[0],a=o[1],s=o[2],l=o[3]);var D=wt([i,a,s,l]);return{pos1:i,pos2:a,pos3:s,pos4:l,width:u,height:c,minX:D.minX,minY:D.minY,maxX:D.maxX,maxY:D.maxY,rotation:t}}(u,a);return c}(c,this.rotation,!0);h&&(this.rotation=m.rotation,this.transformOrigin=i.defaultGroupOrigin||"50% 50%",this.scale=[1,1]),this._targetGroups=u,this.renderGroupRects=f;var v,y,b,w,x,S=this.transformOrigin,_=this.rotation,E=this.scale,k=m.width,C=m.height,A=m.minX,T=m.minY,O=(v=[[0,0],[k,0],[0,C],[k,C]],y=Gi(S,k,C),b=this.rotation/180*Math.PI,w=v.map((function(e){return Le(e,y)})),x=w.map((function(e){return Fe(e,b)})),{prev:w,next:x,result:x.map((function(e){return Re(e,y)}))}),M=wt(O.result),R=M.minX,L=M.minY,D=" rotate(".concat(_,"deg)")+" scale(".concat(Ki(E[0]),", ").concat(Ki(E[1]),")"),P="translate(".concat(-R,"px, ").concat(-L,"px)").concat(D);this.controlBox.style.transform="translate3d(".concat(A,"px, ").concat(T,"px, ").concat(this.props.translateZ||0,")"),s.style.cssText+="left:0px;top:0px;"+"transform-origin:".concat(S,";")+"width:".concat(k,"px;height:").concat(C,"px;")+"transform: ".concat(P),o.width=k,o.height=C;var j=this.getContainer(),I=Ka(this.controlBox,s,this.controlBox,this.getContainer(),this._rootContainer||j,[]),N=[I.left,I.top],F=Yt(bi(I),4),z=F[0],B=F[1],H=F[2],W=F[3],U=wt([z,B,H,W]),Z=[U.minX,U.minY],V=Ki(E[0]*E[1]);I.pos1=Le(z,Z),I.pos2=Le(B,Z),I.pos3=Le(H,Z),I.pos4=Le(W,Z),I.left=A-I.left+Z[0],I.top=T-I.top+Z[1],I.origin=Le(Re(N,I.origin),Z),I.beforeOrigin=Le(Re(N,I.beforeOrigin),Z),I.originalBeforeOrigin=Re(N,I.originalBeforeOrigin),I.transformOrigin=Le(Re(N,I.transformOrigin),Z),s.style.transform="translate(".concat(-R-Z[0],"px, ").concat(-L-Z[1],"px)")+D,ar(),this.updateState(qt(qt({},I),{posDelta:Z,direction:V,beforeDirection:V}),n)}},t.prototype.getRect=function(){return qt(qt({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.prototype.triggerEvent=function(t,n,r){if(r||t.indexOf("Group")>-1)return e.prototype.triggerEvent.call(this,t,n);this._emitter.trigger(t,n)},t.prototype.getRequestChildStyles=function(){return this.getEnabledAbles().reduce((function(e,t){var n,r,o=null!==(r=null===(n=t.requestChildStyle)||void 0===n?void 0:n.call(t))&&void 0!==r?r:[];return Kt(Kt([],Yt(e),!1),Yt(o),!1)}),[])},t.prototype.getMoveables=function(){return Kt([],Yt(this.moveables),!1)},t.prototype.updateAbles=function(){e.prototype.updateAbles.call(this,Kt(Kt([],Yt(this.props.ables),!1),[Ja],!1),"Group")},t.prototype._updateTargets=function(){e.prototype._updateTargets.call(this),this._originalDragTarget=this.props.dragTarget||this.areaElement,this._dragTarget=Bi(this._originalDragTarget,!0)},t.prototype._updateEvents=function(){var e=this.state,t=this.props,n=this._prevDragTarget,r=t.dragTarget||this.areaElement,o=t.targets,i=this.differ.update(o),a=i.added,s=i.changed,l=i.removed,u=a.length||l.length;(u||this._prevOriginalDragTarget!==this._originalDragTarget)&&(xi(this,!1),xi(this,!0),this.updateState({gestos:{}})),n!==r&&(e.target=null),e.target||(e.target=this.areaElement,this.controlBox.style.display="block"),e.target&&(this.targetGesto||(this.targetGesto=Za(this,this._dragTarget,"Group")),this.controlGesto||(this.controlGesto=Va(this,this.controlBox,"controlAbles","GroupControl")));var c=!Mi(e.container,t.container);c&&(e.container=t.container),(c||u||this.transformOrigin!==(t.defaultGroupOrigin||"50% 50%")||s.length||o.length&&!qi(this._targetGroups,t.targetGroups||[]))&&(this.updateRect(),this._hasFirstTargets=!0),this._isPropTargetChanged=!!u},t.prototype._updateObserver=function(){},t.defaultProps=qt(qt({},Qa.defaultProps),{transformOrigin:["50%","50%"],groupable:!0,dragArea:!0,keepRatio:!0,targets:[],defaultGroupRotate:0,defaultGroupOrigin:"50% 50%"}),t}(Qa),ds=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.moveables=[],t}return Gt(t,e),t.prototype.render=function(){var e,t=this,n=this.props,r=n.cspNonce,o=n.cssStyled,i=n.persistData,a=n.targets||[],s=a.length,l=this.isUnmounted||!s,u=null!==(e=null==i?void 0:i.children)&&void 0!==e?e:[];return l&&!s&&u.length?a=u.map((function(){return null})):l||(u=[]),Tt.createElement(o,{cspNonce:r,ref:S(this,"controlBox"),className:Bo("control-box")},a.map((function(e,r){var o,i,a=null!==(i=null===(o=n.individualGroupableProps)||void 0===o?void 0:o.call(n,e,r))&&void 0!==i?i:{};return Tt.createElement(Qa,qt({key:"moveable"+r,ref:_(t,"moveables",r)},n,a,{target:e,wrapperMoveable:t,isWrapperMounted:t.isMoveableMounted,persistData:u[r]}))})))},t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(){},t.prototype.getTargets=function(){return this.props.targets},t.prototype.updateRect=function(e,t,n){void 0===n&&(n=!0),ar(!0),this.moveables.forEach((function(r){r.updateRect(e,t,n)})),ar()},t.prototype.getRect=function(){return qt(qt({},e.prototype.getRect.call(this)),{children:this.moveables.map((function(e){return e.getRect()}))})},t.prototype.request=function(e,t,n){void 0===t&&(t={});var r=this.moveables.map((function(n){return n.request(e,qt(qt({},t),{isInstant:!1}),!1)})),o={request:function(e){return r.forEach((function(t){return t.request(e)})),this},requestEnd:function(){return r.forEach((function(e){return e.requestEnd()})),this}};return n||t.isInstant?o.request(t).requestEnd():o},t.prototype.dragStart=function(e){var t=e.target,n=K(this.moveables,(function(e){var n=e.getTargets()[0],r=e.getControlBoxElement(),o=e.getDragElement();return!(!n||!o)&&(o===t||o.contains(t)||o!==n&&n===t||n.contains(t)||r===t||r.contains(t))}));return n&&n.dragStart(e),this},t.prototype.hitTest=function(){return 0},t.prototype.isInside=function(){return!1},t.prototype.isDragging=function(){return!1},t.prototype.getDragElement=function(){return null},t.prototype.getMoveables=function(){return Kt([],Yt(this.moveables),!1)},t.prototype.updateRenderPoses=function(){},t.prototype.checkUpdate=function(){},t.prototype.triggerEvent=function(){},t.prototype.updateAbles=function(){},t.prototype._updateEvents=function(){},t.prototype._updateObserver=function(){},t}(Qa);function fs(e,t){var n=[];return e.forEach((function(e){e&&(N(e)?t[e]&&n.push.apply(n,Kt([],Yt(t[e]),!1)):$(e)?n.push.apply(n,Kt([],Yt(fs(e,t)),!1)):n.push(e))})),n}function hs(e,t){var n=[];return e.forEach((function(e){e&&(N(e)?t[e]&&n.push.apply(n,Kt([],Yt(t[e]),!1)):$(e)?n.push(hs(e,t)):n.push(e))})),n}function ps(e,t){return e.length!==t.length||e.some((function(e,n){var r=t[n];return!(!e&&!r)&&(e!=r&&(!$(e)||!$(r)||ps(e,r)))}))}var gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refTargets=[],t.selectorMap={},t._differ=new st,t._elementTargets=[],t._tmpRefTargets=[],t._tmpSelectorMap={},t._onChangeTargets=null,t}var n,r;return Gt(t,e),t.makeStyled=function(){var e={};this.getTotalAbles().forEach((function(t){var n=t.css;n&&n.forEach((function(t){e[t]=!0}))}));var t=J(e).join("\n");this.defaultStyled=Zt("div",function(e,t){return t.replace(/([^}{]*){/gm,(function(t,n){return n.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"}))}(pn,mn+t))},t.getTotalAbles=function(){return Kt([ma,Ja,rs,fa],Yt(this.defaultAbles),!1)},t.prototype.render=function(){var e,t=this.constructor;t.defaultStyled||t.makeStyled();var n=this.props,r=n.ables,o=n.props,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["ables","props"]),a=Yt(this._updateRefs(!0),2),s=a[0],l=a[1],u=fs(s,l),c=u.length>1,d=Kt(Kt([],Yt(t.getTotalAbles()),!1),Yt(r||[]),!1),f=qt(qt(qt({},i),o||{}),{ables:d,cssStyled:t.defaultStyled,customStyledMap:t.customStyledMap});this._elementTargets=u;var h=null,p=this.moveable,g=i.persistData;if((null==g?void 0:g.children)&&(c=!0),i.individualGroupable)return Tt.createElement(ds,qt({key:"individual-group",ref:S(this,"moveable")},f,{target:null,targets:u}));if(c){var m=hs(s,l);if(p&&!p.props.groupable&&!p.props.individualGroupable){var v=p.props.target;v&&u.indexOf(v)>-1&&(h=qt({},p.state))}return Tt.createElement(cs,qt({key:"group",ref:S(this,"moveable")},f,null!==(e=i.groupableProps)&&void 0!==e?e:{},{target:null,targets:u,targetGroups:m,firstRenderState:h}))}var y=u[0];if(p&&(p.props.groupable||p.props.individualGroupable)){var b=K(p.moveables||[],(function(e){return e.props.target===y}));b&&(h=qt({},b.state))}return Tt.createElement(Qa,qt({key:"single",ref:S(this,"moveable")},f,{target:y,firstRenderState:h}))},t.prototype.componentDidMount=function(){this._checkChangeTargets()},t.prototype.componentDidUpdate=function(){this._checkChangeTargets()},t.prototype.componentWillUnmount=function(){this.selectorMap={},this.refTargets=[]},t.prototype.getTargets=function(){var e,t;return null!==(t=null===(e=this.moveable)||void 0===e?void 0:e.getTargets())&&void 0!==t?t:[]},t.prototype.updateSelectors=function(){this.selectorMap={},this._updateRefs()},t.prototype.waitToChangeTarget=function(){var e,t=this;return this._onChangeTargets=function(){t._onChangeTargets=null,e()},new Promise((function(t){e=t}))},t.prototype.waitToChangeTargets=function(){return this.waitToChangeTarget()},t.prototype.getManager=function(){return this.moveable},t.prototype.getMoveables=function(){return this.moveable.getMoveables()},t.prototype.getDragElement=function(){return this.moveable.getDragElement()},t.prototype._updateRefs=function(e){var t=this.refTargets,n=Hi(this.props.target||this.props.targets),r="undefined"!=typeof document,o=ps(t,n),i=this.selectorMap,a={};return this.refTargets.forEach((function e(t){N(t)?i[t]?a[t]=i[t]:r&&(o=!0,a[t]=[].slice.call(document.querySelectorAll(t))):$(t)&&t.forEach(e)})),this._tmpRefTargets=n,this._tmpSelectorMap=a,[n,a,!e&&o]},t.prototype._checkChangeTargets=function(){var e,t,n;this.refTargets=this._tmpRefTargets,this.selectorMap=this._tmpSelectorMap;var r=this._differ.update(this._elementTargets),o=r.added,i=r.removed;(o.length||i.length)&&(null===(t=(e=this.props).onChangeTargets)||void 0===t||t.call(e,{moveable:this.moveable,targets:this._elementTargets}),null===(n=this._onChangeTargets)||void 0===n||n.call(this));var a=Yt(this._updateRefs(),3),s=a[0],l=a[1],u=a[2];this.refTargets=s,this.selectorMap=l,u&&this.forceUpdate()},t.defaultAbles=[],t.customStyledMap={},t.defaultStyled=null,function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([(n=Cn,void 0===r&&(r={}),function(e,t){n.forEach((function(n){var o=r[n]||n;o in e||(e[o]=function(){for(var e,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=(e=this[t])[n].apply(e,r);return i===this[t]?this:i})}))})],t.prototype,"moveable",void 0),t}(Tt.PureComponent),ms=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Gt(t,e),t.defaultAbles=os,t}(gs)},55837:(e,t,n)=>{"use strict";n.d(t,{zt:()=>c,dC:()=>S.unstable_batchedUpdates,wU:()=>w,I0:()=>g,v9:()=>y});var r=n(2784),o=r.createContext(null);var i=function(e){e()},a=function(){return i};var s={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=s;function o(){l.onStateChange&&l.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=a(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var l={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=s)},getListeners:function(){return r}};return l}var u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;const c=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),s=(0,r.useMemo)((function(){return t.getState()}),[t]);u((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,s]);var c=n||o;return r.createElement(c.Provider,{value:a},i)};n(73463),n(48570);n(7896);function d(){return(0,r.useContext)(o)}function f(e){void 0===e&&(e=o);var t=e===o?d:function(){return(0,r.useContext)(e)};return function(){return t().store}}var h=f();function p(e){void 0===e&&(e=o);var t=e===o?h:f(e);return function(){return t().dispatch}}var g=p(),m=function(e,t){return e===t};function v(e){void 0===e&&(e=o);var t=e===o?d:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=m);var o=t(),i=function(e,t,n,o){var i,a=(0,r.useReducer)((function(e){return e+1}),0)[1],s=(0,r.useMemo)((function(){return l(n,o)}),[n,o]),c=(0,r.useRef)(),d=(0,r.useRef)(),f=(0,r.useRef)(),h=(0,r.useRef)(),p=n.getState();try{if(e!==d.current||p!==f.current||c.current){var g=e(p);i=void 0!==h.current&&t(g,h.current)?h.current:g}else i=h.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return u((function(){d.current=e,f.current=p,h.current=i,c.current=void 0})),u((function(){function e(){try{var e=n.getState();if(e===f.current)return;var r=d.current(e);if(t(r,h.current))return;h.current=r,f.current=e}catch(e){c.current=e}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),i}(e,n,o.store,o.subscription);return(0,r.useDebugValue)(i),i}}var y=v();function b(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function w(e,t){if(b(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!b(e[n[o]],t[n[o]]))return!1;return!0}var x,S=n(28316);x=S.unstable_batchedUpdates,i=x},76034:(e,t,n)=>{"use strict";n.d(t,{rU:()=>F});var r,o=n(2784),i=n.t(o,2);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(r||(r={}));function s(e,t){if(!1===e||null==e)throw new Error(t)}function l(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function u(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var c;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(c||(c={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function d(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function f(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function h(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function p(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=u(e):(o=a({},e),s(!o.pathname||!o.pathname.includes("?"),f("?","pathname","search",o)),s(!o.pathname||!o.pathname.includes("#"),f("#","pathname","hash",o)),s(!o.search||!o.search.includes("#"),f("#","search","hash",o)));let i,l=""===e||""===o.pathname,c=l?"/":o.pathname;if(r||null==c)i=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?u(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:m(r),hash:v(o)}}(o,i),h=c&&"/"!==c&&c.endsWith("/"),p=(l||"."===c)&&n.endsWith("/");return d.pathname.endsWith("/")||!h&&!p||(d.pathname+="/"),d}const g=e=>e.join("/").replace(/\/\/+/g,"/"),m=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",v=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const y=["post","put","patch","delete"],b=(new Set(y),["get",...y]);new Set(b),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}const x=o.createContext(null);const S=o.createContext(null);const _=o.createContext(null);const E=o.createContext({outlet:null,matches:[],isDataRoute:!1});function k(){return null!=o.useContext(_)}function C(){return k()||s(!1),o.useContext(_).location}function A(e){o.useContext(S).static||o.useLayoutEffect(e)}function T(){let{isDataRoute:e}=o.useContext(E);return e?function(){let{router:e}=L(M.UseNavigateStable),t=D(R.UseNavigateStable),n=o.useRef(!1);return A((()=>{n.current=!0})),o.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,w({fromRouteId:t},o)))}),[e,t])}():function(){k()||s(!1);let e=o.useContext(x),{basename:t,navigator:n}=o.useContext(S),{matches:r}=o.useContext(E),{pathname:i}=C(),a=JSON.stringify(h(r).map((e=>e.pathnameBase))),l=o.useRef(!1);return A((()=>{l.current=!0})),o.useCallback((function(r,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=p(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:g([t,s.pathname])),(o.replace?n.replace:n.push)(s,o.state,o)}),[t,n,a,i,e])}()}function O(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=o.useContext(E),{pathname:i}=C(),a=JSON.stringify(h(r).map((e=>e.pathnameBase)));return o.useMemo((()=>p(e,JSON.parse(a),i,"path"===n)),[e,a,i,n])}o.Component;var M=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(M||{}),R=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(R||{});function L(e){let t=o.useContext(x);return t||s(!1),t}function D(e){let t=function(e){let t=o.useContext(E);return t||s(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||s(!1),n.route.id}i.startTransition;new Promise((()=>{}));o.Component;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P.apply(this,arguments)}function j(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const I=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];i.startTransition;const $="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F=o.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:a,replace:u,state:c,target:f,to:h,preventScrollReset:p}=e,m=j(e,I),{basename:v}=o.useContext(S),y=!1;if("string"==typeof h&&N.test(h)&&(n=h,$))try{let e=new URL(window.location.href),t=h.startsWith("//")?new URL(e.protocol+h):new URL(h),n=d(t.pathname,v);t.origin===e.origin&&null!=n?h=n+t.search+t.hash:y=!0}catch(e){}let b=function(e,t){let{relative:n}=void 0===t?{}:t;k()||s(!1);let{basename:r,navigator:i}=o.useContext(S),{hash:a,pathname:l,search:u}=O(e,{relative:n}),c=l;return"/"!==r&&(c="/"===l?r:g([r,l])),i.createHref({pathname:c,search:u,hash:a})}(h,{relative:i}),w=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:s}=void 0===t?{}:t,u=T(),c=C(),d=O(e,{relative:s});return o.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:l(c)===l(d);u(e,{replace:n,state:i,preventScrollReset:a,relative:s})}}),[c,u,d,r,i,n,e,a,s])}(h,{replace:u,state:c,target:f,preventScrollReset:p,relative:i});return o.createElement("a",P({},m,{href:n||b,onClick:y||a?r:function(e){r&&r(e),e.defaultPrevented||w(e)},ref:t,target:f}))}));var z,B;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(z||(z={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(B||(B={}))},45219:(e,t,n)=>{"use strict";n.d(t,{JN:()=>X,W6:()=>U,W8:()=>ee});var r=n(7896),o=n(96234),i=n(37584),a=n(9249),s=n(87371),l=n(11987),u=n(95058),c=n(45754),d=n(80753),f=n(56666),h=n(2784),p=n(13980),g=n.n(p),m=n(28316),v=n(47677),y=n.n(v),b=n(68079),w=function(){function e(){(0,a.Z)(this,e),(0,f.Z)(this,"refs",{})}return(0,s.Z)(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(x)}}]),e}();function x(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function S(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var _={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},E=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function k(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function C(e,t){e.style["".concat(E,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function A(e,t){e.style["".concat(E,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function T(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function O(e,t,n){return Math.max(e,Math.min(n,t))}function M(e){return"px"===e.substr(-2)?parseFloat(e):0}function R(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function L(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function D(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:P(e.parentNode,t,r)}}function j(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);y()(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=s[1]}return y()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function I(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:I(e.parentNode):null}var $=27,N=32,F=37,z=38,B=39,H=40,W={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function U(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return(0,a.Z)(this,n),(0,l.Z)(this,(0,u.Z)(n).apply(this,arguments))}return(0,c.Z)(n,t),(0,s.Z)(n,[{key:"componentDidMount",value:function(){(0,m.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return y()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=o.withRef?"wrappedInstance":null;return(0,h.createElement)(e,(0,r.Z)({ref:t},this.props))}}]),n}(h.Component),(0,f.Z)(t,"displayName",R("sortableHandle",e)),n}function Z(e){return null!=e.sortableHandle}var V=function(){function e(t,n){(0,a.Z)(this,e),this.container=t,this.onScrollCallback=n}return(0,s.Z)(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,s={x:0,y:0},l={x:1,y:1},u=10,c=10,d=this.container,f=d.scrollTop,h=d.scrollLeft,p=d.scrollHeight,g=d.scrollWidth,m=0===f,v=p-f-d.clientHeight==0,y=0===h,b=g-h-d.clientWidth==0;n.y>=o.y-a/2&&!v?(s.y=1,l.y=c*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!b?(s.x=1,l.x=u*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!m?(s.y=-1,l.y=c*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!y&&(s.x=-1,l.x=u*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var G={axis:g().oneOf(["x","y","xy"]),contentWindow:g().any,disableAutoscroll:g().bool,distance:g().number,getContainer:g().func,getHelperDimensions:g().func,helperClass:g().string,helperContainer:g().oneOfType([g().func,"undefined"==typeof HTMLElement?g().any:g().instanceOf(HTMLElement)]),hideSortableGhost:g().bool,keyboardSortingTransitionDuration:g().number,lockAxis:g().string,lockOffset:g().oneOfType([g().number,g().string,g().arrayOf(g().oneOfType([g().number,g().string]))]),lockToContainerEdges:g().bool,onSortEnd:g().func,onSortMove:g().func,onSortOver:g().func,onSortStart:g().func,pressDelay:g().number,pressThreshold:g().number,keyCodes:g().shape({lift:g().arrayOf(g().number),drop:g().arrayOf(g().number),cancel:g().arrayOf(g().number),up:g().arrayOf(g().number),down:g().arrayOf(g().number)}),shouldCancelStart:g().func,transitionDuration:g().number,updateBeforeSortStart:g().func,useDragHandle:g().bool,useWindowAsScrollContainer:g().bool},q={lift:[N],drop:[N],cancel:[$],up:[z,F],down:[H,B]},Y={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:q,shouldCancelStart:function(e){return-1!==[W.Input,W.Textarea,W.Select,W.Option,W.Button].indexOf(e.target.tagName)||!!T(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},K=Object.keys(G);function X(e){var t,n,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return(0,a.Z)(this,n),t=(0,l.Z)(this,(0,u.Z)(n).call(this,e)),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"state",{}),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handleStart",(function(e){var n=t.props,r=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=D(e);var i=T(e.target,(function(e){return null!=e.sortableInfo}));if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var a=t.props.useDragHandle,s=i.sortableInfo,l=s.index,u=s.collection;if(s.disabled)return;if(a&&!T(e.target,Z))return;t.manager.active={collection:u,index:l},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==W.Anchor||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handleMove",(function(e){var n=t.props,r=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=D(e),a={x:t.position.x-i.x,y:t.position.y-i.y},s=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||o&&!(s>=o)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n,r,o,c,m,v,y=h.sortableInfo.index,w=(n=h,{bottom:M((r=window.getComputedStyle(n)).marginBottom),left:M(r.marginLeft),right:M(r.marginRight),top:M(r.marginTop)}),x=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:M(t.gridColumnGap),y:M(t.gridRowGap)}:{x:0,y:0}}(t.container),S=t.scrollContainer.getBoundingClientRect(),E=s({index:y,node:h,collection:p});if(t.node=h,t.margin=w,t.gridGap=x,t.width=E.width,t.height=E.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=h.getBoundingClientRect(),t.containerBoundingRect=S,t.index=y,t.newIndex=y,t.axis={x:a.indexOf("x")>=0,y:a.indexOf("y")>=0},t.offsetEdge=P(h,t.container),t.initialOffset=D(g?(0,i.Z)({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((c="input, textarea, select, canvas, [contenteditable]",m=(o=h).querySelectorAll(c),v=o.cloneNode(!0),(0,b.Z)(v.querySelectorAll(c)).forEach((function(e,t){"file"!==e.type&&(e.value=m[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===W.Canvas&&m[t].width>0&&m[t].height>0&&e.getContext("2d").drawImage(m[t],0,0)})),v)),k(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-w.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-w.top,"px"),width:"".concat(t.width,"px")}),g&&t.helper.focus(),u&&(t.sortableGhost=h,k(h,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},g){var C=f?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,A=C.top,T=C.left,O=C.width,R=A+C.height,L=T+O;t.axis.x&&(t.minTranslate.x=T-t.boundingClientRect.left,t.maxTranslate.x=L-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=A-t.boundingClientRect.top,t.maxTranslate.y=R-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(f?0:S.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(f?t.contentWindow.innerWidth:S.left+S.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(f?0:S.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(f?t.contentWindow.innerHeight:S.top+S.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?h:t.contentWindow,g?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(_.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),_.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:y}),d&&d({node:h,index:y,collection:p,isKeySorting:g,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),g&&t.keyMove(0)},o=t.props,a=o.axis,s=o.getHelperDimensions,l=o.helperClass,u=o.hideSortableGhost,c=o.updateBeforeSortStart,d=o.onSortStart,f=o.useWindowAsScrollContainer,h=n.node,p=n.collection,g=t.manager.isKeySorting,m=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}((function(){var t=h.sortableInfo.index;return Promise.resolve(c({collection:p,index:t,node:h,isKeySorting:g},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return m&&m.then?m.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,o=n.onSortEnd,i=t.manager,a=i.active.collection,s=i.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(_.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),_.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&k(t.sortableGhost,{opacity:"",visibility:""});for(var u=0,c=l.length;u<c;u++){var d=l[u],f=d.node;d.edgeOffset=null,d.boundingClientRect=null,C(f,null),A(f,null),d.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:a,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:s,nodes:l},e),t.touched=!1})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=(0,i.Z)({},t.translate),o=0,a=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),a=t.translate.y-r.y),t.translate=r,C(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=a)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handleKeyDown",(function(e){var n=e.keyCode,r=t.props,o=r.shouldCancelStart,a=r.keyCodes,s=void 0===a?{}:a,l=(0,i.Z)({},q,s);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||l.lift.includes(n)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),l.lift.includes(n)&&!t.manager.active?t.keyLift(e):l.drop.includes(n)&&t.manager.active?t.keyDrop(e):l.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):l.up.includes(n)?t.keyMove(-1):l.down.includes(n)&&t.keyMove(1))})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"keyLift",(function(e){var n=e.target,r=T(n,(function(e){return null!=e.sortableInfo})).sortableInfo,o=r.index,i=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:o,collection:i},t.handlePress(e)})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,o=t.newIndex+e,i=t.newIndex;if(!(o<0||o>r)){t.prevIndex=i,t.newIndex=o;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),s=n.find((function(e){return e.node.sortableInfo.index===a})),l=s.node,u=t.containerScrollDelta,c=s.boundingClientRect||L(l,u),d=s.translate||{x:0,y:0},f=c.top+d.y-u.top,h=c.left+d.x-u.left,p=i<o,g=p&&t.axis.x?l.offsetWidth-t.width:0,m=p&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:h+g,pageY:f+m,ignoreTransition:0===e})}})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),(0,f.Z)((0,d.Z)((0,d.Z)(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,r=e.target,o=T(r,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(n?Z(r):r.sortableInfo)})),function(e){y()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=new w,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return(0,c.Z)(n,t),(0,s.Z)(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:I(e.container)||e.container,e.autoScroller=new V(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return _[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return _[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,i=t.lockToContainerEdges,a=t.transitionDuration,s=t.keyboardSortingTransitionDuration,l=void 0===s?a:s,u=this.manager.isKeySorting,c=e.ignoreTransition,d=D(e),f={x:d.x-this.initialOffset.x,y:d.y-this.initialOffset.y};if(f.y-=window.pageYOffset-this.initialWindowScroll.top,f.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=f,i){var h=function(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];y()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var a=(0,o.Z)(i,2),s=a[0],l=a[1];return[j({height:t,lockOffset:s,width:n}),j({height:t,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),p=(0,o.Z)(h,2),g=p[0],m=p[1],v={x:this.width/2-g.x,y:this.height/2-g.y},b={x:this.width/2-m.x,y:this.height/2-m.y};f.x=O(this.minTranslate.x+v.x,this.maxTranslate.x-b.x,f.x),f.y=O(this.minTranslate.y+v.y,this.maxTranslate.y-b.y,f.y)}"x"===n?f.y=0:"y"===n&&(f.x=0),u&&l&&!c&&A(this.helper,l),C(this.helper,f)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+o.left,l=this.offsetEdge.top+this.translate.y+o.top,u=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var d=0,f=a.length;d<f;d++){var h=a[d].node,p=h.sortableInfo.index,g=h.offsetWidth,m=h.offsetHeight,v={height:this.height>m?m/2:this.height/2,width:this.width>g?g/2:this.width/2},y=u&&p>this.index&&p<=c,b=u&&p<this.index&&p>=c,w={x:0,y:0},x=a[d].edgeOffset;x||(x=P(h,this.container),a[d].edgeOffset=x,u&&(a[d].boundingClientRect=L(h,o)));var S=d<a.length-1&&a[d+1],_=d>0&&a[d-1];S&&!S.edgeOffset&&(S.edgeOffset=P(S.node,this.container),u&&(S.boundingClientRect=L(S.node,o))),p!==this.index?(t&&A(h,t),this.axis.x?this.axis.y?b||p<this.index&&(s+i.left-v.width<=x.left&&l+i.top<=x.top+v.height||l+i.top+v.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-v.width&&S&&(w.x=S.edgeOffset.left-x.left,w.y=S.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=p)):(y||p>this.index&&(s+i.left+v.width>=x.left&&l+i.top+v.height>=x.top||l+i.top+v.height>=x.top+m))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+v.width&&_&&(w.x=_.edgeOffset.left-x.left,w.y=_.edgeOffset.top-x.top),this.newIndex=p):y||p>this.index&&s+i.left+v.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=p):(b||p<this.index&&s+i.left<=x.left+v.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=p)):this.axis.y&&(y||p>this.index&&l+i.top+v.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=p):(b||p<this.index&&l+i.top<=x.top+v.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=p))),C(h,w),a[d].translate=w):n&&(this.sortableGhost=h,k(h,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),u&&(this.newIndex=c);var E=u?this.prevIndex:c;r&&this.newIndex!==E&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:E,isKeySorting:u,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return y()(p.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,m.findDOMNode)(this):e(p.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=p.withRef?"wrappedInstance":null;return(0,h.createElement)(e,(0,r.Z)({ref:t},S(this.props,K)))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(h.Component),(0,f.Z)(t,"displayName",R("sortableList",e)),(0,f.Z)(t,"defaultProps",Y),(0,f.Z)(t,"propTypes",G),(0,f.Z)(t,"childContextTypes",{manager:g().object.isRequired}),n}var Q={index:g().number.isRequired,collection:g().oneOfType([g().number,g().string]),disabled:g().bool},J=Object.keys(Q);function ee(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return(0,a.Z)(this,n),(0,l.Z)(this,(0,u.Z)(n).apply(this,arguments))}return(0,c.Z)(n,t),(0,s.Z)(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,m.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return y()(o.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=o.withRef?"wrappedInstance":null;return(0,h.createElement)(e,(0,r.Z)({ref:t},S(this.props,J)))}}]),n}(h.Component),(0,f.Z)(t,"displayName",R("sortableElement",e)),(0,f.Z)(t,"contextTypes",{manager:g().object.isRequired}),(0,f.Z)(t,"propTypes",Q),(0,f.Z)(t,"defaultProps",{collection:0}),n}},6426:(e,t,n)=>{"use strict";n.d(t,{Ix:()=>W,vU:()=>R,Am:()=>ne});var r=n(2784),o=n(31461),i=n(88960);var a=n(28316);const s=!1,l=r.createContext(null);var u="unmounted",c="exited",d="entering",f="entered",h="exiting",p=function(e){var t,n;function p(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=c,r.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?u:c,r.state={status:o},r.nextCallback=null,r}n=e,(t=p).prototype=Object.create(n.prototype),t.prototype.constructor=t,(0,i.Z)(t,n),p.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:c}:null};var g=p.prototype;return g.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},g.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=h)}this.updateStatus(!1,t)},g.componentWillUnmount=function(){this.cancelNextCallback()},g.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},g.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},g.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[a.findDOMNode(this),r],i=o[0],l=o[1],u=this.getTimeouts(),c=r?u.appear:u.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,l),this.safeSetState({status:d},(function(){t.props.onEntering(i,l),t.onTransitionEnd(c,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(i,l)}))}))})))},g.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:h},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:c},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:c},(function(){e.props.onExited(r)}))},g.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},g.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},g.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},g.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},g.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,o.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(l.Provider,{value:null},"function"==typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},p}(r.Component);function g(){}p.contextType=l,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},p.UNMOUNTED=u,p.EXITED=c,p.ENTERING=d,p.ENTERED=f,p.EXITING=h;const m=p;function v(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=v(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const y=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=v(e))&&(r&&(r+=" "),r+=t);return r};function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function w(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function x(e){return"number"==typeof e&&!isNaN(e)}function S(e){return"boolean"==typeof e}function _(e){return"string"==typeof e}function E(e){return"function"==typeof e}function k(e){return _(e)||E(e)?e:null}function C(e){return 0===e||e}var A=!("undefined"==typeof window||!window.document||!window.document.createElement);function T(e){return(0,r.isValidElement)(e)||_(e)||E(e)||x(e)}var O={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"};function R(e){var t,n,o=e.enter,i=e.exit,a=e.duration,s=void 0===a?750:a,l=e.appendPosition,u=void 0!==l&&l,c=e.collapse,d=void 0===c||c,f=e.collapseDuration,h=void 0===f?300:f;return Array.isArray(s)&&2===s.length?(t=s[0],n=s[1]):t=n=s,function(e){var a=e.children,s=e.position,l=e.preventExitTransition,c=e.done,f=w(e,["children","position","preventExitTransition","done"]),p=u?o+"--"+s:o,g=u?i+"--"+s:i,v=function e(){var t=f.nodeRef.current;t&&(t.removeEventListener("animationend",e),d?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,o=e.style;requestAnimationFrame((function(){o.minHeight="initial",o.height=r+"px",o.transition="all "+n+"ms",requestAnimationFrame((function(){o.height="0",o.padding="0",o.margin="0",setTimeout((function(){return t()}),n)}))}))}(t,c,h):c())};return(0,r.createElement)(m,Object.assign({},f,{timeout:l?d?h:50:{enter:t,exit:d?n+h:n+50},onEnter:function(){var e=f.nodeRef.current;e&&(e.classList.add(p),e.style.animationFillMode="forwards",e.style.animationDuration=t+"ms")},onEntered:function(){var e=f.nodeRef.current;e&&(e.classList.remove(p),e.style.removeProperty("animationFillMode"),e.style.removeProperty("animationDuration"))},onExit:l?v:function(){var e=f.nodeRef.current;e&&(e.classList.add(g),e.style.animationFillMode="forwards",e.style.animationDuration=n+"ms",e.addEventListener("animationend",v))},unmountOnExit:!0}),a)}}var L={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach((function(e){return clearTimeout(e)})),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.list.has(e)&&this.list.get(e).forEach((function(n){var o=setTimeout((function(){n.apply(void 0,r)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(o)}))}};function D(e,t){void 0===t&&(t=!1);var n=(0,r.useRef)(e);return(0,r.useEffect)((function(){t&&(n.current=e)})),n.current}function P(e,t){switch(t.type){case"ADD":return[].concat(e,[t.toastId]).filter((function(e){return e!==t.staleId}));case"REMOVE":return C(t.toastId)?e.filter((function(e){return e!==t.toastId})):[]}}function j(e){var t=(0,r.useReducer)((function(e){return e+1}),0)[1],n=(0,r.useReducer)(P,[]),o=n[0],i=n[1],a=(0,r.useRef)(null),s=D(0),l=D([]),u=D({}),c=D({toastKey:1,displayedToast:0,props:e,containerId:null,isToastActive:d,getToast:function(e){return u[e]||null}});function d(e){return-1!==o.indexOf(e)}function f(e){var t=e.containerId,n=c.props,r=n.limit,o=n.enableMultiContainer;r&&(!t||c.containerId===t&&o)&&(s-=l.length,l=[])}function h(e){var t=l.length;if((s=C(e)?s-1:s-c.displayedToast)<0&&(s=0),t>0){var n=C(e)?1:c.props.limit;if(1===t||1===n)c.displayedToast++,p();else{var r=n>t?t:n;c.displayedToast=r;for(var o=0;o<r;o++)p()}}i({type:"REMOVE",toastId:e})}function p(){var e=l.shift(),t=e.toastContent,n=e.toastProps,r=e.staleId;setTimeout((function(){m(t,n,r)}),500)}function g(e,n){var o=n.delay,i=n.staleId,d=w(n,["delay","staleId"]);if(T(e)&&!function(e){var t=e.containerId,n=e.toastId,r=e.updateId;return!!(!a.current||c.props.enableMultiContainer&&t!==c.props.containerId||c.isToastActive(n)&&null==r)}(d)){var f=d.toastId,p=d.updateId,g=c.props,v=function(){return h(f)},y=!(0,c.isToastActive)(f);y&&s++;var b,C,A={toastId:f,updateId:p,key:d.key||c.toastKey++,type:d.type,closeToast:v,closeButton:d.closeButton,rtl:g.rtl,position:d.position||g.position,transition:d.transition||g.transition,className:k(d.className||g.toastClassName),bodyClassName:k(d.bodyClassName||g.bodyClassName),style:d.style||g.toastStyle,bodyStyle:d.bodyStyle||g.bodyStyle,onClick:d.onClick||g.onClick,pauseOnHover:S(d.pauseOnHover)?d.pauseOnHover:g.pauseOnHover,pauseOnFocusLoss:S(d.pauseOnFocusLoss)?d.pauseOnFocusLoss:g.pauseOnFocusLoss,draggable:S(d.draggable)?d.draggable:g.draggable,draggablePercent:x(d.draggablePercent)?d.draggablePercent:g.draggablePercent,closeOnClick:S(d.closeOnClick)?d.closeOnClick:g.closeOnClick,progressClassName:k(d.progressClassName||g.progressClassName),progressStyle:d.progressStyle||g.progressStyle,autoClose:(b=d.autoClose,C=g.autoClose,!1===b||x(b)&&b>0?b:C),hideProgressBar:S(d.hideProgressBar)?d.hideProgressBar:g.hideProgressBar,progress:d.progress,role:_(d.role)?d.role:g.role,deleteToast:function(){!function(e){delete u[e],t()}(f)}};E(d.onOpen)&&(A.onOpen=d.onOpen),E(d.onClose)&&(A.onClose=d.onClose);var O=g.closeButton;!1===d.closeButton||T(d.closeButton)?O=d.closeButton:!0===d.closeButton&&(O=!T(g.closeButton)||g.closeButton),A.closeButton=O;var M=e;(0,r.isValidElement)(e)&&!_(e.type)?M=(0,r.cloneElement)(e,{closeToast:v,toastProps:A}):E(e)&&(M=e({closeToast:v,toastProps:A})),g.limit&&g.limit>0&&s>g.limit&&y?l.push({toastContent:M,toastProps:A,staleId:i}):x(o)&&o>0?setTimeout((function(){m(M,A,i)}),o):m(M,A,i)}}function m(e,t,n){var r=t.toastId;u[r]={content:e,props:t},i({type:"ADD",toastId:r,staleId:n})}return(0,r.useEffect)((function(){return c.containerId=e.containerId,L.cancelEmit(3).on(0,g).on(1,(function(e){return a.current&&h(e)})).on(5,f).emit(2,c),function(){return L.emit(3,c)}}),[]),(0,r.useEffect)((function(){c.isToastActive=d,c.displayedToast=o.length,L.emit(4,o.length,e.containerId)}),[o]),(0,r.useEffect)((function(){c.props=e})),{getToastToRender:function(t){for(var n={},r=e.newestOnTop?Object.keys(u).reverse():Object.keys(u),o=0;o<r.length;o++){var i=u[r[o]],a=i.props.position;n[a]||(n[a]=[]),n[a].push(i)}return Object.keys(n).map((function(e){return t(e,n[e])}))},collection:u,containerRef:a,isToastActive:d}}function I(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function $(e){var t=(0,r.useState)(!0),n=t[0],o=t[1],i=(0,r.useState)(!1),a=i[0],s=i[1],l=(0,r.useRef)(null),u=D({start:0,x:0,y:0,deltaX:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),c=D(e,!0),d=e.autoClose,f=e.pauseOnHover,h=e.closeToast,p=e.onClick,g=e.closeOnClick;function m(t){var n=l.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.start=u.x=I(t.nativeEvent),u.removalDistance=n.offsetWidth*(e.draggablePercent/100)}function v(){if(u.boundingRect){var t=u.boundingRect,n=t.top,r=t.bottom,o=t.left,i=t.right;e.pauseOnHover&&u.x>=o&&u.x<=i&&u.y>=n&&u.y<=r?b():y()}}function y(){o(!0)}function b(){o(!1)}function w(e){e.preventDefault();var t=l.current;u.canDrag&&(n&&b(),u.x=I(e),u.deltaX=u.x-u.start,u.y=function(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}(e),u.start!==u.x&&(u.canCloseOnClick=!1),t.style.transform="translateX("+u.deltaX+"px)",t.style.opacity=""+(1-Math.abs(u.deltaX/u.removalDistance)))}function x(){var t=l.current;if(u.canDrag){if(u.canDrag=!1,Math.abs(u.deltaX)>u.removalDistance)return s(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translateX(0)",t.style.opacity="1"}}(0,r.useEffect)((function(){return E(e.onOpen)&&e.onOpen((0,r.isValidElement)(e.children)&&e.children.props),function(){E(c.onClose)&&c.onClose((0,r.isValidElement)(c.children)&&c.children.props)}}),[]),(0,r.useEffect)((function(){return e.draggable&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),document.addEventListener("touchmove",w),document.addEventListener("touchend",x)),function(){e.draggable&&(document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",x))}}),[e.draggable]),(0,r.useEffect)((function(){return e.pauseOnFocusLoss&&(window.addEventListener("focus",y),window.addEventListener("blur",b)),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}}),[e.pauseOnFocusLoss]);var S={onMouseDown:m,onTouchStart:m,onMouseUp:v,onTouchEnd:v};return d&&f&&(S.onMouseEnter=b,S.onMouseLeave=y),g&&(S.onClick=function(e){p&&p(e),u.canCloseOnClick&&h()}),{playToast:y,pauseToast:b,isRunning:n,preventExitTransition:a,toastRef:l,eventHandlers:S}}function N(e){var t=e.closeToast,n=e.type,o=e.ariaLabel,i=void 0===o?"close":o;return(0,r.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":i},(0,r.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,r.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 F(e){var t,n,o=e.delay,i=e.isRunning,a=e.closeToast,s=e.type,l=e.hide,u=e.className,c=e.style,d=e.controlledProgress,f=e.progress,h=e.rtl,p=e.isIn,g=b({},c,{animationDuration:o+"ms",animationPlayState:i?"running":"paused",opacity:l?0:1});d&&(g.transform="scaleX("+f+")");var m=["Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+s,(t={},t["Toastify__progress-bar--rtl"]=h,t)],v=E(u)?u({rtl:h,type:s,defaultClassName:y.apply(void 0,m)}):y.apply(void 0,[].concat(m,[u])),w=((n={})[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]=d&&f<1?null:function(){p&&a()},n);return(0,r.createElement)("div",Object.assign({className:v,style:g},w))}F.defaultProps={type:M.DEFAULT,hide:!1};var z=function(e){var t,n=$(e),o=n.isRunning,i=n.preventExitTransition,a=n.toastRef,s=n.eventHandlers,l=e.closeButton,u=e.children,c=e.autoClose,d=e.onClick,f=e.type,h=e.hideProgressBar,p=e.closeToast,g=e.transition,m=e.position,v=e.className,b=e.style,w=e.bodyClassName,x=e.bodyStyle,S=e.progressClassName,_=e.progressStyle,k=e.updateId,C=e.role,A=e.progress,T=e.rtl,O=e.toastId,M=e.deleteToast,R=["Toastify__toast","Toastify__toast--"+f,(t={},t["Toastify__toast--rtl"]=T,t)],L=E(v)?v({rtl:T,position:m,type:f,defaultClassName:y.apply(void 0,R)}):y.apply(void 0,[].concat(R,[v])),D=!!A;return(0,r.createElement)(g,{in:e.in,appear:!0,done:M,position:m,preventExitTransition:i,nodeRef:a},(0,r.createElement)("div",Object.assign({id:O,onClick:d,className:L||void 0},s,{style:b,ref:a}),(0,r.createElement)("div",Object.assign({},e.in&&{role:C},{className:E(w)?w({type:f}):y("Toastify__toast-body",w),style:x}),u),function(e){if(e){var t={closeToast:p,type:f};return E(e)?e(t):(0,r.isValidElement)(e)?(0,r.cloneElement)(e,t):void 0}}(l),(c||D)&&(0,r.createElement)(F,Object.assign({},k&&!D?{key:"pb-"+k}:{},{rtl:T,delay:c,isRunning:o,isIn:e.in,closeToast:p,hide:h,type:f,style:_,className:S,controlledProgress:D,progress:A}))))},B=R({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),H=function(e){var t=e.children,n=e.className,o=e.style,i=w(e,["children","className","style"]);return delete i.in,(0,r.createElement)("div",{className:n,style:o},r.Children.map(t,(function(e){return(0,r.cloneElement)(e,i)})))},W=function(e){var t=j(e),n=t.getToastToRender,o=t.containerRef,i=t.isToastActive,a=e.className,s=e.style,l=e.rtl,u=e.containerId;return(0,r.createElement)("div",{ref:o,className:"Toastify",id:u},n((function(e,t){var n,o,u={className:E(a)?a({position:e,rtl:l,defaultClassName:y("Toastify__toast-container","Toastify__toast-container--"+e,(n={},n["Toastify__toast-container--rtl"]=l,n))}):y("Toastify__toast-container","Toastify__toast-container--"+e,(o={},o["Toastify__toast-container--rtl"]=l,o),k(a)),style:0===t.length?b({},s,{pointerEvents:"none"}):b({},s)};return(0,r.createElement)(H,Object.assign({},u,{key:"container-"+e}),t.map((function(e){var t=e.content,n=e.props;return(0,r.createElement)(z,Object.assign({},n,{in:i(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?N:n.closeButton}),t)})))})))};W.defaultProps={position:O.TOP_RIGHT,transition:B,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:N,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,role:"alert"};var U,Z,V,G=new Map,q=[],Y=!1;function K(){return G.size>0}function X(e,t){var n=function(e){return K()?G.get(e||U):null}(t.containerId);return n?n.getToast(e):null}function Q(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function J(e){return e&&(_(e.toastId)||x(e.toastId))?e.toastId:Q()}function ee(e,t){return K()?L.emit(0,e,t):(q.push({content:e,options:t}),Y&&A&&(Y=!1,Z=document.createElement("div"),document.body.appendChild(Z),(0,a.render)((0,r.createElement)(W,Object.assign({},V)),Z))),t.toastId}function te(e,t){return b({},t,{type:t&&t.type||e,toastId:J(t)})}var ne=function(e,t){return ee(e,te(M.DEFAULT,t))};ne.success=function(e,t){return ee(e,te(M.SUCCESS,t))},ne.info=function(e,t){return ee(e,te(M.INFO,t))},ne.error=function(e,t){return ee(e,te(M.ERROR,t))},ne.warning=function(e,t){return ee(e,te(M.WARNING,t))},ne.dark=function(e,t){return ee(e,te(M.DARK,t))},ne.warn=ne.warning,ne.dismiss=function(e){return K()&&L.emit(1,e)},ne.clearWaitingQueue=function(e){return void 0===e&&(e={}),K()&&L.emit(5,e)},ne.isActive=function(e){var t=!1;return G.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},ne.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=X(e,t);if(n){var r=n.props,o=n.content,i=b({},r,t,{toastId:t.toastId||e,updateId:Q()});i.toastId!==e&&(i.staleId=e);var a=void 0!==i.render?i.render:o;delete i.render,ee(a,i)}}),0)},ne.done=function(e){ne.update(e,{progress:1})},ne.onChange=function(e){return E(e)&&L.on(4,e),function(){E(e)&&L.off(4,e)}},ne.configure=function(e){void 0===e&&(e={}),Y=!0,V=e},ne.POSITION=O,ne.TYPE=M,L.on(2,(function(e){U=e.containerId||e,G.set(U,e),q.forEach((function(e){L.emit(0,e.content,e.options)})),q=[]})).on(3,(function(e){G.delete(e.containerId||e),0===G.size&&L.off(0).off(1).off(5),A&&Z&&document.body.removeChild(Z)}))},20167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ia});var r=n(2784),o=n(13980),i=n.n(o),a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),s=new Uint8Array(16);function l(){if(!a)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(s)}for(var u=[],c=0;c<256;++c)u[c]=(c+256).toString(16).substr(1);const d=function(e,t){var n=t||0,r=u;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};const f=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||l)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||d(o)};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},k=function(e){return e&&e.Math==Math&&e},C=k("object"==typeof globalThis&&globalThis)||k("object"==typeof window&&window)||k("object"==typeof self&&self)||k("object"==typeof E&&E)||function(){return this}()||Function("return this")(),A={},T=function(e){try{return!!e()}catch(e){return!0}},O=!T((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=!T((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),R=M,L=Function.prototype.call,D=R?L.bind(L):function(){return L.apply(L,arguments)},P={},j={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,$=I&&!j.call({1:2},1);P.f=$?function(e){var t=I(this,e);return!!t&&t.enumerable}:j;var N,F,z=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B=M,H=Function.prototype,W=H.call,U=B&&H.bind.bind(W,W),Z=function(e){return B?U(e):function(){return W.apply(e,arguments)}},V=Z,G=V({}.toString),q=V("".slice),Y=function(e){return q(G(e),8,-1)},K=Y,X=Z,Q=function(e){if("Function"===K(e))return X(e)},J=T,ee=Y,te=Object,ne=Q("".split),re=J((function(){return!te("z").propertyIsEnumerable(0)}))?function(e){return"String"==ee(e)?ne(e,""):te(e)}:te,oe=function(e){return null==e},ie=oe,ae=TypeError,se=function(e){if(ie(e))throw ae("Can't call method on "+e);return e},le=re,ue=se,ce=function(e){return le(ue(e))},de="object"==typeof document&&document.all,fe={all:de,IS_HTMLDDA:void 0===de&&void 0!==de},he=fe.all,pe=fe.IS_HTMLDDA?function(e){return"function"==typeof e||e===he}:function(e){return"function"==typeof e},ge=pe,me=fe.all,ve=fe.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:ge(e)||e===me}:function(e){return"object"==typeof e?null!==e:ge(e)},ye=C,be=pe,we=function(e,t){return arguments.length<2?(n=ye[e],be(n)?n:void 0):ye[e]&&ye[e][t];var n},xe=Q({}.isPrototypeOf),Se=C,_e=we("navigator","userAgent")||"",Ee=Se.process,ke=Se.Deno,Ce=Ee&&Ee.versions||ke&&ke.version,Ae=Ce&&Ce.v8;Ae&&(F=(N=Ae.split("."))[0]>0&&N[0]<4?1:+(N[0]+N[1])),!F&&_e&&(!(N=_e.match(/Edge\/(\d+)/))||N[1]>=74)&&(N=_e.match(/Chrome\/(\d+)/))&&(F=+N[1]);var Te=F,Oe=T,Me=!!Object.getOwnPropertySymbols&&!Oe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Te&&Te<41})),Re=Me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Le=we,De=pe,Pe=xe,je=Object,Ie=Re?function(e){return"symbol"==typeof e}:function(e){var t=Le("Symbol");return De(t)&&Pe(t.prototype,je(e))},$e=String,Ne=pe,Fe=function(e){try{return $e(e)}catch(e){return"Object"}},ze=TypeError,Be=function(e){if(Ne(e))return e;throw ze(Fe(e)+" is not a function")},He=Be,We=oe,Ue=D,Ze=pe,Ve=ve,Ge=TypeError,qe={exports:{}},Ye=C,Ke=Object.defineProperty,Xe=function(e,t){try{Ke(Ye,e,{value:t,configurable:!0,writable:!0})}catch(n){Ye[e]=t}return t},Qe=Xe,Je="__core-js_shared__",et=C[Je]||Qe(Je,{}),tt=et;(qe.exports=function(e,t){return tt[e]||(tt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var nt=se,rt=Object,ot=function(e){return rt(nt(e))},it=ot,at=Q({}.hasOwnProperty),st=Object.hasOwn||function(e,t){return at(it(e),t)},lt=Q,ut=0,ct=Math.random(),dt=lt(1..toString),ft=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dt(++ut+ct,36)},ht=C,pt=qe.exports,gt=st,mt=ft,vt=Me,yt=Re,bt=pt("wks"),wt=ht.Symbol,xt=wt&&wt.for,St=yt?wt:wt&&wt.withoutSetter||mt,_t=function(e){if(!gt(bt,e)||!vt&&"string"!=typeof bt[e]){var t="Symbol."+e;vt&&gt(wt,e)?bt[e]=wt[e]:bt[e]=yt&&xt?xt(t):St(t)}return bt[e]},Et=D,kt=ve,Ct=Ie,At=function(e,t){var n=e[t];return We(n)?void 0:He(n)},Tt=function(e,t){var n,r;if("string"===t&&Ze(n=e.toString)&&!Ve(r=Ue(n,e)))return r;if(Ze(n=e.valueOf)&&!Ve(r=Ue(n,e)))return r;if("string"!==t&&Ze(n=e.toString)&&!Ve(r=Ue(n,e)))return r;throw Ge("Can't convert object to primitive value")},Ot=TypeError,Mt=_t("toPrimitive"),Rt=function(e,t){if(!kt(e)||Ct(e))return e;var n,r=At(e,Mt);if(r){if(void 0===t&&(t="default"),n=Et(r,e,t),!kt(n)||Ct(n))return n;throw Ot("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tt(e,t)},Lt=Ie,Dt=function(e){var t=Rt(e,"string");return Lt(t)?t:t+""},Pt=ve,jt=C.document,It=Pt(jt)&&Pt(jt.createElement),$t=function(e){return It?jt.createElement(e):{}},Nt=$t,Ft=!O&&!T((function(){return 7!=Object.defineProperty(Nt("div"),"a",{get:function(){return 7}}).a})),zt=O,Bt=D,Ht=P,Wt=z,Ut=ce,Zt=Dt,Vt=st,Gt=Ft,qt=Object.getOwnPropertyDescriptor;A.f=zt?qt:function(e,t){if(e=Ut(e),t=Zt(t),Gt)try{return qt(e,t)}catch(e){}if(Vt(e,t))return Wt(!Bt(Ht.f,e,t),e[t])};var Yt={},Kt=O&&T((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Xt=ve,Qt=String,Jt=TypeError,en=function(e){if(Xt(e))return e;throw Jt(Qt(e)+" is not an object")},tn=O,nn=Ft,rn=Kt,on=en,an=Dt,sn=TypeError,ln=Object.defineProperty,un=Object.getOwnPropertyDescriptor,cn="enumerable",dn="configurable",fn="writable";Yt.f=tn?rn?function(e,t,n){if(on(e),t=an(t),on(n),"function"==typeof e&&"prototype"===t&&"value"in n&&fn in n&&!n[fn]){var r=un(e,t);r&&r[fn]&&(e[t]=n.value,n={configurable:dn in n?n[dn]:r[dn],enumerable:cn in n?n[cn]:r[cn],writable:!1})}return ln(e,t,n)}:ln:function(e,t,n){if(on(e),t=an(t),on(n),nn)try{return ln(e,t,n)}catch(e){}if("get"in n||"set"in n)throw sn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var hn=Yt,pn=z,gn=O?function(e,t,n){return hn.f(e,t,pn(1,n))}:function(e,t,n){return e[t]=n,e},mn={exports:{}},vn=O,yn=st,bn=Function.prototype,wn=vn&&Object.getOwnPropertyDescriptor,xn=yn(bn,"name"),Sn={EXISTS:xn,PROPER:xn&&"something"===function(){}.name,CONFIGURABLE:xn&&(!vn||vn&&wn(bn,"name").configurable)},_n=pe,En=et,kn=Q(Function.toString);_n(En.inspectSource)||(En.inspectSource=function(e){return kn(e)});var Cn,An,Tn,On=En.inspectSource,Mn=pe,Rn=C.WeakMap,Ln=Mn(Rn)&&/native code/.test(String(Rn)),Dn=qe.exports,Pn=ft,jn=Dn("keys"),In=function(e){return jn[e]||(jn[e]=Pn(e))},$n={},Nn=Ln,Fn=C,zn=ve,Bn=gn,Hn=st,Wn=et,Un=In,Zn=$n,Vn="Object already initialized",Gn=Fn.TypeError,qn=Fn.WeakMap;if(Nn||Wn.state){var Yn=Wn.state||(Wn.state=new qn);Yn.get=Yn.get,Yn.has=Yn.has,Yn.set=Yn.set,Cn=function(e,t){if(Yn.has(e))throw Gn(Vn);return t.facade=e,Yn.set(e,t),t},An=function(e){return Yn.get(e)||{}},Tn=function(e){return Yn.has(e)}}else{var Kn=Un("state");Zn[Kn]=!0,Cn=function(e,t){if(Hn(e,Kn))throw Gn(Vn);return t.facade=e,Bn(e,Kn,t),t},An=function(e){return Hn(e,Kn)?e[Kn]:{}},Tn=function(e){return Hn(e,Kn)}}var Xn={set:Cn,get:An,has:Tn,enforce:function(e){return Tn(e)?An(e):Cn(e,{})},getterFor:function(e){return function(t){var n;if(!zn(t)||(n=An(t)).type!==e)throw Gn("Incompatible receiver, "+e+" required");return n}}},Qn=T,Jn=pe,er=st,tr=O,nr=Sn.CONFIGURABLE,rr=On,or=Xn.enforce,ir=Xn.get,ar=Object.defineProperty,sr=tr&&!Qn((function(){return 8!==ar((function(){}),"length",{value:8}).length})),lr=String(String).split("String"),ur=mn.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!er(e,"name")||nr&&e.name!==t)&&(tr?ar(e,"name",{value:t,configurable:!0}):e.name=t),sr&&n&&er(n,"arity")&&e.length!==n.arity&&ar(e,"length",{value:n.arity});try{n&&er(n,"constructor")&&n.constructor?tr&&ar(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=or(e);return er(r,"source")||(r.source=lr.join("string"==typeof t?t:"")),e};Function.prototype.toString=ur((function(){return Jn(this)&&ir(this).source||rr(this)}),"toString");var cr=pe,dr=Yt,fr=mn.exports,hr=Xe,pr={},gr=Math.ceil,mr=Math.floor,vr=Math.trunc||function(e){var t=+e;return(t>0?mr:gr)(t)},yr=function(e){var t=+e;return t!=t||0===t?0:vr(t)},br=yr,wr=Math.max,xr=Math.min,Sr=yr,_r=Math.min,Er=function(e){return e>0?_r(Sr(e),9007199254740991):0},kr=function(e){return Er(e.length)},Cr=ce,Ar=function(e,t){var n=br(e);return n<0?wr(n+t,0):xr(n,t)},Tr=kr,Or=function(e){return function(t,n,r){var o,i=Cr(t),a=Tr(i),s=Ar(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Mr={includes:Or(!0),indexOf:Or(!1)},Rr=st,Lr=ce,Dr=Mr.indexOf,Pr=$n,jr=Q([].push),Ir=function(e,t){var n,r=Lr(e),o=0,i=[];for(n in r)!Rr(Pr,n)&&Rr(r,n)&&jr(i,n);for(;t.length>o;)Rr(r,n=t[o++])&&(~Dr(i,n)||jr(i,n));return i},$r=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nr=Ir,Fr=$r.concat("length","prototype");pr.f=Object.getOwnPropertyNames||function(e){return Nr(e,Fr)};var zr={};zr.f=Object.getOwnPropertySymbols;var Br=we,Hr=pr,Wr=zr,Ur=en,Zr=Q([].concat),Vr=Br("Reflect","ownKeys")||function(e){var t=Hr.f(Ur(e)),n=Wr.f;return n?Zr(t,n(e)):t},Gr=st,qr=Vr,Yr=A,Kr=Yt,Xr=T,Qr=pe,Jr=/#|\.prototype\./,eo=function(e,t){var n=no[to(e)];return n==oo||n!=ro&&(Qr(t)?Xr(t):!!t)},to=eo.normalize=function(e){return String(e).replace(Jr,".").toLowerCase()},no=eo.data={},ro=eo.NATIVE="N",oo=eo.POLYFILL="P",io=eo,ao=C,so=A.f,lo=gn,uo=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(cr(n)&&fr(n,i,r),r.global)o?e[t]=n:hr(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:dr.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},co=Xe,fo=function(e,t,n){for(var r=qr(t),o=Kr.f,i=Yr.f,a=0;a<r.length;a++){var s=r[a];Gr(e,s)||n&&Gr(n,s)||o(e,s,i(t,s))}},ho=io,po=Be,go=M,mo=Q(Q.bind),vo=Y,yo=Array.isArray||function(e){return"Array"==vo(e)},bo={};bo[_t("toStringTag")]="z";var wo="[object z]"===String(bo),xo=pe,So=Y,_o=_t("toStringTag"),Eo=Object,ko="Arguments"==So(function(){return arguments}()),Co=Q,Ao=T,To=pe,Oo=wo?So:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Eo(e),_o))?n:ko?So(t):"Object"==(r=So(t))&&xo(t.callee)?"Arguments":r},Mo=On,Ro=function(){},Lo=[],Do=we("Reflect","construct"),Po=/^\s*(?:class|function)\b/,jo=Co(Po.exec),Io=!Po.exec(Ro),$o=function(e){if(!To(e))return!1;try{return Do(Ro,Lo,e),!0}catch(e){return!1}},No=function(e){if(!To(e))return!1;switch(Oo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Io||!!jo(Po,Mo(e))}catch(e){return!0}};No.sham=!0;var Fo=!Do||Ao((function(){var e;return $o($o.call)||!$o(Object)||!$o((function(){e=!0}))||e}))?No:$o,zo=yo,Bo=Fo,Ho=ve,Wo=_t("species"),Uo=Array,Zo=function(e){var t;return zo(e)&&(t=e.constructor,(Bo(t)&&(t===Uo||zo(t.prototype))||Ho(t)&&null===(t=t[Wo]))&&(t=void 0)),void 0===t?Uo:t},Vo=function(e,t){return po(e),void 0===t?e:go?mo(e,t):function(){return e.apply(t,arguments)}},Go=re,qo=ot,Yo=kr,Ko=function(e,t){return new(Zo(e))(0===t?0:t)},Xo=Q([].push),Qo=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(l,u,c,d){for(var f,h,p=qo(l),g=Go(p),m=Vo(u,c),v=Yo(g),y=0,b=d||Ko,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in g)&&(h=m(f=g[y],y,p),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:Xo(w,f)}else switch(e){case 4:return!1;case 7:Xo(w,f)}return i?-1:r||o?o:w}},Jo={forEach:Qo(0),map:Qo(1),filter:Qo(2),some:Qo(3),every:Qo(4),find:Qo(5),findIndex:Qo(6),filterReject:Qo(7)},ei={},ti=Ir,ni=$r,ri=Object.keys||function(e){return ti(e,ni)},oi=O,ii=Kt,ai=Yt,si=en,li=ce,ui=ri;ei.f=oi&&!ii?Object.defineProperties:function(e,t){si(e);for(var n,r=li(t),o=ui(t),i=o.length,a=0;i>a;)ai.f(e,n=o[a++],r[n]);return e};var ci,di=we("document","documentElement"),fi=en,hi=ei,pi=$r,gi=$n,mi=di,vi=$t,yi="prototype",bi="script",wi=In("IE_PROTO"),xi=function(){},Si=function(e){return"<"+bi+">"+e+"</"+bi+">"},_i=function(e){e.write(Si("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ei=function(){try{ci=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Ei="undefined"!=typeof document?document.domain&&ci?_i(ci):(t=vi("iframe"),n="java"+bi+":",t.style.display="none",mi.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Si("document.F=Object")),e.close(),e.F):_i(ci);for(var r=pi.length;r--;)delete Ei[yi][pi[r]];return Ei()};gi[wi]=!0;var ki=_t,Ci=Object.create||function(e,t){var n;return null!==e?(xi[yi]=fi(e),n=new xi,xi[yi]=null,n[wi]=e):n=Ei(),void 0===t?n:hi.f(n,t)},Ai=Yt.f,Ti=ki("unscopables"),Oi=Array.prototype;null==Oi[Ti]&&Ai(Oi,Ti,{configurable:!0,value:Ci(null)});var Mi=function(e,t){var n,r,o,i,a,s=e.target,l=e.global,u=e.stat;if(n=l?ao:u?ao[s]||co(s,{}):(ao[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=so(n,r))&&a.value:n[r],!ho(l?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;fo(i,o)}(e.sham||o&&o.sham)&&lo(i,"sham",!0),uo(n,r,i,e)}},Ri=Jo.find,Li=function(e){Oi[Ti][e]=!0},Di="find",Pi=!0;Di in[]&&Array(1)[Di]((function(){Pi=!1})),Mi({target:"Array",proto:!0,forced:Pi},{find:function(e){return Ri(this,e,arguments.length>1?arguments[1]:void 0)}}),Li(Di);var ji={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},Ii=function(e,t){var n;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)};var $i=function(e,t){var n=this.state.show,r=this.props.id,o=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),n&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Ni(t.currentTarget,this.getTargetArray(r)),this.showTooltip(t))},Ni=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Fi={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:m({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}};var zi=function(e,t,n){for(var r,o,i=t.respectEffect,a=void 0!==i&&i,s=t.customEvent,l=void 0!==s&&s,u=this.props.id,c=null,d=n.target;null===c&&null!==d;)o=d,c=d.getAttribute("data-tip")||null,r=d.getAttribute("data-for")||null,d=d.parentElement;if(d=o||n.target,!this.isCustomEvent(d)||l){var f=null==u&&null==r||r===u;if(null!=c&&(!a||"float"===this.getEffect(d))&&f){var h=function(e){var t={};for(var n in e)"function"==typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);h.currentTarget=d,e(h)}}},Bi=function(e,t){var n={};return e.forEach((function(e){var r=e.getAttribute(t);r&&r.split(" ").forEach((function(e){return n[e]=!0}))})),n},Hi=function(){return document.getElementsByTagName("body")[0]};function Wi(e,t,n,r,o,i,a){var s=Ui(n),l=s.width,u=s.height,c=Ui(t),d=c.width,f=c.height,h=Zi(e,t,i),p=h.mouseX,g=h.mouseY,m=Vi(i,d,f,l,u),v=Gi(a),y=v.extraOffsetX,b=v.extraOffsetY,w=window.innerWidth,x=window.innerHeight,S=qi(n),E=S.parentTop,k=S.parentLeft,C=function(e){var t=m[e].l;return p+t+y},A=function(e){var t=m[e].t;return g+t+b},T=function(e){return function(e){var t=m[e].r;return p+t+y}(e)>w},O=function(e){return function(e){var t=m[e].b;return g+t+b}(e)>x},M=function(e){return function(e){return C(e)<0}(e)||T(e)||function(e){return A(e)<0}(e)||O(e)},R=function(e){return!M(e)},L={top:R("top"),bottom:R("bottom"),left:R("left"),right:R("right")};var D,P=function(){var e,t=_(o.split(",").concat(r,["top","bottom","left","right"]));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(L[n])return n}}catch(e){t.e(e)}finally{t.f()}return r}(),j=!1;return P&&P!==r&&(j=!0,D=P),j?{isNewState:!0,newState:{place:D}}:{isNewState:!1,position:{left:parseInt(C(r)-k,10),top:parseInt(A(r)-E,10)}}}var Ui=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},Zi=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,i=r.left,a=Ui(t),s=a.width,l=a.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+s/2,mouseY:o+l/2}},Vi=function(e,t,n,r,o){var i,a,s,l;return"float"===e?(i={l:-r/2,r:r/2,t:-(o+3+2),b:-3},s={l:-r/2,r:r/2,t:15,b:o+3+2+12},l={l:-(r+3+2),r:-3,t:-o/2,b:o/2},a={l:3,r:r+3+2,t:-o/2,b:o/2}):"solid"===e&&(i={l:-r/2,r:r/2,t:-(n/2+o+2),b:-n/2},s={l:-r/2,r:r/2,t:n/2,b:n/2+o+2},l={l:-(r+t/2+2),r:-t/2,t:-o/2,b:o/2},a={l:t/2,r:r+t/2+2,t:-o/2,b:o/2}),{top:i,bottom:s,left:l,right:a}},Gi=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},qi=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Yi(e,t,n,o){if(t)return t;if(null!=n)return n;if(null===n)return null;var i=/<br\s*\/?>/;return o&&"false"!==o&&i.test(e)?e.split(i).map((function(e,t){return r.createElement("span",{key:t,className:"multi-line"},e)})):e}function Ki(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Xi(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var Qi={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};var Ji,ea,ta="8px 21px",na={tooltip:3,arrow:0};function ra(e,t,n,r,o,i){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ta,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:na,o=t.text,i=t.background,a=t.border,s=t.arrow,l=r.arrow,u=r.tooltip;return"\n  \t.".concat(e," {\n\t    color: ").concat(o,";\n\t    background: ").concat(i,";\n\t    border: 1px solid ").concat(a,";\n\t    border-radius: ").concat(u,"px;\n\t    padding: ").concat(n,";\n  \t}\n\n  \t.").concat(e,".place-top {\n        margin-top: -10px;\n    }\n    .").concat(e,'.place-top::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: 2;\n        width: 20px;\n        height: 12px;\n    }\n    .').concat(e,'.place-top::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        bottom: -6px;\n        left: 50%;\n        margin-left: -6px;\n        transform: rotate(135deg);\n    }\n\n    .").concat(e,".place-bottom {\n        margin-top: 10px;\n    }\n    .").concat(e,'.place-bottom::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 18px;\n        height: 10px;\n    }\n    .').concat(e,'.place-bottom::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        top: -6px;\n        left: 50%;\n        margin-left: -6px;\n        transform: rotate(45deg);\n    }\n\n    .").concat(e,".place-left {\n        margin-left: -10px;\n    }\n    .").concat(e,'.place-left::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 10px;\n        height: 18px;\n    }\n    .').concat(e,'.place-left::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        right: -6px;\n        top: 50%;\n        margin-top: -6px;\n        transform: rotate(45deg);\n    }\n\n    .").concat(e,".place-right {\n        margin-left: 10px;\n    }\n    .").concat(e,'.place-right::before {\n        content: "";\n        background-color: inherit;\n        position: absolute;\n        z-index: -1;\n        width: 10px;\n        height: 18px;\n    }\n    .').concat(e,'.place-right::after {\n        content: "";\n        position: absolute;\n        width: 10px;\n        height: 10px;\n        border-top-right-radius: ').concat(l,"px;\n        border: 1px solid ").concat(a,";\n        background-color: ").concat(s,";\n        z-index: -2;\n        left: -6px;\n        top: 50%;\n        margin-top: -6px;\n        transform: rotate(-135deg);\n    }\n  ")}(e,function(e,t,n){var r=e.text,o=e.background,i=e.border,a=e.arrow?e.arrow:e.background,s=function(e){return Qi[e]?p({},Qi[e]):void 0}(t);r&&(s.text=r);o&&(s.background=o);n&&(s.border=i||("light"===t?"black":"white"));a&&(s.arrow=a);return s}(t,n,r),o,i)}var oa,ia=function(e){e.hide=function(e){Ii(ji.HIDE,{target:e})},e.rebuild=function(){Ii(ji.REBUILD)},e.show=function(e){Ii(ji.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(Ji=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(ji.HIDE,this.globalHide),window.addEventListener(ji.HIDE,this.globalHide,!1),window.removeEventListener(ji.REBUILD,this.globalRebuild),window.addEventListener(ji.REBUILD,this.globalRebuild,!1),window.removeEventListener(ji.SHOW,this.globalShow),window.addEventListener(ji.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(ji.HIDE,this.globalHide),window.removeEventListener(ji.REBUILD,this.globalRebuild),window.removeEventListener(ji.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(Ji=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,i=e.getAttribute("data-event")||r,a=e.getAttribute("data-event-off")||o;i.split(" ").forEach((function(n){e.removeEventListener(n,Fi.get(e,n));var r=$i.bind(t,a);Fi.set(e,n,r),e.addEventListener(n,r,!1)})),a&&a.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,r=t.eventOff,o=n||e.getAttribute("data-event"),i=r||e.getAttribute("data-event-off");e.removeEventListener(o,Fi.get(e,n)),i&&e.removeEventListener(i,this.hideTooltip)}}(Ji=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(Ji=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(Ji=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,i=n.possibleCustomEvents,a=n.possibleCustomEventsOff,s=Hi(),l=Bi(e,"data-event"),u=Bi(e,"data-event-off");null!=r&&(l[r]=!0),null!=o&&(u[o]=!0),i.split(" ").forEach((function(e){return l[e]=!0})),a.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(s);var c=this.bodyModeListeners={};for(var d in null==r&&(c.mouseover=zi.bind(this,this.showTooltip,{}),c.mousemove=zi.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=zi.bind(this,this.hideTooltip,{})),l)c[d]=zi.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||o;$i.call(t,n,e)}),{customEvent:!0});for(var f in u)c[f]=zi.bind(this,this.hideTooltip,{customEvent:!0});for(var h in c)s.addEventListener(h,c[h])},e.prototype.unbindBodyListener=function(e){e=e||Hi();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(s,e);var t,n,o,a=x(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={uuid:e.uuid||"t"+f(),place:e.place||"top",desiredPlace:e.place||"top",type:e.type||"dark",effect:e.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:e.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Ki(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},t.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),t.mount=!0,t.delayShowLoop=null,t.delayHideLoop=null,t.delayReshow=null,t.intervalUpdateContent=null,t}return t=s,n=[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props;e.insecure;var t=e.resizeHide,n=e.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(t),n||this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var r=document.createElement("style");r.textContent='.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\n  position: fixed;\n  pointer-events: none;\n  transition: opacity 0.3s ease-out;\n  top: -999em;\n  visibility: hidden;\n  z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n  pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n  content: "";\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n.__react_component_tooltip.show {\n  opacity: 0.9;\n  margin-top: 0;\n  margin-left: 0;\n  visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n  bottom: 0;\n  left: 50%;\n  margin-left: -11px;\n}\n.__react_component_tooltip.place-bottom::before {\n  top: 0;\n  left: 50%;\n  margin-left: -11px;\n}\n.__react_component_tooltip.place-left::before {\n  right: 0;\n  top: 50%;\n  margin-top: -9px;\n}\n.__react_component_tooltip.place-right::before {\n  left: 0;\n  top: 50%;\n  margin-top: -9px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0;\n  text-align: center;\n}',r.setAttribute("data-react-tooltip","true"),t.appendChild(r)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var r=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(r,'"]')}else t="[data-tip]:not([data-for])";return Xi(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Xi(e.shadowRoot.querySelectorAll(t)))})),n.concat(Xi(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,o=t.isCapture,i=this.getTargetArray(n);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var n=e.isCapture(t),r=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,r=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Yi(this.state.originTooltip,r,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,r=n.multiline,o=n.getContent,i=e.currentTarget.getAttribute("data-tip"),a=e.currentTarget.getAttribute("data-multiline")||r||!1,s=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.props.id||this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=s?"solid":this.getEffect(e.currentTarget),d=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},f=Wi(e,e.currentTarget,this.tooltipRef,u.split(",")[0],u,c,d);f.position&&this.props.overridePosition&&(f.position=this.props.overridePosition(f.position,e,e.currentTarget,this.tooltipRef,u,u,c,d));var h=f.isNewState?f.newState.place:u.split(",")[0];this.clearTimer();var p=e.currentTarget,g=this.state.show?p.getAttribute("data-delay-update")||this.props.delayUpdate:0,m=this,v=function(){m.setState({originTooltip:i,isMultiline:a,desiredPlace:u,place:h,type:p.getAttribute("data-type")||m.props.type||"dark",customColors:{text:p.getAttribute("data-text-color")||m.props.textColor||null,background:p.getAttribute("data-background-color")||m.props.backgroundColor||null,border:p.getAttribute("data-border-color")||m.props.borderColor||null,arrow:p.getAttribute("data-arrow-color")||m.props.arrowColor||null},customRadius:{tooltip:p.getAttribute("data-tooltip-radius")||m.props.tooltipRadius||"3",arrow:p.getAttribute("data-arrow-radius")||m.props.arrowRadius||"0"},effect:c,offset:d,padding:p.getAttribute("data-padding")||m.props.padding,html:(p.getAttribute("data-html")?"true"===p.getAttribute("data-html"):m.props.html)||!1,delayShow:p.getAttribute("data-delay-show")||m.props.delayShow||0,delayHide:p.getAttribute("data-delay-hide")||m.props.delayHide||0,delayUpdate:p.getAttribute("data-delay-update")||m.props.delayUpdate||0,border:(p.getAttribute("data-border")?"true"===p.getAttribute("data-border"):m.props.border)||!1,borderClass:p.getAttribute("data-border-class")||m.props.borderClass||"border",extraClass:p.getAttribute("data-class")||m.props.class||m.props.className||"",disable:(p.getAttribute("data-tip-disable")?"true"===p.getAttribute("data-tip-disable"):m.props.disable)||!1,currentTarget:p},(function(){l&&m.addScrollListener(m.state.currentTarget),m.updateTooltip(e),o&&Array.isArray(o)&&(m.intervalUpdateContent=setInterval((function(){if(m.mount){var e=m.props.getContent,t=Yi(i,"",e[0](),a),n=m.isEmptyTip(t);m.setState({isEmptyTip:n}),m.updatePosition()}}),o[1]))}))};g?this.delayReshow=setTimeout(v,g):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,o=n.disable,i=this.props,a=i.afterShow,s=i.disable,l=this.getTooltipContent(),u=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!(this.isEmptyTip(l)||o||s)){var c=this.state.show?0:parseInt(r,10),d=function(){if(Array.isArray(l)&&l.length>0||l){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:u,show:!0},(function(){t.updatePosition((function(){n&&a&&a(e)}))}))}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),c?this.delayShowLoop=setTimeout(d,c):(this.delayShowLoop=null,d())}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=r.isScroll?0:this.state.delayHide,a=this.props,s=a.afterHide,l=a.disable,u=this.getTooltipContent();if(this.mount&&!(this.isEmptyTip(u)||o||l)){if(t&&(!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget}))||!this.state.show))return;e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var c=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&s&&s(e)})))};this.clearTimer(),i?this.delayHideLoop=setTimeout(c,parseInt(i,10)):c()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(e){var t=this,n=this.state,r=n.currentEvent,o=n.currentTarget,i=n.place,a=n.desiredPlace,s=n.effect,l=n.offset,u=this.tooltipRef,c=Wi(r,o,u,i,a,s,l);if(c.position&&this.props.overridePosition&&(c.position=this.props.overridePosition(c.position,r,o,u,i,a,s,l)),c.isNewState)return this.setState(c.newState,(function(){t.updatePosition(e)}));e&&"function"==typeof e&&e(),u.style.left=c.position.left+"px",u.style.top=c.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,t=this.state,n=t.extraClass,o=t.html,i=t.ariaProps,a=t.disable,l=t.uuid,u=this.getTooltipContent(),c=this.isEmptyTip(u),d=this.props.disableInternalStyle?"":ra(this.state.uuid,this.state.customColors,this.state.type,this.state.border,this.state.padding,this.state.customRadius),f="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||c?"":" show")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),h=this.props.wrapper;s.supportedWrappers.indexOf(h)<0&&(h=s.defaultProps.wrapper);var p=[f,n].filter(Boolean).join(" ");if(o){var g="".concat(u).concat(d?'\n<style aria-hidden="true">'.concat(d,"</style>"):"");return r.createElement(h,v({className:"".concat(p),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},i,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:g}}))}return r.createElement(h,v({className:"".concat(p),id:this.props.id||l},i,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),d&&r.createElement("style",{dangerouslySetInnerHTML:{__html:d},"aria-hidden":"true"}),u)}}],o=[{key:"propTypes",get:function(){return{uuid:i().string,children:i().any,place:i().string,type:i().string,effect:i().string,offset:i().object,padding:i().string,multiline:i().bool,border:i().bool,borderClass:i().string,textColor:i().string,backgroundColor:i().string,borderColor:i().string,arrowColor:i().string,arrowRadius:i().string,tooltipRadius:i().string,insecure:i().bool,class:i().string,className:i().string,id:i().string,html:i().bool,delayHide:i().number,delayUpdate:i().number,delayShow:i().number,event:i().string,eventOff:i().string,isCapture:i().bool,globalEventOff:i().string,getContent:i().any,afterShow:i().func,afterHide:i().func,overridePosition:i().func,disable:i().bool,scrollHide:i().bool,resizeHide:i().bool,wrapper:i().string,bodyMode:i().bool,possibleCustomEvents:i().string,possibleCustomEventsOff:i().string,clickable:i().bool,disableInternalStyle:i().bool}}},{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,r=Ki(e);return Object.keys(r).some((function(e){return r[e]!==n[e]}))?p(p({},t),{},{ariaProps:r}):null}}],n&&g(t.prototype,n),o&&g(t,o),Object.defineProperty(t,"prototype",{writable:!1}),s}(r.Component),m(ea,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),m(ea,"supportedWrappers",["div","span"]),m(ea,"displayName","ReactTooltip"),(oa=Ji=ea).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var r=t[n],o=0;o<r.removedNodes.length;o++)if(r.removedNodes[o]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},Ji=void(oa.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||Ji))||Ji)||Ji)||Ji)||Ji)||Ji)||Ji},98268:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(13980),o=n.n(r),i=n(2784),a=n(69378),s=n.n(a),l=n(55741),u=n.n(l),c=Object.defineProperty,d=Object.defineProperties,f=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,m=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))p.call(t,n)&&m(e,n,t[n]);if(h)for(var n of h(t))g.call(t,n)&&m(e,n,t[n]);return e},y=(e,t)=>d(e,f(t));function b(e={}){return y(v({},e),{height:0,width:0,playerVars:y(v({},e.playerVars),{autoplay:0,start:0,end:0})})}var w={videoId:o().string,id:o().string,className:o().string,iframeClassName:o().string,style:o().object,title:o().string,loading:o().oneOf(["lazy","eager"]),opts:o().objectOf(o().any),onReady:o().func,onError:o().func,onPlay:o().func,onPause:o().func,onEnd:o().func,onStateChange:o().func,onPlaybackRateChange:o().func,onPlaybackQualityChange:o().func},x=class extends i.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,n;return null==(n=(t=this.props).onReady)?void 0:n.call(t,e)},this.onPlayerError=e=>{var t,n;return null==(n=(t=this.props).onError)?void 0:n.call(t,e)},this.onPlayerStateChange=e=>{var t,n,r,o,i,a,s,l;switch(null==(n=(t=this.props).onStateChange)||n.call(t,e),e.data){case x.PlayerState.ENDED:null==(o=(r=this.props).onEnd)||o.call(r,e);break;case x.PlayerState.PLAYING:null==(a=(i=this.props).onPlay)||a.call(i,e);break;case x.PlayerState.PAUSED:null==(l=(s=this.props).onPause)||l.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,n;return null==(n=(t=this.props).onPlaybackRateChange)?void 0:n.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,n;return null==(n=(t=this.props).onPlaybackQualityChange)?void 0:n.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then((()=>this.destroyPlayerPromise=void 0)),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"==typeof document)return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);const e=y(v({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=u()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then((e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)}))},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then((e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")}))},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,n,r;if(void 0===this.props.videoId||null===this.props.videoId)return void(null==(e=this.internalPlayer)||e.stopVideo());let o=!1;const i={videoId:this.props.videoId};(null==(t=this.props.opts)?void 0:t.playerVars)&&(o=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(i.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(i.endSeconds=this.props.opts.playerVars.end)),o?null==(n=this.internalPlayer)||n.loadVideoById(i):null==(r=this.internalPlayer)||r.cueVideoById(i)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){return t=this,n=null,r=function*(){(function(e,t){var n,r,o,i;return e.id!==t.id||e.className!==t.className||(null==(n=e.opts)?void 0:n.width)!==(null==(r=t.opts)?void 0:r.width)||(null==(o=e.opts)?void 0:o.height)!==(null==(i=t.opts)?void 0:i.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title})(e,this.props)&&this.updatePlayer(),function(e,t){return e.videoId!==t.videoId||!s()(b(e.opts),b(t.opts))}(e,this.props)&&(yield this.resetPlayer()),function(e,t){var n,r;if(e.videoId!==t.videoId)return!0;const o=(null==(n=e.opts)?void 0:n.playerVars)||{},i=(null==(r=t.opts)?void 0:r.playerVars)||{};return o.start!==i.start||o.end!==i.end}(e,this.props)&&this.updateVideo()},new Promise(((e,o)=>{var i=e=>{try{s(r.next(e))}catch(e){o(e)}},a=e=>{try{s(r.throw(e))}catch(e){o(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,a);s((r=r.apply(t,n)).next())}));var t,n,r}componentWillUnmount(){this.destroyPlayer()}render(){return i.createElement("div",{className:this.props.className,style:this.props.style},i.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}},S=x;S.propTypes=w,S.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},S.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var _=S},83426:(e,t,n)=>{"use strict";var r=n(37320),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function A(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+C(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(E(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+C(s=e[u],u);l+=A(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=A(s=s.value,t,n,c=r+C(s,u++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function T(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var M={current:null};function R(){var e=M.current;if(null===e)throw Error(h(321));return e}var L={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error(h(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},2784:(e,t,n)=>{"use strict";e.exports=n(83426)},81167:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(15253),i=(r=o)&&r.__esModule?r:{default:r},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},l=t.autoprefix=function(e){var t={};return(0,i.default)(e,(function(e,n){var r={};(0,i.default)(e,(function(e,t){var n=s[t];n?r=a({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=l},72523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2784),a=(r=i)&&r.__esModule?r:{default:r};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return i=l=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={active:!1},l.handleMouseDown=function(){return l.setState({active:!0})},l.handleMouseUp=function(){return l.setState({active:!1})},l.render=function(){return a.default.createElement(t,{onMouseDown:l.handleMouseDown,onMouseUp:l.handleMouseUp},a.default.createElement(e,o({},l.props,l.state)))},s(l,i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=l},92106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2784),a=(r=i)&&r.__esModule?r:{default:r};function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,i,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var u=arguments.length,c=Array(u),d=0;d<u;d++)c[d]=arguments[d];return i=l=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(c))),l.state={hover:!1},l.handleMouseOver=function(){return l.setState({hover:!0})},l.handleMouseOut=function(){return l.setState({hover:!1})},l.render=function(){return a.default.createElement(t,{onMouseOver:l.handleMouseOver,onMouseOut:l.handleMouseOut},a.default.createElement(e,o({},l.props,l.state)))},s(l,i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,n),r}(a.default.Component)};t.default=l},30378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(85505)),o=s(n(15253)),i=s(n(97030)),a=s(n(16760));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,i.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=l},7151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=u(n(30378)),o=u(n(87214)),i=u(n(81167)),a=u(n(92106)),s=u(n(72523)),l=u(n(76983));function u(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=l.default;var c=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),l=(0,o.default)(e,s);return(0,i.default)(l)};t.default=c},76983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},87214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(15253)),o=a(n(9850)),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=i({},n[t],o[t])})),t})),n};t.default=s},18717:(e,t,n)=>{"use strict";n.d(t,{MT:()=>u,UY:()=>c,md:()=>f,qC:()=>d});var r=n(33028);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(o(1));return n(u)(e,t)}if("function"!=typeof e)throw new Error(o(2));var a=e,c=t,d=[],f=d,h=!1;function p(){f===d&&(f=d.slice())}function g(){if(h)throw new Error(o(3));return c}function m(e){if("function"!=typeof e)throw new Error(o(4));if(h)throw new Error(o(5));var t=!0;return p(),f.push(e),function(){if(t){if(h)throw new Error(o(6));t=!1,p();var n=f.indexOf(e);f.splice(n,1),d=null}}}function v(e){if(!l(e))throw new Error(o(7));if(void 0===e.type)throw new Error(o(8));if(h)throw new Error(o(9));try{h=!0,c=a(c,e)}finally{h=!1}for(var t=d=f,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:s.INIT}),(r={dispatch:v,subscribe:m,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(o(10));a=e,v({type:s.REPLACE})}})[i]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[i]=function(){return this},e},r}function c(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,l=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error(o(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(o(13))}))}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},s=0;s<l.length;s++){var u=l[s],c=n[u],d=e[u],f=c(d,t);if(void 0===f){t&&t.type;throw new Error(o(14))}i[u]=f,r=r||f!==d}return(r=r||l.length!==Object.keys(e).length)?i:e}}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),i=function(){throw new Error(o(15))},a={getState:n.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map((function(e){return e(a)}));return i=d.apply(void 0,s)(n.dispatch),(0,r.Z)((0,r.Z)({},n),{},{dispatch:i})}}}},97698:(e,t,n)=>{"use strict";n.d(t,{P1:()=>s});var r="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var n,i,a="object"==typeof t?t:{equalityCheck:t},s=a.equalityCheck,l=void 0===s?o:s,u=a.maxSize,c=void 0===u?1:u,d=a.resultEqualityCheck,f=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(l),h=1===c?(n=f,{get:function(e){return i&&n(i.key,e)?i.value:r},put:function(e,t){i={key:e,value:t}},getEntries:function(){return i?[i]:[]},clear:function(){i=void 0}}):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(c,f);function p(){var t=h.get(arguments);if(t===r){if(t=e.apply(null,arguments),d){var n=h.getEntries().find((function(e){return d(e.value,t)}));n&&(t=n.value)}h.put(arguments,t)}return t}return p.clearCache=function(){return h.clear()},p}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},l=r.pop();if("object"==typeof l&&(s=l,l=r.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var u=s.memoizeOptions,c=void 0===u?n:u,d=Array.isArray(c)?c:[c],f=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),h=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),p=e((function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return i=h.apply(null,e)}));return Object.assign(p,{resultFunc:l,memoizedResultFunc:h,dependencies:f,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),p}}var s=a(i)},46475:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+y;try{m(!0,e)?x.postMessage(null):(g=!1,m=null)}catch(e){throw x.postMessage(null),e}}else g=!1},n=function(e){m=e,g||(g=!0,x.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],A=[],T=1,O=null,M=3,R=!1,L=!1,D=!1;function P(e){for(var t=_(A);null!==t;){if(null===t.callback)E(A);else{if(!(t.startTime<=e))break;E(A),t.sortIndex=t.expirationTime,S(C,t)}t=_(A)}}function j(e){if(D=!1,P(e),!L)if(null!==_(C))L=!0,n(I);else{var t=_(A);null!==t&&r(j,t.startTime-e)}}function I(e,n){L=!1,D&&(D=!1,o()),R=!0;var i=M;try{for(P(n),O=_(C);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"==typeof a){O.callback=null,M=O.priorityLevel;var s=a(O.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?O.callback=s:O===_(C)&&E(C),P(n)}else E(C);O=_(C)}if(null!==O)var l=!0;else{var u=_(A);null!==u&&r(j,u.startTime-n),l=!1}return l}finally{O=null,M=i,R=!1}}var $=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){L||R||(L=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return _(C)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=$,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:T++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,S(A,e),null===_(C)&&e===_(A)&&(D?o():D=!0,r(j,a-s))):(e.sortIndex=l,S(C,e),L||R||(L=!0,n(I))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},14616:(e,t,n)=>{"use strict";e.exports=n(46475)},52844:(e,t,n)=>{"use strict";const r=Symbol.prototype.valueOf,o=n(91366);e.exports=function(e,t){switch(o(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return function(e){const t=e.length,n=Buffer.allocUnsafe?Buffer.allocUnsafe(t):Buffer.from(t);return e.copy(n),n}(e);case"symbol":return function(e){return r?Object(r.call(e)):{}}(e);case"arraybuffer":return function(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}(e);case"regexp":return function(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,n=new e.constructor(e.source,t);return n.lastIndex=e.lastIndex,n}(e);case"error":return Object.create(e);default:return e}}},88665:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0}},76365:e=>{"use strict";var t;t=function(){var e={},t={};return e.on=function(e,n){var r={name:e,handler:n};return t[e]=t[e]||[],t[e].unshift(r),r},e.off=function(e){var n=t[e.name].indexOf(e);-1!==n&&t[e.name].splice(n,1)},e.trigger=function(e,n){var r,o=t[e];if(o)for(r=o.length;r--;)o[r].handler(n)},e},e.exports=t},72703:(e,t,n)=>{"use strict";var r=n(46062),o=n.n(r),i=n(58165),a={insert:"head",singleton:!1};o()(i.Z,a),i.Z.locals},3095:(e,t,n)=>{"use strict";var r=n(46062),o=n.n(r),i=n(18875),a={insert:"head",singleton:!1};o()(i.Z,a),i.Z.locals},57527:(e,t,n)=>{"use strict";var r=n(46062),o=n.n(r),i=n(23366),a={insert:"head",singleton:!1};o()(i.Z,a),i.Z.locals},38310:(e,t,n)=>{"use strict";var r=n(46062),o=n.n(r),i=n(21069),a={insert:"head",singleton:!1};o()(i.Z,a),i.Z.locals},46062:(e,t,n)=>{"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],l=t.base?i[0]+t.base:i[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=s(c),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:c,updater:m(f,t),references:1}),r.push(c)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,d=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function h(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function m(e,t){var n,r,o;if(t.singleton){var i=g++;n=p||(p=u(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=u(t),r=h.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=l(e,t),u=0;u<n.length;u++){var c=s(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=i}}}},55721:(e,t,n)=>{"use strict";n.d(t,{Ni:()=>Pt,f6:()=>jt,vJ:()=>Zt,iv:()=>zt,ZP:()=>Wt,F4:()=>Vt});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.create;function o(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var i=n(2784),a=n(88665),s=n.n(a),l="-ms-",u="-moz-",c="-webkit-",d="comm",f="rule",h="decl",p="@import",g="@keyframes",m="@layer",v=Math.abs,y=String.fromCharCode,b=Object.assign;function w(e){return e.trim()}function x(e,t){return(e=t.exec(e))?e[0]:e}function S(e,t,n){return e.replace(t,n)}function _(e,t){return e.indexOf(t)}function E(e,t){return 0|e.charCodeAt(t)}function k(e,t,n){return e.slice(t,n)}function C(e){return e.length}function A(e){return e.length}function T(e,t){return t.push(e),e}function O(e,t){return e.filter((function(e){return!x(e,t)}))}var M=1,R=1,L=0,D=0,P=0,j="";function I(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:M,column:R,length:a,return:"",siblings:s}}function $(e,t){return b(I("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function N(e){for(;e.root;)e=$(e.root,{children:[e]});T(e,e.siblings)}function F(){return P=D>0?E(j,--D):0,R--,10===P&&(R=1,M--),P}function z(){return P=D<L?E(j,D++):0,R++,10===P&&(R=1,M++),P}function B(){return E(j,D)}function H(){return D}function W(e,t){return k(j,e,t)}function U(e){switch(e){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 Z(e){return M=R=1,L=C(j=e),D=0,[]}function V(e){return j="",e}function G(e){return w(W(D-1,K(91===e?e+2:40===e?e+1:e)))}function q(e){for(;(P=B())&&P<33;)z();return U(e)>2||U(P)>3?"":" "}function Y(e,t){for(;--t&&z()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return W(e,H()+(t<6&&32==B()&&32==z()))}function K(e){for(;z();)switch(P){case e:return D;case 34:case 39:34!==e&&39!==e&&K(P);break;case 40:41===e&&K(e);break;case 92:z()}return D}function X(e,t){for(;z()&&e+P!==57&&(e+P!==84||47!==B()););return"/*"+W(t,D-1)+"*"+y(47===e?e:z())}function Q(e){for(;!U(B());)z();return W(e,D)}function J(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function ee(e,t,n,r){switch(e.type){case m:if(e.children.length)break;case p:case h:return e.return=e.return||e.value;case d:return"";case g:return e.return=e.value+"{"+J(e.children,r)+"}";case f:if(!C(e.value=e.props.join(",")))return""}return C(n=J(e.children,r))?e.return=e.value+"{"+n+"}":""}function te(e,t,n){switch(function(e,t){return 45^E(e,0)?(((t<<2^E(e,0))<<2^E(e,1))<<2^E(e,2))<<2^E(e,3):0}(e,t)){case 5103:return c+"print-"+e+e;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 c+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return c+e+u+e+l+e+e;case 5936:switch(E(e,t+11)){case 114:return c+e+l+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return c+e+l+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return c+e+l+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return c+e+l+e+e;case 6165:return c+e+l+"flex-"+e+e;case 5187:return c+e+S(e,/(\w+).+(:[^]+)/,c+"box-$1$2"+l+"flex-$1$2")+e;case 5443:return c+e+l+"flex-item-"+S(e,/flex-|-self/g,"")+(x(e,/flex-|baseline/)?"":l+"grid-row-"+S(e,/flex-|-self/g,""))+e;case 4675:return c+e+l+"flex-line-pack"+S(e,/align-content|flex-|-self/g,"")+e;case 5548:return c+e+l+S(e,"shrink","negative")+e;case 5292:return c+e+l+S(e,"basis","preferred-size")+e;case 6060:return c+"box-"+S(e,"-grow","")+c+e+l+S(e,"grow","positive")+e;case 4554:return c+S(e,/([^-])(transform)/g,"$1"+c+"$2")+e;case 6187:return S(S(S(e,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),e,"")+e;case 5495:case 3959:return S(e,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return S(S(e,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+e+e;case 4200:if(!x(e,/flex-|baseline/))return l+"grid-column-align"+k(e,t)+e;break;case 2592:case 3360:return l+S(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,x(e.props,/grid-\w+-end/)}))?~_(e+(n=n[t].value),"span")?e:l+S(e,"-start","")+e+l+"grid-row-span:"+(~_(n,"span")?x(n,/\d+/):+x(n,/\d+/)-+x(e,/\d+/))+";":l+S(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return x(e.props,/grid-\w+-start/)}))?e:l+S(S(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return S(e,/(.+)-inline(.+)/,c+"$1$2")+e;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(C(e)-1-t>6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+u+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_(e,"stretch")?te(S(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return S(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return l+n+":"+r+s+(o?l+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===E(e,t+6))return S(e,":",":"+c)+e;break;case 6444:switch(E(e,45===E(e,14)?18:11)){case 120:return S(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===E(e,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+l+"$2box$3")+e;case 100:return S(e,":",":"+l)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return S(e,"scroll-","scroll-snap-")+e}return e}function ne(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=te(e.value,e.length,n));case g:return J([$(e,{value:S(e.value,"@","@"+c)})],r);case f:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(x(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":N($(e,{props:[S(t,/:(read-\w+)/,":"+u+"$1")]})),N($(e,{props:[t]})),b(e,{props:O(n,r)});break;case"::placeholder":N($(e,{props:[S(t,/:(plac\w+)/,":"+c+"input-$1")]})),N($(e,{props:[S(t,/:(plac\w+)/,":"+u+"$1")]})),N($(e,{props:[S(t,/:(plac\w+)/,l+"input-$1")]})),N($(e,{props:[t]})),b(e,{props:O(n,r)})}return""}))}}function re(e){return V(oe("",null,null,null,[""],e=Z(e),0,[0],e))}function oe(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,p=0,g=1,m=1,v=1,b=0,w="",x=o,k=i,A=r,O=w;m;)switch(p=b,b=z()){case 40:if(108!=p&&58==E(O,d-1)){-1!=_(O+=S(G(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:O+=G(b);break;case 9:case 10:case 13:case 32:O+=q(p);break;case 92:O+=Y(H()-1,7);continue;case 47:switch(B()){case 42:case 47:T(ae(X(z(),H()),t,n,l),l);break;default:O+="/"}break;case 123*g:s[u++]=C(O)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:-1==v&&(O=S(O,/\f/g,"")),h>0&&C(O)-d&&T(h>32?se(O+";",r,n,d-1,l):se(S(O," ","")+";",r,n,d-2,l),l);break;case 59:O+=";";default:if(T(A=ie(O,t,n,u,c,o,s,w,x=[],k=[],d,i),i),123===b)if(0===c)oe(O,t,A,A,x,i,d,s,k);else switch(99===f&&110===E(O,3)?100:f){case 100:case 108:case 109:case 115:oe(e,A,A,r&&T(ie(e,A,A,0,0,o,s,w,o,x=[],d,k),k),o,k,d,s,r?x:k);break;default:oe(O,A,A,A,[""],k,0,s,k)}}u=c=h=0,g=v=1,w=O="",d=a;break;case 58:d=1+C(O),h=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==F())continue;switch(O+=y(b),b*g){case 38:v=c>0?1:(O+="\f",-1);break;case 44:s[u++]=(C(O)-1)*v,v=1;break;case 64:45===B()&&(O+=G(z())),f=B(),c=d=C(w=O+=Q(H())),b++;break;case 45:45===p&&2==C(O)&&(g=0)}}return i}function ie(e,t,n,r,o,i,a,s,l,u,c,d){for(var h=o-1,p=0===o?i:[""],g=A(p),m=0,y=0,b=0;m<r;++m)for(var x=0,_=k(e,h+1,h=v(y=a[m])),E=e;x<g;++x)(E=w(y>0?p[x]+" "+_:S(_,/&\f/g,p[x])))&&(l[b++]=E);return I(e,t,n,0===o?f:s,l,u,c,d)}function ae(e,t,n,r){return I(e,t,n,d,y(P),k(e,2,-2),0,r)}function se(e,t,n,r,o){return I(e,t,n,h,k(e,0,r),k(e,r+1,-1),r,o)}var le={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},ue="undefined"!=typeof process&&("MISSING_ENV_VAR".REACT_APP_SC_ATTR||"MISSING_ENV_VAR".SC_ATTR)||"data-styled",ce="undefined"!=typeof window&&"HTMLElement"in window,de=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=="MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY&&""!=="MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY?"false"!=="MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY&&"MISSING_ENV_VAR".REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=="MISSING_ENV_VAR".SC_DISABLE_SPEEDY&&""!=="MISSING_ENV_VAR".SC_DISABLE_SPEEDY&&("false"!=="MISSING_ENV_VAR".SC_DISABLE_SPEEDY&&"MISSING_ENV_VAR".SC_DISABLE_SPEEDY)),fe={},he=(new Set,Object.freeze([])),pe=Object.freeze({});function ge(e,t,n){return void 0===n&&(n=pe),e.theme!==n.theme&&e.theme||t||n.theme}var me=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ve=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ye=/(^-|-$)/g;function be(e){return e.replace(ve,"-").replace(ye,"")}var we=/(a)(d)/gi,xe=function(e){return String.fromCharCode(e+(e>25?39:97))};function Se(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=xe(t%52)+n;return(xe(t%52)+n).replace(we,"$1-$2")}var _e,Ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ke=function(e){return Ee(5381,e)};function Ce(e){return Se(ke(e)>>>0)}function Ae(e){return"string"==typeof e&&!0}var Te="function"==typeof Symbol&&Symbol.for,Oe=Te?Symbol.for("react.memo"):60115,Me=Te?Symbol.for("react.forward_ref"):60112,Re={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Le={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},De={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pe=((_e={})[Me]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_e[Oe]=De,_e);function je(e){return("type"in(t=e)&&t.type.$$typeof)===Oe?De:"$$typeof"in e?Pe[e.$$typeof]:Re;var t}var Ie=Object.defineProperty,$e=Object.getOwnPropertyNames,Ne=Object.getOwnPropertySymbols,Fe=Object.getOwnPropertyDescriptor,ze=Object.getPrototypeOf,Be=Object.prototype;function He(e,t,n){if("string"!=typeof t){if(Be){var r=ze(t);r&&r!==Be&&He(e,r,n)}var o=$e(t);Ne&&(o=o.concat(Ne(t)));for(var i=je(e),a=je(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Le||n&&n[l]||a&&l in a||i&&l in i)){var u=Fe(t,l);try{Ie(e,l,u)}catch(e){}}}}return e}function We(e){return"function"==typeof e}function Ue(e){return"object"==typeof e&&"styledComponentId"in e}function Ze(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ve(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Ge(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function qe(e,t,n){if(void 0===n&&(n=!1),!n&&!Ge(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=qe(e[r],t[r]);else if(Ge(t))for(var r in t)e[r]=qe(e[r],t[r]);return e}function Ye(e,t){Object.defineProperty(e,"toString",{value:t})}function Ke(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Xe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Ke(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat("/*!sc*/\n");return t},e}(),Qe=new Map,Je=new Map,et=1,tt=function(e){if(Qe.has(e))return Qe.get(e);for(;Je.has(et);)et++;var t=et++;return Qe.set(e,t),Je.set(t,e),t},nt=function(e,t){Qe.set(e,t),Je.set(t,e)},rt="style[".concat(ue,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),ot=new RegExp("^".concat(ue,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),it=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},at=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(ot);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(nt(c,u),it(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}};function st(){return n.nc}var lt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ue,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ue,"active"),r.setAttribute("data-styled-version","6.0.8");var a=st();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},ut=function(){function e(e){this.element=lt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Ke(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ct=function(){function e(e){this.element=lt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),dt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),ft=ce,ht={isServer:!ce,useCSSOMInjection:!de},pt=function(){function e(e,t,n){void 0===e&&(e=pe),void 0===t&&(t={});var o=this;this.options=r(r({},ht),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ce&&ft&&(ft=!1,function(e){for(var t=document.querySelectorAll(rt),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(ue)&&(at(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Ye(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Je.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(ue,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat("/*!sc*/\n")},i=0;i<n;i++)o(i);return r}(o)}))}return e.registerId=function(e){return tt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new dt(n):t?new ut(n):new ct(n)}(this.options),new Xe(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(tt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(tt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(tt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),gt=/&/g,mt=/^\s*\/\/.*$/gm;function vt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=vt(e.children,t)),e}))}function yt(e){var t,n,r,o=void 0===e?pe:e,i=o.options,a=void 0===i?pe:i,s=o.plugins,l=void 0===s?he:s,u=function(e,r,o){return o===n||o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(gt,n).replace(r,u))})),a.prefix&&c.push(ne),c.push(ee);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(mt,""),u=re(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=vt(u,a.namespace));var d,f,h,p=[];return J(u,(d=c.concat((h=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&h(e)})),f=A(d),function(e,t,n,r){for(var o="",i=0;i<f;i++)o+=d[i](e,t,n,r)||"";return o})),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||Ke(15),Ee(e,t.name)}),5381).toString():"",d}var bt=new pt,wt=yt(),xt=i.createContext({shouldForwardProp:void 0,styleSheet:bt,stylis:wt}),St=(xt.Consumer,i.createContext(void 0));function _t(){return(0,i.useContext)(xt)}function Et(e){var t=(0,i.useState)(e.stylisPlugins),n=t[0],r=t[1],o=_t().styleSheet,a=(0,i.useMemo)((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),l=(0,i.useMemo)((function(){return yt({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var u=(0,i.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:l}}),[e.shouldForwardProp,a,l]);return i.createElement(xt.Provider,{value:u},i.createElement(St.Provider,{value:l},e.children))}var kt=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=wt);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ye(this,(function(){throw Ke(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=wt),this.name+e.hash},e}(),Ct=function(e){return e>="A"&&e<="Z"};function At(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Ct(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Tt=function(e){return null==e||!1===e||""===e},Ot=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Tt(a)&&(Array.isArray(a)&&a.isCss||We(a)?r.push("".concat(At(i),":"),a,";"):Ge(a)?r.push.apply(r,o(o(["".concat(i," {")],Ot(a),!1),["}"],!1)):r.push("".concat(At(i),": ").concat((t=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in le||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Mt(e,t,n,r){return Tt(e)?[]:Ue(e)?[".".concat(e.styledComponentId)]:We(e)?!We(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Mt(e(t),t,n,r):e instanceof kt?n?(e.inject(n,r),[e.getName(r)]):[e]:Ge(e)?Ot(e):Array.isArray(e)?Array.prototype.concat.apply(he,e.map((function(e){return Mt(e,t,n,r)}))):[e.toString()];var o}function Rt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(We(n)&&!Ue(n))return!1}return!0}var Lt=ke("6.0.8"),Dt=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Rt(e),this.componentId=t,this.baseHash=Ee(Lt,t),this.baseStyle=n,pt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Ze(r,this.staticRulesId);else{var o=Ve(Mt(this.rules,e,t,n)),i=Se(Ee(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Ze(r,i),this.staticRulesId=i}else{for(var s=Ee(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Ve(Mt(c,e,t,n));s=Ee(s,d+u),l+=d}}if(l){var f=Se(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=Ze(r,f)}}return r},e}(),Pt=i.createContext(void 0);Pt.Consumer;function jt(e){var t=i.useContext(Pt),n=(0,i.useMemo)((function(){return function(e,t){if(!e)throw Ke(14);if(We(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw Ke(8);return t?r(r({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?i.createElement(Pt.Provider,{value:n},e.children):null}var It={};new Set;function $t(e,t,n){var o=Ue(e),a=e,s=!Ae(e),l=t.attrs,u=void 0===l?he:l,c=t.componentId,d=void 0===c?function(e,t){var n="string"!=typeof e?"sc":be(e);It[n]=(It[n]||0)+1;var r="".concat(n,"-").concat(Ce("6.0.8"+n+It[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):c,f=t.displayName,h=(void 0===f&&function(e){Ae(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),t.displayName&&t.componentId?"".concat(be(t.displayName),"-").concat(t.componentId):t.componentId||d),p=o&&a.attrs?a.attrs.concat(u).filter(Boolean):u,g=t.shouldForwardProp;if(o&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;g=function(e,t){return m(e,t)&&v(e,t)}}else g=m}var y=new Dt(n,h,o?a.componentStyle:void 0);var b=i.forwardRef((function(e,t){return function(e,t,n){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,u=e.styledComponentId,c=e.target,d=i.useContext(Pt),f=_t(),h=e.shouldForwardProp||f.shouldForwardProp,p=function(e,t,n){for(var o,i=r(r({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=We(o=e[a])?o(i):o;for(var l in s)i[l]="className"===l?Ze(i[l],s[l]):"style"===l?r(r({},i[l]),s[l]):s[l]}return t.className&&(i.className=Ze(i.className,t.className)),i}(o,t,ge(t,d,s)||pe),g=p.as||c,m={};for(var v in p)void 0===p[v]||"$"===v[0]||"as"===v||"theme"===v||("forwardedAs"===v?m.as=p.forwardedAs:h&&!h(v,g)||(m[v]=p[v]));var y=function(e,t){var n=_t();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,p),b=Ze(l,u);return y&&(b+=" "+y),p.className&&(b+=" "+p.className),m[Ae(g)&&!me.has(g)?"class":"className"]=b,m.ref=n,(0,i.createElement)(g,m)}(b,e,t)}));return b.attrs=p,b.componentStyle=y,b.shouldForwardProp=g,b.foldedComponentIds=o?Ze(a.foldedComponentIds,a.styledComponentId):"",b.styledComponentId=h,b.target=o?a.target:e,Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)qe(e,o[r],!0);return e}({},a.defaultProps,e):e}}),Ye(b,(function(){return".".concat(b.styledComponentId)})),s&&He(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function Nt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Ft=function(e){return Object.assign(e,{isCss:!0})};function zt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(We(e)||Ge(e))return Ft(Mt(Nt(he,o([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Mt(r):Ft(Mt(Nt(r,t)))}function Bt(e,t,n){if(void 0===n&&(n=pe),!t)throw Ke(1,t);var i=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,zt.apply(void 0,o([r],i,!1)))};return i.attrs=function(o){return Bt(e,t,r(r({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},i.withConfig=function(o){return Bt(e,t,r(r({},n),o))},i}var Ht=function(e){return Bt($t,e)},Wt=Ht;me.forEach((function(e){Wt[e]=Ht(e)}));var Ut=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Rt(e),pt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Ve(Mt(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&pt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Zt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var a=zt.apply(void 0,o([e],t,!1)),s="sc-global-".concat(Ce(JSON.stringify(a))),l=new Ut(a,s),u=function(e){var t=_t(),n=i.useContext(Pt),r=i.useRef(t.styleSheet.allocateGSInstance(s)).current;return t.styleSheet.server&&c(r,e,t.styleSheet,n,t.stylis),i.useLayoutEffect((function(){if(!t.styleSheet.server)return c(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}}),[r,e,t.styleSheet,n,t.stylis]),null};function c(e,t,n,o,i){if(l.isStatic)l.renderStyles(e,fe,n,i);else{var a=r(r({},t),{theme:ge(t,o,u.defaultProps)});l.renderStyles(e,a,n,i)}}return i.memo(u)}function Vt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Ve(zt.apply(void 0,o([e],t,!1))),i=Ce(r);return new kt(i,r)}(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=st(),r=Ve([n&&'nonce="'.concat(n,'"'),"".concat(ue,'="true"'),"".concat("data-styled-version",'="').concat("6.0.8",'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Ke(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Ke(2);var n=((t={})[ue]="",t["data-styled-version"]="6.0.8",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=st();return o&&(n.nonce=o),[i.createElement("style",r({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new pt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Ke(2);return i.createElement(Et,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Ke(3)}})(),"__sc-".concat(ue,"__")},8942:(e,t,n)=>{var r=n(34204);e.exports=function(e){return r(e).replace(/\s(\w)/g,(function(e,t){return t.toUpperCase()}))}},18573:e=>{e.exports=function(e){return t.test(e)?e.toLowerCase():n.test(e)?(function(e){return e.replace(o,(function(e,t){return t?" "+t:""}))}(e)||e).toLowerCase():r.test(e)?function(e){return e.replace(i,(function(e,t,n){return t+" "+n.toLowerCase().split("").join(" ")}))}(e).toLowerCase():e.toLowerCase()};var t=/\s/,n=/(_|-|\.|:)/,r=/([a-z][A-Z]|[A-Z][a-z])/;var o=/[\W_]+(.|$)/g;var i=/(.)([A-Z]+)/g},34204:(e,t,n)=>{var r=n(18573);e.exports=function(e){return r(e).replace(/[\W_]+(.|$)/g,(function(e,t){return t?" "+t:""})).trim()}},91706:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},9520:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},37642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(47071),i=(r=o)&&r.__esModule?r:{default:r};t.default={pauseVideo:{acceptableStates:[i.default.ENDED,i.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[i.default.ENDED,i.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[i.default.ENDED,i.default.PLAYING,i.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default},12349:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(15532)),o=s(n(78154)),i=s(n(14625)),a=s(n(37642));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,r.default)("youtube-player"),u={proxyEvents:function(e){var t={},n=function(n){var r="on"+n.slice(0,1).toUpperCase()+n.slice(1);t[r]=function(t){l('event "%s"',r,t),e.trigger(n,t)}},r=!0,o=!1,a=void 0;try{for(var s,u=i.default[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){n(s.value)}}catch(e){o=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw a}}return t},promisifyPlayer:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={},r=function(r){t&&a.default[r]?n[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.then((function(e){var t=a.default[r],o=e.getPlayerState(),i=e[r].apply(e,n);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(o)?new Promise((function(n){e.addEventListener("onStateChange",(function r(){var o=e.getPlayerState(),i=void 0;"number"==typeof t.timeout&&(i=setTimeout((function(){e.removeEventListener("onStateChange",r),n()}),t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(o)&&(e.removeEventListener("onStateChange",r),clearTimeout(i),n())}))})).then((function(){return i})):i}))}:n[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.then((function(e){return e[r].apply(e,n)}))}},i=!0,s=!1,l=void 0;try{for(var u,c=o.default[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){r(u.value)}}catch(e){s=!0,l=e}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}return n}};t.default=u,e.exports=t.default},47071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default},14625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default},78154:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default},55741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=s(n(76365)),i=s(n(44213)),a=s(n(12349));function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,o.default)();if(l||(l=(0,i.default)(s)),t.events)throw new Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw new Error('Element "'+e+'" does not exist.');t.events=a.default.proxyEvents(s);var u=new Promise((function(n){"object"===(void 0===e?"undefined":r(e))&&e.playVideo instanceof Function?n(e):l.then((function(r){var o=new r.Player(e,t);return s.on("ready",(function(){n(o)})),null}))})),c=a.default.promisifyPlayer(u,n);return c.on=s.on,c.off=s.off,c},e.exports=t.default},44213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(9599),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){return new Promise((function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)t(window.YT);else{var n="http:"===window.location.protocol?"http:":"https:";(0,i.default)(n+"//www.youtube.com/iframe_api",(function(t){t&&e.trigger("error",t)}));var r=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){r&&r(),t(window.YT)}}}))},e.exports=t.default},15532:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e="MISSING_ENV_VAR".DEBUG),e}(t=e.exports=n(77920)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},77920:(e,t,n)=>{var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var o=t.formatters[r];if("function"==typeof o){var i=a[l];n=o.call(e,i),a.splice(l,1),l--}return n})),t.formatArgs.call(e,a),(n.log||t.log||console.log.bind(console)).apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(63589),t.names=[],t.skips=[],t.formatters={}},63589:e=>{var t=1e3,n=60*t,r=60*n,o=24*r,i=365.25*o;function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,s){s=s||{};var l,u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!a)return;var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*i;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===u&&!1===isNaN(e))return s.long?a(l=e,o,"day")||a(l,r,"hour")||a(l,n,"minute")||a(l,t,"second")||l+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=r)return Math.round(e/r)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},49656:(e,t,n)=>{var r;if("function"==typeof fetch&&(r=void 0!==n.g&&n.g.fetch?n.g.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),"undefined"==typeof window||void 0===window.document){var o=r||n(96279);o.default&&(o=o.default),t.default=o,e.exports=t.default}},80184:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t=/^\s+/,n=/\s+$/;function r(e,t){if(t=t||{},(e=e||"")instanceof r)return e;if(!(this instanceof r))return new r(e,t);var n=o(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function o(t){var n={r:0,g:0,b:0},r=1,o=null,a=null,l=null,c=!1,d=!1;return"string"==typeof t&&(t=W(t)),"object"==e(t)&&(H(t.r)&&H(t.g)&&H(t.b)?(n=i(t.r,t.g,t.b),c=!0,d="%"===String(t.r).substr(-1)?"prgb":"rgb"):H(t.h)&&H(t.s)&&H(t.v)?(o=j(t.s),a=j(t.v),n=u(t.h,o,a),c=!0,d="hsv"):H(t.h)&&H(t.s)&&H(t.l)&&(o=j(t.s),l=j(t.l),n=s(t.h,o,l),c=!0,d="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=T(r),{ok:c,format:t.format||d,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:r}}function i(e,t,n){return{r:255*O(e,255),g:255*O(t,255),b:255*O(n,255)}}function a(e,t,n){e=O(e,255),t=O(t,255),n=O(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function s(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=O(e,360),t=O(t,100),n=O(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}function l(e,t,n){e=O(e,255),t=O(t,255),n=O(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function u(e,t,n){e=6*O(e,360),t=O(t,100),n=O(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}function c(e,t,n,r){var o=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(e,t,n,r,o){var i=[P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16)),P(I(r))];return o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function f(e,t,n,r){return[P(I(r)),P(Math.round(e).toString(16)),P(Math.round(t).toString(16)),P(Math.round(n).toString(16))].join("")}function h(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s-=t/100,n.s=M(n.s),r(n)}function p(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.s+=t/100,n.s=M(n.s),r(n)}function g(e){return r(e).desaturate(100)}function m(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l+=t/100,n.l=M(n.l),r(n)}function v(e,t){t=0===t?0:t||10;var n=r(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),r(n)}function y(e,t){t=0===t?0:t||10;var n=r(e).toHsl();return n.l-=t/100,n.l=M(n.l),r(n)}function b(e,t){var n=r(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,r(n)}function w(e){var t=r(e).toHsl();return t.h=(t.h+180)%360,r(t)}function x(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=r(e).toHsl(),o=[r(e)],i=360/t,a=1;a<t;a++)o.push(r({h:(n.h+a*i)%360,s:n.s,l:n.l}));return o}function S(e){var t=r(e).toHsl(),n=t.h;return[r(e),r({h:(n+72)%360,s:t.s,l:t.l}),r({h:(n+216)%360,s:t.s,l:t.l})]}function _(e,t,n){t=t||6,n=n||30;var o=r(e).toHsl(),i=360/n,a=[r(e)];for(o.h=(o.h-(i*t>>1)+720)%360;--t;)o.h=(o.h+i)%360,a.push(r(o));return a}function E(e,t){t=t||6;for(var n=r(e).toHsv(),o=n.h,i=n.s,a=n.v,s=[],l=1/t;t--;)s.push(r({h:o,s:i,v:a})),a=(a+l)%1;return s}r.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=a(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return c(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return d(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*O(this._r,255))+"%",g:Math.round(100*O(this._g,255))+"%",b:Math.round(100*O(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%)":"rgba("+Math.round(100*O(this._r,255))+"%, "+Math.round(100*O(this._g,255))+"%, "+Math.round(100*O(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(C[c(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+f(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var i=r(e);n="#"+f(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return r(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(p,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(x,[3])},tetrad:function(){return this._applyCombination(x,[4])}},r.fromRatio=function(t,n){if("object"==e(t)){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]="a"===i?t[i]:j(t[i]));t=o}return r(t,n)},r.equals=function(e,t){return!(!e||!t)&&r(e).toRgbString()==r(t).toRgbString()},r.random=function(){return r.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},r.mix=function(e,t,n){n=0===n?0:n||50;var o=r(e).toRgb(),i=r(t).toRgb(),a=n/100;return r({r:(i.r-o.r)*a+o.r,g:(i.g-o.g)*a+o.g,b:(i.b-o.b)*a+o.b,a:(i.a-o.a)*a+o.a})},r.readability=function(e,t){var n=r(e),o=r(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},r.isReadable=function(e,t,n){var o,i,a=r.readability(e,t);switch(i=!1,(o=U(n)).level+o.size){case"AAsmall":case"AAAlarge":i=a>=4.5;break;case"AAlarge":i=a>=3;break;case"AAAsmall":i=a>=7}return i},r.mostReadable=function(e,t,n){var o,i,a,s,l=null,u=0;i=(n=n||{}).includeFallbackColors,a=n.level,s=n.size;for(var c=0;c<t.length;c++)(o=r.readability(e,t[c]))>u&&(u=o,l=r(t[c]));return r.isReadable(e,l,{level:a,size:s})||!i?l:(n.includeFallbackColors=!1,r.mostReadable(e,["#fff","#000"],n))};var k=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},C=r.hexNames=A(k);function A(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function O(e,t){L(e)&&(e="100%");var n=D(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return Math.min(1,Math.max(0,e))}function R(e){return parseInt(e,16)}function L(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function D(e){return"string"==typeof e&&-1!=e.indexOf("%")}function P(e){return 1==e.length?"0"+e:""+e}function j(e){return e<=1&&(e=100*e+"%"),e}function I(e){return Math.round(255*parseFloat(e)).toString(16)}function $(e){return R(e)/255}var N,F,z,B=(F="[\\s|\\(]+("+(N="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",z="[\\s|\\(]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")[,|\\s]+("+N+")\\s*\\)?",{CSS_UNIT:new RegExp(N),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function H(e){return!!B.CSS_UNIT.exec(e)}function W(e){e=e.replace(t,"").replace(n,"").toLowerCase();var r,o=!1;if(k[e])e=k[e],o=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(r=B.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=B.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=B.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=B.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=B.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=B.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=B.hex8.exec(e))?{r:R(r[1]),g:R(r[2]),b:R(r[3]),a:$(r[4]),format:o?"name":"hex8"}:(r=B.hex6.exec(e))?{r:R(r[1]),g:R(r[2]),b:R(r[3]),format:o?"name":"hex"}:(r=B.hex4.exec(e))?{r:R(r[1]+""+r[1]),g:R(r[2]+""+r[2]),b:R(r[3]+""+r[3]),a:$(r[4]+""+r[4]),format:o?"name":"hex8"}:!!(r=B.hex3.exec(e))&&{r:R(r[1]+""+r[1]),g:R(r[2]+""+r[2]),b:R(r[3]+""+r[3]),format:o?"name":"hex"}}function U(e){var t,n;return"AA"!==(t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==t&&(t="AA"),"small"!==(n=(e.size||"small").toLowerCase())&&"large"!==n&&(n="small"),{level:t,size:n}}return r}()},926:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},39868:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:()=>r})},80753:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},9249:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},87371:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(45850);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},56666:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(45850);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7896:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},95058:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},45754:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88960);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},81079:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},34434:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},37584:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(56666);function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach((function(t){(0,r.Z)(e,t,n[t])}))}return e}},33028:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(56666);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},31461:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})},11987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(86522),o=n(80753);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},88960:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},96234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(39868);var o=n(59147),i=n(34434);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},68079:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(926);var o=n(81079),i=n(59147);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},45850:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(86522);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},86522:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},59147:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(926);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},1391:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>S});var o=[],i=o.forEach,a=o.slice;function s(e){return i.call(a.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function l(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":r(XMLHttpRequest))}var u,c,d,f=n(49656),h=n.t(f,2);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}"function"==typeof fetch&&(u="undefined"!=typeof global&&global.fetch?global.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),l()&&("undefined"!=typeof global&&global.XMLHttpRequest?c=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(c=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?d=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(d=window.ActiveXObject)),u||!h||c||d||(u=f||h),"function"!=typeof u&&(u=void 0);var g=function(e,t){if(t&&"object"===p(t)){var n="";for(var r in t)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t[r]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},m=function(e,t,n){u(e,t).then((function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then((function(t){n(null,{status:e.status,data:t})})).catch(n)})).catch(n)},v=!1;const y=function(e,t,n,r){return"function"==typeof n&&(r=n,n=void 0),r=r||function(){},u?function(e,t,n,r){e.queryStringParams&&(t=g(t,e.queryStringParams));var o=s({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);n&&(o["Content-Type"]="application/json");var i="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,a=s({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:o},v?{}:i);try{m(t,a,r)}catch(e){if(!i||0===Object.keys(i).length||!e.message||e.message.indexOf("not implemented")<0)return r(e);try{Object.keys(i).forEach((function(e){delete a[e]})),m(t,a,r),v=!0}catch(e){r(e)}}}(e,t,n,r):l()||"function"==typeof ActiveXObject?function(e,t,n,r){n&&"object"===p(n)&&(n=g("",n).slice(1)),e.queryStringParams&&(t=g(t,e.queryStringParams));try{var o;(o=c?new c:new d("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var i=e.customHeaders;if(i="function"==typeof i?i():i)for(var a in i)o.setRequestHeader(a,i[a]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(e){console&&console.log(e)}}(e,t,n,r):void r(new Error("No fetch and no xhr implementation found!"))};function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var w=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},request:y,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},x=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}var t,n,r;return t=e,n=[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=s(n,this.options||{},w()),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval((function(){return t.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,r,o){var i,a=this,s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=function(e){return!!e&&"function"==typeof e.then}(i=s)?i:Promise.resolve(i)).then((function(i){if(!i)return o(null,{});var s=a.services.interpolator.interpolate(i,{lng:e.join("+"),ns:n.join("+")});a.loadUrl(s,o,t,r)}))}},{key:"loadUrl",value:function(e,t,n,r){var o=this;this.options.request(this.options,e,void 0,(function(i,a){if(a&&(a.status>=500&&a.status<600||!a.status))return t("failed loading "+e+"; status code: "+a.status,!0);if(a&&a.status>=400&&a.status<500)return t("failed loading "+e+"; status code: "+a.status,!1);if(!a&&i&&i.message&&i.message.indexOf("Failed to fetch")>-1)return t("failed loading "+e+": "+i.message,!0);if(i)return t(i,!1);var s,l;try{s="string"==typeof a.data?o.options.parse(a.data,n,r):a.data}catch(t){l="failed parsing "+e+" to json"}if(l)return t(l,!1);t(null,s)}))}},{key:"create",value:function(e,t,n,r,o){var i=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,n,r),s=0,l=[],u=[];e.forEach((function(n){var r=i.options.addPath;"function"==typeof i.options.addPath&&(r=i.options.addPath(n,t));var c=i.services.interpolator.interpolate(r,{lng:n,ns:t});i.options.request(i.options,c,a,(function(t,n){s+=1,l.push(t),u.push(n),s===e.length&&o&&o(l,u)}))}))}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,r=t.languageUtils,o=t.logger,i=n.language;if(!i||"cimode"!==i.toLowerCase()){var a=[],s=function(e){r.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};s(i),this.allOptions.preload&&this.allOptions.preload.forEach((function(e){return s(e)})),a.forEach((function(t){e.allOptions.ns.forEach((function(e){n.read(t,e,"read",null,null,(function(r,i){r&&o.warn("loading namespace ".concat(e," for language ").concat(t," failed"),r),!r&&i&&o.log("loaded namespace ".concat(e," for language ").concat(t),i),n.loaded("".concat(t,"|").concat(e),r,i)}))}))}))}}}],n&&b(t.prototype,n),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();x.type="backend";const S=x},66439:(e,t,n)=>{"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t,n;return!1!==r(e)&&(void 0===(t=e.constructor)||!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}n.d(t,{P:()=>o})},21805:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{Z:()=>o});var o=function e(t,n){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=r({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){o(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},24649:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});const r=function(){this.__data__=[],this.size=0};var o=n(78804);const i=function(e,t){for(var n=e.length;n--;)if((0,o.Z)(e[n][0],t))return n;return-1};var a=Array.prototype.splice;const s=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)};const l=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]};const u=function(e){return i(this.__data__,e)>-1};const c=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=r,d.prototype.delete=s,d.prototype.get=l,d.prototype.has=u,d.prototype.set=c;const f=d},38896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(95546),o=n(93221);const i=(0,r.Z)(o.Z,"Map")},43703:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});const r=(0,n(95546).Z)(Object,"create");const o=function(){this.__data__=r?r(null):{},this.size=0};const i=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var a=Object.prototype.hasOwnProperty;const s=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0};var l=Object.prototype.hasOwnProperty;const u=function(e){var t=this.__data__;return r?void 0!==t[e]:l.call(t,e)};const c=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}d.prototype.clear=o,d.prototype.delete=i,d.prototype.get=s,d.prototype.has=u,d.prototype.set=c;const f=d;var h=n(24649),p=n(38896);const g=function(){this.size=0,this.__data__={hash:new f,map:new(p.Z||h.Z),string:new f}};const m=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const v=function(e,t){var n=e.__data__;return m(t)?n["string"==typeof t?"string":"hash"]:n.map};const y=function(e){var t=v(this,e).delete(e);return this.size-=t?1:0,t};const b=function(e){return v(this,e).get(e)};const w=function(e){return v(this,e).has(e)};const x=function(e,t){var n=v(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function S(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}S.prototype.clear=g,S.prototype.delete=y,S.prototype.get=b,S.prototype.has=w,S.prototype.set=x;const _=S},87459:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(95546),o=n(93221);const i=(0,r.Z)(o.Z,"Set")},96806:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(43703);const o=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const i=function(e){return this.__data__.has(e)};function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r.Z;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i;const s=a},46218:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(24649);const o=function(){this.__data__=new r.Z,this.size=0};const i=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const a=function(e){return this.__data__.get(e)};const s=function(e){return this.__data__.has(e)};var l=n(38896),u=n(43703);const c=function(e,t){var n=this.__data__;if(n instanceof r.Z){var o=n.__data__;if(!l.Z||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new u.Z(o)}return n.set(e,t),this.size=n.size,this};function d(e){var t=this.__data__=new r.Z(e);this.size=t.size}d.prototype.clear=o,d.prototype.delete=i,d.prototype.get=a,d.prototype.has=s,d.prototype.set=c;const f=d},187:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(93221).Z.Symbol},88282:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(93221).Z.Uint8Array},380:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(51960);const o=function(e){return e!=e};const i=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};const a=function(e,t,n){return t==t?i(e,t,n):(0,r.Z)(e,o,n)};const s=function(e,t){return!!(null==e?0:e.length)&&a(e,t,0)>-1}},40704:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},70848:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});const r=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var o=n(54248),i=n(97885),a=n(74975),s=n(66401),l=n(98127),u=Object.prototype.hasOwnProperty;const c=function(e,t){var n=(0,i.Z)(e),c=!n&&(0,o.Z)(e),d=!n&&!c&&(0,a.Z)(e),f=!n&&!c&&!d&&(0,l.Z)(e),h=n||c||d||f,p=h?r(e.length,String):[],g=p.length;for(var m in e)!t&&!u.call(e,m)||h&&("length"==m||d&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,s.Z)(m,g))||p.push(m);return p}},95598:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},95810:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},16299:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(40905),o=n(78804),i=Object.prototype.hasOwnProperty;const a=function(e,t,n){var a=e[t];i.call(e,t)&&(0,o.Z)(a,n)&&(void 0!==n||t in e)||(0,r.Z)(e,t,n)}},40905:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(75088);const o=function(e,t,n){"__proto__"==t&&r.Z?(0,r.Z)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},46421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Y});var r=n(46218);const o=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var i=n(16299),a=n(82436),s=n(20649);const l=function(e,t){return e&&(0,a.Z)(t,(0,s.Z)(t),e)};var u=n(47477);const c=function(e,t){return e&&(0,a.Z)(t,(0,u.Z)(t),e)};var d=n(25056),f=n(31162),h=n(46808);const p=function(e,t){return(0,a.Z)(e,(0,h.Z)(e),t)};var g=n(98390);const m=function(e,t){return(0,a.Z)(e,(0,g.Z)(e),t)};var v=n(37245),y=n(9878),b=n(57210),w=Object.prototype.hasOwnProperty;const x=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&w.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var S=n(6181);const _=function(e,t){var n=t?(0,S.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var E=/\w*$/;const k=function(e){var t=new e.constructor(e.source,E.exec(e));return t.lastIndex=e.lastIndex,t};var C=n(187),A=C.Z?C.Z.prototype:void 0,T=A?A.valueOf:void 0;const O=function(e){return T?Object(T.call(e)):{}};var M=n(76735);const R=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return(0,S.Z)(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return _(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return(0,M.Z)(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return k(e);case"[object Symbol]":return O(e)}};var L=n(42588),D=n(97885),P=n(74975),j=n(43391);const I=function(e){return(0,j.Z)(e)&&"[object Map]"==(0,b.Z)(e)};var $=n(93225),N=n(37755),F=N.Z&&N.Z.isMap;const z=F?(0,$.Z)(F):I;var B=n(93122);const H=function(e){return(0,j.Z)(e)&&"[object Set]"==(0,b.Z)(e)};var W=N.Z&&N.Z.isSet;const U=W?(0,$.Z)(W):H;var Z="[object Arguments]",V="[object Function]",G="[object Object]",q={};q[Z]=q["[object Array]"]=q["[object ArrayBuffer]"]=q["[object DataView]"]=q["[object Boolean]"]=q["[object Date]"]=q["[object Float32Array]"]=q["[object Float64Array]"]=q["[object Int8Array]"]=q["[object Int16Array]"]=q["[object Int32Array]"]=q["[object Map]"]=q["[object Number]"]=q[G]=q["[object RegExp]"]=q["[object Set]"]=q["[object String]"]=q["[object Symbol]"]=q["[object Uint8Array]"]=q["[object Uint8ClampedArray]"]=q["[object Uint16Array]"]=q["[object Uint32Array]"]=!0,q["[object Error]"]=q[V]=q["[object WeakMap]"]=!1;const Y=function e(t,n,a,h,g,w){var S,_=1&n,E=2&n,k=4&n;if(a&&(S=g?a(t,h,g,w):a(t)),void 0!==S)return S;if(!(0,B.Z)(t))return t;var C=(0,D.Z)(t);if(C){if(S=x(t),!_)return(0,f.Z)(t,S)}else{var A=(0,b.Z)(t),T=A==V||"[object GeneratorFunction]"==A;if((0,P.Z)(t))return(0,d.Z)(t,_);if(A==G||A==Z||T&&!g){if(S=E||T?{}:(0,L.Z)(t),!_)return E?m(t,c(S,t)):p(t,l(S,t))}else{if(!q[A])return g?t:{};S=R(t,A,_)}}w||(w=new r.Z);var O=w.get(t);if(O)return O;w.set(t,S),U(t)?t.forEach((function(r){S.add(e(r,n,a,r,t,w))})):z(t)&&t.forEach((function(r,o){S.set(o,e(r,n,a,o,t,w))}));var M=k?E?y.Z:v.Z:E?u.Z:s.Z,j=C?void 0:M(t);return o(j||t,(function(r,o){j&&(r=t[o=r]),(0,i.Z)(S,o,e(r,n,a,o,t,w))})),S}},51960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},53338:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(95810),o=n(187),i=n(54248),a=n(97885),s=o.Z?o.Z.isConcatSpreadable:void 0;const l=function(e){return(0,a.Z)(e)||(0,i.Z)(e)||!!(s&&e&&e[s])};const u=function e(t,n,o,i,a){var s=-1,u=t.length;for(o||(o=l),a||(a=[]);++s<u;){var c=t[s];n>0&&o(c)?n>1?e(c,n-1,o,i,a):(0,r.Z)(a,c):i||(a[a.length]=c)}return a}},23119:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}()},50475:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(23119),o=n(20649);const i=function(e,t){return e&&(0,r.Z)(e,t,o.Z)}},89523:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(46548),o=n(57969);const i=function(e,t){for(var n=0,i=(t=(0,r.Z)(t,e)).length;null!=e&&n<i;)e=e[(0,o.Z)(t[n++])];return n&&n==i?e:void 0}},52938:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(95810),o=n(97885);const i=function(e,t,n){var i=t(e);return(0,o.Z)(e)?i:(0,r.Z)(i,n(e))}},99001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(187),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.Z?r.Z.toStringTag:void 0;const l=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o};var u=Object.prototype.toString;const c=function(e){return u.call(e)};var d=r.Z?r.Z.toStringTag:void 0;const f=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?l(e):c(e)}},11401:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var r=n(46218),o=n(96806);const i=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var a=n(11749);const s=function(e,t,n,r,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,g=!0,m=2&n?new o.Z:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var v=e[p],y=t[p];if(r)var b=u?r(y,v,p,t,e,l):r(v,y,p,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!(0,a.Z)(m,t)&&(v===e||s(v,e,n,r,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,r,l)){g=!1;break}}return l.delete(e),l.delete(t),g};var l=n(187),u=n(88282),c=n(78804);const d=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var f=n(63249),h=l.Z?l.Z.prototype:void 0,p=h?h.valueOf:void 0;const g=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new u.Z(e),new u.Z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,c.Z)(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=d;case"[object Set]":var h=1&r;if(l||(l=f.Z),e.size!=t.size&&!h)return!1;var g=a.get(e);if(g)return g==t;r|=2,a.set(e,t);var m=s(l(e),l(t),r,o,i,a);return a.delete(e),m;case"[object Symbol]":if(p)return p.call(e)==p.call(t)}return!1};var m=n(37245),v=Object.prototype.hasOwnProperty;const y=function(e,t,n,r,o,i){var a=1&n,s=(0,m.Z)(e),l=s.length;if(l!=(0,m.Z)(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:v.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=a;++u<l;){var g=e[c=s[u]],y=t[c];if(r)var b=a?r(y,g,c,t,e,i):r(g,y,c,e,t,i);if(!(void 0===b?g===y||o(g,y,n,r,i):b)){h=!1;break}p||(p="constructor"==c)}if(h&&!p){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(h=!1)}return i.delete(e),i.delete(t),h};var b=n(57210),w=n(97885),x=n(74975),S=n(98127),_="[object Arguments]",E="[object Array]",k="[object Object]",C=Object.prototype.hasOwnProperty;const A=function(e,t,n,o,i,a){var l=(0,w.Z)(e),u=(0,w.Z)(t),c=l?E:(0,b.Z)(e),d=u?E:(0,b.Z)(t),f=(c=c==_?k:c)==k,h=(d=d==_?k:d)==k,p=c==d;if(p&&(0,x.Z)(e)){if(!(0,x.Z)(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new r.Z),l||(0,S.Z)(e)?s(e,t,n,o,i,a):g(e,t,c,n,o,i,a);if(!(1&n)){var m=f&&C.call(e,"__wrapped__"),v=h&&C.call(t,"__wrapped__");if(m||v){var A=m?e.value():e,T=v?t.value():t;return a||(a=new r.Z),i(A,T,n,o,a)}}return!!p&&(a||(a=new r.Z),y(e,t,n,o,i,a))};var T=n(43391);const O=function e(t,n,r,o,i){return t===n||(null==t||null==n||!(0,T.Z)(t)&&!(0,T.Z)(n)?t!=t&&n!=n:A(t,n,r,o,e,i))}},95655:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(46218),o=n(11401);const i=function(e,t,n,i){var a=n.length,s=a,l=!i;if(null==e)return!s;for(e=Object(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var c=(u=n[a])[0],d=e[c],f=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var h=new r.Z;if(i)var p=i(d,f,c,e,t,h);if(!(void 0===p?(0,o.Z)(f,d,3,i,h):p))return!1}}return!0};var a=n(93122);const s=function(e){return e==e&&!(0,a.Z)(e)};var l=n(20649);const u=function(e){for(var t=(0,l.Z)(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,s(o)]}return t};const c=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const d=function(e){var t=u(e);return 1==t.length&&t[0][2]?c(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}};var f=n(90772),h=n(53488),p=n(23502),g=n(57969);const m=function(e,t){return(0,p.Z)(e)&&s(t)?c((0,g.Z)(e),t):function(n){var r=(0,f.Z)(n,e);return void 0===r&&r===t?(0,h.Z)(n,e):(0,o.Z)(t,r,3)}};var v=n(89930),y=n(97885);const b=function(e){return function(t){return null==t?void 0:t[e]}};var w=n(89523);const x=function(e){return function(t){return(0,w.Z)(t,e)}};const S=function(e){return(0,p.Z)(e)?b((0,g.Z)(e)):x(e)};const _=function(e){return"function"==typeof e?e:null==e?v.Z:"object"==typeof e?(0,y.Z)(e)?m(e[0],e[1]):d(e):S(e)}},93917:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(15441);const o=(0,n(76048).Z)(Object.keys,Object);var i=Object.prototype.hasOwnProperty;const a=function(e){if(!(0,r.Z)(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},56493:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(89930),o=n(91130),i=n(19603);const a=function(e,t){return(0,i.Z)((0,o.Z)(e,t,r.Z),e+"")}},64187:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(16299),o=n(46548),i=n(66401),a=n(93122),s=n(57969);const l=function(e,t,n,l){if(!(0,a.Z)(e))return e;for(var u=-1,c=(t=(0,o.Z)(t,e)).length,d=c-1,f=e;null!=f&&++u<c;){var h=(0,s.Z)(t[u]),p=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(u!=d){var g=f[h];void 0===(p=l?l(g,h,f):void 0)&&(p=(0,a.Z)(g)?g:(0,i.Z)(t[u+1])?[]:{})}(0,r.Z)(f,h,p),f=f[h]}return e}},82472:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},93225:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return function(t){return e(t)}}},95768:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(96806),o=n(380),i=n(40704),a=n(11749),s=n(87459),l=n(22168),u=n(63249);const c=s.Z&&1/(0,u.Z)(new s.Z([,-0]))[1]==1/0?function(e){return new s.Z(e)}:l.Z;const d=function(e,t,n){var s=-1,l=o.Z,d=e.length,f=!0,h=[],p=h;if(n)f=!1,l=i.Z;else if(d>=200){var g=t?null:c(e);if(g)return(0,u.Z)(g);f=!1,l=a.Z,p=new r.Z}else p=t?[]:h;e:for(;++s<d;){var m=e[s],v=t?t(m):m;if(m=n||0!==m?m:0,f&&v==v){for(var y=p.length;y--;)if(p[y]===v)continue e;t&&p.push(v),h.push(m)}else l(p,v,n)||(p!==h&&p.push(v),h.push(m))}return h}},11749:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e.has(t)}},46548:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(97885),o=n(23502),i=n(77068);var a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g;const l=function(e){var t=(0,i.Z)(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,o){t.push(r?o.replace(s,"$1"):n||e)})),t}));var u=n(33523);const c=function(e,t){return(0,r.Z)(e)?e:(0,o.Z)(e,t)?[e]:l((0,u.Z)(e))}},6181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(88282);const o=function(e){var t=new e.constructor(e.byteLength);return new r.Z(t).set(new r.Z(e)),t}},25056:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(93221),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o?r.Z.Buffer:void 0,s=a?a.allocUnsafe:void 0;const l=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},76735:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(6181);const o=function(e,t){var n=t?(0,r.Z)(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},31162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},82436:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(16299),o=n(40905);const i=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?(0,o.Z)(n,u,c):(0,r.Z)(n,u,c)}return n}},75088:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(95546);const o=function(){try{var e=(0,r.Z)(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},5255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(53338);const o=function(e){return(null==e?0:e.length)?(0,r.Z)(e,1):[]};var i=n(91130),a=n(19603);const s=function(e){return(0,a.Z)((0,i.Z)(e,void 0,o),e+"")}},92168:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},37245:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(52938),o=n(46808),i=n(20649);const a=function(e){return(0,r.Z)(e,i.Z,o.Z)}},9878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(52938),o=n(98390),i=n(47477);const a=function(e){return(0,r.Z)(e,i.Z,o.Z)}},95546:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var r=n(8936);const o=n(93221).Z["__core-js_shared__"];var i,a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";const s=function(e){return!!a&&a in e};var l=n(93122),u=n(6682),c=/^\[object .+?Constructor\]$/,d=Function.prototype,f=Object.prototype,h=d.toString,p=f.hasOwnProperty,g=RegExp("^"+h.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const m=function(e){return!(!(0,l.Z)(e)||s(e))&&((0,r.Z)(e)?g:c).test((0,u.Z)(e))};const v=function(e,t){return null==e?void 0:e[t]};const y=function(e,t){var n=v(e,t);return m(n)?n:void 0}},29552:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(76048).Z)(Object.getPrototypeOf,Object)},46808:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});const r=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var o=n(70813),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;const s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o.Z},98390:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(95810),o=n(29552),i=n(46808),a=n(70813);const s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)(0,r.Z)(t,(0,i.Z)(e)),e=(0,o.Z)(e);return t}:a.Z},57210:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(95546),o=n(93221);const i=(0,r.Z)(o.Z,"DataView");var a=n(38896);const s=(0,r.Z)(o.Z,"Promise");var l=n(87459);const u=(0,r.Z)(o.Z,"WeakMap");var c=n(99001),d=n(6682),f="[object Map]",h="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",v=(0,d.Z)(i),y=(0,d.Z)(a.Z),b=(0,d.Z)(s),w=(0,d.Z)(l.Z),x=(0,d.Z)(u),S=c.Z;(i&&S(new i(new ArrayBuffer(1)))!=m||a.Z&&S(new a.Z)!=f||s&&S(s.resolve())!=h||l.Z&&S(new l.Z)!=p||u&&S(new u)!=g)&&(S=function(e){var t=(0,c.Z)(e),n="[object Object]"==t?e.constructor:void 0,r=n?(0,d.Z)(n):"";if(r)switch(r){case v:return m;case y:return f;case b:return h;case w:return p;case x:return g}return t});const _=S},42588:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(93122),o=Object.create;const i=function(){function e(){}return function(t){if(!(0,r.Z)(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var a=n(29552),s=n(15441);const l=function(e){return"function"!=typeof e.constructor||(0,s.Z)(e)?{}:i((0,a.Z)(e))}},66401:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=/^(?:0|[1-9]\d*)$/;const o=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}},95965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(78804),o=n(63282),i=n(66401),a=n(93122);const s=function(e,t,n){if(!(0,a.Z)(n))return!1;var s=typeof t;return!!("number"==s?(0,o.Z)(n)&&(0,i.Z)(t,n.length):"string"==s&&t in n)&&(0,r.Z)(n[t],e)}},23502:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(97885),o=n(22758),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;const s=function(e,t){if((0,r.Z)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,o.Z)(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},15441:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Object.prototype;const o=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},37755:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(92168),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof module&&module&&!module.nodeType&&module,a=i&&i.exports===o&&r.Z.process;const s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}()},76048:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return function(n){return e(t(n))}}},91130:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const r=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var o=Math.max;const i=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},93221:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(92168),o="object"==typeof self&&self&&self.Object===Object&&self;const i=r.Z||o||Function("return this")()},63249:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},19603:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});const r=function(e){return function(){return e}};var o=n(75088),i=n(89930);const a=o.Z?function(e,t){return(0,o.Z)(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i.Z;var s=Date.now;const l=function(e){var t=0,n=0;return function(){var r=s(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(a)},57969:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(22758);const o=function(e){if("string"==typeof e||(0,r.Z)(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},6682:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=Function.prototype.toString;const o=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},80059:(e,t,n)=>{"use strict";n.d(t,{Z:()=>E});var r=n(33523),o=n(82472);const i=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:(0,o.Z)(e,t,n)};var a=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const s=function(e){return a.test(e)};const l=function(e){return e.split("")};var u="\\ud800-\\udfff",c="["+u+"]",d="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",f="\\ud83c[\\udffb-\\udfff]",h="[^"+u+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",m="(?:"+d+"|"+f+")"+"?",v="[\\ufe0e\\ufe0f]?",y=v+m+("(?:\\u200d(?:"+[h,p,g].join("|")+")"+v+m+")*"),b="(?:"+[h+d+"?",d,p,g,c].join("|")+")",w=RegExp(f+"(?="+f+")|"+b+y,"g");const x=function(e){return e.match(w)||[]};const S=function(e){return s(e)?x(e):l(e)};const _=function(e){return function(t){t=(0,r.Z)(t);var n=s(t)?S(t):void 0,o=n?n[0]:t.charAt(0),a=n?i(n,1).join(""):t.slice(1);return o[e]()+a}}("toUpperCase");const E=function(e){return _((0,r.Z)(e).toLowerCase())}},7921:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(46421);const o=function(e){return(0,r.Z)(e,5)}},82756:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(96806),o=n(380),i=n(40704),a=n(95598),s=n(93225),l=n(11749);const u=function(e,t,n,u){var c=-1,d=o.Z,f=!0,h=e.length,p=[],g=t.length;if(!h)return p;n&&(t=(0,a.Z)(t,(0,s.Z)(n))),u?(d=i.Z,f=!1):t.length>=200&&(d=l.Z,f=!1,t=new r.Z(t));e:for(;++c<h;){var m=e[c],v=null==n?m:n(m);if(m=u||0!==m?m:0,f&&v==v){for(var y=g;y--;)if(t[y]===v)continue e;p.push(m)}else d(t,v,u)||p.push(m)}return p};var c=n(53338),d=n(56493),f=n(37539);const h=(0,d.Z)((function(e,t){return(0,f.Z)(e)?u(e,(0,c.Z)(t,1,f.Z,!0)):[]}))},78804:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e,t){return e===t||e!=e&&t!=t}},32695:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(95655),o=n(63282),i=n(20649);const a=function(e){return function(t,n,a){var s=Object(t);if(!(0,o.Z)(t)){var l=(0,r.Z)(n,3);t=(0,i.Z)(t),n=function(e){return l(s[e],e,s)}}var u=e(t,n,a);return u>-1?s[l?t[u]:u]:void 0}};var s=n(51960),l=n(65386),u=1/0;const c=function(e){return e?(e=(0,l.Z)(e))===u||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};const d=function(e){var t=c(e),n=t%1;return t==t?n?t-n:t:0};var f=Math.max;const h=a((function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var i=null==n?0:d(n);return i<0&&(i=f(o+i,0)),(0,s.Z)(e,(0,r.Z)(t,3),i)}))},29468:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=function(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r};var o=n(50475),i=n(95655);const a=function(e,t){return r(e,(0,i.Z)(t,3),o.Z)}},90772:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(89523);const o=function(e,t,n){var o=null==e?void 0:(0,r.Z)(e,t);return void 0===o?n:o}},53488:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});const r=function(e,t){return null!=e&&t in Object(e)};var o=n(46548),i=n(54248),a=n(97885),s=n(66401),l=n(61164),u=n(57969);const c=function(e,t,n){for(var r=-1,c=(t=(0,o.Z)(t,e)).length,d=!1;++r<c;){var f=(0,u.Z)(t[r]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++r!=c?d:!!(c=null==e?0:e.length)&&(0,l.Z)(c)&&(0,s.Z)(f,c)&&((0,a.Z)(e)||(0,i.Z)(e))};const d=function(e,t){return null!=e&&c(e,t,r)}},89930:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return e}},70934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(95598),o=n(96806),i=n(380),a=n(40704),s=n(93225),l=n(11749),u=Math.min;const c=function(e,t,n){for(var c=n?a.Z:i.Z,d=e[0].length,f=e.length,h=f,p=Array(f),g=1/0,m=[];h--;){var v=e[h];h&&t&&(v=(0,r.Z)(v,(0,s.Z)(t))),g=u(v.length,g),p[h]=!n&&(t||d>=120&&v.length>=120)?new o.Z(h&&v):void 0}v=e[0];var y=-1,b=p[0];e:for(;++y<d&&m.length<g;){var w=v[y],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?(0,l.Z)(b,x):c(m,x,n))){for(h=f;--h;){var S=p[h];if(!(S?(0,l.Z)(S,x):c(e[h],x,n)))continue e}b&&b.push(x),m.push(w)}}return m};var d=n(56493),f=n(37539);const h=function(e){return(0,f.Z)(e)?e:[]};var p=n(82228);const g=(0,d.Z)((function(e){var t=(0,p.Z)(e),n=(0,r.Z)(e,h);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?c(n,void 0,t):[]}))},54248:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(99001),o=n(43391);const i=function(e){return(0,o.Z)(e)&&"[object Arguments]"==(0,r.Z)(e)};var a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable;const u=i(function(){return arguments}())?i:function(e){return(0,o.Z)(e)&&s.call(e,"callee")&&!l.call(e,"callee")}},97885:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=Array.isArray},63282:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(8936),o=n(61164);const i=function(e){return null!=e&&(0,o.Z)(e.length)&&!(0,r.Z)(e)}},37539:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(63282),o=n(43391);const i=function(e){return(0,o.Z)(e)&&(0,r.Z)(e)}},74975:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(93221);const o=function(){return!1};var i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,s=a&&a.exports===i?r.Z.Buffer:void 0;const l=(s?s.isBuffer:void 0)||o},7279:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(93917),o=n(57210),i=n(54248),a=n(97885),s=n(63282),l=n(74975),u=n(15441),c=n(98127),d=Object.prototype.hasOwnProperty;const f=function(e){if(null==e)return!0;if((0,s.Z)(e)&&((0,a.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.Z)(e)||(0,c.Z)(e)||(0,i.Z)(e)))return!e.length;var t=(0,o.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,u.Z)(e))return!(0,r.Z)(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},65741:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(11401);const o=function(e,t){return(0,r.Z)(e,t)}},8936:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(99001),o=n(93122);const i=function(e){if(!(0,o.Z)(e))return!1;var t=(0,r.Z)(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},61164:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},93122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43391:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){return null!=e&&"object"==typeof e}},65255:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(99001),o=n(29552),i=n(43391),a=Function.prototype,s=Object.prototype,l=a.toString,u=s.hasOwnProperty,c=l.call(Object);const d=function(e){if(!(0,i.Z)(e)||"[object Object]"!=(0,r.Z)(e))return!1;var t=(0,o.Z)(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==c}},22758:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(99001),o=n(43391);const i=function(e){return"symbol"==typeof e||(0,o.Z)(e)&&"[object Symbol]"==(0,r.Z)(e)}},98127:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(99001),o=n(61164),i=n(43391),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;const s=function(e){return(0,i.Z)(e)&&(0,o.Z)(e.length)&&!!a[(0,r.Z)(e)]};var l=n(93225),u=n(37755),c=u.Z&&u.Z.isTypedArray;const d=c?(0,l.Z)(c):s},20649:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(70848),o=n(93917),i=n(63282);const a=function(e){return(0,i.Z)(e)?(0,r.Z)(e):(0,o.Z)(e)}},47477:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(70848),o=n(93122),i=n(15441);const a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var s=Object.prototype.hasOwnProperty;const l=function(e){if(!(0,o.Z)(e))return a(e);var t=(0,i.Z)(e),n=[];for(var r in e)("constructor"!=r||!t&&s.call(e,r))&&n.push(r);return n};var u=n(63282);const c=function(e){return(0,u.Z)(e)?(0,r.Z)(e,!0):l(e)}},82228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},77068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(43703);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r.Z),n}o.Cache=r.Z;const i=o},67105:(e,t,n)=>{"use strict";n.d(t,{Z:()=>T});var r=n(46218),o=n(40905),i=n(78804);const a=function(e,t,n){(void 0!==n&&!(0,i.Z)(e[t],n)||void 0===n&&!(t in e))&&(0,o.Z)(e,t,n)};var s=n(23119),l=n(25056),u=n(76735),c=n(31162),d=n(42588),f=n(54248),h=n(97885),p=n(37539),g=n(74975),m=n(8936),v=n(93122),y=n(65255),b=n(98127);const w=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var x=n(82436),S=n(47477);const _=function(e){return(0,x.Z)(e,(0,S.Z)(e))};const E=function(e,t,n,r,o,i,s){var x=w(e,n),S=w(t,n),E=s.get(S);if(E)a(e,n,E);else{var k=i?i(x,S,n+"",e,t,s):void 0,C=void 0===k;if(C){var A=(0,h.Z)(S),T=!A&&(0,g.Z)(S),O=!A&&!T&&(0,b.Z)(S);k=S,A||T||O?(0,h.Z)(x)?k=x:(0,p.Z)(x)?k=(0,c.Z)(x):T?(C=!1,k=(0,l.Z)(S,!0)):O?(C=!1,k=(0,u.Z)(S,!0)):k=[]:(0,y.Z)(S)||(0,f.Z)(S)?(k=x,(0,f.Z)(x)?k=_(x):(0,v.Z)(x)&&!(0,m.Z)(x)||(k=(0,d.Z)(S))):C=!1}C&&(s.set(S,k),o(k,S,r,i,s),s.delete(S)),a(e,n,k)}};const k=function e(t,n,o,i,l){t!==n&&(0,s.Z)(n,(function(s,u){if(l||(l=new r.Z),(0,v.Z)(s))E(t,n,u,o,e,i,l);else{var c=i?i(w(t,u),s,u+"",t,n,l):void 0;void 0===c&&(c=s),a(t,u,c)}}),S.Z)};var C=n(56493),A=n(95965);const T=function(e){return(0,C.Z)((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&(0,A.Z)(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}((function(e,t,n){k(e,t,n)}))},22168:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){}},7090:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(95598),o=n(46421),i=n(46548),a=n(82228),s=n(89523),l=n(82472);const u=function(e,t){return t.length<2?e:(0,s.Z)(e,(0,l.Z)(t,0,-1))};var c=n(57969);const d=function(e,t){return t=(0,i.Z)(t,e),null==(e=u(e,t))||delete e[(0,c.Z)((0,a.Z)(t))]};var f=n(82436),h=n(65255);const p=function(e){return(0,h.Z)(e)?void 0:e};var g=n(5255),m=n(9878);const v=(0,g.Z)((function(e,t){var n={};if(null==e)return n;var a=!1;t=(0,r.Z)(t,(function(t){return t=(0,i.Z)(t,e),a||(a=t.length>1),t})),(0,f.Z)(e,(0,m.Z)(e),n),a&&(n=(0,o.Z)(n,7,p));for(var s=t.length;s--;)d(n,t[s]);return n}))},98337:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(89523),o=n(64187),i=n(46548);const a=function(e,t,n){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=(0,r.Z)(e,u);n(c,u)&&(0,o.Z)(l,(0,i.Z)(u,e),c)}return l};var s=n(53488);const l=function(e,t){return a(e,t,(function(t,n){return(0,s.Z)(e,n)}))};const u=(0,n(5255).Z)((function(e,t){return null==e?{}:l(e,t)}))},25513:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(64187);const o=function(e,t,n){return null==e?e:(0,r.Z)(e,t,n)}},80570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(64187);const o=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:(0,r.Z)(e,t,n,o)}},46946:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(53338),o=n(95598),i=n(89523),a=n(95655),s=n(50475),l=n(63282);const u=function(e,t){return function(n,r){if(null==n)return n;if(!(0,l.Z)(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}(s.Z);const c=function(e,t){var n=-1,r=(0,l.Z)(e)?Array(e.length):[];return u(e,(function(e,o,i){r[++n]=t(e,o,i)})),r};const d=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var f=n(93225),h=n(22758);const p=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,i=(0,h.Z)(e),a=void 0!==t,s=null===t,l=t==t,u=(0,h.Z)(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0};const g=function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=p(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index};var m=n(89930),v=n(97885);const y=function(e,t,n){t=t.length?(0,o.Z)(t,(function(e){return(0,v.Z)(e)?function(t){return(0,i.Z)(t,1===e.length?e[0]:e)}:e})):[m.Z];var r=-1;t=(0,o.Z)(t,(0,f.Z)(a.Z));var s=c(e,(function(e,n,i){return{criteria:(0,o.Z)(t,(function(t){return t(e)})),index:++r,value:e}}));return d(s,(function(e,t){return g(e,t,n)}))};var b=n(56493),w=n(95965);const x=(0,b.Z)((function(e,t){if(null==e)return[];var n=t.length;return n>1&&(0,w.Z)(e,t[0],t[1])?t=[]:n>2&&(0,w.Z)(t[0],t[1],t[2])&&(t=[t[0]]),y(e,(0,r.Z)(t,1),[])}))},70813:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(){return[]}},22860:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(93122),o=n(93221);const i=function(){return o.Z.Date.now()};var a=n(65386),s=Math.max,l=Math.min;const u=function(e,t,n){var o,u,c,d,f,h,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=o,r=u;return o=u=void 0,p=t,d=e.apply(r,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-p>=c}function w(){var e=i();if(b(e))return x(e);f=setTimeout(w,function(e){var n=t-(e-h);return m?l(n,c-(e-p)):n}(e))}function x(e){return f=void 0,v&&o?y(e):(o=u=void 0,d)}function S(){var e=i(),n=b(e);if(o=arguments,u=this,h=e,n){if(void 0===f)return function(e){return p=e,f=setTimeout(w,t),g?y(e):d}(h);if(m)return clearTimeout(f),f=setTimeout(w,t),y(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=(0,a.Z)(t)||0,(0,r.Z)(n)&&(g=!!n.leading,c=(m="maxWait"in n)?s((0,a.Z)(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==f&&clearTimeout(f),p=0,o=h=u=f=void 0},S.flush=function(){return void 0===f?d:x(i())},S};const c=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return(0,r.Z)(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),u(e,t,{leading:o,maxWait:t,trailing:i})}},65386:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=/\s/;const o=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t};var i=/^\s+/;const a=function(e){return e?e.slice(0,o(e)+1).replace(i,""):e};var s=n(93122),l=n(22758),u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,f=parseInt;const h=function(e){if("number"==typeof e)return e;if((0,l.Z)(e))return NaN;if((0,s.Z)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,s.Z)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=c.test(e);return n||d.test(e)?f(e.slice(2),n?2:8):u.test(e)?NaN:+e}},33523:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(187),o=n(95598),i=n(97885),a=n(22758),s=r.Z?r.Z.prototype:void 0,l=s?s.toString:void 0;const u=function e(t){if("string"==typeof t)return t;if((0,i.Z)(t))return(0,o.Z)(t,e)+"";if((0,a.Z)(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const c=function(e){return null==e?"":u(e)}},4e4:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(95768);const o=function(e){return e&&e.length?(0,r.Z)(e):[]}},1367:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(95655),o=n(95768);const i=function(e,t){return e&&e.length?(0,o.Z)(e,(0,r.Z)(t,2)):[]}},37164:(e,t,n)=>{"use strict";n.d(t,{x0:()=>r});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")},94022:(e,t,n)=>{"use strict";n.d(t,{D:()=>hr});var r={};n.r(r),n.d(r,{attentionMarkers:()=>kt,contentInitial:()=>bt,disable:()=>Ct,document:()=>yt,flow:()=>xt,flowInitial:()=>wt,insideSpan:()=>Et,string:()=>St,text:()=>_t});var o={};n.r(o),n.d(o,{boolean:()=>xn,booleanish:()=>Sn,commaOrSpaceSeparated:()=>An,commaSeparated:()=>Cn,number:()=>En,overloadedBoolean:()=>_n,spaceSeparated:()=>kn});var i=n(2784),a=n(77993);function s(e){return e&&"object"==typeof e?"position"in e||"type"in e?u(e.position):"start"in e||"end"in e?u(e):"line"in e||"column"in e?l(e):"":""}function l(e){return c(e&&e.line)+":"+c(e&&e.column)}function u(e){return l(e&&e.start)+"-"+l(e&&e.end)}function c(e){return e&&"number"==typeof e?e:1}class d extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=s(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}d.prototype.file="",d.prototype.name="",d.prototype.reason="",d.prototype.message="",d.prototype.stack="",d.prototype.fatal=null,d.prototype.column=null,d.prototype.line=null,d.prototype.source=null,d.prototype.ruleId=null,d.prototype.position=null;const f={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');h(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(h(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){h(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)h(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){h(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function h(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const p={cwd:function(){return"/"}};function g(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function m(e){if("string"==typeof e)e=new URL(e);else if(!g(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const v=["history","path","basename","stem","extname","dirname"];class y{constructor(e){let t;t=e?"string"==typeof e||function(e){return a(e)}(e)?{value:e}:g(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=p.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<v.length;){const e=v[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)v.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){g(e)&&(e=m(e)),w(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?f.dirname(this.path):void 0}set dirname(e){x(this.basename,"dirname"),this.path=f.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?f.basename(this.path):void 0}set basename(e){w(e,"basename"),b(e,"basename"),this.path=f.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?f.extname(this.path):void 0}set extname(e){if(b(e,"extname"),x(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=f.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?f.basename(this.path,this.extname):void 0}set stem(e){w(e,"stem"),b(e,"stem"),this.path=f.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new d(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function b(e,t){if(e&&e.includes(f.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+f.sep+"`")}function w(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function x(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function S(e){if(e)throw e}var _=n(9520),E=n(49385);function k(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function C(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(o);try{a=e.apply(this,t)}catch(e){if(r&&n)throw e;return o(e)}r||(a instanceof Promise?a.then(i,o):a instanceof Error?o(a):i(a))}function o(e,...r){n||(n=!0,t(e,...r))}function i(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const A={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');T(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(T(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){T(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)T(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){T(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function T(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const O={cwd:function(){return"/"}};function M(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function R(e){if("string"==typeof e)e=new URL(e);else if(!M(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const L=["history","path","basename","stem","extname","dirname"];class D{constructor(e){let t;t=e?"string"==typeof e||function(e){return _(e)}(e)?{value:e}:M(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=O.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<L.length;){const e=L[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)L.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){M(e)&&(e=R(e)),j(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?A.dirname(this.path):void 0}set dirname(e){I(this.basename,"dirname"),this.path=A.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?A.basename(this.path):void 0}set basename(e){j(e,"basename"),P(e,"basename"),this.path=A.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?A.extname(this.path):void 0}set extname(e){if(P(e,"extname"),I(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=A.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?A.basename(this.path,this.extname):void 0}set stem(e){j(e,"stem"),P(e,"stem"),this.path=A.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new d(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function P(e,t){if(e&&e.includes(A.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+A.sep+"`")}function j(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function I(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const $=function e(){const t=C(),n=[];let r,o={},i=-1;return a.data=function(e,t){if("string"==typeof e)return 2===arguments.length?(H("data",r),o[e]=t,a):N.call(o,e)&&o[e]||null;if(e)return H("data",r),o=e,a;return o},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++i<n.length;){const[e,...r]=n[i];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const o=e.call(a,...r);"function"==typeof o&&t.use(o)}return r=!0,i=Number.POSITIVE_INFINITY,a},a.attachers=n,a.use=function(e,...t){let i;if(H("use",r),null==e);else if("function"==typeof e)c(e,...t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?u(e):l(e)}i&&(o.settings=Object.assign(o.settings||{},i));return a;function s(e){if("function"==typeof e)c(e);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;c(t,...n)}else l(e)}}function l(e){u(e.plugins),e.settings&&(i=Object.assign(i||{},e.settings))}function u(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){s(e[t])}}}function c(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(k(r[1])&&k(t)&&(t=E(!0,r[1],t)),r[1]=t):n.push([...arguments])}},a.parse=function(e){a.freeze();const t=Z(e),n=a.Parser;if(z("parse",n),F(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},a.stringify=function(e,t){a.freeze();const n=Z(t),r=a.Compiler;if(B("stringify",r),W(e),F(r,"compile"))return new r(e,n).compile();return r(e,n)},a.run=function(e,n,r){W(e),a.freeze(),r||"function"!=typeof n||(r=n,n=void 0);if(!r)return new Promise(o);function o(o,i){function a(t,n,a){n=n||e,t?i(t):o?o(n):r(null,n,a)}t.run(e,Z(n),a)}o(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,o),U("runSync","run",r),n;function o(e,t){S(e),n=t,r=!0}},a.process=function(e,t){if(a.freeze(),z("process",a.Parser),B("process",a.Compiler),!t)return new Promise(n);function n(n,r){const o=Z(e);function i(e,o){e||!o?r(e):n?n(o):t(null,o)}a.run(a.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const r=a.stringify(t,n);null==r||(!function(e){return"string"==typeof e||_(e)}(r)?n.result=r:n.value=r),i(e,n)}else i(e)}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),z("processSync",a.Parser),B("processSync",a.Compiler);const n=Z(e);return a.process(n,r),U("processSync","process",t),n;function r(e){t=!0,S(e)}},a;function a(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(E(!0,{},o)),t}}().freeze(),N={}.hasOwnProperty;function F(e,t){return"function"==typeof e&&e.prototype&&(function(e){let t;for(t in e)if(N.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function z(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function B(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function H(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W(e){if(!k(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function U(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Z(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new D(e)}const V={};function G(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return q(e.children,t,n)}return Array.isArray(e)?q(e,t,n):""}function q(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=G(e[o],t,n);return r.join("")}function Y(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function K(e,t){return e.length>0?(Y(e,e.length,0,t),e):t}const X={}.hasOwnProperty;function Q(e,t){let n;for(n in t){const r=(X.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){X.call(r,i)||(r[i]=[]);const e=o[i];J(r[i],Array.isArray(e)?e:e?[e]:[])}}}function J(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Y(e,0,0,r)}const ee=fe(/[A-Za-z]/),te=fe(/[\dA-Za-z]/),ne=fe(/[#-'*+\--9=?A-Z^-~]/);function re(e){return null!==e&&(e<32||127===e)}const oe=fe(/\d/),ie=fe(/[\dA-Fa-f]/),ae=fe(/[!-/:-@[-`{-~]/);function se(e){return null!==e&&e<-2}function le(e){return null!==e&&(e<0||32===e)}function ue(e){return-2===e||-1===e||32===e}const ce=fe(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),de=fe(/\s/);function fe(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function he(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(ue(r))return e.enter(n),a(r);return t(r)};function a(r){return ue(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const pe={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),he(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):se(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const ge={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,u)(r)}return u(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return Y(t.events,i+1,0,t.events.slice(n)),t.events.length=s,u(e)}return s(e)}function u(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return p(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(me,c,d)(o)}function c(e){return r&&y(),v(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,p(e)}function f(n){return t.containerState={},e.attempt(me,h,p)(n)}function h(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function p(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):se(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Y(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},me={tokenize:function(e,t,n){return he(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ve={tokenize:function(e,t,n){return function(t){return ue(t)?he(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||se(e)?t(e):n(e)}},partial:!0};function ye(e){const t={};let n,r,o,i,a,s,l,u=-1;for(;++u<e.length;){for(;u in t;)u=t[u];if(n=e[u],u&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[u-1][1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,be(e,u)),u=t[u],l=!0);else if(n[1]._container){for(o=u,r=void 0;o--&&(i=e[o],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(e[r][1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,u),a.unshift(n),Y(e,r,u-r+1,a))}}return!l}function be(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],u={};let c,d,f=-1,h=n,p=0,g=0;const m=[g];for(;h;){for(;e[++o][1]!==h;);i.push(o),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),d&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,m.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):m.pop(),f=m.length;f--;){const t=s.slice(m[f],m[f+1]),n=i.pop();l.unshift([n,n+t.length-1]),Y(e,n,2,t)}for(f=-1;++f<l.length;)u[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return u}const we={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):se(t)?e.check(xe,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return ye(e),e}},xe={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),he(e,o,"linePrefix")};function o(o){if(null===o||se(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const Se={tokenize:function(e){const t=this,n=e.attempt(ve,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,he(e,e.attempt(this.parser.constructs.flow,r,e.attempt(we,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const _e={resolveAll:Ae()},Ee=Ce("string"),ke=Ce("text");function Ce(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:Ae("text"===e?Te:void 0)}}function Ae(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Te(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function Oe(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}function Me(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[],l=!0;const u={consume:function(e){se(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(v),interrupt:y(v,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(h(e),t)},now:p,defineSkip:function(e){o[e.line]=e.column,w()},write:function(e){if(a=K(a,e),g(),null!==a[a.length-1])return[];return b(t,0),c.events=Oe(i,c.events,c),c.events}};let d,f=t.tokenize.call(c,u);return t.resolveAll&&i.push(t),c;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function p(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function g(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)m(t.charCodeAt(r._bufferIndex));else m(t)}}function m(e){l=void 0,d=e,f=f(e)}function v(e,t){t.restore()}function y(e,t){return function(n,o,i){let a,d,f,h;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return a=e,d=0,0===e.length?i:m(e[d])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{restore:a,from:o};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,w()}}(),f=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return y(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,v,y)(n)}}function v(t){return l=!0,e(f,h),o}function y(e){return l=!0,h.restore(),++d<a.length?m(a[d]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Y(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Re={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||se(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ue(t)?he(e,i,"whitespace")(t):i(t))}}};const Le={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:oe(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Re,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return oe(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ve,r.interrupt?n:u,e.attempt(De,d,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return ue(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ve,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,he(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ue(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Pe,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,he(e,e.attempt(Le,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},De={tokenize:function(e,t,n){const r=this;return he(e,(function(e){const o=r.events[r.events.length-1];return!ue(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Pe={tokenize:function(e,t,n){const r=this;return he(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const je={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ue(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ue(t))return he(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(je,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function Ie(e,t,n,r,o,i,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||re(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||se(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(o){return c||null!==o&&41!==o&&!le(o)?c<u&&40===o?(e.consume(o),c++,p):41===o?(e.consume(o),c--,p):null===o||32===o||40===o||re(o)?n(o):(e.consume(o),92===o?g:p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function $e(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):se(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||se(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!ue(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function Ne(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):se(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),he(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||se(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function Fe(e,t){let n;return function r(o){if(se(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ue(o))return he(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function ze(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Be={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return $e.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return le(t)?Fe(e,s)(t):s(t)}function s(t){return Ie(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(He,u,u)(t)}function u(t){return ue(t)?he(e,c,"whitespace")(t):c(t)}function c(i){return null===i||se(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},He={tokenize:function(e,t,n){return function(t){return le(t)?Fe(e,r)(t):n(t)};function r(t){return Ne(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ue(t)?he(e,i,"whitespace")(t):i(t)}function i(e){return null===e||se(e)?t(e):n(e)}},partial:!0};const We={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),he(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):se(t)?e.attempt(Ue,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||se(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Ue={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):se(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):he(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):se(e)?o(e):n(e)}},partial:!0};const Ze={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||le(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||se(n)?(e.exit("atxHeading"),t(n)):ue(n)?he(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||le(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Y(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const Ve={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ue(t)?he(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||se(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const Ge=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qe=["pre","script","style","textarea"],Ye={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,h):63===s?(e.consume(s),o=3,r.interrupt?t:P):ee(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):ee(i)?(e.consume(i),o=4,r.interrupt?t:P):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:P):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:C:f):n(o)}function h(t){return ee(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||le(s)){const l=47===s,u=a.toLowerCase();return l||i||!qe.includes(u)?Ge.includes(a.toLowerCase())?(o=6,l?(e.consume(s),g):r.interrupt?t(s):C(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?m(s):v(s)):(o=1,r.interrupt?t(s):C(s))}return 45===s||te(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function m(t){return ue(t)?(e.consume(t),m):E(t)}function v(t){return 47===t?(e.consume(t),E):58===t||95===t||ee(t)?(e.consume(t),y):ue(t)?(e.consume(t),v):E(t)}function y(t){return 45===t||46===t||58===t||95===t||te(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):ue(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):ue(t)?(e.consume(t),w):S(t)}function x(t){return t===l?(e.consume(t),l=null,_):null===t||se(t)?n(t):(e.consume(t),x)}function S(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||le(t)?b(t):(e.consume(t),S)}function _(e){return 47===e||62===e||ue(e)?v(e):n(e)}function E(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||se(t)?C(t):ue(t)?(e.consume(t),k):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),M):60===t&&1===o?(e.consume(t),R):62===t&&4===o?(e.consume(t),j):63===t&&3===o?(e.consume(t),P):93===t&&5===o?(e.consume(t),D):!se(t)||6!==o&&7!==o?null===t||se(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Ke,I,A)(t))}function A(t){return e.check(Xe,T,I)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||se(t)?A(t):(e.enter("htmlFlowData"),C(t))}function M(t){return 45===t?(e.consume(t),P):C(t)}function R(t){return 47===t?(e.consume(t),a="",L):C(t)}function L(t){if(62===t){const n=a.toLowerCase();return qe.includes(n)?(e.consume(t),j):C(t)}return ee(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),L):C(t)}function D(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),j):45===t&&2===o?(e.consume(t),P):C(t)}function j(t){return null===t||se(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),j)}function I(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Ke={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ve,t,n)}},partial:!0},Xe={tokenize:function(e,t,n){const r=this;return function(t){if(se(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const Qe={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Je={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),ue(t)?he(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),ue(t)?he(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||se(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),ue(t)?he(e,u,"whitespace")(t):u(t))}function u(n){return null===n||se(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Qe,h,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||se(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):ue(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),he(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||se(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||se(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),f)}function h(t){return e.attempt(o,y,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&ue(t)?he(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||se(t)?e.check(Qe,h,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||se(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const et=document.createElement("i");function tt(e){const t="&"+e+";";et.innerHTML=t;const n=et.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const nt={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=te,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=ie,u):(e.enter("characterReferenceValue"),o=7,i=oe,u(t))}function u(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==te||tt(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),u):n(s)}}};const rt={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return ae(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const ot={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),he(e,t,"linePrefix")}}};const it={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return c(t);return i=r.parser.defined.includes(ze(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(at,u,i?u:c)(t):91===t?e.attempt(st,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(lt,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",l,t],["enter",u,t]],i=K(i,e.slice(r+1,r+s+3)),i=K(i,[["enter",c,t]]),i=K(i,Oe(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=K(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=K(i,e.slice(o+1)),i=K(i,[["exit",l,t]]),Y(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},at={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return le(t)?Fe(e,o)(t):o(t)}function o(t){return 41===t?u(t):Ie(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return le(t)?Fe(e,s)(t):u(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ne(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return le(t)?Fe(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},st={tokenize:function(e,t,n){const r=this;return function(t){return $e.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(ze(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},lt={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const ut={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:it.resolveAll};function ct(e){return null===e||le(e)||de(e)?1:ce(e)?2:void 0}const dt={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=ct(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),u=ct(s),c=!u||2===u&&o||n.includes(s),d=!o||2===o&&u||n.includes(r);return l._open=Boolean(42===i?c:c&&(o||!d)),l._close=Boolean(42===i?d:d&&(u||!c)),t(s)}},resolveAll:function(e,t){let n,r,o,i,a,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);ft(d,-s),ft(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=K(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=K(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=K(l,Oe(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=K(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=K(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Y(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e}};function ft(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ht={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return ee(t)?(e.consume(t),i):l(t)}function i(e){return 43===e||45===e||46===e||te(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||te(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||re(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),u):ne(t)?(e.consume(t),l):n(t)}function u(e){return te(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||te(t))&&r++<63){const n=45===t?d:c;return e.consume(t),n}return n(t)}}};const pt={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):ee(t)?(e.consume(t),_):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):ee(t)?(e.consume(t),v):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):se(t)?(a=c,L(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?R(e):45===e?d(e):c(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):se(t)?(a=p,L(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?R(t):93===t?(e.consume(t),m):p(t)}function v(t){return null===t||62===t?R(t):se(t)?(a=v,L(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):se(t)?(a=y,L(t)):(e.consume(t),y)}function b(e){return 62===e?R(e):y(e)}function w(t){return ee(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||te(t)?(e.consume(t),x):S(t)}function S(t){return se(t)?(a=S,L(t)):ue(t)?(e.consume(t),S):R(t)}function _(t){return 45===t||te(t)?(e.consume(t),_):47===t||62===t||le(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),R):58===t||95===t||ee(t)?(e.consume(t),k):se(t)?(a=E,L(t)):ue(t)?(e.consume(t),E):R(t)}function k(t){return 45===t||46===t||58===t||95===t||te(t)?(e.consume(t),k):C(t)}function C(t){return 61===t?(e.consume(t),A):se(t)?(a=C,L(t)):ue(t)?(e.consume(t),C):E(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,T):se(t)?(a=A,L(t)):ue(t)?(e.consume(t),A):(e.consume(t),O)}function T(t){return t===o?(e.consume(t),o=void 0,M):null===t?n(t):se(t)?(a=T,L(t)):(e.consume(t),T)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||le(t)?E(t):(e.consume(t),O)}function M(e){return 47===e||62===e||le(e)?E(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return ue(t)?he(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}};const gt={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:it.resolveAll};const mt={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return se(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const vt={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):se(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||se(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function u(n){return 96===n?(e.consume(n),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const yt={42:Le,43:Le,45:Le,48:Le,49:Le,50:Le,51:Le,52:Le,53:Le,54:Le,55:Le,56:Le,57:Le,62:je},bt={91:Be},wt={[-2]:We,[-1]:We,32:We},xt={35:Ze,42:Re,45:[Ve,Re],60:Ye,61:Ve,95:Re,96:Je,126:Je},St={38:nt,92:rt},_t={[-5]:ot,[-4]:ot,[-3]:ot,33:ut,38:nt,42:dt,60:[ht,pt],91:gt,92:[mt,rt],93:it,95:dt,96:vt},Et={null:[dt,_e]},kt={null:[42,95]},Ct={null:[]};function At(e){const t=function(e){const t={};let n=-1;for(;++n<e.length;)Q(t,e[n]);return t}([r,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:t,content:o(pe),document:o(ge),flow:o(Se),string:o(Ee),text:o(ke)};return n;function o(e){return function(t){return Me(n,e,t)}}}const Tt=/[\0\t\n\r]/g;function Ot(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const Mt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rt(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Ot(n.slice(t?2:1),t?16:10)}return tt(n)||e}const Lt={}.hasOwnProperty,Dt=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(ie),autolinkProtocol:T,autolinkEmail:T,atxHeading:l(te),blockQuote:l(K),characterEscape:T,characterReference:T,codeFenced:l(X),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(X,u),codeText:l(Q,u),codeTextData:T,data:T,codeFlowValue:T,definition:l(J),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(ee),hardBreakEscape:l(ne),hardBreakTrailing:l(ne),htmlFlow:l(re,u),htmlFlowData:T,htmlText:l(re,u),htmlTextData:T,image:l(oe),label:u,link:l(ie),listItem:l(se),listItemValue:g,listOrdered:l(ae,p),listUnordered:l(ae),paragraph:l(le),reference:H,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(te),strong:l(ue),thematicBreak:l(de)},exit:{atxHeading:d(),atxHeadingSequence:E,autolink:d(),autolinkEmail:Y,autolinkProtocol:q,blockQuote:d(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:Z,codeFenced:d(b),codeFencedFence:y,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:d(w),codeText:d(P),codeTextData:O,data:O,definition:d(),definitionDestinationString:_,definitionLabelString:x,definitionTitleString:S,emphasis:d(),hardBreakEscape:d(R),hardBreakTrailing:d(R),htmlFlow:d(L),htmlFlowData:O,htmlText:d(D),htmlTextData:O,image:d(I),label:N,labelText:$,lineEnding:M,link:d(j),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:W,resourceDestinationString:F,resourceTitleString:z,resource:B,setextHeading:d(A),setextHeadingLineSequence:C,setextHeadingText:k,strong:d(),thematicBreak:d()}};jt(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:c,exit:f,buffer:u,resume:h,setData:i,getData:a},s=[];let l=-1;for(;++l<e.length;)if("listOrdered"===e[l][1].type||"listUnordered"===e[l][1].type)if("enter"===e[l][0])s.push(l);else{l=o(e,s.pop(),l)}for(l=-1;++l<e.length;){const n=t[e[l][0]];Lt.call(n,e[l][1].type)&&n[e[l][1].type].call(Object.assign({sliceSerialize:e[l][2].sliceSerialize},r),e[l][1])}if(r.tokenStack.length>0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||$t).call(r,void 0,e[0])}for(n.position={start:Pt(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Pt(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},l=-1;++l<t.transforms.length;)n=t.transforms[l](n)||n;return n}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,u=!1;for(;++s<=n;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?l++:l--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(s,0,["enter",r,t[2]]),s++,n++,i=void 0,a=!0)}}return e[t][1]._spread=u,n}function i(e,t){n[e]=t}function a(e){return n[e]}function l(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Pt(t.start)},e}function d(e){return t;function t(t){e&&e.call(this,t),f.call(this,t)}}function f(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+s({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||$t).call(this,e,r[0])}return n.position.end=Pt(e.end),n}function h(){return function(e,t){const n=t||V;return G(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function p(){i("expectingFirstListItemValue",!0)}function g(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function v(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function y(){a("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function x(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ze(this.sliceSerialize(e)).toLowerCase()}function S(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){const e=this.resume();this.stack[this.stack.length-1].url=e}function E(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){i("setextHeadingSlurpLineEnding",!0)}function C(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function A(){i("setextHeadingSlurpLineEnding")}function T(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n=ce(),n.position={start:Pt(e.start)},t.children.push(n)),this.stack.push(n)}function O(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Pt(e.end)}function M(e){const n=this.stack[this.stack.length-1];if(a("atHardBreak")){return n.children[n.children.length-1].position.end=Pt(e.end),void i("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(T.call(this,e),O.call(this,e))}function R(){i("atHardBreak",!0)}function L(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function I(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function $(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Mt,Rt)}(t),n.identifier=ze(t).toLowerCase()}function N(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(i("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function F(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){i("inReference")}function H(){i("referenceType","collapsed")}function W(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ze(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")}function U(e){i("characterReferenceType",e.type)}function Z(e){const t=this.sliceSerialize(e),n=a("characterReferenceType");let r;if(n)r=Ot(t,"characterReferenceMarkerNumeric"===n?10:16),i("characterReferenceType");else{r=tt(t)}const o=this.stack.pop();o.value+=r,o.position.end=Pt(e.end)}function q(e){O.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Y(e){O.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function K(){return{type:"blockquote",children:[]}}function X(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function J(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ee(){return{type:"emphasis",children:[]}}function te(){return{type:"heading",depth:void 0,children:[]}}function ne(){return{type:"break"}}function re(){return{type:"html",value:""}}function oe(){return{type:"image",title:null,url:"",alt:null}}function ie(){return{type:"link",title:null,url:"",children:[]}}function ae(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function se(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function le(){return{type:"paragraph",children:[]}}function ue(){return{type:"strong",children:[]}}function ce(){return{type:"text",value:""}}function de(){return{type:"thematicBreak"}}}(n)(function(e){for(;!ye(e););return e}(At(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,u,c,d,f;for(o=n+o.toString(i),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(Tt.lastIndex=c,l=Tt.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(c);break}if(10===f&&c===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),c<d&&(s.push(o.slice(c,d)),t+=d-c),f){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}c=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))};function Pt(e){return{line:e.line,column:e.column,offset:e.offset}}function jt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?jt(e,r):It(e,r)}}function It(e,t){let n;for(n in t)if(Lt.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function $t(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+s({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+s({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+s({start:t.start,end:t.end})+") is still open")}function Nt(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return Dt(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function Ft(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&te(e.charCodeAt(n+1))&&te(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}const zt=function(e){if(null==e)return Ht;if("string"==typeof e)return function(e){return Bt(t);function t(t){return t&&t.type===e}}(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=zt(e[n]);return Bt(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].call(this,...e))return!0;return!1}}(e):function(e){return Bt(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"==typeof e)return Bt(e);throw new Error("Expected function, string, or object as test")};function Bt(e){return function(t,...n){return Boolean(t&&"object"==typeof t&&"type"in t&&Boolean(e.call(this,t,...n)))}}function Ht(){return!0}const Wt=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);const o=zt(t),i=r?-1:1;!function e(a,s,l){const u=a&&"object"==typeof a?a:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,d,f=[];if((!t||o(a,s,l[l.length-1]||null))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[true,e];return[e]}(n(a,l)),false===f[0]))return f;if(a.children&&"skip"!==f[0])for(c=(r?a.children.length:-1)+i,d=l.concat(a);c>-1&&c<a.children.length;){if(u=e(a.children[c],c,d)(),false===u[0])return u;c="number"==typeof u[1]?u[1]:c+i}return f}}(e,void 0,[])()};const Ut=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),Wt(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)},Zt=Gt("start"),Vt=Gt("end");function Gt(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const qt={}.hasOwnProperty;function Yt(e){return String(e||"").toUpperCase()}function Kt(e,t){const n=String(t.identifier).toUpperCase(),r=Ft(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,i=e.footnoteOrder.length):(e.footnoteCounts[n]++,i=o+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function Xt(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Qt(e){const t=e.spread;return null==t?e.children.length>1:t}const Jt=9,en=32;function tn(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(nn(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(nn(t.slice(o),o>0,!1)),i.join("")}function nn(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;t===Jt||t===en;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;t===Jt||t===en;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const rn={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:Kt,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},Kt(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Xt(e,t);const r={src:Ft(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:Ft(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Xt(e,t);const r={href:Ft(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:Ft(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Qt(n[r])}return t}(n):Qt(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Zt(t.children[1]),a=Vt(t.children[t.children.length-1]);i.line&&a.line&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(t,u)),l.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:tn(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:on,yaml:on,definition:on,footnoteDefinition:on};function on(){return null}const an={}.hasOwnProperty;function sn(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...rn,...n.handlers},a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Ut(e,"definition",(e=>{const n=Yt(e.identifier);n&&!qt.call(t,n)&&(t[n]=e)})),function(e){const n=Yt(e);return n&&qt.call(t,n)?t[n]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.patch=ln,a.applyData=un,a.one=function(e,t){return cn(a,e,t)},a.all=function(e){return dn(a,e)},a.wrap=fn,a.augment=i,Ut(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();an.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!(e&&e.position&&e.position.start&&e.position.start.line&&e.position.start.column&&e.position.end&&e.position.end.line&&e.position.end.column)})(n)||(t.position={start:Zt(n),end:Vt(n)})}return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function ln(e,t){e.position&&(t.position=function(e){return{start:Zt(e),end:Vt(e)}}(e))}function un(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function cn(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return an.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:dn(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||an.call(n,"hProperties")||an.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:dn(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function dn(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const i=cn(e,r[o],t);if(i){if(o&&"break"===r[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function fn(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function hn(e,t){const n=sn(e,t),r=n.one(e,null),o=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),i=String(r.identifier).toUpperCase(),a=Ft(i.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const u=o[o.length-1];if(u&&"element"===u.type&&"p"===u.tagName){const e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...l)}else o.push(...l);const c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,c),t.push(c)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const pn=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(hn(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>hn(t,e)}(e||t)};var gn=n(13980);class mn{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function vn(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new mn(n,r,t)}function yn(e){return e.toLowerCase()}mn.prototype.property={},mn.prototype.normal={},mn.prototype.space=null;class bn{constructor(e,t){this.property=e,this.attribute=t}}bn.prototype.space=null,bn.prototype.boolean=!1,bn.prototype.booleanish=!1,bn.prototype.overloadedBoolean=!1,bn.prototype.number=!1,bn.prototype.commaSeparated=!1,bn.prototype.spaceSeparated=!1,bn.prototype.commaOrSpaceSeparated=!1,bn.prototype.mustUseProperty=!1,bn.prototype.defined=!1;let wn=0;const xn=Tn(),Sn=Tn(),_n=Tn(),En=Tn(),kn=Tn(),Cn=Tn(),An=Tn();function Tn(){return 2**++wn}const On=Object.keys(o);class Mn extends bn{constructor(e,t,n,r){let i=-1;if(super(e,t),Rn(this,"space",r),"number"==typeof n)for(;++i<On.length;){const e=On[i];Rn(this,On[i],(n&o[e])===o[e])}}}function Rn(e,t,n){n&&(e[t]=n)}Mn.prototype.defined=!0;const Ln={}.hasOwnProperty;function Dn(e){const t={},n={};let r;for(r in e.properties)if(Ln.call(e.properties,r)){const o=e.properties[r],i=new Mn(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[yn(r)]=r,n[yn(i.attribute)]=r}return new mn(t,n,e.space)}const Pn=Dn({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),jn=Dn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function In(e,t){return t in e?e[t]:t}function $n(e,t){return In(e,t.toLowerCase())}const Nn=Dn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$n,properties:{xmlns:null,xmlnsXLink:null}}),Fn=Dn({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Sn,ariaAutoComplete:null,ariaBusy:Sn,ariaChecked:Sn,ariaColCount:En,ariaColIndex:En,ariaColSpan:En,ariaControls:kn,ariaCurrent:null,ariaDescribedBy:kn,ariaDetails:null,ariaDisabled:Sn,ariaDropEffect:kn,ariaErrorMessage:null,ariaExpanded:Sn,ariaFlowTo:kn,ariaGrabbed:Sn,ariaHasPopup:null,ariaHidden:Sn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kn,ariaLevel:En,ariaLive:null,ariaModal:Sn,ariaMultiLine:Sn,ariaMultiSelectable:Sn,ariaOrientation:null,ariaOwns:kn,ariaPlaceholder:null,ariaPosInSet:En,ariaPressed:Sn,ariaReadOnly:Sn,ariaRelevant:null,ariaRequired:Sn,ariaRoleDescription:kn,ariaRowCount:En,ariaRowIndex:En,ariaRowSpan:En,ariaSelected:Sn,ariaSetSize:En,ariaSort:null,ariaValueMax:En,ariaValueMin:En,ariaValueNow:En,ariaValueText:null,role:null}}),zn=Dn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Cn,acceptCharset:kn,accessKey:kn,action:null,allow:null,allowFullScreen:xn,allowPaymentRequest:xn,allowUserMedia:xn,alt:null,as:null,async:xn,autoCapitalize:null,autoComplete:kn,autoFocus:xn,autoPlay:xn,blocking:kn,capture:xn,charSet:null,checked:xn,cite:null,className:kn,cols:En,colSpan:null,content:null,contentEditable:Sn,controls:xn,controlsList:kn,coords:En|Cn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xn,defer:xn,dir:null,dirName:null,disabled:xn,download:_n,draggable:Sn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xn,formTarget:null,headers:kn,height:En,hidden:xn,high:En,href:null,hrefLang:null,htmlFor:kn,httpEquiv:kn,id:null,imageSizes:null,imageSrcSet:null,inert:xn,inputMode:null,integrity:null,is:null,isMap:xn,itemId:null,itemProp:kn,itemRef:kn,itemScope:xn,itemType:kn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xn,low:En,manifest:null,max:null,maxLength:En,media:null,method:null,min:null,minLength:En,multiple:xn,muted:xn,name:null,nonce:null,noModule:xn,noValidate:xn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xn,optimum:En,pattern:null,ping:kn,placeholder:null,playsInline:xn,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xn,referrerPolicy:null,rel:kn,required:xn,reversed:xn,rows:En,rowSpan:En,sandbox:kn,scope:null,scoped:xn,seamless:xn,selected:xn,shape:null,size:En,sizes:null,slot:null,span:En,spellCheck:Sn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:En,step:null,style:null,tabIndex:En,target:null,title:null,translate:null,type:null,typeMustMatch:xn,useMap:null,value:Sn,width:En,wrap:null,align:null,aLink:null,archive:kn,axis:null,background:null,bgColor:null,border:En,borderColor:null,bottomMargin:En,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xn,declare:xn,event:null,face:null,frame:null,frameBorder:null,hSpace:En,leftMargin:En,link:null,longDesc:null,lowSrc:null,marginHeight:En,marginWidth:En,noResize:xn,noHref:xn,noShade:xn,noWrap:xn,object:null,profile:null,prompt:null,rev:null,rightMargin:En,rules:null,scheme:null,scrolling:Sn,standby:null,summary:null,text:null,topMargin:En,valueType:null,version:null,vAlign:null,vLink:null,vSpace:En,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xn,disableRemotePlayback:xn,prefix:null,property:null,results:En,security:null,unselectable:null}}),Bn=Dn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:In,properties:{about:An,accentHeight:En,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:En,amplitude:En,arabicForm:null,ascent:En,attributeName:null,attributeType:null,azimuth:En,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:En,by:null,calcMode:null,capHeight:En,className:kn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:En,diffuseConstant:En,direction:null,display:null,dur:null,divisor:En,dominantBaseline:null,download:xn,dx:null,dy:null,edgeMode:null,editable:null,elevation:En,enableBackground:null,end:null,event:null,exponent:En,externalResourcesRequired:null,fill:null,fillOpacity:En,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Cn,g2:Cn,glyphName:Cn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:En,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:En,horizOriginX:En,horizOriginY:En,id:null,ideographic:En,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:En,k:En,k1:En,k2:En,k3:En,k4:En,kernelMatrix:An,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:En,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:En,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:En,overlineThickness:En,paintOrder:null,panose1:null,path:null,pathLength:En,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:En,pointsAtY:En,pointsAtZ:En,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:An,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:An,rev:An,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:An,requiredFeatures:An,requiredFonts:An,requiredFormats:An,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:En,specularExponent:En,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:En,strikethroughThickness:En,string:null,stroke:null,strokeDashArray:An,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:En,strokeOpacity:En,strokeWidth:null,style:null,surfaceScale:En,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:An,tabIndex:En,tableValues:null,target:null,targetX:En,targetY:En,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:An,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:En,underlineThickness:En,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:En,values:null,vAlphabetic:En,vMathematical:En,vectorEffect:null,vHanging:En,vIdeographic:En,version:null,vertAdvY:En,vertOriginX:En,vertOriginY:En,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:En,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Hn=vn([jn,Pn,Nn,Fn,zn],"html"),Wn=vn([jn,Pn,Nn,Fn,Bn],"svg"),Un=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),Wt(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)};function Zn(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Un(t,"element",((t,n,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"==typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}var Vn=n(33978);function Gn(e){const t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const qn=/^data[-\w.:]+$/i,Yn=/-[a-z]/g,Kn=/[A-Z]/g;function Xn(e){return"-"+e.toLowerCase()}function Qn(e){return e.charAt(1).toUpperCase()}const Jn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const er=n(76772),tr=["http","https","mailto","tel"];function nr(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<tr.length;){const e=tr[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return o=t.indexOf("?"),-1!==o&&r>o?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}const rr={}.hasOwnProperty,or=new Set(["table","thead","tbody","tfoot","tr"]);function ir(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(ar(e,r,o,t)):"text"===r.type?"element"===t.type&&or.has(t.tagName)&&Gn(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function ar(e,t,n,r){const o=e.options,a=void 0===o.transformLinkUri?nr:o.transformLinkUri,s=e.schema,l=t.tagName,u={};let c,d=s;if("html"===s.space&&"svg"===l&&(d=Wn,e.schema=d),t.properties)for(c in t.properties)rr.call(t.properties,c)&&lr(u,c,t.properties[c],e);"ol"!==l&&"ul"!==l||e.listDepth++;const f=ir(e,t);"ol"!==l&&"ul"!==l||e.listDepth--,e.schema=s;const h=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=o.components&&rr.call(o.components,l)?o.components[l]:l,g="string"==typeof p||p===i.Fragment;if(!Vn.isValidElementType(p))throw new TypeError(`Component for name \`${l}\` not defined or is not renderable`);if(u.key=n,"a"===l&&o.linkTarget&&(u.target="function"==typeof o.linkTarget?o.linkTarget(String(u.href||""),t.children,"string"==typeof u.title?u.title:null):o.linkTarget),"a"===l&&a&&(u.href=a(String(u.href||""),t.children,"string"==typeof u.title?u.title:null)),g||"code"!==l||"element"!==r.type||"pre"===r.tagName||(u.inline=!0),g||"h1"!==l&&"h2"!==l&&"h3"!==l&&"h4"!==l&&"h5"!==l&&"h6"!==l||(u.level=Number.parseInt(l.charAt(1),10)),"img"===l&&o.transformImageUri&&(u.src=o.transformImageUri(String(u.src||""),String(u.alt||""),"string"==typeof u.title?u.title:null)),!g&&"li"===l&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);u.checked=e&&e.properties?Boolean(e.properties.checked):null,u.index=sr(r,t),u.ordered="ol"===r.tagName}var m;return g||"ol"!==l&&"ul"!==l||(u.ordered="ol"===l,u.depth=e.listDepth),"td"!==l&&"th"!==l||(u.align&&(u.style||(u.style={}),u.style.textAlign=u.align,delete u.align),g||(u.isHeader="th"===l)),g||"tr"!==l||"element"!==r.type||(u.isHeader=Boolean("thead"===r.tagName)),o.sourcePos&&(u["data-sourcepos"]=[(m=h).start.line,":",m.start.column,"-",m.end.line,":",m.end.column].map(String).join("")),!g&&o.rawSourcePos&&(u.sourcePosition=t.position),!g&&o.includeElementIndex&&(u.index=sr(r,t),u.siblingCount=sr(r)),g||(u.node=t),f.length>0?i.createElement(p,u,f):i.createElement(p,u)}function sr(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function lr(e,t,n,r){const o=function(e,t){const n=yn(t);let r=t,o=bn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&qn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Yn,Qn);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Yn.test(e)){let n=e.replace(Kn,Xn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Mn}return new o(r,t)}(r.schema,t);let i=n;null!=i&&i==i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"==typeof i&&(i=function(e){const t={};try{er(e,n)}catch{}return t;function n(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,ur)]=n}}(i)),o.space&&o.property?e[rr.call(Jn,o.property)?Jn[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function ur(e,t){return t.toUpperCase()}const cr={}.hasOwnProperty,dr="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fr={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function hr(e){for(const t in fr)if(cr.call(fr,t)&&cr.call(e,t)){const e=fr[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <${dr}#${e.id}> for more info)`),delete fr[t]}const t=$().use(Nt).use(e.remarkPlugins||[]).use(pn,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Zn,e),n=new y;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=i.createElement(i.Fragment,{},ir({options:e,schema:Hn,listDepth:0},r));return e.className&&(o=i.createElement("div",{className:e.className},o)),o}hr.propTypes={children:gn.string,className:gn.string,allowElement:gn.func,allowedElements:gn.arrayOf(gn.string),disallowedElements:gn.arrayOf(gn.string),unwrapDisallowed:gn.bool,remarkPlugins:gn.arrayOf(gn.oneOfType([gn.object,gn.func,gn.arrayOf(gn.oneOfType([gn.bool,gn.string,gn.object,gn.func,gn.arrayOf(gn.any)]))])),rehypePlugins:gn.arrayOf(gn.oneOfType([gn.object,gn.func,gn.arrayOf(gn.oneOfType([gn.bool,gn.string,gn.object,gn.func,gn.arrayOf(gn.any)]))])),sourcePos:gn.bool,rawSourcePos:gn.bool,skipHtml:gn.bool,includeElementIndex:gn.bool,transformLinkUri:gn.oneOfType([gn.func,gn.bool]),linkTarget:gn.oneOfType([gn.func,gn.string]),transformImageUri:gn.func,components:gn.object}},1547:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>a});var o=/^\s+/,i=/\s+$/;function a(e,t){if(t=t||{},(e=e||"")instanceof a)return e;if(!(this instanceof a))return new a(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,a=null,s=null,l=null,u=!1,c=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,n=!1;if(_[e])e=_[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=I.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=I.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=I.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=I.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=I.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=I.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=I.hex8.exec(e))return{r:T(t[1]),g:T(t[2]),b:T(t[3]),a:L(t[4]),format:n?"name":"hex8"};if(t=I.hex6.exec(e))return{r:T(t[1]),g:T(t[2]),b:T(t[3]),format:n?"name":"hex"};if(t=I.hex4.exec(e))return{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),a:L(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=I.hex3.exec(e))return{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==r(e)&&($(e.r)&&$(e.g)&&$(e.b)?(d=e.r,f=e.g,h=e.b,t={r:255*C(d,255),g:255*C(f,255),b:255*C(h,255)},u=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):$(e.h)&&$(e.s)&&$(e.v)?(a=M(e.s),s=M(e.v),t=function(e,t,n){e=6*C(e,360),t=C(t,100),n=C(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),s=n*(1-(1-o)*t),l=r%6,u=[n,a,i,i,s,n][l],c=[s,n,n,a,i,i][l],d=[i,i,s,n,n,a][l];return{r:255*u,g:255*c,b:255*d}}(e.h,a,s),u=!0,c="hsv"):$(e.h)&&$(e.s)&&$(e.l)&&(a=M(e.s),l=M(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=C(e,360),t=C(t,100),n=C(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,a,l),u=!0,c="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,f,h;return n=k(n),{ok:u,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function s(e,t,n){e=C(e,255),t=C(t,255),n=C(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,l:s}}function l(e,t,n){e=C(e,255),t=C(t,255),n=C(n,255);var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:r,s:o,v:s}}function u(e,t,n,r){var o=[O(Math.round(e).toString(16)),O(Math.round(t).toString(16)),O(Math.round(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function c(e,t,n,r){return[O(R(r)),O(Math.round(e).toString(16)),O(Math.round(t).toString(16)),O(Math.round(n).toString(16))].join("")}function d(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s-=t/100,n.s=A(n.s),a(n)}function f(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.s+=t/100,n.s=A(n.s),a(n)}function h(e){return a(e).desaturate(100)}function p(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l+=t/100,n.l=A(n.l),a(n)}function g(e,t){t=0===t?0:t||10;var n=a(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),a(n)}function m(e,t){t=0===t?0:t||10;var n=a(e).toHsl();return n.l-=t/100,n.l=A(n.l),a(n)}function v(e,t){var n=a(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,a(n)}function y(e){var t=a(e).toHsl();return t.h=(t.h+180)%360,a(t)}function b(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=a(e).toHsl(),r=[a(e)],o=360/t,i=1;i<t;i++)r.push(a({h:(n.h+i*o)%360,s:n.s,l:n.l}));return r}function w(e){var t=a(e).toHsl(),n=t.h;return[a(e),a({h:(n+72)%360,s:t.s,l:t.l}),a({h:(n+216)%360,s:t.s,l:t.l})]}function x(e,t,n){t=t||6,n=n||30;var r=a(e).toHsl(),o=360/n,i=[a(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(a(r));return i}function S(e,t){t=t||6;for(var n=a(e).toHsv(),r=n.h,o=n.s,i=n.v,s=[],l=1/t;t--;)s.push(a({h:r,s:o,v:i})),i=(i+l)%1;return s}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=k(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=s(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return u(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[O(Math.round(e).toString(16)),O(Math.round(t).toString(16)),O(Math.round(n).toString(16)),O(R(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*C(this._r,255))+"%",g:Math.round(100*C(this._g,255))+"%",b:Math.round(100*C(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*C(this._r,255))+"%, "+Math.round(100*C(this._g,255))+"%, "+Math.round(100*C(this._b,255))+"%)":"rgba("+Math.round(100*C(this._r,255))+"%, "+Math.round(100*C(this._g,255))+"%, "+Math.round(100*C(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[u(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+c(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=a(e);n="#"+c(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return a(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(p,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(m,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(x,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(b,[3])},tetrad:function(){return this._applyCombination(b,[4])}},a.fromRatio=function(e,t){if("object"==r(e)){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:M(e[o]));e=n}return a(e,t)},a.equals=function(e,t){return!(!e||!t)&&a(e).toRgbString()==a(t).toRgbString()},a.random=function(){return a.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},a.mix=function(e,t,n){n=0===n?0:n||50;var r=a(e).toRgb(),o=a(t).toRgb(),i=n/100;return a({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},a.readability=function(e,t){var n=a(e),r=a(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},a.isReadable=function(e,t,n){var r,o,i=a.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},a.mostReadable=function(e,t,n){var r,o,i,s,l=null,u=0;o=(n=n||{}).includeFallbackColors,i=n.level,s=n.size;for(var c=0;c<t.length;c++)(r=a.readability(e,t[c]))>u&&(u=r,l=a(t[c]));return a.isReadable(e,l,{level:i,size:s})||!o?l:(n.includeFallbackColors=!1,a.mostReadable(e,["#fff","#000"],n))};var _=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=a.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(_);function k(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function C(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function A(e){return Math.min(1,Math.max(0,e))}function T(e){return parseInt(e,16)}function O(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function R(e){return Math.round(255*parseFloat(e)).toString(16)}function L(e){return T(e)/255}var D,P,j,I=(P="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",j="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+P),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+P),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+P),hsva:new RegExp("hsva"+j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!I.CSS_UNIT.exec(e)}},19521:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}}]);
//# sourceMappingURL=vendors-main.js.map