/*! For license information please see et-ai-app.bundle.js.LICENSE.txt */ (()=>{var e={2105:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ApiProvider:()=>tt,QueryStatus:()=>n,buildCreateApi:()=>pe,copyWithStructuralSharing:()=>T,coreModule:()=>Te,createApi:()=>rt,defaultSerializeQueryArgs:()=>de,fakeBaseQuery:()=>he,fetchBaseQuery:()=>P,reactHooksModule:()=>et,retry:()=>H,setupListeners:()=>$,skipSelector:()=>ae,skipToken:()=>ie});var n,o,i=r(4268),a=r(2902),l=r(2222),s=r(4791),u=r(4815),c=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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]=200&&e.status<=299},A=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function j(e){if(!(0,i.isPlainObject)(e))return e;for(var t=b({},e),r=0,n=Object.entries(t);r=c)}var p=(0,i.createAsyncThunk)(r+"/executeQuery",f,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[i.SHOULD_AUTOBATCH]=!0,e},condition:function(e,t){var n,o,i,a=(0,t.getState)(),s=null==(o=null==(n=a[r])?void 0:n.queries)?void 0:o[e.queryCacheKey],u=null==s?void 0:s.fulfilledTimeStamp,c=e.originalArgs,f=null==s?void 0:s.originalArgs,p=l[e.endpointName];return!(!X(e)&&("pending"===(null==s?void 0:s.status)||!d(e,a)&&(!G(p)||!(null==(i=null==p?void 0:p.forceRefetch)?void 0:i.call(p,{currentArg:c,previousArg:f,endpointState:s,state:a})))&&u))},dispatchConditionRejection:!0}),h=(0,i.createAsyncThunk)(r+"/executeMutation",f,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[i.SHOULD_AUTOBATCH]=!0,e}});function m(e){return function(t){var r,n;return(null==(n=null==(r=null==t?void 0:t.meta)?void 0:r.arg)?void 0:n.endpointName)===e}}return{queryThunk:p,mutationThunk:h,prefetch:function(e,t,r){return function(n,o){var i=function(e){return"force"in e}(r)&&r.force,a=function(e){return"ifOlderThan"in e}(r)&&r.ifOlderThan,l=function(r){return void 0===r&&(r=!0),u.endpoints[e].initiate(t,{forceRefetch:r})},s=u.endpoints[e].select(t)(o());if(i)n(l());else if(a){var c=null==s?void 0:s.fulfilledTimeStamp;if(!c)return void n(l());(Number(new Date)-Number(new Date(c)))/1e3>=a&&n(l())}else n(l(!1))}},updateQueryData:function(e,t,r){return function(o,i){var l,s,c=u.endpoints[e].select(t)(i()),f={patches:[],inversePatches:[],undo:function(){return o(u.util.patchQueryData(e,t,f.inversePatches))}};if(c.status===n.uninitialized)return f;if("data"in c)if((0,a.o$)(c.data)){var d=(0,a.aS)(c.data,r),p=d[1],h=d[2];(l=f.patches).push.apply(l,p),(s=f.inversePatches).push.apply(s,h)}else{var m=r(c.data);f.patches.push({op:"replace",path:[],value:m}),f.inversePatches.push({op:"replace",path:[],value:c.data})}return o(u.util.patchQueryData(e,t,f.patches)),f}},upsertQueryData:function(e,t,r){return function(n){var o;return n(u.endpoints[e].initiate(t,((o={subscribe:!1,forceRefetch:!0})[Z]=function(){return{data:r}},o)))}},patchQueryData:function(e,t,r){return function(n){var o=l[e];n(u.internalActions.queryResultPatched({queryCacheKey:s({queryArgs:t,endpointDefinition:o,endpointName:e}),patches:r}))}},buildMatchThunkActions:function(e,t){return{matchPending:(0,i.isAllOf)((0,i.isPending)(e),m(t)),matchFulfilled:(0,i.isAllOf)((0,i.isFulfilled)(e),m(t)),matchRejected:(0,i.isAllOf)((0,i.isRejected)(e),m(t))}}}}({baseQuery:o,reducerPath:l,context:r,api:e,serializeQueryArgs:u}),y=g.queryThunk,_=g.mutationThunk,k=g.patchQueryData,S=g.updateQueryData,O=g.upsertQueryData,E=g.prefetch,C=g.buildMatchThunkActions,L=function(e){var t=e.reducerPath,r=e.queryThunk,o=e.mutationThunk,l=e.context,u=l.endpointDefinitions,c=l.apiUid,f=l.extractRehydrationInfo,d=l.hasRehydrationInfo,p=e.assertTagType,h=e.config,m=(0,i.createAction)(t+"/resetApiState"),v=(0,i.createSlice)({name:t+"/queries",initialState:oe,reducers:{removeQueryResult:{reducer:function(e,t){delete e[t.payload.queryCacheKey]},prepare:(0,i.prepareAutoBatched)()},queryResultPatched:function(e,t){var r=t.payload,n=r.queryCacheKey,o=r.patches;te(e,n,(function(e){e.data=(0,a.QE)(e.data,o.concat())}))}},extraReducers:function(e){e.addCase(r.pending,(function(e,t){var r,o=t.meta,i=t.meta.arg,a=X(i);(i.subscribe||a)&&(null!=e[r=i.queryCacheKey]||(e[r]={status:n.uninitialized,endpointName:i.endpointName})),te(e,i.queryCacheKey,(function(e){e.status=n.pending,e.requestId=a&&e.requestId?e.requestId:o.requestId,void 0!==i.originalArgs&&(e.originalArgs=i.originalArgs),e.startedTimeStamp=o.startedTimeStamp}))})).addCase(r.fulfilled,(function(e,t){var r=t.meta,o=t.payload;te(e,r.arg.queryCacheKey,(function(e){var t;if(e.requestId===r.requestId||X(r.arg)){var i=u[r.arg.endpointName].merge;if(e.status=n.fulfilled,i)if(void 0!==e.data){var l=r.fulfilledTimeStamp,s=r.arg,c=r.baseQueryMeta,f=r.requestId,d=(0,a.ZP)(e.data,(function(e){return i(e,o,{arg:s.originalArgs,baseQueryMeta:c,fulfilledTimeStamp:l,requestId:f})}));e.data=d}else e.data=o;else e.data=null==(t=u[r.arg.endpointName].structuralSharing)||t?T((0,a.mv)(e.data)?(0,a.Js)(e.data):e.data,o):o;delete e.error,e.fulfilledTimeStamp=r.fulfilledTimeStamp}}))})).addCase(r.rejected,(function(e,t){var r=t.meta,o=r.condition,i=r.arg,a=r.requestId,l=t.error,s=t.payload;te(e,i.queryCacheKey,(function(e){if(o);else{if(e.requestId!==a)return;e.status=n.rejected,e.error=null!=s?s:l}}))})).addMatcher(d,(function(e,t){for(var r=f(t).queries,o=0,i=Object.entries(r);o{"use strict";r.r(t),r.d(t,{EnhancerArray:()=>C,MiddlewareArray:()=>E,SHOULD_AUTOBATCH:()=>Ke,TaskAbortError:()=>Ce,__DO_NOT_USE__ActionTypes:()=>o.Kf,addListener:()=>We,applyMiddleware:()=>o.md,autoBatchEnhancer:()=>Je,bindActionCreators:()=>o.DE,clearAllListeners:()=>Ue,combineReducers:()=>o.UY,compose:()=>o.qC,configureStore:()=>D,createAction:()=>z,createAsyncThunk:()=>ne,createDraftSafeSelector:()=>k,createEntityAdapter:()=>Z,createImmutableStateInvariantMiddleware:()=>M,createListenerMiddleware:()=>$e,createNextState:()=>n.ZP,createReducer:()=>V,createSelector:()=>i.P1,createSerializableStateInvariantMiddleware:()=>I,createSlice:()=>q,createStore:()=>o.MT,current:()=>n.Vk,findNonSerializableValue:()=>j,freeze:()=>n.vV,getDefaultMiddleware:()=>R,getType:()=>W,isAction:()=>F,isAllOf:()=>le,isAnyOf:()=>ae,isAsyncThunkAction:()=>he,isDraft:()=>n.mv,isFluxStandardAction:()=>H,isFulfilled:()=>pe,isImmutableDefault:()=>L,isPending:()=>ce,isPlain:()=>A,isPlainObject:()=>O,isRejected:()=>fe,isRejectedWithValue:()=>de,legacy_createStore:()=>o.jB,miniSerializeError:()=>re,nanoid:()=>X,original:()=>n.Js,prepareAutoBatched:()=>Ye,removeListener:()=>Ve,unwrapResult:()=>oe});var n=r(2902),o=r(4791),i=r(2222);function a(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(o){return"function"==typeof o?o(r,n,e):t(o)}}}}var l=a();l.withExtraArgument=a;const s=l;var u,c=(u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},u(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 r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=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]",value:e};if("object"!=typeof e||null===e)return!1;if(null==i?void 0:i.has(e))return!1;for(var l=null!=n?n(e):Object.entries(e),s=o.length>0,u=function(e,l){var u=t?t+"."+e:e;if(s&&o.some((function(e){return e instanceof RegExp?e.test(u):u===e})))return"continue";return r(l)?"object"==typeof l&&(a=j(l,u,r,n,o,i))?{value:a}:void 0:{value:{keyPath:u,value:l}}},c=0,f=l;c-1}function W(e){return""+e}function U(e){var t,r={},n=[],o={addCase:function(e,t){var n="string"==typeof e?e:e.type;if(n in r)throw new Error("addCase cannot be called with two reducers for the same action type");return r[n]=t,o},addMatcher:function(e,t){return n.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[r,n,t]}function V(e,t,r,o){void 0===r&&(r=[]);var i,a="function"==typeof t?U(t):[t,r,o],l=a[0],s=a[1],u=a[2];if("function"==typeof e)i=function(){return T(e())};else{var c=T(e);i=function(){return c}}function f(e,t){void 0===e&&(e=i());var r=d([l[t.type]],s.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===r.filter((function(e){return!!e})).length&&(r=[u]),r.reduce((function(e,r){if(r){var o;if((0,n.mv)(e))return void 0===(o=r(e,t))?e:o;if((0,n.o$)(e))return(0,n.ZP)(e,(function(e){return r(e,t)}));if(void 0===(o=r(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return e}),e)}return f.getInitialState=i,f}function q(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var r,n="function"==typeof e.initialState?e.initialState:T(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},l={},s={};function u(){var t="function"==typeof e.extraReducers?U(e.extraReducers):[e.extraReducers],r=t[0],o=void 0===r?{}:r,i=t[1],a=void 0===i?[]:i,s=t[2],u=void 0===s?void 0:s,c=w(w({},o),l);return V(n,(function(e){for(var t in c)e.addCase(t,c[t]);for(var r=0,n=a;r0){var i=t.filter((function(t){return function(t,r,n){var o=n.entities[r.id],i=Object.assign({},o,r.changes),a=G(i,e),l=a!==r.id;return l&&(t[r.id]=a,delete n.entities[r.id]),n.entities[a]=i,l}(n,t,r)})).length>0;i&&(r.ids=Object.keys(r.entities))}}function a(t,n){var o=Y(t,e,n),a=o[0];i(o[1],n),r(a,n)}return{removeAll:(l=function(e){Object.assign(e,{ids:[],entities:{}})},s=$((function(e,t){return l(t)})),function(e){return s(e,void 0)}),addOne:$(t),addMany:$(r),setOne:$(n),setMany:$((function(e,t){for(var r=0,o=e=K(e);r-1;return r&&n}function ue(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function ce(){for(var e=[],t=0;t0)for(var d=e.getState(),p=Array.from(r.values()),h=0,m=p;h{"use strict";r.r(t),r.d(t,{default:()=>c});var n=r(7361),o=r.n(n);function i(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||l(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 l(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2?c-2:0),d=2;d0){var p=o()(window,"wp.i18n.sprintf");return p?p.apply(void 0,[u].concat(f)):u.replace("%s",f[0])}return u};const c=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpscaleImageMutation=t.useRefineImageMutation=t.useAutoGenerateImageMutation=t.useLazyRefineCodeQuery=t.useGenerateCodeMutation=t.useGenerateImageMutation=t.useLazyUserQuery=t.useUserQuery=t.useRefineModuleMutation=t.useRefineQuery=t.useLazyRefineQuery=t.useGeneratePromptMutation=t.useGenerateModuleMutation=t.useGenerateFieldMutation=void 0;var n=r(2105),o=window.et_ai_data.ai_server_url,i=(0,n.fetchBaseQuery)({baseUrl:o,credentials:"same-origin",prepareHeaders:function(e,t){var r,n,o,i,a=t.getState();return e.set("Authorization","Bearer ".concat(null==a||null===(r=a.diviAIOptions)||void 0===r||null===(n=r.etAccount)||void 0===n?void 0:n.username,":").concat(null==a||null===(o=a.diviAIOptions)||void 0===o||null===(i=o.etAccount)||void 0===i?void 0:i.apiKey)),e}}),a=(0,n.createApi)({reducerPath:"api",baseQuery:(0,n.retry)(i,{retryCondition:function(e,t,r){var n,o=(null==r||null===(n=r.extraOptions)||void 0===n?void 0:n.maxRetries)||1,i=(null==r?void 0:r.attempt)||1;return 401!==e.status&&404!==e.status&&403!==e.status&&o>i}}),endpoints:function(e){return{generateField:e.mutation({query:function(e){return{url:"generate-text",method:"POST",body:e}}}),generateModule:e.mutation({query:function(e){return{url:"generate-module",method:"POST",body:e}}}),generatePrompt:e.mutation({query:function(e){return{url:"generate-prompt",method:"POST",body:e}}}),refineModule:e.mutation({query:function(e){return{url:"refine-module",method:"POST",body:e}}}),refine:e.query({query:function(e){return{url:"refine-text",method:"POST",body:e}}}),user:e.query({query:function(){return{url:"user"}}}),generateImage:e.mutation({query:function(e){return{url:"generate-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),autoGenerateImage:e.mutation({query:function(e){return{url:"autogenerate-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),refineImage:e.mutation({query:function(e){return{url:"refine-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),upscaleImage:e.mutation({query:function(e){return{url:"upscale-image",method:"POST",body:e}},extraOptions:{maxRetries:3}}),generateCode:e.mutation({query:function(e){return{url:"generate-code",method:"POST",body:e}}}),refineCode:e.query({query:function(e){return{url:"refine-code",method:"POST",body:e}}})}}});t.useGenerateFieldMutation=a.useGenerateFieldMutation,t.useGenerateModuleMutation=a.useGenerateModuleMutation,t.useGeneratePromptMutation=a.useGeneratePromptMutation,t.useLazyRefineQuery=a.useLazyRefineQuery,t.useRefineQuery=a.useRefineQuery,t.useRefineModuleMutation=a.useRefineModuleMutation,t.useUserQuery=a.useUserQuery,t.useLazyUserQuery=a.useLazyUserQuery,t.useGenerateImageMutation=a.useGenerateImageMutation,t.useGenerateCodeMutation=a.useGenerateCodeMutation,t.useLazyRefineCodeQuery=a.useLazyRefineCodeQuery,t.useAutoGenerateImageMutation=a.useAutoGenerateImageMutation,t.useRefineImageMutation=a.useRefineImageMutation,t.useUpscaleImageMutation=a.useUpscaleImageMutation,t.default=a},4255:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUpdateETAccountLocalMutation=void 0;var n=r(2105),o=window.et_ai_data.ajaxurl,i=(0,n.createApi)({baseQuery:(0,n.fetchBaseQuery)({baseUrl:o}),endpoints:function(e){return{updateETAccountLocal:e.mutation({query:function(e){return{url:o,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=".concat(e.action,"&wp_nonce=").concat(e.nonce,"&et_api_key=").concat(e.et_api_key,"&et_username=").concat(e.et_username)}}})}}});t.useUpdateETAccountLocalMutation=i.useUpdateETAccountLocalMutation,t.default=i},4968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUploadImageMutation=void 0;var n=r(2105),o=window.et_ai_data.ajaxurl,i=(0,n.createApi)({reducerPath:"apiImage",baseQuery:(0,n.fetchBaseQuery)({baseUrl:o}),endpoints:function(e){return{uploadImage:e.mutation({query:function(e){return{url:o,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=".concat(e.action,"&wp_nonce=").concat(e.nonce,"&imageURL=").concat(e.url)}}})}}});t.useUploadImageMutation=i.useUploadImageMutation,t.default=i},4197:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=n(r(6516)),a=n(r(911)),l=n(r(787)),s=r(7466),u=r(9548),c=r(8136),f=r(4587);r(5091);t.default=function(){var e,t,r=(0,s.useAppDispatch)(),n=(0,s.useAppSelector)(f.selectError),d=n.show,p=n.status,h=null==n||null===(e=n.data)||void 0===e?void 0:e.error,m=null==n||null===(t=n.data)||void 0===t?void 0:t.ai_error_message,v=function(){"limit_reached"===h&&r((0,c.showUpgradeModal)(!0)),"401_user"!==h&&"Invalid credentials."!==m||r((0,u.setETAccount)({errorMessage:m})),h&&["404_user","unable_to_render_reference"].includes(h)&&r((0,c.hideModal)()),r((0,c.showError)({show:!1,status:"",data:{error:"",ai_error_message:""}}))};if(!d)return null;var g=m&&""!==m?m:(0,l.default)("userPrompt","Something went wrong");"unable_to_render_reference"===h&&(g=(0,l.default)("userPrompt","$unable_to_render_reference"));var y="busy"===p?(0,l.default)("userPrompt","$serverBusy"):g,b="403"==p?(0,l.default)("userPrompt","Purchase A Divi AI Membership"):(0,l.default)("userPrompt","Error");return(0,o.jsx)("div",{className:"et-ai-error-modal",children:(0,o.jsxs)(i.default,{children:[(0,o.jsx)(i.default.Header,{onClose:v,children:b}),(0,o.jsx)(i.default.Content,{children:(0,o.jsx)("div",{"data-testid":"finalErrorMessage",dangerouslySetInnerHTML:{__html:y}})}),(0,o.jsx)(i.default.Actions,{children:(0,o.jsx)(a.default,{className:"et-common-button et-common-button--primary","data-testid":"close-icon",onClick:v,children:(0,l.default)("userPrompt","Close")})})]})})}},5528:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["label","hint"];function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldLabel=void 0;var d=r(5893),p=r(7363),h=f(r(4184)),m=r(7727);r(2872);t.FieldLabel=function(e){var t=e.label,r=e.hint,n=c(e,o),i=s((0,p.useState)(!1),2),l=i[0],u=i[1],f=s((0,p.useState)(!1),2),v=f[0],g=f[1],y=function(){u((function(e){return!e}))};return(0,d.jsxs)("span",{className:"et-fb-form__label",onMouseEnter:function(){return g(!0)},onMouseLeave:function(){return g(!1)},children:[(0,d.jsxs)("label",a(a({className:"et-fb-form__label-text"},n),{},{children:[t,function(){if(!r)return null;var e=v||l?{marginLeft:20,opacity:0}:{marginLeft:7,opacity:0},t=v||l?{marginLeft:(0,m.spring)(7,{stiffness:300,damping:15}),opacity:(0,m.spring)(1,{stiffness:60,damping:10})}:{marginLeft:(0,m.spring)(20,{stiffness:300,damping:30}),opacity:(0,m.spring)(0,{stiffness:60,damping:10})},n=(0,h.default)({"et-fb-help-icon":!0,"et-fb-help-icon--active":l});return(0,d.jsx)(m.Motion,{defaultStyle:e,style:t,children:function(e){return(0,d.jsx)("span",{"data-testid":"help-icon",className:n,onClick:y,style:e,children:(0,d.jsxs)("svg",{width:"14",height:"19",viewBox:"0 0 14 13",children:[(0,d.jsx)("circle",{cx:"7",cy:"12",r:"1"}),(0,d.jsx)("path",{d:"M6 9a3.17 3.17 0 0 1 1.59-2.68C8.33 5.86 9 5.52 9 4.5 9 4 8.55 3 7 3c-1.73 0-2 .95-2 1-.12.6-.33 1-1 1s-1.12-.4-1-1a3.89 3.89 0 0 1 4-3 3.68 3.68 0 0 1 4 3.5A3.72 3.72 0 0 1 8.77 8 1.53 1.53 0 0 0 8 9a.93.93 0 0 1-1 1 .93.93 0 0 1-1-1z"})]})})}})}()]})),r&&l&&(0,d.jsx)("p",{className:"et-fb-form-hint",children:r})]})}},4842:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=n(r(787)),a=r(7466),l=r(8136);r(8039);t.default=function(){var e=(0,a.useAppDispatch)();return(0,o.jsxs)("div",{className:"free-upgrade-bar","data-tip":!0,"data-for":"ai-subscription-message",onMouseEnter:function(){return e((0,l.showUpgradeTip)(!0))},onMouseLeave:function(){return e((0,l.showUpgradeTip)(!1))},"data-testid":"free-upgrade-bar",children:[(0,o.jsx)("p",{children:(0,i.default)("userPrompt","Free Trial")}),(0,o.jsx)("button",{type:"button",onClick:function(){e((0,l.showUpgradeTip)(!1)),e((0,l.showUpgradeModal)(!0))},children:(0,i.default)("userPrompt","Upgrade")})]})}},4134:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=n(r(787)),a=r(7466),l=r(8136);r(937);t.default=function(e){var t=e.error,r=(0,a.useAppDispatch)(),n="";switch(t){case"You have used all your free requests. Please upgrade your subscription.":n=(0,i.default)("userPrompt","Purchase Membership");break;case"You have reached your monthly usage limit. Please upgrade your subscription.":n=(0,i.default)("userPrompt","Upgrade Membership");break;default:n=(0,i.default)("userPrompt","Level up your efficiency")}return(0,o.jsxs)("div",{className:"et-ai-upgrade-modal",children:[(0,o.jsx)("img",{width:"440",height:"192",src:"https://www.elegantthemes.com/images/vb/ai/upgrade.png",alt:(0,i.default)("userPrompt","AI Unlimited")}),(0,o.jsx)("h2",{children:(0,i.default)("userPrompt","Upgrade to Divi AI Unlimited")}),(0,o.jsx)("p",{children:n}),(0,o.jsx)("button",{className:"et-common-button et-common-button--primary",onClick:function(){r((0,l.hideModal)()),window.open("https://www.elegantthemes.com/ai/?utm_source=Divi+AI&utm_medium=Free+Trial&utm_campaign=Native","_blank")},children:(0,i.default)("userPrompt","Learn More")})]})}},5463:function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(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 o(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 o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==h[1]&&h[1],r(!0),l=a({prompt:"retry"===n.tag?c("rewrite"):"",code_language:R,previous_result:f.at(M)||L||""},"before"===N||"after"===N?{pseudo_element:N}:{}),(0,v.isObject)(n)&&(l=a(a({},l),n)),z!==O.AICodeInsertMode.REPLACE&&(l.existing_code=F),!i||"refine"===H){e.next=13;break}return u=a({prompt:c("prompt"),code_language:R,module_html:(0,E.getModuleHTMLForCode)(D.module,R)},"before"===N||"after"===N?{pseudo_element:N}:{}),e.next=9,j(u);case 9:s=e.sent,G((0,C.setLastCodeRequestType)("generate")),e.next=18;break;case 13:return"retry"===n.tag&&(l=a(a({},l),{tag:""})),e.next=16,A(l);case 16:s=e.sent,G((0,C.setLastCodeRequestType)("refine"));case 18:d=(0,v.get)(s,"data.content",""),(p=(0,v.get)(s,"error",!1))&&G((0,C.showError)(p)),d&&(t(d),G((0,C.updateSelectedOption)(O.CodeOption.RESULT)),G((0,C.updateHistory)(d))),r(!1);case 23:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,l,"next",e)}function l(e){s(i,n,o,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}();return(0,d.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,d.jsx)("div",{className:"et-ai-content-results-prompt__tags",children:(0,d.jsxs)("div",{className:"et-ai-content-results-prompt__tags-pill",children:[f.length<1||P===O.CodeOption.IMPROVE_CODE_WITH_AI&&f.length<2?null:(0,d.jsxs)("label",{className:"et-ai-content-results-prompt__tag",htmlFor:"tag",children:[(0,_.default)("userPrompt","tags.Retry"),(0,d.jsx)("input",a(a({id:"tag",type:"radio",value:"retry"},l("tag")),{},{onClick:function(){return Y({tag:"retry"},!0)}}))]}),(0,d.jsx)("div",{className:"et-ai-content-results-prompt__tone",children:(0,d.jsx)(g.default,{button:(0,d.jsxs)(d.Fragment,{children:[W||"Improve With AI",(0,d.jsx)(y.default,{icon:"arrow-down-dense"})]}),value:q,onSelect:function(e){var t=e.parentValue,r=e.value,n=e.name;return U(n),$(r),Y(t&&t!==r?{tag:[t,r]}:{tag:r})},context:I})})]})}),(0,d.jsxs)("div",{className:"et-ai-content-results-prompt__regenerate",children:[(0,d.jsx)(S.FieldLabel,{label:(0,_.default)("userPrompt","Refine Result"),hint:(0,_.default)("userPrompt","$refineHint")}),(0,d.jsxs)("div",{className:"et-ai-content-results-prompt__rewrite",children:[(0,d.jsx)(h.Controller,{name:"rewrite",control:i,render:function(e){var t=e.field;return(0,d.jsx)(w.default,a(a({},t),{},{"data-testid":"refineResult",placeholder:"Rewrite to be more engaging",onKeyDown:function(e){return(0,E.handleEnterKeyCallback)(e,(function(){return Y({tag:"retry"})}),""===K)}}))}}),(0,d.jsx)(b.default,{onClick:function(){return Y({tag:"retry"})},ripple:!1,disabled:""===K,className:"et-common-button--meta",children:(0,_.default)("userPrompt","Regenerate")})]})]})]})}},2895:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||s(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 s(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r20?j((function(t){return t.filter((function(t){return t!==e}))})):(j((function(t){return[].concat(i(t),[e])})),setTimeout((function(){L(T+1)}),1e3))};return(0,d.useEffect)((function(){var e,t;r&&(null===(e=P.current)||void 0===e||null===(t=e.scrollIntoView)||void 0===t||t.call(e,{behavior:"smooth"}))}),[r]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("ul",{className:"et-ai-images-grid",children:U}),(0,f.jsx)(w.default,{open:x,setOpen:k,selectedIndex:F,imagesHistory:t})]})}},1118:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new C(n||[]);return i(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(i,a,l,s){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,s)}),(function(e){o("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;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,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||s(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 s(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)){e.next=8;break}return e.next=6,S({image_url:t,scale:a});case 6:f=e.sent,n=null!==(l=null==f||null===(u=f.data)||void 0===u?void 0:u.content)&&void 0!==l?l:n;case 8:return e.prev=8,e.next=11,k({url:encodeURIComponent(n),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 11:h=e.sent,(m=null==h||null===(d=h.data)||void 0===d||null===(p=d.data)||void 0===p?void 0:p.localImageURL)&&""!==m&&O((0,w.updateDownloadedImages)([].concat(i(c),[t]))),e.next=18;break;case 16:e.prev=16,e.t0=e.catch(8);case 18:s(!1);case 19:case"end":return e.stop()}}),e,null,[[8,16]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function l(e){a(i,n,o,l,s,"next",e)}function s(e){a(i,n,o,l,s,"throw",e)}l(void 0)}))});return function(e){return t.apply(this,arguments)}}();if(c.includes(u))return null;var C=(0,m.default)({"et-common-icon":!0,"et-common-icon--spinner":n,"et-common-icon--save":!n});return n?(0,f.jsx)("button",{className:"yarl__button",children:(0,f.jsx)(h.SpinnerCircular,{"data-testid":"spinner",size:28,thickness:150,color:"var(--yarl__color_button,hsla(0,0%,100%,.8))",secondaryColor:"var(--yarl__button_background_color,transparent)",className:C})}):(0,f.jsx)(p.IconButton,{label:"Save",icon:_,disabled:!t,className:C,onClick:function(){return E(u)}})}},9475:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new C(n||[]);return i(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(i,a,l,s){var u=d(e[i],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,s)}),(function(e){o("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return o("throw",e,l,s)}))}s(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;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,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function i(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(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 l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)){e.next=13;break}return e.next=6,_({image_url:r,scale:a});case 6:return p=e.sent,m=null!==(u=null==p||null===(c=p.data)||void 0===c?void 0:c.eta)&&void 0!==u?u:0,v=Math.ceil((0,h.toNumber)(m)),g=isNaN(v)?0:1e3*v+2e3,i=null!==(f=null==p||null===(d=p.data)||void 0===d?void 0:d.content)&&void 0!==f?f:i,e.next=13,new Promise((function(e){return setTimeout((function(){e("")}),g)}));case 13:return e.prev=13,e.next=16,s({url:encodeURIComponent(i),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 16:return E=e.sent,C=null==E||null===(y=E.data)||void 0===y||null===(b=y.data)||void 0===b?void 0:b.localImageURL,T=null==E||null===(k=E.data)||void 0===k||null===(S=k.data)||void 0===S?void 0:S.localImageID,C&&(L={text:C,localImageID:T,fieldName:null==l?void 0:l.field_name},window.dispatchEvent(new CustomEvent("ai_prompt_use_text_click",{detail:L})),x((0,w.hideModal)())),O(!1),e.abrupt("return",C);case 24:return e.prev=24,e.t0=e.catch(13),console.log(e.t0),e.abrupt("return","");case 28:case"end":return e.stop()}}),e,null,[[13,24]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function l(e){i(a,n,o,l,s,"next",e)}function s(e){i(a,n,o,l,s,"throw",e)}l(void 0)}))});return function(){return t.apply(this,arguments)}}(),C=(0,p.default)({"et-common-icon":!0,"et-common-icon--spinner":S,"et-common-icon--save":!S});return S?(0,u.jsx)("button",{className:"yarl__button",children:(0,u.jsx)(d.SpinnerCircular,{"data-testid":"spinner",size:28,thickness:150,color:"var(--yarl__color_button,hsla(0,0%,100%,.8))",secondaryColor:"var(--yarl__button_background_color,transparent)",className:C})}):(0,u.jsx)("button",{className:"yarl__button",onClick:E,children:(0,m.default)("userPrompt","Use This Image")})}},8069:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=r(7363),a=n(r(5280)),l=n(r(1118)),s=n(r(9475)),u=(0,i.memo)((function(e){var t,r=e.imagesHistory,n=e.open,i=e.setOpen,u=e.selectedIndex,c=(null===(t=window.top)||void 0===t?void 0:t.document.body)||window.document.body,f=null==r?void 0:r.map((function(e){return{src:e}}));return(0,o.jsx)(a.default,{open:n,close:function(){return i(!1)},portal:{root:c},slides:f,index:u,styles:{root:{zIndex:"2000000"}},className:"et-ai-images-lightbox",toolbar:{buttons:[(0,o.jsx)(s.default,{},"use"),(0,o.jsx)(l.default,{},"save"),"close"]}})}));t.default=u},234:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["image_base64","image_influence","width","height"],i=["image_base64","image_influence"],a=["onChange"];function l(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;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,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?X.influence/100:X.influence,prompt:r},t));case 43:e.t2=e.sent,(0,e.t1)(e.t2),e.next=58;break;case 47:if(!(0,k.isObject)(B)||!m[0]||"upscale"!==m[0]){e.next=53;break}E=parseInt(m[1])||1,_e((0,A.updateImageQuery)(f(f({},p),{},{scale:E}))),ze(X.url,!1,X.base64,E),e.next=58;break;case 53:return e.t3=Ne,e.next=56,K(f(f({},a),{},{width:l,height:h,image_base64:X.base64,image_influence:X.influence>0?X.influence/100:X.influence,prompt:r},t));case 56:e.t4=e.sent,(0,e.t3)(e.t4);case 58:e.next=63;break;case 60:e.prev=60,e.t5=e.catch(36),console.log(e.t5);case 63:case"end":return e.stop()}}),e,null,[[36,60]])})));return function(){return e.apply(this,arguments)}}(),Ae=function(){var e=h(u().mark((function e(t){var r,n,o,a,l,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(te(!0),r=ye||y,p.image_base64,p.image_influence,n=s(p,i),o=512,a=512,""===me){e.next=12;break}return e.next=8,(0,P.getImageSizeByUrl)(me);case 8:l=e.sent,c={width:l.sizes.full.width,height:l.sizes.full.height},o=(0,P.getDivisibleByEight)(c.width),a=(0,P.getDivisibleByEight)(c.height);case 12:return e.prev=12,e.t0=Ne,e.next=16,Z(f(f({},n),{},{image_base64:"",prompt:r,image_url:me,style:t||p.style,width:o,height:a}));case 16:e.t1=e.sent,(0,e.t0)(e.t1),e.next=23;break;case 20:e.prev=20,e.t2=e.catch(12),console.log(e.t2);case 23:case"end":return e.stop()}}),e,null,[[12,20]])})));return function(t){return e.apply(this,arguments)}}(),je=function(){var e=h(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te(!0),t={site_name:Se,site_description:Oe,module_name:Te,module_fields:$,page_content:V.page,content_type:q,language:Ee},e.prev=2,e.t0=Ne,e.next=6,Q(t);case 6:e.t1=e.sent,(0,e.t0)(e.t1),e.next=13;break;case 10:e.prev=10,e.t2=e.catch(2),console.log(e.t2);case 13:case"end":return e.stop()}}),e,null,[[2,10]])})));return function(){return e.apply(this,arguments)}}(),Pe=function(e){return null!=e?e:p.prompt},Ie=function(e){var t;return null!==(t=null!=e?e:p.style)&&void 0!==t?t:""},Re=function(){var e=h(u().mark((function e(t,r){var n,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te(!0),n=Pe(t),o=Ie(r),e.prev=3,e.t0=Ne,e.next=7,K(f(f({},p),{},{prompt:n,style:o}));case 7:e.t1=e.sent,e.t2=n,(0,e.t0)(e.t1,e.t2),e.next=15;break;case 12:e.prev=12,e.t3=e.catch(3),console.log(e.t3);case 15:case"end":return e.stop()}}),e,null,[[3,12]])})));return function(t,r){return e.apply(this,arguments)}}(),Ne=function(e,t){var r=(0,k.get)(e,"data.content",[]),n=(0,k.get)(e,"data.prompt",ye),o=(0,k.get)(e,"error",!1),i=(0,k.get)(e,"data.eta",0),a=(0,k.get)(e,"data.status",""),l=Math.ceil((0,k.toNumber)(i)),s=(0,k.isNaN)(l)?0:1e3*l+2e3;o&&_e((0,A.showError)(o)),"busy"===a?(te(!1),_e((0,A.showError)({status:"busy",error:(0,T.default)("userPrompt","$serverBusy")}))):(oe(!0),le(s/1e3),setTimeout((function(){r.length&&(be(n),De(r,t),_e((0,A.updateImagesHistory)(r))),te(!1),oe(!1)}),s))},De=function(e,t){var r=t||p.prompt,n=(0,k.get)(H,r,[]);_e((0,A.setPromptHistories)(f(f({},H),{},d({},r,[].concat(l(n),l(e))))))},ze=function(){var t=h(u().mark((function t(r){var n,o,i,a,l,s,c,d,h,m,v,g,y,b,w,_,x,S,O,E,C,T=arguments;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=T.length>1&&void 0!==T[1]&&T[1],i=T.length>2&&void 0!==T[2]?T[2]:"",a=T.length>3&&void 0!==T[3]?T[3]:1,r){t.next=5;break}return t.abrupt("return");case 5:if(l=r,s=1!==a?a:null!==(n=null==p?void 0:p.scale)&&void 0!==n?n:1,o||pe(!0),!(s>1)){t.next=22;break}return h={scale:s,image_url:r},""!==i&&(h.image_base64=i,delete h.image_url),t.next=13,Y(f({},h));case 13:return m=t.sent,v=(0,k.get)(m,"data.eta",0),g=Math.ceil((0,k.toNumber)(v)),y=(0,k.isNaN)(g)?0:1e3*g+2e3,l=null!==(c=null==m||null===(d=m.data)||void 0===d?void 0:d.content)&&void 0!==c?c:l,o||(oe(!0),le(y/1e3)),t.next=21,new Promise((function(e){return setTimeout((function(){e("")}),y)}));case 21:o||oe(!1);case 22:return t.prev=22,t.next=25,G({url:encodeURIComponent(l),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 25:return S=t.sent,O=null==S||null===(b=S.data)||void 0===b||null===(w=b.data)||void 0===w?void 0:w.localImageURL,E=null==S||null===(_=S.data)||void 0===_||null===(x=_.data)||void 0===x?void 0:x.localImageID,o||pe(!1),!o&&O&&(C={text:O,localImageID:E,fieldName:null==U?void 0:U.field_name},window.dispatchEvent(new CustomEvent("ai_prompt_use_text_click",{detail:C})),e.closePrompt()),t.abrupt("return",O);case 33:return t.prev=33,t.t0=t.catch(22),console.log(t.t0),t.abrupt("return","");case 37:case"end":return t.stop()}}),t,null,[[22,33]])})));return function(e){return t.apply(this,arguments)}}(),Fe={"et-fb-form__toggle":!0,"et-ai-modal-disabled":ee||ne},He={"et-ai-button-disabled":ee||ne},Be={"et-ai-button-disabled":!me};return(0,b.jsxs)("div",{className:"et-ai-image-results-container",children:[ne&&(0,b.jsx)(F.ImageProgressBar,{estimatedTime:ae},ae),de&&(0,b.jsx)(O.default,{}),(0,b.jsx)("div",{className:"et-fb-form__toggle et-fb-form__description-toggle",children:(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__description",children:[(0,b.jsx)("p",{className:"et-ai-original-prompt-text",children:y}),(0,b.jsx)(D.default,{isLoading:ee,imagesHistory:g,selectedImage:me,setSelectedImage:ve,showInitialImages:ue,downloadCallback:ze}),(0,b.jsxs)("ul",{className:"et-ai-image-buttons",children:[(0,b.jsx)("li",{className:(0,S.default)(Be),onClick:function(){return ze(me)},children:(0,T.default)("userPrompt","Use This Image")}),(0,b.jsx)("li",{className:(0,S.default)(He),onClick:function(){return Le("generateMore")},children:(0,T.default)("userPrompt","tags.GenerateMore")})]})]})}),(0,b.jsxs)("div",{className:(0,S.default)(Fe),children:[(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__tags",children:[(0,b.jsx)(L.FieldLabel,{label:(0,T.default)("userPrompt","Modify Selected Image")}),(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__tags-pill",children:[(0,b.jsx)("label",{className:"et-ai-content-results-prompt__tag",onClick:function(){return Ae()},children:(0,T.default)("userPrompt","Generate More Like This One")}),(0,b.jsx)(_.Controller,{name:"imageStyle",control:r,render:function(e){var t=e.field,r=t.onChange,n=s(t,a);return(0,b.jsx)(z.ImageStyleThumbs,f(f({},n),{},{onThumbChange:function(e,t){r(t),_e((0,A.updateImageQuery)(f(f({},p),{},{style:t}))),Ae(t)},customMarker:"arrowDownDense"}))}})]})]}),(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__regenerate",children:[(0,b.jsx)(L.FieldLabel,{label:(0,T.default)("userPrompt","New Description"),hint:(0,T.default)("userPrompt","$refineHint"),htmlFor:"rewrite"}),(0,b.jsxs)("div",{className:"et-ai-content-results-prompt__rewrite",children:[(0,b.jsx)(_.Controller,{name:"rewrite",control:r,render:function(e){var t=e.field;return(0,b.jsx)(C.default,f({className:"et-fb-disabled-global-shortcuts",placeholder:"".concat((0,T.default)("userPrompt","Refine your prompt"),"..."),maxLength:100,id:"rewrite",onKeyDown:function(e){return(0,P.handleEnterKeyCallback)(e,(function(){return Le()}),""===xe)}},t))}}),(0,b.jsx)(E.default,{onClick:function(){return Le()},ripple:!1,disabled:""===xe,className:"et-common-button--meta",children:(0,T.default)("userPrompt","Regenerate")})]})]})]})]})}},6705:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(){u=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;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,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function c(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,l,"next",e)}function l(e){c(i,n,o,a,l,"throw",e)}a(void 0)}))}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1e7)){e.next=7;break}return X(!0),e.abrupt("return");case 7:f=function(e){var t=p(p({},ne),{},{url:c.url,base64:e});J((0,A.setImageReference)(t)),J((0,A.updateImageQuery)(p(p({},oe),{},{width:s,height:l}))),d("referenceImageBase64",e),d("imageHeight",l),d("imageWidth",s)},(0,I.convertImageToBase64)(c,f);case 9:case"end":return e.stop()}}),e)}))))},ye=function(){J((0,A.setImageReference)({url:"",base64:"",influence:0})),d("referenceImageBase64","")};return(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Image Style"),hint:(0,S.default)("userPrompt","$imageStyleHint")}),(0,y.jsx)(w.Controller,{name:"imageStyle",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,l);return(0,y.jsx)(R.ImageStyleThumbs,p(p({},n),{},{onThumbChange:function(e,t){r(t)}}))}})]})," ",(0,y.jsx)("div",{className:"et-fb-form__group",children:(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Image Description"),hint:(0,S.default)("userPrompt","$imagePromptHint")})})," ",(0,y.jsxs)("div",{className:"et-ai-input-with-icon",children:[(0,y.jsx)(C.default,{id:"et-ai-prompt-desc-generate"}),F?(0,y.jsxs)("p",{className:"et-ai-prompt-loading",children:[(0,S.default)("userPrompt","Generating"),"..."]}):(0,y.jsx)(O.default,{icon:"divi-ai",viewBox:"0 0 28 28","data-testid":"et-ai-prompt-desc-generate","data-for":"et-ai-prompt-desc-generate","data-tip":(0,S.default)("userPrompt","Generate Prompt With AI"),onClick:ve}),(0,y.jsx)("textarea",p({className:"et-ai-control-textarea et-fb-disabled-global-shortcuts",placeholder:(0,S.default)("userPrompt","$imagePlaceholder"),rows:5,maxLength:200,onInput:function(e){return Y(e.currentTarget.value)}},n("prompt"))),(0,y.jsx)("span",{className:"et-ai-chars-counter",children:"".concat(K.length,"/200")})," "]}),(ue=""!==ne.url,ce=(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Reference Image (Optional)"),hint:(0,S.default)("userPrompt","$referenceImageHint")}),fe=ue&&""!==(ie=ne.url)&&(0,y.jsx)(N.default,{name:"reference_image",type:"image",className:"et-fb-settings-option-upload-type-image",previewStyle:(le={},le.backgroundColor=z.default.uploadImagePreview,le),showAddButton:!1,showEditButton:!1,showRemoveButton:!0,showResetButton:!1,onClickCanvas:_.noop,onClickAddButton:_.noop,onClickEditButton:_.noop,onClickRemoveButton:ye,onClickResetButton:_.noop,children:(ae=ie,(0,y.jsx)("img",{src:ae}))}),de=!ue&&(0,y.jsx)(T.default,{type:"button",className:"et-common-button et-common-button--reference_image",onClick:ge,children:(0,S.default)("userPrompt","Upload a Reference Image")}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[ce,(se=(0,x.default)({"et-fb-form__error":Z}),Z?(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("p",{className:se,children:(0,S.default)("userPrompt","The size of the image must be less than 10MB")})}):null),fe,(0,y.jsx)("input",p({type:"hidden"},n("referenceImageBase64"))),de]})," "]})),function(){if(!(""!==ne.url))return!1;var e=(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Reference Image Influence"),hint:(0,S.default)("userPrompt","$referenceImageInfluenceHint")}),t=(0,y.jsx)(w.Controller,{name:"referenceImageInfluence",control:c,defaultValue:.3,render:function(e){var t=e.field.onChange;return(0,y.jsx)(D.default,{default_unit:"%",name:"reference_image_influence",_onChange:function(e,r){!function(e,t,r){var n=parseInt(t)||0,o={url:ne.url,base64:ne.base64,influence:n};J((0,A.setImageReference)(o)),r(n=n>0?n/100:0)}(0,r,t)},default:50,value:ne.influence})}});return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[e,t]})," "]})}(),""!==ne.url?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Aspect Ratio"),hint:(0,S.default)("userPrompt","$aspectRatioHint")}),(0,y.jsx)(w.Controller,{name:"aspectRatio",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,o);return(0,y.jsx)(k.default,p(p({},n),{},{_onChange:function(e,t){r(t),function(){if($({width:!1,height:!1}),"width"===W){var e=he(W,v("imageWidth"));e&&e>0&&d("imageHeight",e)}if("height"===W){var t=he(W,v("imageHeight"));t&&t>0&&d("imageWidth",t)}}()},options:p({},(0,S.default)("userPrompt","aspectRatio"))}))}})]})," "]}),""!==ne.url?null:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"et-fb-form__group",children:[(0,y.jsx)(L.FieldLabel,{label:(0,S.default)("userPrompt","Size"),hint:(0,S.default)("userPrompt","$sizeHint")}),(0,y.jsxs)("div",{className:"et-fb-form-group-in-row",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(w.Controller,{name:"imageWidth",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,i);return(0,y.jsx)(E.default,p(p({role:"imageWidth",className:"et-fb-disabled-global-shortcuts"},n),{},{onChange:function(e){var t=e.target.value;r(t),pe("width",parseInt(t))},type:"number",min:"512",step:"1",value:v("imageWidth")||"",placeholder:(0,I.getDefaultDimensions)(v("aspectRatio")).width}))}}),(0,y.jsx)("span",{children:(0,S.default)("userPrompt","Width")})]}),(0,y.jsx)(O.default,{icon:"close"}),(0,y.jsxs)("div",{children:[(0,y.jsx)(w.Controller,{name:"imageHeight",control:c,render:function(e){var t=e.field,r=t.onChange,n=s(t,a);return(0,y.jsx)(E.default,p(p({role:"imageHeight",className:"et-fb-disabled-global-shortcuts"},n),{},{onChange:function(e){var t=e.target.value;r(t),pe("height",parseInt(t))},type:"number",min:"512",step:"1",value:v("imageHeight")||"",placeholder:(0,I.getDefaultDimensions)(v("aspectRatio")).height}))}}),(0,y.jsx)("span",{children:(0,S.default)("userPrompt","Height")})]})]})]})," "]})]})})}},6183:function(e,t,r){"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);rt))return f(),function(){c.current=!1}}),[]);var f=function e(){i<1||setTimeout((function(){c.current&&(u((function(e){return--e})),e())}),1e3)},d=(0,l.useMemo)((function(){var e=100*(1-i/t);return Math.floor(e)}),[i]),p=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"et-common-progress-bar",children:(0,a.jsx)("span",{className:"et-common-loader et-common-loader-success"})}),(0,a.jsx)("p",{children:(0,s.default)("userPrompt","$finalizeImage")})]}),h=i<1;return 2>t?null:(0,a.jsxs)("div",{className:"image-countdown-timer",children:[h&&p,!h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h4",{children:[(0,s.default)("userPrompt","Generating Images"),"..."]}),(0,a.jsx)("div",{className:"image-countdown-timer-bar",children:(0,a.jsx)("div",{className:"image-countdown-timer-bar-progress",style:{width:"".concat(d,"%")}})}),(0,a.jsxs)("div",{className:"image-countdown-info",children:[(0,a.jsx)("p",{className:"image-countdown-info-percentage",children:"".concat(d,"%")}),(0,a.jsx)("p",{children:(0,s.default)("userPrompt","$imagesETAMessage",i)})]})]})]})}},8900:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["content"];function i(){i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var g={};c(g,l,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,l)&&(g=b);var w=v.prototype=h.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=d(e[o],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(f).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;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,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,l,"next",e)}function l(e){c(i,n,o,a,l,"throw",e)}a(void 0)}))}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||p(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 p(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},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,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw i}}}}(be.entries());try{for(n.s();!(r=n.n()).done;){var o=d(r.value,2),i=o[0],l=o[1];(0,w.isArray)(l)&&ke(l,t[i],i)}}catch(e){n.e(e)}finally{n.f()}}else xe(be),ke(be,e);_e&&!F&&Oe()}else a("text",e?(0,N.stripDoubleQuotes)((0,w.toString)(e)):"")}}),[h]);var Se=function(){var e=f(i().mark((function e(t){var r,n,s,f,d,p,v,g,y,b,_,x,k;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c(),n=r.tone,s=r.rewrite,f=r.more_option,J(!0),I.MODULE_FIELDS_AUTOFILL===ye){e.next=15;break}return d=B.content,p=u(B,o),v=l(l({},p),{},{previous_result:h.at(G)||d||"",previous_prompt:B.prompt,prompt:s,more_option:f,module_fields:Q}),(0,w.isObject)(t)&&(v=l(l({},v),t)),e.next=8,Y(v);case 8:return g=e.sent,y=g.data,(b=g.error)&&me((0,M.showError)(b)),(i=null==y?void 0:y.content)&&(a("text",(0,N.stripDoubleQuotes)(i)),me((0,M.updateHistory)(i))),J(!1),e.abrupt("return");case 15:return e.next=17,U(l(l({},l(l({},m),{},{tone:n})),{},{prompt:s,previous_result:h.at(G)},t));case 17:if(_=e.sent,(x=(0,w.get)(_,"error",!1))&&me((0,M.showError)(x)),J(!1),k=(0,w.get)(_,"data")){e.next=24;break}return e.abrupt("return");case 24:me((0,M.updateHistory)(k)),be.map((function(e){var t=e.name;a(t,null!=k&&k[t]?(0,N.stripDoubleQuotes)(k[t]):"")}));case 26:case"end":return e.stop()}var i}),e)})));return function(t){return e.apply(this,arguments)}}(),Oe=function(){var t=null==we?void 0:we.match(/__hover|_tablet|_phone/),r=be.find((function(e){var r=e.name;return null!=t&&t.length&&(r+=(0,w.first)(t)),r===we})),n={};if(r){var o=r.selectedText,i=r.defaultValue;n=o?{text:i.replace(o,c("text")),fieldName:we}:{text:c("text"),fieldName:we}}else n={text:c("text"),fieldName:we};I.MODULE_FIELDS_AUTOFILL===ye&&(n=function(){var e={intent:ye,settings:{}};if((0,w.isArray)((0,w.first)(be))){var t=h.at(-1);e.settings=[],(0,w.forEach)(be,(function(r,n){(0,w.isArray)(r)&&(0,w.forEach)(r,(function(r){var o=r.name,i=(0,w.get)(t,n,{})[o];(0,w.includes)(N.aiSupportedImageFields,o)&&(i=(0,w.get)(H,n,"")),(0,w.isUndefined)(e.settings[n])&&(e.settings[n]={}),e.settings[n][o]=i}))}))}else be.forEach((function(t){var r=t.name;e.settings[r]=c(r)}));return e}()),window.dispatchEvent(new CustomEvent("ai_prompt_use_text_click",{detail:n})),e.closePrompt()},Ee={"et-ai-module-fields":!0},Ce=function(){var e=f(i().mark((function e(t){var r,n,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,V({url:encodeURIComponent(t),action:"et_ai_upload_image",nonce:window.et_ai_data.nonces.et_ai_upload_image});case 5:return o=e.sent,e.abrupt("return",null==o||null===(r=o.data)||void 0===r||null===(n=r.data)||void 0===n?void 0:n.localImageURL);case 9:e.prev=9,e.t0=e.catch(2),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}(),Te=function(){var e=f(i().mark((function e(t,r,n){var o,u,c,d,p,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=(0,w.get)(r,"data.content",[]),u=(0,w.get)(r,"error",!1),c=(0,w.get)(r,"data.eta",0),d=(0,w.get)(r,"data.status",""),p=Math.ceil((0,w.toNumber)(c)),m=(0,w.isNaN)(p)?0:1e3*p+2e3,u&&me((0,M.showError)(u)),"busy"===d?(J(!1),me((0,M.showError)({status:"busy",error:(0,C.default)("userPrompt","$serverBusy")}))):(J(!0),fe(!0),he(m/1e3),setTimeout(f(i().mark((function e(){var r,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.length){e.next=7;break}return e.next=3,Ce((0,w.first)(o));case 3:r=e.sent,(0,w.isUndefined)(n)?re(r):H=l(l({},H),s({},n,r)),a(t,r),I.MODULE_FIELDS_AUTOFILL!==ye&&(u=l(l({},h[G]),s({},t,r)),me((0,M.updateHistoryAtIndex)({index:G,value:u})));case 7:J(!1),fe(!1),_e&&(F&&F--,F||Oe());case 10:case"end":return e.stop()}}),e)}))),m));case 8:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}();if(X)return(0,v.jsx)("div",{className:"et-ai-modal-spinner-container",children:(0,v.jsx)(z.default,{})});if(_e)return null;var Le={"et-ai-content-results-prompt":!0,"et-ai-modal-disabled":X||ce};return(0,v.jsxs)(v.Fragment,{children:[ce&&(0,v.jsx)(D.ImageProgressBar,{estimatedTime:pe},pe),(0,v.jsxs)("div",{className:(0,_.default)(Le),children:[(0,v.jsx)("div",{className:"et-fb-form__toggle et-fb-form__description-toggle",children:(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__description",children:[I.MODULE_FIELDS_AUTOFILL===ye?be.map((function(e){var t=e.name,n=e.label,o=e.type;return e.original?(0,v.jsx)("div",{className:(0,_.default)(Ee),children:(0,v.jsxs)("div",{className:"et-fb-form__group",children:[(0,v.jsx)(j.FieldLabel,{label:n}),(0,v.jsx)(y.Controller,{name:t,control:r,render:function(e){var t=e.field;return function(e,t){if("tiny_mce"===e)return(0,v.jsx)(S.default,l(l({},t),{},{className:"et-ai-control-textarea et-fb-disabled-global-shortcuts",rows:5,disabled:!0}));if("upload"===e&&t.value){if(!te)return(0,v.jsx)(E.default,{value:""});if((0,w.isString)(t.value))return(0,v.jsx)("div",{className:"et-ai-control-image",children:(0,v.jsx)("img",{src:t.value,alt:""})})}return(0,v.jsx)(E.default,l(l({},t),{},{value:t.value?(0,N.stripDoubleQuotes)(t.value):"",disabled:!0}))}(o,t)}})]})},t):null})):(0,v.jsx)(y.Controller,{name:"text",control:r,render:function(e){var t=e.field;return(0,v.jsx)(S.default,l(l({},t),{},{className:"et-ai-control-textarea et-fb-disabled-global-shortcuts",placeholder:(0,C.default)("userPrompt","$contentPlaceholder"),rows:5,disabled:!0}))}}),(0,v.jsx)(A.default,{}),(0,v.jsx)(O.default,{className:"et-common-button--primary",onClick:Oe,children:(0,C.default)("userPrompt","Use This Text")})]})}),(0,v.jsxs)("div",{className:"et-fb-form__toggle",children:[(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__tags",children:[(0,v.jsx)(j.FieldLabel,{label:(0,C.default)("userPrompt","Modify With AI")}),(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__tags-pill",children:[h.length>0&&(0,v.jsxs)("label",{className:"et-ai-content-results-prompt__tag",htmlFor:"tag",children:[(0,C.default)("userPrompt","tags.Retry"),(0,v.jsx)("input",l(l({id:"tag",type:"radio",value:"retry"},n("tag")),{},{onClick:function(){return Se({tag:"retry"})}}))]}),(0,v.jsx)("div",{className:"et-ai-content-results-prompt__tone",children:(0,v.jsx)(x.default,{button:(0,v.jsxs)(v.Fragment,{children:[oe||"Improve With AI",(0,v.jsx)(k.default,{icon:"arrow-down-dense"})]}),value:le,onSelect:function(e){var t=e.parentValue,r=e.value,n=e.name;return ie(n),se(r),Se(t&&t!==r?{tag:[t,r]}:{tag:r})},context:K})})]})]}),(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__regenerate",children:[(0,v.jsx)(j.FieldLabel,{label:(0,C.default)("userPrompt","Refine Result"),hint:(0,C.default)("userPrompt","$refineHint"),htmlFor:"refineResult"}),(0,v.jsxs)("div",{className:"et-ai-content-results-prompt__rewrite",children:[(0,v.jsx)(y.Controller,{name:"rewrite",control:r,render:function(e){var t=e.field;return(0,v.jsx)(E.default,l(l({},t),{},{id:"refineResult",value:t.value||"",placeholder:"Rewrite to be more engaging",onKeyDown:function(e){return(0,N.handleEnterKeyCallback)(e,(function(){return Se({tag:"retry"})}),""===ve)}}))}}),(0,v.jsx)(O.default,{onClick:function(){return Se({tag:"retry"})},ripple:!1,disabled:""===ve,className:"et-common-button--meta",children:(0,C.default)("userPrompt","Regenerate")})]})]})]})]})]})}},3288:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(5893),i=r(930),a=n(r(4184)),l=r(8136),s=r(4587),u=n(r(6789)),c=n(r(787)),f=r(8035),d=r(7466);r(3426);t.default=function(e){var t=(0,i.useFormContext)().setValue,r=(0,d.useAppSelector)(s.selectCurrent),n=(0,d.useAppSelector)(s.selectHistory),p=(0,d.useAppSelector)(s.selectAdditionalInfo),h=(0,d.useAppDispatch)(),m=p||{},v=m.intent,g=m.fields,y=function(r){e.onChange?e.onChange(r):f.MODULE_FIELDS_AUTOFILL===v?g.map((function(e){var o=e.name;t(o,n[r][o])})):t("text",n[r]),h((0,l.updateCurrent)(r))},b=(0,a.default)({"et-ai-content-results-prompt__history__prev":!0,"et-ai-content-results-prompt__history__prev--enabled":r>0}),w=(0,a.default)({"et-ai-content-results-prompt__history__next":!0,"et-ai-content-results-prompt__history__next--enabled":r>=0&&rr||y(r-1)},children:(0,o.jsx)(u.default,{icon:"left-arrow",viewBox:"0 0 13 13"})}),(0,o.jsx)("div",{className:w,role:"next-history",onClick:function(){r>=n.length-1||y(r+1)},children:(0,o.jsx)(u.default,{icon:"right-arrow",viewBox:"0 0 13 13"})}),(0,o.jsxs)("div",{className:"et-ai-content-results-prompt__history__count",children:[r+1," ",(0,o.jsx)("span",{children:"/"})," ",n.length," ",(0,c.default)("userPrompt","Results")]})]})}},7485:function(e,t,r){"use strict";function n(e){return n="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},n(e)}var o=["onChange"],i=["onChange"],a=["onChange"],l=["onChange"],s=["onChange"],u=["onChange","value"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function h(){h=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),l=new C(n||[]);return o(a,"_invoke",{value:k(e,r,l)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function p(){}function m(){}function v(){}var g={};u(g,a,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(T([])));b&&b!==t&&r.call(b,a)&&(g=b);var w=v.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(o,a,l,s){var u=f(e[o],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==n(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,l,s)}),(function(e){i("throw",e,l,s)})):t.resolve(d).then((function(e){c.value=e,l(c)}),(function(e){return i("throw",e,l,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function k(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=S(a,r);if(l){if(l===d)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;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,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function O(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 E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function m(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(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 g(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function u(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){u(i,n,o,a,l,"next",e)}function l(e){u(i,n,o,a,l,"throw",e)}a(void 0)}))}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||d(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 d(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0])||arguments[0];if(m)return e((0,A.showUpgradeModal)(!1)),void(ze()&&e((0,A.showError)({show:!1,status:"",data:{error:"",ai_error_message:""}})));t&&Ve(),e((0,A.hideModal)())},$e=function(){var t=c(s().mark((function t(n){var o,i,a,l,c,f,p,h,m,v,g,y,b,w,_,x,S,O,E,C,T,L,M,j,I;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("code"!==u||null!=n&&n.prompt&&""!==(null==n?void 0:n.prompt.trim())){t.next=3;break}return ae(!0),t.abrupt("return");case 3:if("code"!==u||ee){t.next=7;break}return e((0,A.updateLoading)(!0)),ue(!0),t.abrupt("return");case 7:if(!r){t.next=9;break}return t.abrupt("return",!1);case 9:if(e((0,A.updateLoading)(!0)),"image"!==u){t.next=13;break}return Ge(n),t.abrupt("return");case 13:if("code"!==u){t.next=17;break}return ue(!1),Ke(n),t.abrupt("return");case 17:return o=n.content_type,i=n.field_name,a=n.prompt,l=n.context,c=n.tone,f=n.must_use_words,p=n.length,h=p.condition,m=p.count,v=p.units,g=n.override_prompt,y=n.model_id,b=n.temperature,w=n.top_p,_=n.presence_penalty,x=n.frequency_penalty,S=n.site_name,O=n.site_description,E=n.language,C=null!=l?l:"page",T=(0,k.isUndefined)(E)||"website_language"===E?ve:E,L={content_type:o,field_name:i,prompt:a,page_content:"empty"===C?"":Me[C],module_name:Ie,tone:c,must_use_words:f?[f]:void 0,length:{condition:h,count:m,units:v},override_prompt:g,model_id:y,temperature:b,top_p:w,presence_penalty:_,frequency_penalty:x,site_name:"empty"===C?"":S,site_description:"empty"===C?"":O,language:T,module_fields:d},e((0,A.updateTextQuery)(L)),t.prev=22,t.next=25,ye(L);case 25:M=t.sent,401===(0,k.get)(M,"error.originalStatus")?e((0,P.setETAccount)({errorMessage:"Invalid API Key or Username"})):(j=(0,k.get)(M,"data.content",""),(I=(0,k.get)(M,"error",!1))&&e((0,A.showError)(I)),j&&e((0,A.updateHistory)((0,Y.stripDoubleQuotes)(j)))),e((0,A.updateLoading)(!1)),t.next=33;break;case 30:t.prev=30,t.t0=t.catch(22),console.log(t.t0);case 33:e((0,A.updateSelectedOption)(z.TextOption.RESULT));case 34:case"end":return t.stop()}}),t,null,[[22,30]])})));return function(e){return t.apply(this,arguments)}}(),Ge=function(){var t=c(s().mark((function t(r){var n,i,u,c,f,d,h,m,v,g,y,b,w,_,x,S,O,E,C,T,L,M,j,I,R,N,F;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.prompt,i=r.imageWidth,u=r.imageHeight,c=r.imageType,f=r.imageStyle,d=r.imageMood,h=r.referenceImageBase64,m=r.referenceImageInfluence,v=r.aspectRatio,g=i&&""!==i?i:(0,Y.getDefaultDimensions)(v).width,y=u&&""!==u?u:(0,Y.getDefaultDimensions)(v).height,b=1,""!==h){t.next=11;break}w=(0,Y.getSizeWithUpscaleRate)(g,y),_=w.width,x=w.height,S=w.scale,g=_,y=x,b=S,t.next=17;break;case 11:return t.next=13,(0,Y.getImageSizeByUrl)(Z.url);case 13:O=t.sent,E={width:O.sizes.full.width,height:O.sizes.full.height},g=(0,Y.getDivisibleByEight)(E.width),y=(0,Y.getDivisibleByEight)(E.height);case 17:return e((0,A.updateImageQuery)({imageMood:d,imageType:c,prompt:n,style:f,width:g,height:y,scale:b,image_base64:h,image_influence:m})),C=parseFloat(m)||0,e((0,A.setImageETA)(0)),t.prev=20,t.next=23,_e({height:parseInt(y),image_influence:C,image_base64:h,width:parseInt(g),prompt:n,style:f,scale:b});case 23:T=t.sent,401===(0,k.get)(T,"error.originalStatus")?e((0,P.setETAccount)({errorMessage:"Invalid API Key or Username"})):(L=(0,k.get)(T,"data.content",[]),(M=(0,k.get)(T,"error",!1))&&e((0,A.showError)(M)),L&&(j=(0,k.get)(p,n,[]),I=(0,k.get)(T,"data.eta",0),R=(0,k.get)(T,"data.status",""),N=Math.ceil((0,k.toNumber)(I)),F=(0,k.isNaN)(N)?0:1e3*N+2e3,"busy"===R?e((0,A.showError)({status:"busy",error:(0,D.default)("userPrompt","$serverBusy")})):(e((0,A.setImageETA)(F)),e((0,A.setPromptHistories)(a(a({},p),{},l({},n,[].concat(o(j),o(L)))))),e((0,A.updateImagesHistory)(L)),e((0,A.updateSelectedOption)(z.ImageOption.RESULT))))),e((0,A.updateLoading)(!1)),t.next=31;break;case 28:t.prev=28,t.t0=t.catch(20),console.log(t.t0);case 31:case"end":return t.stop()}}),t,null,[[20,28]])})));return function(e){return t.apply(this,arguments)}}(),Ke=function(){var t=c(s().mark((function t(r){var o,i,l,u,c;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=r.prompt,t.prev=1,i=a({prompt:o,code_language:n,module_html:(0,Y.getModuleHTMLForCode)(Me.module,n)},"before"===J||"after"===J?{pseudo_element:J}:{}),re!==z.AICodeInsertMode.REPLACE&&(i.existing_code=ne),t.next=6,xe(i);case 6:l=t.sent,u=(0,k.get)(l,"data.content",""),(c=(0,k.get)(l,"error",!1))&&(401===(0,k.get)(c,"originalStatus")?e((0,P.setETAccount)({errorMessage:(0,D.default)("authorization","$authErrorMessage")})):e((0,A.showError)(c))),u&&(e((0,A.setBackButtonVisibility)(!0)),e((0,A.updateHistory)(u)),e((0,A.updateSelectedOption)(z.CodeOption.RESULT))),e((0,A.updateLoading)(!1)),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(1),console.log(t.t0);case 17:case"end":return t.stop()}}),t,null,[[1,14]])})));return function(e){return t.apply(this,arguments)}}();function Ye(e){return Qe.apply(this,arguments)}function Qe(){var e;return e=s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new g(be(t),0);case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})),Qe=function(){return new v(e.apply(this,arguments))},Qe.apply(this,arguments)}var Ze=function(){var t=c(s().mark((function t(){var r,n,o,i,a,l,u,c,d,p,m,v,g,y,b,w,_,x;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=window.et_ai_data,n=r.site_name,o=r.site_description,i=r.site_language,e((0,A.updateLoading)(!0)),a={site_name:n,site_description:o,module_name:"",module_fields:{},page_content:Me.page,tone:"creative",language:i},l=[],u=!1,c=!1,t.prev=6,p=h(Re.entries());case 8:return t.next=10,p.next();case 10:if(!(u=!(m=t.sent).done)){t.next=29;break}if(v=f(m.value,2),g=v[0],y=v[1],(0,k.isArray)(y)){t.next=14;break}return t.abrupt("continue",26);case 14:return a.module_name=Ie[g],a.module_fields=(0,Y.getFormattedFields)(y),b=Ye(a),t.next=19,b.next();case 19:if(w=t.sent.value,_=(0,k.get)(w,"data"),!(x=(0,k.get)(w,"error",!1))){t.next=25;break}return e((0,A.showError)(x)),t.abrupt("break",29);case 25:_&&l.push((0,Y.getCleanAIObject)(_));case 26:u=!1,t.next=8;break;case 29:t.next=35;break;case 31:t.prev=31,t.t0=t.catch(6),c=!0,d=t.t0;case 35:if(t.prev=35,t.prev=36,!u||null==p.return){t.next=40;break}return t.next=40,p.return();case 40:if(t.prev=40,!c){t.next=43;break}throw d;case 43:return t.finish(40);case 44:return t.finish(35);case 45:e((0,A.updateHistory)(l)),e((0,A.updateLoading)(!1));case 47:case"end":return t.stop()}}),t,null,[[6,31,35,45],[36,,40,44]])})));return function(){return t.apply(this,arguments)}}(),Xe=function(){var t=c(s().mark((function t(){var r,n,o,i,a,l,u,c;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=window.et_ai_data,n=r.site_name,o=r.site_description,i=r.site_language,e((0,A.updateLoading)(!0)),a={site_name:n,site_description:o,module_name:Ie,module_fields:d,page_content:Me.page,tone:"creative",language:i},e((0,A.updateModuleQuery)(a)),t.prev=4,t.next=7,be(a);case 7:l=t.sent,u=(0,k.get)(l,"data",""),c=(0,k.get)(l,"error",!1),e((0,A.updateLoading)(!1)),c&&e((0,A.showError)(c)),u&&e((0,A.updateHistory)((0,Y.getCleanAIObject)(u))),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(4),console.log(t.t0);case 18:case"end":return t.stop()}}),t,null,[[4,15]])})));return function(){return t.apply(this,arguments)}}(),Je=function(){var t=c(s().mark((function t(r){var n,o,i,a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.et_api_key.trim(),o=r.et_username.trim(),e((0,A.updateLoading)(!0)),e((0,P.setETAccount)({et_username:o,et_api_key:n,errorMessage:""})),t.prev=4,t.next=7,ke();case 7:if(i=t.sent,!(a=i.error)){t.next=13;break}return e((0,P.setETAccount)({errorMessage:(0,k.get)(a,"data.ai_error_message")})),e((0,A.updateLoading)(!1)),t.abrupt("return");case 13:return t.next=15,we({et_username:o,et_api_key:n,action:"et_builder_update_et_account_local",nonce:window.et_ai_data.nonces.et_builder_update_et_account});case 15:e((0,A.updateLoading)(!1)),We(),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(4),console.log(t.t0);case 22:case"end":return t.stop()}}),t,null,[[4,19]])})));return function(e){return t.apply(this,arguments)}}(),et=ge.formState.isDirty,tt=Ce===z.PromptType.Generate&&!r&&!m,rt=(0,x.default)({"et-ai-user-prompt":!0,"et-ai-spinner":r,"et-ai-upgrade-modal-wrapper":m,"et-ai-modal-no-footer":!tt});return(0,b.jsx)(_.FormProvider,a(a({},ge),{},{children:(0,b.jsxs)("form",{id:"et-ai-user-prompt-form",className:rt,onSubmit:ge.handleSubmit($e),children:[(0,b.jsxs)(C.default,{draggable:"code"===u,modalKey:"et_ai_user_prompt",children:[(0,b.jsxs)(C.default.Header,{className:(0,x.default)({"et-ai-content-results-prompt__header":Ce===z.PromptType.Refine,"et-ai-upgrade-prompt__header":m}),onClose:qe,onBack:function(){if(X){if("code"===u)return function(){Ve(),e((0,A.setBackButtonVisibility)(!1)),e((0,A.updateSelectedOption)(z.CodeOption.CODE_WITH_AI))}}else if("code"!==u&&z.PromptType.Refine===Ce&&z.TextOption.RESULT===Te)return function(){return e((0,A.updateSelectedOption)(z.TextOption.WRITE_WITH_AI))}}(),children:[Q&&(0,b.jsxs)(S.default,{id:"ai-subscription-message",children:[(0,D.default)("userPrompt","upgradeTipPart1")," ",(0,b.jsx)("br",{}),(0,D.default)("userPrompt","upgradeTipPart2")," ",(0,b.jsx)("br",{}),(0,D.default)("userPrompt","upgradeTipPart3")]}),!m&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"left",children:m?null:Le?(0,D.default)("authorization","Authentication"):"image"===u?(0,D.default)("userPrompt","Generate Image With AI",i):"code"===u?i:z.PromptType.Generate===Ce?(0,D.default)("userPrompt","Write %s With AI",i):z.PromptType.Refine===Ce?(0,D.default)("userPrompt","Content Results"):void 0}),(0,b.jsx)("div",{className:"right",children:Le||Ne||Fe?null:(He&&e((0,A.showUpgradeModal)(!0)),(0,b.jsx)(E.default,{}))})]})]}),(0,b.jsx)(C.default.Content,{children:(0,b.jsx)("div",{className:"ai-content-wrapper",children:function(){if(r)return(0,b.jsx)(L.default,{});if(Le)return(0,b.jsx)(N.default,{});if(m)return(0,b.jsx)(O.default,{error:De()});switch(Ce){case z.PromptType.Generate:return"image"===u?(0,b.jsx)(q.default,{}):"code"===u?(0,b.jsx)(G.default,{isMissingPrompt:ie}):(0,b.jsx)(R.default,{});case z.PromptType.Refine:return"image"===u?(0,b.jsx)($.default,{closePrompt:qe}):"code"===u?(0,b.jsx)(K.default,{closePrompt:qe}):(0,b.jsx)(I.default,{closePrompt:qe})}}()})}),tt&&(0,b.jsx)(C.default.Actions,{children:!Le&&(0,b.jsx)(T.default,{"data-testid":"generate-button",type:"submit",className:"et-common-button et-common-button--primary",onClick:Ae($e),children:function(){var e;switch(u){case"image":e=(0,D.default)("userPrompt","Generate");break;case"code":e=(0,D.default)("userPrompt","Generate Code");break;default:e=(0,D.default)("userPrompt","Generate Text")}return e}()})}),Le&&(0,b.jsx)(C.default.Actions,{children:(0,b.jsx)(T.default,{type:"submit",className:"et-common-button et-common-button--primary",disabled:Le&&!et,onClick:Ae(Je),children:(0,D.default)("authorization","Submit")})})]}),(0,b.jsx)(M.default,{})]})}))}},7466:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAppSelector=t.useAppDispatch=void 0;var n=r(6113);t.useAppDispatch=n.useDispatch,t.useAppSelector=n.useSelector},8018:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0});var a=r(4587),l=r(7466);t.default=function(){var e=(0,l.useAppSelector)(a.selectAiMode),t=(0,l.useAppSelector)(a.selectEditorValue),r=(0,l.useAppSelector)(a.selectEditorName),n=(0,l.useAppSelector)(a.selectEditorInsertMode),s=(0,l.useAppSelector)(a.selectEditorCursor);return[function(a){if("code"===e){var l,u=function(e){for(var t=1;t{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AICodeInsertMode=t.DefaultImageReferenceSize=t.CodeContentType=t.ContentType=t.MODULE_FIELDS_AUTOFILL=t.Tags=t.CodeOption=t.ImageOption=t.TextOption=t.PromptType=void 0,function(e){e[e.Generate=0]="Generate",e[e.Refine=1]="Refine"}(r||(t.PromptType=r={})),t.TextOption={WRITE_WITH_AI:"write_with_ai",IMPROVE_WITH_AI:"improve_with_ai",WRITE_AUTOMATICALLY:"write_automatically",RESULT:"result",WRITE_AND_REPLACE:"write_and_replace"},t.ImageOption={GENERATE_WITH_AI:"generate_with_ai",GENERATE_AUTOMATICALLY:"generate_automatically",IMPROVE_WITH_AI:"improve_with_ai",GENERATE_AND_REPLACE:"generate_and_replace",REIMAGINE:"reimagine",RESULT:"result"},t.CodeOption={CODE_WITH_AI:"code_with_ai",IMPROVE_CODE_WITH_AI:"improve_code_with_ai",RESULT:"result"},t.Tags={Retry:"retry",Simplify:"simplify",Shorten:"shorten",Lengthen:"lengthen"},t.MODULE_FIELDS_AUTOFILL="module_fields_autofill",t.ContentType={paragraph:"paragraph",title:"title",button:"button"},t.CodeContentType={code_css:"css",code_html:"html",code_css_no_selector:"css-declarations",code_css_free_form:"free-form-css"},t.DefaultImageReferenceSize={width:512,height:512},t.AICodeInsertMode={APPEND:"append",INSERT:"insert",REPLACE:"replace"}},9861:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];if(e.stopPropagation(),"Enter"===e.key)return e.preventDefault(),r||t(),!1}},9695:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectShowAuthorizationModal=t.etAccountStatus=t.etAccount=void 0;var n=r(4268);t.etAccount=function(e){return e.diviAIOptions.etAccount};t.etAccountStatus=function(e){return e.diviAIOptions.etAccount.status},t.selectShowAuthorizationModal=(0,n.createSelector)(t.etAccount,(function(e){return(null==e?void 0:e.errorMessage)&&""!==(null==e?void 0:e.errorMessage)||!e.username||!e.apiKey}))},9548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setETAccount=t.diviAIOptionsSlice=void 0;var n=r(4268);t.diviAIOptionsSlice=(0,n.createSlice)({name:"diviAIOptions",initialState:{etAccount:{username:"",apiKey:"",status:"not_active",errorMessage:""}},reducers:{setETAccount:function(e,t){var r,n;e.etAccount.username=null!==(r=t.payload.et_username)&&void 0!==r?r:e.etAccount.username,e.etAccount.apiKey=null!==(n=t.payload.et_api_key)&&void 0!==n?n:e.etAccount.apiKey,e.etAccount.status=t.payload.status,e.etAccount.errorMessage=t.payload.errorMessage}}}),t.setETAccount=t.diviAIOptionsSlice.actions.setETAccount,t.default=t.diviAIOptionsSlice.reducer},4587:(e,t,r)=>{"use strict";function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return o(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 o(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 a,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r')),(0,l.default)(y).css({width:"auto",height:"auto"}),(0,i.render)((0,o.jsx)(a.Provider,{store:s.store,children:(0,o.jsx)(c.default,{})}),g.querySelector(y)))}}))},6789:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(7363),o=r.n(n),i=(r(1193),r(4480)),a=r.n(i),l=r(8618),s=r.n(l),u=r(2211),c=r.n(u);function f(e){return f="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},f(e)}function d(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(7363),o=r(905),i=r(2952),a=r.n(i),l=function(e,t){for(var r=a()(e,t,""),n=arguments.length,o=new Array(n>2?n-2:0),i=2;i0){var l=a()(window,"wp.i18n.sprintf");return l?l.apply(void 0,[r].concat(o)):r.replace("%s",o[0])}return r};const s=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function h(e,t,r,n,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,o)}function m(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){h(i,n,o,a,l,"next",e)}function l(e){h(i,n,o,a,l,"throw",e)}a(void 0)}))}}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(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 g(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 g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(7363),o=r.n(n),i=r(4480),a=r.n(i);function l(e){var t=e.className,r=void 0===t?"":t;return o().createElement("div",{className:a()("et-common-app-spinner-block",r),"data-testid":"Spinner"},o().createElement("div",{className:"et-common-app-spinner-block__spinner"}))}const s=o().memo(l)},2981:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});const n={black:"#000000",white:"#FFFFFF",default:"#F1F5F9",checkMark:"#37C4AA",success:"#29C4A9",successAlt:"#70C3A9",primary:"#6C2EB9",primaryAlt:"#7D3BCF",info:"#2B87DA",infoAlt:"#00B9DC",danger:"#EF5555",dangerAlt:"#EB3D00",inverse:"#4C5866",warning:"#FF9232",warningAlt:"#F3CB57",globalitem:"#97d000",optionTabIcon:"#BEC9D5",activeTabIcon:"#2B96E1",abTestingTimeFilter:"#A1A9B2",disabledSubject:"#E1E4EA",inactiveGrey:"#BEC9D6",shuttleGrey:"#5C6978",fiord:"#3E5062",uploadImagePreview:"#333B44",bfbPreviewActive:"#5C6979",bfbPreview:"#9FA5AC",enabledDeviceIcon:"#42E1A7",disabledDeviceIcon:"#EF5555",coreModalButtonBlue:"#008BDA",historyActiveButton:"#99CF02",uiActiveIcon:"#4191DE",uiInactiveIcon:"#bec9d6",moduleItemControlIcons:"#737e89",selectPositionGray:"#E6ECF2",cadetBlue:"#A2B0C1",layerBackground:"#f0f5f9",activeCloud:"#0088E1",activeFav:"#FF454E",button:"#a3b0c2"}},911:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>M});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4911),s=r.n(l),u=r(6057),c=r.n(u);function f(e){return f="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},f(e)}function d(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function S(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{default:()=>he});var n=r(8743),o=r(7363),i=r.n(o),a=r(1193),l=r.n(a),s=r(418),u=r.n(s),c=r(7606),f=r.n(c),d=r(2211),p=r.n(d),h=r(8546),m=r.n(h),v=r(3708),g=r.n(v),y=r(2952),b=r.n(y),w=r(5961),_=r.n(w),x=r(1587),k=r.n(x),S=r(8925),O=r.n(S),E=r(8232),C=r.n(E),T=r(6810),L=r.n(T),M=r(4480),A=r.n(M),j=(r(2384),r(7530),r(372),r(6728),r(4491),r(5812),r(1413),r(9805),r(7437),r(5930),r(9546),r(1863),r(9427),r(1528),r(1691),r(6283),r(1347),r(7886)),P=r.n(j),I=r(8961),R=r.n(I),N=r(4436);function D(e){return D="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},D(e)}function z(e,t){for(var r=0;r/},html:{mode:{name:"htmlmixed"},colorpicker:{mode:"edit"},matchTags:{bothTags:!0},lineBreakPlaceholder://}}},ae={line:0,ch:0},le={ignoreKeys:[13,37,39],prefix:{css:/[A-z-]/,default:/[A-z]/},tokens:{xml:["attribute","tag"]}},se=function(e){var t=b()(e,e.is_fb_content?"content":"value");return t===e.default?"":t},ue=function(e){e.hideCompletion(),e.hideColorPicker()},ce=new(function(){function e(){X(this,e),this.instances=[],this.listener=!1,this.$window=jQuery(window),this.onScroll=this.onScroll.bind(this)}return ee(e,[{key:"add",value:function(e){this.instances.push(e),this.check()}},{key:"remove",value:function(e){L()(this.instances,e),this.check()}},{key:"onScroll",value:function(){C()(this.instances,ue)}},{key:"check",value:function(){this.instances.length>0?this.listener||(this.$window.on("wheel scroll",this.onScroll),this.listener=!0):this.listener&&(this.$window.off("wheel scroll",this.onScroll),this.listener=!1)}}]),e}()),fe=0;function de(e){var t=this,r=e.lineNo,n=e.ch,o=e.nameColor,i=e.color;if(this.colorpicker){var a=i,l=this.cm.charCoords({line:r,ch:n},"window");this.colorpicker.show({left:l.left,top:l.bottom+fe,isShortCut:e.isShortCut||!1,hideDelay:this.opt.hideDelay||2e3},o||i,(function(e){t.cm.replaceRange(e,{line:r,ch:n},{line:r,ch:n+a.length},"*colorpicker"),a=e})),jQuery(this.colorpicker.$root.el).css({top:"".concat(l.bottom+fe,"px"),left:m()(l.left)?"".concat(l.left,"px"):l.left})}}var pe=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&&G(e,t)}(r,e);var t=K(r);function r(e){var n;X(this,r),(n=t.call(this,e)).editor=!1,n.dirty=!1,n.markers=[],n.mode=b()(e,"mode","css"),n.options=q(q(q({},ie.common),b()(ie.modes,n.mode,{})),{},{readOnly:b()(e,"readOnly",!1),cursorBlinkRate:b()(e,"cursorBlinkRate",ie.cursorBlinkRate),lint:b()(e,"lint",!0)}),k()(n.options,"mode.inline")&&k()(e,"inline")&&(n.options.mode.inline=e.inline),n.completion=b()(le.prefix,n.mode,le.prefix.default),n.onChange=n.onChange.bind(Y(n)),n.onClick=n.onClick.bind(Y(n)),n.onKeyUp=n.onKeyUp.bind(Y(n)),n.onKeyDown=n.onKeyDown.bind(Y(n)),n._onFocus=n._onFocus.bind(Y(n)),n._onBlur=n._onBlur.bind(Y(n)),n.onBeforeChange=n.onBeforeChange.bind(Y(n)),n.editorDidMount=n.editorDidMount.bind(Y(n)),n.activateEditor=n.activateEditor.bind(Y(n)),n.getEditor=n.getEditor.bind(Y(n)),n.debouncedShowCompletion=g()(n.showCompletion,ne),n.debouncedUpdateSettings=g()(n.updateSettings,re),n.incrementalKey=0;var o=n.addLineBreaks(se(e)),i=n.addLineBreaks(n.props.default);return n.state={value:o,default:i,enabled:!u()(o)||!u()(i),focused:!1},n}return ee(r,[{key:"componentDidMount",value:function(){ce.add(this)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.addLineBreaks(se(e));if(this.state.enabled||u()(t)&&u()(this.state.default)||this.enableEditor(),this.state.value!==t||e.activeTabMode!==this.props.activeTabMode){var r=this.addLineBreaks(e.default);this.setState({default:r}),this.dirty||(this.incrementalKey++,this.setValue(t))}}},{key:"componentDidUpdate",value:function(){if(this.editor){var e=this.editor;if(C()(this.markers,(function(e){e.clear()})),this.markers=[],u()(b()(this,"props.search")))return;for(var t=e.getSearchCursor(this.props.search);t.findNext();)this.markers.push(e.doc.markText(t.from(),t.to(),{className:"cm-searching",clearOnEnter:!0}))}}},{key:"componentWillUnmount",value:function(){this.hideCompletion(),this.hideColorPicker(),ce.remove(this),this.debouncedShowCompletion.cancel(),this.debouncedUpdateSettings.flush(),this.editor=!1,this.linter&&this.linter.destroy()}},{key:"onBeforeChange",value:function(e,t,r){this.dirty=!0,this.setValue(r)}},{key:"onChange",value:function(){re>0?this.debouncedUpdateSettings():this.updateSettings(),this.lint()}},{key:"onKeyUp",value:function(e,t){this.checkCompletion(e,t)}},{key:"onKeyDown",value:function(e,t){"Enter"!==t.key&&13!==t.keyCode||t.stopPropagation()}},{key:"onClick",value:function(){this.options.autofocus=!0,this.enableEditor()}},{key:"setValue",value:function(e){this.setState({value:e})}},{key:"addLineBreaks",value:function(e){if(p()(e)||!f()(e))return e;var t=this.options.lineBreakPlaceholder;return e.match(t)?e.split(t).join("\n"):e}},{key:"enableEditor",value:function(){this.setState({enabled:!0})}},{key:"lint",value:function(e){this.linter&&this.linter.lint(e)}},{key:"editorDidMount",value:function(e){this.editor=e;var t=e.state.colorpicker;t&&_()(t,"open_color_picker",de.bind(t)),this.props.lint&&(this.linter=new U(this.options.mode,e,oe),this.lint(0))}},{key:"updateSettings",value:function(){var e=this.props;e._onChange(e.name,this.state.value,e.type),this.dirty=!1}},{key:"hideCompletion",value:function(){this.debouncedShowCompletion.cancel(),this.editor&&this.editor.state.completionActive&&this.editor.state.completionActive.close()}},{key:"hideColorPicker",value:function(){this.editor&&this.editor.state.colorpicker&&this.editor.state.colorpicker.close_color_picker()}},{key:"checkCompletion",value:function(e,t){if(O()(le.ignoreKeys,t.keyCode))this.hideCompletion();else{var r=e.doc,n=r.getCursor(),o=n.line,i=n.ch,a=b()(e.getModeAt(n),"name"),l=r.getLine(o),s=l.substr(Math.max(i-1,0),1),u=l.substr(i,1);if(this.completion.test(s)&&!this.completion.test(u)){var c=b()(le,"tokens.".concat(a));if(c){var f=e.getTokenTypeAt(n);if(!O()(c,f))return void this.hideCompletion()}this.debouncedShowCompletion()}else this.hideCompletion()}}},{key:"showCompletion",value:function(){if(!this.editor.state.completionActive){var e=window.parent.body;this.editor.showHint({completeSingle:!1,container:e})}}},{key:"activateEditor",value:function(){this.enableEditor()}},{key:"getEditor",value:function(){return this.editor}},{key:"render",value:function(){var e,t=this.props,r=t.name,o=t.classList,a=q(q({},this.options),{},{lineNumbers:this.state.focused||!u()(this.state.value)||u()(this.state.default),placeholder:this.state.default});e=i().createElement(n.fk,{key:this.incrementalKey,value:this.state.value,options:a,cursor:this.options.autofocus?ae:null,autoFocus:this.options.autofocus,name:r,id:"et-common-".concat(r),onChange:this.onChange,onBeforeChange:this.onBeforeChange,onKeyUp:this.onKeyUp,onKeyDown:this.onKeyDown,editorDidMount:this.editorDidMount,onFocus:this._onFocus,onBlur:this._onBlur});var l=q(q({},o),{},{"et-common-codemirror":!0});return i().createElement("div",{className:A()(l)},e)}},{key:"_onFocus",value:function(){this.setState({focused:!0})}},{key:"_onBlur",value:function(){this.setState({focused:!1})}}]),r}(i().PureComponent);pe.propTypes={className:l().string,inline:l().bool,lint:l().bool,name:l().string.isRequired,search:l().string,value:l().string},pe.defaultProps={className:"",inline:!0,lint:!0,search:"",value:""};const he=pe},1149:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l);function u(e){return u="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},u(e)}var c=["positive","value","checked","className","children"];function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i);function l(e){return l="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},l(e)}var s=["className","type"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function f(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{default:()=>s});var n=r(7363),o=r.n(n),i=["className"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const s=(0,n.forwardRef)((function(e,t){var r=e.className,n=l(e,i);return o().createElement("textarea",a({className:"et-common-textarea ".concat(r)},n,{ref:t}))}))},6309:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>X});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l),u=r(9070),c=r(418),f=r.n(c),d=r(1009),p=r.n(d),h=r(4082),m=r.n(h),v=r(7606),g=r.n(v),y=(r(2406),r(8232),r(8925),r(1733),r(2211)),b=r.n(y);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 _(e,t){for(var r=0;r{"use strict";r.r(t),r.d(t,{default:()=>O});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l),u=r(2211),c=r.n(u),f=r(3708),d=r.n(f),p=r(3156),h=r.n(p),m=r(2952),v=r.n(m);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){for(var r=0;r.1&&parseFloat(e)%1>0&&this.setState({rangeStep:"0.1"}),this.checkRangeBoundaries(this.state.value)}},{key:"componentDidUpdate",value:function(e){var t=this.emptyIfDefault(this.props.value);e.value===t||this.userUpdate||this.setState({value:t}),this.userUpdate=!1}},{key:"componentWillUnmount",value:function(){this.deferredUpdate.cancel()}},{key:"getDefaultValue",value:function(){return this.addUnit(h()(this.props.default))}},{key:"emptyIfDefault",value:function(e){return e===this.getDefaultValue()?"":e}},{key:"addUnit",value:function(e){var t=this.props.default_unit;return""===e?"0".concat(t):"".concat(e).concat(t)}},{key:"removeUnit",value:function(e){var t=this.props.default_unit;return e.replace("".concat(t),"")}},{key:"checkRangeBoundaries",value:function(e){if(h()(e)){var t=parseFloat(e);t>this.state.rangeMax&&this.setState({rangeMax:t}),t.1&&t%1>0&&this.setState({rangeStep:"0.1"})}}},{key:"_renderInput",value:function(){var e=this.props.id||"et-fb-".concat(this.props.name),t=this.props.name,r=this.emptyIfDefault(this.state.value);r=this.addUnit(r);var n=this.getDefaultValue(),i=""===this.removeUnit(r)?n:this.removeUnit(r);return o().createElement("div",{className:"et-fb-settings-option-inputs-wrap"},o().createElement("input",{id:e,name:t,type:"range",min:this.state.rangeMin,max:this.state.rangeMax,step:this.state.rangeStep,className:"et-fb-range",value:parseFloat(i),"data-shortcuts-allowed":!0,onChange:this._updateFromRange}),o().createElement("div",{className:"et-fb-range-number"},o().createElement("input",{type:"text",value:r,placeholder:n,onChange:this._onChange,className:"et-fb-settings-option-input"})))}},{key:"render",value:function(){return this.getDefaultValue(),this.props.value,o().createElement("div",{className:s()({"et-fb-settings-option-inner":!0,"et-fb-settings-option-inner-range":!0})},this._renderInput())}}])&&y(t.prototype,r),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(n.PureComponent);k.defaultProps={default_unit:""},k.propTypes={name:a().string.isRequired,default_unit:a().string,precision:a().number};var S=function(){var e=this;this.isChangingRange=!1,this.updateOptionAndState=function(t){t=c()(t)?e.state.value:t,e.userUpdate=!0,e.setState({value:t}),e.props._onChange(e.props.name,t)},this._updateFromRange=function(t){var r=v()(t,"target.value");r=e.removeUnit(r),e.isChangingRange=!0,e.updateOptionAndState(r),e.isChangingRange=!1},this._onChange=function(t){var r=v()(t,"target.value");r=e.removeUnit(r),e.updateOptionAndState(r),e.checkRangeBoundaries(r)}};const O=k},2419:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Oe});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(4480),s=r.n(l),u=r(9070),c=r(5077),f=r.n(c),d=r(7606),p=r.n(d),h=r(8546),m=r.n(h),v=r(2211),g=r.n(v),y=r(3858),b=r.n(y),w=r(1009),_=r.n(w),x=r(4082),k=r.n(x),S=r(1329),O=r.n(S),E=r(1839),C=r.n(E),T=r(3109),L=r.n(T),M=r(418),A=r.n(M),j=r(8961),P=r.n(j),I=r(9608),R=r.n(I),N=r(9021),D=r.n(N),z=r(2406),F=r.n(z),H=r(8925),B=r.n(H),W=r(1733),U=r.n(W),V=r(2952),q=r.n(V),$=r(8232),G=r.n($),K=r(8993),Y=r.n(K),Q=r(1587),Z=r.n(Q),X=r(3167),J=r.n(X),ee=r(1641),te=r.n(ee),re=r(4911),ne=r.n(re),oe=r(6789);function ie(e){return ie="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},ie(e)}function ae(e,t){for(var r=0;r0&&this.props.customMarkerAction)return!1;this.props._onChange({},this.props.value)}},{key:"updateActiveItemIndex",value:function(){this.props._setHoveredItem(this.props.itemIndex,this.props.value)}},{key:"resetActiveItemIndex",value:function(e){jQuery(e.relatedTarget).closest(".select-option-item").length<1&&this.props._resetHoveredItem()}},{key:"onMarkerClick",value:function(){this.props.customMarkerAction&&this.props.customMarkerAction(this.props.value)}},{key:"render",value:function(){if(!this.props.isMenuActive&&this.props.selectedOption!==this.props.value)return!1;if(k()(this.props.value)||g()(this.props.value))return!1;var e=this.props.selectedOption===this.props.value,t=s()({"select-option-item":!0,"select-option-item-hovered":this.props.isItemHovered,"et-fb-selected-item":e},"select-option-item-".concat(this.props.value.replace(/ /g,"_")),this.props.classNames),r=this.props.isItemHovered?"#FFFFFF":"#37C4AA",n=this.props.isItemHovered?"#FFFFFF":"#BEC9D5",i=e&&this.props.displayCheckMark&&this.props.isMenuActive?o().createElement(oe.default,{icon:"check",color:r}):"",a=this.props.customMarker&&""===i?o().createElement("span",{onClick:this.onMarkerClick,className:"et-fb-select-marker"},o().createElement(oe.default,{icon:this.markerToIconMapping[this.props.customMarker],color:n})):"",l=g()(this.props.additionalContent)||""===this.props.additionalContent?"":this.props.additionalContent,u=this.props.additionalContentFirst;return o().createElement("li",{className:t,onClick:this.onChangeValue,onMouseOver:this.updateActiveItemIndex,onMouseLeave:this.resetActiveItemIndex,"data-value":this.props.value,"data-testid":"select-option-".concat(this.props.value)},u?l:"",o().createElement("span",{className:"select-option-item__name"},this.props.name),i,a,u?"":l)}}])&&ae(t.prototype,r),n&&ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o().Component);de.propTypes=fe,de.defaultProps={additionalContentFirst:!1};const pe=de;var he=r(6823);function me(e){return me="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},me(e)}function ve(){return ve=Object.assign?Object.assign.bind():function(e){for(var t=1;tn,s=t.props.preserveHeight===ke.ON||!a.flags.fitsInBottomSpace;l&&s&&jQuery(t.heightPreserverRef).height(Math.ceil(i-n)).removeClass("et-fb-select__height-preserver--hidden"),t.setState({menuPosition:a.position.top,menuWidth:a.size.width,menuHeight:a.size.height})},t.isSocialMediaItem=function(){return"et_pb_social_media_follow_network"===q()(t.props,"module.props.module.props.type","")},t.renderNoResults=function(){return o().createElement("li",{className:"select-option-item et-fb-selected-item"},ETBuilderBackend.i18n.selectControl.noResults)},t.state={iconPickerMenuCustomStyling:void 0!==t.props.iconPickerMenuCustomStyling,isControlSelectSVG:void 0!==e.isControlSelectSVG,active:e.activeOnLoad||!1,hoveredItemIndex:0,lastHoveredItem:0,filterValue:"",deleteConfirmation:"",menuHeight:0},t._render_options=t._render_options.bind(_e(t)),t._onChange=t._onChange.bind(_e(t)),t.toggleMenu=t.toggleMenu.bind(_e(t)),t.isSelectedOption=t.isSelectedOption.bind(_e(t)),t._renderActiveOption=t._renderActiveOption.bind(_e(t)),t.maybeCloseMenu=t.maybeCloseMenu.bind(_e(t)),t.maybeNavigate=t.maybeNavigate.bind(_e(t)),t._onFilterInput=t._onFilterInput.bind(_e(t)),t.updateActiveItemIndex=t.updateActiveItemIndex.bind(_e(t)),t.deleteFont=t.deleteFont.bind(_e(t)),t._performScrolling=t._performScrolling.bind(_e(t)),t.openFontUploader=t.openFontUploader.bind(_e(t)),t.resetHoveredItem=t.resetHoveredItem.bind(_e(t)),t._closeMenu=t._closeMenu.bind(_e(t)),t.getSelectedOption=t.getSelectedOption.bind(_e(t)),t.fonUploaderFinishedCallback=t.fonUploaderFinishedCallback.bind(_e(t)),t.cancelFontRemove=t.cancelFontRemove.bind(_e(t)),t.itemIndex=0,t}return t=l,r=[{key:"shouldComponentUpdate",value:function(e,t){return!P()(e,this.props)||!P()(t,this.state)}},{key:"componentDidMount",value:function(){window.top.addEventListener("mousedown",this.maybeCloseMenu),window.top.addEventListener("keydown",this.maybeNavigate),window.top.addEventListener("resize",this.updateMenuPosition),(this.state.iconPickerMenuCustomStyling||this.state.isControlSelectSVG)&&this.updateMenuPosition(),this.state.active&&this.props.onOpen()}},{key:"componentWillUnmount",value:function(){window.top.removeEventListener("mousedown",this.maybeCloseMenu),window.top.removeEventListener("keydown",this.maybeNavigate),window.top.removeEventListener("resize",this.updateMenuPosition)}},{key:"componentDidUpdate",value:function(e,t){var r=this.state.active&&!t.active,n=!P()(e.options,this.props.options);(r||n)&&this.updateMenuPosition(),t.active&&this.state.active}},{key:"isSelectedOption",value:function(e,t){return t===this.getSelectedOption()}},{key:"_onFilterInput",value:function(e,t){this.setState({filterValue:t})}},{key:"deleteFont",value:function(e){this.setState({deleteConfirmation:e})}},{key:"cancelFontRemove",value:function(){this.setState({deleteConfirmation:""})}},{key:"openFontUploader",value:function(){this._closeMenu()}},{key:"fonUploaderFinishedCallback",value:function(e){this._onChange("",e)}},{key:"getSelectedOption",value:function(){return this._getSelectedOptionItem(this._flattenOptions(this.props.options))}},{key:"_getSelectedOptionItem",value:function(e){var t=this.props.value,r=!g()(t)&&""!==t,n=!g()(this.props.additionalOptions)&&!A()(this.props.additionalOptions)&&this.props.additionalOptions;if(g()(t))return"";if(r&&(r=b()(e)?-1!==Y()(e,t):!g()(e[t])),!r&&!A()(n)&&Z()(n,"uploaded")){var o=n.uploaded.filter((function(e){return t===e}));if(!A()(o)&&b()(o))return o[0]}return r||(t=this.props.selectFirst?b()(e)?e[0]:F()(e,(function(e){return!A()(e)})):null),t}},{key:"_renderActiveOption",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(this.state.active&&(!this.props.searchable||""!==this.state.filterValue))return!1;var r=this.getSelectedOption(),n=b()(e)?{0:r}:O()(e,this.isSelectedOption);if(!A()(n)){var i=C()(n)[0],a=L()(n)[0],l=b()(e)?a:i,s=i;""!==t&&(s="".concat(t,"-").concat(s));var u=o().createElement(pe,{key:s,additionalContent:"",value:l,name:this._getLabelForOption(a,l),isMenuActive:this.state.active,selectedOption:r,_onChange:this._onChange,_setHoveredItem:this.updateActiveItemIndex,_resetHoveredItem:this.resetHoveredItem,itemIndex:0,isItemHovered:!1,_closeMenu:this._closeMenu,displayCheckMark:!0,customMarker:this.props.customMarker});return this.state.active?o().createElement("li",{className:"et-fb-option-subgroup",key:s},o().createElement("ul",null,u)):u}return"select_product"===this.props.type&&this.renderNoResults()}},{key:"_flattenOptions",value:function(e){var t=this,r=b()(e)?[]:{};return G()(e,(function(e,n){k()(e)||b()(e)?t.isSocialMediaItem()?r[n]=e.value:G()(e,(function(e,t){r[t]=e})):r[n]=e})),r}},{key:"_isOptionsGrouped",value:function(){return!P()(this._flattenOptions(this.props.options),this.props.options)}},{key:"_render_options_svg",value:function(e){var t=this;if(!this.state.isControlSelectSVG||this.state.active)return null;var r=b()(e),n=r?e:C()(e),o=this.getSelectedOption();return f()(n,(function(n,i){var a=r?i:n,l=q()(e,a);return t._renderOptionsItem(l,a,o,"","-svg")}))}},{key:"_render_options",value:function(e){var t=this;if(!this.state.active)return!1;var r=b()(e),n=r?e:C()(e),i=this.props;if(!A()(i.order)){var a=f()(i.order,String);n=D()(te()(a,n),J()(n,a))}var l=this.getSelectedOption();return f()(n,(function(n,i){var a=r?i:n,u=q()(e,a);if(!t.isSocialMediaItem()&&(k()(u)||b()(u))){var c=f()(u,(function(e,r){return t._renderOptionsItem(e,r,l,a)})),d=Z()(t.props.optionGroups,a)?t.props.optionGroups[a]:a,p={"et-fb-option-subgroup":!0,"et-fb-option-subgroup-separator":!!g()(t.props.groupSeparator)||t.props.groupSeparator};return o().createElement("li",{className:s()(p),key:a},o().createElement("p",{className:"et-fb-subgroup-title"},d),o().createElement("ul",null,c))}return t._renderOptionsItem(u,a,l)}))}},{key:"_getLabelForOption",value:function(e,t){var r=A()(e)&&!A()(this.props.emptyLabel)?this.props.emptyLabel:e;return U()(this.props.labelFilter)||(r=this.props.labelFilter(r,t)),r}},{key:"_renderOptionsItem",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=m()(t)?e:t,l=""!==n?"".concat(n,"-").concat(a).concat(i):"".concat(a).concat(i),s="";if(!p()(e)&&this.isSocialMediaItem()&&(e=e.value),-1!==e.toLowerCase().indexOf(this.state.filterValue.toLowerCase())){this.itemIndex++;var u=this.state.hoveredItemIndex===this.itemIndex&&"divider"!==this.props.type||this.state.hoveredItemIndex===this.itemIndex&&1===this.itemIndex,c=this.props.getSvgContent;if(_()(c)){var f=u||r===a,d=q()(this.props,"transformValues","");s=c(a,f,this.props.type,d)}return o().createElement(pe,{key:l,additionalContent:s,value:a,name:this._getLabelForOption(e,a),isMenuActive:this.state.active||""!==i,selectedOption:r,_onChange:this._onChange,_setHoveredItem:this.updateActiveItemIndex,_resetHoveredItem:this.resetHoveredItem,itemIndex:this.itemIndex,isItemHovered:u,_closeMenu:this._closeMenu,displayCheckMark:!0,customMarker:!1,hoverAction:this.props._hoverAction,additionalContentFirst:this.props.additionalContentFirst})}}},{key:"_renderHeightPreserver",value:function(){var e=this;return o().createElement("li",{ref:function(t){return e.heightPreserverRef=t},className:"et-fb-select-options-filter select-option-item et-fb-select__height-preserver"})}},{key:"toggleMenu",value:function(e){var t=this;window.top.jQuery(e.target).closest(".et-fb-select-options-filter, .et-fb-upload-font, .et-common-icon--delete, .et-fb-font-removal-activated").length>0||this.setState({active:!this.state.active,menuHeight:0,deleteConfirmation:"",filterValue:""},(function(){t.state.active?t.props.onOpen():t.props.onClose()}))}},{key:"maybeCloseMenu",value:function(e){this.state.active&&jQuery(e.target).closest(jQuery(this.divRef.current)).length<1&&this._closeMenu()}},{key:"_performScrolling",value:function(e){var t="down"===e?"+=".concat(26):"-=".concat(26);jQuery(this.divRef.current).find(".et-fb-settings-option-select").animate({scrollTop:t},0)}},{key:"maybeNavigate",value:function(e){if(B()([38,40,13],e.keyCode)&&!(jQuery(".et-fb-settings-option-select-advanced").closest(".et-fb-tabs__panel--active").length<1)){13===e.keyCode&&(-1!==this.state.hoveredItemIndex&&this.state.hoveredItemValue&&this._onChange(e,this.state.hoveredItemValue),this._closeMenu());var t=R()(this._flattenOptions(this.props.options)),r=-1===this.state.hoveredItemIndex?this.state.lastHoveredItem:this.state.hoveredItemIndex;40===e.keyCode&&(r=r===t?t:r+1,this._performScrolling("down"),event.preventDefault()),38===e.keyCode&&(r=r<=0?0:r-1,this._performScrolling("up"),event.preventDefault()),this.updateActiveItemIndex(r)}}},{key:"updateActiveItemIndex",value:function(e,t){var r=!g()(t)&&t;this.setState({hoveredItemIndex:e,hoveredItemValue:r})}},{key:"_onChange",value:function(e,t,r){if(t!==this.getSelectedOption())if(g()(this.props.__onChange)){var n=this.props.name,o=g()(t)?e.target.value:t;this.props._onChange(n,o)}else this.props.__onChange(t);r&&this._closeMenu()}},{key:"_onChangeAdditional",value:function(){this._closeMenu()}},{key:"_closeMenu",value:function(){this.setState({active:!1,menuHeight:0,deleteConfirmation:""},this.props.onClose);var e=jQuery(window.top.document.body),t=e.css("display"),r="initial"===t?"block":"initial";e.css({display:r}),setTimeout((function(){e.css({display:t})}),0)}},{key:"resetHoveredItem",value:function(){var e=this.state.hoveredItemIndex;this.setState({hoveredItemIndex:-1,lastHoveredItem:e})}},{key:"render",value:function(){var e,t,r=this,n=this.state.menuHeight,i=this.state.active&&!this.props.activeOnLoad?o().createElement("div",{className:"et-fb-settings-option-select-advanced-placeholder"}):"",a={};this.itemIndex=0;var l={"et-fb-settings-option-select":!0,"et-fb-allow-mouse-wheel":this.state.active,"et-fb-settings-option-select-advanced":!0},c={"et-fb-settings-custom-select-wrapper":!0,"et-fb-settings-option-select-active":this.state.active,"et-fb-settings-option-select-closed":!this.state.active,"et-fb-settings-option-select-searchable":this.state.active&&this.props.searchable,"et-fb-settings-option-select-grouped-options":this.state.active&&this._isOptionsGrouped(),"et-fb-settings-option-select-readonly":this.props.readonly};"column_structure"===this.props.processedKey&&(l["et-fb-settings-option-select--column-structure"]=!0),this.props.className?l[this.props.className]=!0:l["et-fb-main-setting"]=!0,t=this._renderActiveOption(this._flattenOptions(this.props.options)),e=this._render_options(this.props.options),this.state.active&&(a.top=this.state.menuPosition,a.width=this.state.menuWidth,this.state.iconPickerMenuCustomStyling&&a.width&&(a.marginLeft=a.width-145));var f=-1!==[ke.ON,ke.AUTO].indexOf(this.props.preserveHeight)&&this._renderHeightPreserver();if(this.state.isControlSelectSVG&&!this.state.active){var d=this._render_options_svg(this.props.options);t=o().createElement("li",{className:"et-fb-settings-custom-select-wrapper-inner"},o().createElement("ul",null,t,o().createElement("li",{className:"et-fb-select__height-preserver--hidden"},o().createElement("ul",null,d))))}var p=this.state.active?o().createElement(u.y_,{defaultStyle:{size:.8,opacity:0},style:{size:(0,u.ST)(1,{stiffness:300,damping:20}),opacity:(0,u.ST)(1,{stiffness:300,damping:20})}},(function(i){return o().createElement("ul",{className:s()(l),style:{maxHeight:n>0?n:"none",opacity:i.opacity,transform:"scale( ".concat(i.size," )")},role:r.props.role},o().createElement("li",{className:"et-fb-settings-custom-select-wrapper-inner et-fb-allow-mouse-wheel-form"},o().createElement("ul",null,r.props.beforeList(),t,void 0,e,r.props.afterList(f))))})):this.props.activeOnLoad?null:o().createElement("ul",{className:s()(l),style:{maxHeight:n>0?n:"none"}},t),h={onClick:this.toggleMenu};this.props.readonly&&delete h.onClick;var m,v,g,y=(m={"et-fb-settings-custom-select-wrapper-outer":!0},v="et-fb-settings-".concat(this.props.name,"-select-wrapper-outer"),g=!0,(v=ye(v))in m?Object.defineProperty(m,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):m[v]=g,m);return o().createElement("div",{className:s()(y),ref:this.divRef},i,o().createElement("div",ve({id:"et-fb-".concat(this.props.name),className:s()(c),style:a},h),p))}}],r&&ge(t.prototype,r),i&&ge(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(o().Component);Se.propTypes={selectFirst:a().bool,emptyLabel:a().string,role:a().string,labelFilter:a().func,preserveHeight:a().oneOf(L()(ke)),beforeList:a().func,afterList:a().func,onOpen:a().func,onClose:a().func,getSvgContent:a().oneOfType([a().bool,a().func]),customMarker:a().string,additionalContentFirst:a().bool},Se.defaultProps={selectFirst:!0,emptyLabel:"",role:"",labelFilter:null,preserveHeight:ke.AUTO,beforeList:ne(),afterList:ne(),onOpen:ne(),onClose:ne(),getSvgContent:!1,customMarker:"menuArrow",additionalContentFirst:!1};const Oe=Se},905:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Ae});var n=r(7363),o=r.n(n),i=r(4480),a=r.n(i),l=r(5298);const s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,u=(e,t,r)=>{s((()=>{if(e)return;const n=t.current;return r(n,!0),()=>{r(n)}}),[e,t,r])},c="szh-menu",f="item",d=(0,n.createContext)(),p=(0,n.createContext)({}),h=(0,n.createContext)({}),m=(0,n.createContext)({}),v=(0,n.createContext)({}),g=(0,n.createContext)({}),y=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),b=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),w=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),_=Object.freeze({FIRST:"first",LAST:"last"}),x=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),k="absolute",S="presentation",O="menuitem",E={"aria-hidden":!0,role:O},C=(e,t,r,o)=>{const{submenuCloseDelay:i}=(0,n.useContext)(g),{isParentOpen:a,submenuCtx:l,dispatch:s,updateItems:c}=(0,n.useContext)(p),f=()=>{!r&&!o&&s(b.SET,e.current)},d=()=>{!o&&s(b.UNSET,e.current)};return u(o,e,c),(0,n.useEffect)((()=>{r&&a&&t.current&&t.current.focus()}),[t,r,a]),{setHover:f,onBlur:e=>{r&&!e.currentTarget.contains(e.relatedTarget)&&d()},onPointerMove:e=>{o||(e.stopPropagation(),l.on(i,f,f))},onPointerLeave:(e,t)=>{l.off(),!t&&d()}}};function T(e,t){"function"==typeof e?e(t):e.current=t}const L=(e,t)=>(0,n.useMemo)((()=>e?t?r=>{T(e,r),T(t,r)}:e:t),[e,t]),M=({block:e,element:t,modifiers:r,className:o})=>(0,n.useMemo)((()=>{const n=t?`${e}__${t}`:e;let i=n;r&&Object.keys(r).forEach((e=>{const t=r[e];t&&(i+=` ${n}--${!0===t?e:`${e}-${t}`}`)}));let a="function"==typeof o?o(r):o;return"string"==typeof a&&(a=a.trim(),a&&(i+=` ${a}`)),i}),[e,t,r,o]),A=(e,t)=>{const r=(0,n.memo)(t),o=(0,n.forwardRef)(((e,t)=>{const o=(0,n.useRef)(null);return(0,l.jsx)(r,{...e,itemRef:o,externalRef:t,isHovering:(0,n.useContext)(d)===o.current})}));return o.displayName=`WithHovering(${e})`,o};var j=r(1533);const P=e=>!!e&&"o"===e[0],I=j.unstable_batchedUpdates||(e=>e()),R=(Object.values,(e,t,r=1e-4)=>Math.abs(e-t)!0===e||!(!e||!e[t]),D=(e,t)=>"function"==typeof e?e(t):e,z="_szhsinMenu",F=(e,t)=>Object.defineProperty(t,z,{value:e}),H=(e,t)=>(t&&Object.keys(t).forEach((r=>{const n=e[r],o=t[r];e[r]="function"==typeof o&&n?(...e)=>{o(...e),n(...e)}:o})),e),B=e=>{for(;e;){if(!(e=e.parentNode)||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:r,overflowY:n}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+n+r))return e}};function W(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function U(e,t){for(let r=0;r({disabled:u,hover:o,focusable:!0})),[u,o]),b=(0,n.useMemo)((()=>D(r,{...y,ref:d,closeMenu:g})),[r,y,g]),w=H({...v,onPointerLeave:e=>h(e,!0),onFocus:p},s);return(0,l.jsx)("li",{role:O,...W(u),...w,ref:L(a,i),className:M({block:c,element:f,modifiers:y,className:e}),children:b})})),q=(0,n.memo)((0,n.forwardRef)((function({className:e,...t},r){return(0,l.jsx)("li",{role:"separator",...t,ref:r,className:M({block:c,element:"divider",className:e})})}))),$=F("MenuButton",(0,n.forwardRef)((function({className:e,isOpen:t,disabled:r,children:o,...i},a){const s=(0,n.useMemo)((()=>({open:t})),[t]);return(0,l.jsx)("button",{"aria-haspopup":!0,"aria-expanded":t,"aria-disabled":r||void 0,type:"button",disabled:r,...i,ref:a,className:M({block:"szh-menu-button",modifiers:s,className:e}),children:o})}))),G=({className:e,containerRef:t,containerProps:r,children:o,isOpen:i,theming:a,transition:s,onClose:u})=>{const c=N(s,"item");return(0,l.jsx)("div",{...H({onKeyDown:({key:e})=>{if(e===y.ESC)D(u,{key:e,reason:w.CANCEL})},onBlur:e=>{i&&!e.currentTarget.contains(e.relatedTarget||document.activeElement)&&D(u,{reason:w.BLUR})}},r),className:M({block:"szh-menu-container",modifiers:(0,n.useMemo)((()=>({theme:a,itemTransition:c})),[a,c]),className:e}),style:{position:"absolute",...null==r?void 0:r.style},ref:t,children:o})},K=()=>{let e,t=0;return{toggle:e=>{e?t++:t--,t=Math.max(t,0)},on:(r,n,o)=>{t?e||(e=setTimeout((()=>{e=0,n()}),r)):null==o||o()},off:()=>{e&&(clearTimeout(e),e=0)}}},Y=(e,t,r,n)=>{const o=t.current.getBoundingClientRect(),i=e.current.getBoundingClientRect(),a=r===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:r.getBoundingClientRect(),l=(e=>{if("string"!=typeof e)return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),r=isNaN(t[0])?0:t[0],n=isNaN(t[1])?r:t[1];return{top:r,right:n,bottom:isNaN(t[2])?r:t[2],left:isNaN(t[3])?n:t[3]}})(n),s=e=>e+i.left-a.left-l.left,u=e=>e+i.left+o.width-a.right+l.right,c=e=>e+i.top-a.top-l.top,f=e=>e+i.top+o.height-a.bottom+l.bottom;return{menuRect:o,containerRect:i,getLeftOverflow:s,getRightOverflow:u,getTopOverflow:c,getBottomOverflow:f,confineHorizontally:e=>{let t=s(e);if(t<0)e-=t;else{const r=u(e);r>0&&(t=s(e-=r),t<0&&(e-=t))}return e},confineVertically:e=>{let t=c(e);if(t<0)e-=t;else{const r=f(e);r>0&&(t=c(e-=r),t<0&&(e-=t))}return e}}},Q=({anchorRect:e,containerRect:t,menuRect:r,placeLeftorRightY:n,placeLeftX:o,placeRightX:i,getLeftOverflow:a,getRightOverflow:l,confineHorizontally:s,confineVertically:u,arrowRef:c,arrow:f,direction:d,position:p})=>{let h,m,v,g=d,y=n;"initial"!==p&&(y=u(y),"anchor"===p&&(y=Math.min(y,e.bottom-t.top),y=Math.max(y,e.top-t.top-r.height))),"left"===g?(h=o,"initial"!==p&&(m=a(h),m<0&&(v=l(i),(v<=0||-m>v)&&(h=i,g="right")))):(h=i,"initial"!==p&&(v=l(h),v>0&&(m=a(o),(m>=0||-m{let i=r.top-n.top-t+r.height/2;const a=1.25*e.current.offsetHeight;return i=Math.max(a,i),i=Math.min(i,o.height-a),i})({menuY:y,arrowRef:c,anchorRect:e,containerRect:t,menuRect:r}):void 0;return{arrowY:b,x:h,y,computedDirection:g}},Z=({anchorRect:e,containerRect:t,menuRect:r,placeToporBottomX:n,placeTopY:o,placeBottomY:i,getTopOverflow:a,getBottomOverflow:l,confineHorizontally:s,confineVertically:u,arrowRef:c,arrow:f,direction:d,position:p})=>{let h,m,v,g="top"===d?"top":"bottom",y=n;"initial"!==p&&(y=s(y),"anchor"===p&&(y=Math.min(y,e.right-t.left),y=Math.max(y,e.left-t.left-r.width))),"top"===g?(h=o,"initial"!==p&&(m=a(h),m<0&&(v=l(i),(v<=0||-m>v)&&(h=i,g="bottom")))):(h=i,"initial"!==p&&(v=l(h),v>0&&(m=a(o),(m>=0||-m{let i=r.left-n.left-t+r.width/2;const a=1.25*e.current.offsetWidth;return i=Math.max(a,i),i=Math.min(i,o.width-a),i})({menuX:y,arrowRef:c,anchorRect:e,containerRect:t,menuRect:r}):void 0;return{arrowX:b,x:y,y:h,computedDirection:g}},X=({ariaLabel:e,menuClassName:t,menuStyle:r,arrow:o,arrowProps:i={},anchorPoint:a,anchorRef:u,containerRef:f,containerProps:m,focusProps:v,externalRef:x,parentScrollingRef:S,align:O="start",direction:C="bottom",position:T="auto",overflow:A="visible",setDownOverflow:z,repositionFlag:F,captureFocus:V=!0,state:q,endTransition:$,isDisabled:X,menuItemFocus:J,gap:ee=0,shift:te=0,children:re,onClose:ne,...oe})=>{const[ie,ae]=(0,n.useState)({x:-9999,y:-9999}),[le,se]=(0,n.useState)({}),[ue,ce]=(0,n.useState)(),[fe,de]=(0,n.useState)(C),[pe]=(0,n.useState)(K),[he,me]=(0,n.useReducer)((e=>e+1),1),{transition:ve,boundingBoxRef:ge,boundingBoxPadding:ye,rootMenuRef:be,rootAnchorRef:we,scrollNodesRef:_e,reposition:xe,viewScroll:ke,submenuCloseDelay:Se}=(0,n.useContext)(g),{submenuCtx:Oe,reposSubmenu:Ee=F}=(0,n.useContext)(h),Ce=(0,n.useRef)(null),Te=(0,n.useRef)(),Le=(0,n.useRef)(),Me=(0,n.useRef)(!1),Ae=(0,n.useRef)({width:0,height:0}),je=(0,n.useRef)((()=>{})),{hoverItem:Pe,dispatch:Ie,updateItems:Re}=((e,t)=>{const[r,o]=(0,n.useState)(),i=(0,n.useRef)({items:[],hoverIndex:-1,sorted:!1}).current,a=(0,n.useCallback)(((e,r)=>{const{items:n}=i;if(e)if(r)n.push(e);else{const r=n.indexOf(e);r>-1&&(n.splice(r,1),e.contains(document.activeElement)&&(t.current.focus(),o()))}else i.items=[];i.hoverIndex=-1,i.sorted=!1}),[i,t]);return{hoverItem:r,dispatch:(0,n.useCallback)(((t,r,n)=>{const{items:a,hoverIndex:l}=i,s=()=>{if(i.sorted)return;const t=e.current.querySelectorAll(".szh-menu__item");a.sort(((e,r)=>U(t,e)-U(t,r))),i.sorted=!0};let u,c=-1;switch(t){case b.RESET:break;case b.SET:u=r;break;case b.UNSET:u=e=>e===r?void 0:e;break;case b.FIRST:s(),c=0,u=a[c];break;case b.LAST:s(),c=a.length-1,u=a[c];break;case b.SET_INDEX:s(),c=n,u=a[c];break;case b.INCREASE:s(),c=l,c<0&&(c=a.indexOf(r)),c++,c>=a.length&&(c=0),u=a[c];break;case b.DECREASE:s(),c=l,c<0&&(c=a.indexOf(r)),c--,c<0&&(c=a.length-1),u=a[c]}u||(c=-1),o(u),i.hoverIndex=c}),[e,i]),updateItems:a}})(Ce,Te),Ne=P(q),De=N(ve,"open"),ze=N(ve,"close"),Fe=_e.current,He=(0,n.useCallback)((e=>{var t;const r=u?null==(t=u.current)?void 0:t.getBoundingClientRect():a?{left:a.x,right:a.x,top:a.y,bottom:a.y,width:0,height:0}:null;if(!r)return void 0;Fe.menu||(Fe.menu=(ge?ge.current:B(be.current))||window);const n=Y(f,Ce,Fe.menu,ye);let{arrowX:i,arrowY:l,x:s,y:c,computedDirection:d}=(({arrow:e,align:t,direction:r,gap:n,shift:o,position:i,anchorRect:a,arrowRef:l,positionHelpers:s})=>{const{menuRect:u,containerRect:c}=s,f="left"===r||"right"===r;let d=f?n:o,p=f?o:n;if(e){const e=l.current;f?d+=e.offsetWidth:p+=e.offsetHeight}const h=a.left-c.left-u.width-d,m=a.right-c.left+d,v=a.top-c.top-u.height-p,g=a.bottom-c.top+p;let y,b;"end"===t?(y=a.right-c.left-u.width,b=a.bottom-c.top-u.height):"center"===t?(y=a.left-c.left-(u.width-a.width)/2,b=a.top-c.top-(u.height-a.height)/2):(y=a.left-c.left,b=a.top-c.top),y+=d,b+=p;const w={...s,anchorRect:a,placeLeftX:h,placeRightX:m,placeLeftorRightY:b,placeTopY:v,placeBottomY:g,placeToporBottomX:y,arrowRef:l,arrow:e,direction:r,position:i};switch(r){case"left":case"right":return Q(w);default:return Z(w)}})({arrow:o,align:O,direction:C,gap:ee,shift:te,position:T,anchorRect:r,arrowRef:Le,positionHelpers:n});const{menuRect:p}=n;let h=p.height;if(!e&&"visible"!==A){const{getTopOverflow:e,getBottomOverflow:t}=n;let r,o;const i=Ae.current.height,a=t(c);if(a>0||R(a,0)&&R(h,i))r=h-a,o=a;else{const t=e(c);(t<0||R(t,0)&&R(h,i))&&(r=h+t,o=0-t,r>=0&&(c-=t))}r>=0?(h=r,ce({height:r,overflowAmt:o})):ce()}o&&se({x:i,y:l}),ae({x:s,y:c}),de(d),Ae.current={width:p.width,height:h}}),[o,O,ye,C,ee,te,T,A,a,u,f,ge,be,Fe]);s((()=>{Ne&&(He(),Me.current&&me()),Me.current=Ne,je.current=He}),[Ne,He,Ee]),s((()=>{ue&&!z&&(Ce.current.scrollTop=0)}),[ue,z]),s((()=>Re),[Re]),(0,n.useEffect)((()=>{let{menu:e}=Fe;if(!Ne||!e)return;if(e=e.addEventListener?e:window,!Fe.anchors){Fe.anchors=[];let t=B(we&&we.current);for(;t&&t!==e;)Fe.anchors.push(t),t=B(t)}let t=ke;if(Fe.anchors.length&&"initial"===t&&(t="auto"),"initial"===t)return;const r=()=>{"auto"===t?I((()=>He(!0))):D(ne,{reason:w.SCROLL})},n=Fe.anchors.concat("initial"!==ke?e:[]);return n.forEach((e=>e.addEventListener("scroll",r))),()=>n.forEach((e=>e.removeEventListener("scroll",r)))}),[we,Fe,Ne,ne,ke,He]);const Be=!!ue&&ue.overflowAmt>0;(0,n.useEffect)((()=>{if(Be||!Ne||!S)return;const e=()=>I(He),t=S.current;return t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}),[Ne,Be,S,He]),(0,n.useEffect)((()=>{if("function"!=typeof ResizeObserver||"initial"===xe)return;const e=new ResizeObserver((([e])=>{const{borderBoxSize:t,target:r}=e;let n,o;if(t){const{inlineSize:e,blockSize:r}=t[0]||t;n=e,o=r}else{const e=r.getBoundingClientRect();n=e.width,o=e.height}0!==n&&0!==o&&(R(n,Ae.current.width,1)&&R(o,Ae.current.height,1)||(0,j.flushSync)((()=>{je.current(),me()})))})),t=Ce.current;return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}),[xe]),(0,n.useEffect)((()=>{if(!Ne)return Ie(b.RESET),void(ze||ce());const{position:e,alwaysUpdate:t}=J||{},r=()=>{e===_.FIRST?Ie(b.FIRST):e===_.LAST?Ie(b.LAST):e>=-1&&Ie(b.SET_INDEX,void 0,e)};if(t)r();else if(V){const e=setTimeout((()=>{Ce.current.contains(document.activeElement)||(Te.current.focus(),r())}),De?170:100);return()=>clearTimeout(e)}}),[Ne,De,ze,V,J,Ie]);const We=(0,n.useMemo)((()=>({isParentOpen:Ne,submenuCtx:pe,dispatch:Ie,updateItems:Re})),[Ne,pe,Ie,Re]);let Ue,Ve;ue&&(z?Ve=ue.overflowAmt:Ue=ue.height);const qe=(0,n.useMemo)((()=>({reposSubmenu:he,submenuCtx:pe,overflow:A,overflowAmt:Ve,parentMenuRef:Ce,parentDir:fe})),[he,pe,A,Ve,fe]),$e=Ue>=0?{maxHeight:Ue,overflow:A}:void 0,Ge=(0,n.useMemo)((()=>({state:q,dir:fe})),[q,fe]),Ke=(0,n.useMemo)((()=>({dir:fe})),[fe]),Ye=M({block:c,element:"arrow",modifiers:Ke,className:i.className}),Qe=(0,l.jsxs)("ul",{role:"menu","aria-label":e,...W(X),...H({onPointerEnter:null==Oe?void 0:Oe.off,onPointerMove:e=>{e.stopPropagation(),pe.on(Se,(()=>{Ie(b.RESET),Te.current.focus()}))},onPointerLeave:e=>{e.target===e.currentTarget&&pe.off()},onKeyDown:e=>{switch(e.key){case y.HOME:Ie(b.FIRST);break;case y.END:Ie(b.LAST);break;case y.UP:Ie(b.DECREASE,Pe);break;case y.DOWN:Ie(b.INCREASE,Pe);break;case y.SPACE:return void(e.target&&-1!==e.target.className.indexOf(c)&&e.preventDefault());default:return}e.preventDefault(),e.stopPropagation()},onAnimationEnd:()=>{"closing"===q&&ce(),D($)}},oe),ref:L(x,Ce),className:M({block:c,modifiers:Ge,className:t}),style:{...r,...$e,margin:0,display:"closed"===q?"none":void 0,position:k,left:ie.x,top:ie.y},children:[(0,l.jsx)("li",{tabIndex:-1,style:{position:k,left:0,top:0,display:"block",outline:"none"},ref:Te,...E,...v}),o&&(0,l.jsx)("li",{...E,...i,className:Ye,style:{display:"block",position:k,left:le.x,top:le.y,...i.style},ref:Le}),(0,l.jsx)(h.Provider,{value:qe,children:(0,l.jsx)(p.Provider,{value:We,children:(0,l.jsx)(d.Provider,{value:Pe,children:D(re,Ge)})})})]});return m?(0,l.jsx)(G,{...m,isOpen:Ne,children:Qe}):Qe},J=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],ee=e=>({_s:e,status:J[e],isEnter:e<3,isMounted:6!==e,isResolved:2===e||e>4}),te=e=>e?6:5,re=(e,t,r,n,o)=>{clearTimeout(n.current);const i=ee(e);t(i),r.current=i,o&&o({current:i})},ne=({enter:e=!0,exit:t=!0,preEnter:r,preExit:o,timeout:i,initialEntered:a,mountOnEnter:l,unmountOnExit:s,onStateChange:u}={})=>{const[c,f]=(0,n.useState)((()=>ee(a?2:te(l)))),d=(0,n.useRef)(c),p=(0,n.useRef)(),[h,m]=(e=>"object"==typeof e?[e.enter,e.exit]:[e,e])(i),v=(0,n.useCallback)((()=>{const e=((e,t)=>{switch(e){case 1:case 0:return 2;case 4:case 3:return te(t)}})(d.current._s,s);e&&re(e,f,d,p,u)}),[u,s]),g=(0,n.useCallback)((n=>{const i=e=>{switch(re(e,f,d,p,u),e){case 1:h>=0&&(p.current=setTimeout(v,h));break;case 4:m>=0&&(p.current=setTimeout(v,m));break;case 0:case 3:p.current=((e,t)=>setTimeout((()=>{isNaN(document.body.offsetTop)||e(t+1)}),0))(i,e)}},a=d.current.isEnter;"boolean"!=typeof n&&(n=!a),n?!a&&i(e?r?0:1:2):a&&i(t?o?3:4:te(s))}),[v,u,e,t,r,o,h,m,s]);return(0,n.useEffect)((()=>()=>clearTimeout(p.current)),[]),[c,g,v]},oe=e=>{const[t,r]=(({initialOpen:e,initialMounted:t,unmountOnClose:r,transition:n,transitionTimeout:o=500}={})=>{const[{status:i},a,l]=ne({initialEntered:e,mountOnEnter:!t,unmountOnExit:r,timeout:o,enter:N(n,"open"),exit:N(n,"close")});return[{state:x[i],endTransition:l},a]})(e),[o,i]=(0,n.useState)();return[{menuItemFocus:o,...t},r,(e,t)=>{i({position:e,alwaysUpdate:t}),r(!0)}]},ie=(e,t)=>{const r=(0,n.useRef)(t);(0,n.useEffect)((()=>{r.current!==t&&D(e,{open:t}),r.current=t}),[e,t])},ae=A("SubMenu",(function({"aria-label":e,className:t,disabled:r,direction:o,label:i,openTrigger:a,onMenuChange:s,isHovering:d,instanceRef:m,itemRef:v,captureFocus:w,repositionFlag:x,itemProps:k={},...E}){const C=(0,n.useContext)(g),{rootMenuRef:T,submenuOpenDelay:A,submenuCloseDelay:R}=C,{parentMenuRef:N,parentDir:z,overflow:F}=(0,n.useContext)(h),{isParentOpen:B,submenuCtx:U,dispatch:V,updateItems:q}=(0,n.useContext)(p),$="visible"!==F,[G,K,Y]=oe(C),{state:Q}=G,Z=!!r,J=P(Q),ee=(0,n.useRef)(null),[te]=(0,n.useState)({v:0}),re=()=>{U.off(),te.v&&(clearTimeout(te.v),te.v=0)},ne=(...e)=>{re(),ae(),!Z&&Y(...e)},ae=()=>!d&&!Z&&V(b.SET,v.current),le=e=>{ae(),a||(te.v=setTimeout((()=>I(ne)),Math.max(e,0)))};u(Z,v,q),ie(s,J),(0,n.useEffect)((()=>U.toggle(J)),[U,J]),(0,n.useEffect)((()=>()=>clearTimeout(te.v)),[te]),(0,n.useEffect)((()=>{d&&B?v.current.focus():K(!1)}),[d,B,K,v]),(0,n.useImperativeHandle)(m,(()=>({openMenu:(...e)=>{B&&ne(...e)},closeMenu:()=>{J&&(v.current.focus(),K(!1))}})));const se=(0,n.useMemo)((()=>({open:J,hover:d,disabled:Z,submenu:!0})),[J,d,Z]),{ref:ue,className:ce,...fe}=k,de=H({onPointerEnter:U.off,onPointerMove:e=>{Z||(e.stopPropagation(),te.v||J||U.on(R,(()=>le(A-R)),(()=>le(A))))},onPointerLeave:()=>{re(),J||V(b.UNSET,v.current)},onKeyDown:e=>{if(d)switch(e.key){case y.ENTER:e.preventDefault();case y.SPACE:case y.RIGHT:"none"!==a&&ne(_.FIRST)}},onClick:()=>"none"!==a&&ne()},fe);return(0,l.jsxs)("li",{className:M({block:c,element:"submenu",className:t}),style:{position:"relative"},role:S,ref:ee,onKeyDown:e=>{let t=!1;switch(e.key){case y.LEFT:J&&(v.current.focus(),K(!1),t=!0);break;case y.RIGHT:J||(t=!0)}t&&(e.preventDefault(),e.stopPropagation())},children:[(0,l.jsx)("div",{role:O,"aria-haspopup":!0,"aria-expanded":J,...W(Z,d),...de,ref:L(ue,v),className:M({block:c,element:f,modifiers:se,className:ce}),children:(0,n.useMemo)((()=>D(i,se)),[i,se])}),Q&&(()=>{const t=(0,l.jsx)(X,{...E,...G,ariaLabel:e||("string"==typeof i?i:"Submenu"),anchorRef:v,containerRef:$?T:ee,direction:o||("right"===z||"left"===z?z:"right"),parentScrollingRef:$&&N,isDisabled:Z}),r=T.current;return $&&r?(0,j.createPortal)(t,r):t})()]})})),le=A("MenuItem",(function({className:e,value:t,href:r,type:o,checked:i,disabled:a,children:s,onClick:u,isHovering:d,itemRef:p,externalRef:h,...g}){const b=!!a,{setHover:w,..._}=C(p,p,d,b),x=(0,n.useContext)(m),k=(0,n.useContext)(v),E="radio"===o,T="checkbox"===o,A=!(!r||b||E||T),j=E?k.value===t:!!T&&!!i,P=e=>{if(b)return e.stopPropagation(),void e.preventDefault();const r={value:t,syntheticEvent:e};void 0!==e.key&&(r.key=e.key),T&&(r.checked=!j),E&&(r.name=k.name),D(u,r),E&&D(k.onRadioChange,r),x.handleClick(r,T||E)},I=(0,n.useMemo)((()=>({type:o,disabled:b,hover:d,checked:j,anchor:A})),[o,b,d,j,A]),R=H({..._,onPointerDown:w,onKeyDown:e=>{if(d)switch(e.key){case y.ENTER:e.preventDefault();case y.SPACE:A?p.current.click():P(e)}},onClick:P},g),N={role:E?"menuitemradio":T?"menuitemcheckbox":O,"aria-checked":E||T?j:void 0,...W(b,d),...R,ref:L(h,p),className:M({block:c,element:f,modifiers:I,className:e}),children:(0,n.useMemo)((()=>D(s,I)),[s,I])};return A?(0,l.jsx)("li",{role:S,children:(0,l.jsx)("a",{href:r,...N})}):(0,l.jsx)("li",{...N})})),se=(0,n.forwardRef)((function({"aria-label":e,className:t,containerProps:r,initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:s,boundingBoxRef:u,boundingBoxPadding:c,reposition:f="auto",submenuOpenDelay:d=300,submenuCloseDelay:p=150,viewScroll:h="initial",portal:v,theming:b,onItemClick:_,...x},k){const S=(0,n.useRef)(null),O=(0,n.useRef)({}),{anchorRef:E,state:C,onClose:T}=x,L=(0,n.useMemo)((()=>({initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:s,boundingBoxRef:u,boundingBoxPadding:c,rootMenuRef:S,rootAnchorRef:E,scrollNodesRef:O,reposition:f,viewScroll:h,submenuOpenDelay:d,submenuCloseDelay:p})),[o,i,a,s,E,u,c,f,h,d,p]),M=(0,n.useMemo)((()=>({handleClick(e,t){e.stopPropagation||D(_,e);let r=e.keepOpen;void 0===r&&(r=t&&e.key===y.SPACE),r||D(T,{value:e.value,key:e.key,reason:w.CLICK})},handleClose(e){D(T,{key:e,reason:w.CLICK})}})),[_,T]);if(!C)return null;const A=(0,l.jsx)(g.Provider,{value:L,children:(0,l.jsx)(m.Provider,{value:M,children:(0,l.jsx)(X,{...x,ariaLabel:e||"Menu",externalRef:k,containerRef:S,containerProps:{className:t,containerRef:S,containerProps:r,theming:b,transition:a,onClose:T}})})});return!0===v&&"undefined"!=typeof document?(0,j.createPortal)(A,document.body):v?v.target?(0,j.createPortal)(A,v.target):v.stablePosition?null:A:A})),ue=(0,n.forwardRef)((function({"aria-label":e,captureFocus:t,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:a,...s},u){const[c,f,d]=oe(s),{state:p}=c,h=P(p),m=(0,n.useRef)(null),v=((e,t)=>{const[r]=(0,n.useState)({});return{onMouseDown:()=>{r.v=e&&"closed"!==e},onClick:e=>r.v?r.v=!1:t(!0,e)}})(p,((e,t)=>d(t.detail?void 0:_.FIRST))),g=(0,n.useCallback)((e=>{f(!1),e.key&&m.current.focus()}),[f]),b=D(o,{open:h});if(!b||!b.type)throw new Error("Menu requires a menuButton prop.");const w={ref:L(b.ref,m),...H({onKeyDown:e=>{switch(e.key){case y.UP:d(_.LAST);break;case y.DOWN:d(_.FIRST);break;default:return}e.preventDefault()},...v},b.props)};"MenuButton"===b.type[z]&&(w.isOpen=h);const x=(0,n.cloneElement)(b,w);return ie(a,h),(0,n.useImperativeHandle)(i,(()=>({openMenu:d,closeMenu:()=>f(!1)}))),(0,l.jsxs)(n.Fragment,{children:[x,(0,l.jsx)(se,{...s,...c,"aria-label":e||("string"==typeof b.props.children?b.props.children:"Menu"),anchorRef:m,ref:u,onClose:g})]})}));var ce=r(3379),fe=r.n(ce),de=r(7795),pe=r.n(de),he=r(569),me=r.n(he),ve=r(3565),ge=r.n(ve),ye=r(9216),be=r.n(ye),we=r(4589),_e=r.n(we),xe=r(4202),ke={};ke.styleTagTransform=_e(),ke.setAttributes=ge(),ke.insert=me().bind(null,"head"),ke.domAPI=pe(),ke.insertStyleElement=be();fe()(xe.Z,ke);xe.Z&&xe.Z.locals&&xe.Z.locals;var Se=r(6789);function Oe(e){return Oe="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},Oe(e)}function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r10&&(n=f("main",r)),o().createElement(ae,{label:o().createElement(o().Fragment,null,o().createElement("span",{className:"szh-menu__item__name"},t.name),o().createElement(Se.default,{icon:"caret-solid-right"})),key:e,align:"center",position:"anchor"},i>10&&c(e),p(n,e))},p=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!t)return null;var n=t;return e.showSearchField&&(n=f("main",t)),Object.entries(n).map((function(t){var n=Le(t,2),i=n[0],a=n[1];return a.hasOwnProperty("items")?d(i,a):o().createElement(le,{type:"radio",value:i,key:i,onClick:function(t){return function(t,r,n){e.onSelect({parentValue:n||t.value,value:t.value,name:r.name})}(t,a,r)}},o().createElement("span",{className:"szh-menu__item__name"},(null==a?void 0:a.name)||a),i===e.value&&o().createElement(Se.default,{icon:"check"}))}))},h=function(e){if(e.target){var t=e.target.getBoundingClientRect().top,r=window.top.innerHeight;u(r-t<400?t>=400?"top":"left":null)}},m=a()({"et-fb-scrollable-menu":e.scrollableParentMenu,"et-fb-select-menu":!0});return o().createElement("div",{className:"et-fb-select-menu-container"},o().createElement(ue,{menuButton:e.useOriginalButton?e.button:o().createElement($,{onClick:h},e.button),portal:{target:window.top.document.body},menuClassName:m,containerProps:{style:{zIndex:2000001,position:"fixed"}},transition:{open:!0,close:!1,item:!1},submenuCloseDelay:0,submenuOpenDelay:0,initialOpen:!0,initialMounted:!1,viewScroll:"auto",align:"center",direction:s},e.showSearchField&&c("main"),p(e.options)))}},6823:(e,t,r)=>{"use strict";r.d(t,{Nr:()=>n,nY:()=>s,np:()=>l});var n=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:30,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:100,l=i(e,r,0,t.offset().top,t.parent().width(),n,30,30,o,a);return{position:{left:l.left,top:l.top},size:{width:l.width,height:l.height},flags:{fitsInBottomSpace:l.fitsInBottomSpace,fitsInBottomAndTopSpace:l.fitsInBottomAndTopSpace,fitsWithScroll:l.fitsWithScroll}}},o=function(e,t,r,n,o,i){var a=t<=Math.min(n,r-o)-i,l=t<=r-o-i,s=Math.max(o,e),u=t;return a||(l?(s-=t-(n-i),u=t):(s=o,u=r-o-i)),{position:s,size:u,fitsInAfterSpace:a,fitsInBeforeAndAfterSpace:l}},i=function(e,t,r,n,i,a){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:30,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:30,f=e.scrollLeft(),d=e.scrollTop(),p=e.width(),h=e.height(),m=p-((r=r>=f?r:f+l)-f),v=h-((n=n>=d?n:d+u)-d),g=t.parents().filter((function(){var e=jQuery(this).css("transform");return"none"!==e&&e.length>0})).first(),y=o(r-f,i,p,m,l,s),b=y.position,w=y.size,_=y.fitsInAfterSpace,x=y.fitsInBeforeAndAfterSpace,k=o(n-d,a,h,v,u,c),S=k.position,O=k.size,E=k.fitsInAfterSpace,C=k.fitsInBeforeAndAfterSpace;return g.length>0&&(b-=g.offset().left-f,S-=g.offset().top-d),{left:b,top:S,width:w,height:O,fitsInRightSpace:_,fitsInRightAndLeftSpace:x,fitsInBottomSpace:E,fitsInBottomAndTopSpace:C,fitsWithScroll:!E&&!C}},a=-1,l=function(){if(0e.document.body.clientHeight}},6516:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>$});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(418),s=r.n(l),u=r(6459),c=r(4480),f=r.n(c),d=r(5838),p=r.n(d),h=r(9070);function m(e){return m="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},m(e)}function v(e,t){for(var r=0;r0,i="et-common-scroll-lock--added-margin",a=parseInt(t.attr("data-et-common-scroll-lock-offset"))||0,l=t.find("#wpadminbar");if(o&&(0,j.nY)(window)){var s=(0,j.np)();t.addClass(i),t.css("margin".concat(n?"Left":"Right"),"".concat(s,"px")),l.length>0&&l.css("width","calc(100% - ".concat(s,"px)"))}!o&&t.hasClass(i)&&(t.removeClass(i),t.css("margin".concat(n?"Left":"Right"),""),l.length>0&&l.css("width","")),o&&0===a?t.attr("data-et-common-scroll-lock-offset",r.scrollTop()):o||0===a||(r.scrollTop(parseInt(t.attr("data-et-common-scroll-lock-offset"))||0),t.removeAttr("data-et-common-scroll-lock-offset")),t.toggleClass("et-common-scroll-lock",o)},e.getLocks=function(){return L()((C()("body").attr("data-et-common-scroll-locks")||"").split(","),(function(e){return!!e}))},e.setLocks=function(e){C()("body").attr("data-et-common-scroll-locks",e.join(","))},e.addLock=function(t){var r=e.getLocks();r.push(t),e.setLocks(A()(r))},e.removeLock=function(t){var r=e.getLocks();e.setLocks(L()(r,(function(e){return e!==t})))},z(e)))}return t=i,(r=[{key:"componentDidMount",value:function(){this.addLock(this.props.lockId),this.toggleBodyClass()}},{key:"componentDidUpdate",value:function(e){this.removeLock(e.lockId),this.addLock(this.props.lockId),this.toggleBodyClass()}},{key:"componentWillUnmount",value:function(){this.removeLock(this.props.lockId),this.toggleBodyClass()}},{key:"render",value:function(){return null}}])&&I(t.prototype,r),n&&I(t,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(n.PureComponent);H.propTypes={lockId:a().string.isRequired};const B=H;function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.innerWidth&&(r=e.innerWidth-t.width),t.bottom>e.innerHeight&&(n=e.innerHeight-t.height),t.left<0&&(r=0),t.top<0&&(n=0),r!==t.left||n!==t.top){var o=r-t.left,i=n-t.top,a=h.current.style.transform.replace(/translate\((.*)px, (.*)px\)/,(function(e,t,r){var n=parseInt(t,10)+o,a=parseInt(r,10)+i;return d({x:n,y:a}),"translate(".concat(n,"px, ").concat(a,"px)")}));h.current.style.transform=a}}};(0,n.useEffect)((function(){var e=localStorage.getItem("".concat(i,"_position"));e&&d(JSON.parse(e));var t=h.current,r=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting||v()}))}),{root:null,rootMargin:"0px",threshold:0});t&&r.observe(t);var n=new ResizeObserver((function(){v()}));return t&&n.observe(t),function(){t&&(r.unobserve(t),n.unobserve(t))}}),[]);var g=function(e,t){var r={x:t.lastX,y:t.lastY};localStorage.setItem("".concat(i,"_position"),JSON.stringify(r)),d(r)},y=function(){return o().createElement("div",{className:"et-common-prompt__container",ref:h},a)},b=f()({"et-common-prompt":!0,"et-common-prompt-draggable":l});return o().createElement("div",{className:b,ref:t},!l&&o().createElement("div",{className:"et-common-prompt__overlay"}),o().createElement(k,W({},m,{onRest:v}),(function(e){return o().createElement("div",{className:"et-common-prompt__modal",style:e},l&&o().createElement(p(),{handle:".react-draggable > .et-common-prompt__header",bounds:"parent",position:c,onStop:g},y()),!l&&y())})),o().createElement(B,{lockId:"common-prompt"}))}));q.propTypes={animation:a().bool,modalKey:a().oneOfType([a().string,a().number]),draggable:a().bool},q.defaultProps={animation:!0,modalKey:"",draggable:!1},q.Header=o().memo((function(e){var t=e.children,r=e.render,n=e.onBack,i=e.onClose,a=e.className,l=void 0===a?"":a,s=f()({"et-common-prompt__header":!0,"et-common-prompt__header-back":n})+" ".concat(l);return o().createElement("div",{className:s},(0,u.isFunction)(n)&&o().createElement(S.default,{className:"et-common-button--round",onClick:n},o().createElement(O.default,{icon:"back",color:"#ffffff"})),o().createElement("span",null,t),(0,u.isFunction)(r)&&r(),(0,u.isFunction)(i)&&o().createElement("div",{className:"et-common-prompt__header-actions"},o().createElement(S.default,{className:"et-common-button--round",onClick:i,"data-testid":"ClosePrompt"},o().createElement(O.default,{icon:"close",color:"#ffffff"}))))})),q.Content=o().memo((function(e){var t=e.style,r=e.children;return o().createElement("div",{className:"et-common-prompt__body"},o().createElement("div",{className:"et-common-prompt__content",style:t},r))})),q.Content.propTypes={style:a().object},q.Content.defaultProps={style:{}},q.Actions=o().memo((function(e){var t=e.children;return o().createElement("div",{className:"et-common-prompt__footer"},t)}));const $=q},9114:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>gr});var n=r(7363),o=r.n(n),i=r(1193),a=r.n(i),l=r(3324),s=r.n(l),u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),c=new Uint8Array(16);function f(){if(!u)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}for(var d=[],p=0;p<256;++p)d[p]=(p+256).toString(16).substr(1);const h=function(e,t){var r=t||0,n=d;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};const m=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||f)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||h(o)};function v(e,t){for(var r=0;rw},T=function(e){return function(e){var t=v[e].b;return m+t+b}(e)>_},L=function(e){return function(e){return O(e)<0}(e)||C(e)||function(e){return E(e)<0}(e)||T(e)},M=function(e){return!L(e)},A=["top","bottom","left","right"],j=[],P=0;P<4;P++){var F=A[P];M(F)&&j.push(F)}var H,B=!1,W=o!==n;return M(o)&&W?(B=!0,H=o):j.length>0&&L(o)&&L(n)&&(B=!0,H=j[0]),B?{isNewState:!0,newState:{place:H}}:{isNewState:!1,position:{left:parseInt(O(n)-S,10),top:parseInt(E(n)-k,10)}}}var I=function(e){var t=e.getBoundingClientRect(),r=t.height,n=t.width;return{height:parseInt(r,10),width:parseInt(n,10)}},R=function(e,t,r){var n=t.getBoundingClientRect(),o=n.top,i=n.left,a=I(t),l=a.width,s=a.height;return"float"===r?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+l/2,mouseY:o+s/2}},N=function(e,t,r,n,o){var i,a,l,s;return"float"===e?(i={l:-n/2,r:n/2,t:-(o+3+2),b:-3},l={l:-n/2,r:n/2,t:15,b:o+3+2+12},s={l:-(n+3+2),r:-3,t:-o/2,b:o/2},a={l:3,r:n+3+2,t:-o/2,b:o/2}):"solid"===e&&(i={l:-n/2,r:n/2,t:-(r/2+o+2),b:-r/2},l={l:-n/2,r:n/2,t:r/2,b:r/2+o+2},s={l:-(n+t/2+2),r:-t/2,t:-o/2,b:o/2},a={l:t/2,r:n+t/2+2,t:-o/2,b:o/2}),{top:i,bottom:l,left:s,right:a}},D=function(e){var t=0,r=0;for(var n in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===n?r-=parseInt(e[n],10):"bottom"===n?r+=parseInt(e[n],10):"left"===n?t-=parseInt(e[n],10):"right"===n&&(t+=parseInt(e[n],10));return{extraOffsetX:t,extraOffsetY:r}},z=function(e){for(var t=e;t;){var r=window.getComputedStyle(t);if("none"!==r.getPropertyValue("transform")||"transform"===r.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function F(e,t,r,n){if(t)return t;if(null!=r)return r;if(null===r)return null;var i=//;return n&&"false"!==n&&i.test(e)?e.split(i).map((function(e,t){return o().createElement("span",{key:t,className:"multi-line"},e)})):e}function H(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(r){t[r]=e[r]})),t}function B(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var W={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function U(e,t,r,n){return function(e,t){var r=t.text,n=t.background,o=t.border,i=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(r,";\n\t background: ").concat(n,";\n\t border: 1px solid ").concat(o,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(o,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(i,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(o,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(i,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(o,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(i,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(o,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(i,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,r){var n=e.text,o=e.background,i=e.border,a=e.arrow?e.arrow:e.background,l=function(e){return W[e]?_({},W[e]):void 0}(t);n&&(l.text=n);o&&(l.background=o);r&&(l.border=i||("light"===t?"black":"white"));a&&(l.arrow=a);return l}(t,r,n))}var V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function q(e,t){return e(t={exports:{}},t.exports),t.exports}var $=function(e){return e&&e.Math==Math&&e},G=$("object"==typeof globalThis&&globalThis)||$("object"==typeof window&&window)||$("object"==typeof self&&self)||$("object"==typeof V&&V)||function(){return this}()||Function("return this")(),K=function(e){try{return!!e()}catch(e){return!0}},Y=!K((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Q={}.propertyIsEnumerable,Z=Object.getOwnPropertyDescriptor,X={f:Z&&!Q.call({1:2},1)?function(e){var t=Z(this,e);return!!t&&t.enumerable}:Q},J=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ee={}.toString,te=function(e){return ee.call(e).slice(8,-1)},re="".split,ne=K((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==te(e)?re.call(e,""):Object(e)}:Object,oe=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},ie=function(e){return ne(oe(e))},ae=function(e){return"object"==typeof e?null!==e:"function"==typeof e},le=function(e,t){if(!ae(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!ae(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!ae(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!ae(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},se=function(e){return Object(oe(e))},ue={}.hasOwnProperty,ce=function(e,t){return ue.call(se(e),t)},fe=G.document,de=ae(fe)&&ae(fe.createElement),pe=function(e){return de?fe.createElement(e):{}},he=!Y&&!K((function(){return 7!=Object.defineProperty(pe("div"),"a",{get:function(){return 7}}).a})),me=Object.getOwnPropertyDescriptor,ve={f:Y?me:function(e,t){if(e=ie(e),t=le(t,!0),he)try{return me(e,t)}catch(e){}if(ce(e,t))return J(!X.f.call(e,t),e[t])}},ge=function(e){if(!ae(e))throw TypeError(String(e)+" is not an object");return e},ye=Object.defineProperty,be={f:Y?ye:function(e,t,r){if(ge(e),t=le(t,!0),ge(r),he)try{return ye(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},we=Y?function(e,t,r){return be.f(e,t,J(1,r))}:function(e,t,r){return e[t]=r,e},_e=function(e,t){try{we(G,e,t)}catch(r){G[e]=t}return t},xe="__core-js_shared__",ke=G[xe]||_e(xe,{}),Se=Function.toString;"function"!=typeof ke.inspectSource&&(ke.inspectSource=function(e){return Se.call(e)});var Oe,Ee,Ce,Te=ke.inspectSource,Le=G.WeakMap,Me="function"==typeof Le&&/native code/.test(Te(Le)),Ae=q((function(e){(e.exports=function(e,t){return ke[e]||(ke[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),je=0,Pe=Math.random(),Ie=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++je+Pe).toString(36)},Re=Ae("keys"),Ne=function(e){return Re[e]||(Re[e]=Ie(e))},De={},ze="Object already initialized",Fe=G.WeakMap;if(Me||ke.state){var He=ke.state||(ke.state=new Fe),Be=He.get,We=He.has,Ue=He.set;Oe=function(e,t){if(We.call(He,e))throw new TypeError(ze);return t.facade=e,Ue.call(He,e,t),t},Ee=function(e){return Be.call(He,e)||{}},Ce=function(e){return We.call(He,e)}}else{var Ve=Ne("state");De[Ve]=!0,Oe=function(e,t){if(ce(e,Ve))throw new TypeError(ze);return t.facade=e,we(e,Ve,t),t},Ee=function(e){return ce(e,Ve)?e[Ve]:{}},Ce=function(e){return ce(e,Ve)}}var qe,$e,Ge={set:Oe,get:Ee,has:Ce,enforce:function(e){return Ce(e)?Ee(e):Oe(e,{})},getterFor:function(e){return function(t){var r;if(!ae(t)||(r=Ee(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Ke=q((function(e){var t=Ge.get,r=Ge.enforce,n=String(String).split("String");(e.exports=function(e,t,o,i){var a,l=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||ce(o,"name")||we(o,"name",t),(a=r(o)).source||(a.source=n.join("string"==typeof t?t:""))),e!==G?(l?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=o:we(e,t,o)):s?e[t]=o:_e(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Te(this)}))})),Ye=G,Qe=function(e){return"function"==typeof e?e:void 0},Ze=function(e,t){return arguments.length<2?Qe(Ye[e])||Qe(G[e]):Ye[e]&&Ye[e][t]||G[e]&&G[e][t]},Xe=Math.ceil,Je=Math.floor,et=function(e){return isNaN(e=+e)?0:(e>0?Je:Xe)(e)},tt=Math.min,rt=function(e){return e>0?tt(et(e),9007199254740991):0},nt=Math.max,ot=Math.min,it=function(e){return function(t,r,n){var o,i=ie(t),a=rt(i.length),l=function(e,t){var r=et(e);return r<0?nt(r+t,0):ot(r,t)}(n,a);if(e&&r!=r){for(;a>l;)if((o=i[l++])!=o)return!0}else for(;a>l;l++)if((e||l in i)&&i[l]===r)return e||l||0;return!e&&-1}},at={includes:it(!0),indexOf:it(!1)}.indexOf,lt=function(e,t){var r,n=ie(e),o=0,i=[];for(r in n)!ce(De,r)&&ce(n,r)&&i.push(r);for(;t.length>o;)ce(n,r=t[o++])&&(~at(i,r)||i.push(r));return i},st=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ut=st.concat("length","prototype"),ct={f:Object.getOwnPropertyNames||function(e){return lt(e,ut)}},ft={f:Object.getOwnPropertySymbols},dt=Ze("Reflect","ownKeys")||function(e){var t=ct.f(ge(e)),r=ft.f;return r?t.concat(r(e)):t},pt=function(e,t){for(var r=dt(t),n=be.f,o=ve.f,i=0;i=74)&&(qe=St.match(/Chrome\/(\d+)/))&&($e=qe[1]);var Tt,Lt=$e&&+$e,Mt=!!Object.getOwnPropertySymbols&&!K((function(){return!String(Symbol())||!Symbol.sham&&Lt&&Lt<41})),At=Mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,jt=Ae("wks"),Pt=G.Symbol,It=At?Pt:Pt&&Pt.withoutSetter||Ie,Rt=function(e){return ce(jt,e)&&(Mt||"string"==typeof jt[e])||(Mt&&ce(Pt,e)?jt[e]=Pt[e]:jt[e]=It("Symbol."+e)),jt[e]},Nt=Rt("species"),Dt=function(e,t){var r;return kt(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!kt(r.prototype)?ae(r)&&null===(r=r[Nt])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},zt=[].push,Ft=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,l=5==e||i;return function(s,u,c,f){for(var d,p,h=se(s),m=ne(h),v=xt(u,c,3),g=rt(m.length),y=0,b=f||Dt,w=t?b(s,g):r||a?b(s,0):void 0;g>y;y++)if((l||y in m)&&(p=v(d=m[y],y,h),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:zt.call(w,d)}else switch(e){case 4:return!1;case 7:zt.call(w,d)}return i?-1:n||o?o:w}},Ht={forEach:Ft(0),map:Ft(1),filter:Ft(2),some:Ft(3),every:Ft(4),find:Ft(5),findIndex:Ft(6),filterOut:Ft(7)},Bt=Object.keys||function(e){return lt(e,st)},Wt=Y?Object.defineProperties:function(e,t){ge(e);for(var r,n=Bt(t),o=n.length,i=0;o>i;)be.f(e,r=n[i++],t[r]);return e},Ut=Ze("document","documentElement"),Vt="prototype",qt="script",$t=Ne("IE_PROTO"),Gt=function(){},Kt=function(e){return"<"+qt+">"+e+""},Yt=function(){try{Tt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Yt=Tt?function(e){e.write(Kt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Tt):(t=pe("iframe"),r="java"+qt+":",t.style.display="none",Ut.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Kt("document.F=Object")),e.close(),e.F);for(var n=st.length;n--;)delete Yt[Vt][st[n]];return Yt()};De[$t]=!0;var Qt=Object.create||function(e,t){var r;return null!==e?(Gt[Vt]=ge(e),r=new Gt,Gt[Vt]=null,r[$t]=e):r=Yt(),void 0===t?r:Wt(r,t)},Zt=Rt("unscopables"),Xt=Array.prototype;null==Xt[Zt]&&be.f(Xt,Zt,{configurable:!0,value:Qt(null)});var Jt,er,tr,rr,nr=Ht.find,or="find",ir=!0;or in[]&&Array(1)[or]((function(){ir=!1})),function(e,t){var r,n,o,i,a,l=e.target,s=e.global,u=e.stat;if(r=s?G:u?G[l]||_e(l,{}):(G[l]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=_t(r,n))&&a.value:r[n],!wt(s?n:l+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pt(i,o)}(e.sham||o&&o.sham)&&we(i,"sham",!0),Ke(r,n,i,e)}}({target:"Array",proto:!0,forced:ir},{find:function(e){return nr(this,e,arguments.length>1?arguments[1]:void 0)}}),Jt=or,Xt[Zt][Jt]=!0;var ar,lr=function(e){e.hide=function(e){E(O.HIDE,{target:e})},e.rebuild=function(){E(O.REBUILD)},e.show=function(e){E(O.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)}}}(er=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(O.HIDE,this.globalHide),window.addEventListener(O.HIDE,this.globalHide,!1),window.removeEventListener(O.REBUILD,this.globalRebuild),window.addEventListener(O.REBUILD,this.globalRebuild,!1),window.removeEventListener(O.SHOW,this.globalShow),window.addEventListener(O.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(O.HIDE,this.globalHide),window.removeEventListener(O.REBUILD,this.globalRebuild),window.removeEventListener(O.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(er=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=e.getAttribute("data-event")||n,a=e.getAttribute("data-event-off")||o;i.split(" ").forEach((function(r){e.removeEventListener(r,L.get(e,r));var n=C.bind(t,a);L.set(e,r,n),e.addEventListener(r,n,!1)})),a&&a.split(" ").forEach((function(r){e.removeEventListener(r,t.hideTooltip),e.addEventListener(r,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,r=t.event,n=t.eventOff,o=r||e.getAttribute("data-event"),i=n||e.getAttribute("data-event-off");e.removeEventListener(o,L.get(e,r)),i&&e.removeEventListener(i,this.hideTooltip)}}(er=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(er=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(er=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,r=this.state,n=r.event,o=r.eventOff,i=r.possibleCustomEvents,a=r.possibleCustomEventsOff,l=j(),s=A(e,"data-event"),u=A(e,"data-event-off");null!=n&&(s[n]=!0),null!=o&&(u[o]=!0),i.split(" ").forEach((function(e){return s[e]=!0})),a.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(l);var c=this.bodyModeListeners={};for(var f in null==n&&(c.mouseover=M.bind(this,this.showTooltip,{}),c.mousemove=M.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=M.bind(this,this.hideTooltip,{})),s)c[f]=M.bind(this,(function(e){var r=e.currentTarget.getAttribute("data-event-off")||o;C.call(t,r,e)}),{customEvent:!0});for(var d in u)c[d]=M.bind(this,this.hideTooltip,{customEvent:!0});for(var p in c)l.addEventListener(p,c[p])},e.prototype.unbindBodyListener=function(e){e=e||j();var t=this.bodyModeListeners;for(var r in t)e.removeEventListener(r,t[r])}}((rr=tr=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=S(this,x(t).call(this,e))).state={uuid:e.uuid||"t"+m(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:H(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},r.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),r.mount=!0,r.delayShowLoop=null,r.delayHideLoop=null,r.delayReshow=null,r.intervalUpdateContent=null,r}return 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}}),t&&k(e,t)}(t,e),g(t,null,[{key:"propTypes",get:function(){return{uuid:s().string,children:s().any,place:s().string,type:s().string,effect:s().string,offset:s().object,multiline:s().bool,border:s().bool,textColor:s().string,backgroundColor:s().string,borderColor:s().string,arrowColor:s().string,insecure:s().bool,class:s().string,className:s().string,id:s().string,html:s().bool,delayHide:s().number,delayUpdate:s().number,delayShow:s().number,event:s().string,eventOff:s().string,isCapture:s().bool,globalEventOff:s().string,getContent:s().any,afterShow:s().func,afterHide:s().func,overridePosition:s().func,disable:s().bool,scrollHide:s().bool,resizeHide:s().bool,wrapper:s().string,bodyMode:s().bool,possibleCustomEvents:s().string,possibleCustomEventsOff:s().string,clickable:s().bool}}}]),g(t,[{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,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),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,r=e.parentNode;r.parentNode;)r=r.parentNode;switch(r.constructor.name){case"Document":case"HTMLDocument":case void 0:t=r.head;break;default:t=r}if(!t.querySelector("style[data-react-tooltip]")){var n=document.createElement("style");n.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n padding: 8px 21px;\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 border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n bottom: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n border-left: 10px solid transparent;\n border-right: 10px solid transparent;\n top: -8px;\n left: 50%;\n margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n right: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n left: -8px;\n top: 50%;\n margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',n.setAttribute("data-react-tooltip","true"),t.appendChild(n)}}}},{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,r=[];if(e){var n=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(n,'"]')}else t="[data-tip]:not([data-for])";return B(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){r=r.concat(B(e.shadowRoot.querySelectorAll(t)))})),r.concat(B(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff,o=t.isCapture,i=this.getTargetArray(r);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 r=e.isCapture(t),n=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,r),t.addEventListener("focus",e.showTooltip,r),"float"===n&&t.addEventListener("mousemove",e.updateTooltip,r),t.addEventListener("mouseleave",e.hideTooltip,r),t.addEventListener("blur",e.hideTooltip,r))})),n&&(window.removeEventListener(n,this.hideTooltip),window.addEventListener(n,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,r=t.id,n=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(r).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),n&&window.removeEventListener(n,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,r=t.getContent,n=t.children;return r&&(e=Array.isArray(r)?r[0]&&r[0](this.state.originTooltip):r(this.state.originTooltip)),F(this.state.originTooltip,n,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 r=this.props,n=r.multiline,o=r.getContent,i=e.currentTarget.getAttribute("data-tip"),a=e.currentTarget.getAttribute("data-multiline")||n||!1,l=e instanceof window.FocusEvent||t,s=!0;e.currentTarget.getAttribute("data-scroll-hide")?s="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(s=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=l?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=P(e,e.currentTarget,this.tooltipRef,u,u,c,f);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,u,u,c,f));var p=d.isNewState?d.newState.place:u;this.clearTimer();var h=e.currentTarget,m=this.state.show?h.getAttribute("data-delay-update")||this.props.delayUpdate:0,v=this,g=function(){v.setState({originTooltip:i,isMultiline:a,desiredPlace:u,place:p,type:h.getAttribute("data-type")||v.props.type||"dark",customColors:{text:h.getAttribute("data-text-color")||v.props.textColor||null,background:h.getAttribute("data-background-color")||v.props.backgroundColor||null,border:h.getAttribute("data-border-color")||v.props.borderColor||null,arrow:h.getAttribute("data-arrow-color")||v.props.arrowColor||null},effect:c,offset:f,html:(h.getAttribute("data-html")?"true"===h.getAttribute("data-html"):v.props.html)||!1,delayShow:h.getAttribute("data-delay-show")||v.props.delayShow||0,delayHide:h.getAttribute("data-delay-hide")||v.props.delayHide||0,delayUpdate:h.getAttribute("data-delay-update")||v.props.delayUpdate||0,border:(h.getAttribute("data-border")?"true"===h.getAttribute("data-border"):v.props.border)||!1,extraClass:h.getAttribute("data-class")||v.props.class||v.props.className||"",disable:(h.getAttribute("data-tip-disable")?"true"===h.getAttribute("data-tip-disable"):v.props.disable)||!1,currentTarget:h},(function(){s&&v.addScrollListener(v.state.currentTarget),v.updateTooltip(e),o&&Array.isArray(o)&&(v.intervalUpdateContent=setInterval((function(){if(v.mount){var e=v.props.getContent,t=F(i,"",e[0](),a),r=v.isEmptyTip(t);v.setState({isEmptyTip:r}),v.updatePosition()}}),o[1]))}))};m?this.delayReshow=setTimeout(g,m):g()}}},{key:"updateTooltip",value:function(e){var t=this,r=this.state,n=r.delayShow,o=r.disable,i=this.props.afterShow,a=this.getTooltipContent(),l=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(a)&&!o){var s=this.state.show?0:parseInt(n,10),u=function(){if(Array.isArray(a)&&a.length>0||a){var r=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},(function(){t.updatePosition(),r&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),s?this.delayShowLoop=setTimeout(u,s):u()}}},{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 r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,i=n.isScroll?0:this.state.delayHide,a=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!o){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 s=function(){var t=r.state.show;r.mouseOnToolTip()?r.listenForTooltipExit():(r.removeListenerForTooltipExit(),r.setState({show:!1},(function(){r.removeScrollListener(r.state.currentTarget),t&&a&&a(e)})))};this.clearTimer(),i?this.delayHideLoop=setTimeout(s,parseInt(i,10)):s()}}},{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(){var e=this,t=this.state,r=t.currentEvent,n=t.currentTarget,o=t.place,i=t.desiredPlace,a=t.effect,l=t.offset,s=this.tooltipRef,u=P(r,n,s,o,i,a,l);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,r,n,s,o,i,a,l)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));s.style.left=u.position.left+"px",s.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{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,r=this.state,n=r.extraClass,i=r.html,a=r.ariaProps,l=r.disable,s=r.uuid,u=this.getTooltipContent(),c=this.isEmptyTip(u),f=U(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||l||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),p=this.props.wrapper;t.supportedWrappers.indexOf(p)<0&&(p=t.defaultProps.wrapper);var h=[d,n].filter(Boolean).join(" ");if(i){var m="".concat(u,'\n");return o().createElement(p,b({className:"".concat(h),id:this.props.id||s,ref:function(t){return e.tooltipRef=t}},a,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:m}}))}return o().createElement(p,b({className:"".concat(h),id:this.props.id||s},a,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),o().createElement("style",{dangerouslySetInnerHTML:{__html:f},"aria-hidden":"true"}),u)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.ariaProps,n=H(e);return Object.keys(n).some((function(e){return n[e]!==r[e]}))?_({},t,{ariaProps:n}):null}}]),t}(o().Component),y(tr,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),y(tr,"supportedWrappers",["div","span"]),y(tr,"displayName","ReactTooltip"),(ar=er=rr).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var r=new t((function(t){for(var r=0;r{!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n{"use strict";r.d(t,{Z:()=>l});var n=r(8081),o=r.n(n),i=r(3645),a=r.n(i)()(o());a.push([e.id,".yarl__fullsize{height:100%;width:100%}.yarl__relative{position:relative}.yarl__portal{bottom:0;left:0;opacity:0;overflow:hidden;position:fixed;right:0;top:0;transition:opacity var(--yarl__fade_animation_duration,.25s) var(--yarl__fade_animation_timing_function,ease);z-index:var(--yarl__portal_zindex,9999)}.yarl__portal_open{opacity:1}.yarl__container{background-color:var(--yarl__container_background_color,var(--yarl__color_backdrop,#000));bottom:0;left:0;outline:0;overflow:hidden;overscroll-behavior:var(--yarl__controller_overscroll-behavior,contain);position:absolute;right:0;top:0;touch-action:var(--yarl__controller_touch_action,none);-webkit-user-select:none;-moz-user-select:none;user-select:none}.yarl__carousel{align-content:center;align-items:stretch;display:flex;flex:0 0 auto;height:100%;justify-content:center;opacity:var(--yarl__pull_down_opacity,1);-webkit-transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_down_offset,0));transform:translate(var(--yarl__swipe_offset,0),var(--yarl__pull_down_offset,0));width:calc(100% + (var(--yarl__carousel_slides_count) - 1)*(100% + var(--yarl__carousel_spacing_px, 0)*1px + var(--yarl__carousel_spacing_percent, 0)*1%))}.yarl__carousel_with_slides{-webkit-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);-moz-column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%);column-gap:calc(var(--yarl__carousel_spacing_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_spacing_percent, 0)*1%)}.yarl__flex_center{align-content:center;align-items:center;display:flex;justify-content:center}.yarl__slide{flex:1;overflow:hidden;padding:calc(var(--yarl__carousel_padding_px, 0)*1px + 100/(var(--yarl__carousel_slides_count)*100 + (var(--yarl__carousel_slides_count) - 1)*var(--yarl__carousel_spacing_percent, 0))*var(--yarl__carousel_padding_percent, 0)*1%);position:relative}[dir=rtl] .yarl__slide{--yarl__direction:-1}.yarl__slide_image{-webkit-touch-callout:none;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain;touch-action:var(--yarl__controller_touch_action,none);-moz-user-select:none;user-select:none;-webkit-user-select:none}@media screen and (min-width:800px){.yarl__slide_image{-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);-webkit-transform-style:preserve-3d}}.yarl__slide_image_cover{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.yarl__slide_image_loading{opacity:0}.yarl__slide_placeholder{left:50%;line-height:0;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%)}.yarl__slide_loading{-webkit-animation:yarl__delayed_fadein 1s linear;animation:yarl__delayed_fadein 1s linear;color:var(--yarl__slide_icon_loading_color,var(--yarl__color_button,hsla(0,0%,100%,.8)))}.yarl__slide_loading line{-webkit-animation:yarl__stroke_opacity 1s linear infinite;animation:yarl__stroke_opacity 1s linear infinite}.yarl__slide_loading line:first-of-type{-webkit-animation-delay:-1.875s;animation-delay:-1.875s}.yarl__slide_loading line:nth-of-type(2){-webkit-animation-delay:-1.75s;animation-delay:-1.75s}.yarl__slide_loading line:nth-of-type(3){-webkit-animation-delay:-1.625s;animation-delay:-1.625s}.yarl__slide_loading line:nth-of-type(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s}.yarl__slide_loading line:nth-of-type(5){-webkit-animation-delay:-1.375s;animation-delay:-1.375s}.yarl__slide_loading line:nth-of-type(6){-webkit-animation-delay:-1.25s;animation-delay:-1.25s}.yarl__slide_loading line:nth-of-type(7){-webkit-animation-delay:-1.125s;animation-delay:-1.125s}.yarl__slide_loading line:nth-of-type(8){-webkit-animation-delay:-1s;animation-delay:-1s}.yarl__slide_error{color:var(--yarl__slide_icon_error_color,red);height:var(--yarl__slide_icon_error_size,48px);width:var(--yarl__slide_icon_error_size,48px)}@media (prefers-reduced-motion){.yarl__portal,.yarl__slide{transition:unset}.yarl__slide_loading,.yarl__slide_loading line{-webkit-animation:unset;animation:unset}}.yarl__toolbar{bottom:auto;display:flex;justify-content:flex-end;left:auto;padding:var(--yarl__toolbar_padding,8px);position:absolute;right:0;top:0}[dir=rtl] .yarl__toolbar{bottom:auto;left:0;right:auto;top:0}.yarl__icon{height:var(--yarl__icon_size,32px);width:var(--yarl__icon_size,32px)}.yarl__button{-webkit-tap-highlight-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--yarl__button_background_color,transparent);border:var(--yarl__button_border,0);color:var(--yarl__color_button,hsla(0,0%,100%,.8));cursor:pointer;-webkit-filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));filter:var(--yarl__button_filter,drop-shadow(2px 2px 2px rgba(0,0,0,.8)));line-height:0;margin:var(--yarl__button_margin,0);outline:none;padding:var(--yarl__button_padding,8px)}.yarl__button:focus{color:var(--yarl__color_button_active,#fff)}.yarl__button:focus:not(:focus-visible){color:var(--yarl__color_button,hsla(0,0%,100%,.8))}.yarl__button:focus-visible{color:var(--yarl__color_button_active,#fff)}@media (hover:hover){.yarl__button:focus-visible:hover,.yarl__button:focus:hover,.yarl__button:hover{color:var(--yarl__color_button_active,#fff)}}.yarl__button:disabled{color:var(--yarl__color_button_disabled,hsla(0,0%,100%,.4));cursor:default}.yarl__navigation_next,.yarl__navigation_prev{padding:var(--yarl__navigation_button_padding,24px 16px);position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.yarl__navigation_prev{left:0}[dir=rtl] .yarl__navigation_prev{left:unset;right:0;-webkit-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.yarl__navigation_next{right:0}[dir=rtl] .yarl__navigation_next{left:0;right:unset;-webkit-transform:translateY(-50%) rotate(180deg);transform:translateY(-50%) rotate(180deg)}.yarl__no_scroll{height:100%;overflow:hidden;overscroll-behavior:none}@-webkit-keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@keyframes yarl__delayed_fadein{0%{opacity:0}80%{opacity:0}to{opacity:1}}@-webkit-keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}@keyframes yarl__stroke_opacity{0%{stroke-opacity:1}to{stroke-opacity:.125}}",""]);const l=a},4202:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n=r(8081),o=r.n(n),i=r(3645),a=r.n(i)()(o());a.push([e.id,'@charset "UTF-8";\n.szh-menu {\n margin: 0;\n padding: 0;\n list-style: none;\n box-sizing: border-box;\n width: max-content;\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__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 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__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\n.szh-menu {\n user-select: none;\n color: #212529;\n border: none;\n border-radius: 0.25rem;\n box-shadow: 0 3px 7px rgba(0, 0, 0, 0.133), 0 0.6px 2px rgba(0, 0, 0, 0.1);\n min-width: 10rem;\n padding: 0.5rem 0;\n}\n.szh-menu__item {\n display: flex;\n align-items: center;\n position: relative;\n padding: 0.375rem 1.5rem;\n}\n.szh-menu-container--itemTransition .szh-menu__item {\n transition-property: background-color, color;\n transition-duration: 0.15s;\n transition-timing-function: ease-in-out;\n}\n.szh-menu__item--type-radio {\n padding-left: 2.2rem;\n}\n.szh-menu__item--type-radio::before {\n content: "\u25cb";\n position: absolute;\n left: 0.8rem;\n top: 0.55rem;\n font-size: 0.8rem;\n}\n.szh-menu__item--type-radio.szh-menu__item--checked::before {\n content: "\u25cf";\n}\n.szh-menu__item--type-checkbox {\n padding-left: 2.2rem;\n}\n.szh-menu__item--type-checkbox::before {\n position: absolute;\n left: 0.8rem;\n}\n.szh-menu__item--type-checkbox.szh-menu__item--checked::before {\n content: "\u2714";\n}\n.szh-menu__submenu > .szh-menu__item {\n padding-right: 2.5rem;\n}\n.szh-menu__submenu > .szh-menu__item::after {\n content: "\u276f";\n position: absolute;\n right: 1rem;\n}\n.szh-menu__header {\n color: #888;\n font-size: 0.8rem;\n padding: 0.2rem 1.5rem;\n text-transform: uppercase;\n}\n',""]);const l=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var l=0;l0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},8679:(e,t,r)=>{"use strict";var n=r(9864),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},l={};function s(e){return n.isMemo(e)?a:l[e.$$typeof]||o}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var a=c(r);f&&(a=a.concat(f(r)));for(var l=s(t),m=s(r),v=0;v{var n=r(1789),o=r(401),i=r(7667),a=r(1327),l=r(1866);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(7040),o=r(4125),i=r(2117),a=r(7518),l=r(4705);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),o=r(1285),i=r(6e3),a=r(9916),l=r(5265);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(5639).Symbol;e.exports=n},9932:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7786:(e,t,r)=>{var n=r(1811),o=r(327);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r{var n=r(2705),o=r(9607),i=r(2333),a=n?n.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)}},8458:(e,t,r)=>{var n=r(3560),o=r(5346),i=r(3218),a=r(346),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:l).test(a(e))}},531:(e,t,r)=>{var n=r(2705),o=r(9932),i=r(1469),a=r(3448),l=n?n.prototype:void 0,s=l?l.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 s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},1811:(e,t,r)=>{var n=r(1469),o=r(5403),i=r(5514),a=r(9833);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),o=r(7801);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5403:(e,t,r)=>{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),o=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4523:(e,t,r)=>{var n=r(8306);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:(e,t,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},5514:(e,t,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},327:(e,t,r)=>{var n=r(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},346: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""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,r)=>{var n=r(7786);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},1469:e=>{var t=Array.isArray;e.exports=t},3560:(e,t,r)=>{var n=r(4239),o=r(3218);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,r)=>{var n=r(4239),o=r(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},6486:function(e,t,r){e=r.nmd(e),function(){var n,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,s=32,u=64,c=128,f=256,d=1/0,p=9007199254740991,h=NaN,m=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",u],["rearg",f]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",_="[object Error]",x="[object Function]",k="[object GeneratorFunction]",S="[object Map]",O="[object Number]",E="[object Object]",C="[object Promise]",T="[object RegExp]",L="[object Set]",M="[object String]",A="[object Symbol]",j="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",H="[object Uint8Array]",B="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",V=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(G.source),Q=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ie=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Le="\\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",Me="['\u2019]",Ae="["+ke+"]",je="["+Le+"]",Pe="["+Se+"]",Ie="\\d+",Re="["+Oe+"]",Ne="["+Ee+"]",De="[^"+ke+Le+Ie+Oe+Ee+Ce+"]",ze="\\ud83c[\\udffb-\\udfff]",Fe="[^"+ke+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ce+"]",Ue="\\u200d",Ve="(?:"+Ne+"|"+De+")",qe="(?:"+We+"|"+De+")",$e="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+ze+")"+"?",Ye="["+Te+"]?",Qe=Ye+Ke+("(?:"+Ue+"(?:"+[Fe,He,Be].join("|")+")"+Ye+Ke+")*"),Ze="(?:"+[Re,He,Be].join("|")+")"+Qe,Xe="(?:"+[Fe+Pe+"?",Pe,He,Be,Ae].join("|")+")",Je=RegExp(Me,"g"),et=RegExp(Pe,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Qe,"g"),rt=RegExp([We+"?"+Ne+"+"+$e+"(?="+[je,We,"$"].join("|")+")",qe+"+"+Ge+"(?="+[je,We+Ve,"$"].join("|")+")",We+"?"+Ve+"+"+$e,We+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ze].join("|"),"g"),nt=RegExp("["+Ue+ke+Se+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["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"],at=-1,lt={};lt[R]=lt[N]=lt[D]=lt[z]=lt[F]=lt[H]=lt[B]=lt[W]=lt[U]=!0,lt[g]=lt[y]=lt[P]=lt[b]=lt[I]=lt[w]=lt[_]=lt[x]=lt[S]=lt[O]=lt[E]=lt[T]=lt[L]=lt[M]=lt[j]=!1;var st={};st[g]=st[y]=st[P]=st[I]=st[b]=st[w]=st[R]=st[N]=st[D]=st[z]=st[F]=st[S]=st[O]=st[E]=st[T]=st[L]=st[M]=st[A]=st[H]=st[B]=st[W]=st[U]=!0,st[_]=st[x]=st[j]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ft=parseInt,dt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,gt=vt&&vt.exports===mt,yt=gt&&dt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,_t=bt&&bt.isDate,xt=bt&&bt.isMap,kt=bt&&bt.isRegExp,St=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function Et(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ct(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o-1}function Pt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1;);return r}function rr(e,t){for(var r=e.length;r--&&Wt(t,e[r],0)>-1;);return r}var nr=Gt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ir(e){return"\\"+ut[e]}function ar(e){return nt.test(e)}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function sr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,i=[];++r",""":'"',"'":"'"});var vr=function e(t){var r,ae=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,it))).Array,ke=t.Date,Se=t.Error,Oe=t.Function,Ee=t.Math,Ce=t.Object,Te=t.RegExp,Le=t.String,Me=t.TypeError,Ae=ae.prototype,je=Oe.prototype,Pe=Ce.prototype,Ie=t["__core-js_shared__"],Re=je.toString,Ne=Pe.hasOwnProperty,De=0,ze=(r=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Pe.toString,He=Re.call(Ce),Be=ht._,We=Te("^"+Re.call(Ne).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=gt?t.Buffer:n,Ve=t.Symbol,qe=t.Uint8Array,$e=Ue?Ue.allocUnsafe:n,Ge=sr(Ce.getPrototypeOf,Ce),Ke=Ce.create,Ye=Pe.propertyIsEnumerable,Qe=Ae.splice,Ze=Ve?Ve.isConcatSpreadable:n,Xe=Ve?Ve.iterator:n,tt=Ve?Ve.toStringTag:n,nt=function(){try{var e=pi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=ke&&ke.now!==ht.Date.now&&ke.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,mt=Ee.ceil,vt=Ee.floor,yt=Ce.getOwnPropertySymbols,bt=Ue?Ue.isBuffer:n,Ft=t.isFinite,Gt=Ae.join,gr=sr(Ce.keys,Ce),yr=Ee.max,br=Ee.min,wr=ke.now,_r=t.parseInt,xr=Ee.random,kr=Ae.reverse,Sr=pi(t,"DataView"),Or=pi(t,"Map"),Er=pi(t,"Promise"),Cr=pi(t,"Set"),Tr=pi(t,"WeakMap"),Lr=pi(Ce,"create"),Mr=Tr&&new Tr,Ar={},jr=Fi(Sr),Pr=Fi(Or),Ir=Fi(Er),Rr=Fi(Cr),Nr=Fi(Tr),Dr=Ve?Ve.prototype:n,zr=Dr?Dr.valueOf:n,Fr=Dr?Dr.toString:n;function Hr(e){if(rl(e)&&!qa(e)&&!(e instanceof Vr)){if(e instanceof Ur)return e;if(Ne.call(e,"__wrapped__"))return Hi(e)}return new Ur(e)}var Br=function(){function e(){}return function(t){if(!tl(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function un(e,t,r,o,i,a){var l,s=1&t,u=2&t,c=4&t;if(r&&(l=i?r(e,o,i,a):r(e)),l!==n)return l;if(!tl(e))return e;var f=qa(e);if(f){if(l=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return Ao(e,l)}else{var d=vi(e),p=d==x||d==k;if(Ya(e))return Oo(e,s);if(d==E||d==g||p&&!i){if(l=u||p?{}:yi(e),!s)return u?function(e,t){return jo(e,mi(e),t)}(e,function(e,t){return e&&jo(t,Pl(t),e)}(l,e)):function(e,t){return jo(e,hi(e),t)}(e,on(l,e))}else{if(!st[d])return i?e:{};l=function(e,t,r){var n=e.constructor;switch(t){case P:return Eo(e);case b:case w:return new n(+e);case I:return function(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case N:case D:case z:case F:case H:case B:case W:case U:return Co(e,r);case S:return new n;case O:case M:return new n(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return new n;case A:return o=e,zr?Ce(zr.call(o)):{}}var o}(e,d,s)}}a||(a=new Yr);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(n){l.add(un(n,t,r,n,e,a))})):nl(e)&&e.forEach((function(n,o){l.set(o,un(n,t,r,o,e,a))}));var m=f?n:(c?u?ai:ii:u?Pl:jl)(e);return Tt(m||e,(function(n,o){m&&(n=e[o=n]),tn(l,o,un(n,t,r,o,e,a))})),l}function cn(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ce(e);o--;){var i=r[o],a=t[i],l=e[i];if(l===n&&!(i in e)||!a(l))return!1}return!0}function fn(e,t,r){if("function"!=typeof e)throw new Me(o);return ji((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,i=jt,a=!0,l=e.length,s=[],u=t.length;if(!l)return s;r&&(t=It(t,Xt(r))),n?(i=Pt,a=!1):t.length>=200&&(i=er,a=!1,t=new Kr(t));e:for(;++o-1},$r.prototype.set=function(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Or||$r),string:new qr}},Gr.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Gr.prototype.get=function(e){return fi(this,e).get(e)},Gr.prototype.has=function(e){return fi(this,e).has(e)},Gr.prototype.set=function(e,t){var r=fi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,i),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.clear=function(){this.__data__=new $r,this.size=0},Yr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Yr.prototype.get=function(e){return this.__data__.get(e)},Yr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $r){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gr(n)}return r.set(e,t),this.size=r.size,this};var pn=Ro(_n),hn=Ro(xn,!0);function mn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function vn(e,t,r){for(var o=-1,i=e.length;++o0&&r(l)?t>1?yn(l,t-1,r,n,o):Rt(o,l):n||(o[o.length]=l)}return o}var bn=No(),wn=No(!0);function _n(e,t){return e&&bn(e,t,jl)}function xn(e,t){return e&&wn(e,t,jl)}function kn(e,t){return At(t,(function(t){return Xa(e[t])}))}function Sn(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&rt}function Tn(e,t){return null!=e&&Ne.call(e,t)}function Ln(e,t){return null!=e&&t in Ce(e)}function Mn(e,t,r){for(var o=r?Pt:jt,i=e[0].length,a=e.length,l=a,s=ae(a),u=1/0,c=[];l--;){var f=e[l];l&&t&&(f=It(f,Xt(t))),u=br(f.length,u),s[l]=!r&&(t||i>=120&&f.length>=120)?new Kr(l&&f):n}f=e[0];var d=-1,p=s[0];e:for(;++d=l?s:s*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function $n(e,t,r){for(var n=-1,o=t.length,i={};++n-1;)l!==e&&Qe.call(l,s,1),Qe.call(e,s,1);return e}function Kn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;wi(o)?Qe.call(e,o,1):po(e,o)}}return e}function Yn(e,t){return e+vt(xr()*(t-e+1))}function Qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=vt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return Pi(Ti(e,t,os),e+"")}function Xn(e){return Zr(Bl(e))}function Jn(e,t){var r=Bl(e);return Ni(r,sn(t,0,r.length))}function eo(e,t,r,o){if(!tl(e))return e;for(var i=-1,a=(t=_o(t,e)).length,l=a-1,s=e;null!=s&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=ae(o);++n>>1,a=e[i];null!==a&&!ul(a)&&(r?a<=t:a=200){var u=t?null:Zo(e);if(u)return cr(u);a=!1,o=er,s=new Kr}else s=t?[]:l;e:for(;++n=o?e:oo(e,t,r)}var So=ut||function(e){return ht.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var r=e.length,n=$e?$e(r):new e.constructor(r);return e.copy(n),n}function Eo(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Co(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function To(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=ul(e),l=t!==n,s=null===t,u=t==t,c=ul(t);if(!s&&!c&&!a&&e>t||a&&l&&u&&!s&&!c||o&&l&&u||!r&&u||!i)return 1;if(!o&&!a&&!c&&e1?r[i-1]:n,l=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,l&&_i(r[0],r[1],l)&&(a=i<3?n:a,i=1),t=Ce(t);++o-1?i[a?t[l]:l]:n}}function Bo(e){return oi((function(t){var r=t.length,i=r,a=Ur.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Me(o);if(a&&!s&&"wrapper"==si(l))var s=new Ur([],!0)}for(i=s?i:r;++i1&&b.reverse(),d&&us))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&r?new Kr:n;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Tt(v,(function(r){var n="_."+r[0];t&r[1]&&!jt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(n),r)))}function Ri(e){var t=0,r=0;return function(){var o=wr(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ni(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function pa(e){var t=Hr(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ln(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vr&&wi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Ur(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var va=Po((function(e,t,r){Ne.call(e,r)?++e[r]:an(e,r,1)}));var ga=Ho(Vi),ya=Ho(qi);function ba(e,t){return(qa(e)?Tt:pn)(e,ci(t,3))}function wa(e,t){return(qa(e)?Lt:hn)(e,ci(t,3))}var _a=Po((function(e,t,r){Ne.call(e,r)?e[r].push(t):an(e,r,[t])}));var xa=Zn((function(e,t,r){var n=-1,o="function"==typeof t,i=Ga(e)?ae(e.length):[];return pn(e,(function(e){i[++n]=o?Et(t,e,r):An(e,t,r)})),i})),ka=Po((function(e,t,r){an(e,r,t)}));function Sa(e,t){return(qa(e)?It:Hn)(e,ci(t,3))}var Oa=Po((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Zn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_i(e,t[0],t[1])?t=[]:r>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,yn(t,1),[])})),Ca=dt||function(){return ht.Date.now()};function Ta(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Jo(e,c,n,n,n,n,t)}function La(e,t){var r;if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ma=Zn((function(e,t,r){var n=1;if(r.length){var o=ur(r,ui(Ma));n|=s}return Jo(e,n,t,r,o)})),Aa=Zn((function(e,t,r){var n=3;if(r.length){var o=ur(r,ui(Aa));n|=s}return Jo(t,n,e,r,o)}));function ja(e,t,r){var i,a,l,s,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Me(o);function m(t){var r=i,o=a;return i=a=n,f=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-f>=l}function g(){var e=Ca();if(v(e))return y(e);u=ji(g,function(e){var r=t-(e-c);return p?br(r,l-(e-f)):r}(e))}function y(e){return u=n,h&&i?m(e):(i=a=n,s)}function b(){var e=Ca(),r=v(e);if(i=arguments,a=this,c=e,r){if(u===n)return function(e){return f=e,u=ji(g,t),d?m(e):s}(c);if(p)return So(u),u=ji(g,t),m(c)}return u===n&&(u=ji(g,t)),s}return t=gl(t)||0,tl(r)&&(d=!!r.leading,l=(p="maxWait"in r)?yr(gl(r.maxWait)||0,t):l,h="trailing"in r?!!r.trailing:h),b.cancel=function(){u!==n&&So(u),f=0,i=c=a=u=n},b.flush=function(){return u===n?s:y(Ca())},b}var Pa=Zn((function(e,t){return fn(e,1,t)})),Ia=Zn((function(e,t,r){return fn(e,gl(t)||0,r)}));function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ra.Cache||Gr),r}function Na(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Gr;var Da=xo((function(e,t){var r=(t=1==t.length&&qa(t[0])?It(t[0],Xt(ci())):It(yn(t,1),Xt(ci()))).length;return Zn((function(n){for(var o=-1,i=br(n.length,r);++o=t})),Va=jn(function(){return arguments}())?jn:function(e){return rl(e)&&Ne.call(e,"callee")&&!Ye.call(e,"callee")},qa=ae.isArray,$a=wt?Xt(wt):function(e){return rl(e)&&En(e)==P};function Ga(e){return null!=e&&el(e.length)&&!Xa(e)}function Ka(e){return rl(e)&&Ga(e)}var Ya=bt||gs,Qa=_t?Xt(_t):function(e){return rl(e)&&En(e)==w};function Za(e){if(!rl(e))return!1;var t=En(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Xa(e){if(!tl(e))return!1;var t=En(e);return t==x||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ml(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rl(e){return null!=e&&"object"==typeof e}var nl=xt?Xt(xt):function(e){return rl(e)&&vi(e)==S};function ol(e){return"number"==typeof e||rl(e)&&En(e)==O}function il(e){if(!rl(e)||En(e)!=E)return!1;var t=Ge(e);if(null===t)return!0;var r=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Re.call(r)==He}var al=kt?Xt(kt):function(e){return rl(e)&&En(e)==T};var ll=St?Xt(St):function(e){return rl(e)&&vi(e)==L};function sl(e){return"string"==typeof e||!qa(e)&&rl(e)&&En(e)==M}function ul(e){return"symbol"==typeof e||rl(e)&&En(e)==A}var cl=Ot?Xt(Ot):function(e){return rl(e)&&el(e.length)&&!!lt[En(e)]};var fl=Ko(Fn),dl=Ko((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ga(e))return sl(e)?pr(e):Ao(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=vi(e);return(t==S?lr:t==L?cr:Bl)(e)}function hl(e){return e?(e=gl(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=hl(e),r=t%1;return t==t?r?t-r:t:0}function vl(e){return e?sn(ml(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(ul(e))return h;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var r=ve.test(e);return r||ye.test(e)?ft(e.slice(2),r?2:8):me.test(e)?h:+e}function yl(e){return jo(e,Pl(e))}function bl(e){return null==e?"":co(e)}var wl=Io((function(e,t){if(Oi(t)||Ga(t))jo(t,jl(t),e);else for(var r in t)Ne.call(t,r)&&tn(e,r,t[r])})),_l=Io((function(e,t){jo(t,Pl(t),e)})),xl=Io((function(e,t,r,n){jo(t,Pl(t),e,n)})),kl=Io((function(e,t,r,n){jo(t,jl(t),e,n)})),Sl=oi(ln);var Ol=Zn((function(e,t){e=Ce(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r1),t})),jo(e,ai(e),r),n&&(r=un(r,7,ri));for(var o=t.length;o--;)po(r,t[o]);return r}));var Dl=oi((function(e,t){return null==e?{}:function(e,t){return $n(e,t,(function(t,r){return Tl(e,r)}))}(e,t)}));function zl(e,t){if(null==e)return{};var r=It(ai(e),(function(e){return[e]}));return t=ci(t),$n(e,r,(function(e,r){return t(e,r[0])}))}var Fl=Xo(jl),Hl=Xo(Pl);function Bl(e){return null==e?[]:Jt(e,jl(e))}var Wl=zo((function(e,t,r){return t=t.toLowerCase(),e+(r?Ul(t):t)}));function Ul(e){return Zl(bl(e).toLowerCase())}function Vl(e){return(e=bl(e))&&e.replace(we,nr).replace(et,"")}var ql=zo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),$l=zo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Gl=Do("toLowerCase");var Kl=zo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Yl=zo((function(e,t,r){return e+(r?" ":"")+Zl(t)}));var Ql=zo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Zl=Do("toUpperCase");function Xl(e,t,r){return e=bl(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Jl=Zn((function(e,t){try{return Et(e,n,t)}catch(e){return Za(e)?e:new Se(e)}})),es=oi((function(e,t){return Tt(t,(function(t){t=zi(t),an(e,t,Ma(e[t],e))})),e}));function ts(e){return function(){return e}}var rs=Bo(),ns=Bo(!0);function os(e){return e}function is(e){return Nn("function"==typeof e?e:un(e,1))}var as=Zn((function(e,t){return function(r){return An(r,e,t)}})),ls=Zn((function(e,t){return function(r){return An(e,r,t)}}));function ss(e,t,r){var n=jl(t),o=kn(t,n);null!=r||tl(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=kn(t,jl(t)));var i=!(tl(r)&&"chain"in r&&!r.chain),a=Xa(e);return Tt(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Ao(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Rt([this.value()],arguments))})})),e}function us(){}var cs=qo(It),fs=qo(Mt),ds=qo(zt);function ps(e){return xi(e)?$t(zi(e)):function(e){return function(t){return Sn(t,e)}}(e)}var hs=Go(),ms=Go(!0);function vs(){return[]}function gs(){return!1}var ys=Vo((function(e,t){return e+t}),0),bs=Qo("ceil"),ws=Vo((function(e,t){return e/t}),1),_s=Qo("floor");var xs,ks=Vo((function(e,t){return e*t}),1),Ss=Qo("round"),Os=Vo((function(e,t){return e-t}),0);return Hr.after=function(e,t){if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){if(--e<1)return t.apply(this,arguments)}},Hr.ary=Ta,Hr.assign=wl,Hr.assignIn=_l,Hr.assignInWith=xl,Hr.assignWith=kl,Hr.at=Sl,Hr.before=La,Hr.bind=Ma,Hr.bindAll=es,Hr.bindKey=Aa,Hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Hr.chain=pa,Hr.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:yr(ml(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,l=ae(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:ml(o))<0&&(o+=i),o=r>o?0:vl(o);r>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=co(t))&&ar(e)?ko(pr(e),0,r):e.split(t,r):[]},Hr.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:yr(ml(t),0),Zn((function(r){var n=r[t],o=ko(r,0,t);return n&&Rt(o,n),Et(e,this,o)}))},Hr.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Hr.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:ml(t))<0?0:t):[]},Hr.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:ml(t)))<0?0:t,o):[]},Hr.takeRightWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!1,!0):[]},Hr.takeWhile=function(e,t){return e&&e.length?mo(e,ci(t,3)):[]},Hr.tap=function(e,t){return t(e),e},Hr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Me(o);return tl(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ja(e,t,{leading:n,maxWait:t,trailing:i})},Hr.thru=ha,Hr.toArray=pl,Hr.toPairs=Fl,Hr.toPairsIn=Hl,Hr.toPath=function(e){return qa(e)?It(e,zi):ul(e)?[e]:Ao(Di(bl(e)))},Hr.toPlainObject=yl,Hr.transform=function(e,t,r){var n=qa(e),o=n||Ya(e)||cl(e);if(t=ci(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:tl(e)&&Xa(i)?Br(Ge(e)):{}}return(o?Tt:_n)(e,(function(e,n,o){return t(r,e,n,o)})),r},Hr.unary=function(e){return Ta(e,1)},Hr.union=ra,Hr.unionBy=na,Hr.unionWith=oa,Hr.uniq=function(e){return e&&e.length?fo(e):[]},Hr.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Hr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},Hr.unset=function(e,t){return null==e||po(e,t)},Hr.unzip=ia,Hr.unzipWith=aa,Hr.update=function(e,t,r){return null==e?e:ho(e,t,wo(r))},Hr.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,wo(r),o)},Hr.values=Bl,Hr.valuesIn=function(e){return null==e?[]:Jt(e,Pl(e))},Hr.without=la,Hr.words=Xl,Hr.wrap=function(e,t){return za(wo(t),e)},Hr.xor=sa,Hr.xorBy=ua,Hr.xorWith=ca,Hr.zip=fa,Hr.zipObject=function(e,t){return yo(e||[],t||[],tn)},Hr.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Hr.zipWith=da,Hr.entries=Fl,Hr.entriesIn=Hl,Hr.extend=_l,Hr.extendWith=xl,ss(Hr,Hr),Hr.add=ys,Hr.attempt=Jl,Hr.camelCase=Wl,Hr.capitalize=Ul,Hr.ceil=bs,Hr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gl(r))==r?r:0),t!==n&&(t=(t=gl(t))==t?t:0),sn(gl(e),t,r)},Hr.clone=function(e){return un(e,4)},Hr.cloneDeep=function(e){return un(e,5)},Hr.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:n)},Hr.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:n)},Hr.conformsTo=function(e,t){return null==t||cn(e,t,jl(t))},Hr.deburr=Vl,Hr.defaultTo=function(e,t){return null==e||e!=e?t:e},Hr.divide=ws,Hr.endsWith=function(e,t,r){e=bl(e),t=co(t);var o=e.length,i=r=r===n?o:sn(ml(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Hr.eq=Ba,Hr.escape=function(e){return(e=bl(e))&&Q.test(e)?e.replace(K,or):e},Hr.escapeRegExp=function(e){return(e=bl(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},Hr.every=function(e,t,r){var o=qa(e)?Mt:mn;return r&&_i(e,t,r)&&(t=n),o(e,ci(t,3))},Hr.find=ga,Hr.findIndex=Vi,Hr.findKey=function(e,t){return Ht(e,ci(t,3),_n)},Hr.findLast=ya,Hr.findLastIndex=qi,Hr.findLastKey=function(e,t){return Ht(e,ci(t,3),xn)},Hr.floor=_s,Hr.forEach=ba,Hr.forEachRight=wa,Hr.forIn=function(e,t){return null==e?e:bn(e,ci(t,3),Pl)},Hr.forInRight=function(e,t){return null==e?e:wn(e,ci(t,3),Pl)},Hr.forOwn=function(e,t){return e&&_n(e,ci(t,3))},Hr.forOwnRight=function(e,t){return e&&xn(e,ci(t,3))},Hr.get=Cl,Hr.gt=Wa,Hr.gte=Ua,Hr.has=function(e,t){return null!=e&&gi(e,t,Tn)},Hr.hasIn=Tl,Hr.head=Gi,Hr.identity=os,Hr.includes=function(e,t,r,n){e=Ga(e)?e:Bl(e),r=r&&!n?ml(r):0;var o=e.length;return r<0&&(r=yr(o+r,0)),sl(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Wt(e,t,r)>-1},Hr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ml(r);return o<0&&(o=yr(n+o,0)),Wt(e,t,o)},Hr.inRange=function(e,t,r){return t=hl(t),r===n?(r=t,t=0):r=hl(r),function(e,t,r){return e>=br(t,r)&&e=-9007199254740991&&e<=p},Hr.isSet=ll,Hr.isString=sl,Hr.isSymbol=ul,Hr.isTypedArray=cl,Hr.isUndefined=function(e){return e===n},Hr.isWeakMap=function(e){return rl(e)&&vi(e)==j},Hr.isWeakSet=function(e){return rl(e)&&"[object WeakSet]"==En(e)},Hr.join=function(e,t){return null==e?"":Gt.call(e,t)},Hr.kebabCase=ql,Hr.last=Zi,Hr.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ml(r))<0?yr(o+i,0):br(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Bt(e,Vt,i,!0)},Hr.lowerCase=$l,Hr.lowerFirst=Gl,Hr.lt=fl,Hr.lte=dl,Hr.max=function(e){return e&&e.length?vn(e,os,Cn):n},Hr.maxBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Cn):n},Hr.mean=function(e){return qt(e,os)},Hr.meanBy=function(e,t){return qt(e,ci(t,2))},Hr.min=function(e){return e&&e.length?vn(e,os,Fn):n},Hr.minBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Fn):n},Hr.stubArray=vs,Hr.stubFalse=gs,Hr.stubObject=function(){return{}},Hr.stubString=function(){return""},Hr.stubTrue=function(){return!0},Hr.multiply=ks,Hr.nth=function(e,t){return e&&e.length?Vn(e,ml(t)):n},Hr.noConflict=function(){return ht._===this&&(ht._=Be),this},Hr.noop=us,Hr.now=Ca,Hr.pad=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return $o(vt(o),r)+e+$o(mt(o),r)},Hr.padEnd=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;return t&&nt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=xr();return br(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Yn(e,t)},Hr.reduce=function(e,t,r){var n=qa(e)?Nt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,pn)},Hr.reduceRight=function(e,t,r){var n=qa(e)?Dt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,hn)},Hr.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ml(t),Qn(bl(e),t)},Hr.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hr.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++op)return[];var r=m,n=br(e,m);t=ci(t),e-=m;for(var o=Qt(n,t);++r=a)return e;var s=r-dr(o);if(s<1)return o;var u=l?ko(l,0,s).join(""):e.slice(0,s);if(i===n)return u+o;if(l&&(s+=u.length-s),al(i)){if(e.slice(s).search(i)){var c,f=u;for(i.global||(i=Te(i.source,bl(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===n?s:d)}}else if(e.indexOf(co(i),s)!=s){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o},Hr.unescape=function(e){return(e=bl(e))&&Y.test(e)?e.replace(G,mr):e},Hr.uniqueId=function(e){var t=++De;return bl(e)+t},Hr.upperCase=Ql,Hr.upperFirst=Zl,Hr.each=ba,Hr.eachRight=wa,Hr.first=Gi,ss(Hr,(xs={},_n(Hr,(function(e,t){Ne.call(Hr.prototype,t)||(xs[t]=e)})),xs),{chain:!1}),Hr.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hr[e].placeholder=Hr})),Tt(["drop","take"],(function(e,t){Vr.prototype[e]=function(r){r=r===n?1:yr(ml(r),0);var o=this.__filtered__&&!t?new Vr(this):this.clone();return o.__filtered__?o.__takeCount__=br(r,o.__takeCount__):o.__views__.push({size:br(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Tt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Vr.prototype[e]=function(){return this[r](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Vr.prototype[e]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(os)},Vr.prototype.find=function(e){return this.filter(e).head()},Vr.prototype.findLast=function(e){return this.reverse().find(e)},Vr.prototype.invokeMap=Zn((function(e,t){return"function"==typeof e?new Vr(this):this.map((function(r){return An(r,e,t)}))})),Vr.prototype.reject=function(e){return this.filter(Na(ci(e)))},Vr.prototype.slice=function(e,t){e=ml(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ml(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vr.prototype.toArray=function(){return this.take(m)},_n(Vr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Hr[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Hr.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,s=t instanceof Vr,u=l[0],c=s||qa(t),f=function(e){var t=i.apply(Hr,Rt([e],l));return o&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=s&&!p;if(!a&&c){t=m?t:new Vr(this);var v=e.apply(t,l);return v.__actions__.push({func:ha,args:[f],thisArg:n}),new Ur(v,d)}return h&&m?e.apply(this,l):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Hr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[r]((function(r){return t.apply(qa(r)?r:[],e)}))}})),_n(Vr.prototype,(function(e,t){var r=Hr[t];if(r){var n=r.name+"";Ne.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:t,func:r})}})),Ar[Wo(n,2).name]=[{name:"wrapper",func:n}],Vr.prototype.clone=function(){var e=new Vr(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Vr.prototype.reverse=function(){if(this.__filtered__){var e=new Vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qa(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Hr.prototype.plant=function(e){for(var t,r=this;r instanceof Wr;){var o=Hi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vr){var t=e;return this.__actions__.length&&(t=new Vr(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:n}),new Ur(t,this.__chain__)}return this.thru(ta)},Hr.prototype.toJSON=Hr.prototype.valueOf=Hr.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Hr.prototype.first=Hr.prototype.head,Xe&&(Hr.prototype[Xe]=function(){return this}),Hr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ht._=vr,define((function(){return vr}))):vt?((vt.exports=vr)._=vr,mt._=vr):ht._=vr}.call(this)},8306:(e,t,r)=>{var n=r(3369);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},9833:(e,t,r)=>{var n=r(531);e.exports=function(e){return null==e?"":n(e)}},5091:(e,t,r)=>{"use strict";r.r(t)},2872:(e,t,r)=>{"use strict";r.r(t)},8039:(e,t,r)=>{"use strict";r.r(t)},937:(e,t,r)=>{"use strict";r.r(t)},4591:(e,t,r)=>{"use strict";r.r(t)},7147:(e,t,r)=>{"use strict";r.r(t)},2524:(e,t,r)=>{"use strict";r.r(t)},9518:(e,t,r)=>{"use strict";r.r(t)},3089:(e,t,r)=>{"use strict";r.r(t)},9860:(e,t,r)=>{"use strict";r.r(t)},1403:(e,t,r)=>{"use strict";r.r(t)},654:(e,t,r)=>{"use strict";r.r(t)},3347:(e,t,r)=>{"use strict";r.r(t)},3426:(e,t,r)=>{"use strict";r.r(t)},7259:(e,t,r)=>{"use strict";r.r(t)},75:function(e){(function(){var t,r,n,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},r=process.hrtime,o=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},2703:(e,t,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=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 l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={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 r.PropTypes=r,r}},5697:(e,t,r)=>{e.exports=r(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4087:(e,t,r)=>{for(var n=r(75),o="undefined"==typeof window?r.g:window,i=["moz","webkit"],a="AnimationFrame",l=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],u=0;!l&&u{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(r(7363)),o=e=>"checkbox"===e.type,i=e=>e instanceof Date,a=e=>null==e;const l=e=>"object"==typeof e;var s=e=>!a(e)&&!Array.isArray(e)&&l(e)&&!i(e),u=e=>s(e)&&e.target?o(e.target)?e.target.checked:e.target.value:e,c=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function d(e){let t;const r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(f&&(e instanceof Blob||e instanceof FileList)||!r&&!s(e))return e;if(t=r?[]:{},r||(e=>{const t=e.constructor&&e.constructor.prototype;return s(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const r in e)e.hasOwnProperty(r)&&(t[r]=d(e[r]));else t=e}return t}var p=e=>Array.isArray(e)?e.filter(Boolean):[],h=e=>void 0===e,m=(e,t,r)=>{if(!t||!s(e))return r;const n=p(t.split(/[,[\].]+?/)).reduce(((e,t)=>a(e)?e:e[t]),e);return h(n)||n===e?h(e[t])?r:e[t]:n};const v="blur",g="onChange",y="onSubmit",b="all",w="pattern",_="required",x=n.default.createContext(null),k=()=>n.default.useContext(x);var S=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==b&&(t._proxyFormState[o]=!n||b),r&&(r[o]=!0),e[o]}});return o},O=e=>s(e)&&!Object.keys(e).length,E=(e,t,r,n)=>{r(e);const{name:o,...i}=e;return O(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!n||b)))},C=e=>Array.isArray(e)?e:[e],T=(e,t,r)=>r&&t?e===t:!e||!t||e===t||C(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function L(e){const t=n.default.useRef(e);t.current=e,n.default.useEffect((()=>{const r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}}),[e.disabled])}function M(e){const t=k(),{control:r=t.control,disabled:o,name:i,exact:a}=e||{},[l,s]=n.default.useState(r._formState),u=n.default.useRef(!0),c=n.default.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),f=n.default.useRef(i);return f.current=i,L({disabled:o,next:e=>u.current&&T(f.current,e.name,a)&&E(e,c.current,r._updateFormState)&&s({...r._formState,...e}),subject:r._subjects.state}),n.default.useEffect((()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1})),[r]),S(l,r,c.current,!1)}var A=e=>"string"==typeof e,j=(e,t,r,n,o)=>A(e)?(n&&t.watch.add(e),m(r,e,o)):Array.isArray(e)?e.map((e=>(n&&t.watch.add(e),m(r,e)))):(n&&(t.watchAll=!0),r);function P(e){const t=k(),{control:r=t.control,name:o,defaultValue:i,disabled:a,exact:l}=e||{},s=n.default.useRef(o);s.current=o,L({disabled:a,subject:r._subjects.values,next:e=>{T(s.current,e.name,l)&&c(d(j(s.current,r._names,e.values||r._formValues,!1,i)))}});const[u,c]=n.default.useState(r._getWatch(o,i));return n.default.useEffect((()=>r._removeUnmounted())),u}var I=e=>/^\w*$/.test(e),R=e=>p(e.replace(/["|']|\]/g,"").split(/\.|\[/));function N(e,t,r){let n=-1;const o=I(t)?[t]:R(t),i=o.length,a=i-1;for(;++n{const e=o._options.shouldUnregister||i,t=(e,t)=>{const r=m(o._fields,e);r&&(r._f.mount=t)};if(t(r,!0),e){const e=d(m(o._options.defaultValues,r));N(o._defaultValues,r,e),h(m(o._formValues,r))&&N(o._formValues,r,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(r):t(r,!1)}}),[r,o,a,i]),{field:{name:r,value:l,onChange:n.default.useCallback((e=>f.current.onChange({target:{value:u(e),name:r},type:"change"})),[r]),onBlur:n.default.useCallback((()=>f.current.onBlur({target:{value:m(o._formValues,r),name:r},type:v})),[r,o]),ref:e=>{const t=m(o._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!m(s.errors,r)},isDirty:{enumerable:!0,get:()=>!!m(s.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!m(s.touchedFields,r)},error:{enumerable:!0,get:()=>m(s.errors,r)}})}}const z="post";var F=(e,t,r,n,o)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:o||!0}}:{};const H=(e,t,r)=>{for(const n of r||Object.keys(e)){const r=m(e,n);if(r){const{_f:e,...n}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else s(n)&&H(n,t)}}};var B=()=>{const e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const r=(16*Math.random()+e)%16|0;return("x"==t?r:3&r|8).toString(16)}))},W=(e,t,r={})=>r.shouldFocus||h(r.shouldFocus)?r.focusName||`${e}.${h(r.focusIndex)?t:r.focusIndex}.`:"",U=e=>({isOnSubmit:!e||e===y,isOnBlur:"onBlur"===e,isOnChange:e===g,isOnAll:e===b,isOnTouch:"onTouched"===e}),V=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),q=(e,t,r)=>{const n=p(m(e,r));return N(n,"root",t[r]),N(e,r,n),e},$=e=>"boolean"==typeof e,G=e=>"file"===e.type,K=e=>"function"==typeof e,Y=e=>{if(!f)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Q=e=>A(e),Z=e=>"radio"===e.type,X=e=>e instanceof RegExp;const J={value:!1,isValid:!1},ee={value:!0,isValid:!0};var te=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!h(e[0].attributes.value)?h(e[0].value)||""===e[0].value?ee:{value:e[0].value,isValid:!0}:ee:J}return J};const re={isValid:!1,value:null};var ne=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),re):re;function oe(e,t,r="validate"){if(Q(e)||Array.isArray(e)&&e.every(Q)||$(e)&&!e)return{type:r,message:Q(e)?e:"",ref:t}}var ie=e=>s(e)&&!X(e)?e:{value:e,message:""},ae=async(e,t,r,n,i)=>{const{ref:l,refs:u,required:c,maxLength:f,minLength:d,min:p,max:v,pattern:g,validate:y,name:b,valueAsNumber:x,mount:k,disabled:S}=e._f,E=m(t,b);if(!k||S)return{};const C=u?u[0]:l,T=e=>{n&&C.reportValidity&&(C.setCustomValidity($(e)?"":e||""),C.reportValidity())},L={},M=Z(l),j=o(l),P=M||j,I=(x||G(l))&&h(l.value)&&h(E)||Y(l)&&""===l.value||""===E||Array.isArray(E)&&!E.length,R=F.bind(null,b,r,L),N=(e,t,r,n="maxLength",o="minLength")=>{const i=e?t:r;L[b]={type:e?n:o,message:i,ref:l,...R(e?n:o,i)}};if(i?!Array.isArray(E)||!E.length:c&&(!P&&(I||a(E))||$(E)&&!E||j&&!te(u).isValid||M&&!ne(u).isValid)){const{value:e,message:t}=Q(c)?{value:!!c,message:c}:ie(c);if(e&&(L[b]={type:_,message:t,ref:C,...R(_,t)},!r))return T(t),L}if(!(I||a(p)&&a(v))){let e,t;const n=ie(v),o=ie(p);if(a(E)||isNaN(E)){const r=l.valueAsDate||new Date(E),i=e=>new Date((new Date).toDateString()+" "+e),a="time"==l.type,s="week"==l.type;A(n.value)&&E&&(e=a?i(E)>i(n.value):s?E>n.value:r>new Date(n.value)),A(o.value)&&E&&(t=a?i(E)n.value),a(o.value)||(t=r+e.value,o=!a(t.value)&&E.length<+t.value;if((n||o)&&(N(n,e.message,t.message),!r))return T(L[b].message),L}if(g&&!I&&A(E)){const{value:e,message:t}=ie(g);if(X(e)&&!E.match(e)&&(L[b]={type:w,message:t,ref:l,...R(w,t)},!r))return T(t),L}if(y)if(K(y)){const e=oe(await y(E,t),C);if(e&&(L[b]={...e,...R("validate",e.message)},!r))return T(e.message),L}else if(s(y)){let e={};for(const n in y){if(!O(e)&&!r)break;const o=oe(await y[n](E,t),C,n);o&&(e={...o,...R(n,o.message)},T(o.message),r&&(L[b]=e))}if(!O(e)&&(L[b]={ref:C,...e},!r))return L}return T(!0),L};function le(e,t){return[...e,...C(t)]}var se=e=>Array.isArray(e)?e.map((()=>{})):void 0;function ue(e,t,r){return[...e.slice(0,t),...C(r),...e.slice(t)]}var ce=(e,t,r)=>Array.isArray(e)?(h(e[r])&&(e[r]=void 0),e.splice(r,0,e.splice(t,1)[0]),e):[];function fe(e,t){return[...C(t),...C(e)]}var de=(e,t)=>h(t)?[]:function(e,t){let r=0;const n=[...e];for(const e of t)n.splice(e-r,1),r++;return p(n).length?n:[]}(e,C(t).sort(((e,t)=>e-t))),pe=(e,t,r)=>{e[t]=[e[r],e[r]=e[t]][0]};function he(e,t){const r=Array.isArray(t)?t:I(t)?[t]:R(t),n=1===r.length?e:function(e,t){const r=t.slice(0,-1).length;let n=0;for(;n(e[t]=r,e);function ve(){let e=[];return{get observers(){return e},next:t=>{for(const r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var ge=e=>a(e)||!l(e);function ye(e,t){if(ge(e)||ge(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){const r=e[o];if(!n.includes(o))return!1;if("ref"!==o){const e=t[o];if(i(r)&&i(e)||s(r)&&s(e)||Array.isArray(r)&&Array.isArray(e)?!ye(r,e):r!==e)return!1}}return!0}var be=e=>"select-multiple"===e.type,we=e=>Y(e)&&e.isConnected,_e=e=>{for(const t in e)if(K(e[t]))return!0;return!1};function xe(e,t={}){const r=Array.isArray(e);if(s(e)||r)for(const r in e)Array.isArray(e[r])||s(e[r])&&!_e(e[r])?(t[r]=Array.isArray(e[r])?[]:{},xe(e[r],t[r])):a(e[r])||(t[r]=!0);return t}function ke(e,t,r){const n=Array.isArray(e);if(s(e)||n)for(const n in e)Array.isArray(e[n])||s(e[n])&&!_e(e[n])?h(t)||ge(r[n])?r[n]=Array.isArray(e[n])?xe(e[n],[]):{...xe(e[n])}:ke(e[n],a(t)?{}:t[n],r[n]):r[n]=!ye(e[n],t[n]);return r}var Se=(e,t)=>ke(e,t,xe(t)),Oe=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>h(e)?e:t?""===e?NaN:e?+e:e:r&&A(e)?new Date(e):n?n(e):e;function Ee(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return G(t)?t.files:Z(t)?ne(e.refs).value:be(t)?[...t.selectedOptions].map((({value:e})=>e)):o(t)?te(e.refs).value:Oe(h(t.value)?e.ref.value:t.value,e)}var Ce=e=>h(e)?e:X(e)?e.source:s(e)?X(e.value)?e.value.source:e.value:e;function Te(e,t,r){const n=m(e,r);if(n||I(r))return{error:n,name:r};const o=r.split(".");for(;o.length;){const n=o.join("."),i=m(t,n),a=m(e,n);if(i&&!Array.isArray(i)&&r!==n)return{name:r};if(a&&a.type)return{name:n,error:a};o.pop()}return{name:r}}const Le={mode:y,reValidateMode:g,shouldFocusError:!0};function Me(e={},t){let r,n={...Le,...e},l={submitCount:0,isDirty:!1,isLoading:K(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},g={},y=(s(n.defaultValues)||s(n.values))&&d(n.defaultValues||n.values)||{},w=n.shouldUnregister?{}:d(y),_={action:!1,mount:!1,watch:!1},x={mount:new Set,unMount:new Set,array:new Set,watch:new Set},k=0;const S={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:ve(),array:ve(),state:ve()},T=e.resetOptions&&e.resetOptions.keepDirtyValues,L=U(n.mode),M=U(n.reValidateMode),P=n.criteriaMode===b,I=async e=>{if(S.isValid||e){const e=n.resolver?O((await B()).errors):await W(g,!0);e!==l.isValid&&E.state.next({isValid:e})}},R=e=>S.isValidating&&E.state.next({isValidating:e}),D=(e,t,r,n)=>{const o=m(g,e);if(o){const i=m(w,e,h(r)?m(y,e):r);h(i)||n&&n.defaultChecked||t?N(w,e,t?i:Ee(o._f)):J(e,i),_.mount&&I()}},z=(e,t,r,n,o)=>{let i=!1,a=!1;const s={name:e};if(!r||n){S.isDirty&&(a=l.isDirty,l.isDirty=s.isDirty=Q(),i=a!==s.isDirty);const r=ye(m(y,e),t);a=m(l.dirtyFields,e),r?he(l.dirtyFields,e):N(l.dirtyFields,e,!0),s.dirtyFields=l.dirtyFields,i=i||S.dirtyFields&&a!==!r}if(r){const t=m(l.touchedFields,e);t||(N(l.touchedFields,e,r),s.touchedFields=l.touchedFields,i=i||S.touchedFields&&t!==r)}return i&&o&&E.state.next(s),i?s:{}},F=(t,n,o,i)=>{const a=m(l.errors,t),s=S.isValid&&$(n)&&l.isValid!==n;var u;if(e.delayError&&o?(u=()=>((e,t)=>{N(l.errors,e,t),E.state.next({errors:l.errors})})(t,o),r=e=>{clearTimeout(k),k=setTimeout(u,e)},r(e.delayError)):(clearTimeout(k),r=null,o?N(l.errors,t,o):he(l.errors,t)),(o?!ye(a,o):a)||!O(i)||s){const e={...i,...s&&$(n)?{isValid:n}:{},errors:l.errors,name:t};l={...l,...e},E.state.next(e)}R(!1)},B=async e=>n.resolver(w,n.context,((e,t,r,n)=>{const o={};for(const r of e){const e=m(t,r);e&&N(o,r,e._f)}return{criteriaMode:r,names:[...e],fields:o,shouldUseNativeValidation:n}})(e||x.mount,g,n.criteriaMode,n.shouldUseNativeValidation)),W=async(e,t,r={valid:!0})=>{for(const o in e){const i=e[o];if(i){const{_f:e,...o}=i;if(e){const o=x.array.has(e.name),a=await ae(i,w,P,n.shouldUseNativeValidation&&!t,o);if(a[e.name]&&(r.valid=!1,t))break;!t&&(m(a,e.name)?o?q(l.errors,a,e.name):N(l.errors,e.name,a[e.name]):he(l.errors,e.name))}o&&await W(o,t,r)}}return r.valid},Q=(e,t)=>(e&&t&&N(w,e,t),!ye(oe(),y)),X=(e,t,r)=>j(e,x,{..._.mount?w:h(t)?y:A(e)?{[e]:t}:t},r,t),J=(e,t,r={})=>{const n=m(g,e);let i=t;if(n){const r=n._f;r&&(!r.disabled&&N(w,e,Oe(t,r)),i=Y(r.ref)&&a(t)?"":t,be(r.ref)?[...r.ref.options].forEach((e=>e.selected=i.includes(e.value))):r.refs?o(r.ref)?r.refs.length>1?r.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach((e=>e.checked=e.value===i)):G(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||E.values.next({name:e,values:{...w}})))}(r.shouldDirty||r.shouldTouch)&&z(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ne(e)},ee=(e,t,r)=>{for(const n in t){const o=t[n],a=`${e}.${n}`,l=m(g,a);!x.array.has(e)&&ge(o)&&(!l||l._f)||i(o)?J(a,o,r):ee(a,o,r)}},te=(e,r,n={})=>{const o=m(g,e),i=x.array.has(e),s=d(r);N(w,e,s),i?(E.array.next({name:e,values:{...w}}),(S.isDirty||S.dirtyFields)&&n.shouldDirty&&E.state.next({name:e,dirtyFields:Se(y,w),isDirty:Q(e,s)})):!o||o._f||a(s)?J(e,s,n):ee(e,s,n),V(e,x)&&E.state.next({...l}),E.values.next({name:e,values:{...w}}),!_.mount&&t()},re=async e=>{const t=e.target;let o=t.name,i=!0;const a=m(g,o);if(a){let c,f;const d=t.type?Ee(a._f):u(e),p=e.type===v||"focusout"===e.type,h=!((s=a._f).mount&&(s.required||s.min||s.max||s.maxLength||s.minLength||s.pattern||s.validate)||n.resolver||m(l.errors,o)||a._f.deps)||((e,t,r,n,o)=>!o.isOnAll&&(!r&&o.isOnTouch?!(t||e):(r?n.isOnBlur:o.isOnBlur)?!e:!(r?n.isOnChange:o.isOnChange)||e))(p,m(l.touchedFields,o),l.isSubmitted,M,L),y=V(o,x,p);N(w,o,d),p?(a._f.onBlur&&a._f.onBlur(e),r&&r(0)):a._f.onChange&&a._f.onChange(e);const b=z(o,d,p,!1),_=!O(b)||y;if(!p&&E.values.next({name:o,type:e.type,values:{...w}}),h)return S.isValid&&I(),_&&E.state.next({name:o,...y?{}:b});if(!p&&y&&E.state.next({...l}),R(!0),n.resolver){const{errors:e}=await B([o]),t=Te(l.errors,g,o),r=Te(e,g,t.name||o);c=r.error,o=r.name,f=O(e)}else c=(await ae(a,w,P,n.shouldUseNativeValidation))[o],i=isNaN(d)||d===m(w,o,d),i&&(c?f=!1:S.isValid&&(f=await W(g,!0)));i&&(a._f.deps&&ne(a._f.deps),F(o,f,c,b))}var s},ne=async(e,t={})=>{let r,o;const i=C(e);if(R(!0),n.resolver){const t=await(async e=>{const{errors:t}=await B();if(e)for(const r of e){const e=m(t,r);e?N(l.errors,r,e):he(l.errors,r)}else l.errors=t;return t})(h(e)?e:i);r=O(t),o=e?!i.some((e=>m(t,e))):r}else e?(o=(await Promise.all(i.map((async e=>{const t=m(g,e);return await W(t&&t._f?{[e]:t}:t)})))).every(Boolean),(o||l.isValid)&&I()):o=r=await W(g);return E.state.next({...!A(e)||S.isValid&&r!==l.isValid?{}:{name:e},...n.resolver||!e?{isValid:r}:{},errors:l.errors,isValidating:!1}),t.shouldFocus&&!o&&H(g,(e=>e&&m(l.errors,e)),e?i:x.mount),o},oe=e=>{const t={...y,..._.mount?w:{}};return h(e)?t:A(e)?m(t,e):e.map((e=>m(t,e)))},ie=(e,t)=>({invalid:!!m((t||l).errors,e),isDirty:!!m((t||l).dirtyFields,e),isTouched:!!m((t||l).touchedFields,e),error:m((t||l).errors,e)}),le=(e,t,r)=>{const n=(m(g,e,{_f:{}})._f||{}).ref;N(l.errors,e,{...t,ref:n}),E.state.next({name:e,errors:l.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},se=(e,t={})=>{for(const r of e?C(e):x.mount)x.mount.delete(r),x.array.delete(r),t.keepValue||(he(g,r),he(w,r)),!t.keepError&&he(l.errors,r),!t.keepDirty&&he(l.dirtyFields,r),!t.keepTouched&&he(l.touchedFields,r),!n.shouldUnregister&&!t.keepDefaultValue&&he(y,r);E.values.next({values:{...w}}),E.state.next({...l,...t.keepDirty?{isDirty:Q()}:{}}),!t.keepIsValid&&I()},ue=(e,t={})=>{let r=m(g,e);const i=$(t.disabled);return N(g,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),x.mount.add(e),r?i&&N(w,e,t.disabled?void 0:m(w,e,Ee(r._f))):D(e,!0,t.value),{...i?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:Ce(t.min),max:Ce(t.max),minLength:Ce(t.minLength),maxLength:Ce(t.maxLength),pattern:Ce(t.pattern)}:{},name:e,onChange:re,onBlur:re,ref:i=>{if(i){ue(e,t),r=m(g,e);const n=h(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=(e=>Z(e)||o(e))(n),l=r._f.refs||[];if(a?l.find((e=>e===n)):n===r._f.ref)return;N(g,e,{_f:{...r._f,...a?{refs:[...l.filter(we),n,...Array.isArray(m(y,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),D(e,!1,void 0,n)}else r=m(g,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!c(x.array,e)||!_.action)&&x.unMount.add(e)}}},ce=()=>n.shouldFocusError&&H(g,(e=>e&&m(l.errors,e)),x.mount),fe=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let o=d(w);if(E.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await B();l.errors=e,o=t}else await W(g);he(l.errors,"root"),O(l.errors)?(E.state.next({errors:{}}),await e(o,r)):(t&&await t({...l.errors},r),ce(),setTimeout(ce)),E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:O(l.errors),submitCount:l.submitCount+1,errors:l.errors})},de=(r,n={})=>{const o=r||y,i=d(o),a=r&&!O(r)?i:y;if(n.keepDefaultValues||(y=o),!n.keepValues){if(n.keepDirtyValues||T)for(const e of x.mount)m(l.dirtyFields,e)?N(a,e,m(w,e)):te(e,m(a,e));else{if(f&&h(r))for(const e of x.mount){const t=m(g,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Y(e)){const t=e.closest("form");if(t){t.reset();break}}}}g={}}w=e.shouldUnregister?n.keepDefaultValues?d(y):{}:d(a),E.array.next({values:{...a}}),E.values.next({values:{...a}})}x={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!_.mount&&t(),_.mount=!S.isValid||!!n.keepIsValid,_.watch=!!e.shouldUnregister,E.state.next({submitCount:n.keepSubmitCount?l.submitCount:0,isDirty:n.keepDirty?l.isDirty:!(!n.keepDefaultValues||ye(r,y)),isSubmitted:!!n.keepIsSubmitted&&l.isSubmitted,dirtyFields:n.keepDirtyValues?l.dirtyFields:n.keepDefaultValues&&r?Se(y,r):{},touchedFields:n.keepTouched?l.touchedFields:{},errors:n.keepErrors?l.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},pe=(e,t)=>de(K(e)?e(w):e,t);return{control:{register:ue,unregister:se,getFieldState:ie,handleSubmit:fe,setError:le,_executeSchema:B,_getWatch:X,_getDirty:Q,_updateValid:I,_removeUnmounted:()=>{for(const e of x.unMount){const t=m(g,e);t&&(t._f.refs?t._f.refs.every((e=>!we(e))):!we(t._f.ref))&&se(e)}x.unMount=new Set},_updateFieldArray:(e,t=[],r,n,o=!0,i=!0)=>{if(n&&r){if(_.action=!0,i&&Array.isArray(m(g,e))){const t=r(m(g,e),n.argA,n.argB);o&&N(g,e,t)}if(i&&Array.isArray(m(l.errors,e))){const t=r(m(l.errors,e),n.argA,n.argB);o&&N(l.errors,e,t),((e,t)=>{!p(m(e,t)).length&&he(e,t)})(l.errors,e)}if(S.touchedFields&&i&&Array.isArray(m(l.touchedFields,e))){const t=r(m(l.touchedFields,e),n.argA,n.argB);o&&N(l.touchedFields,e,t)}S.dirtyFields&&(l.dirtyFields=Se(y,w)),E.state.next({name:e,isDirty:Q(e,t),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else N(w,e,t)},_getFieldArray:t=>p(m(_.mount?w:y,t,e.shouldUnregister?m(y,t,[]):[])),_reset:de,_resetDefaultValues:()=>K(n.defaultValues)&&n.defaultValues().then((e=>{pe(e,n.resetOptions),E.state.next({isLoading:!1})})),_updateFormState:e=>{l={...l,...e}},_subjects:E,_proxyFormState:S,get _fields(){return g},get _formValues(){return w},get _state(){return _},set _state(e){_=e},get _defaultValues(){return y},get _names(){return x},set _names(e){x=e},get _formState(){return l},set _formState(e){l=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:ne,register:ue,handleSubmit:fe,watch:(e,t)=>K(e)?E.values.subscribe({next:r=>e(X(void 0,t),r)}):X(e,t,!0),setValue:te,getValues:oe,reset:pe,resetField:(e,t={})=>{m(g,e)&&(h(t.defaultValue)?te(e,m(y,e)):(te(e,t.defaultValue),N(y,e,t.defaultValue)),t.keepTouched||he(l.touchedFields,e),t.keepDirty||(he(l.dirtyFields,e),l.isDirty=t.defaultValue?Q(e,m(y,e)):Q()),t.keepError||(he(l.errors,e),S.isValid&&I()),E.state.next({...l}))},clearErrors:e=>{e&&C(e).forEach((e=>he(l.errors,e))),E.state.next({errors:e?l.errors:{}})},unregister:se,setError:le,setFocus:(e,t={})=>{const r=m(g,e),n=r&&r._f;if(n){const e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:ie}}t.Controller=e=>e.render(D(e)),t.Form=function(e){const t=k(),[r,o]=n.default.useState(!1),{control:i=t.control,onSubmit:a,children:l,action:s,method:u=z,headers:c,encType:f,onError:d,render:p,onSuccess:h,validateStatus:v,...g}=e,y=async t=>{let r=!1,n="";await i.handleSubmit((async e=>{const o=new FormData;let l="";try{l=JSON.stringify(e)}catch(e){}for(const t of i._names.mount)o.append(t,m(e,t));if(a&&a({data:e,event:t,method:u,formData:o,formDataJson:l}),s)try{const e=[c&&c["Content-Type"],f].some((e=>e&&e.includes("json"))),t=await fetch(s,{method:u,headers:{...c,...f?{"Content-Type":f}:{}},body:e?l:o});t&&(v?!v(t.status):t.status<200||t.status>=300)?(r=!0,d&&d({response:t}),n=String(t.status)):h&&h({response:t})}catch(e){r=!0,d&&d({error:e})}}))(t),r&&e.control&&(e.control._subjects.state.next({isSubmitSuccessful:!1}),e.control.setError("root.server",{type:n}))};return n.default.useEffect((()=>{o(!0)}),[]),p?n.default.createElement(n.default.Fragment,null,p({submit:y})):n.default.createElement("form",{noValidate:r,action:s,method:u,encType:f,onSubmit:y,...g},l)},t.FormProvider=e=>{const{children:t,...r}=e;return n.default.createElement(x.Provider,{value:r},t)},t.appendErrors=F,t.get=m,t.set=N,t.useController=D,t.useFieldArray=function(e){const t=k(),{control:r=t.control,name:o,keyName:i="id",shouldUnregister:a}=e,[l,s]=n.default.useState(r._getFieldArray(o)),u=n.default.useRef(r._getFieldArray(o).map(B)),c=n.default.useRef(l),f=n.default.useRef(o),p=n.default.useRef(!1);f.current=o,c.current=l,r._names.array.add(o),e.rules&&r.register(o,e.rules),L({next:({values:e,name:t})=>{if(t===f.current||!t){const t=m(e,f.current);Array.isArray(t)&&(s(t),u.current=t.map(B))}},subject:r._subjects.array});const h=n.default.useCallback((e=>{p.current=!0,r._updateFieldArray(o,e)}),[r,o]);return n.default.useEffect((()=>{if(r._state.action=!1,V(o,r._names)&&r._subjects.state.next({...r._formState}),p.current&&(!U(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([o]).then((e=>{const t=m(e.errors,o),n=m(r._formState.errors,o);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?N(r._formState.errors,o,t):he(r._formState.errors,o),r._subjects.state.next({errors:r._formState.errors}))}));else{const e=m(r._fields,o);e&&e._f&&ae(e,r._formValues,r._options.criteriaMode===b,r._options.shouldUseNativeValidation,!0).then((e=>!O(e)&&r._subjects.state.next({errors:q(r._formState.errors,e,o)})))}r._subjects.values.next({name:o,values:{...r._formValues}}),r._names.focus&&H(r._fields,(e=>!!e&&e.startsWith(r._names.focus||""))),r._names.focus="",r._updateValid()}),[l,o,r]),n.default.useEffect((()=>(!m(r._formValues,o)&&r._updateFieldArray(o),()=>{(r._options.shouldUnregister||a)&&r.unregister(o)})),[o,r,i,a]),{swap:n.default.useCallback(((e,t)=>{const n=r._getFieldArray(o);pe(n,e,t),pe(u.current,e,t),h(n),s(n),r._updateFieldArray(o,n,pe,{argA:e,argB:t},!1)}),[h,o,r]),move:n.default.useCallback(((e,t)=>{const n=r._getFieldArray(o);ce(n,e,t),ce(u.current,e,t),h(n),s(n),r._updateFieldArray(o,n,ce,{argA:e,argB:t},!1)}),[h,o,r]),prepend:n.default.useCallback(((e,t)=>{const n=C(d(e)),i=fe(r._getFieldArray(o),n);r._names.focus=W(o,0,t),u.current=fe(u.current,n.map(B)),h(i),s(i),r._updateFieldArray(o,i,fe,{argA:se(e)})}),[h,o,r]),append:n.default.useCallback(((e,t)=>{const n=C(d(e)),i=le(r._getFieldArray(o),n);r._names.focus=W(o,i.length-1,t),u.current=le(u.current,n.map(B)),h(i),s(i),r._updateFieldArray(o,i,le,{argA:se(e)})}),[h,o,r]),remove:n.default.useCallback((e=>{const t=de(r._getFieldArray(o),e);u.current=de(u.current,e),h(t),s(t),r._updateFieldArray(o,t,de,{argA:e})}),[h,o,r]),insert:n.default.useCallback(((e,t,n)=>{const i=C(d(t)),a=ue(r._getFieldArray(o),e,i);r._names.focus=W(o,e,n),u.current=ue(u.current,e,i.map(B)),h(a),s(a),r._updateFieldArray(o,a,ue,{argA:e,argB:se(t)})}),[h,o,r]),update:n.default.useCallback(((e,t)=>{const n=d(t),i=me(r._getFieldArray(o),e,n);u.current=[...i].map(((t,r)=>t&&r!==e?u.current[r]:B())),h(i),s([...i]),r._updateFieldArray(o,i,me,{argA:e,argB:n},!0,!1)}),[h,o,r]),replace:n.default.useCallback((e=>{const t=C(d(e));u.current=t.map(B),h([...t]),s([...t]),r._updateFieldArray(o,[...t],(e=>e),{},!0,!1)}),[h,o,r]),fields:n.default.useMemo((()=>l.map(((e,t)=>({...e,[i]:u.current[t]||B()})))),[l,i])}},t.useForm=function(e={}){const t=n.default.useRef(),[r,o]=n.default.useState({isDirty:!1,isValidating:!1,isLoading:K(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:K(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Me(e,(()=>o((e=>({...e}))))),formState:r});const i=t.current.control;return i._options=e,L({subject:i._subjects.state,next:e=>{E(e,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),n.default.useEffect((()=>{e.values&&!ye(e.values,i._defaultValues)?i._reset(e.values,i._options.resetOptions):i._resetDefaultValues()}),[e.values,i]),n.default.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),t.current.formState=S(r,i),t.current},t.useFormContext=k,t.useFormState=M,t.useWatch=P},9921:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case f:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case d:case v:case m:case s:return e;default:return t}}case o:return t}}}function x(e){return _(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=s,t.Element=n,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===l||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===s||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=_},9864:(e,t,r)=>{"use strict";e.exports=r(9921)},9144:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),l={},c={},d={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var v=t[m];if("number"==typeof v)d[m]=v,p[m]=0,l[m]=v,c[m]=0;else{for(var g=o.state.lastIdealStyle[m],y=o.state.lastIdealVelocity[m],b=0;b{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),l=[],c=[],d=[],p=[],m=0;m{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t10*m&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/m)*m)/m,l=Math.floor(o.accumulatedTime/m),u=g(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,r,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),f=u[0],p=u[1],h=u[2],y=u[3],b=u[4],w=0;w{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=0);return t},e.exports=t.default},5597:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n={},o=0;on[c])return-1;if(o>i[c]&&sn[c])return 1;if(a>i[c]&&l{"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},7727:(e,t,r)=>{"use strict";function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=r(9144);t.Motion=n(o);var i=r(6506);t.StaggeredMotion=n(i);var a=r(921);t.TransitionMotion=n(a);var l=r(124);t.spring=n(l);var s=r(2392);t.presets=n(s);var u=r(9483);t.stripStyle=n(u);var c=r(9566);t.reorderKeys=n(c)},9566:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},7739:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(0!==r[n])return!1;var o="number"==typeof t[n]?t[n]:t[n].val;if(e[n]!==o)return!1}return!0},e.exports=t.default},124:(e,t,r)=>{"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t{"use strict";t.__esModule=!0,t.default=function(e,t,n,o,i,a,l){var s=n+(-i*(t-o)+-a*n)*e,u=t+s*e;if(Math.abs(s){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]="number"==typeof e[r]?e[r]:e[r].val);return t},e.exports=t.default},4246:function(e){(function(){var t,r,n;"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()-n)/1e6},r=process.hrtime,n=(t=function(){var e;return 1e9*(e=r())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-n},n=Date.now()):(e.exports=function(){return(new Date).getTime()-n},n=(new Date).getTime())}).call(this)},6113:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Provider:()=>H,ReactReduxContext:()=>c,batch:()=>i.unstable_batchedUpdates,connect:()=>F,createDispatchHook:()=>U,createSelectorHook:()=>m,createStoreHook:()=>B,shallowEqual:()=>P,useDispatch:()=>V,useSelector:()=>v,useStore:()=>W});var n=r(1688),o=r(2798),i=r(1533);let a=function(e){e()};const l=()=>a;var s=r(7363),u=r.n(s);const c=(0,s.createContext)(null);function f(){return(0,s.useContext)(c)}const d=()=>{throw new Error("uSES not initialized!")};let p=d;const h=(e,t)=>e===t;function m(e=c){const t=e===c?f:()=>(0,s.useContext)(e);return function(e,r=h){const{store:n,subscription:o,getServerState:i}=t(),a=p(o.addNestedSub,n.getState,i||n.getState,e,r);return(0,s.useDebugValue)(a),a}}const v=m();function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[r]=e[r]);return o}var b=r(8679),w=r.n(b),_=r(2973);const x=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function k(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let l,s,u,c,f,d=!1;function p(d,p){const h=!i(p,s),m=!o(d,l,p,s);return l=d,s=p,h&&m?(u=e(l,s),t.dependsOnOwnProps&&(c=t(n,s)),f=r(u,c,s),f):h?(e.dependsOnOwnProps&&(u=e(l,s)),t.dependsOnOwnProps&&(c=t(n,s)),f=r(u,c,s),f):m?function(){const t=e(l,s),n=!a(t,u);return u=t,n&&(f=r(u,c,s)),f}():f}return function(o,i){return d?p(o,i):(l=o,s=i,u=e(l,s),c=t(n,s),f=r(u,c,s),d=!0,f)}}function S(e){return function(t){const r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function O(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function E(e,t){return function(t,{displayName:r}){const n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=O(e);let o=n(t,r);return"function"==typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=O(o),o=n(t,r)),o},n}}function C(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function T(e,t,r){return g({},r,e,t)}const L={notify(){},get:()=>[]};function M(e,t){let r,n=L;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){const e=l();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let n=!0,o=r={callback:e,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){n&&null!==t&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}const a={addNestedSub:function(e){return i(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=L)},getListeners:()=>n};return a}const A=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?s.useLayoutEffect:s.useEffect;function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function P(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n({})))}(e),m=function(e){return e&&"object"==typeof e?S((t=>function(e,t){const r={};for(const n in e){const o=e[n];"function"==typeof o&&(r[n]=(...e)=>t(o(...e)))}return r}(e,t))):e?"function"==typeof e?E(e):C(e,"mapDispatchToProps"):S((e=>({dispatch:e})))}(t),v=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:n}){let o,i=!1;return function(t,r,a){const l=e(t,r,a);return i?n(l,o)||(o=l):(i=!0,o=l),o}}}(e):C(e,"mergeProps"):()=>T}(r),b=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:b,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:h,initMapDispatchToProps:m,initMergeProps:v,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:l};function c(t){const[r,o,i]=(0,s.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,r=y(t,I);return[t.context,e,r]}),[t]),a=(0,s.useMemo)((()=>r&&r.Consumer&&(0,_.isContextConsumer)(u().createElement(r.Consumer,null))?r:p),[r,p]),l=(0,s.useContext)(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),f=Boolean(l)&&Boolean(l.store);const d=c?t.store:l.store,h=f?l.getServerState:d.getState,m=(0,s.useMemo)((()=>function(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:o}=t,i=y(t,x);return k(r(e,i),n(e,i),o(e,i),e,i)}(d.dispatch,n)),[d]),[v,w]=(0,s.useMemo)((()=>{if(!b)return N;const e=M(d,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,c,l]),S=(0,s.useMemo)((()=>c?l:g({},l,{subscription:v})),[c,l,v]),O=(0,s.useRef)(),E=(0,s.useRef)(i),C=(0,s.useRef)(),T=(0,s.useRef)(!1),L=((0,s.useRef)(!1),(0,s.useRef)(!1)),j=(0,s.useRef)();A((()=>(L.current=!0,()=>{L.current=!1})),[]);const P=(0,s.useMemo)((()=>()=>C.current&&i===E.current?C.current:m(d.getState(),i)),[d,i]),z=(0,s.useMemo)((()=>e=>v?function(e,t,r,n,o,i,a,l,s,u,c){if(!e)return()=>{};let f=!1,d=null;const p=()=>{if(f||!l.current)return;const e=t.getState();let r,p;try{r=n(e,o.current)}catch(e){p=e,d=e}p||(d=null),r===i.current?a.current||u():(i.current=r,s.current=r,a.current=!0,c())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}(b,d,v,m,E,O,T,L,C,w,e):()=>{}),[v]);var F,H,B;let W;F=D,H=[E,O,T,i,C,w],A((()=>F(...H)),B);try{W=R(z,P,h?()=>m(h(),i):P)}catch(e){throw j.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${j.current.stack}\n\n`),e}A((()=>{j.current=void 0,C.current=void 0,O.current=W}));const U=(0,s.useMemo)((()=>u().createElement(e,g({},W,{ref:o}))),[o,e,W]);return(0,s.useMemo)((()=>b?u().createElement(a.Provider,{value:S},U):U),[a,U,S])}const d=u().memo(c);if(d.WrappedComponent=e,d.displayName=c.displayName=r,f){const t=u().forwardRef((function(e,t){return u().createElement(d,g({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,w()(t,e)}return w()(d,e)}};const H=function({store:e,context:t,children:r,serverState:n}){const o=(0,s.useMemo)((()=>{const t=M(e);return{store:e,subscription:t,getServerState:n?()=>n:void 0}}),[e,n]),i=(0,s.useMemo)((()=>e.getState()),[e]);A((()=>{const{subscription:t}=o;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),i!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[o,i]);const a=t||c;return u().createElement(a.Provider,{value:o},r)};function B(e=c){const t=e===c?f:()=>(0,s.useContext)(e);return function(){const{store:e}=t();return e}}const W=B();function U(e=c){const t=e===c?W:B(e);return function(){return t().dispatch}}const V=U();var q,$;q=o.useSyncExternalStoreWithSelector,p=q,(e=>{R=e})(n.useSyncExternalStore),$=i.unstable_batchedUpdates,a=$},8359:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case l:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case m:case h:case s:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return g(e)===u}},2973:(e,t,r)=>{"use strict";e.exports=r(8359)},5251:(e,t,r)=>{"use strict";var n=r(7363),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},5893:(e,t,r)=>{"use strict";e.exports=r(5251)},4791:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n(t)?t:String(t)}function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;tf,md:()=>b,DE:()=>g,UY:()=>m,qC:()=>y,MT:()=>p,jB:()=>h});var u="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},f={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function d(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 p(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(s(1));return r(p)(e,t)}if("function"!=typeof e)throw new Error(s(2));var o=e,i=t,a=[],l=a,c=!1;function h(){l===a&&(l=a.slice())}function m(){if(c)throw new Error(s(3));return i}function v(e){if("function"!=typeof e)throw new Error(s(4));if(c)throw new Error(s(5));var t=!0;return h(),l.push(e),function(){if(t){if(c)throw new Error(s(6));t=!1,h();var r=l.indexOf(e);l.splice(r,1),a=null}}}function g(e){if(!d(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if(c)throw new Error(s(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=l,r=0;r{"use strict";r.d(t,{PW:()=>i});var n="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var r,i,a="object"==typeof t?t:{equalityCheck:t},l=a.equalityCheck,s=void 0===l?o:l,u=a.maxSize,c=void 0===u?1:u,f=a.resultEqualityCheck,d=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o-1){var i=r[o];return o>0&&(r.splice(o,1),r.unshift(i)),i.value}return n}return{get:o,put:function(t,i){o(t)===n&&(r.unshift({key:t,value:i}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(c,d);function h(){var t=p.get(arguments);if(t===n){if(t=e.apply(null,arguments),f){var r=p.getEntries().find((function(e){return f(e.value,t)}));r&&(t=r.value)}p.put(arguments,t)}return t}return h.clearCache=function(){return p.clear()},h}},2222:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;no});var o=n(r(4815).PW)},9543:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>x,SpinnerCircular:()=>h,SpinnerCircularFixed:()=>v,SpinnerCircularSplit:()=>y,SpinnerDiamond:()=>R,SpinnerDotted:()=>k,SpinnerInfinity:()=>w,SpinnerRomb:()=>I,SpinnerRound:()=>O,SpinnerRoundFilled:()=>A,SpinnerRoundOutlined:()=>T});var n=r(7363),o=r.n(n),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(3379),o=r.n(n),i=r(7795),a=r.n(i),l=r(569),s=r.n(l),u=r(3565),c=r.n(u),f=r(9216),d=r.n(f),p=r(4589),h=r.n(p),m=r(4925),v={};v.styleTagTransform=h(),v.setAttributes=c(),v.insert=s().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=d();o()(m.Z,v);const g=m.Z&&m.Z.locals?m.Z.locals:void 0},3379:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,r)=>{"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var o=void 0!==r.layer;o&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,o&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var i=r.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3250:(e,t,r)=>{"use strict";var n=r(7363);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,a=n.useEffect,l=n.useLayoutEffect,s=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),o=n[0].inst,c=n[1];return l((function(){o.value=r,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,r,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},139:(e,t,r)=>{"use strict";var n=r(7363),o=r(1688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=n.useRef,s=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!s){if(s=!0,a=e,e=n(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var r=n(e);return void 0!==o&&o(t,r)?t:(a=e,l=r)}var a,l,s=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,n,o]);var p=a(e,f[0],f[1]);return s((function(){d.hasValue=!0,d.value=p}),[p]),c(p),p}},1688:(e,t,r)=>{"use strict";e.exports=r(3250)},2798:(e,t,r)=>{"use strict";e.exports=r(139)},4480:e=>{!function(){"use strict";var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n{var t=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,r,n;try{t=Map}catch(e){t=function(){}}try{r=Set}catch(e){r=function(){}}try{n=Promise}catch(e){n=function(){}}function o(i,l,s,u,c){"object"==typeof l&&(s=l.depth,u=l.prototype,c=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===l&&(l=!0),void 0===s&&(s=1/0),function i(s,h){if(null===s)return null;if(0===h)return s;var m,v;if("object"!=typeof s)return s;if(e(s,t))m=new t;else if(e(s,r))m=new r;else if(e(s,n))m=new n((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(s))m=[];else if(o.__isRegExp(s))m=new RegExp(s.source,a(s)),s.lastIndex&&(m.lastIndex=s.lastIndex);else if(o.__isDate(s))m=new Date(s.getTime());else{if(p&&Buffer.isBuffer(s))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(m),m;e(s,Error)?m=Object.create(s):void 0===u?(v=Object.getPrototypeOf(s),m=Object.create(v)):(m=Object.create(u),v=u)}if(l){var g=f.indexOf(s);if(-1!=g)return d[g];f.push(s),d.push(m)}for(var y in e(s,t)&&s.forEach((function(e,t){var r=i(t,h-1),n=i(e,h-1);m.set(r,n)})),e(s,r)&&s.forEach((function(e){var t=i(e,h-1);m.add(t)})),s){var b;v&&(b=Object.getOwnPropertyDescriptor(v,y)),b&&null==b.set||(m[y]=i(s[y],h-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(s);for(y=0;y{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;to,default:()=>i});const i=o},6283:(e,t,r)=>{r(3458).defineExtension("colorpicker",(function(){var e,t,r,n,o,i,a,l,s,u,c,f,d,p,h,m,v,g,y,b,w,_,x,k,S,O,E,C,T,L,M,A,j,P,I,R,N,D,z,F=function(){return window.top},H={trim:function(e){return e.replace(/^\s+|\s+$/g,"")},format:function(e,t){if("hex"==t){var r=e.r.toString(16);e.r<16&&(r="0"+r);var n=e.g.toString(16);e.g<16&&(n="0"+n);var o=e.b.toString(16);return e.b<16&&(o="0"+o),"#"+[r,n,o].join("")}return"rgb"==t?void 0===e.a?"rgb("+[e.r,e.g,e.b].join(",")+")":"rgba("+[e.r,e.g,e.b,e.a].join(",")+")":"hsl"==t?void 0===e.a?"hsl("+[e.h,e.s+"%",e.l+"%"].join(",")+")":"hsla("+[e.h,e.s+"%",e.l+"%",e.a].join(",")+")":e},parse:function(e){if("string"==typeof e){if(e.indexOf("rgb(")>-1){for(var t=0,r=(i=e.replace("rgb(","").replace(")","").split(",")).length;t-1){for(t=0,r=(i=e.replace("rgba(","").replace(")","").split(",")).length;t-1){for(t=0,r=(i=e.replace("hsl(","").replace(")","").split(",")).length;t-1){for(t=0,r=(i=e.replace("hsla(","").replace(")","").split(",")).length;t.5?s/(2-i-a):s/(i+a),i){case e:n=(t-r)/s+(t1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},HSLtoRGB:function(e,t,r){var n,o,i;if(e/=360,r/=100,0==(t/=100))n=o=i=r;else{var a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;n=this.HUEtoRGB(l,a,e+1/3),o=this.HUEtoRGB(l,a,e),i=this.HUEtoRGB(l,a,e-1/3)}return{r:255*n,g:255*o,b:255*i}}},B=[{rgb:"#ff0000",start:0},{rgb:"#ffff00",start:.17},{rgb:"#00ff00",start:.33},{rgb:"#00ffff",start:.5},{rgb:"#0000ff",start:.67},{rgb:"#ff00ff",start:.83},{rgb:"#ff0000",start:1}],W=(de(),function(){}),U=0,V={},q=!1,$=!1,G=2e3,K={},Y=[{name:"Material",edit:!0,colors:["#fff","#f00","#0ff","#f0f","#fff","#f00","#0ff","#f0f","#fff","#f00","#0ff","#f0f"]},{name:"Custom",edit:!0,colors:[]},{name:"Pages",edit:!0,colors:["#fff","#f00","#0ff","#f0f"]}];function Q(e,t,r){if("string"!=typeof e)this.el=e;else{var n=F().document.createElement(e);for(var o in this.uniqId=U++,n.className=t,r=r||{})n.setAttribute(o,r[o]);this.el=n}}function Z(e,t,r){M.val(e),A.val(t),j.val(r),P.val(O)}function X(e,t,r){I.val(e),R.val(t+"%"),N.val(r+"%"),D.val(O)}function J(){return H.format({r:M.int(),g:A.int(),b:j.int()},"hex")}function ee(){return H.HSVtoRGB(E,C,T)}function te(){return H.format(ee(),"hex")}function re(){var e=H.HSVtoRGB(E,C,T);return H.RGBtoHSL(e.r,e.g,e.b)}function ne(e){if("rgb"==(e=e||"hex"))return(r=ee()).a=1==O?void 0:O,H.format(r,"rgb");if("hsl"==e){var t=re();return t.a=1==O?void 0:O,H.format(t,"hsl")}var r=ee();return H.format(r,"hex")}function oe(e){c.css("background-color",e)}function ie(){var e=g.data("format")||"hex",t=null;if("hex"==e)L.val(te());else if("rgb"==e)Z((t=ee()).r,t.g,t.b);else if("hsl"==e){var r=re();X(r.h,r.s,r.l)}oe(ne("rgb")),t=ee(),pe(H.format(t,"rgb")),"function"==typeof W&&(isNaN(O)||W(ne(e)))}function ae(e){e.preventDefault();var r=t.position(),o=n.width(),i=n.height(),l=e.clientX-r.left,s=e.clientY-r.top;l<0?l=0:l>o&&(l=o),s<0?s=0:s>i&&(s=i),a.css({left:l-5+"px",top:s-5+"px"}),a.data("pos",{x:l,y:s}),ve(),ie()}function le(e,t,r){var n={r:parseInt(e.r+(t.r-e.r)*r,10),g:parseInt(e.g+(t.g-e.g)*r,10),b:parseInt(e.b+(t.b-e.b)*r,10)};return H.format(n,"hex")}function se(e){for(var t,r,n=0;n=e){t=B[n-1],r=B[n];break}return t&&r?le(t,r,(e-t.start)/(r.start-t.start)):B[0].rgb}function ue(e){n.css("background-color",e)}function ce(e){E=e}function fe(e){var t,r=f.offset().left,n=r+f.width(),o=e?ge(e).clientX:r+E/360*(n-r);t=on?100:(o-r)/(n-r)*100;var i=f.width()*(t/100);l.css({left:i-Math.ceil(l.width()/2)+"px"}),l.data("pos",{x:i}),ue(se(t/100)),ce(t/100*360),ie()}function de(){for(var e="",t=["","-o-","-ms-","-moz-","-webkit-"],r=F().document.createElement("div"),n=0;nn?100:(o-r)/(n-r)*100;var i=p.width()*(t/100);v.css({left:i-Math.ceil(v.width()/2)+"px"}),v.data("pos",{x:i}),me(),ze(),ie()}function me(){var e=v.data("pos")||{x:0},t=Math.round(e.x/p.width()*100)/100;O=isNaN(t)?1:t}function ve(){var e=a.data("pos")||{x:0,y:0},t=l.data("pos")||{x:0},r=n.width(),o=n.height(),i=t.x/f.width()*360,s=e.x/r,u=(o-e.y)/o;0==r&&(i=0,s=0,u=0),E=i,C=s,T=u}function ge(e){return e.touches&&e.touches[0]?e.touches[0]:e}function ye(e){var t=e.which,r=!1;return 37!=t&&39!=t&&8!=t&&46!=t&&9!=t||(r=!0),!(!r&&(t<48||t>57))}function be(e){var t=M.val(),r=A.val(),n=j.val();""!=t&&""!=r&&""!=n&&(parseInt(t)>255?M.val(255):M.val(parseInt(t)),parseInt(r)>255?A.val(255):A.val(parseInt(r)),parseInt(n)>255?j.val(255):j.val(parseInt(n)),ke(J()))}function we(){var e=n.width()*C,t=n.height()*(1-T);a.css({left:e-5+"px",top:t-5+"px"}),a.data("pos",{x:e,y:t});var r=f.width()*(E/360);l.css({left:r-7.5+"px"}),l.data("pos",{x:r});var o=p.width()*(O||0);v.css({left:o-7.5+"px"}),v.data("pos",{x:o})}function _e(e,t,r,n){O=n,E=e,C=t,T=r}function xe(e){g.data("format",e),Fe()}function ke(e){var t=e||"#FF0000",r=H.parse(t);xe(r.type),ue(t);var n=H.RGBtoHSV(r.r,r.g,r.b);_e(n.h,n.s,n.v,r.a),we(),fe(),ie()}function Se(e,t,r){e.addEventListener(t,r)}function Oe(e,t,r){e.removeEventListener(t,r)}function Ee(e){n.data("isDown",!0),ae(e)}function Ce(e){n.data("isDown",!1)}function Te(e){e.preventDefault(),r.data("isDown",!0)}function Le(e){e.preventDefault(),d.data("isDown",!0)}function Me(e){r.data("isDown",!0),fe(e)}function Ae(e){d.data("isDown",!0),he(e)}function je(e){if(e.which<65||e.which>70)return ye(e)}function Pe(e){var t=L.val();"#"==t.charAt(0)&&7==t.length&&ke(t)}function Ie(e){He()}function Re(){Se(n.el,"mousedown",Ee),Se(n.el,"mouseup",Ce),Se(l.el,"mousedown",Te),Se(v.el,"mousedown",Le),Se(f.el,"mousedown",Me),Se(p.el,"mousedown",Ae),Se(L.el,"keydown",je),Se(L.el,"keyup",Pe),Se(M.el,"keydown",ye),Se(M.el,"keyup",be),Se(A.el,"keydown",ye),Se(A.el,"keyup",be),Se(j.el,"keydown",ye),Se(j.el,"keyup",be),Se(F().document,"mousemove",Ne),Se(m.el,"click",Ie)}function Ne(e){n.data("isDown")&&ae(e),r.data("isDown")&&fe(e),d.data("isDown")&&he(e)}function De(){Oe(n.el,"mousedown",Ee),Oe(n.el,"mouseup",Ce),Oe(l.el,"mousedown",Te),Oe(v.el,"mousedown",Le),Oe(f.el,"mousedown",Me),Oe(p.el,"mousedown",Ae),Oe(L.el,"keydown",je),Oe(L.el,"keyup",Pe),Oe(M.el,"keydown",ye),Oe(M.el,"keyup",be),Oe(A.el,"keydown",ye),Oe(A.el,"keyup",be),Oe(j.el,"keydown",ye),Oe(j.el,"keyup",be),Oe(document,"mousemove",Ne),Oe(F().document,"mousemove",Ne),Oe(m.el,"click",Ie),W=void 0}function ze(){var e=g.data("format")||"hex";if(O<1&&"hex"==e){var t="rgb";g.removeClass(e),g.addClass(t),g.data("format",t),ie()}}function Fe(){var e=g.data("format")||"hex";g.removeClass("hex"),g.removeClass("rgb"),g.removeClass("hsl"),g.addClass(e)}function He(){var e=g.data("format")||"hex",t="hex";"hex"==e?t="rgb":"rgb"==e?t="hsl":"hsl"==e&&(t=1==O?"hex":"rgb"),g.removeClass(e),g.addClass(t),g.data("format",t),ie()}function Be(e){var t=new Q("div","information-item "+e);if("hex"==e){var r=new Q("div","input-field hex");L=new Q("input","input",{type:"text"}),r.append(L),r.append(new Q("div","title").html("HEX")),t.append(r)}else"rgb"==e?(r=new Q("div","input-field rgb-r"),M=new Q("input","input",{type:"text"}),r.append(M),r.append(new Q("div","title").html("R")),t.append(r),r=new Q("div","input-field rgb-g"),A=new Q("input","input",{type:"text"}),r.append(A),r.append(new Q("div","title").html("G")),t.append(r),r=new Q("div","input-field rgb-b"),j=new Q("input","input",{type:"text"}),r.append(j),r.append(new Q("div","title").html("B")),t.append(r),r=new Q("div","input-field rgb-a"),P=new Q("input","input",{type:"text"}),r.append(P),r.append(new Q("div","title").html("A")),t.append(r)):"hsl"==e&&(r=new Q("div","input-field hsl-h"),I=new Q("input","input",{type:"text"}),r.append(I),r.append(new Q("div","title").html("H")),t.append(r),r=new Q("div","input-field hsl-s"),R=new Q("input","input",{type:"text"}),r.append(R),r.append(new Q("div","title").html("S")),t.append(r),r=new Q("div","input-field hsl-l"),N=new Q("input","input",{type:"text"}),r.append(N),r.append(new Q("div","title").html("L")),t.append(r),r=new Q("div","input-field hsl-a"),D=new Q("input","input",{type:"text"}),r.append(D),r.append(new Q("div","title").html("A")),t.append(r));return t}function We(e){K=e?Y.filter((function(t){return t.name==e}))[0]:Y[0]}function Ue(){for(var e=new Q("div","current-color-sets"),t=0,r=K.colors.length;twindow.innerWidth&&(i-=n+i-window.innerWidth),i<0&&(i=0);var a=r.top-e.el.scrollTop;o+a>window.innerHeight&&(a-=o+a-window.innerHeight),a<0&&(a=0),t.css({left:i+"px",top:a+"px"})}function Ye(e,r,n){De(),Re(),t.appendTo(F().document.body),t.css({position:"fixed",left:"-10000px",top:"-10000px"}),t.show(),Ke(e),q=!0,$=e.isShortCut||!1,ke(r),W=function(e){n(e)},(G=e.hideDelay||2e3)>0&&Qe(G)}function Qe(e){e=e||0,Oe(t.el,"mouseenter"),Oe(t.el,"mouseleave"),Se(t.el,"mouseenter",(function(){clearTimeout(z)})),Se(t.el,"mouseleave",(function(){clearTimeout(z),z=setTimeout(Ze,e)})),clearTimeout(z),z=setTimeout(Ze,e)}function Ze(){q&&(De(),t.hide(),t.remove(),q=!1)}return Q.prototype.closest=function(e){for(var t=this,r=!1;!(r=t.hasClass(e));){if(!t.el.parentNode)return null;t=new Q(t.el.parentNode)}return r?t:null},Q.prototype.removeClass=function(e){this.el.className=H.trim((" "+this.el.className+" ").replace(" "+e+" "," "))},Q.prototype.hasClass=function(e){return!!this.el.className&&(" "+this.el.className+" ").indexOf(" "+e+" ")>-1},Q.prototype.addClass=function(e){this.hasClass(e)||(this.el.className=this.el.className+" "+e)},Q.prototype.html=function(e){return this.el.innerHTML=e,this},Q.prototype.empty=function(){return this.html("")},Q.prototype.append=function(e){return"string"==typeof e?this.el.appendChild(F().document.createTextNode(e)):this.el.appendChild(e.el||e),this},Q.prototype.appendTo=function(e){return(e.el?e.el:e).appendChild(this.el),this},Q.prototype.remove=function(){return this.el.parentNode&&this.el.parentNode.removeChild(this.el),this},Q.prototype.text=function(){return this.el.textContent},Q.prototype.css=function(e,t){if(2==arguments.length)this.el.style[e]=t;else if(1==arguments.length){if("string"==typeof e)return getComputedStyle(this.el)[e];var r=e||{};for(var n in r)this.el.style[n]=r[n]}return this},Q.prototype.offset=function(){var e=this.el.getBoundingClientRect();return{top:e.top+F().document.body.scrollTop,left:e.left+F().document.body.scrollLeft}},Q.prototype.position=function(){return{top:parseFloat(this.el.style.top),left:parseFloat(this.el.style.left)}},Q.prototype.width=function(){return this.el.offsetWidth},Q.prototype.height=function(){return this.el.offsetHeight},Q.prototype.dataKey=function(e){return this.uniqId+"."+e},Q.prototype.data=function(e,t){if(2!=arguments.length){if(1==arguments.length)return V[this.dataKey(e)];var r=Object.keys(V),n=this.uniqId+".";return r.filter((function(e){return 0==e.indexOf(n)})).map((function(e){return V[e]}))}return V[this.dataKey(e)]=t,this},Q.prototype.val=function(e){return 0==arguments.length?this.el.value:(1==arguments.length&&(this.el.value=e),this)},Q.prototype.int=function(){return parseInt(this.val(),10)},Q.prototype.show=function(){return this.css("display","block")},Q.prototype.hide=function(){return this.css("display","none")},Ve(),{isShortCut:function(){return $},$root:t,show:Ye,hide:Ze,setColor:$e,getColor:Ge}}))},1347:(e,t,r)=>{!function(e){"use strict";var t=function(){return window.top},r={aliceblue:"rgb(240, 248, 255)",antiquewhite:"rgb(250, 235, 215)",aqua:"rgb(0, 255, 255)",aquamarine:"rgb(127, 255, 212)",azure:"rgb(240, 255, 255)",beige:"rgb(245, 245, 220)",bisque:"rgb(255, 228, 196)",black:"rgb(0, 0, 0)",blanchedalmond:"rgb(255, 235, 205)",blue:"rgb(0, 0, 255)",blueviolet:"rgb(138, 43, 226)",brown:"rgb(165, 42, 42)",burlywood:"rgb(222, 184, 135)",cadetblue:"rgb(95, 158, 160)",chartreuse:"rgb(127, 255, 0)",chocolate:"rgb(210, 105, 30)",coral:"rgb(255, 127, 80)",cornflowerblue:"rgb(100, 149, 237)",cornsilk:"rgb(255, 248, 220)",crimson:"rgb(237, 20, 61)",cyan:"rgb(0, 255, 255)",darkblue:"rgb(0, 0, 139)",darkcyan:"rgb(0, 139, 139)",darkgoldenrod:"rgb(184, 134, 11)",darkgray:"rgb(169, 169, 169)",darkgrey:"rgb(169, 169, 169)",darkgreen:"rgb(0, 100, 0)",darkkhaki:"rgb(189, 183, 107)",darkmagenta:"rgb(139, 0, 139)",darkolivegreen:"rgb(85, 107, 47)",darkorange:"rgb(255, 140, 0)",darkorchid:"rgb(153, 50, 204)",darkred:"rgb(139, 0, 0)",darksalmon:"rgb(233, 150, 122)",darkseagreen:"rgb(143, 188, 143)",darkslateblue:"rgb(72, 61, 139)",darkslategray:"rgb(47, 79, 79)",darkslategrey:"rgb(47, 79, 79)",darkturquoise:"rgb(0, 206, 209)",darkviolet:"rgb(148, 0, 211)",deeppink:"rgb(255, 20, 147)",deepskyblue:"rgb(0, 191, 255)",dimgray:"rgb(105, 105, 105)",dimgrey:"rgb(105, 105, 105)",dodgerblue:"rgb(30, 144, 255)",firebrick:"rgb(178, 34, 34)",floralwhite:"rgb(255, 250, 240)",forestgreen:"rgb(34, 139, 34)",fuchsia:"rgb(255, 0, 255)",gainsboro:"rgb(220, 220, 220)",ghostwhite:"rgb(248, 248, 255)",gold:"rgb(255, 215, 0)",goldenrod:"rgb(218, 165, 32)",gray:"rgb(128, 128, 128)",grey:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",greenyellow:"rgb(173, 255, 47)",honeydew:"rgb(240, 255, 240)",hotpink:"rgb(255, 105, 180)",indianred:"rgb(205, 92, 92)",indigo:"rgb(75, 0, 130)",ivory:"rgb(255, 255, 240)",khaki:"rgb(240, 230, 140)",lavender:"rgb(230, 230, 250)",lavenderblush:"rgb(255, 240, 245)",lawngreen:"rgb(124, 252, 0)",lemonchiffon:"rgb(255, 250, 205)",lightblue:"rgb(173, 216, 230)",lightcoral:"rgb(240, 128, 128)",lightcyan:"rgb(224, 255, 255)",lightgoldenrodyellow:"rgb(250, 250, 210)",lightgreen:"rgb(144, 238, 144)",lightgray:"rgb(211, 211, 211)",lightgrey:"rgb(211, 211, 211)",lightpink:"rgb(255, 182, 193)",lightsalmon:"rgb(255, 160, 122)",lightseagreen:"rgb(32, 178, 170)",lightskyblue:"rgb(135, 206, 250)",lightslategray:"rgb(119, 136, 153)",lightslategrey:"rgb(119, 136, 153)",lightsteelblue:"rgb(176, 196, 222)",lightyellow:"rgb(255, 255, 224)",lime:"rgb(0, 255, 0)",limegreen:"rgb(50, 205, 50)",linen:"rgb(250, 240, 230)",magenta:"rgb(255, 0, 255)",maroon:"rgb(128, 0, 0)",mediumaquamarine:"rgb(102, 205, 170)",mediumblue:"rgb(0, 0, 205)",mediumorchid:"rgb(186, 85, 211)",mediumpurple:"rgb(147, 112, 219)",mediumseagreen:"rgb(60, 179, 113)",mediumslateblue:"rgb(123, 104, 238)",mediumspringgreen:"rgb(0, 250, 154)",mediumturquoise:"rgb(72, 209, 204)",mediumvioletred:"rgb(199, 21, 133)",midnightblue:"rgb(25, 25, 112)",mintcream:"rgb(245, 255, 250)",mistyrose:"rgb(255, 228, 225)",moccasin:"rgb(255, 228, 181)",navajowhite:"rgb(255, 222, 173)",navy:"rgb(0, 0, 128)",oldlace:"rgb(253, 245, 230)",olive:"rgb(128, 128, 0)",olivedrab:"rgb(107, 142, 35)",orange:"rgb(255, 165, 0)",orangered:"rgb(255, 69, 0)",orchid:"rgb(218, 112, 214)",palegoldenrod:"rgb(238, 232, 170)",palegreen:"rgb(152, 251, 152)",paleturquoise:"rgb(175, 238, 238)",palevioletred:"rgb(219, 112, 147)",papayawhip:"rgb(255, 239, 213)",peachpuff:"rgb(255, 218, 185)",peru:"rgb(205, 133, 63)",pink:"rgb(255, 192, 203)",plum:"rgb(221, 160, 221)",powderblue:"rgb(176, 224, 230)",purple:"rgb(128, 0, 128)",rebeccapurple:"rgb(102, 51, 153)",red:"rgb(255, 0, 0)",rosybrown:"rgb(188, 143, 143)",royalblue:"rgb(65, 105, 225)",saddlebrown:"rgb(139, 69, 19)",salmon:"rgb(250, 128, 114)",sandybrown:"rgb(244, 164, 96)",seagreen:"rgb(46, 139, 87)",seashell:"rgb(255, 245, 238)",sienna:"rgb(160, 82, 45)",silver:"rgb(192, 192, 192)",skyblue:"rgb(135, 206, 235)",slateblue:"rgb(106, 90, 205)",slategray:"rgb(112, 128, 144)",slategrey:"rgb(112, 128, 144)",snow:"rgb(255, 250, 250)",springgreen:"rgb(0, 255, 127)",steelblue:"rgb(70, 130, 180)",tan:"rgb(210, 180, 140)",teal:"rgb(0, 128, 128)",thistle:"rgb(216, 191, 216)",tomato:"rgb(255, 99, 71)",turquoise:"rgb(64, 224, 208)",violet:"rgb(238, 130, 238)",wheat:"rgb(245, 222, 179)",white:"rgb(255, 255, 255)",whitesmoke:"rgb(245, 245, 245)",yellow:"rgb(255, 255, 0)",yellowgreen:"rgb(154, 205, 50)",transparent:"rgba(0, 0, 0, 0)"},n="codemirror-colorview",o="codemirror-colorview-background",i=["comment","builtin"];function a(e,t){"setValue"==t.origin?(e.state.colorpicker.close_color_picker(),e.state.colorpicker.init_color_update(),e.state.colorpicker.style_color_update()):e.state.colorpicker.style_color_update(e.getCursor().line)}function l(e,t){e.state.colorpicker.isUpdate||(e.state.colorpicker.isUpdate=!0,e.state.colorpicker.close_color_picker(),e.state.colorpicker.init_color_update(),e.state.colorpicker.style_color_update())}function s(e,t){a(e,{origin:"setValue"})}function u(e,t){e.state.colorpicker.keyup(t)}function c(e,t){e.state.colorpicker.is_edit_mode()&&e.state.colorpicker.check_mousedown(t)}function f(e,t){a(e,{origin:"setValue"})}function d(e){e.state.colorpicker.close_color_picker()}function p(e,t){var r=void 0;return function(n,o){r&&clearTimeout(r),r=setTimeout((function(){e(n,o)}),t||300)}}function h(e,t){return!(!e||!e.className)&&(" "+e.className+" ").indexOf(" "+t+" ")>-1}function m(e,t){t="boolean"==typeof t?{mode:"view"}:Object.assign({mode:"view"},t||{}),this.opt=t,this.cm=e,this.markers={},i=this.opt.excluded_token||i,this.cm.colorpicker?this.colorpicker=this.cm.colorpicker():this.opt.colorpicker&&(this.colorpicker=this.opt.colorpicker),this.init_event()}e.defineOption("colorpicker",!1,(function(t,r,n){n&&n!=e.Init&&t.state.colorpicker&&(t.state.colorpicker.destroy(),t.state.colorpicker=null),r&&(t.state.colorpicker=new m(t,r))})),m.prototype.init_event=function(){var e,t;this.cm.on("mousedown",c),this.cm.on("keyup",u),this.cm.on("change",a),this.cm.on("update",l),this.cm.on("refresh",s),this.onPasteCallback=(e=this.cm,t=f,function(r){t.call(this,e,r)}),this.cm.getWrapperElement().addEventListener("paste",this.onPasteCallback),this.is_edit_mode()&&this.cm.on("scroll",p(d,50))},m.prototype.is_edit_mode=function(){return"edit"==this.opt.mode},m.prototype.is_view_mode=function(){return"view"==this.opt.mode},m.prototype.destroy=function(){this.cm.off("mousedown",c),this.cm.off("keyup",u),this.cm.off("change",a),this.cm.getWrapperElement().removeEventListener("paste",this.onPasteCallback),this.is_edit_mode()&&this.cm.off("scroll")},m.prototype.hasClass=function(e,t){return!!e.className&&(" "+e.className+" ").indexOf(" "+t+" ")>-1},m.prototype.check_mousedown=function(e){this.hasClass(e.target,o)?this.open_color_picker(e.target.parentNode):this.close_color_picker()},m.prototype.popup_color_picker=function(e){var t=this.cm.getCursor(),r=this,n={lineNo:t.line,ch:t.ch,color:e||"#FFFFFF",isShortCut:!0};Object.keys(this.markers).forEach((function(e){if(("#"+e).indexOf("#"+n.lineNo+":")>-1){var t=r.markers[e];t.ch<=n.ch&&n.ch<=t.ch+t.color.length&&(n.ch=t.ch,n.color=t.color,n.nameColor=t.nameColor)}})),this.open_color_picker(n)},m.prototype.open_color_picker=function(e){var t=e.lineNo,r=e.ch,n=e.nameColor,o=e.color;if(this.colorpicker){var i=this,a=o,l=this.cm.charCoords({line:t,ch:r});this.colorpicker.show({left:l.left,top:l.bottom,isShortCut:e.isShortCut||!1,hideDelay:i.opt.hideDelay||2e3},n||o,(function(e){i.cm.replaceRange(e,{line:t,ch:r},{line:t,ch:r+a.length},"*colorpicker"),a=e}))}},m.prototype.close_color_picker=function(e){this.colorpicker&&this.colorpicker.hide()},m.prototype.key=function(e,t){return[e,t].join(":")},m.prototype.keyup=function(e){this.colorpicker&&("Escape"==e.key||0==this.colorpicker.isShortCut())&&this.colorpicker.hide()},m.prototype.init_color_update=function(){this.markers={}},m.prototype.style_color_update=function(e){if(e)this.match(e);else for(var t=this.cm.lineCount(),r=0;r-1||n[i].indexOf("rgb")>-1||n[i].indexOf("hsl")>-1)this.render(o,e,t,n[i]);else{var l=r[n[i]];l&&this.render(o,e,t,n[i],l)}},m.prototype.match=function(e){var t=this.cm.getLineHandle(e),r=this;this.cm.operation((function(){r.submatch(e,t)}))},m.prototype.make_element=function(){var e=t().document.createElement("div");return e.className=n,this.is_edit_mode()?e.title="open color picker":e.title="",e.back_element=this.make_background_element(),e.appendChild(e.back_element),e},m.prototype.make_background_element=function(){var e=t().document.createElement("div");return e.className=o,e},m.prototype.set_state=function(e,t,r,n){var o=this.create_marker(e,t);return o.lineNo=e,o.ch=t,o.color=r,o.nameColor=n,o},m.prototype.create_marker=function(e,t){var r=this.key(e,t);return this.markers[r]||(this.markers[r]=this.make_element()),this.markers[r]},m.prototype.has_marker=function(e,t){var r=this.key(e,t);return!!this.markers[r]},m.prototype.update_element=function(e,t){e.back_element.style.backgroundColor=t},m.prototype.set_mark=function(e,t,r){this.cm.setBookmark({line:e,ch:t},{widget:r,handleMouseEvents:!0})},m.prototype.is_excluded_token=function(e,t){var r=this.cm.getTokenAt({line:e,ch:t},!0),n=r.type,o=r.state.state;if(null==n&&"block"==o)return!0;if(null==n&&"top"==o)return!0;for(var a=0,l=0,s=i.length;l0},m.prototype.render=function(e,t,r,n,o){var i=r.text.indexOf(n,e.next);if(!0!==this.is_excluded_token(t,i)){if(e.next=i+n.length,this.has_marker(t,i))return this.update_element(this.create_marker(t,i),o||n),void this.set_state(t,i,n,o);var a=this.create_marker(t,i);this.update_element(a,o||n),this.set_state(t,i,n,o||n),this.set_mark(t,i,a)}}}(r(3458))},1528:(e,t,r)=>{!function(e){function t(t,r,n){var o,i=t.getWrapperElement();return(o=i.appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof r?o.innerHTML=r:o.appendChild(r),e.addClass(i,"dialog-opened"),o}function r(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(n,o,i){i||(i={}),r(this,null);var a=t(this,n,i.bottom),l=!1,s=this;function u(t){if("string"==typeof t)f.value=t;else{if(l)return;l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),s.focus(),i.onClose&&i.onClose(a)}}var c,f=a.getElementsByTagName("input")[0];return f?(f.focus(),i.value&&(f.value=i.value,!1!==i.selectValueOnOpen&&f.select()),i.onInput&&e.on(f,"input",(function(e){i.onInput(e,f.value,u)})),i.onKeyUp&&e.on(f,"keyup",(function(e){i.onKeyUp(e,f.value,u)})),e.on(f,"keydown",(function(t){i&&i.onKeyDown&&i.onKeyDown(t,f.value,u)||((27==t.keyCode||!1!==i.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),u()),13==t.keyCode&&o(f.value,t))})),!1!==i.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),s.focus()})),!1!==i.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(n,o,i){r(this,null);var a=t(this,n,i&&i.bottom),l=a.getElementsByTagName("button"),s=!1,u=this,c=1;function f(){s||(s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}l[0].focus();for(var d=0;d{!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function r(e){t(e);var r=e.state.placeholder=document.createElement("pre");r.style.cssText="height: 0; overflow: visible",r.style.direction=e.getOption("direction"),r.className="CodeMirror-placeholder CodeMirror-line-like";var n=e.getOption("placeholder");"string"==typeof n&&(n=document.createTextNode(n)),r.appendChild(n),e.display.lineSpace.insertBefore(r,e.display.lineSpace.firstChild)}function n(e){setTimeout((function(){var n=!1;if(1==e.lineCount()){var o=e.getInputField();n="TEXTAREA"==o.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(o.querySelector(".CodeMirror-line").textContent)}n?r(e):t(e)}),20)}function o(e){a(e)&&r(e)}function i(e){var n=e.getWrapperElement(),o=a(e);n.className=n.className.replace(" CodeMirror-empty","")+(o?" CodeMirror-empty":""),o?r(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(r,a,l){var s=l&&l!=e.Init;if(a&&!s)r.on("blur",o),r.on("change",i),r.on("swapDoc",i),e.on(r.getInputField(),"compositionupdate",r.state.placeholderCompose=function(){n(r)}),i(r);else if(!a&&s){r.off("blur",o),r.off("change",i),r.off("swapDoc",i),e.off(r.getInputField(),"compositionupdate",r.state.placeholderCompose),t(r);var u=r.getWrapperElement();u.className=u.className.replace(" CodeMirror-empty","")}a&&!r.hasFocus()&&o(r)}))}(r(3458))},1413:(e,t,r)=>{!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},r=e.Pos;function n(e,r){return"pairs"==r&&"string"==typeof e?e:"object"==typeof e&&null!=e[r]?e[r]:t[r]}e.defineOption("autoCloseBrackets",!1,(function(t,r,a){a&&a!=e.Init&&(t.removeKeyMap(o),t.state.closeBrackets=null),r&&(i(n(r,"pairs")),t.state.closeBrackets=r,t.addKeyMap(o))}));var o={Backspace:s,Enter:u};function i(e){for(var t=0;t=0;s--){var c=a[s].head;t.replaceRange("",r(c.line,c.ch-1),r(c.line,c.ch+1),"+delete")}}function u(t){var r=l(t),o=r&&n(r,"explode");if(!o||t.getOption("disableInput"))return e.Pass;for(var i=t.listSelections(),a=0;a0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};r.push({anchor:l,head:l})}e.setSelections(r,o)}function f(t){var n=e.cmpPos(t.anchor,t.head)>0;return{anchor:new r(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new r(t.head.line,t.head.ch+(n?1:-1))}}function d(t,o){var i=l(t);if(!i||t.getOption("disableInput"))return e.Pass;var a=n(i,"pairs"),s=a.indexOf(o);if(-1==s)return e.Pass;for(var u,d=n(i,"closeBefore"),p=n(i,"triples"),m=a.charAt(s+1)==o,v=t.listSelections(),g=s%2==0,y=0;y1&&p.indexOf(o)>=0&&t.getRange(r(_.line,_.ch-2),_)==o+o){if(_.ch>2&&/\bstring/.test(t.getTokenTypeAt(r(_.line,_.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==_.ch?" ":t.getRange(r(_.line,_.ch-1),_);if(e.isWordChar(x)||k==o||e.isWordChar(k))return e.Pass;b="both"}else{if(!g||!(0===x.length||/\s/.test(x)||d.indexOf(x)>-1))return e.Pass;b="both"}else b=m&&h(t,_)?"both":p.indexOf(o)>=0&&t.getRange(_,r(_.line,_.ch+3))==o+o+o?"skipThree":"skip";if(u){if(u!=b)return e.Pass}else u=b}var S=s%2?a.charAt(s-1):o,O=s%2?o:a.charAt(s+1);t.operation((function(){if("skip"==u)c(t,1);else if("skipThree"==u)c(t,3);else if("surround"==u){for(var e=t.getSelections(),r=0;r{!function(e){e.defineOption("autoCloseTags",!1,(function(t,r,o){if(o!=e.Init&&o&&t.removeKeyMap("autoCloseTags"),r){var a={name:"autoCloseTags"};"object"==typeof r&&!1===r.whenClosing||(a["'/'"]=function(e){return i(e)}),"object"==typeof r&&!1===r.whenOpening||(a["'>'"]=function(e){return n(e)}),t.addKeyMap(a)}}));var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],r=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function n(n){if(n.getOption("disableInput"))return e.Pass;for(var o=n.listSelections(),i=[],s=n.getOption("autoCloseTags"),u=0;uc.ch&&(m=m.slice(0,m.length-f.end+c.ch));var b=m.toLowerCase();if(!m||"string"==f.type&&(f.end!=c.ch||!/[\"\']/.test(f.string.charAt(f.string.length-1))||1==f.string.length)||"tag"==f.type&&h.close||f.string.indexOf("/")==c.ch-f.start-1||g&&a(g,b)>-1||l(n,d.mode.xmlCurrentContext&&d.mode.xmlCurrentContext(p)||[],m,c,!0))return e.Pass;var w="object"==typeof s&&s.emptyTags;if(w&&a(w,m)>-1)i[u]={text:"/>",newPos:e.Pos(c.line,c.ch+2)};else{var _=y&&a(y,b)>-1;i[u]={indent:_,text:">"+(_?"\n\n":"")+"",newPos:_?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}}var x="object"==typeof s&&s.dontIndentOnAutoClose;for(u=o.length-1;u>=0;u--){var k=i[u];n.replaceRange(k.text,o[u].head,o[u].anchor,"+insert");var S=n.listSelections().slice(0);S[u]={head:k.newPos,anchor:k.newPos},n.setSelections(S),!x&&k.indent&&(n.indentLine(k.newPos.line,null,!0),n.indentLine(k.newPos.line+1,null,!0))}}function o(t,r){for(var n=t.listSelections(),o=[],i=r?"/":""!=t.getLine(c.line).charAt(f.end)&&(h+=">"),o[u]=h}if(t.replaceSelections(o),n=t.listSelections(),!s)for(u=0;u=0&&r[u]==n;u--)++s;for(o=l.to,u=1;u{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),r=e.Pos,n={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function o(e){return e&&e.bracketRegex||/[(){}[\]]/}function i(e,t,i){var l=e.getLineHandle(t.line),s=t.ch-1,u=i&&i.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=o(i),f=!u&&s>=0&&c.test(l.text.charAt(s))&&n[l.text.charAt(s)]||c.test(l.text.charAt(s+1))&&n[l.text.charAt(++s)];if(!f)return null;var d=">"==f.charAt(1)?1:-1;if(i&&i.strict&&d>0!=(s==t.ch))return null;var p=e.getTokenTypeAt(r(t.line,s+1)),h=a(e,r(t.line,s+(d>0?1:0)),d,p,i);return null==h?null:{from:r(t.line,s),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:d>0}}function a(e,t,i,a,l){for(var s=l&&l.maxScanLineLength||1e4,u=l&&l.maxScanLines||1e3,c=[],f=o(l),d=i>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=d;p+=i){var h=e.getLine(p);if(h){var m=i>0?0:h.length-1,v=i>0?h.length:-1;if(!(h.length>s))for(p==t.line&&(m=t.ch-(i<0?1:0));m!=v;m+=i){var g=h.charAt(m);if(f.test(g)&&(void 0===a||(e.getTokenTypeAt(r(p,m+1))||"")==(a||""))){var y=n[g];if(y&&">"==y.charAt(1)==i>0)c.push(g);else{if(!c.length)return{pos:r(p,m),ch:g};c.pop()}}}}}return p-i!=(i>0?e.lastLine():e.firstLine())&&null}function l(e,n,o){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,l=o&&o.highlightNonMatching,s=[],u=e.listSelections(),c=0;c{!function(e){"use strict";function t(e){e.state.tagHit&&e.state.tagHit.clear(),e.state.tagOther&&e.state.tagOther.clear(),e.state.tagHit=e.state.tagOther=null}function r(r){r.state.failedTagMatch=!1,r.operation((function(){if(t(r),!r.somethingSelected()){var n=r.getCursor(),o=r.getViewport();o.from=Math.min(o.from,n.line),o.to=Math.max(n.line+1,o.to);var i=e.findMatchingTag(r,n,o);if(i){if(r.state.matchBothTags){var a="open"==i.at?i.open:i.close;a&&(r.state.tagHit=r.markText(a.from,a.to,{className:"CodeMirror-matchingtag"}))}var l="close"==i.at?i.open:i.close;l?r.state.tagOther=r.markText(l.from,l.to,{className:"CodeMirror-matchingtag"}):r.state.failedTagMatch=!0}}}))}function n(e){e.state.failedTagMatch&&r(e)}e.defineOption("matchTags",!1,(function(o,i,a){a&&a!=e.Init&&(o.off("cursorActivity",r),o.off("viewportChange",n),t(o)),i&&(o.state.matchBothTags="object"==typeof i&&i.bothTags,o.on("cursorActivity",r),o.on("viewportChange",n),r(o))})),e.commands.toMatchingTag=function(t){var r=e.findMatchingTag(t,t.getCursor());if(r){var n="close"==r.at?r.open:r.close;n&&t.extendSelection(n.to,n.from)}}}(r(3458),r(487))},487:(e,t,r)=>{!function(e){"use strict";var t=e.Pos;function r(e,t){return e.line-t.line||e.ch-t.ch}var n="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",o=new RegExp("<(/?)(["+n+"]["+n+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function i(e,t,r,n){this.line=t,this.ch=r,this.cm=e,this.text=e.getLine(t),this.min=n?Math.max(n.from,e.firstLine()):e.firstLine(),this.max=n?Math.min(n.to-1,e.lastLine()):e.lastLine()}function a(e,r){var n=e.cm.getTokenTypeAt(t(e.line,r));return n&&/\btag\b/.test(n)}function l(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function s(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function u(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var r=e.text.lastIndexOf("/",t),n=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,n?"selfClose":"regular"}e.ch=t+1}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){o.lastIndex=t,e.ch=t;var r=o.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function f(e){for(;;){o.lastIndex=e.ch;var t=o.exec(e.text);if(!t){if(l(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function d(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var r=e.text.lastIndexOf("/",t),n=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,n?"selfClose":"regular"}e.ch=t}}function p(e,r){for(var n=[];;){var o,i=f(e),a=e.line,l=e.ch-(i?i[0].length:0);if(!i||!(o=u(e)))return;if("selfClose"!=o)if(i[1]){for(var s=n.length-1;s>=0;--s)if(n[s]==i[2]){n.length=s;break}if(s<0&&(!r||r==i[2]))return{tag:i[2],from:t(a,l),to:t(e.line,e.ch)}}else n.push(i[2])}}function h(e,r){for(var n=[];;){var o=d(e);if(!o)return;if("selfClose"!=o){var i=e.line,a=e.ch,l=c(e);if(!l)return;if(l[1])n.push(l[2]);else{for(var s=n.length-1;s>=0;--s)if(n[s]==l[2]){n.length=s;break}if(s<0&&(!r||r==l[2]))return{tag:l[2],from:t(e.line,e.ch),to:t(i,a)}}}else c(e)}}e.registerHelper("fold","xml",(function(e,n){for(var o=new i(e,n.line,0);;){var a=f(o);if(!a||o.line!=n.line)return;var l=u(o);if(!l)return;if(!a[1]&&"selfClose"!=l){var s=t(o.line,o.ch),c=p(o,a[2]);return c&&r(c.from,s)>0?{from:s,to:c.from}:null}}})),e.findMatchingTag=function(e,n,o){var a=new i(e,n.line,n.ch,o);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var l=u(a),s=l&&t(a.line,a.ch),f=l&&c(a);if(l&&f&&!(r(a,n)>0)){var d={from:t(a.line,a.ch),to:s,tag:f[2]};return"selfClose"==l?{open:d,close:null,at:"open"}:f[1]?{open:h(a,f[2]),close:d,at:"close"}:{open:d,close:p(a=new i(e,s.line,s.ch,o),f[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,r,n){for(var o=new i(e,t.line,t.ch,r);;){var a=h(o,n);if(!a)break;var l=p(new i(e,t.line,t.ch,r),a.tag);if(l)return{open:a,close:l}}},e.scanForClosingTag=function(e,t,r,n){return p(new i(e,t.line,t.ch,n?{from:0,to:n}:null),r)}}(r(3458))},4491:(e,t,r)=>{!function(e){"use strict";var t={active:1,after:1,before:1,checked:1,default:1,disabled:1,empty:1,enabled:1,"first-child":1,"first-letter":1,"first-line":1,"first-of-type":1,focus:1,hover:1,"in-range":1,indeterminate:1,invalid:1,lang:1,"last-child":1,"last-of-type":1,link:1,not:1,"nth-child":1,"nth-last-child":1,"nth-last-of-type":1,"nth-of-type":1,"only-of-type":1,"only-child":1,optional:1,"out-of-range":1,placeholder:1,"read-only":1,"read-write":1,required:1,root:1,selection:1,target:1,valid:1,visited:1};e.registerHelper("hint","css",(function(r){var n=r.getCursor(),o=r.getTokenAt(n),i=e.innerMode(r.getMode(),o.state);if("css"==i.mode.name){if("keyword"==o.type&&0=="!important".indexOf(o.string))return{list:["!important"],from:e.Pos(n.line,o.start),to:e.Pos(n.line,o.end)};var a=o.start,l=n.ch,s=o.string.slice(0,l-a);/[^\w$_-]/.test(s)&&(s="",a=l=n.ch);var u=e.resolveMode("text/css"),c=[],f=i.state.state;return"pseudo"==f||"variable-3"==o.type?d(t):"block"==f||"maybeprop"==f?d(u.propertyKeywords):"prop"==f||"parens"==f||"at"==f||"params"==f?(d(u.valueKeywords),d(u.colorKeywords)):"media"!=f&&"media_parens"!=f||(d(u.mediaTypes),d(u.mediaFeatures)),c.length?{list:c,from:e.Pos(n.line,a),to:e.Pos(n.line,l)}:void 0}function d(e){for(var t in e)s&&0!=t.lastIndexOf(s,0)||c.push(t)}}))}(r(3458),r(7530))},5812:(e,t,r)=>{!function(e){"use strict";var t="ab aa af ak sq am ar an hy as av ae ay az bm ba eu be bn bh bi bs br bg my ca ch ce ny zh cv kw co cr hr cs da dv nl dz en eo et ee fo fj fi fr ff gl ka de el gn gu ht ha he hz hi ho hu ia id ie ga ig ik io is it iu ja jv kl kn kr ks kk km ki rw ky kv kg ko ku kj la lb lg li ln lo lt lu lv gv mk mg ms ml mt mi mr mh mn na nv nb nd ne ng nn no ii nr oc oj cu om or os pa pi fa pl ps pt qu rm rn ro ru sa sc sd se sm sg sr gd sn si sk sl so st es su sw ss sv ta te tg th ti bo tk tl tn to tr ts tt tw ty ug uk ur uz ve vi vo wa cy wo fy xh yi yo za zu".split(" "),r=["_blank","_self","_top","_parent"],n=["ascii","utf-8","utf-16","latin1","latin1"],o=["get","post","put","delete"],i=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],a=["all","screen","print","embossed","braille","handheld","print","projection","screen","tty","tv","speech","3d-glasses","resolution [>][<][=] [X]","device-aspect-ratio: X/Y","orientation:portrait","orientation:landscape","device-height: [X]","device-width: [X]"],l={attrs:{}},s={a:{attrs:{href:null,ping:null,type:null,media:a,target:r,hreflang:t}},abbr:l,acronym:l,address:l,applet:l,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:a,hreflang:t,type:null,shape:["default","rect","circle","poly"]}},article:l,aside:l,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["","autoplay"],loop:["","loop"],controls:["","controls"]}},b:l,base:{attrs:{href:null,target:r}},basefont:l,bdi:l,bdo:l,big:l,blockquote:{attrs:{cite:null}},body:l,br:l,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["","autofocus"],disabled:["","autofocus"],formenctype:i,formmethod:o,formnovalidate:["","novalidate"],formtarget:r,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:l,center:l,cite:l,code:l,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["","disabled"],checked:["","checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["","disabled"],multiple:["","multiple"]}},datalist:{attrs:{data:null}},dd:l,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["","open"]}},dfn:l,dir:l,div:l,dialog:{attrs:{open:null}},dl:l,dt:l,em:l,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["","disabled"],form:null,name:null}},figcaption:l,figure:l,font:l,footer:l,form:{attrs:{action:null,name:null,"accept-charset":n,autocomplete:["on","off"],enctype:i,method:o,novalidate:["","novalidate"],target:r}},frame:l,frameset:l,h1:l,h2:l,h3:l,h4:l,h5:l,h6:l,head:{attrs:{},children:["title","base","link","style","meta","script","noscript","command"]},header:l,hgroup:l,hr:l,html:{attrs:{manifest:null},children:["head","body"]},i:l,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["","seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["","autofocus"],checked:["","checked"],disabled:["","disabled"],formenctype:i,formmethod:o,formnovalidate:["","novalidate"],formtarget:r,multiple:["","multiple"],readonly:["","readonly"],required:["","required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:l,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["","autofocus"],disabled:["","disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:l,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:t,media:a,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:l,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:n,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:l,noframes:l,noscript:l,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["","typemustmatch"]}},ol:{attrs:{reversed:["","reversed"],start:null,type:["1","a","A","i","I"]}},optgroup:{attrs:{disabled:["","disabled"],label:null}},option:{attrs:{disabled:["","disabled"],label:null,selected:["","selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:l,param:{attrs:{name:null,value:null}},pre:l,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:l,rt:l,ruby:l,s:l,samp:l,script:{attrs:{type:["text/javascript"],src:null,async:["","async"],defer:["","defer"],charset:n}},section:l,select:{attrs:{form:null,name:null,size:null,autofocus:["","autofocus"],disabled:["","disabled"],multiple:["","multiple"]}},small:l,source:{attrs:{src:null,type:null,media:null}},span:l,strike:l,strong:l,style:{attrs:{type:["text/css"],media:a,scoped:null}},sub:l,summary:l,sup:l,table:l,tbody:l,td:{attrs:{colspan:null,rowspan:null,headers:null}},textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["","autofocus"],disabled:["","disabled"],readonly:["","readonly"],required:["","required"],wrap:["soft","hard"]}},tfoot:l,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:l,time:{attrs:{datetime:null}},title:l,tr:l,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:t}},tt:l,u:l,ul:l,var:l,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["","autoplay"],mediagroup:["movie"],muted:["","muted"],controls:["","controls"]}},wbr:l},u={accesskey:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9"],class:null,contenteditable:["true","false"],contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["en","es"],spellcheck:["true","false"],autocorrect:["true","false"],autocapitalize:["true","false"],style:null,tabindex:["1","2","3","4","5","6","7","8","9"],title:null,translate:["yes","no"],onclick:null,rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"]};function c(e){for(var t in u)u.hasOwnProperty(t)&&(e.attrs[t]=u[t])}for(var f in c(l),s)s.hasOwnProperty(f)&&s[f]!=l&&c(s[f]);function d(t,r){var n={schemaInfo:s};if(r)for(var o in r)n[o]=r[o];return e.hint.xml(t,n)}e.htmlSchema=s,e.registerHelper("hint","html",d)}(r(3458),r(7321))},6728:(e,t,r)=>{!function(e){"use strict";var t="CodeMirror-hint",r="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var r=this;e.on("cursorActivity",this.activityFunc=function(){r.cursorActivity()})}}e.showHint=function(e,t,r){if(!t)return e.showHint(r);r&&r.async&&(t.async=!0);var n={hint:t};if(r)for(var o in r)n[o]=r[o];return e.showHint(n)},e.defineExtension("showHint",(function(t){t=a(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var o=0;od.clientHeight+1;if(setTimeout((function(){A=a.getScrollInfo()})),j.bottom-M>0){var I=j.bottom-j.top;if(w.top-(w.bottom-j.top)-I>0)d.style.top=(x=w.top-I-O)+"px",k=!1;else if(I>M){d.style.height=M-5+"px",d.style.top=(x=w.bottom-j.top-O)+"px";var R=a.getCursor();o.from.ch!=R.ch&&(w=a.cursorCoords(R),d.style.left=(_=w.left-S)+"px",j=d.getBoundingClientRect())}}var N,D=j.right-L;if(P&&(D+=a.display.nativeBarWidth),D>0&&(j.right-j.left>L&&(d.style.width=L-5+"px",D-=j.right-j.left-L),d.style.left=(_=w.left-D-S)+"px"),P)for(var z=d.firstChild;z;z=z.nextSibling)z.style.paddingRight=a.display.nativeBarWidth+"px";a.addKeyMap(this.keyMap=s(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:h.length,close:function(){n.close()},pick:function(){i.pick()},data:o})),n.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){N=setTimeout((function(){n.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(N)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),t=a.getWrapperElement().getBoundingClientRect();A||(A=a.getScrollInfo());var r=x+A.top-e.top,o=r-(f.pageYOffset||(c.documentElement||c.body).scrollTop);if(k||(o+=d.offsetHeight),o<=t.top||o>=t.bottom)return n.close();d.style.top=r+"px",d.style.left=_+A.left-e.left+"px"}),e.on(d,"dblclick",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())})),e.on(d,"click",(function(e){var t=u(d,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())})),e.on(d,"mousedown",(function(){setTimeout((function(){a.focus()}),20)}));var F=this.getSelectedHintRange();return 0===F.from&&0===F.to||this.scrollToActive(),e.signal(o,"select",h[this.selectedHint],d.childNodes[this.selectedHint]),!0}function f(e,t){if(!e.somethingSelected())return t;for(var r=[],n=0;n0?t(e):i(o+1)}))}i(0)};return i.async=!0,i.supportsSelection=!0,i}return(n=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:n})}:e.hint.anyword?function(t,r){return e.hint.anyword(t,r)}:function(){}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var n=t.list[r],o=this;this.cm.operation((function(){n.hint?n.hint(o.cm,t,n):o.cm.replaceRange(l(n),n.from||t.from,n.to||t.to,"complete"),e.signal(t,"pick",n),o.cm.scrollIntoView()})),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),r=this.cm.getLine(t.line);if(t.line!=this.startPos.line||r.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var o=this.hints.childNodes[this.selectedHint];o&&(o.className=o.className.replace(" "+r,""),o.removeAttribute("aria-selected")),(o=this.hints.childNodes[this.selectedHint=t]).className+=" "+r,o.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",o.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],o)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],r=this.hints.childNodes[e.to],n=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+n.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:p}),e.registerHelper("hint","fromList",(function(t,r){var n,o=t.getCursor(),i=t.getTokenAt(o),a=e.Pos(o.line,i.start),l=o;i.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)}(r(3458))},7321:(e,t,r)=>{!function(e){"use strict";var t=e.Pos;function r(e,t,r){return r?e.indexOf(t)>=0:0==e.lastIndexOf(t,0)}function n(n,o){var i=o&&o.schemaInfo,a=o&&o.quoteChar||'"',l=o&&o.matchInMiddle;if(i){var s=n.getCursor(),u=n.getTokenAt(s);if(u.end>s.ch&&(u.end=s.ch,u.string=u.string.slice(0,s.ch-u.start)),(b=e.innerMode(n.getMode(),u.state)).mode.xmlCurrentTag){var c,f,d=[],p=!1,h=/\btag\b/.test(u.type)&&!/>$/.test(u.string),m=h&&/^\w/.test(u.string);if(m){var v=n.getLine(s.line).slice(Math.max(0,u.start-2),u.start),g=/<\/$/.test(v)?"close":/<$/.test(v)?"open":null;g&&(f=u.start-("close"==g?2:1))}else h&&"<"==u.string?g="open":h&&"")}else{var O=(_=y&&i[y.name])&&_.attrs,E=i["!attrs"];if(!O&&!E)return;if(O){if(E){var C={};for(var T in E)E.hasOwnProperty(T)&&(C[T]=E[T]);for(var T in O)O.hasOwnProperty(T)&&(C[T]=O[T]);O=C}}else O=E;if("string"==u.type||"="==u.string){var L,M=(v=n.getRange(t(s.line,Math.max(0,s.ch-60)),t(s.line,"string"==u.type?u.start:u.end))).match(/([^\s\u00a0=<>\"\']+)=$/);if(!M||!O.hasOwnProperty(M[1])||!(L=O[M[1]]))return;if("function"==typeof L&&(L=L.call(this,n)),"string"==u.type){c=u.string;var A=0;/['"]/.test(u.string.charAt(0))&&(a=u.string.charAt(0),c=u.string.slice(1),A++);var j=u.string.length;if(/['"]/.test(u.string.charAt(j-1))&&(a=u.string.charAt(j-1),c=u.string.substr(A,j-2)),A){var P=n.getLine(s.line);P.length>u.end&&P.charAt(u.end)==a&&u.end++}p=!0}var I=function(e){if(e)for(var t=0;t{!function(e){"use strict";function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var r=e.exec(t.string);if(r&&r.index==t.pos)return t.pos+=r[0].length||1,"searching";r?t.pos=r.index:t.skipToEnd()}}}function r(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new r)}function o(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,r){return e.getSearchCursor(t,r,{caseFold:o(t),multiline:!0})}function a(e,t,r,n,o){e.openDialog(t,n,{value:r,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){h(e)},onKeyDown:o,bottom:e.options.search.bottom})}function l(e,t,r,n,o){e.openDialog?e.openDialog(t,o,{value:n,selectValueOnOpen:!0,bottom:e.options.search.bottom}):o(prompt(r,n))}function s(e,t,r,n){e.openConfirm?e.openConfirm(t,n):confirm(r)&&n[0]()}function u(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function c(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=u(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function f(e,r,n){r.queryText=n,r.query=c(n),e.removeOverlay(r.overlay,o(r.query)),r.overlay=t(r.query,o(r.query)),e.addOverlay(r.overlay),e.showMatchesOnScrollbar&&(r.annotate&&(r.annotate.clear(),r.annotate=null),r.annotate=e.showMatchesOnScrollbar(r.query,o(r.query)))}function d(t,r,o,i){var s=n(t);if(s.query)return p(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),o&&t.openDialog){var c=null,d=function(r,n){e.e_stop(n),r&&(r!=s.queryText&&(f(t,s,r),s.posFrom=s.posTo=t.getCursor()),c&&(c.style.opacity=1),p(t,n.shiftKey,(function(e,r){var n;r.line<3&&document.querySelector&&(n=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&n.getBoundingClientRect().bottom-4>t.cursorCoords(r,"window").top&&((c=n).style.opacity=.4)})))};a(t,v(t),u,d,(function(r,o){var i=e.keyName(r),a=t.getOption("extraKeys"),l=a&&a[i]||e.keyMap[t.getOption("keyMap")][i];"findNext"==l||"findPrev"==l||"findPersistentNext"==l||"findPersistentPrev"==l?(e.e_stop(r),f(t,n(t),o),t.execCommand(l)):"find"!=l&&"findPersistent"!=l||(e.e_stop(r),d(o,r))})),i&&u&&(f(t,s,u),p(t,r))}else l(t,v(t),"Search for:",u,(function(e){e&&!s.query&&t.operation((function(){f(t,s,e),s.posFrom=s.posTo=t.getCursor(),p(t,r)}))}))}function p(t,r,o){t.operation((function(){var a=n(t),l=i(t,a.query,r?a.posFrom:a.posTo);(l.find(r)||(l=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(l.from(),l.to()),t.scrollIntoView({from:l.from(),to:l.to()},20),a.posFrom=l.from(),a.posTo=l.to(),o&&o(l.from(),l.to()))}))}function h(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function m(e,t){var r=e?document.createElement(e):document.createDocumentFragment();for(var n in t)r[n]=t[n];for(var o=2;o{!function(e){"use strict";var t,r,n=e.Pos;function o(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function i(e,t){for(var r=o(e),n=r,i=0;ic);f++){var d=e.getLine(u++);o=null==o?d:o+"\n"+d}s*=2,t.lastIndex=r.ch;var p=t.exec(o);if(p){var h=o.slice(0,p.index).split("\n"),m=p[0].split("\n"),v=r.line+h.length-1,g=h[h.length-1].length;return{from:n(v,g),to:n(v+m.length-1,1==m.length?g+m[0].length:m[m.length-1].length),match:p}}}}function u(e,t,r){for(var n,o=0;o<=e.length;){t.lastIndex=o;var i=t.exec(e);if(!i)break;var a=i.index+i[0].length;if(a>e.length-r)break;(!n||a>n.index+n[0].length)&&(n=i),o=i.index+1}return n}function c(e,t,r){t=i(t,"g");for(var o=r.line,a=r.ch,l=e.firstLine();o>=l;o--,a=-1){var s=e.getLine(o),c=u(s,t,a<0?0:s.length-a);if(c)return{from:n(o,c.index),to:n(o,c.index+c[0].length),match:c}}}function f(e,t,r){if(!a(t))return c(e,t,r);t=i(t,"gm");for(var o,l=1,s=e.getLine(r.line).length-r.ch,f=r.line,d=e.firstLine();f>=d;){for(var p=0;p=d;p++){var h=e.getLine(f--);o=null==o?h:h+"\n"+o}l*=2;var m=u(o,t,s);if(m){var v=o.slice(0,m.index).split("\n"),g=m[0].split("\n"),y=f+v.length,b=v[v.length-1].length;return{from:n(y,b),to:n(y+g.length-1,1==g.length?b+g[0].length:g[g.length-1].length),match:m}}}}function d(e,t,r,n){if(e.length==t.length)return r;for(var o=0,i=r+Math.max(0,e.length-t.length);;){if(o==i)return o;var a=o+i>>1,l=n(e.slice(0,a)).length;if(l==r)return a;l>r?i=a:o=a+1}}function p(e,o,i,a){if(!o.length)return null;var l=a?t:r,s=l(o).split(/\r|\n\r?/);e:for(var u=i.line,c=i.ch,f=e.lastLine()+1-s.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=l(p);if(1==s.length){var m=h.indexOf(s[0]);if(-1==m)continue e;return i=d(p,h,m,l)+c,{from:n(u,d(p,h,m,l)+c),to:n(u,d(p,h,m+s[0].length,l)+c)}}var v=h.length-s[0].length;if(h.slice(v)==s[0]){for(var g=1;g=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=l(p);if(1==s.length){var m=h.lastIndexOf(s[0]);if(-1==m)continue e;return{from:n(u,d(p,h,m,l)),to:n(u,d(p,h,m+s[0].length,l))}}var v=s[s.length-1];if(h.slice(0,v.length)==v){var g=1;for(i=u-s.length+1;g(this.doc.getLine(r.line)||"").length&&(r.ch=0,r.line++)),0!=e.cmpPos(r,this.doc.clipPos(r))))return this.atOccurrence=!1;var o=this.matches(t,r);if(this.afterEmptyMatch=o&&0==e.cmpPos(o.from,o.to),o)return this.pos=o,this.atOccurrence=!0,this.pos.match||!0;var i=n(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,r){if(this.atOccurrence){var o=e.splitLines(t);this.doc.replaceRange(o,this.pos.from,this.pos.to,r),this.pos.to=n(this.pos.from.line+o.length-1,o[o.length-1].length+(1==o.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,r){return new m(this.doc,e,t,r)})),e.defineDocExtension("getSearchCursor",(function(e,t,r){return new m(this,e,t,r)})),e.defineExtension("selectMatches",(function(t,r){for(var n=[],o=this.getSearchCursor(t,this.getCursor("from"),r);o.findNext()&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)n.push({anchor:o.from(),head:o.to()});n.length&&this.setSelections(n,0)}))}(r(3458))},9546:(e,t,r)=>{!function(e){"use strict";var t="CodeMirror-activeline",r="CodeMirror-activeline-background",n="CodeMirror-activeline-gutter";function o(e){for(var o=0;o{!function(e){"use strict";var t=e.commands,r=e.Pos;function n(t,n,o){if(o<0&&0==n.ch)return t.clipPos(r(n.line-1));var i=t.getLine(n.line);if(o>0&&n.ch>=i.length)return t.clipPos(r(n.line+1,0));for(var a,l="start",s=n.ch,u=s,c=o<0?0:i.length,f=0;u!=c;u+=o,f++){var d=i.charAt(o<0?u-1:u),p="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==p&&d.toUpperCase()==d&&(p="W"),"start"==l)"o"!=p?(l="in",a=p):s=u+o;else if("in"==l&&a!=p){if("w"==a&&"W"==p&&o<0&&u--,"W"==a&&"w"==p&&o>0){if(u==s+1){a="w";continue}u--}break}}return r(n.line,u)}function o(e,t){e.extendSelectionsBy((function(r){return e.display.shift||e.doc.extend||r.empty()?n(e.doc,r.head,t):t<0?r.from():r.to()}))}function i(t,n){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,o=[],i=-1,a=0;a=r&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var r=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=r&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),n=[],o=0;oi.line&&l==a.line&&0==a.ch||n.push({anchor:l==i.line?i:r(l,0),head:l==a.line?a:r(l)});e.setSelections(n,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),n=[],o=0;o=0;l--){var u=n[o[l]];if(!(s&&e.cmpPos(u.head,s)>0)){var c=a(t,u.head);s=c.from,t.replaceRange(r(c.word),c.from,c.to)}}}))}function h(t){var r=t.getCursor("from"),n=t.getCursor("to");if(0==e.cmpPos(r,n)){var o=a(t,r);if(!o.word)return;r=o.from,n=o.to}return{from:r,to:n,query:t.getRange(r,n),word:o}}function m(e,t){var n=h(e);if(n){var o=n.query,i=e.getSearchCursor(o,t?n.to:n.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(o,t?r(e.firstLine(),0):e.clipPos(r(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):n.word&&e.setSelection(n.from,n.to))}}t.selectScope=function(e){c(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!c(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(n){var o=t.scanForBracket(n.head,1,f(t.getTokenTypeAt(n.head)));if(o&&0!=e.cmpPos(o.pos,n.head))return o.pos;var i=t.scanForBracket(n.head,-1,f(t.getTokenTypeAt(r(n.head.line,n.head.ch+1))));return i&&r(i.pos.line,i.pos.ch+1)||n.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),o=[],i=t.firstLine()-1,a=[],l=0;li?o.push(u,c):o.length&&(o[o.length-1]=c),i=c}t.operation((function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+l,r(t.lastLine()),null,"+swapLine"):t.replaceRange(l+"\n",r(i,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),o=[],i=t.lastLine()+1,a=n.length-1;a>=0;a--){var l=n[a],s=l.to().line+1,u=l.from().line;0!=l.to().ch||l.empty()||s--,s=0;e-=2){var n=o[e],i=o[e+1],a=t.getLine(n);n==t.lastLine()?t.replaceRange("",r(n-1),r(n),"+swapLine"):t.replaceRange("",r(n,0),r(n+1,0),"+swapLine"),t.replaceRange(a+"\n",r(i,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),n=[],o=0;o=0;i--){var a=n[i].head,l=t.getRange({line:a.line,ch:0},a),s=e.countColumn(l,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(l&&!/\S/.test(l)&&s%o==0){var c=new r(a.line,e.findColumn(l,s-o,o));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,r(t[n].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){p(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){p(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var r=t.state.sublimeMark&&t.state.sublimeMark.find();if(r){var n=t.getCursor(),o=r;if(e.cmpPos(n,o)>0){var i=o;o=n,n=i}t.state.sublimeKilled=t.getRange(n,o),t.replaceRange("",n,o)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){m(e,!0)},t.findUnderPrevious=function(e){m(e,!1)},t.findAllUnder=function(e){var t=h(e);if(t){for(var r=e.getSearchCursor(t.query),n=[],o=-1;r.findNext();)n.push({anchor:r.from(),head:r.to()}),r.from().line<=t.from.line&&r.from().ch<=t.from.ch&&o++;e.setSelections(n,o)}};var v=e.keyMap;v.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(v.macSublime),v.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(v.pcSublime);var g=v.default==v.macDefault;v.sublime=g?v.macSublime:v.pcSublime}(r(3458),r(1863),r(9805))},3458:function(e){e.exports=function(){"use strict";var e=window.top.document,t=navigator.userAgent,r=navigator.platform,n=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),l=o||i||a,s=l&&(o?e.documentMode||6:+(a||i)[1]),u=!a&&/WebKit\//.test(t),c=u&&/Qt\/\d+\.\d+/.test(t),f=!a&&/Chrome\/(\d+)/.exec(t),d=f&&+f[1],p=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),m=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),v=/PhantomJS/.test(t),g=h&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),y=/Android/.test(t),b=g||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),w=g||/Mac/.test(r),_=/\bCrOS\b/.test(t),x=/win/i.test(r),k=p&&t.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(p=!1,u=!0);var S=w&&(c||p&&(null==k||k<12.11)),O=n||l&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,T=function(e,t){var r=e.className,n=E(t).exec(r);if(n){var o=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(o?n[1]+o:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function M(e,t){return L(e).appendChild(t)}function A(t,r,n,o){var i=e.createElement(t);if(n&&(i.className=n),o&&(i.style.cssText=o),"string"==typeof r)i.appendChild(e.createTextNode(r));else if(r)for(var a=0;a=t)return a+(t-i);a+=l-i,a+=r-a%r,i=l+1}}g?D=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:l&&(D=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function W(e,t){for(var r=0;r=t)return n+Math.min(a,t-o);if(o+=i-n,n=i+1,(o+=r-o%r)>=t)return n}}var Y=[""];function Q(e){for(;Y.length<=e;)Y.push(Z(Y)+" ");return Y[e]}function Z(e){return e[e.length-1]}function X(e,t){for(var r=[],n=0;n"\x80"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ne(e))||t.test(e):ne(e)}function ie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&ae.test(e)}function se(e,t,r){for(;(r<0?t>0:tr?-1:1;;){if(t==r)return t;var o=(t+r)/2,i=n<0?Math.ceil(o):Math.floor(o);if(i==t)return e(i)?t:r;e(i)?r=i:t=i+n}}function ce(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var o=!1,i=0;it||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",i),o=!0)}o||n(t,r,"ltr")}var fe=null;function de(e,t,r){var n;fe=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==r?n=o:fe=o),i.from==t&&(i.from!=i.to&&"before"!=r?n=o:fe=o)}return null!=n?n:fe}var pe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(r){return r<=247?e.charAt(r):1424<=r&&r<=1524?"R":1536<=r&&r<=1785?t.charAt(r-1536):1774<=r&&r<=2220?"r":8192<=r&&r<=8203?"w":8204==r?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,i=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,r){this.level=e,this.from=t,this.to=r}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!n.test(e))return!1;for(var c=e.length,f=[],d=0;d-1&&(n[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function be(e,t){var r=ge(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),o=0;o0}function ke(e){e.prototype.on=function(e,t){ve(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Oe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){Se(e),Oe(e)}function Te(e){return e.target||e.srcElement}function Le(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),w&&e.ctrlKey&&1==t&&(t=3),t}var Me,Ae,je=function(){if(l&&s<9)return!1;var e=A("div");return"draggable"in e||"dragDrop"in e}();function Pe(t){if(null==Me){var r=A("span","\u200b");M(t,A("span",[r,e.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Me=r.offsetWidth<=1&&r.offsetHeight>2&&!(l&&s<8))}var n=Me?A("span","\u200b"):A("span","\xa0",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(t){if(null!=Ae)return Ae;var r=M(t,e.createTextNode("A\u062eA")),n=C(r,0,1).getBoundingClientRect(),o=C(r,1,2).getBoundingClientRect();return L(t),!(!n||n.left==n.right)&&(Ae=o.right-n.right<3)}var Re,Ne=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var o=e.indexOf("\n",t);-1==o&&(o=e.length);var i=e.slice(t,"\r"==e.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(r.push(i.slice(0,a)),t+=a+1):(r.push(i),t=o+1)}return r}:function(e){return e.split(/\r\n?|\n/)},De=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},ze="oncopy"in(Re=A("div"))||(Re.setAttribute("oncopy","return;"),"function"==typeof Re.oncopy),Fe=null;function He(e){if(null!=Fe)return Fe;var t=M(e,A("span","x")),r=t.getBoundingClientRect(),n=C(t,0,1).getBoundingClientRect();return Fe=Math.abs(r.left-n.left)>1}var Be={},We={};function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function Ve(e,t){We[e]=t}function qe(e){if("string"==typeof e&&We.hasOwnProperty(e))e=We[e];else if(e&&"string"==typeof e.name&&We.hasOwnProperty(e.name)){var t=We[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $e(e,t){t=qe(t);var r=Be[t.name];if(!r)return $e(e,"text/plain");var n=r(e,t);if(Ge.hasOwnProperty(t.name)){var o=Ge[t.name];for(var i in o)o.hasOwnProperty(i)&&(n.hasOwnProperty(i)&&(n["_"+i]=n[i]),n[i]=o[i])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var Ge={};function Ke(e,t){F(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ye(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var o=t[n];o instanceof Array&&(o=o.concat([])),r[n]=o}return r}function Qe(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ze(e,t,r){return!e.startState||e.startState(t,r)}var Xe=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function Je(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var o=r.children[n],i=o.chunkSize();if(t=e.first&&tr?lt(r,Je(e,r).text.length):mt(t,Je(e,t.line).text.length)}function mt(e,t){var r=e.ch;return null==r||r>t?lt(e.line,t):r<0?lt(e.line,0):e}function vt(e,t){for(var r=[],n=0;n=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.post},Xe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var o=function(e){return r?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function bt(e,t,r,n){var o=[e.state.modeGen],i={};Tt(e,t.text,e.doc.mode,r,(function(e,t){return o.push(e,t)}),i,n);for(var a=r.state,l=function(n){r.baseTokens=o;var l=e.state.overlays[n],s=1,u=0;r.state=!0,Tt(e,t.text,l.mode,r,(function(e,t){for(var r=s;ue&&o.splice(s,1,e,o[s+1],n),s+=2,u=Math.min(e,n)}if(t)if(l.opaque)o.splice(r,s-r,e,"overlay "+t),s=r+2;else for(;re.options.maxHighlightLength&&Ye(e.doc.mode,n.state),i=bt(e,t,n);o&&(n.state=o),t.stateAfter=n.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function _t(e,t,r){var n=e.doc,o=e.display;if(!n.mode.startState)return new yt(n,!0,t);var i=Lt(e,t,r),a=i>n.first&&Je(n,i-1).stateAfter,l=a?yt.fromSaved(n,a,i):new yt(n,Ze(n.mode),i);return n.iter(i,t,(function(r){xt(e,r.text,l);var n=l.line;r.stateAfter=n==t-1||n%5==0||n>=o.viewFrom&&nt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,r){return t instanceof gt?new yt(e,Ye(e.mode,t.state),r,t.lookAhead):new yt(e,Ye(e.mode,t),r)},yt.prototype.save=function(e){var t=!1!==e?Ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var Ot=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Et(e,t,r,n){var o,i,a=e.doc,l=a.mode,s=Je(a,(t=ht(a,t)).line),u=_t(e,t.line,r),c=new Xe(s.text,e.options.tabSize,u);for(n&&(i=[]);(n||c.pose.options.maxHighlightLength?(l=!1,a&&xt(e,t,n,f.pos),f.pos=t.length,s=null):s=Ct(St(r,f,n.state,d),i),d){var p=d[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||c!=s){for(;ua;--l){if(l<=i.first)return i.first;var s=Je(i,l-1),u=s.stateAfter;if(u&&(!r||l+(u instanceof gt?u.lookAhead:0)<=i.modeFrontier))return l;var c=H(s.text,null,e.options.tabSize);(null==o||n>c)&&(o=l-1,n=c)}return o}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontierr;n--){var o=Je(e,n).stateAfter;if(o&&(!(o instanceof gt)||n+o.lookAhead=t:i.to>t);(n||(n=[])).push(new Rt(a,i.from,l?null:i.to))}}return n}function Ht(e,t,r){var n;if(e)for(var o=0;o=t:i.to>t)||i.from==t&&"bookmark"==a.type&&(!r||i.marker.insertLeft)){var l=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&l)for(var b=0;b0)){var c=[s,1],f=st(u.from,l.from),d=st(u.to,l.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:l.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:l.to,to:u.to}),o.splice.apply(o,c),s+=c.length-3}}return o}function Vt(e){var t=e.markedSpans;if(t){for(var r=0;rt)&&(!r||Kt(r,i.marker)<0)&&(r=i.marker)}return r}function Jt(e,t,r,n,o){var i=Je(e,t),a=jt&&i.markedSpans;if(a)for(var l=0;l=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?st(u.to,r)>=0:st(u.to,r)>0)||c>=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?st(u.from,n)<=0:st(u.from,n)<0)))return!0}}}function er(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function tr(e){for(var t;t=Zt(e);)e=t.find(1,!0).line;return e}function rr(e){for(var t,r;t=Zt(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function nr(e,t){var r=Je(e,t),n=er(r);return r==n?t:nt(n)}function or(e,t){if(t>e.lastLine())return t;var r,n=Je(e,t);if(!ir(e,n))return t;for(;r=Zt(n);)n=r.find(1,!0).line;return nt(n)+1}function ir(e,t){var r=jt&&t.markedSpans;if(r)for(var n=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)}))}var cr=function(e,t,r){this.text=e,qt(this,t),this.height=r?r(this):1};function fr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Vt(e),qt(e,r);var o=n?n(e):1;o!=e.height&&rt(e,o)}function dr(e){e.parent=null,Vt(e)}cr.prototype.lineNo=function(){return nt(this)},ke(cr);var pr={},hr={};function mr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?hr:pr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function vr(e,t){var r=j("span",null,null,u?"padding-right: .1px":null),n={pre:j("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var i=o?t.rest[o-1]:t.line,a=void 0;n.pos=0,n.addToken=yr,Ie(e.display.measure)&&(a=he(i,e.doc.direction))&&(n.addToken=wr(n.addToken,a)),n.map=[],xr(i,n,wt(e,i,t!=e.display.externalMeasured&&nt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(n.bgClass=N(i.styleClasses.bgClass,n.bgClass||"")),i.styleClasses.textClass&&(n.textClass=N(i.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Pe(e.display.measure))),0==o?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(u){var l=n.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=N(n.pre.className,n.textClass||"")),n}function gr(e){var t=A("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function yr(t,r,n,o,i,a,u){if(r){var c,f=t.splitSpaces?br(r,t.trailingSpace):r,d=t.cm.state.specialChars,p=!1;if(d.test(r)){c=e.createDocumentFragment();for(var h=0;;){d.lastIndex=h;var m=d.exec(r),v=m?m.index-h:r.length-h;if(v){var g=e.createTextNode(f.slice(h,h+v));l&&s<9?c.appendChild(A("span",[g])):c.appendChild(g),t.map.push(t.pos,t.pos+v,g),t.col+=v,t.pos+=v}if(!m)break;h+=v+1;var y=void 0;if("\t"==m[0]){var b=t.cm.options.tabSize,w=b-t.col%b;(y=c.appendChild(A("span",Q(w),"cm-tab"))).setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),t.col+=w}else"\r"==m[0]||"\n"==m[0]?((y=c.appendChild(A("span","\r"==m[0]?"\u240d":"\u2424","cm-invalidchar"))).setAttribute("cm-text",m[0]),t.col+=1):((y=t.cm.options.specialCharPlaceholder(m[0])).setAttribute("cm-text",m[0]),l&&s<9?c.appendChild(A("span",[y])):c.appendChild(y),t.col+=1);t.map.push(t.pos,t.pos+1,y),t.pos++}}else t.col+=r.length,c=e.createTextNode(f),t.map.push(t.pos,t.pos+r.length,c),l&&s<9&&(p=!0),t.pos+=r.length;if(t.trailingSpace=32==f.charCodeAt(r.length-1),n||o||i||p||a||u){var _=n||"";o&&(_+=o),i&&(_+=i);var x=A("span",[c],_,a);if(u)for(var k in u)u.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&x.setAttribute(k,u[k]);return t.content.appendChild(x)}t.content.appendChild(c)}}function br(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",o=0;ou&&f.from<=u);d++);if(f.to>=c)return e(r,n,o,i,a,l,s);e(r,n.slice(0,f.to-u),o,i,null,l,s),i=null,n=n.slice(f.to-u),u=f.to}}}function _r(t,r,n,o){var i=!o&&n.widgetNode;i&&t.map.push(t.pos,t.pos+r,i),!o&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(e.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=r,t.trailingSpace=!1}function xr(e,t,r){var n=e.markedSpans,o=e.text,i=0;if(n)for(var a,l,s,u,c,f,d,p=o.length,h=0,m=1,v="",g=0;;){if(g==h){s=u=c=l="",d=null,f=null,g=1/0;for(var y=[],b=void 0,w=0;wh||x.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&g>_.to&&(g=_.to,u=""),x.className&&(s+=" "+x.className),x.css&&(l=(l?l+";":"")+x.css),x.startStyle&&_.from==h&&(c+=" "+x.startStyle),x.endStyle&&_.to==g&&(b||(b=[])).push(x.endStyle,_.to),x.title&&((d||(d={})).title=x.title),x.attributes)for(var k in x.attributes)(d||(d={}))[k]=x.attributes[k];x.collapsed&&(!f||Kt(f.marker,x)<0)&&(f=_)}else _.from>h&&g>_.from&&(g=_.from)}if(b)for(var S=0;S=p)break;for(var E=Math.min(p,g);;){if(v){var C=h+v.length;if(!f){var T=C>E?v.slice(0,E-h):v;t.addToken(t,T,a?a+s:s,c,h+T.length==g?u:"",l,d)}if(C>=E){v=v.slice(E-h),h=E;break}h=C,c=""}v=o.slice(i,i=r[m++]),a=mr(r[m++],t.cm.options)}}else for(var L=1;L2&&i.push((s.bottom+u.top)/2-r.top)}}i.push(r.bottom-r.top)}}function Jr(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var n=0;nr)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function en(e,t){var r=nt(t=er(t)),n=e.display.externalMeasured=new kr(e.doc,t,r);n.lineN=r;var o=n.built=vr(e,n);return n.text=o.pre,M(e.display.lineMeasure,o.pre),n}function tn(e,t,r,n){return on(e,nn(e,t),r,n)}function rn(e,t){if(t>=e.display.viewFrom&&t=r.lineN&&tt)&&(o=(i=s-l)-1,t>=s&&(a="right")),null!=o){if(n=e[u+2],l==s&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==o)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],a="left";if("right"==r&&o==s-l)for(;u=0&&(r=e[o]).left==r.right;o--);return r}function cn(e,t,r,n){var o,i=sn(t.map,r,n),a=i.node,u=i.start,c=i.end,f=i.collapse;if(3==a.nodeType){for(var d=0;d<4;d++){for(;u&&le(t.line.text.charAt(i.coverStart+u));)--u;for(;i.coverStart+c0&&(f=n="right"),o=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==n?p.length-1:0]:a.getBoundingClientRect()}if(l&&s<9&&!u&&(!o||!o.left&&!o.right)){var h=a.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+jn(e.display),top:h.top,bottom:h.bottom}:ln}for(var m=o.top-t.rect.top,v=o.bottom-t.rect.top,g=(m+v)/2,y=t.view.measure.heights,b=0;b=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a("before"==u?s-1:s,"before"==u);function c(e,t,r){return a(r?e-1:e,1==l[t].level!=r)}var f=de(l,s,u),d=fe,p=c(s,f,"before"==u);return null!=d&&(p.other=c(s,d,"before"!=u)),p}function xn(e,t){var r=0;t=ht(e.doc,t),e.options.lineWrapping||(r=jn(e.display)*t.ch);var n=Je(e.doc,t.line),o=lr(n)+$r(e.display);return{left:r,right:r,top:o,bottom:o+n.height}}function kn(e,t,r,n,o){var i=lt(e,t,r);return i.xRel=o,n&&(i.outside=n),i}function Sn(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return kn(n.first,0,null,-1,-1);var o=ot(n,r),i=n.first+n.size-1;if(o>i)return kn(n.first+n.size-1,Je(n,i).text.length,null,1,1);t<0&&(t=0);for(var a=Je(n,o);;){var l=Tn(e,a,o,t,r),s=Xt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==o)return u;a=Je(n,o=u.line)}}function On(e,t,r,n){n-=gn(t);var o=t.text.length,i=ue((function(t){return on(e,r,t-1).bottom<=n}),o,0);return{begin:i,end:o=ue((function(t){return on(e,r,t).top>n}),i,o)}}function En(e,t,r,n){return r||(r=nn(e,t)),On(e,t,r,yn(e,t,on(e,r,n),"line").top)}function Cn(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function Tn(e,t,r,n,o){o-=lr(t);var i=nn(e,t),a=gn(t),l=0,s=t.text.length,u=!0,c=he(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Mn:Ln)(e,t,r,i,c,n,o);l=(u=1!=f.level)?f.from:f.to-1,s=u?f.to:f.from-1}var d,p,h=null,m=null,v=ue((function(t){var r=on(e,i,t);return r.top+=a,r.bottom+=a,!!Cn(r,n,o,!1)&&(r.top<=o&&r.left<=n&&(h=t,m=r),!0)}),l,s),g=!1;if(m){var y=n-m.left=w.bottom?1:0}return kn(r,v=se(t.text,v,1),p,g,n-d)}function Ln(e,t,r,n,o,i,a){var l=ue((function(l){var s=o[l],u=1!=s.level;return Cn(_n(e,lt(r,u?s.to:s.from,u?"before":"after"),"line",t,n),i,a,!0)}),0,o.length-1),s=o[l];if(l>0){var u=1!=s.level,c=_n(e,lt(r,u?s.from:s.to,u?"after":"before"),"line",t,n);Cn(c,i,a,!0)&&c.top>a&&(s=o[l-1])}return s}function Mn(e,t,r,n,o,i,a){var l=On(e,t,n,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d=u||p.to<=s)){var h=on(e,n,1!=p.level?Math.min(u,p.to)-1:Math.max(s,p.from)).right,m=hm)&&(c=p,f=m)}}return c||(c=o[o.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function An(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==an){an=A("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)an.appendChild(e.createTextNode("x")),an.appendChild(A("br"));an.appendChild(e.createTextNode("x"))}M(t.measure,an);var n=an.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),L(t.measure),n||1}function jn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=A("span","xxxxxxxxxx"),r=A("pre",[t],"CodeMirror-line-like");M(e.measure,r);var n=t.getBoundingClientRect(),o=(n.right-n.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function Pn(e){for(var t=e.display,r={},n={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var l=e.display.gutterSpecs[a].className;r[l]=i.offsetLeft+i.clientLeft+o,n[l]=i.clientWidth}return{fixedPos:In(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function In(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Rn(e){var t=An(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/jn(e.display)-3);return function(o){if(ir(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a0&&(s=Je(e.doc,u.line).text).length==u.ch){var c=H(s,s.length,e.options.tabSize)-s.length;u=lt(u.line,Math.max(0,Math.round((i-Kr(e.display).left)/jn(e.display))-c))}return u}function zn(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;nt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)jt&&nr(e.doc,t)o.viewFrom?Bn(e):(o.viewFrom+=n,o.viewTo+=n);else if(t<=o.viewFrom&&r>=o.viewTo)Bn(e);else if(t<=o.viewFrom){var i=Wn(e,r,r+n,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=n):Bn(e)}else if(r>=o.viewTo){var a=Wn(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):Bn(e)}else{var l=Wn(e,t,t,-1),s=Wn(e,r,r+n,1);l&&s?(o.view=o.view.slice(0,l.index).concat(Sr(e,l.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=n):Bn(e)}var u=o.externalMeasured;u&&(r=o.lineN&&t=n.viewTo)){var i=n.view[zn(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==W(a,r)&&a.push(r)}}}function Bn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wn(e,t,r,n){var o,i=zn(e,t),a=e.display.view;if(!jt||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var l=e.display.viewFrom,s=0;s0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,r+=o}for(;nr(e.doc,r)!=r;){if(i==(n<0?0:a.length-1))return null;r+=n*a[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function Un(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=Sr(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=Sr(e,t,n.viewFrom).concat(n.view):n.viewFromr&&(n.view=n.view.slice(0,zn(e,r)))),n.viewTo=r}function Vn(e){for(var t=e.display.view,r=0,n=0;n=t.display.viewTo||u.to().line0?a:e.defaultCharWidth())+"px"}if(n.other){var l=r.appendChild(A("div","\xa0","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=n.other.left+"px",l.style.top=n.other.top+"px",l.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function Kn(e,t){return e.top-t.top||e.left-t.left}function Yn(t,r,n){var o=t.display,i=t.doc,a=e.createDocumentFragment(),l=Kr(t.display),s=l.left,u=Math.max(o.sizerWidth,Qr(t)-o.sizer.offsetLeft)-l.right,c="ltr"==i.direction;function f(e,t,r,n){t<0&&(t=0),t=Math.round(t),n=Math.round(n),a.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?u-e:r)+"px;\n height: "+(n-t)+"px"))}function d(e,r,n){var o,a,l=Je(i,e),d=l.text.length;function p(r,n){return wn(t,lt(e,r),"div",l,n)}function h(e,r,n){var o=En(t,l,null,e),i="ltr"==r==("after"==n)?"left":"right";return p("after"==n?o.begin:o.end-(/\s/.test(l.text.charAt(o.end-1))?2:1),i)[i]}var m=he(l,i.direction);return ce(m,r||0,null==n?d:n,(function(e,t,i,l){var v="ltr"==i,g=p(e,v?"left":"right"),y=p(t-1,v?"right":"left"),b=null==r&&0==e,w=null==n&&t==d,_=0==l,x=!m||l==m.length-1;if(y.top-g.top<=3){var k=(c?w:b)&&x,S=(c?b:w)&&_?s:(v?g:y).left,O=k?u:(v?y:g).right;f(S,g.top,O-S,g.bottom)}else{var E,C,T,L;v?(E=c&&b&&_?s:g.left,C=c?u:h(e,i,"before"),T=c?s:h(t,i,"after"),L=c&&w&&x?u:y.right):(E=c?h(e,i,"before"):s,C=!c&&b&&_?u:g.right,T=!c&&w&&x?s:y.left,L=c?h(t,i,"after"):u),f(E,g.top,C-E,g.bottom),g.bottom0?t.blinker=setInterval((function(){e.hasFocus()||eo(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Zn(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Jn(e))}function Xn(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&eo(e))}),100)}function Jn(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),u&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qn(e))}function eo(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function to(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=Math.max(0,t.scroller.getBoundingClientRect().top),o=t.lineDiv.getBoundingClientRect().top,i=0,a=0;a.005||m<-.005)&&(oe.display.sizerWidth){var g=Math.ceil(d/jn(e.display));g>e.display.maxLineLength&&(e.display.maxLineLength=g,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(t.scroller.scrollTop+=i)}function ro(e){if(e.widgets)for(var t=0;t=a&&(i=ot(t,lr(Je(t,s))-e.wrapper.clientHeight),a=s)}return{from:i,to:Math.max(a,i+1)}}function oo(t,r){if(!we(t,"scrollCursorIntoView")){var n=window.top,o=t.display,i=o.sizer.getBoundingClientRect(),a=null;if(r.top+i.top<0?a=!0:r.bottom+i.top>(n.innerHeight||e.documentElement.clientHeight)&&(a=!1),null!=a&&!v){var l=A("div","\u200b",null,"position: absolute;\n top: "+(r.top-o.viewOffset-$r(t.display))+"px;\n height: "+(r.bottom-r.top+Yr(t)+o.barHeight)+"px;\n left: "+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");t.display.lineSpace.appendChild(l),l.scrollIntoView(a),t.display.lineSpace.removeChild(l)}}}function io(e,t,r,n){var o;null==n&&(n=0),e.options.lineWrapping||t!=r||(r="before"==t.sticky?lt(t.line,t.ch+1,"before"):t,t=t.ch?lt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var i=0;i<5;i++){var a=!1,l=_n(e,t),s=r&&r!=t?_n(e,r):l,u=lo(e,o={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-n,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+n}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(mo(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(go(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function ao(e,t){var r=lo(e,t);null!=r.scrollTop&&mo(e,r.scrollTop),null!=r.scrollLeft&&go(e,r.scrollLeft)}function lo(e,t){var r=e.display,n=An(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,i=Zr(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var l=e.doc.height+Gr(r),s=t.topl-n;if(t.topo+i){var c=Math.min(t.top,(u?l:t.bottom)-i);c!=o&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:r.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft-f,p=Qr(e)-r.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function so(e,t){null!=t&&(po(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function uo(e){po(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function co(e,t,r){null==t&&null==r||po(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function fo(e,t){po(e),e.curOp.scrollToPos=t}function po(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,ho(e,xn(e,t.from),xn(e,t.to),t.margin))}function ho(e,t,r,n){var o=lo(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});co(e,o.scrollLeft,o.scrollTop)}function mo(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||$o(e,{top:t}),vo(e,t,!0),n&&$o(e),zo(e,100))}function vo(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function go(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Qo(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function yo(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Gr(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Yr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var bo=function(e,t,r){this.cm=r;var n=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=o.tabIndex=-1,e(n),e(o),ve(n,"scroll",(function(){n.clientHeight&&t(n.scrollTop,"vertical")})),ve(o,"scroll",(function(){o.clientWidth&&t(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,l&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bo.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var o=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},bo.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bo.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bo.prototype.zeroWidthHack=function(){var e=w&&!m?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},bo.prototype.enableZeroWidthBar=function(t,r,n){function o(){var i=t.getBoundingClientRect();("vert"==n?e.elementFromPoint(i.right-1,(i.top+i.bottom)/2):e.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":r.set(1e3,o)}t.style.pointerEvents="auto",r.set(1e3,o)},bo.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wo=function(){};function _o(e,t){t||(t=yo(e));var r=e.display.barWidth,n=e.display.barHeight;xo(e,t);for(var o=0;o<4&&r!=e.display.barWidth||n!=e.display.barHeight;o++)r!=e.display.barWidth&&e.options.lineWrapping&&to(e),xo(e,yo(e)),r=e.display.barWidth,n=e.display.barHeight}function xo(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};var ko={native:bo,null:wo};function So(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ko[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ve(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,r){"horizontal"==r?go(e,t):mo(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Oo=0;function Eo(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oo,markArrays:null},Er(e.curOp)}function Co(e){var t=e.curOp;t&&Tr(t,(function(e){for(var t=0;t=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ho(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Mo(e){e.updatedDisplay=e.mustUpdate&&Vo(e.cm,e.update)}function Ao(e){var t=e.cm,r=t.display;e.updatedDisplay&&to(t),e.barMeasure=yo(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=tn(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Yr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Qr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function jo(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var r=+new Date+e.options.workTime,n=_t(e,t.highlightFrontier),o=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(n.line>=e.display.viewFrom){var a=i.styles,l=i.text.length>e.options.maxHighlightLength?Ye(t.mode,n.state):null,s=bt(e,i,n,!0);l&&(n.state=l),i.styles=s.styles;var u=i.styleClasses,c=s.classes;c?i.styleClasses=c:u&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dr)return zo(e,e.options.workDelay),!0})),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),o.length&&Io(e,(function(){for(var t=0;t=r.viewFrom&&t.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Vn(e))return!1;Zo(e)&&(Bn(e),t.dims=Pn(e));var o=n.first+n.size,i=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);r.viewFroma&&r.viewTo-a<20&&(a=Math.min(o,r.viewTo)),jt&&(i=nr(e.doc,i),a=or(e.doc,a));var l=i!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;Un(e,i,a),r.viewOffset=lr(Je(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Vn(e);if(!l&&0==s&&!t.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=Wo(e);return s>4&&(r.lineDiv.style.display="none"),Go(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Uo(u),L(r.cursorDiv),L(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,zo(e,400)),r.updateLineNumbers=null,!0}function qo(e,t){for(var r=t.viewport,n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Qr(e))n&&(t.visible=no(e.display,e.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Gr(e.display)-Zr(e),r.top)}),t.visible=no(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Vo(e,t))break;to(e);var o=yo(e);qn(e),_o(e,o),Yo(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function $o(e,t){var r=new Ho(e,t);if(Vo(e,r)){to(e),qo(e,r);var n=yo(e);qn(e),_o(e,n),Yo(e,n),r.finish()}}function Go(t,r,n){var o=t.display,i=t.options.lineNumbers,a=o.lineDiv,l=a.firstChild;function s(e){var r=e.nextSibling;return u&&w&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),r}for(var c=o.view,f=o.viewFrom,d=0;d-1&&(h=!1),jr(t,p,f,n)),h&&(L(p.lineNumber),p.lineNumber.appendChild(e.createTextNode(at(t.options,f)))),l=p.node.nextSibling}else{var m=Hr(t,p,f,n);a.insertBefore(m,l)}f+=p.size}for(;l;)l=s(l)}function Ko(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Mr(e,"gutterChanged",e)}function Yo(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Yr(e)+"px"}function Qo(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=In(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=n+"px",a=0;a=102&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=oi(t),o=r.x,i=r.y,a=ni;0===t.deltaMode&&(o=t.deltaX,i=t.deltaY,a=1);var l=e.display,s=l.scroller,c=s.scrollWidth>s.clientWidth,h=s.scrollHeight>s.clientHeight;if(o&&c||i&&h){if(i&&w&&u)e:for(var m=t.target,v=l.view;m!=s;m=m.parentNode)for(var g=0;g=0&&st(e,n.to())<=0)return r}return-1};var si=function(e,t){this.anchor=e,this.head=t};function ui(e,t,r){var n=e&&e.options.selectionsMayTouch,o=t[r];t.sort((function(e,t){return st(e.from(),t.from())})),r=W(t,o);for(var i=1;i0:s>=0){var u=dt(l.from(),a.from()),c=ft(l.to(),a.to()),f=l.empty()?a.from()==a.head:l.from()==l.head;i<=r&&--r,t.splice(--i,2,new si(f?c:u,f?u:c))}}return new li(t,r)}function ci(e,t){return new li([new si(e,t||e)],0)}function fi(e){return e.text?lt(e.from.line+e.text.length-1,Z(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function di(e,t){if(st(e,t.from)<0)return e;if(st(e,t.to)<=0)return fi(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=fi(t).ch-t.to.ch),lt(r,n)}function pi(e,t){for(var r=[],n=0;n1&&e.remove(l.line+1,h-1),e.insert(l.line+1,g)}Mr(e,"change",e,t)}function wi(e,t,r){function n(e,o,i){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Z(e.done)):void 0}function Ti(e,t,r,n){var o=e.history;o.undone.length=0;var i,a,l=+new Date;if((o.lastOp==n||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=Ci(o,o.lastOp==n)))a=Z(i.changes),0==st(t.from,t.to)&&0==st(t.from,a.to)?a.to=fi(t):i.changes.push(Oi(e,t));else{var s=Z(o.done);for(s&&s.ranges||Ai(e.sel,o.done),i={changes:[Oi(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(r),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=l,o.lastOp=o.lastSelOp=n,o.lastOrigin=o.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Li(e,t,r,n){var o=t.charAt(0);return"*"==o||"+"==o&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mi(e,t,r,n){var o=e.history,i=n&&n.origin;r==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||Li(e,i,Z(o.done),t))?o.done[o.done.length-1]=t:Ai(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=r,n&&!1!==n.clearRedo&&Ei(o.undone)}function Ai(e,t){var r=Z(t);r&&r.ranges&&r.equals(e)||t.push(e)}function ji(e,t,r,n){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),(function(r){r.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=r.markedSpans),++i}))}function Pi(e){if(!e)return null;for(var t,r=0;r-1&&(Z(l)[f]=u[f],delete u[f])}}}return n}function Di(e,t,r,n){if(n){var o=e.anchor;if(r){var i=st(t,o)<0;i!=st(r,o)<0?(o=t,t=r):i!=st(t,r)<0&&(t=r)}return new si(o,t)}return new si(r||t,t)}function zi(e,t,r,n,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),Vi(e,new li([Di(e.sel.primary(),t,r,o)],0),n)}function Fi(e,t,r){for(var n=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:l.to>t.ch))){if(o&&(be(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!s.atomic)continue;if(r){var f=s.find(n<0?1:-1),d=void 0;if((n<0?c:u)&&(f=Zi(e,f,-n,f&&f.line==t.line?i:null)),f&&f.line==t.line&&(d=st(f,r))&&(n<0?d<0:d>0))return Yi(e,f,t,n,o)}var p=s.find(n<0?-1:1);return(n<0?u:c)&&(p=Zi(e,p,n,p.line==t.line?i:null)),p?Yi(e,p,t,n,o):null}}return t}function Qi(e,t,r,n,o){var i=n||1,a=Yi(e,t,r,i,o)||!o&&Yi(e,t,r,i,!0)||Yi(e,t,r,-i,o)||!o&&Yi(e,t,r,-i,!0);return a||(e.cantEdit=!0,lt(e.first,0))}function Zi(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?ht(e,lt(t.line-1)):null:r>0&&t.ch==(n||Je(e,t.line)).text.length?t.line=0;--o)ta(e,{from:n[o].from,to:n[o].to,text:o?[""]:t.text,origin:t.origin});else ta(e,t)}}function ta(e,t){if(1!=t.text.length||""!=t.text[0]||0!=st(t.from,t.to)){var r=pi(e,t);Ti(e,t,r,e.cm?e.cm.curOp.id:NaN),oa(e,t,r,Bt(e,t));var n=[];wi(e,(function(e,r){r||-1!=W(n,e.history)||(ua(e.history,t),n.push(e.history)),oa(e,t,null,Bt(e,t))}))}}function ra(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var o,i=e.history,a=e.sel,l="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,u=0;u=0;--p){var h=d(p);if(h)return h.v}}}}function na(e,t){if(0!=t&&(e.first+=t,e.sel=new li(X(e.sel.ranges,(function(e){return new si(lt(e.anchor.line+t,e.anchor.ch),lt(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Fn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;ne.lastLine())){if(t.from.linei&&(t={from:t.from,to:lt(i,Je(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=et(e,t.from,t.to),r||(r=pi(e,t)),e.cm?ia(e.cm,t,n):bi(e,t,n),qi(e,r,q),e.cantEdit&&Qi(e,lt(e.firstLine(),0))&&(e.cantEdit=!1)}}function ia(e,t,r){var n=e.doc,o=e.display,i=t.from,a=t.to,l=!1,s=i.line;e.options.lineWrapping||(s=nt(er(Je(n,i.line))),n.iter(s,a.line+1,(function(e){if(e==o.maxLine)return l=!0,!0}))),n.sel.contains(t.from,t.to)>-1&&_e(e),bi(n,t,r,Rn(e)),e.options.lineWrapping||(n.iter(s,i.line+t.text.length,(function(e){var t=sr(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),Mt(n,i.line),zo(e,400);var u=t.text.length-(a.line-i.line)-1;t.full?Fn(e):i.line!=a.line||1!=t.text.length||yi(e.doc,t)?Fn(e,i.line,a.line+1,u):Hn(e,i.line,"text");var c=xe(e,"changes"),f=xe(e,"change");if(f||c){var d={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Mr(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}function aa(e,t,r,n,o){var i;n||(n=r),st(n,r)<0&&(r=(i=[n,r])[0],n=i[1]),"string"==typeof t&&(t=e.splitLines(t)),ea(e,{from:r,to:n,text:t,origin:o})}function la(e,t,r,n){r1||!(this.children[0]instanceof fa))){var l=[];this.collapse(l),this.children=[new fa(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=o.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=j("span",[i.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Jt(e,t.line,t,r,i)||t.line!=r.line&&Jt(e,r.line,t,r,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");It()}i.addToHistory&&Ti(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l,s=t.line,u=e.cm;if(e.iter(s,r.line+1,(function(n){u&&i.collapsed&&!u.options.lineWrapping&&er(n)==u.display.maxLine&&(l=!0),i.collapsed&&s!=t.line&&rt(n,0),zt(n,new Rt(i,s==t.line?t.ch:null,s==r.line?r.ch:null),e.cm&&e.cm.curOp),++s})),i.collapsed&&e.iter(t.line,r.line+1,(function(t){ir(e,t)&&rt(t,0)})),i.clearOnEnter&&ve(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Pt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++va,i.atomic=!0),u){if(l&&(u.curOp.updateMaxLine=!0),i.collapsed)Fn(u,t.line,r.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var c=t.line;c<=r.line;c++)Hn(u,c,"text");i.atomic&&Gi(u.doc),Mr(u,"markerAdded",u,i)}return i}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Eo(e),xe(this,"clear")){var r=this.find();r&&Mr(this,"clear",r.from,r.to)}for(var n=null,o=null,i=0;ie.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Fn(e,n,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Gi(e.doc)),e&&Mr(e,"markerCleared",e,this,n,o),t&&Co(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){var r,n;null==e&&"bookmark"==this.type&&(e=1);for(var o=0;o=0;s--)ea(this,n[s]);l?Ui(this,l):this.cm&&uo(this.cm)})),undo:Do((function(){ra(this,"undo")})),redo:Do((function(){ra(this,"redo")})),undoSelection:Do((function(){ra(this,"undo",!0)})),redoSelection:Do((function(){ra(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,r){e=ht(this,e),t=ht(this,t);var n=[],o=e.line;return this.iter(e.line,t.line+1,(function(i){var a=i.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&o!=e.line||null!=s.from&&o==t.line&&s.from>=t.ch||r&&!r(s.marker)||n.push(s.marker.parent||s.marker)}++o})),n},getAllMarks:function(){var e=[];return this.iter((function(t){var r=t.markedSpans;if(r)for(var n=0;ne)return t=e,!0;e-=i,++r})),ht(this,lt(r,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),qi(t.doc,ci(r,r)),d)for(var p=0;p=0;t--)aa(e.doc,"",n[t].from,n[t].to,"+delete");uo(e)}))}function Ya(e,t,r){var n=se(e.text,t+r,r);return n<0||n>e.text.length?null:n}function Qa(e,t,r){var n=Ya(e,t.ch,r);return null==n?null:new lt(t.line,n,r<0?"after":"before")}function Za(e,t,r,n,o){if(e){"rtl"==t.doc.direction&&(o=-o);var i=he(r,t.doc.direction);if(i){var a,l=o<0?Z(i):i[0],s=o<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var u=nn(t,r);a=o<0?r.text.length-1:0;var c=on(t,u,a).top;a=ue((function(e){return on(t,u,e).top==c}),o<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Ya(r,a,1))}else a=o<0?l.to:l.from;return new lt(n,a,s)}}return new lt(n,o<0?r.text.length:0,o<0?"before":"after")}function Xa(e,t,r,n){var o=he(t,e.doc.direction);if(!o)return Qa(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var i=de(o,r.ch,r.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(n>0?a.to>r.ch:a.from=a.from&&d>=c.begin)){var p=f?"before":"after";return new lt(r.line,d,p)}}var h=function(e,t,n){for(var i=function(e,t){return t?new lt(r.line,s(e,1),"before"):new lt(r.line,e,"after")};e>=0&&e0==(1!=a.level),u=l?n.begin:s(n.end,-1);if(a.from<=u&&u0?c.end:s(c.begin,-1);return null==v||n>0&&v==t.text.length||!(m=h(n>0?0:o.length-1,n,u(v)))?null:m}Ha.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ha.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ha.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ha.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ha.default=w?Ha.macDefault:Ha.pcDefault;var Ja={selectAll:Xi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Ka(e,(function(t){if(t.empty()){var r=Je(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line0)o=new lt(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),lt(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=Je(e.doc,o.line-1).text;a&&(o=new lt(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),lt(o.line-1,a.length-1),o,"+transpose"))}r.push(new si(o,o))}e.setSelections(r)}))},newlineAndIndent:function(e){return Io(e,(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n-1&&(st((o=a.ranges[o]).from(),t)<0||t.xRel>0)&&(st(o.to(),t)>0||t.xRel<0)?Sl(e,n,t,i):El(e,n,t,i)}function Sl(e,t,r,n){var o=e.display,i=!1,a=Ro(e,(function(t){u&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Xn(e)),ye(o.wrapper.ownerDocument,"mouseup",a),ye(o.wrapper.ownerDocument,"mousemove",c),ye(o.scroller,"dragstart",f),ye(o.scroller,"drop",a),i||(Se(t),n.addNew||zi(e.doc,r,null,null,n.extend),u&&!h||l&&9==s?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),c=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return i=!0};u&&(o.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,ve(o.wrapper.ownerDocument,"mouseup",a),ve(o.wrapper.ownerDocument,"mousemove",c),ve(o.scroller,"dragstart",f),ve(o.scroller,"drop",a),e.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}function Ol(e,t,r){if("char"==r)return new si(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new si(lt(t.line,0),ht(e.doc,lt(t.line+1,0)));var n=r(e,t);return new si(n.from,n.to)}function El(e,t,r,n){l&&Xn(e);var o=e.display,i=e.doc;Se(t);var a,s,u=i.sel,c=u.ranges;if(n.addNew&&!n.extend?(s=i.sel.contains(r),a=s>-1?c[s]:new si(r,r)):(a=i.sel.primary(),s=i.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new si(r,r)),r=Dn(e,t,!0,!0),s=-1;else{var f=Ol(e,r,n.unit);a=n.extend?Di(a,f.anchor,f.head,n.extend):f}n.addNew?-1==s?(s=c.length,Vi(i,ui(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==n.unit&&!n.extend?(Vi(i,ui(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),u=i.sel):Hi(i,s,a,$):(s=0,Vi(i,new li([a],0),$),u=i.sel);var d=r;function p(t){if(0!=st(d,t))if(d=t,"rectangle"==n.unit){for(var o=[],l=e.options.tabSize,c=H(Je(i,r.line).text,r.ch,l),f=H(Je(i,t.line).text,t.ch,l),p=Math.min(c,f),h=Math.max(c,f),m=Math.min(r.line,t.line),v=Math.min(e.lastLine(),Math.max(r.line,t.line));m<=v;m++){var g=Je(i,m).text,y=K(g,p,l);p==h?o.push(new si(lt(m,y),lt(m,y))):g.length>y&&o.push(new si(lt(m,y),lt(m,K(g,h,l))))}o.length||o.push(new si(r,r)),Vi(i,ui(e,u.ranges.slice(0,s).concat(o),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=a,_=Ol(e,t,n.unit),x=w.anchor;st(_.anchor,x)>0?(b=_.head,x=dt(w.from(),_.anchor)):(b=_.anchor,x=ft(w.to(),_.head));var k=u.ranges.slice(0);k[s]=Cl(e,new si(ht(i,x),b)),Vi(i,ui(e,k,s),$)}}var h=o.wrapper.getBoundingClientRect(),m=0;function v(t){var r=++m,a=Dn(e,t,!0,"rectangle"==n.unit);if(a)if(0!=st(a,d)){e.curOp.focus=I(),p(a);var l=no(o,i);(a.line>=l.to||a.lineh.bottom?20:0;s&&setTimeout(Ro(e,(function(){m==r&&(o.scroller.scrollTop+=s,v(t))})),50)}}function g(t){e.state.selectingText=!1,m=1/0,t&&(Se(t),o.input.focus()),ye(o.wrapper.ownerDocument,"mousemove",y),ye(o.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var y=Ro(e,(function(e){0!==e.buttons&&Le(e)?v(e):g(e)})),b=Ro(e,g);e.state.selectingText=b,ve(o.wrapper.ownerDocument,"mousemove",y),ve(o.wrapper.ownerDocument,"mouseup",b)}function Cl(e,t){var r=t.anchor,n=t.head,o=Je(e.doc,r.line);if(0==st(r,n)&&r.sticky==n.sticky)return t;var i=he(o);if(!i)return t;var a=de(i,r.ch,r.sticky),l=i[a];if(l.from!=r.ch&&l.to!=r.ch)return t;var s,u=a+(l.from==r.ch==(1!=l.level)?0:1);if(0==u||u==i.length)return t;if(n.line!=r.line)s=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=de(i,n.ch,n.sticky),f=c-a||(n.ch-r.ch)*(1==l.level?-1:1);s=c==u-1||c==u?f<0:f>0}var d=i[u+(s?-1:0)],p=s==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return r.ch==h&&r.sticky==m?t:new si(new lt(r.line,h,m),n)}function Tl(e,t,r,n){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(e){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Se(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(i>l.bottom||!xe(e,r))return Ee(t);i-=l.top-a.viewOffset;for(var s=0;s=o)return be(e,r,e,ot(e.doc,i),e.display.gutterSpecs[s].className,t),Ee(t)}}function Ll(e,t){return Tl(e,t,"gutterClick",!0)}function Ml(e,t){qr(e.display,t)||Al(e,t)||we(e,t,"contextmenu")||O||e.display.input.onContextMenu(t)}function Al(e,t){return!!xe(e,"gutterContextMenu")&&Tl(e,t,"gutterContextMenu",!1)}function jl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hn(e)}yl.prototype.compare=function(e,t,r){return this.time+gl>e&&0==st(t,this.pos)&&r==this.button};var Pl={toString:function(){return"CodeMirror.Init"}},Il={},Rl={};function Nl(e){var t=e.optionHandlers;function r(r,n,o,i){e.defaults[r]=n,o&&(t[r]=i?function(e,t,r){r!=Pl&&o(e,t,r)}:o)}e.defineOption=r,e.Init=Pl,r("value","",(function(e,t){return e.setValue(t)}),!0),r("mode",null,(function(e,t){e.doc.modeOption=t,vi(e)}),!0),r("indentUnit",2,vi,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(e){gi(e),hn(e),Fn(e)}),!0),r("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter((function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,r.push(lt(n,i))}n++}));for(var o=r.length-1;o>=0;o--)aa(e.doc,t,r[o],lt(r[o].line,r[o].ch+t.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Pl&&e.refresh()})),r("specialCharPlaceholder",gr,(function(e){return e.refresh()}),!0),r("electricChars",!0),r("inputStyle",b?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),r("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),r("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",(function(e){jl(e),ei(e)}),!0),r("keyMap","default",(function(e,t,r){var n=Ga(t),o=r!=Pl&&Ga(r);o&&o.detach&&o.detach(e,n),n.attach&&n.attach(e,o||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,zl,!0),r("gutters",[],(function(e,t){e.display.gutterSpecs=Xo(t,e.options.lineNumbers),ei(e)}),!0),r("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?In(e.display)+"px":"0",e.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(e){return _o(e)}),!0),r("scrollbarStyle","native",(function(e){So(e),_o(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Xo(e.options.gutters,t),ei(e)}),!0),r("firstLineNumber",1,ei,!0),r("lineNumberFormatter",(function(e){return e}),ei,!0),r("showCursorWhenSelecting",!1,qn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(e,t){"nocursor"==t&&(eo(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),r("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),r("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),r("dragDrop",!0,Dl),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,qn,!0),r("singleCursorHeightPerLine",!0,qn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,gi,!0),r("addModeClass",!1,gi,!0),r("pollInterval",100),r("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),r("historyEventDelay",1250),r("viewportMargin",10,(function(e){return e.refresh()}),!0),r("maxHighlightLength",1e4,gi,!0),r("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),r("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),r("autofocus",null),r("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),r("phrases",null)}function Dl(e,t,r){if(!t!=!(r&&r!=Pl)){var n=e.display.dragFunctions,o=t?ve:ye;o(e.display.scroller,"dragstart",n.start),o(e.display.scroller,"dragenter",n.enter),o(e.display.scroller,"dragover",n.over),o(e.display.scroller,"dragleave",n.leave),o(e.display.scroller,"drop",n.drop)}}function zl(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),ur(e)),Nn(e),Fn(e),hn(e),setTimeout((function(){return _o(e)}),100)}function Fl(e,t){var r=this;if(!(this instanceof Fl))return new Fl(e,t);this.options=t=t?F(t):{},F(Il,t,!1);var n=t.value;"string"==typeof n?n=new Oa(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var o=new Fl.inputStyles[t.inputStyle](this),i=this.display=new ti(e,n,o,t);for(var a in i.wrapper.CodeMirror=this,jl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),So(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!b&&i.input.focus(),l&&s<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),Hl(this),Pa(),Eo(this),this.curOp.forceUpdate=!0,_i(this,n),t.autofocus&&!b||this.hasFocus()?setTimeout((function(){r.hasFocus()&&!r.state.focused&&Jn(r)}),20):eo(this),Rl)Rl.hasOwnProperty(a)&&Rl[a](this,t[a],Pl);Zo(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}ve(t.scroller,"touchstart",(function(o){if(!we(e,o)&&!i(o)&&!Ll(e,o)){t.input.ensurePolled(),clearTimeout(r);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-n.end<=300?n:null},1==o.touches.length&&(t.activeTouch.left=o.touches[0].pageX,t.activeTouch.top=o.touches[0].pageY)}})),ve(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),ve(t.scroller,"touchend",(function(r){var n=t.activeTouch;if(n&&!qr(t,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var i,l=e.coordsChar(t.activeTouch,"page");i=!n.prev||a(n,n.prev)?new si(l,l):!n.prev.prev||a(n,n.prev.prev)?e.findWordAt(l):new si(lt(l.line,0),ht(e.doc,lt(l.line+1,0))),e.setSelection(i.anchor,i.head),e.focus(),Se(r)}o()})),ve(t.scroller,"touchcancel",o),ve(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(mo(e,t.scroller.scrollTop),go(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),ve(t.scroller,"mousewheel",(function(t){return ai(e,t)})),ve(t.scroller,"DOMMouseScroll",(function(t){return ai(e,t)})),ve(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Ce(t)},over:function(t){we(e,t)||(La(e,t),Ce(t))},start:function(t){return Ta(e,t)},drop:Ro(e,Ca),leave:function(t){we(e,t)||Ma(e)}};var u=t.input.getField();ve(u,"keyup",(function(t){return pl.call(e,t)})),ve(u,"keydown",Ro(e,fl)),ve(u,"keypress",Ro(e,hl)),ve(u,"focus",(function(t){return Jn(e,t)})),ve(u,"blur",(function(t){return eo(e,t)}))}Fl.defaults=Il,Fl.optionHandlers=Rl;var Bl=[];function Wl(e,t,r,n){var o,i=e.doc;null==r&&(r="add"),"smart"==r&&(i.mode.indent?o=_t(e,t).state:r="prev");var a=e.options.tabSize,l=Je(i,t),s=H(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(n||/\S/.test(l.text)){if("smart"==r&&((u=i.mode.indent(o,l.text.slice(c.length),l.text))==V||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>i.first?H(Je(i,t-1).text,null,a):0:"add"==r?u=s+e.options.indentUnit:"subtract"==r?u=s-e.options.indentUnit:"number"==typeof r&&(u=s+r),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)d+=a,f+="\t";if(da,s=Ne(t),u=null;if(l&&n.ranges.length>1)if(Ul&&Ul.text.join("\n")==t){if(n.ranges.length%Ul.text.length==0){u=[];for(var c=0;c=0;d--){var p=n.ranges[d],h=p.from(),m=p.to();p.empty()&&(r&&r>0?h=lt(h.line,h.ch-r):e.state.overwrite&&!l?m=lt(m.line,Math.min(Je(i,m.line).text.length,m.ch+Z(s).length)):l&&Ul&&Ul.lineWise&&Ul.text.join("\n")==s.join("\n")&&(h=m=lt(h.line,0)));var v={from:h,to:m,text:u?u[d%u.length]:s,origin:o||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};ea(e.doc,v),Mr(e,"inputRead",e,v)}t&&!l&&Gl(e,t),uo(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function $l(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Io(t,(function(){return ql(t,r,0,null,"paste")})),!0}function Gl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var o=r.ranges[n];if(!(o.head.ch>100||n&&r.ranges[n-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var l=0;l-1){a=Wl(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Je(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Wl(e,o.head.line,"smart"));a&&Mr(e,"electricInput",e,o.head.line)}}}function Kl(e){for(var t=[],r=[],n=0;nr&&(Wl(this,o.head.line,e,!0),r=o.head.line,n==this.doc.sel.primIndex&&uo(this));else{var i=o.from(),a=o.to(),l=Math.max(r,i.line);r=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s0&&Hi(this.doc,n,new si(i,u[n].to()),q)}}})),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,lt(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,r=wt(this,Je(this.doc,e.line)),n=0,o=(r.length-1)/2,i=e.ch;if(0==i)t=r[2];else for(;;){var a=n+o>>1;if((a?r[2*a-1]:0)>=i)o=a;else{if(!(r[2*a+1]i&&(e=i,o=!0),n=Je(this.doc,e)}else n=e;return yn(this,n,{top:0,left:0},t||"page",r||o).top+(o?this.doc.height-lr(n):0)},defaultTextHeight:function(){return An(this.display)},defaultCharWidth:function(){return jn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,o){var i=this.display,a=(e=_n(this,ht(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==n)a=e.top;else if("above"==n||"near"==n){var s=Math.max(i.wrapper.clientHeight,this.doc.height),u=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>u&&(l=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(l=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?l=0:"middle"==o&&(l=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),r&&ao(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:No(fl),triggerOnKeyPress:No(hl),triggerOnKeyUp:pl,triggerOnMouseDown:No(wl),execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e].call(null,this)},triggerElectric:No((function(e){Gl(this,e)})),findPosH:function(e,t,r,n){var o=1;t<0&&(o=-1,t=-t);for(var i=ht(this.doc,e),a=0;a0&&a(t.charAt(r-1));)--r;for(;n.5||this.options.lineWrapping)&&Nn(this),be(this,"refresh",this)})),swapDoc:No((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),_i(this,e),hn(this),this.display.input.reset(),co(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Mr(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,n,o){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=o},e.registerGlobalHelper=function(t,n,o,i){e.registerHelper(t,n,i),r[t]._global.push({pred:o,val:i})}}function Xl(e,t,r,n,o){var i=t,a=r,l=Je(e,t.line),s=o&&"rtl"==e.direction?-r:r;function u(){var r=t.line+s;return!(r=e.first+e.size)&&(t=new lt(r,t.ch,t.sticky),l=Je(e,r))}function c(i){var a;if("codepoint"==n){var c=l.text.charCodeAt(t.ch+(r>0?0:-1));if(isNaN(c))a=null;else{var f=r>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new lt(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(f?2:1))),-r)}}else a=o?Xa(e.cm,l,t,r):Qa(l,t,r);if(null==a){if(i||!u())return!1;t=Za(o,e.cm,l,t.line,s)}else t=a;return!0}if("char"==n||"codepoint"==n)c();else if("column"==n)c(!0);else if("word"==n||"group"==n)for(var f=null,d="group"==n,p=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(r<0)||c(!h);h=!1){var m=l.text.charAt(t.ch)||"\n",v=oe(m,p)?"w":d&&"\n"==m?"n":!d||/\s/.test(m)?null:"p";if(!d||h||v||(v="s"),f&&f!=v){r<0&&(r=1,c(),t.sticky="after");break}if(v&&(f=v),r>0&&!c(!h))break}var g=Qi(e,t,i,a,!0);return ut(i,g)&&(g.hitSide=!0),g}function Jl(t,r,n,o){var i,a,l=t.doc,s=r.left;if("page"==o){var u=Math.min(t.display.wrapper.clientHeight,window.innerHeight||e.documentElement.clientHeight),c=Math.max(u-.5*An(t.display),3);i=(n>0?r.bottom:r.top)+n*c}else"line"==o&&(i=n>0?r.bottom+3:r.top-3);for(;(a=Sn(t,s,i)).outside;){if(n<0?i<=0:i>=l.height){a.hitSide=!0;break}i+=5*n}return a}var es=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ts(e,t){var r=rn(e,t.line);if(!r||r.hidden)return null;var n=Je(e.doc,t.line),o=Jr(r,n,t.line),i=he(n,e.doc.direction),a="left";i&&(a=de(i,t.ch)%2?"right":"left");var l=sn(o.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function rs(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ns(e,t){return t&&(e.bad=!0),e}function os(e,t,r,n,o){var i="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(i+=l,s&&(i+=l),a=s=!1)}function f(e){e&&(c(),i+=e)}function d(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void f(r);var i,p=t.getAttribute("cm-marker");if(p){var h=e.findMarks(lt(n,0),lt(o+1,0),u(+p));return void(h.length&&(i=h[0].find(0))&&f(et(e.doc,i.from,i.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var v=0;v=t.display.viewTo||i.line=t.display.viewFrom&&ts(t,o)||{node:s[0].measure.map[2],offset:0},c=i.linen.firstLine()&&(a=lt(a.line-1,Je(n.doc,a.line-1).length)),l.ch==Je(n.doc,l.line).text.length&&l.lineo.viewTo-1)return!1;a.line==o.viewFrom||0==(e=zn(n,a.line))?(t=nt(o.view[0].line),r=o.view[0].node):(t=nt(o.view[e].line),r=o.view[e-1].node.nextSibling);var s,u,c=zn(n,l.line);if(c==o.view.length-1?(s=o.viewTo-1,u=o.lineDiv.lastChild):(s=nt(o.view[c+1].line)-1,u=o.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(os(n,r,u,t,s)),d=et(n.doc,lt(t,0),lt(s,Je(n.doc,s).text.length));f.length>1&&d.length>1;)if(Z(f)==Z(d))f.pop(),d.pop(),s--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],v=d[0],g=Math.min(m.length,v.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var _=lt(t,p),x=lt(s,d.length?Z(d).length-h:0);return f.length>1||f[0]||st(_,x)?(aa(n.doc,f,_,x,"+input"),!0):void 0},es.prototype.ensurePolled=function(){this.forceCompositionEnd()},es.prototype.reset=function(){this.forceCompositionEnd()},es.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},es.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},es.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Io(this.cm,(function(){return Fn(e.cm)}))},es.prototype.setUneditable=function(e){e.contentEditable="false"},es.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ro(this.cm,ql)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},es.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},es.prototype.onContextMenu=function(){},es.prototype.resetPosition=function(){},es.prototype.needsContentAttribute=!0;var ls=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};function ss(t,r){if((r=r?F(r):{}).value=t.value,!r.tabindex&&t.tabIndex&&(r.tabindex=t.tabIndex),!r.placeholder&&t.placeholder&&(r.placeholder=t.placeholder),null==r.autofocus){var n=I();r.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==e.body}function o(){t.value=s.getValue()}var i;if(t.form&&(ve(t.form,"submit",o),!r.leaveSubmitMethodAlone)){var a=t.form;i=a.submit;try{var l=a.submit=function(){o(),a.submit=i,a.submit(),a.submit=l}}catch(e){}}r.finishInit=function(e){e.save=o,e.getTextArea=function(){return t},e.toTextArea=function(){e.toTextArea=isNaN,o(),t.parentNode.removeChild(e.getWrapperElement()),t.style.display="",t.form&&(ye(t.form,"submit",o),r.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Fl((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),r);return s}function us(e){e.off=ye,e.on=ve,e.wheelEventPixels=ii,e.Doc=Oa,e.splitLines=Ne,e.countColumn=H,e.findColumn=K,e.isWordChar=ne,e.Pass=V,e.signal=be,e.Line=cr,e.changeEnd=fi,e.scrollbarModel=ko,e.Pos=lt,e.cmpPos=st,e.modes=Be,e.mimeModes=We,e.resolveMode=qe,e.getMode=$e,e.modeExtensions=Ge,e.extendMode=Ke,e.copyState=Ye,e.startState=Ze,e.innerMode=Qe,e.commands=Ja,e.keyMap=Ha,e.keyName=$a,e.isModifierKey=Va,e.lookupKey=Ua,e.normalizeKeyMap=Wa,e.StringStream=Xe,e.SharedTextMarker=ba,e.TextMarker=ga,e.LineWidget=pa,e.e_preventDefault=Se,e.e_stopPropagation=Oe,e.e_stop=Ce,e.addClass=R,e.contains=P,e.rmClass=T,e.keyNames=Na}ls.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var o=this.textarea;function i(e){if(!we(n,e)){if(n.somethingSelected())Vl({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var t=Kl(n);Vl({lineWise:!0,text:t.text}),"cut"==e.type?n.setSelections(t.ranges,null,q):(r.prevInput="",o.value=t.text.join("\n"),D(o))}"cut"==e.type&&(n.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(o.style.width="0px"),ve(o,"input",(function(){l&&s>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()})),ve(o,"paste",(function(e){we(n,e)||$l(e,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),ve(o,"cut",i),ve(o,"copy",i),ve(e.scroller,"paste",(function(t){if(!qr(e,t)&&!we(n,t)){if(!o.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,o.dispatchEvent(i)}})),ve(e.lineSpace,"selectstart",(function(t){qr(e,t)||Se(t)})),ve(o,"compositionstart",(function(){var e=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),ve(o,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},ls.prototype.createField=function(e){this.wrapper=Ql(),this.textarea=this.wrapper.firstChild},ls.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ls.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=$n(e);if(e.options.moveInputWithCursor){var o=_n(e,r.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return n},ls.prototype.showSelection=function(e){var t=this.cm.display;M(t.cursorDiv,e.cursors),M(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ls.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&D(this.textarea),l&&s>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",l&&s>=9&&(this.hasSelection=null))}},ls.prototype.getField=function(){return this.textarea},ls.prototype.supportsTouch=function(){return!1},ls.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},ls.prototype.blur=function(){this.textarea.blur()},ls.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ls.prototype.receivedFocus=function(){this.slowPoll()},ls.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ls.prototype.fastPoll=function(){var e=!1,t=this;function r(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,r))}t.pollingFast=!0,t.polling.set(20,r)},ls.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||De(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=r.value;if(o==n&&!t.somethingSelected())return!1;if(l&&s>=9&&this.hasSelection===o||w&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||n||(n="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(n.length,o.length);a1e3||o.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ls.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ls.prototype.onKeyPress=function(){l&&s>=9&&(this.hasSelection=null),this.fastPoll()},ls.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,o=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=Dn(r,e),a=n.scroller.scrollTop;if(i&&!p){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(i)&&Ro(r,Vi)(r.doc,ci(i),q);var c,f=o.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",u&&(c=window.scrollY),n.input.focus(),u&&window.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=g,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),l&&s>=9&&v(),O){Ce(e);var m=function(){ye(window,"mouseup",m),setTimeout(g,20)};ve(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=o.selectionStart){var e=r.somethingSelected(),i="\u200b"+(e?o.value:"");o.value="\u21da",o.value=i,t.prevInput=e?"":"\u200b",o.selectionStart=1,o.selectionEnd=i.length,n.selForContextMenu=r.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,o.style.cssText=f,l&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),null!=o.selectionStart)){(!l||l&&s<9)&&v();var e=0,i=function(){n.selForContextMenu==r.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"\u200b"==t.prevInput?Ro(r,Xi)(r):e++<10?n.detectingSelectAll=setTimeout(i,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(i,200)}}},ls.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ls.prototype.setUneditable=function(){},ls.prototype.needsContentAttribute=!1,Nl(Fl),Zl(Fl);var cs="iter insert remove copy getEditor constructor".split(" ");for(var fs in Oa.prototype)Oa.prototype.hasOwnProperty(fs)&&W(cs,fs)<0&&(Fl.prototype[fs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Oa.prototype[fs]));return ke(Oa),Fl.inputStyles={textarea:ls,contenteditable:es},Fl.defineMode=function(e){Fl.defaults.mode||"null"==e||(Fl.defaults.mode=e),Ue.apply(this,arguments)},Fl.defineMIME=Ve,Fl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Fl.defineMIME("text/plain","null"),Fl.defineExtension=function(e,t){Fl.prototype[e]=t},Fl.defineDocExtension=function(e,t){Oa.prototype[e]=t},Fl.fromTextArea=ss,us(Fl),Fl.version="5.65.5",Fl}()},7530:(e,t,r)=>{!function(e){"use strict";function t(e){for(var t={},r=0;r*\/]/.test(r)?x(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?x(null,r):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=O),x("variable callee","variable")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),x("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):e.match(/^\w+-/)?x("meta","meta"):void 0}function S(e){return function(t,r){for(var n,o=!1;null!=(n=t.next());){if(n==e&&!o){")"==e&&t.backUp(1);break}o=!o&&"\\"==n}return(n==e||!o&&")"!=e)&&(r.tokenize=null),x("string","string")}}function O(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=S(")"),x(null,"(")}function E(e,t,r){this.type=e,this.indent=t,this.prev=r}function C(e,t,r,n){return e.context=new E(r,t.indentation()+(!1===n?0:a),e.context),r}function T(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function L(e,t,r){return j[r.context.type](e,t,r)}function M(e,t,r,n){for(var o=n||1;o>0;o--)r.context=r.context.prev;return L(e,t,r)}function A(e){var t=e.current().toLowerCase();i=g.hasOwnProperty(t)?"atom":v.hasOwnProperty(t)?"keyword":"variable"}var j={top:function(e,t,r){if("{"==e)return C(r,t,"block");if("}"==e&&r.context.prev)return T(r);if(w&&/@component/i.test(e))return C(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return C(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return C(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return C(r,t,"at");if("hash"==e)i="builtin";else if("word"==e)i="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return C(r,t,"interpolation");if(":"==e)return"pseudo";if(y&&"("==e)return C(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var n=t.current().toLowerCase();return d.hasOwnProperty(n)?(i="property","maybeprop"):p.hasOwnProperty(n)?(i=_?"string-2":"property","maybeprop"):y?(i=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==e?"block":y||"hash"!=e&&"qualifier"!=e?j.top(e,t,r):(i="error","block")},maybeprop:function(e,t,r){return":"==e?C(r,t,"prop"):L(e,t,r)},prop:function(e,t,r){if(";"==e)return T(r);if("{"==e&&y)return C(r,t,"propBlock");if("}"==e||"{"==e)return M(e,t,r);if("("==e)return C(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)A(t);else if("interpolation"==e)return C(r,t,"interpolation")}else i+=" error";return"prop"},propBlock:function(e,t,r){return"}"==e?T(r):"word"==e?(i="property","maybeprop"):r.context.type},parens:function(e,t,r){return"{"==e||"}"==e?M(e,t,r):")"==e?T(r):"("==e?C(r,t,"parens"):"interpolation"==e?C(r,t,"interpolation"):("word"==e&&A(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(i="variable-3",r.context.type):L(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&s.hasOwnProperty(t.current())?(i="tag",r.context.type):j.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return C(r,t,"atBlock_parens");if("}"==e||";"==e)return M(e,t,r);if("{"==e)return T(r)&&C(r,t,y?"block":"top");if("interpolation"==e)return C(r,t,"interpolation");if("word"==e){var n=t.current().toLowerCase();i="only"==n||"not"==n||"and"==n||"or"==n?"keyword":u.hasOwnProperty(n)?"attribute":c.hasOwnProperty(n)?"property":f.hasOwnProperty(n)?"keyword":d.hasOwnProperty(n)?"property":p.hasOwnProperty(n)?_?"string-2":"property":g.hasOwnProperty(n)?"atom":v.hasOwnProperty(n)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?M(e,t,r):"{"==e?T(r)&&C(r,t,y?"block":"top",!1):("word"==e&&(i="error"),r.context.type)},atBlock_parens:function(e,t,r){return")"==e?T(r):"{"==e||"}"==e?M(e,t,r,2):j.atBlock(e,t,r)},restricted_atBlock_before:function(e,t,r){return"{"==e?C(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(i="variable","restricted_atBlock_before"):L(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,T(r)):"word"==e?(i="@font-face"==r.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!m.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(i="variable","keyframes"):"{"==e?C(r,t,"top"):L(e,t,r)},at:function(e,t,r){return";"==e?T(r):"{"==e||"}"==e?M(e,t,r):("word"==e?i="tag":"hash"==e&&(i="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?T(r):"{"==e||";"==e?M(e,t,r):("word"==e?i="variable":"variable"!=e&&"("!=e&&")"!=e&&(i="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:n?"block":"top",stateArg:null,context:new E(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||k)(e,t);return r&&"object"==typeof r&&(o=r[1],r=r[0]),i=r,"comment"!=o&&(t.state=j[t.state](o,e,t)),i},indent:function(e,t){var r=e.context,n=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=n&&")"!=n||(r=r.prev),r.prev&&("}"!=n||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=n||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=n||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-a)):o=(r=r.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var r=["domain","regexp","url","url-prefix"],n=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=t(o),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],l=t(a),s=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],u=t(s),c=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],f=t(c),d=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],p=t(d),h=t(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),m=t(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),v=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],g=t(v),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=t(y),w=r.concat(o).concat(a).concat(s).concat(c).concat(d).concat(v).concat(y);function _(e,t){for(var r,n=!1;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}e.registerHelper("hintWords","css",w),e.defineMIME("text/css",{documentTypes:n,mediaTypes:i,mediaFeatures:l,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:g,valueKeywords:b,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:l,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:g,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:l,mediaValueKeywords:u,propertyKeywords:f,nonStandardPropertyKeywords:p,colorKeywords:g,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=_,_(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:n,mediaTypes:i,mediaFeatures:l,propertyKeywords:f,nonStandardPropertyKeywords:p,fontProperties:h,counterDescriptors:m,colorKeywords:g,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=_,_(e,t))}},name:"css",helperType:"gss"})}(r(3458))},372:(e,t,r)=>{!function(e){"use strict";var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function r(e,t,r){var n=e.current(),o=n.search(t);return o>-1?e.backUp(n.length-o):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),r}var n={};function o(e){var t=n[e];return t||(n[e]=new RegExp("\\s+"+e+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}function i(e,t){var r=e.match(o(t));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function a(e,t){return new RegExp((t?"^":"")+"","i")}function l(e,t){for(var r in e)for(var n=t[r]||(t[r]=[]),o=e[r],i=o.length-1;i>=0;i--)n.unshift(o[i])}function s(e,t){for(var r=0;r=0;d--)u.script.unshift(["type",f[d].matches,f[d].mode]);function p(t,o){var l,c=i.token(t,o.htmlState),f=/\btag\b/.test(c);if(f&&!/[<>\s\/]/.test(t.current())&&(l=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(l))o.inTag=l+" ";else if(o.inTag&&f&&/>$/.test(t.current())){var d=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var h=">"==t.current()&&s(u[d[1]],d[2]),m=e.getMode(n,h),v=a(d[1],!0),g=a(d[1],!1);o.token=function(e,t){return e.match(v,!1)?(t.token=p,t.localState=t.localMode=null,null):r(e,g,t.localMode.token(e,t.localState))},o.localMode=m,o.localState=e.startState(m,i.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=t.current(),t.eol()&&(o.inTag+=" "));return c}return{startState:function(){return{token:p,inTag:null,localMode:null,localState:null,htmlState:e.startState(i)}},copyState:function(t){var r;return t.localState&&(r=e.copyState(t.localMode,t.localState)),{token:t.token,inTag:t.inTag,localMode:t.localMode,localState:r,htmlState:e.copyState(i,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,r,n){return!t.localMode||/^\s*<\//.test(r)?i.indent(t.htmlState,r,n):t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||i}}}}),"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")}(r(3458),r(2941),r(2215),r(7530))},2215:(e,t,r)=>{!function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,o,i=t.indentUnit,a=r.statementIndent,l=r.jsonld,s=r.json||l,u=!1!==r.trackScope,c=r.typescript,f=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),o=e("keyword d"),i=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:o,break:o,continue:o,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function v(e,t,r){return n=e,o=r,t}function g(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=y(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==r&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return v(r);if("="==r&&e.eat(">"))return v("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==r)return e.eat("*")?(t.tokenize=b,b(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):ot(e,t,1)?(m(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==r)return t.tokenize=w,w(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==r&&e.eatWhile(f))return v("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?v("."):v("operator","operator",e.current());if(f.test(r)){e.eatWhile(f);var n=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(n)){var o=d[n];return v(o.type,o.style,n)}if("async"==n&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",n)}return v("variable","variable",n)}}function y(e){return function(t,r){var n,o=!1;if(l&&"@"==t.peek()&&t.match(h))return r.tokenize=g,v("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||o);)o=!o&&"\\"==n;return o||(r.tokenize=g),v("string","string")}}function b(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=g;break}n="*"==r}return v("comment","comment")}function w(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=g;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}var _="([{}])";function x(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(c){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var o=0,i=!1,a=r-1;a>=0;--a){var l=e.string.charAt(a),s=_.indexOf(l);if(s>=0&&s<3){if(!o){++a;break}if(0==--o){"("==l&&(i=!0);break}}else if(s>=3&&s<6)++o;else if(f.test(l))i=!0;else if(/["'\/`]/.test(l))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==l&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(t.fatArrowAt=a)}}var k={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function S(e,t,r,n,o,i){this.indented=e,this.column=t,this.type=r,this.prev=o,this.info=i,null!=n&&(this.align=n)}function O(e,t){if(!u)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function E(e,t,r,n,o){var i=e.cc;for(C.state=e,C.stream=o,C.marked=null,C.cc=i,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((i.length?i.pop():s?q:U)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return C.marked?C.marked:"variable"==r&&O(e,n)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function T(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function L(){return T.apply(null,arguments),!0}function M(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function A(e){var t=C.state;if(C.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=j(e,t.context);if(null!=n)return void(t.context=n)}else if(!M(e,t.localVars))return void(t.localVars=new R(e,t.localVars));r.globalVars&&!M(e,t.globalVars)&&(t.globalVars=new R(e,t.globalVars))}}function j(e,t){if(t){if(t.block){var r=j(e,t.prev);return r?r==t.prev?t:new I(r,t.vars,!0):null}return M(e,t.vars)?t:new I(t.prev,new R(e,t.vars),!1)}return null}function P(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function I(e,t,r){this.prev=e,this.vars=t,this.block=r}function R(e,t){this.name=e,this.next=t}var N=new R("this",new R("arguments",null));function D(){C.state.context=new I(C.state.context,C.state.localVars,!1),C.state.localVars=N}function z(){C.state.context=new I(C.state.context,C.state.localVars,!0),C.state.localVars=null}function F(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function H(e,t){var r=function(){var r=C.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var o=r.lexical;o&&")"==o.type&&o.align;o=o.prev)n=o.indented;r.lexical=new S(n,C.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function B(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function W(e){function t(r){return r==e?L():";"==e||"}"==r||")"==r||"]"==r?T():L(t)}return t}function U(e,t){return"var"==e?L(H("vardef",t),Te,W(";"),B):"keyword a"==e?L(H("form"),G,U,B):"keyword b"==e?L(H("form"),U,B):"keyword d"==e?C.stream.match(/^\s*$/,!1)?L():L(H("stat"),Y,W(";"),B):"debugger"==e?L(W(";")):"{"==e?L(H("}"),z,de,B,F):";"==e?L():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==B&&C.state.cc.pop()(),L(H("form"),G,U,B,Ie)):"function"==e?L(ze):"for"==e?L(H("form"),z,Re,U,F,B):"class"==e||c&&"interface"==t?(C.marked="keyword",L(H("form","class"==e?e:t),Ue,B)):"variable"==e?c&&"declare"==t?(C.marked="keyword",L(U)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?L(tt):"type"==t?L(He,W("operator"),ge,W(";")):L(H("form"),Le,W("{"),H("}"),de,B,B)):c&&"namespace"==t?(C.marked="keyword",L(H("form"),q,U,B)):c&&"abstract"==t?(C.marked="keyword",L(U)):L(H("stat"),ie):"switch"==e?L(H("form"),G,W("{"),H("}","switch"),z,de,B,B,F):"case"==e?L(q,W(":")):"default"==e?L(W(":")):"catch"==e?L(H("form"),D,V,U,B,F):"export"==e?L(H("stat"),Ge,B):"import"==e?L(H("stat"),Ye,B):"async"==e?L(U):"@"==t?L(q,U):T(H("stat"),q,W(";"),B)}function V(e){if("("==e)return L(Be,W(")"))}function q(e,t){return K(e,t,!1)}function $(e,t){return K(e,t,!0)}function G(e){return"("!=e?T():L(H(")"),Y,W(")"),B)}function K(e,t,r){if(C.state.fatArrowAt==C.stream.start){var n=r?te:ee;if("("==e)return L(D,H(")"),ce(Be,")"),B,W("=>"),n,F);if("variable"==e)return T(D,Le,W("=>"),n,F)}var o=r?Z:Q;return k.hasOwnProperty(e)?L(o):"function"==e?L(ze,o):"class"==e||c&&"interface"==t?(C.marked="keyword",L(H("form"),We,B)):"keyword c"==e||"async"==e?L(r?$:q):"("==e?L(H(")"),Y,W(")"),B,o):"operator"==e||"spread"==e?L(r?$:q):"["==e?L(H("]"),et,B,o):"{"==e?fe(le,"}",null,o):"quasi"==e?T(X,o):"new"==e?L(re(r)):L()}function Y(e){return e.match(/[;\}\)\],]/)?T():T(q)}function Q(e,t){return","==e?L(Y):Z(e,t,!1)}function Z(e,t,r){var n=0==r?Q:Z,o=0==r?q:$;return"=>"==e?L(D,r?te:ee,F):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?L(n):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?L(H(">"),ce(ge,">"),B,n):"?"==t?L(q,W(":"),o):L(o):"quasi"==e?T(X,n):";"!=e?"("==e?fe($,")","call",n):"."==e?L(ae,n):"["==e?L(H("]"),Y,W("]"),B,n):c&&"as"==t?(C.marked="keyword",L(ge,n)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),L(o)):void 0:void 0}function X(e,t){return"quasi"!=e?T():"${"!=t.slice(t.length-2)?L(X):L(Y,J)}function J(e){if("}"==e)return C.marked="string-2",C.state.tokenize=w,L(X)}function ee(e){return x(C.stream,C.state),T("{"==e?U:q)}function te(e){return x(C.stream,C.state),T("{"==e?U:$)}function re(e){return function(t){return"."==t?L(e?oe:ne):"variable"==t&&c?L(Oe,e?Z:Q):T(e?$:q)}}function ne(e,t){if("target"==t)return C.marked="keyword",L(Q)}function oe(e,t){if("target"==t)return C.marked="keyword",L(Z)}function ie(e){return":"==e?L(B,U):T(Q,W(";"),B)}function ae(e){if("variable"==e)return C.marked="property",L()}function le(e,t){return"async"==e?(C.marked="property",L(le)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?L(se):(c&&C.state.fatArrowAt==C.stream.start&&(r=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+r[0].length),L(ue))):"number"==e||"string"==e?(C.marked=l?"property":C.style+" property",L(ue)):"jsonld-keyword"==e?L(ue):c&&P(t)?(C.marked="keyword",L(le)):"["==e?L(q,pe,W("]"),ue):"spread"==e?L($,ue):"*"==t?(C.marked="keyword",L(le)):":"==e?T(ue):void 0;var r}function se(e){return"variable"!=e?T(ue):(C.marked="property",L(ze))}function ue(e){return":"==e?L($):"("==e?T(ze):void 0}function ce(e,t,r){function n(o,i){if(r?r.indexOf(o)>-1:","==o){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),L((function(r,n){return r==t||n==t?T():T(e)}),n)}return o==t||i==t?L():r&&r.indexOf(";")>-1?T(e):L(W(t))}return function(r,o){return r==t||o==t?L():T(e,n)}}function fe(e,t,r){for(var n=3;n"),ge):"quasi"==e?T(_e,Se):void 0}function ye(e){if("=>"==e)return L(ge)}function be(e){return e.match(/[\}\)\]]/)?L():","==e||";"==e?L(be):T(we,be)}function we(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",L(we)):"?"==t||"number"==e||"string"==e?L(we):":"==e?L(ge):"["==e?L(W("variable"),he,W("]"),we):"("==e?T(Fe,we):e.match(/[;\}\)\],]/)?void 0:L()}function _e(e,t){return"quasi"!=e?T():"${"!=t.slice(t.length-2)?L(_e):L(ge,xe)}function xe(e){if("}"==e)return C.marked="string-2",C.state.tokenize=w,L(_e)}function ke(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?L(ke):":"==e?L(ge):"spread"==e?L(ke):T(ge)}function Se(e,t){return"<"==t?L(H(">"),ce(ge,">"),B,Se):"|"==t||"."==e||"&"==t?L(ge):"["==e?L(ge,W("]"),Se):"extends"==t||"implements"==t?(C.marked="keyword",L(ge)):"?"==t?L(ge,W(":"),ge):void 0}function Oe(e,t){if("<"==t)return L(H(">"),ce(ge,">"),B,Se)}function Ee(){return T(ge,Ce)}function Ce(e,t){if("="==t)return L(ge)}function Te(e,t){return"enum"==t?(C.marked="keyword",L(tt)):T(Le,pe,je,Pe)}function Le(e,t){return c&&P(t)?(C.marked="keyword",L(Le)):"variable"==e?(A(t),L()):"spread"==e?L(Le):"["==e?fe(Ae,"]"):"{"==e?fe(Me,"}"):void 0}function Me(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?L(Le):"}"==e?T():"["==e?L(q,W("]"),W(":"),Me):L(W(":"),Le,je)):(A(t),L(je))}function Ae(){return T(Le,je)}function je(e,t){if("="==t)return L($)}function Pe(e){if(","==e)return L(Te)}function Ie(e,t){if("keyword b"==e&&"else"==t)return L(H("form","else"),U,B)}function Re(e,t){return"await"==t?L(Re):"("==e?L(H(")"),Ne,B):void 0}function Ne(e){return"var"==e?L(Te,De):"variable"==e?L(De):T(De)}function De(e,t){return")"==e?L():";"==e?L(De):"in"==t||"of"==t?(C.marked="keyword",L(q,De)):T(q,De)}function ze(e,t){return"*"==t?(C.marked="keyword",L(ze)):"variable"==e?(A(t),L(ze)):"("==e?L(D,H(")"),ce(Be,")"),B,me,U,F):c&&"<"==t?L(H(">"),ce(Ee,">"),B,ze):void 0}function Fe(e,t){return"*"==t?(C.marked="keyword",L(Fe)):"variable"==e?(A(t),L(Fe)):"("==e?L(D,H(")"),ce(Be,")"),B,me,F):c&&"<"==t?L(H(">"),ce(Ee,">"),B,Fe):void 0}function He(e,t){return"keyword"==e||"variable"==e?(C.marked="type",L(He)):"<"==t?L(H(">"),ce(Ee,">"),B):void 0}function Be(e,t){return"@"==t&&L(q,Be),"spread"==e?L(Be):c&&P(t)?(C.marked="keyword",L(Be)):c&&"this"==e?L(pe,je):T(Le,pe,je)}function We(e,t){return"variable"==e?Ue(e,t):Ve(e,t)}function Ue(e,t){if("variable"==e)return A(t),L(Ve)}function Ve(e,t){return"<"==t?L(H(">"),ce(Ee,">"),B,Ve):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),L(c?ge:q,Ve)):"{"==e?L(H("}"),qe,B):void 0}function qe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&P(t))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",L(qe)):"variable"==e||"keyword"==C.style?(C.marked="property",L($e,qe)):"number"==e||"string"==e?L($e,qe):"["==e?L(q,pe,W("]"),$e,qe):"*"==t?(C.marked="keyword",L(qe)):c&&"("==e?T(Fe,qe):";"==e||","==e?L(qe):"}"==e?L():"@"==t?L(q,qe):void 0}function $e(e,t){if("!"==t)return L($e);if("?"==t)return L($e);if(":"==e)return L(ge,je);if("="==t)return L($);var r=C.state.lexical.prev;return T(r&&"interface"==r.info?Fe:ze)}function Ge(e,t){return"*"==t?(C.marked="keyword",L(Je,W(";"))):"default"==t?(C.marked="keyword",L(q,W(";"))):"{"==e?L(ce(Ke,"}"),Je,W(";")):T(U)}function Ke(e,t){return"as"==t?(C.marked="keyword",L(W("variable"))):"variable"==e?T($,Ke):void 0}function Ye(e){return"string"==e?L():"("==e?T(q):"."==e?T(Q):T(Qe,Ze,Je)}function Qe(e,t){return"{"==e?fe(Qe,"}"):("variable"==e&&A(t),"*"==t&&(C.marked="keyword"),L(Xe))}function Ze(e){if(","==e)return L(Qe,Ze)}function Xe(e,t){if("as"==t)return C.marked="keyword",L(Qe)}function Je(e,t){if("from"==t)return C.marked="keyword",L(q)}function et(e){return"]"==e?L():T(ce($,"]"))}function tt(){return T(H("form"),Le,W("{"),H("}"),ce(rt,"}"),B,B)}function rt(){return T(Le,je)}function nt(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function ot(e,t,r){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return D.lex=z.lex=!0,F.lex=!0,B.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new S((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new I(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),x(e,t)),t.tokenize!=b&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=o&&"--"!=o?n:"incdec",E(t,r,n,o,e))},indent:function(t,n){if(t.tokenize==b||t.tokenize==w)return e.Pass;if(t.tokenize!=g)return 0;var o,l=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==B)s=s.prev;else if(c!=Ie&&c!=F)break}for(;("stat"==s.type||"form"==s.type)&&("}"==l||(o=t.cc[t.cc.length-1])&&(o==Q||o==Z)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;a&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var f=s.type,d=l==f;return"vardef"==f?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==f&&"{"==l?s.indented:"form"==f?s.indented+i:"stat"==f?s.indented+(nt(t,n)?a||i:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:l,jsonMode:s,expressionAllowed:ot,skipExpression:function(t){E(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(r(3458))},2941:(e,t,r)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(n,o){var i,a,l=n.indentUnit,s={},u=o.htmlMode?t:r;for(var c in u)s[c]=u[c];for(var c in o)s[c]=o[c];function f(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();return"<"==n?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(h("atom","]]>")):null:e.match("--")?r(h("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(m(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=h("meta","?>"),"meta"):(i=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==n?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=f,i=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return i="equals",null;if("<"==r){t.tokenize=f,t.state=w,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=p(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=d;break}return"string"};return t.isInAttribute=!0,t}function h(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=f;break}r.next()}return e}}function m(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=m(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=f;break}return r.tokenize=m(e-1),r.tokenize(t,r)}}return"meta"}}function v(e){return e&&e.toLowerCase()}function g(e,t,r){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=r,(s.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!s.contextGrabbers.hasOwnProperty(v(r))||!s.contextGrabbers[v(r)].hasOwnProperty(v(t)))return;y(e)}}function w(e,t,r){return"openTag"==e?(r.tagStart=t.column(),_):"closeTag"==e?x:w}function _(e,t,r){return"word"==e?(r.tagName=t.current(),a="tag",O):s.allowMissingTagName&&"endTag"==e?(a="tag bracket",O(e,t,r)):(a="error",_)}function x(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&s.implicitlyClosed.hasOwnProperty(v(r.context.tagName))&&y(r),r.context&&r.context.tagName==n||!1===s.matchClosing?(a="tag",k):(a="tag error",S)}return s.allowMissingTagName&&"endTag"==e?(a="tag bracket",k(e,t,r)):(a="error",S)}function k(e,t,r){return"endTag"!=e?(a="error",k):(y(r),w)}function S(e,t,r){return a="error",k(e,t,r)}function O(e,t,r){if("word"==e)return a="attribute",E;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,o=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||s.autoSelfClosers.hasOwnProperty(v(n))?b(r,n):(b(r,n),r.context=new g(r,n,o==r.indented)),w}return a="error",O}function E(e,t,r){return"equals"==e?C:(s.allowMissing||(a="error"),O(e,t,r))}function C(e,t,r){return"string"==e?T:"word"==e&&s.allowUnquoted?(a="string",O):(a="error",O(e,t,r))}function T(e,t,r){return"string"==e?T:O(e,t,r)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:w,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;i=null;var r=t.tokenize(e,t);return(r||i)&&"comment"!=r&&(a=null,t.state=t.state(i||r,e,t),a&&(r="error"==a?r+" error":a)),r},indent:function(t,r,n){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+l;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=f)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==s.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+l*(s.multilineTagIndentFactor||1);if(s.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:s.htmlMode?"html":"xml",helperType:s.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=O)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)t.push(r.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(r(3458))},4436:(e,t,r)=>{var n=r(7045),o=r(5366),i=function(){"use strict";var e=[],t=[],r=/\/\*\s*csslint([^\*]*)\*\//,l=new o.util.EventTarget;return l.version="1.0.4",l.addRule=function(t){e.push(t),e[t.id]=t},l.clearRules=function(){e=[]},l.getRules=function(){return[].concat(e).sort((function(e,t){return e.id>t.id?1:0}))},l.getRuleset=function(){for(var t={},r=0,n=e.length;r0&&(d[t+1]=o))}));var m=null,v=null;for(f in i.Util.forEach(u,(function(e,t){null===m&&e.match(/\/\*[ \t]*csslint[ \t]+ignore:start[ \t]*\*\//i)&&(m=t),e.match(/\/\*[ \t]*csslint[ \t]+ignore:end[ \t]*\*\//i)&&(v=t),null!==m&&null!==v&&(p.push([m,v]),m=v=null)})),null!==m&&p.push([m,u.length]),l||(l=this.getRuleset()),r.test(t)&&(l=function(e,t){var n,o=e&&e.match(r),i=o&&o[1];return i&&(n={true:2,"":1,false:0,2:2,1:1,0:0},i.toLowerCase().split(",").forEach((function(e){var r=e.split(":"),o=r[0]||"",i=r[1]||"";t[o.trim()]=n[i.trim()]}))),t}(t,l=n(l))),s=new a(u,l,d,p),l.errors=2,l)l.hasOwnProperty(f)&&l[f]&&e[f]&&e[f].init(h,s);try{h.parse(t)}catch(e){s.error("Fatal error, cannot continue: "+e.message,e.line,e.col,{})}return(c={messages:s.messages,stats:s.stats,ruleset:s.ruleset,allow:s.allow,ignore:s.ignore}).messages.sort((function(e,t){return e.rollup&&!t.rollup?1:!e.rollup&&t.rollup?-1:e.line-t.line})),c},l}();function a(e,t,r,n){"use strict";this.messages=[],this.stats=[],this.lines=e,this.ruleset=t,this.allow=r,this.allow||(this.allow={}),this.ignore=n,this.ignore||(this.ignore=[])}a.prototype={constructor:a,error:function(e,t,r,n){"use strict";this.messages.push({type:"error",line:t,col:r,message:e,evidence:this.lines[t-1],rule:n||{}})},warn:function(e,t,r,n){"use strict";this.report(e,t,r,n)},report:function(e,t,r,n){"use strict";if(!this.allow.hasOwnProperty(t)||!this.allow[t].hasOwnProperty(n.id)){var o=!1;i.Util.forEach(this.ignore,(function(e){e[0]<=t&&t<=e[1]&&(o=!0)})),o||this.messages.push({type:2===this.ruleset[n.id]?"error":"warning",line:t,col:r,message:e,evidence:this.lines[t-1],rule:n})}},info:function(e,t,r,n){"use strict";this.messages.push({type:"info",line:t,col:r,message:e,evidence:this.lines[t-1],rule:n})},rollupError:function(e,t){"use strict";this.messages.push({type:"error",rollup:!0,message:e,rule:t})},rollupWarn:function(e,t){"use strict";this.messages.push({type:"warning",rollup:!0,message:e,rule:t})},stat:function(e,t){"use strict";this.stats[e]=t}},i._Reporter=a,i.Util={mix:function(e,t){"use strict";var r;for(r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return r},indexOf:function(e,t){"use strict";if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r1&&t.report("Adjoining classes: "+c[l].text,i.line,i.col,r)}))}}),i.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don't use width or height when using padding or border.",url:"https://github.com/CSSLint/csslint/wiki/Beware-of-box-model-size",browsers:"All",init:function(e,t){"use strict";var r,n=this,o={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},i={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},a=!1;function l(){r={},a=!1}function s(){var e,l;if(!a){if(r.height)for(e in i)i.hasOwnProperty(e)&&r[e]&&(l=r[e].value,"padding"===e&&2===l.parts.length&&0===l.parts[0].value||t.report("Using height with "+e+" can sometimes make elements larger than you expect.",r[e].line,r[e].col,n));if(r.width)for(e in o)o.hasOwnProperty(e)&&r[e]&&(l=r[e].value,"padding"===e&&2===l.parts.length&&0===l.parts[1].value||t.report("Using width with "+e+" can sometimes make elements larger than you expect.",r[e].line,r[e].col,n))}}e.addListener("startrule",l),e.addListener("startfontface",l),e.addListener("startpage",l),e.addListener("startpagemargin",l),e.addListener("startkeyframerule",l),e.addListener("startviewport",l),e.addListener("property",(function(e){var t=e.property.text.toLowerCase();i[t]||o[t]?/^0\S*$/.test(e.value)||"border"===t&&"none"===e.value.toString()||(r[t]={line:e.property.line,col:e.property.col,value:e.value}):/^(width|height)/i.test(t)&&/^(length|percentage)/.test(e.value.parts[0].type)?r[t]=1:"box-sizing"===t&&(a=!0)})),e.addListener("endrule",s),e.addListener("endfontface",s),e.addListener("endpage",s),e.addListener("endpagemargin",s),e.addListener("endkeyframerule",s),e.addListener("endviewport",s)}}),i.addRule({id:"box-sizing",name:"Disallow use of box-sizing",desc:"The box-sizing properties isn't supported in IE6 and IE7.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-box-sizing",browsers:"IE6, IE7",tags:["Compatibility"],init:function(e,t){"use strict";var r=this;e.addListener("property",(function(e){"box-sizing"===e.property.text.toLowerCase()&&t.report("The box-sizing property isn't supported in IE6 and IE7.",e.line,e.col,r)}))}}),i.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",url:"https://github.com/CSSLint/csslint/wiki/Bulletproof-font-face",browsers:"All",init:function(e,t){"use strict";var r,n,o=this,i=!1,a=!0,l=!1;e.addListener("startfontface",(function(){i=!0})),e.addListener("property",(function(e){if(i){var t=e.property.toString().toLowerCase(),o=e.value.toString();if(r=e.line,n=e.col,"src"===t){var s=/^\s?url\(['"].+\.eot\?.*['"]\)\s*format\(['"]embedded-opentype['"]\).*$/i;!o.match(s)&&a?(l=!0,a=!1):o.match(s)&&!a&&(l=!1)}}})),e.addListener("endfontface",(function(){i=!1,l&&t.report("@font-face declaration doesn't follow the fontspring bulletproof syntax.",r,n,o)}))}}),i.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",url:"https://github.com/CSSLint/csslint/wiki/Require-compatible-vendor-prefixes",browsers:"All",init:function(e,t){"use strict";var r,n,o,a,l,s,u,c=this,f=!1,d=Array.prototype.push,p=[];for(o in r={animation:"webkit","animation-delay":"webkit","animation-direction":"webkit","animation-duration":"webkit","animation-fill-mode":"webkit","animation-iteration-count":"webkit","animation-name":"webkit","animation-play-state":"webkit","animation-timing-function":"webkit",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz ms","box-direction":"webkit moz ms","box-flex":"webkit moz ms","box-lines":"webkit ms","box-ordinal-group":"webkit moz ms","box-orient":"webkit moz ms","box-pack":"webkit moz ms","box-sizing":"","box-shadow":"","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit ms","transform-origin":"webkit ms",transition:"","transition-delay":"","transition-duration":"","transition-property":"","transition-timing-function":"","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"})if(r.hasOwnProperty(o)){for(a=[],s=0,u=(l=r[o].split(" ")).length;s-1&&(f&&"string"==typeof f&&0===t.text.indexOf("-"+f+"-")||n.push(t))})),e.addListener("endrule",(function(){if(n.length){var e,o,a,l,s,u,f,d,p,h,m={};for(e=0,o=n.length;e-1&&(m[l]||(m[l]={full:s.slice(0),actual:[],actualNodes:[]}),-1===i.Util.indexOf(m[l].actual,a.text)&&(m[l].actual.push(a.text),m[l].actualNodes.push(a))));for(l in m)if(m.hasOwnProperty(l)&&(f=(u=m[l]).full,d=u.actual,f.length>d.length))for(e=0,o=f.length;e=10&&t.rollupWarn("Too many floats ("+n+"), you're probably using them for layout. Consider using a grid system instead.",r)}))}}),i.addRule({id:"font-faces",name:"Don't use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-web-fonts",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startfontface",(function(){n++})),e.addListener("endstylesheet",(function(){n>5&&t.rollupWarn("Too many @font-face declarations ("+n+").",r)}))}}),i.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",url:"https://github.com/CSSLint/csslint/wiki/Don%27t-use-too-many-font-size-declarations",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("property",(function(e){"font-size"===e.property.toString()&&n++})),e.addListener("endstylesheet",(function(){t.stat("font-sizes",n),n>=10&&t.rollupWarn("Too many font-size declarations ("+n+"), abstraction needed.",r)}))}}),i.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",url:"https://github.com/CSSLint/csslint/wiki/Require-all-gradient-definitions",browsers:"All",init:function(e,t){"use strict";var r,n=this;e.addListener("startrule",(function(){r={moz:0,webkit:0,oldWebkit:0,o:0}})),e.addListener("property",(function(e){/\-(moz|o|webkit)(?:\-(?:linear|radial))\-gradient/i.test(e.value)?r[RegExp.$1]=1:/\-webkit\-gradient/i.test(e.value)&&(r.oldWebkit=1)})),e.addListener("endrule",(function(e){var o=[];r.moz||o.push("Firefox 3.6+"),r.webkit||o.push("Webkit (Safari 5+, Chrome)"),r.oldWebkit||o.push("Old Webkit (Safari 4+, Chrome)"),r.o||o.push("Opera 11.1+"),o.length&&o.length<4&&t.report("Missing vendor-prefixed CSS gradients for "+o.join(", ")+".",e.selectors[0].line,e.selectors[0].col,n)}))}}),i.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(n){var o,i,a,l,s,u,c=n.selectors;for(l=0;l1&&t.report(a+" IDs in the selector, really?",o.line,o.col,r)}}))}}),i.addRule({id:"import-ie-limit",name:"@import limit on IE6-IE9",desc:"IE6-9 supports up to 31 @import per stylesheet",browsers:"IE6, IE7, IE8, IE9",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startpage",(function(){n=0})),e.addListener("import",(function(){n++})),e.addListener("endstylesheet",(function(){n>31&&t.rollupError("Too many @import rules ("+n+"). IE6-9 supports up to 31 import per stylesheet.",r)}))}}),i.addRule({id:"import",name:"Disallow @import",desc:"Don't use @import, use instead.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%40import",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("import",(function(e){t.report("@import prevents parallel downloads, use instead.",e.line,e.col,r)}))}}),i.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",url:"https://github.com/CSSLint/csslint/wiki/Disallow-%21important",browsers:"All",init:function(e,t){"use strict";var r=this,n=0;e.addListener("property",(function(e){!0===e.important&&(n++,t.report("Use of !important",e.line,e.col,r))})),e.addListener("endstylesheet",(function(){t.stat("important",n),n>=10&&t.rollupWarn("Too many !important declarations ("+n+"), try to use less than 10 to avoid specificity issues.",r)}))}}),i.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",url:"https://github.com/CSSLint/csslint/wiki/Require-use-of-known-properties",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("property",(function(e){e.invalid&&t.report(e.invalid.message,e.line,e.col,r)}))}}),i.addRule({id:"order-alphabetical",name:"Alphabetical order",desc:"Assure properties are in alphabetical order",browsers:"All",init:function(e,t){"use strict";var r,n=this,o=function(){r=[]},i=function(e){r.join(",")!==r.sort().join(",")&&t.report("Rule doesn't have all its properties in alphabetical order.",e.line,e.col,n)};e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",(function(e){var t=e.property.text.toLowerCase().replace(/^-.*?-/,"");r.push(t)})),e.addListener("endrule",i),e.addListener("endfontface",i),e.addListener("endpage",i),e.addListener("endpagemargin",i),e.addListener("endkeyframerule",i),e.addListener("endviewport",i)}}),i.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-outline%3Anone",browsers:"All",tags:["Accessibility"],init:function(e,t){"use strict";var r,n=this;function o(e){r=e.selectors?{line:e.line,col:e.col,selectors:e.selectors,propCount:0,outline:!1}:null}function i(){r&&r.outline&&(-1===r.selectors.toString().toLowerCase().indexOf(":focus")?t.report("Outlines should only be modified using :focus.",r.line,r.col,n):1===r.propCount&&t.report("Outlines shouldn't be hidden unless other visual changes are made.",r.line,r.col,n))}e.addListener("startrule",o),e.addListener("startfontface",o),e.addListener("startpage",o),e.addListener("startpagemargin",o),e.addListener("startkeyframerule",o),e.addListener("startviewport",o),e.addListener("property",(function(e){var t=e.property.text.toLowerCase(),n=e.value;r&&(r.propCount++,"outline"!==t||"none"!==n.toString()&&"0"!==n.toString()||(r.outline=!0))})),e.addListener("endrule",i),e.addListener("endfontface",i),e.addListener("endpage",i),e.addListener("endpagemargin",i),e.addListener("endkeyframerule",i),e.addListener("endviewport",i)}}),i.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don't use classes or IDs with elements (a.foo or a#foo).",url:"https://github.com/CSSLint/csslint/wiki/Disallow-overqualified-elements",browsers:"All",init:function(e,t){"use strict";var r=this,n={};e.addListener("startrule",(function(o){var i,a,l,s,u,c,f=o.selectors;for(s=0;s0&&t.report("Heading ("+i.elementName+") should not be qualified.",i.line,i.col,r)}))}}),i.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",desc:"Selectors that look like regular expressions are slow and should be avoided.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-selectors-that-look-like-regular-expressions",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(n){var o,i,a,l,s,u,c=n.selectors;for(l=0;l= 3800 selectors.",browsers:"IE",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startrule",(function(e){n+=e.selectors.length})),e.addListener("endstylesheet",(function(){n>=3800&&t.report("You have "+n+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,r)}))}}),i.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(e,t){"use strict";var r=this,n=0;e.addListener("startrule",(function(e){n+=e.selectors.length})),e.addListener("endstylesheet",(function(){n>4095&&t.report("You have "+n+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,r)}))}}),i.addRule({id:"selector-newline",name:"Disallow new-line characters in selectors",desc:"New-line characters in selectors are usually a forgotten comma and not a descendant combinator.",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(e){var n,o,i,a,l,s,u,c,f,d,p,h=e.selectors;for(n=0,o=h.length;nd&&t.report("newline character found in selector (forgot a comma?)",d,h[n].parts[0].col,r)}))}}),i.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",url:"https://github.com/CSSLint/csslint/wiki/Require-shorthand-properties",browsers:"All",init:function(e,t){"use strict";var r,n,o,i,a=this,l={},s={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(r in s)if(s.hasOwnProperty(r))for(n=0,o=s[r].length;n1&&t.report("Heading ("+i.elementName+") has already been defined.",i.line,i.col,r))}})),e.addListener("endstylesheet",(function(){var e,o=[];for(e in n)n.hasOwnProperty(e)&&n[e]>1&&o.push(n[e]+" "+e+"s");o.length&&t.rollupWarn("You have "+o.join(", ")+" defined in this stylesheet.",r)}))}}),i.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",url:"https://github.com/CSSLint/csslint/wiki/Disallow-universal-selector",browsers:"All",init:function(e,t){"use strict";var r=this;e.addListener("startrule",(function(e){var n,o,i,a=e.selectors;for(i=0;i<]/g,(function(e){switch(e){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}})):""};i.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return''},endFormat:function(){return""},readError:function(t,r){return''},formatResults:function(t,r){var n=t.messages,o=[];return n.length>0&&(o.push(''),i.Util.forEach(n,(function(t){var r;t.rollup||o.push(''))})),o.push("")),o.join("")}})}(),i.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,r){"use strict";var n=e.messages,o="";r=r||{};var a=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};return 0===n.length?r.quiet?"":t+": Lint Free!":(i.Util.forEach(n,(function(e){e.rollup?o+=t+": "+a(e.type)+" - "+e.message+" ("+e.rule.id+")\n":o+=t+": line "+e.line+", col "+e.col+", "+a(e.type)+" - "+e.message+" ("+e.rule.id+")\n"})),o)}}),i.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){"use strict";return''},endFormat:function(){"use strict";return""},formatResults:function(e,t){"use strict";var r=e.messages,n=[],o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(//g,">"):""};return r.length>0&&(n.push(''),i.Util.forEach(r,(function(e){e.rollup?n.push(''):n.push('')})),n.push("")),n.join("")}}),i.addFormatter({id:"json",name:"JSON",startFormat:function(){"use strict";return this.json=[],""},endFormat:function(){"use strict";var e="";return this.json.length>0&&(e=1===this.json.length?JSON.stringify(this.json[0]):JSON.stringify(this.json)),e},formatResults:function(e,t,r){"use strict";return(e.messages.length>0||!r.quiet)&&this.json.push({filename:t,messages:e.messages,stats:e.stats}),""}}),i.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){"use strict";return''},endFormat:function(){"use strict";return""},formatResults:function(e,t){"use strict";var r=e.messages,n=[],o={error:0,failure:0},i=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(//g,">"):""};return r.length>0&&(r.forEach((function(e){var t,r="warning"===e.type?"error":e.type;e.rollup||(n.push('')),n.push("<"+r+' message="'+i(e.message)+'">"),n.push(""),o[r]+=1)})),n.unshift(''),n.push("")),n.join("")}}),i.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){"use strict";return''},endFormat:function(){"use strict";return""},formatResults:function(e,t){"use strict";var r=e.messages,n=[],o=function(e){return e&&e.constructor===String?e.replace(/"/g,"'").replace(/&/g,"&").replace(//g,">"):""};return r.length>0&&(n.push(''),i.Util.forEach(r,(function(e){if(e.rollup)n.push('');else{var t="";e.rule&&e.rule.id&&(t='rule="'+o(e.rule.id)+'" '),n.push("')}})),n.push("")),n.join("")}}),i.addFormatter({id:"text",name:"Plain Text",startFormat:function(){"use strict";return""},endFormat:function(){"use strict";return""},formatResults:function(e,t,r){"use strict";var n=e.messages,o="";if(r=r||{},0===n.length)return r.quiet?"":"\n\ncsslint: No errors in "+t+".";o="\n\ncsslint: There ",1===n.length?o+="is 1 problem":o+="are "+n.length+" problems",o+=" in "+t+".";var a=t.lastIndexOf("/"),l=t;return-1===a&&(a=t.lastIndexOf("\\")),a>-1&&(l=t.substring(a+1)),i.Util.forEach(n,(function(e,t){o=o+"\n\n"+l,e.rollup?(o+="\n"+(t+1)+": "+e.type,o+="\n"+e.message):(o+="\n"+(t+1)+": "+e.type+" at line "+e.line+", col "+e.col,o+="\n"+e.message,o+="\n"+e.evidence)})),o}}),t.u=i},8954:(e,t,r)=>{var n=r(6299)(r(6285),"DataView");e.exports=n},8206:(e,t,r)=>{var n=r(7106),o=r(7903),i=r(4607),a=r(718),l=r(1676);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(5450),o=r(3299),i=r(3616),a=r(4967),l=r(9879);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(6299)(r(6285),"Map");e.exports=n},1795:(e,t,r)=>{var n=r(1543),o=r(419),i=r(6857),a=r(5487),l=r(6433);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t{var n=r(6299)(r(6285),"Promise");e.exports=n},6562:(e,t,r)=>{var n=r(6299)(r(6285),"Set");e.exports=n},154:(e,t,r)=>{var n=r(1795),o=r(7036),i=r(8283);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t{var n=r(9764),o=r(9922),i=r(4205),a=r(8285),l=r(7037),s=r(3266);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=l,u.prototype.set=s,e.exports=u},5816:(e,t,r)=>{var n=r(6285).Symbol;e.exports=n},7423:(e,t,r)=>{var n=r(6285).Uint8Array;e.exports=n},1405:(e,t,r)=>{var n=r(6299)(r(6285),"WeakMap");e.exports=n},3351:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},5918:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r{var n=r(1350);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},2742:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n{var n=r(5337),o=r(3399),i=r(3858),a=r(5753),l=r(6611),s=r(5805),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),d=!r&&!c&&!f&&s(e),p=r||c||f||d,h=p?n(e.length,String):[],m=h.length;for(var v in e)!t&&!u.call(e,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||d&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,m))||h.push(v);return h}},5584:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r{var n=r(5443)("length");e.exports=n},8775:(e,t,r)=>{var n=r(79),o=r(1391),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},3354:(e,t,r)=>{var n=r(1391);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},79:(e,t,r)=>{var n=r(9297);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},1704:(e,t,r)=>{var n=r(154),o=r(2549),i=r(2742),a=r(5584),l=r(4490),s=r(7202);e.exports=function(e,t,r,u){var c=-1,f=o,d=!0,p=e.length,h=[],m=t.length;if(!p)return h;r&&(t=a(t,l(r))),u?(f=i,d=!1):t.length>=200&&(f=s,d=!1,t=new n(t));e:for(;++c{var n=r(9458),o=r(8310)(n);e.exports=o},8120:(e,t,r)=>{var n=r(5467);e.exports=function(e,t){var r=[];return n(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}},5784:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i{e.exports=function(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}},9753:(e,t,r)=>{var n=r(1415),o=r(9619);e.exports=function e(t,r,i,a,l){var s=-1,u=t.length;for(i||(i=o),l||(l=[]);++s0&&i(c)?r>1?e(c,r-1,i,a,l):n(l,c):a||(l[l.length]=c)}return l}},3317:(e,t,r)=>{var n=r(2667)();e.exports=n},9458:(e,t,r)=>{var n=r(3317),o=r(1839);e.exports=function(e,t){return e&&n(e,t,o)}},4616:(e,t,r)=>{var n=r(7413),o=r(3742);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r{var n=r(1415),o=r(3858);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},9124:(e,t,r)=>{var n=r(5816),o=r(1900),i=r(9488),a=n?n.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)}},7178:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,r){return null!=e&&t.call(e,r)}},9598:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},1350:(e,t,r)=>{var n=r(5784),o=r(482),i=r(5055);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},3367:(e,t,r)=>{var n=r(154),o=r(2549),i=r(2742),a=r(5584),l=r(4490),s=r(7202),u=Math.min;e.exports=function(e,t,r){for(var c=r?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,v=[];p--;){var g=e[p];p&&t&&(g=a(g,l(t))),m=u(g.length,m),h[p]=!r&&(t||f>=120&&g.length>=120)?new n(p&&g):void 0}g=e[0];var y=-1,b=h[0];e:for(;++y{var n=r(9124),o=r(2982);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},5125:(e,t,r)=>{var n=r(6970),o=r(2982);e.exports=function e(t,r,i,a,l){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,l))}},6970:(e,t,r)=>{var n=r(4505),o=r(5174),i=r(3706),a=r(2658),l=r(3929),s=r(3858),u=r(5753),c=r(5805),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,v,g){var y=s(e),b=s(t),w=y?d:l(e),_=b?d:l(t),x=(w=w==f?p:w)==p,k=(_=_==f?p:_)==p,S=w==_;if(S&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(S&&!x)return g||(g=new n),y||c(e)?o(e,t,r,m,v,g):i(e,t,w,r,m,v,g);if(!(1&r)){var O=x&&h.call(e,"__wrapped__"),E=k&&h.call(t,"__wrapped__");if(O||E){var C=O?e.value():e,T=E?t.value():t;return g||(g=new n),v(C,T,r,m,g)}}return!!S&&(g||(g=new n),a(e,t,r,m,v,g))}},8625:(e,t,r)=>{var n=r(4505),o=r(5125);e.exports=function(e,t,r,i){var a=r.length,l=a,s=!i;if(null==e)return!l;for(e=Object(e);a--;){var u=r[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a{e.exports=function(e){return e!=e}},9069:(e,t,r)=>{var n=r(1009),o=r(3205),i=r(4082),a=r(2398),l=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:l).test(a(e))}},7240:(e,t,r)=>{var n=r(9124),o=r(8061),i=r(2982),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[n(e)]}},2064:(e,t,r)=>{var n=r(2209),o=r(3214),i=r(429),a=r(3858),l=r(5325);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):l(e)}},3145:(e,t,r)=>{var n=r(7557),o=r(3918),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6348:(e,t,r)=>{var n=r(4082),o=r(7557),i=r(2605),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var l in e)("constructor"!=l||!t&&a.call(e,l))&&r.push(l);return r}},9409:(e,t,r)=>{var n=r(5467),o=r(5046);e.exports=function(e,t){var r=-1,i=o(e)?Array(e.length):[];return n(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}},2209:(e,t,r)=>{var n=r(8625),o=r(8093),i=r(3247);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},3214:(e,t,r)=>{var n=r(5125),o=r(2952),i=r(3118),a=r(1237),l=r(6996),s=r(3247),u=r(3742);e.exports=function(e,t){return a(e)&&l(t)?s(u(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},7889:(e,t,r)=>{var n=r(4616),o=r(5168),i=r(7413);e.exports=function(e,t,r){for(var a=-1,l=t.length,s={};++a{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},1833:(e,t,r)=>{var n=r(4616);e.exports=function(e){return function(t){return n(t,e)}}},3040:(e,t,r)=>{var n=r(7547),o=r(6611),i=Array.prototype.splice;e.exports=function(e,t){for(var r=e?t.length:0,a=r-1;r--;){var l=t[r];if(r==a||l!==s){var s=l;o(l)?i.call(e,l,1):n(e,l)}}return e}},2978:(e,t,r)=>{var n=r(429),o=r(6441),i=r(3415);e.exports=function(e,t){return i(o(e,t,n),e+"")}},5168:(e,t,r)=>{var n=r(8775),o=r(7413),i=r(6611),a=r(4082),l=r(3742);e.exports=function(e,t,r,s){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++u{var n=r(3179),o=r(9297),i=r(429),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},6306:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n{e.exports=function(e,t){for(var r=-1,n=Array(e);++r{var n=r(5816),o=r(5584),i=r(3858),a=r(754),l=n?n.prototype:void 0,s=l?l.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 s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r}},301:(e,t,r)=>{var n=r(1259),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},4490:e=>{e.exports=function(e){return function(t){return e(t)}}},3631:(e,t,r)=>{var n=r(154),o=r(2549),i=r(2742),a=r(7202),l=r(4031),s=r(150);e.exports=function(e,t,r){var u=-1,c=o,f=e.length,d=!0,p=[],h=p;if(r)d=!1,c=i;else if(f>=200){var m=t?null:l(e);if(m)return s(m);d=!1,c=a,h=new n}else h=t?[]:p;e:for(;++u{var n=r(7413),o=r(2359),i=r(6175),a=r(3742);e.exports=function(e,t){return t=n(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},6862:(e,t,r)=>{var n=r(5584);e.exports=function(e,t){return n(t,(function(t){return e[t]}))}},7202:e=>{e.exports=function(e,t){return e.has(t)}},4286:(e,t,r)=>{var n=r(4655);e.exports=function(e){return n(e)?e:[]}},7546:(e,t,r)=>{var n=r(429);e.exports=function(e){return"function"==typeof e?e:n}},7413:(e,t,r)=>{var n=r(3858),o=r(1237),i=r(902),a=r(3156);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},22:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{var n=r(8775),o=r(79);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var l=-1,s=t.length;++l{var n=r(6285)["__core-js_shared__"];e.exports=n},716:(e,t,r)=>{var n=r(2978),o=r(4007);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,l=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&o(r[0],r[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++n{var n=r(5046);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var i=r.length,a=t?i:-1,l=Object(r);(t?a--:++a{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===r(i[s],s,i))break}return t}}},4031:(e,t,r)=>{var n=r(6562),o=r(4911),i=r(150),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},9297:(e,t,r)=>{var n=r(6299),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},5174:(e,t,r)=>{var n=r(154),o=r(7405),i=r(7202);e.exports=function(e,t,r,a,l,s){var u=1&r,c=e.length,f=t.length;if(c!=f&&!(u&&f>c))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,v=2&r?new n:void 0;for(s.set(e,t),s.set(t,e);++h{var n=r(5816),o=r(7423),i=r(1391),a=r(5174),l=r(3866),s=r(150),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,f,d){switch(r){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||!f(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 p=l;case"[object Set]":var h=1&n;if(p||(p=s),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;n|=2,d.set(e,t);var v=a(p(e),p(t),n,u,f,d);return d.delete(e),v;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},2658:(e,t,r)=>{var n=r(8616),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,l){var s=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!s)return!1;for(var f=c;f--;){var d=u[f];if(!(s?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var m=!0;l.set(e,t),l.set(t,e);for(var v=s;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8616:(e,t,r)=>{var n=r(1213),o=r(6375),i=r(1839);e.exports=function(e){return n(e,i,o)}},2484:(e,t,r)=>{var n=r(1213),o=r(5446),i=r(8088);e.exports=function(e){return n(e,i,o)}},6208:(e,t,r)=>{var n=r(6123);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},8093:(e,t,r)=>{var n=r(6996),o=r(1839);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},6299:(e,t,r)=>{var n=r(9069),o=r(3521);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},1353:(e,t,r)=>{var n=r(363)(Object.getPrototypeOf,Object);e.exports=n},1900:(e,t,r)=>{var n=r(5816),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},6375:(e,t,r)=>{var n=r(2977),o=r(255),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},5446:(e,t,r)=>{var n=r(1415),o=r(1353),i=r(6375),a=r(255),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=l},3929:(e,t,r)=>{var n=r(8954),o=r(6566),i=r(7968),a=r(6562),l=r(1405),s=r(9124),u=r(2398),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",m=u(n),v=u(o),g=u(i),y=u(a),b=u(l),w=s;(n&&w(new n(new ArrayBuffer(1)))!=h||o&&w(new o)!=c||i&&w(i.resolve())!=f||a&&w(new a)!=d||l&&w(new l)!=p)&&(w=function(e){var t=s(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return h;case v:return c;case g:return f;case y:return d;case b:return p}return t}),e.exports=w},3521:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9898:(e,t,r)=>{var n=r(7413),o=r(3399),i=r(3858),a=r(6611),l=r(8061),s=r(3742);e.exports=function(e,t,r){for(var u=-1,c=(t=n(t,e)).length,f=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},7106:(e,t,r)=>{var n=r(4378);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},7903:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},4607:(e,t,r)=>{var n=r(4378),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},718:(e,t,r)=>{var n=r(4378),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},1676:(e,t,r)=>{var n=r(4378);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9619:(e,t,r)=>{var n=r(5816),o=r(3399),i=r(3858),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},6611:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e{var n=r(1391),o=r(5046),i=r(6611),a=r(4082);e.exports=function(e,t,r){if(!a(r))return!1;var l=typeof t;return!!("number"==l?o(r)&&i(t,r.length):"string"==l&&t in r)&&n(r[t],e)}},1237:(e,t,r)=>{var n=r(3858),o=r(754),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},6123:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3205:(e,t,r)=>{var n,o=r(1815),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},7557:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},6996:(e,t,r)=>{var n=r(4082);e.exports=function(e){return e==e&&!n(e)}},5450:e=>{e.exports=function(){this.__data__=[],this.size=0}},3299:(e,t,r)=>{var n=r(3354),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},3616:(e,t,r)=>{var n=r(3354);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},4967:(e,t,r)=>{var n=r(3354);e.exports=function(e){return n(this.__data__,e)>-1}},9879:(e,t,r)=>{var n=r(3354);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},1543:(e,t,r)=>{var n=r(8206),o=r(9764),i=r(6566);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},419:(e,t,r)=>{var n=r(6208);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6857:(e,t,r)=>{var n=r(6208);e.exports=function(e){return n(this,e).get(e)}},5487:(e,t,r)=>{var n=r(6208);e.exports=function(e){return n(this,e).has(e)}},6433:(e,t,r)=>{var n=r(6208);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},3866:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},3247:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},110:(e,t,r)=>{var n=r(6762);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},4378:(e,t,r)=>{var n=r(6299)(Object,"create");e.exports=n},3918:(e,t,r)=>{var n=r(363)(Object.keys,Object);e.exports=n},2605:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},7001:(e,t,r)=>{e=r.nmd(e);var n=r(2076),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},9488:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},363:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},6441:(e,t,r)=>{var n=r(3351),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),s=Array(l);++a{var n=r(4616),o=r(6306);e.exports=function(e,t){return t.length<2?e:n(e,o(t,0,-1))}},6285:(e,t,r)=>{var n=r(2076),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},7036:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8283:e=>{e.exports=function(e){return this.__data__.has(e)}},150:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},3415:(e,t,r)=>{var n=r(147),o=r(5374)(n);e.exports=o},5374:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},9922:(e,t,r)=>{var n=r(9764);e.exports=function(){this.__data__=new n,this.size=0}},4205:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},8285:e=>{e.exports=function(e){return this.__data__.get(e)}},7037:e=>{e.exports=function(e){return this.__data__.has(e)}},3266:(e,t,r)=>{var n=r(9764),o=r(6566),i=r(1795);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},5055:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n{var n=r(9875),o=r(2426),i=r(1241);e.exports=function(e){return o(e)?i(e):n(e)}},902:(e,t,r)=>{var n=r(110),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},3742:(e,t,r)=>{var n=r(754);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},2398: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""}},1259:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},1241:e=>{var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?",c=u+s+("(?:\\u200d(?:"+[i,a,l].join("|")+")"+u+s+")*"),f="(?:"+[i+n+"?",n,a,l,r].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+c,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},8618:(e,t,r)=>{var n=r(8775),o=r(7339),i=r(716),a=r(5046),l=r(7557),s=r(1839),u=Object.prototype.hasOwnProperty,c=i((function(e,t){if(l(t)||a(t))o(t,s(t),e);else for(var r in t)u.call(t,r)&&n(e,r,t[r])}));e.exports=c},9021:(e,t,r)=>{var n=r(1415),o=r(9753),i=r(22),a=r(3858);e.exports=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],l=e;l--;)t[l-1]=arguments[l];return n(a(r)?i(r):[r],o(t,1))}},3179:e=>{e.exports=function(e){return function(){return e}}},3708:(e,t,r)=>{var n=r(4082),o=r(1390),i=r(9347),a=Math.max,l=Math.min;e.exports=function(e,t,r){var s,u,c,f,d,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=s,n=u;return s=u=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-p;return void 0===p||r>=t||r<0||v&&e-h>=c}function w(){var e=o();if(b(e))return _(e);d=setTimeout(w,function(e){var r=t-(e-p);return v?l(r,c-(e-h)):r}(e))}function _(e){return d=void 0,g&&s?y(e):(s=u=void 0,f)}function x(){var e=o(),r=b(e);if(s=arguments,u=this,p=e,r){if(void 0===d)return function(e){return h=e,d=setTimeout(w,t),m?y(e):f}(p);if(v)return clearTimeout(d),d=setTimeout(w,t),y(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?a(i(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),x.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=u=d=void 0},x.flush=function(){return void 0===d?f:_(o())},x}},3167:(e,t,r)=>{var n=r(1704),o=r(9753),i=r(2978),a=r(4655),l=i((function(e,t){return a(e)?n(e,o(t,1,a,!0)):[]}));e.exports=l},1391:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},547:(e,t,r)=>{var n=r(2977),o=r(8120),i=r(2064),a=r(3858);e.exports=function(e,t){return(a(e)?n:o)(e,i(t,3))}},2406:(e,t,r)=>{var n=r(6221),o=r(9458),i=r(2064);e.exports=function(e,t){return n(e,i(t,3),o)}},8232:(e,t,r)=>{var n=r(5918),o=r(5467),i=r(7546),a=r(3858);e.exports=function(e,t){return(a(e)?n:o)(e,i(t))}},2952:(e,t,r)=>{var n=r(4616);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},1587:(e,t,r)=>{var n=r(7178),o=r(9898);e.exports=function(e,t){return null!=e&&o(e,t,n)}},3118:(e,t,r)=>{var n=r(9598),o=r(9898);e.exports=function(e,t){return null!=e&&o(e,t,n)}},429:e=>{e.exports=function(e){return e}},8925:(e,t,r)=>{var n=r(1350),o=r(5046),i=r(7606),a=r(1646),l=r(3109),s=Math.max;e.exports=function(e,t,r,u){e=o(e)?e:l(e),r=r&&!u?a(r):0;var c=e.length;return r<0&&(r=s(c+r,0)),i(e)?r<=c&&e.indexOf(t,r)>-1:!!c&&n(e,t,r)>-1}},8993:(e,t,r)=>{var n=r(1350),o=r(1646),i=Math.max;e.exports=function(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var l=null==r?0:o(r);return l<0&&(l=i(a+l,0)),n(e,t,l)}},1641:(e,t,r)=>{var n=r(5584),o=r(3367),i=r(2978),a=r(4286),l=i((function(e){var t=n(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=l},3399:(e,t,r)=>{var n=r(5899),o=r(2982),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},3858:e=>{var t=Array.isArray;e.exports=t},5046:(e,t,r)=>{var n=r(1009),o=r(8061);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4655:(e,t,r)=>{var n=r(5046),o=r(2982);e.exports=function(e){return o(e)&&n(e)}},5753:(e,t,r)=>{e=r.nmd(e);var n=r(6285),o=r(8416),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?n.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s},418:(e,t,r)=>{var n=r(3145),o=r(3929),i=r(3399),a=r(3858),l=r(5046),s=r(5753),u=r(7557),c=r(5805),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||c(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var r in e)if(f.call(e,r))return!1;return!0}},8961:(e,t,r)=>{var n=r(5125);e.exports=function(e,t){return n(e,t)}},1009:(e,t,r)=>{var n=r(9124),o=r(4082);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},8061:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},1733:e=>{e.exports=function(e){return null===e}},8546:(e,t,r)=>{var n=r(9124),o=r(2982);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},4082:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2982:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7606:(e,t,r)=>{var n=r(9124),o=r(3858),i=r(2982);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},754:(e,t,r)=>{var n=r(9124),o=r(2982);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},5805:(e,t,r)=>{var n=r(7240),o=r(4490),i=r(7001),a=i&&i.isTypedArray,l=a?o(a):n;e.exports=l},2211:e=>{e.exports=function(e){return void 0===e}},1839:(e,t,r)=>{var n=r(5173),o=r(3145),i=r(5046);e.exports=function(e){return i(e)?n(e):o(e)}},8088:(e,t,r)=>{var n=r(5173),o=r(6348),i=r(5046);e.exports=function(e){return i(e)?n(e,!0):o(e)}},2359:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},6459:function(e,t,r){e=r.nmd(e),function(){var n,o="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",l=16,s=32,u=64,c=128,f=256,d=1/0,p=9007199254740991,h=NaN,m=4294967295,v=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",u],["rearg",f]],g="[object Arguments]",y="[object Array]",b="[object Boolean]",w="[object Date]",_="[object Error]",x="[object Function]",k="[object GeneratorFunction]",S="[object Map]",O="[object Number]",E="[object Object]",C="[object Promise]",T="[object RegExp]",L="[object Set]",M="[object String]",A="[object Symbol]",j="[object WeakMap]",P="[object ArrayBuffer]",I="[object DataView]",R="[object Float32Array]",N="[object Float64Array]",D="[object Int8Array]",z="[object Int16Array]",F="[object Int32Array]",H="[object Uint8Array]",B="[object Uint8ClampedArray]",W="[object Uint16Array]",U="[object Uint32Array]",V=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(G.source),Q=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ne.source),ie=/^\s+/,ae=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,xe=/['\n\r\u2028\u2029\\]/g,ke="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Le="\\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",Me="['\u2019]",Ae="["+ke+"]",je="["+Le+"]",Pe="["+Se+"]",Ie="\\d+",Re="["+Oe+"]",Ne="["+Ee+"]",De="[^"+ke+Le+Ie+Oe+Ee+Ce+"]",ze="\\ud83c[\\udffb-\\udfff]",Fe="[^"+ke+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ce+"]",Ue="\\u200d",Ve="(?:"+Ne+"|"+De+")",qe="(?:"+We+"|"+De+")",$e="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ge="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Pe+"|"+ze+")"+"?",Ye="["+Te+"]?",Qe=Ye+Ke+("(?:"+Ue+"(?:"+[Fe,He,Be].join("|")+")"+Ye+Ke+")*"),Ze="(?:"+[Re,He,Be].join("|")+")"+Qe,Xe="(?:"+[Fe+Pe+"?",Pe,He,Be,Ae].join("|")+")",Je=RegExp(Me,"g"),et=RegExp(Pe,"g"),tt=RegExp(ze+"(?="+ze+")|"+Xe+Qe,"g"),rt=RegExp([We+"?"+Ne+"+"+$e+"(?="+[je,We,"$"].join("|")+")",qe+"+"+Ge+"(?="+[je,We+Ve,"$"].join("|")+")",We+"?"+Ve+"+"+$e,We+"+"+Ge,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Ze].join("|"),"g"),nt=RegExp("["+Ue+ke+Se+Te+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["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"],at=-1,lt={};lt[R]=lt[N]=lt[D]=lt[z]=lt[F]=lt[H]=lt[B]=lt[W]=lt[U]=!0,lt[g]=lt[y]=lt[P]=lt[b]=lt[I]=lt[w]=lt[_]=lt[x]=lt[S]=lt[O]=lt[E]=lt[T]=lt[L]=lt[M]=lt[j]=!1;var st={};st[g]=st[y]=st[P]=st[I]=st[b]=st[w]=st[R]=st[N]=st[D]=st[z]=st[F]=st[S]=st[O]=st[E]=st[T]=st[L]=st[M]=st[A]=st[H]=st[B]=st[W]=st[U]=!0,st[_]=st[x]=st[j]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ft=parseInt,dt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||pt||Function("return this")(),mt=t&&!t.nodeType&&t,vt=mt&&e&&!e.nodeType&&e,gt=vt&&vt.exports===mt,yt=gt&&dt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,_t=bt&&bt.isDate,xt=bt&&bt.isMap,kt=bt&&bt.isRegExp,St=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function Et(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Ct(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o-1}function Pt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1;);return r}function rr(e,t){for(var r=e.length;r--&&Wt(t,e[r],0)>-1;);return r}var nr=Gt({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"}),or=Gt({"&":"&","<":"<",">":">",'"':""","'":"'"});function ir(e){return"\\"+ut[e]}function ar(e){return nt.test(e)}function lr(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function sr(e,t){return function(r){return e(t(r))}}function ur(e,t){for(var r=-1,n=e.length,o=0,i=[];++r",""":'"',"'":"'"});var vr=function e(t){var r,ae=(t=null==t?ht:vr.defaults(ht.Object(),t,vr.pick(ht,it))).Array,ke=t.Date,Se=t.Error,Oe=t.Function,Ee=t.Math,Ce=t.Object,Te=t.RegExp,Le=t.String,Me=t.TypeError,Ae=ae.prototype,je=Oe.prototype,Pe=Ce.prototype,Ie=t["__core-js_shared__"],Re=je.toString,Ne=Pe.hasOwnProperty,De=0,ze=(r=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Fe=Pe.toString,He=Re.call(Ce),Be=ht._,We=Te("^"+Re.call(Ne).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=gt?t.Buffer:n,Ve=t.Symbol,qe=t.Uint8Array,$e=Ue?Ue.allocUnsafe:n,Ge=sr(Ce.getPrototypeOf,Ce),Ke=Ce.create,Ye=Pe.propertyIsEnumerable,Qe=Ae.splice,Ze=Ve?Ve.isConcatSpreadable:n,Xe=Ve?Ve.iterator:n,tt=Ve?Ve.toStringTag:n,nt=function(){try{var e=pi(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),ut=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,dt=ke&&ke.now!==ht.Date.now&&ke.now,pt=t.setTimeout!==ht.setTimeout&&t.setTimeout,mt=Ee.ceil,vt=Ee.floor,yt=Ce.getOwnPropertySymbols,bt=Ue?Ue.isBuffer:n,Ft=t.isFinite,Gt=Ae.join,gr=sr(Ce.keys,Ce),yr=Ee.max,br=Ee.min,wr=ke.now,_r=t.parseInt,xr=Ee.random,kr=Ae.reverse,Sr=pi(t,"DataView"),Or=pi(t,"Map"),Er=pi(t,"Promise"),Cr=pi(t,"Set"),Tr=pi(t,"WeakMap"),Lr=pi(Ce,"create"),Mr=Tr&&new Tr,Ar={},jr=Fi(Sr),Pr=Fi(Or),Ir=Fi(Er),Rr=Fi(Cr),Nr=Fi(Tr),Dr=Ve?Ve.prototype:n,zr=Dr?Dr.valueOf:n,Fr=Dr?Dr.toString:n;function Hr(e){if(rl(e)&&!qa(e)&&!(e instanceof Vr)){if(e instanceof Ur)return e;if(Ne.call(e,"__wrapped__"))return Hi(e)}return new Ur(e)}var Br=function(){function e(){}return function(t){if(!tl(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wr(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function qr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function un(e,t,r,o,i,a){var l,s=1&t,u=2&t,c=4&t;if(r&&(l=i?r(e,o,i,a):r(e)),l!==n)return l;if(!tl(e))return e;var f=qa(e);if(f){if(l=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return Ao(e,l)}else{var d=vi(e),p=d==x||d==k;if(Ya(e))return Oo(e,s);if(d==E||d==g||p&&!i){if(l=u||p?{}:yi(e),!s)return u?function(e,t){return jo(e,mi(e),t)}(e,function(e,t){return e&&jo(t,Pl(t),e)}(l,e)):function(e,t){return jo(e,hi(e),t)}(e,on(l,e))}else{if(!st[d])return i?e:{};l=function(e,t,r){var n=e.constructor;switch(t){case P:return Eo(e);case b:case w:return new n(+e);case I:return function(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case R:case N:case D:case z:case F:case H:case B:case W:case U:return Co(e,r);case S:return new n;case O:case M:return new n(e);case T:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case L:return new n;case A:return o=e,zr?Ce(zr.call(o)):{}}var o}(e,d,s)}}a||(a=new Yr);var h=a.get(e);if(h)return h;a.set(e,l),ll(e)?e.forEach((function(n){l.add(un(n,t,r,n,e,a))})):nl(e)&&e.forEach((function(n,o){l.set(o,un(n,t,r,o,e,a))}));var m=f?n:(c?u?ai:ii:u?Pl:jl)(e);return Tt(m||e,(function(n,o){m&&(n=e[o=n]),tn(l,o,un(n,t,r,o,e,a))})),l}function cn(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ce(e);o--;){var i=r[o],a=t[i],l=e[i];if(l===n&&!(i in e)||!a(l))return!1}return!0}function fn(e,t,r){if("function"!=typeof e)throw new Me(o);return ji((function(){e.apply(n,r)}),t)}function dn(e,t,r,n){var o=-1,i=jt,a=!0,l=e.length,s=[],u=t.length;if(!l)return s;r&&(t=It(t,Xt(r))),n?(i=Pt,a=!1):t.length>=200&&(i=er,a=!1,t=new Kr(t));e:for(;++o-1},$r.prototype.set=function(e,t){var r=this.__data__,n=rn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new qr,map:new(Or||$r),string:new qr}},Gr.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Gr.prototype.get=function(e){return fi(this,e).get(e)},Gr.prototype.has=function(e){return fi(this,e).has(e)},Gr.prototype.set=function(e,t){var r=fi(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(e){return this.__data__.set(e,i),this},Kr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.clear=function(){this.__data__=new $r,this.size=0},Yr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Yr.prototype.get=function(e){return this.__data__.get(e)},Yr.prototype.has=function(e){return this.__data__.has(e)},Yr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof $r){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Gr(n)}return r.set(e,t),this.size=r.size,this};var pn=Ro(_n),hn=Ro(xn,!0);function mn(e,t){var r=!0;return pn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function vn(e,t,r){for(var o=-1,i=e.length;++o0&&r(l)?t>1?yn(l,t-1,r,n,o):Rt(o,l):n||(o[o.length]=l)}return o}var bn=No(),wn=No(!0);function _n(e,t){return e&&bn(e,t,jl)}function xn(e,t){return e&&wn(e,t,jl)}function kn(e,t){return At(t,(function(t){return Xa(e[t])}))}function Sn(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&rt}function Tn(e,t){return null!=e&&Ne.call(e,t)}function Ln(e,t){return null!=e&&t in Ce(e)}function Mn(e,t,r){for(var o=r?Pt:jt,i=e[0].length,a=e.length,l=a,s=ae(a),u=1/0,c=[];l--;){var f=e[l];l&&t&&(f=It(f,Xt(t))),u=br(f.length,u),s[l]=!r&&(t||i>=120&&f.length>=120)?new Kr(l&&f):n}f=e[0];var d=-1,p=s[0];e:for(;++d=l?s:s*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function $n(e,t,r){for(var n=-1,o=t.length,i={};++n-1;)l!==e&&Qe.call(l,s,1),Qe.call(e,s,1);return e}function Kn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;wi(o)?Qe.call(e,o,1):po(e,o)}}return e}function Yn(e,t){return e+vt(xr()*(t-e+1))}function Qn(e,t){var r="";if(!e||t<1||t>p)return r;do{t%2&&(r+=e),(t=vt(t/2))&&(e+=e)}while(t);return r}function Zn(e,t){return Pi(Ti(e,t,os),e+"")}function Xn(e){return Zr(Bl(e))}function Jn(e,t){var r=Bl(e);return Ni(r,sn(t,0,r.length))}function eo(e,t,r,o){if(!tl(e))return e;for(var i=-1,a=(t=_o(t,e)).length,l=a-1,s=e;null!=s&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=ae(o);++n>>1,a=e[i];null!==a&&!ul(a)&&(r?a<=t:a=200){var u=t?null:Zo(e);if(u)return cr(u);a=!1,o=er,s=new Kr}else s=t?[]:l;e:for(;++n=o?e:oo(e,t,r)}var So=ut||function(e){return ht.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var r=e.length,n=$e?$e(r):new e.constructor(r);return e.copy(n),n}function Eo(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Co(e,t){var r=t?Eo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function To(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=ul(e),l=t!==n,s=null===t,u=t==t,c=ul(t);if(!s&&!c&&!a&&e>t||a&&l&&u&&!s&&!c||o&&l&&u||!r&&u||!i)return 1;if(!o&&!a&&!c&&e1?r[i-1]:n,l=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,l&&_i(r[0],r[1],l)&&(a=i<3?n:a,i=1),t=Ce(t);++o-1?i[a?t[l]:l]:n}}function Bo(e){return oi((function(t){var r=t.length,i=r,a=Ur.prototype.thru;for(e&&t.reverse();i--;){var l=t[i];if("function"!=typeof l)throw new Me(o);if(a&&!s&&"wrapper"==si(l))var s=new Ur([],!0)}for(i=s?i:r;++i1&&b.reverse(),d&&us))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&r?new Kr:n;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Tt(v,(function(r){var n="_."+r[0];t&r[1]&&!jt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ue):[]}(n),r)))}function Ri(e){var t=0,r=0;return function(){var o=wr(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ni(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,aa(e,r)}));function pa(e){var t=Hr(e);return t.__chain__=!0,t}function ha(e,t){return t(e)}var ma=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ln(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vr&&wi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ha,args:[i],thisArg:n}),new Ur(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var va=Po((function(e,t,r){Ne.call(e,r)?++e[r]:an(e,r,1)}));var ga=Ho(Vi),ya=Ho(qi);function ba(e,t){return(qa(e)?Tt:pn)(e,ci(t,3))}function wa(e,t){return(qa(e)?Lt:hn)(e,ci(t,3))}var _a=Po((function(e,t,r){Ne.call(e,r)?e[r].push(t):an(e,r,[t])}));var xa=Zn((function(e,t,r){var n=-1,o="function"==typeof t,i=Ga(e)?ae(e.length):[];return pn(e,(function(e){i[++n]=o?Et(t,e,r):An(e,t,r)})),i})),ka=Po((function(e,t,r){an(e,r,t)}));function Sa(e,t){return(qa(e)?It:Hn)(e,ci(t,3))}var Oa=Po((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var Ea=Zn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&_i(e,t[0],t[1])?t=[]:r>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),qn(e,yn(t,1),[])})),Ca=dt||function(){return ht.Date.now()};function Ta(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Jo(e,c,n,n,n,n,t)}function La(e,t){var r;if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var Ma=Zn((function(e,t,r){var n=1;if(r.length){var o=ur(r,ui(Ma));n|=s}return Jo(e,n,t,r,o)})),Aa=Zn((function(e,t,r){var n=3;if(r.length){var o=ur(r,ui(Aa));n|=s}return Jo(t,n,e,r,o)}));function ja(e,t,r){var i,a,l,s,u,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Me(o);function m(t){var r=i,o=a;return i=a=n,f=t,s=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-f>=l}function g(){var e=Ca();if(v(e))return y(e);u=ji(g,function(e){var r=t-(e-c);return p?br(r,l-(e-f)):r}(e))}function y(e){return u=n,h&&i?m(e):(i=a=n,s)}function b(){var e=Ca(),r=v(e);if(i=arguments,a=this,c=e,r){if(u===n)return function(e){return f=e,u=ji(g,t),d?m(e):s}(c);if(p)return So(u),u=ji(g,t),m(c)}return u===n&&(u=ji(g,t)),s}return t=gl(t)||0,tl(r)&&(d=!!r.leading,l=(p="maxWait"in r)?yr(gl(r.maxWait)||0,t):l,h="trailing"in r?!!r.trailing:h),b.cancel=function(){u!==n&&So(u),f=0,i=c=a=u=n},b.flush=function(){return u===n?s:y(Ca())},b}var Pa=Zn((function(e,t){return fn(e,1,t)})),Ia=Zn((function(e,t,r){return fn(e,gl(t)||0,r)}));function Ra(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Me(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ra.Cache||Gr),r}function Na(e){if("function"!=typeof e)throw new Me(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ra.Cache=Gr;var Da=xo((function(e,t){var r=(t=1==t.length&&qa(t[0])?It(t[0],Xt(ci())):It(yn(t,1),Xt(ci()))).length;return Zn((function(n){for(var o=-1,i=br(n.length,r);++o=t})),Va=jn(function(){return arguments}())?jn:function(e){return rl(e)&&Ne.call(e,"callee")&&!Ye.call(e,"callee")},qa=ae.isArray,$a=wt?Xt(wt):function(e){return rl(e)&&En(e)==P};function Ga(e){return null!=e&&el(e.length)&&!Xa(e)}function Ka(e){return rl(e)&&Ga(e)}var Ya=bt||gs,Qa=_t?Xt(_t):function(e){return rl(e)&&En(e)==w};function Za(e){if(!rl(e))return!1;var t=En(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Xa(e){if(!tl(e))return!1;var t=En(e);return t==x||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==ml(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rl(e){return null!=e&&"object"==typeof e}var nl=xt?Xt(xt):function(e){return rl(e)&&vi(e)==S};function ol(e){return"number"==typeof e||rl(e)&&En(e)==O}function il(e){if(!rl(e)||En(e)!=E)return!1;var t=Ge(e);if(null===t)return!0;var r=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Re.call(r)==He}var al=kt?Xt(kt):function(e){return rl(e)&&En(e)==T};var ll=St?Xt(St):function(e){return rl(e)&&vi(e)==L};function sl(e){return"string"==typeof e||!qa(e)&&rl(e)&&En(e)==M}function ul(e){return"symbol"==typeof e||rl(e)&&En(e)==A}var cl=Ot?Xt(Ot):function(e){return rl(e)&&el(e.length)&&!!lt[En(e)]};var fl=Ko(Fn),dl=Ko((function(e,t){return e<=t}));function pl(e){if(!e)return[];if(Ga(e))return sl(e)?pr(e):Ao(e);if(Xe&&e[Xe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Xe]());var t=vi(e);return(t==S?lr:t==L?cr:Bl)(e)}function hl(e){return e?(e=gl(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ml(e){var t=hl(e),r=t%1;return t==t?r?t-r:t:0}function vl(e){return e?sn(ml(e),0,m):0}function gl(e){if("number"==typeof e)return e;if(ul(e))return h;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zt(e);var r=ve.test(e);return r||ye.test(e)?ft(e.slice(2),r?2:8):me.test(e)?h:+e}function yl(e){return jo(e,Pl(e))}function bl(e){return null==e?"":co(e)}var wl=Io((function(e,t){if(Oi(t)||Ga(t))jo(t,jl(t),e);else for(var r in t)Ne.call(t,r)&&tn(e,r,t[r])})),_l=Io((function(e,t){jo(t,Pl(t),e)})),xl=Io((function(e,t,r,n){jo(t,Pl(t),e,n)})),kl=Io((function(e,t,r,n){jo(t,jl(t),e,n)})),Sl=oi(ln);var Ol=Zn((function(e,t){e=Ce(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r1),t})),jo(e,ai(e),r),n&&(r=un(r,7,ri));for(var o=t.length;o--;)po(r,t[o]);return r}));var Dl=oi((function(e,t){return null==e?{}:function(e,t){return $n(e,t,(function(t,r){return Tl(e,r)}))}(e,t)}));function zl(e,t){if(null==e)return{};var r=It(ai(e),(function(e){return[e]}));return t=ci(t),$n(e,r,(function(e,r){return t(e,r[0])}))}var Fl=Xo(jl),Hl=Xo(Pl);function Bl(e){return null==e?[]:Jt(e,jl(e))}var Wl=zo((function(e,t,r){return t=t.toLowerCase(),e+(r?Ul(t):t)}));function Ul(e){return Zl(bl(e).toLowerCase())}function Vl(e){return(e=bl(e))&&e.replace(we,nr).replace(et,"")}var ql=zo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),$l=zo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Gl=Do("toLowerCase");var Kl=zo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Yl=zo((function(e,t,r){return e+(r?" ":"")+Zl(t)}));var Ql=zo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Zl=Do("toUpperCase");function Xl(e,t,r){return e=bl(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Jl=Zn((function(e,t){try{return Et(e,n,t)}catch(e){return Za(e)?e:new Se(e)}})),es=oi((function(e,t){return Tt(t,(function(t){t=zi(t),an(e,t,Ma(e[t],e))})),e}));function ts(e){return function(){return e}}var rs=Bo(),ns=Bo(!0);function os(e){return e}function is(e){return Nn("function"==typeof e?e:un(e,1))}var as=Zn((function(e,t){return function(r){return An(r,e,t)}})),ls=Zn((function(e,t){return function(r){return An(e,r,t)}}));function ss(e,t,r){var n=jl(t),o=kn(t,n);null!=r||tl(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=kn(t,jl(t)));var i=!(tl(r)&&"chain"in r&&!r.chain),a=Xa(e);return Tt(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Ao(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Rt([this.value()],arguments))})})),e}function us(){}var cs=qo(It),fs=qo(Mt),ds=qo(zt);function ps(e){return xi(e)?$t(zi(e)):function(e){return function(t){return Sn(t,e)}}(e)}var hs=Go(),ms=Go(!0);function vs(){return[]}function gs(){return!1}var ys=Vo((function(e,t){return e+t}),0),bs=Qo("ceil"),ws=Vo((function(e,t){return e/t}),1),_s=Qo("floor");var xs,ks=Vo((function(e,t){return e*t}),1),Ss=Qo("round"),Os=Vo((function(e,t){return e-t}),0);return Hr.after=function(e,t){if("function"!=typeof t)throw new Me(o);return e=ml(e),function(){if(--e<1)return t.apply(this,arguments)}},Hr.ary=Ta,Hr.assign=wl,Hr.assignIn=_l,Hr.assignInWith=xl,Hr.assignWith=kl,Hr.at=Sl,Hr.before=La,Hr.bind=Ma,Hr.bindAll=es,Hr.bindKey=Aa,Hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Hr.chain=pa,Hr.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:yr(ml(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,l=ae(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:ml(o))<0&&(o+=i),o=r>o?0:vl(o);r>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=co(t))&&ar(e)?ko(pr(e),0,r):e.split(t,r):[]},Hr.spread=function(e,t){if("function"!=typeof e)throw new Me(o);return t=null==t?0:yr(ml(t),0),Zn((function(r){var n=r[t],o=ko(r,0,t);return n&&Rt(o,n),Et(e,this,o)}))},Hr.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},Hr.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:ml(t))<0?0:t):[]},Hr.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:ml(t)))<0?0:t,o):[]},Hr.takeRightWhile=function(e,t){return e&&e.length?mo(e,ci(t,3),!1,!0):[]},Hr.takeWhile=function(e,t){return e&&e.length?mo(e,ci(t,3)):[]},Hr.tap=function(e,t){return t(e),e},Hr.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new Me(o);return tl(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ja(e,t,{leading:n,maxWait:t,trailing:i})},Hr.thru=ha,Hr.toArray=pl,Hr.toPairs=Fl,Hr.toPairsIn=Hl,Hr.toPath=function(e){return qa(e)?It(e,zi):ul(e)?[e]:Ao(Di(bl(e)))},Hr.toPlainObject=yl,Hr.transform=function(e,t,r){var n=qa(e),o=n||Ya(e)||cl(e);if(t=ci(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:tl(e)&&Xa(i)?Br(Ge(e)):{}}return(o?Tt:_n)(e,(function(e,n,o){return t(r,e,n,o)})),r},Hr.unary=function(e){return Ta(e,1)},Hr.union=ra,Hr.unionBy=na,Hr.unionWith=oa,Hr.uniq=function(e){return e&&e.length?fo(e):[]},Hr.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},Hr.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},Hr.unset=function(e,t){return null==e||po(e,t)},Hr.unzip=ia,Hr.unzipWith=aa,Hr.update=function(e,t,r){return null==e?e:ho(e,t,wo(r))},Hr.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,wo(r),o)},Hr.values=Bl,Hr.valuesIn=function(e){return null==e?[]:Jt(e,Pl(e))},Hr.without=la,Hr.words=Xl,Hr.wrap=function(e,t){return za(wo(t),e)},Hr.xor=sa,Hr.xorBy=ua,Hr.xorWith=ca,Hr.zip=fa,Hr.zipObject=function(e,t){return yo(e||[],t||[],tn)},Hr.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},Hr.zipWith=da,Hr.entries=Fl,Hr.entriesIn=Hl,Hr.extend=_l,Hr.extendWith=xl,ss(Hr,Hr),Hr.add=ys,Hr.attempt=Jl,Hr.camelCase=Wl,Hr.capitalize=Ul,Hr.ceil=bs,Hr.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gl(r))==r?r:0),t!==n&&(t=(t=gl(t))==t?t:0),sn(gl(e),t,r)},Hr.clone=function(e){return un(e,4)},Hr.cloneDeep=function(e){return un(e,5)},Hr.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:n)},Hr.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:n)},Hr.conformsTo=function(e,t){return null==t||cn(e,t,jl(t))},Hr.deburr=Vl,Hr.defaultTo=function(e,t){return null==e||e!=e?t:e},Hr.divide=ws,Hr.endsWith=function(e,t,r){e=bl(e),t=co(t);var o=e.length,i=r=r===n?o:sn(ml(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Hr.eq=Ba,Hr.escape=function(e){return(e=bl(e))&&Q.test(e)?e.replace(K,or):e},Hr.escapeRegExp=function(e){return(e=bl(e))&&oe.test(e)?e.replace(ne,"\\$&"):e},Hr.every=function(e,t,r){var o=qa(e)?Mt:mn;return r&&_i(e,t,r)&&(t=n),o(e,ci(t,3))},Hr.find=ga,Hr.findIndex=Vi,Hr.findKey=function(e,t){return Ht(e,ci(t,3),_n)},Hr.findLast=ya,Hr.findLastIndex=qi,Hr.findLastKey=function(e,t){return Ht(e,ci(t,3),xn)},Hr.floor=_s,Hr.forEach=ba,Hr.forEachRight=wa,Hr.forIn=function(e,t){return null==e?e:bn(e,ci(t,3),Pl)},Hr.forInRight=function(e,t){return null==e?e:wn(e,ci(t,3),Pl)},Hr.forOwn=function(e,t){return e&&_n(e,ci(t,3))},Hr.forOwnRight=function(e,t){return e&&xn(e,ci(t,3))},Hr.get=Cl,Hr.gt=Wa,Hr.gte=Ua,Hr.has=function(e,t){return null!=e&&gi(e,t,Tn)},Hr.hasIn=Tl,Hr.head=Gi,Hr.identity=os,Hr.includes=function(e,t,r,n){e=Ga(e)?e:Bl(e),r=r&&!n?ml(r):0;var o=e.length;return r<0&&(r=yr(o+r,0)),sl(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Wt(e,t,r)>-1},Hr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ml(r);return o<0&&(o=yr(n+o,0)),Wt(e,t,o)},Hr.inRange=function(e,t,r){return t=hl(t),r===n?(r=t,t=0):r=hl(r),function(e,t,r){return e>=br(t,r)&&e=-9007199254740991&&e<=p},Hr.isSet=ll,Hr.isString=sl,Hr.isSymbol=ul,Hr.isTypedArray=cl,Hr.isUndefined=function(e){return e===n},Hr.isWeakMap=function(e){return rl(e)&&vi(e)==j},Hr.isWeakSet=function(e){return rl(e)&&"[object WeakSet]"==En(e)},Hr.join=function(e,t){return null==e?"":Gt.call(e,t)},Hr.kebabCase=ql,Hr.last=Zi,Hr.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ml(r))<0?yr(o+i,0):br(i,o-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Bt(e,Vt,i,!0)},Hr.lowerCase=$l,Hr.lowerFirst=Gl,Hr.lt=fl,Hr.lte=dl,Hr.max=function(e){return e&&e.length?vn(e,os,Cn):n},Hr.maxBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Cn):n},Hr.mean=function(e){return qt(e,os)},Hr.meanBy=function(e,t){return qt(e,ci(t,2))},Hr.min=function(e){return e&&e.length?vn(e,os,Fn):n},Hr.minBy=function(e,t){return e&&e.length?vn(e,ci(t,2),Fn):n},Hr.stubArray=vs,Hr.stubFalse=gs,Hr.stubObject=function(){return{}},Hr.stubString=function(){return""},Hr.stubTrue=function(){return!0},Hr.multiply=ks,Hr.nth=function(e,t){return e&&e.length?Vn(e,ml(t)):n},Hr.noConflict=function(){return ht._===this&&(ht._=Be),this},Hr.noop=us,Hr.now=Ca,Hr.pad=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return $o(vt(o),r)+e+$o(mt(o),r)},Hr.padEnd=function(e,t,r){e=bl(e);var n=(t=ml(t))?dr(e):0;return t&&nt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=xr();return br(e+i*(t-e+ct("1e-"+((i+"").length-1))),t)}return Yn(e,t)},Hr.reduce=function(e,t,r){var n=qa(e)?Nt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,pn)},Hr.reduceRight=function(e,t,r){var n=qa(e)?Dt:Kt,o=arguments.length<3;return n(e,ci(t,4),r,o,hn)},Hr.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ml(t),Qn(bl(e),t)},Hr.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hr.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++op)return[];var r=m,n=br(e,m);t=ci(t),e-=m;for(var o=Qt(n,t);++r=a)return e;var s=r-dr(o);if(s<1)return o;var u=l?ko(l,0,s).join(""):e.slice(0,s);if(i===n)return u+o;if(l&&(s+=u.length-s),al(i)){if(e.slice(s).search(i)){var c,f=u;for(i.global||(i=Te(i.source,bl(he.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;u=u.slice(0,d===n?s:d)}}else if(e.indexOf(co(i),s)!=s){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o},Hr.unescape=function(e){return(e=bl(e))&&Y.test(e)?e.replace(G,mr):e},Hr.uniqueId=function(e){var t=++De;return bl(e)+t},Hr.upperCase=Ql,Hr.upperFirst=Zl,Hr.each=ba,Hr.eachRight=wa,Hr.first=Gi,ss(Hr,(xs={},_n(Hr,(function(e,t){Ne.call(Hr.prototype,t)||(xs[t]=e)})),xs),{chain:!1}),Hr.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hr[e].placeholder=Hr})),Tt(["drop","take"],(function(e,t){Vr.prototype[e]=function(r){r=r===n?1:yr(ml(r),0);var o=this.__filtered__&&!t?new Vr(this):this.clone();return o.__filtered__?o.__takeCount__=br(r,o.__takeCount__):o.__views__.push({size:br(r,m),type:e+(o.__dir__<0?"Right":"")}),o},Vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Tt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Vr.prototype[e]=function(){return this[r](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Vr.prototype[e]=function(){return this.__filtered__?new Vr(this):this[r](1)}})),Vr.prototype.compact=function(){return this.filter(os)},Vr.prototype.find=function(e){return this.filter(e).head()},Vr.prototype.findLast=function(e){return this.reverse().find(e)},Vr.prototype.invokeMap=Zn((function(e,t){return"function"==typeof e?new Vr(this):this.map((function(r){return An(r,e,t)}))})),Vr.prototype.reject=function(e){return this.filter(Na(ci(e)))},Vr.prototype.slice=function(e,t){e=ml(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ml(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vr.prototype.toArray=function(){return this.take(m)},_n(Vr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Hr[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Hr.prototype[t]=function(){var t=this.__wrapped__,l=o?[1]:arguments,s=t instanceof Vr,u=l[0],c=s||qa(t),f=function(e){var t=i.apply(Hr,Rt([e],l));return o&&d?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,m=s&&!p;if(!a&&c){t=m?t:new Vr(this);var v=e.apply(t,l);return v.__actions__.push({func:ha,args:[f],thisArg:n}),new Ur(v,d)}return h&&m?e.apply(this,l):(v=this.thru(f),h?o?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Hr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[r]((function(r){return t.apply(qa(r)?r:[],e)}))}})),_n(Vr.prototype,(function(e,t){var r=Hr[t];if(r){var n=r.name+"";Ne.call(Ar,n)||(Ar[n]=[]),Ar[n].push({name:t,func:r})}})),Ar[Wo(n,2).name]=[{name:"wrapper",func:n}],Vr.prototype.clone=function(){var e=new Vr(this.__wrapped__);return e.__actions__=Ao(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ao(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ao(this.__views__),e},Vr.prototype.reverse=function(){if(this.__filtered__){var e=new Vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=qa(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Hr.prototype.plant=function(e){for(var t,r=this;r instanceof Wr;){var o=Hi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vr){var t=e;return this.__actions__.length&&(t=new Vr(this)),(t=t.reverse()).__actions__.push({func:ha,args:[ta],thisArg:n}),new Ur(t,this.__chain__)}return this.thru(ta)},Hr.prototype.toJSON=Hr.prototype.valueOf=Hr.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Hr.prototype.first=Hr.prototype.head,Xe&&(Hr.prototype[Xe]=function(){return this}),Hr}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ht._=vr,define((function(){return vr}))):vt?((vt.exports=vr)._=vr,mt._=vr):ht._=vr}.call(this)},5077:(e,t,r)=>{var n=r(5584),o=r(2064),i=r(9409),a=r(3858);e.exports=function(e,t){return(a(e)?n:i)(e,o(t,3))}},6762:(e,t,r)=>{var n=r(1795);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},4911:e=>{e.exports=function(){}},1390:(e,t,r)=>{var n=r(6285);e.exports=function(){return n.Date.now()}},1329:(e,t,r)=>{var n=r(5584),o=r(2064),i=r(7889),a=r(2484);e.exports=function(e,t){if(null==e)return{};var r=n(a(e),(function(e){return[e]}));return t=o(t),i(e,r,(function(e,r){return t(e,r[0])}))}},5325:(e,t,r)=>{var n=r(5443),o=r(1833),i=r(1237),a=r(3742);e.exports=function(e){return i(e)?n(a(e)):o(e)}},6810:(e,t,r)=>{var n=r(2064),o=r(3040);e.exports=function(e,t){var r=[];if(!e||!e.length)return r;var i=-1,a=[],l=e.length;for(t=n(t,3);++i{var n=r(5168);e.exports=function(e,t,r){return null==e?e:n(e,t,r)}},9608:(e,t,r)=>{var n=r(3145),o=r(3929),i=r(5046),a=r(7606),l=r(2126);e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?l(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:n(e).length}},255:e=>{e.exports=function(){return[]}},8416:e=>{e.exports=function(){return!1}},802:(e,t,r)=>{var n=r(9347),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1646:(e,t,r)=>{var n=r(802);e.exports=function(e){var t=n(e),r=t%1;return t==t?r?t-r:t:0}},9347:(e,t,r)=>{var n=r(301),o=r(4082),i=r(754),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^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=n(e);var r=l.test(e);return r||s.test(e)?u(e.slice(2),r?2:8):a.test(e)?NaN:+e}},3156:(e,t,r)=>{var n=r(5631);e.exports=function(e){return null==e?"":n(e)}},3792:(e,t,r)=>{var n=r(3631);e.exports=function(e){return e&&e.length?n(e):[]}},7886:(e,t,r)=>{var n=r(3631);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?n(e,void 0,t):[]}},3109:(e,t,r)=>{var n=r(6862),o=r(1839);e.exports=function(e){return null==e?[]:n(e,o(e))}},8780:e=>{"use strict";e.exports={__proto__:null,aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",currentColor:"The value of the 'color' property.",activeBorder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",greytext:"Greyed (disabled) text. This color is set to #000 if the current display driver does not support a solid grey color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."}},2402:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r){n.call(this,e,t,r,o.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(e)?this.type="descendant":">"===e?this.type="child":"+"===e?this.type="adjacent-sibling":"~"===e&&(this.type="sibling")}i.prototype=new n,i.prototype.constructor=i},4022:(e,t,r)=>{"use strict";e.exports=i;var n=r(6012),o=r(6912);function i(e,t){this.match=function(t){var r;return t.mark(),(r=e(t))?t.drop():t.restore(),r},this.toString="function"==typeof t?t:function(){return t}}i.prec={MOD:5,SEQ:4,ANDAND:3,OROR:2,ALT:1},i.parse=function(e){var t,r,a,l,s,u,c,f,d;if(t=new n(e),r=function(e){var r=t.readMatch(e);if(null===r)throw new o("Expected "+e,t.getLine(),t.getCol());return r},a=function(){for(var e=[l()];null!==t.readMatch(" | ");)e.push(l());return 1===e.length?e[0]:i.alt.apply(i,e)},l=function(){for(var e=[s()];null!==t.readMatch(" || ");)e.push(s());return 1===e.length?e[0]:i.oror.apply(i,e)},s=function(){for(var e=[u()];null!==t.readMatch(" && ");)e.push(u());return 1===e.length?e[0]:i.andand.apply(i,e)},u=function(){for(var e=[c()];null!==t.readMatch(/^ (?![&|\]])/);)e.push(c());return 1===e.length?e[0]:i.seq.apply(i,e)},c=function(){var e=f();if(null!==t.readMatch("?"))return e.question();if(null!==t.readMatch("*"))return e.star();if(null!==t.readMatch("+"))return e.plus();if(null!==t.readMatch("#"))return e.hash();if(null!==t.readMatch(/^\{\s*/)){var n=r(/^\d+/);r(/^\s*,\s*/);var o=r(/^\d+/);return r(/^\s*\}/),e.braces(+n,+o)}return e},f=function(){if(null!==t.readMatch("[ ")){var e=a();return r(" ]"),e}return i.fromType(r(/^[^ ?*+#{]+/))},d=a(),!t.eof())throw new o("Expected end of string",t.getLine(),t.getCol());return d},i.cast=function(e){return e instanceof i?e:i.parse(e)},i.fromType=function(e){var t=r(6831);return new i((function(r){return r.hasNext()&&t.isType(r,e)}),e)},i.seq=function(){var e=Array.prototype.slice.call(arguments).map(i.cast);return 1===e.length?e[0]:new i((function(t){var r,n=!0;for(r=0;n&&rr&&(n="[ "+n+" ]"),n}))},i.alt=function(){var e=Array.prototype.slice.call(arguments).map(i.cast);return 1===e.length?e[0]:new i((function(t){var r,n=!1;for(r=0;!n&&rr&&(n="[ "+n+" ]"),n}))},i.many=function(e){var t=Array.prototype.slice.call(arguments,1).reduce((function(e,t){if(t.expand){var n=r(6831);e.push.apply(e,n.complex[t.expand].options)}else e.push(i.cast(t));return e}),[]);!0===e&&(e=t.map((function(){return!0})));var n=new i((function(r){var n=[],o=0,i=0,a=function(l){for(var s=0;s0;for(var l=0;ln&&(o="[ "+o+" ]"),o}));return n.options=t,n},i.andand=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!0),i.many.apply(i,e)},i.oror=function(){var e=Array.prototype.slice.call(arguments);return e.unshift(!1),i.many.apply(i,e)},i.prototype={constructor:i,match:function(){throw new Error("unimplemented")},toString:function(){throw new Error("unimplemented")},func:function(){return this.match.bind(this)},then:function(e){return i.seq(this,e)},or:function(e){return i.alt(this,e)},andand:function(e){return i.many(!0,this,e)},oror:function(e){return i.many(!1,this,e)},star:function(){return this.braces(0,1/0,"*")},plus:function(){return this.braces(1,1/0,"+")},question:function(){return this.braces(0,1,"?")},hash:function(){return this.braces(1,1/0,"#",i.cast(","))},braces:function(e,t,r,n){var o=this,a=n?n.then(this):this;return r||(r="{"+e+","+t+"}"),new i((function(r){var i;for(i=0;i0&&n?a.match(r):o.match(r));i++);return i>=e}),(function(){return o.toString(i.prec.MOD)+r}))}}},1899:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t){n.call(this,"("+e+(null!==t?":"+t:"")+")",e.startLine,e.startCol,o.MEDIA_FEATURE_TYPE),this.name=e,this.value=t}i.prototype=new n,i.prototype.constructor=i},7567:(e,t,r)=>{"use strict";e.exports=i;var n=r(7337),o=r(232);function i(e,t,r,i,a){n.call(this,(e?e+" ":"")+(t||"")+(t&&r.length>0?" and ":"")+r.join(" and "),i,a,o.MEDIA_QUERY_TYPE),this.modifier=e,this.mediaType=t,this.features=r}i.prototype=new n,i.prototype.constructor=i},232:(e,t,r)=>{"use strict";e.exports=y;var n=r(8053),o=r(6912),i=r(7337),a=r(2402),l=r(1899),s=r(7567),u=r(5556),c=r(5076),f=r(1915),d=r(5548),p=r(9890),h=r(753),m=r(3333),v=r(3778),g=r(7832);function y(e){n.call(this),this.options=e||{},this._tokenStream=null}y.DEFAULT_TYPE=0,y.COMBINATOR_TYPE=1,y.MEDIA_FEATURE_TYPE=2,y.MEDIA_QUERY_TYPE=3,y.PROPERTY_NAME_TYPE=4,y.PROPERTY_VALUE_TYPE=5,y.PROPERTY_VALUE_PART_TYPE=6,y.SELECTOR_TYPE=7,y.SELECTOR_PART_TYPE=8,y.SELECTOR_SUB_PART_TYPE=9,y.prototype=function(){var e,t=new n,r={__proto__:null,constructor:y,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var e,t,r,n=this._tokenStream;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();n.peek()===v.IMPORT_SYM;)this._import(),this._skipCruft();for(;n.peek()===v.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(r=n.peek();r>v.EOF;){try{switch(r){case v.MEDIA_SYM:this._media(),this._skipCruft();break;case v.PAGE_SYM:this._page(),this._skipCruft();break;case v.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case v.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case v.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case v.DOCUMENT_SYM:this._document(),this._skipCruft();break;case v.SUPPORTS_SYM:this._supports(),this._skipCruft();break;case v.UNKNOWN_SYM:if(n.get(),this.options.strict)throw new o("Unknown @ rule.",n.LT(0).startLine,n.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+n.LT(0).value+".",line:n.LT(0).startLine,col:n.LT(0).startCol}),e=0;n.advance([v.LBRACE,v.RBRACE])===v.LBRACE;)e++;for(;e;)n.advance([v.RBRACE]),e--;break;case v.S:this._readWhitespace();break;default:if(!this._ruleset())switch(r){case v.CHARSET_SYM:throw t=n.LT(1),this._charset(!1),new o("@charset not allowed here.",t.startLine,t.startCol);case v.IMPORT_SYM:throw t=n.LT(1),this._import(!1),new o("@import not allowed here.",t.startLine,t.startCol);case v.NAMESPACE_SYM:throw t=n.LT(1),this._namespace(!1),new o("@namespace not allowed here.",t.startLine,t.startCol);default:n.get(),this._unexpectedToken(n.token())}}}catch(e){if(!(e instanceof o)||this.options.strict)throw e;this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col})}r=n.peek()}r!==v.EOF&&this._unexpectedToken(n.token()),this.fire("endstylesheet")},_charset:function(e){var t,r,n,o=this._tokenStream;o.match(v.CHARSET_SYM)&&(r=o.token().startLine,n=o.token().startCol,this._readWhitespace(),o.mustMatch(v.STRING),t=o.token().value,this._readWhitespace(),o.mustMatch(v.SEMICOLON),!1!==e&&this.fire({type:"charset",charset:t,line:r,col:n}))},_import:function(e){var t,r,n,o=this._tokenStream;o.mustMatch(v.IMPORT_SYM),r=o.token(),this._readWhitespace(),o.mustMatch([v.STRING,v.URI]),t=o.token().value.replace(/^(?:url\()?["']?([^"']+?)["']?\)?$/,"$1"),this._readWhitespace(),n=this._media_query_list(),o.mustMatch(v.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"import",uri:t,media:n,line:r.startLine,col:r.startCol})},_namespace:function(e){var t,r,n,o,i=this._tokenStream;i.mustMatch(v.NAMESPACE_SYM),t=i.token().startLine,r=i.token().startCol,this._readWhitespace(),i.match(v.IDENT)&&(n=i.token().value,this._readWhitespace()),i.mustMatch([v.STRING,v.URI]),o=i.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),i.mustMatch(v.SEMICOLON),this._readWhitespace(),!1!==e&&this.fire({type:"namespace",prefix:n,uri:o,line:t,col:r})},_supports:function(e){var t,r,n=this._tokenStream;if(n.match(v.SUPPORTS_SYM)){for(t=n.token().startLine,r=n.token().startCol,this._readWhitespace(),this._supports_condition(),this._readWhitespace(),n.mustMatch(v.LBRACE),this._readWhitespace(),!1!==e&&this.fire({type:"startsupports",line:t,col:r});this._ruleset(););n.mustMatch(v.RBRACE),this._readWhitespace(),this.fire({type:"endsupports",line:t,col:r})}},_supports_condition:function(){var e,t=this._tokenStream;if(t.match(v.IDENT))"not"===(e=t.token().value.toLowerCase())?(t.mustMatch(v.S),this._supports_condition_in_parens()):t.unget();else for(this._supports_condition_in_parens(),this._readWhitespace();t.peek()===v.IDENT;)"and"!==(e=t.LT(1).value.toLowerCase())&&"or"!==e||(t.mustMatch(v.IDENT),this._readWhitespace(),this._supports_condition_in_parens(),this._readWhitespace())},_supports_condition_in_parens:function(){var e=this._tokenStream;e.match(v.LPAREN)?(this._readWhitespace(),e.match(v.IDENT)?"not"===e.token().value.toLowerCase()?(this._readWhitespace(),this._supports_condition(),this._readWhitespace(),e.mustMatch(v.RPAREN)):(e.unget(),this._supports_declaration_condition(!1)):(this._supports_condition(),this._readWhitespace(),e.mustMatch(v.RPAREN))):this._supports_declaration_condition()},_supports_declaration_condition:function(e){var t=this._tokenStream;!1!==e&&t.mustMatch(v.LPAREN),this._readWhitespace(),this._declaration(),t.mustMatch(v.RPAREN)},_media:function(){var e,t,r,n=this._tokenStream;for(n.mustMatch(v.MEDIA_SYM),e=n.token().startLine,t=n.token().startCol,this._readWhitespace(),r=this._media_query_list(),n.mustMatch(v.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:r,line:e,col:t});;)if(n.peek()===v.PAGE_SYM)this._page();else if(n.peek()===v.FONT_FACE_SYM)this._font_face();else if(n.peek()===v.VIEWPORT_SYM)this._viewport();else if(n.peek()===v.DOCUMENT_SYM)this._document();else if(n.peek()===v.SUPPORTS_SYM)this._supports();else if(n.peek()===v.MEDIA_SYM)this._media();else if(!this._ruleset())break;n.mustMatch(v.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:r,line:e,col:t})},_media_query_list:function(){var e=this._tokenStream,t=[];for(this._readWhitespace(),e.peek()!==v.IDENT&&e.peek()!==v.LPAREN||t.push(this._media_query());e.match(v.COMMA);)this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,r=null,n=null,o=[];if(e.match(v.IDENT)&&("only"!==(r=e.token().value.toLowerCase())&&"not"!==r?(e.unget(),r=null):n=e.token()),this._readWhitespace(),e.peek()===v.IDENT?(t=this._media_type(),null===n&&(n=e.token())):e.peek()===v.LPAREN&&(null===n&&(n=e.LT(1)),o.push(this._media_expression())),null===t&&0===o.length)return null;for(this._readWhitespace();e.match(v.IDENT);)"and"!==e.token().value.toLowerCase()&&this._unexpectedToken(e.token()),this._readWhitespace(),o.push(this._media_expression());return new s(r,t,o,n.startLine,n.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e,t,r=this._tokenStream,n=null;return r.mustMatch(v.LPAREN),e=this._media_feature(),this._readWhitespace(),r.match(v.COLON)&&(this._readWhitespace(),t=r.LT(1),n=this._expression()),r.mustMatch(v.RPAREN),this._readWhitespace(),new l(e,n?new i(n,t.startLine,t.startCol):null)},_media_feature:function(){var e=this._tokenStream;return this._readWhitespace(),e.mustMatch(v.IDENT),i.fromToken(e.token())},_page:function(){var e,t,r=this._tokenStream,n=null,o=null;r.mustMatch(v.PAGE_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),r.match(v.IDENT)&&"auto"===(n=r.token().value).toLowerCase()&&this._unexpectedToken(r.token()),r.peek()===v.COLON&&(o=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:n,pseudo:o,line:e,col:t}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:n,pseudo:o,line:e,col:t})},_margin:function(){var e,t,r=this._tokenStream,n=this._margin_sym();return!!n&&(e=r.token().startLine,t=r.token().startCol,this.fire({type:"startpagemargin",margin:n,line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:n,line:e,col:t}),!0)},_margin_sym:function(){var e=this._tokenStream;return e.match([v.TOPLEFTCORNER_SYM,v.TOPLEFT_SYM,v.TOPCENTER_SYM,v.TOPRIGHT_SYM,v.TOPRIGHTCORNER_SYM,v.BOTTOMLEFTCORNER_SYM,v.BOTTOMLEFT_SYM,v.BOTTOMCENTER_SYM,v.BOTTOMRIGHT_SYM,v.BOTTOMRIGHTCORNER_SYM,v.LEFTTOP_SYM,v.LEFTMIDDLE_SYM,v.LEFTBOTTOM_SYM,v.RIGHTTOP_SYM,v.RIGHTMIDDLE_SYM,v.RIGHTBOTTOM_SYM])?i.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(v.COLON),e.mustMatch(v.IDENT),e.token().value},_font_face:function(){var e,t,r=this._tokenStream;r.mustMatch(v.FONT_FACE_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endfontface",line:e,col:t})},_viewport:function(){var e,t,r=this._tokenStream;r.mustMatch(v.VIEWPORT_SYM),e=r.token().startLine,t=r.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:e,col:t}),this._readDeclarations(!0),this.fire({type:"endviewport",line:e,col:t})},_document:function(){var e,t=this._tokenStream,r=[],n="";for(t.mustMatch(v.DOCUMENT_SYM),e=t.token(),/^@\-([^\-]+)\-/.test(e.value)&&(n=RegExp.$1),this._readWhitespace(),r.push(this._document_function());t.match(v.COMMA);)this._readWhitespace(),r.push(this._document_function());t.mustMatch(v.LBRACE),this._readWhitespace(),this.fire({type:"startdocument",functions:r,prefix:n,line:e.startLine,col:e.startCol});for(var o=!0;o;)switch(t.peek()){case v.PAGE_SYM:this._page();break;case v.FONT_FACE_SYM:this._font_face();break;case v.VIEWPORT_SYM:this._viewport();break;case v.MEDIA_SYM:this._media();break;case v.KEYFRAMES_SYM:this._keyframes();break;case v.DOCUMENT_SYM:this._document();break;default:o=Boolean(this._ruleset())}t.mustMatch(v.RBRACE),e=t.token(),this._readWhitespace(),this.fire({type:"enddocument",functions:r,prefix:n,line:e.startLine,col:e.startCol})},_document_function:function(){var e,t=this._tokenStream;return t.match(v.URI)?(e=t.token().value,this._readWhitespace()):e=this._function(),e},_operator:function(e){var t=this._tokenStream,r=null;return(t.match([v.SLASH,v.COMMA])||e&&t.match([v.PLUS,v.STAR,v.MINUS]))&&(r=t.token(),this._readWhitespace()),r?f.fromToken(r):null},_combinator:function(){var e,t=this._tokenStream,r=null;return t.match([v.PLUS,v.GREATER,v.TILDE])&&(e=t.token(),r=new a(e.value,e.startLine,e.startCol),this._readWhitespace()),r},_unary_operator:function(){var e=this._tokenStream;return e.match([v.MINUS,v.PLUS])?e.token().value:null},_property:function(){var e,t,r,n,o=this._tokenStream,i=null,a=null;return o.peek()===v.STAR&&this.options.starHack&&(o.get(),a=(t=o.token()).value,r=t.startLine,n=t.startCol),o.match(v.IDENT)&&("_"===(e=(t=o.token()).value).charAt(0)&&this.options.underscoreHack&&(a="_",e=e.substring(1)),i=new u(e,a,r||t.startLine,n||t.startCol),this._readWhitespace()),i},_ruleset:function(){var e,t=this._tokenStream;try{e=this._selectors_group()}catch(e){if(!(e instanceof o)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),t.advance([v.RBRACE])!==v.RBRACE)throw e;return!0}return e&&(this.fire({type:"startrule",selectors:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:e,line:e[0].line,col:e[0].col})),e},_selectors_group:function(){var e,t=this._tokenStream,r=[];if(null!==(e=this._selector()))for(r.push(e);t.match(v.COMMA);)this._readWhitespace(),null!==(e=this._selector())?r.push(e):this._unexpectedToken(t.LT(1));return r.length?r:null},_selector:function(){var e=this._tokenStream,t=[],r=null,n=null,o=null;if(null===(r=this._simple_selector_sequence()))return null;for(t.push(r);;)if(null!==(n=this._combinator()))t.push(n),null===(r=this._simple_selector_sequence())?this._unexpectedToken(e.LT(1)):t.push(r);else{if(!this._readWhitespace())break;o=new a(e.token().value,e.token().startLine,e.token().startCol),n=this._combinator(),null===(r=this._simple_selector_sequence())?null!==n&&this._unexpectedToken(e.LT(1)):(null!==n?t.push(n):t.push(o),t.push(r))}return new d(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e,t,r=this._tokenStream,n=null,o=[],i="",a=[function(){return r.match(v.HASH)?new h(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],l=0,s=a.length,u=null;for(e=r.LT(1).startLine,t=r.LT(1).startCol,(n=this._type_selector())||(n=this._universal()),null!==n&&(i+=n);r.peek()!==v.S;){for(;l1&&e.unget()),null)},_class:function(){var e,t=this._tokenStream;return t.match(v.DOT)?(t.mustMatch(v.IDENT),e=t.token(),new h("."+e.value,"class",e.startLine,e.startCol-1)):null},_element_name:function(){var e,t=this._tokenStream;return t.match(v.IDENT)?(e=t.token(),new h(e.value,"elementName",e.startLine,e.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t="";return e.LA(1)!==v.PIPE&&e.LA(2)!==v.PIPE||(e.match([v.IDENT,v.STAR])&&(t+=e.token().value),e.mustMatch(v.PIPE),t+="|"),t.length?t:null},_universal:function(){var e,t=this._tokenStream,r="";return(e=this._namespace_prefix())&&(r+=e),t.match(v.STAR)&&(r+="*"),r.length?r:null},_attrib:function(){var e,t,r=this._tokenStream,n=null;return r.match(v.LBRACKET)?(n=(t=r.token()).value,n+=this._readWhitespace(),(e=this._namespace_prefix())&&(n+=e),r.mustMatch(v.IDENT),n+=r.token().value,n+=this._readWhitespace(),r.match([v.PREFIXMATCH,v.SUFFIXMATCH,v.SUBSTRINGMATCH,v.EQUALS,v.INCLUDES,v.DASHMATCH])&&(n+=r.token().value,n+=this._readWhitespace(),r.mustMatch([v.IDENT,v.STRING]),n+=r.token().value,n+=this._readWhitespace()),r.mustMatch(v.RBRACKET),new h(n+"]","attribute",t.startLine,t.startCol)):null},_pseudo:function(){var e,t,r=this._tokenStream,n=null,i=":";if(r.match(v.COLON)){if(r.match(v.COLON)&&(i+=":"),r.match(v.IDENT)?(n=r.token().value,e=r.token().startLine,t=r.token().startCol-i.length):r.peek()===v.FUNCTION&&(e=r.LT(1).startLine,t=r.LT(1).startCol-i.length,n=this._functional_pseudo()),!n){var a=r.LT(1).startLine,l=r.LT(0).startCol;throw new o("Expected a `FUNCTION` or `IDENT` after colon at line "+a+", col "+l+".",a,l)}n=new h(i+n,"pseudo",e,t)}return n},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(v.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(v.RPAREN),t+=")"),t},_expression:function(){for(var e=this._tokenStream,t="";e.match([v.PLUS,v.MINUS,v.DIMENSION,v.NUMBER,v.STRING,v.IDENT,v.LENGTH,v.FREQ,v.ANGLE,v.TIME,v.RESOLUTION,v.SLASH]);)t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e,t,r,n=this._tokenStream,o="",i=null;return n.match(v.NOT)&&(o=n.token().value,e=n.token().startLine,t=n.token().startCol,o+=this._readWhitespace(),o+=r=this._negation_arg(),o+=this._readWhitespace(),n.match(v.RPAREN),o+=n.token().value,(i=new h(o,"not",e,t)).args.push(r)),i},_negation_arg:function(){var e,t,r=this._tokenStream,n=[this._type_selector,this._universal,function(){return r.match(v.HASH)?new h(r.token().value,"id",r.token().startLine,r.token().startCol):null},this._class,this._attrib,this._pseudo],o=null,i=0,a=n.length;for(e=r.LT(1).startLine,t=r.LT(1).startCol;i0?new c(t,t[0].line,t[0].col):null},_term:function(e){var t,r,n,o,i=this._tokenStream,a=null,l=null,s=null;return null!==(t=this._unary_operator())&&(n=i.token().startLine,o=i.token().startCol),i.peek()===v.IE_FUNCTION&&this.options.ieFilters?(a=this._ie_function(),null===t&&(n=i.token().startLine,o=i.token().startCol)):e&&i.match([v.LPAREN,v.LBRACE,v.LBRACKET])?(l=(r=i.token()).endChar,a=r.value+this._expr(e).text,null===t&&(n=i.token().startLine,o=i.token().startCol),i.mustMatch(v.type(l)),a+=l,this._readWhitespace()):i.match([v.NUMBER,v.PERCENTAGE,v.LENGTH,v.ANGLE,v.TIME,v.FREQ,v.STRING,v.IDENT,v.URI,v.UNICODE_RANGE])?(a=i.token().value,null===t&&(n=i.token().startLine,o=i.token().startCol,s=f.fromToken(i.token())),this._readWhitespace()):null===(r=this._hexcolor())?(null===t&&(n=i.LT(1).startLine,o=i.LT(1).startCol),null===a&&(a=i.LA(3)===v.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(a=r.value,null===t&&(n=r.startLine,o=r.startCol)),null!==s?s:null!==a?new f(null!==t?t+a:a,n,o):null},_function:function(){var e,t=this._tokenStream,r=null;if(t.match(v.FUNCTION)){if(r=t.token().value,this._readWhitespace(),r+=this._expr(!0),this.options.ieFilters&&t.peek()===v.EQUALS)do{for(this._readWhitespace()&&(r+=t.token().value),t.LA(0)===v.COMMA&&(r+=t.token().value),t.match(v.IDENT),r+=t.token().value,t.match(v.EQUALS),r+=t.token().value,e=t.peek();e!==v.COMMA&&e!==v.S&&e!==v.RPAREN;)t.get(),r+=t.token().value,e=t.peek()}while(t.match([v.COMMA,v.S]));t.match(v.RPAREN),r+=")",this._readWhitespace()}return r},_ie_function:function(){var e,t=this._tokenStream,r=null;if(t.match([v.IE_FUNCTION,v.FUNCTION])){r=t.token().value;do{for(this._readWhitespace()&&(r+=t.token().value),t.LA(0)===v.COMMA&&(r+=t.token().value),t.match(v.IDENT),r+=t.token().value,t.match(v.EQUALS),r+=t.token().value,e=t.peek();e!==v.COMMA&&e!==v.S&&e!==v.RPAREN;)t.get(),r+=t.token().value,e=t.peek()}while(t.match([v.COMMA,v.S]));t.match(v.RPAREN),r+=")",this._readWhitespace()}return r},_hexcolor:function(){var e,t=this._tokenStream,r=null;if(t.match(v.HASH)){if(e=(r=t.token()).value,!/#[a-f0-9]{3,6}/i.test(e))throw new o("Expected a hex color but found '"+e+"' at line "+r.startLine+", col "+r.startCol+".",r.startLine,r.startCol);this._readWhitespace()}return r},_keyframes:function(){var e,t,r,n=this._tokenStream,o="";for(n.mustMatch(v.KEYFRAMES_SYM),e=n.token(),/^@\-([^\-]+)\-/.test(e.value)&&(o=RegExp.$1),this._readWhitespace(),r=this._keyframe_name(),this._readWhitespace(),n.mustMatch(v.LBRACE),this.fire({type:"startkeyframes",name:r,prefix:o,line:e.startLine,col:e.startCol}),this._readWhitespace(),t=n.peek();t===v.IDENT||t===v.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),t=n.peek();this.fire({type:"endkeyframes",name:r,prefix:o,line:e.startLine,col:e.startCol}),this._readWhitespace(),n.mustMatch(v.RBRACE),this._readWhitespace()},_keyframe_name:function(){var e=this._tokenStream;return e.mustMatch([v.IDENT,v.STRING]),i.fromToken(e.token())},_keyframe_rule:function(){var e=this._key_list();this.fire({type:"startkeyframerule",keys:e,line:e[0].line,col:e[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:e,line:e[0].line,col:e[0].col})},_key_list:function(){var e=this._tokenStream,t=[];for(t.push(this._key()),this._readWhitespace();e.match(v.COMMA);)this._readWhitespace(),t.push(this._key()),this._readWhitespace();return t},_key:function(){var e,t=this._tokenStream;if(t.match(v.PERCENTAGE))return i.fromToken(t.token());if(t.match(v.IDENT)){if(e=t.token(),/from|to/i.test(e.value))return i.fromToken(e);t.unget()}this._unexpectedToken(t.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([v.S,v.CDO,v.CDC]););},_readDeclarations:function(e,t){var r,n=this._tokenStream;this._readWhitespace(),e&&n.mustMatch(v.LBRACE),this._readWhitespace();try{for(;;){if(n.match(v.SEMICOLON)||t&&this._margin());else{if(!this._declaration())break;if(!n.match(v.SEMICOLON))break}this._readWhitespace()}n.mustMatch(v.RBRACE),this._readWhitespace()}catch(e){if(!(e instanceof o)||this.options.strict)throw e;if(this.fire({type:"error",error:e,message:e.message,line:e.line,col:e.col}),(r=n.advance([v.SEMICOLON,v.RBRACE]))===v.SEMICOLON)this._readDeclarations(!1,t);else if(r!==v.RBRACE)throw e}},_readWhitespace:function(){for(var e=this._tokenStream,t="";e.match(v.S);)t+=e.token().value;return t},_unexpectedToken:function(e){throw new o("Unexpected token '"+e.value+"' at line "+e.startLine+", col "+e.startCol+".",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!==v.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){g.validate(e,t)},parse:function(e){this._tokenStream=new m(e,v),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new m(e,v);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new m(e,v),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new m(e,v),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new m(e,v),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+="}",this._tokenStream=new m(e,v),this._readDeclarations()}};for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t}()},8986:e=>{"use strict";e.exports={__proto__:null,"align-items":"flex-start | flex-end | center | baseline | stretch","align-content":"flex-start | flex-end | center | space-between | space-around | stretch","align-self":"auto | flex-start | flex-end | center | baseline | stretch",all:"initial | inherit | unset","-webkit-align-items":"flex-start | flex-end | center | baseline | stretch","-webkit-align-content":"flex-start | flex-end | center | space-between | space-around | stretch","-webkit-align-self":"auto | flex-start | flex-end | center | baseline | stretch","alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | | ","alignment-baseline":"auto | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":"